Getting started with 3G | Ip.access NANO3G+OPENBSC+OSMOCOM-BB Part 1

Source: Internet
Author: User
Tags bz2 ssh git clone

中文版 Version could is find at osmocom.org

Https://osmocom.org/projects/cellular-infrastructure/wiki/accelerate3g5_–_unicornteam

0X01 Environment Construction

pc:ubuntu16.04

HardWare:ip.access nano3g

Software:osmocom

1.1 Installing the cross-compilation environment

sudo apt-GetUpdatesudo Apt-GetInstall Libtool shtool autoconf git-core pkg-config make gcc build-essential libgmp3-dev libmpfr-dev libx11-6Libx11-dev Texinfo Flex Bison libncurses5 libncurses5-dbg libusb-0.1-4Libpcsclite1 libccid pcscd libncurses5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev zlibc zlib1g-dev LIBMPFR4 Libmpc-dev libpcsclite-Dev sudo ldconfigmkdir osmcd osmmkdir Build install Srcwget http://bb.osmocom.org/trac/raw-attachment/wiki/gnuarmtoolchain/gnu-arm-build.3.shCD Srcwget http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gzCD.. chmod+x Gnu-arm-build.3. Shsudo Bash GNU-arm-build.3. sh

1.2 Setting cross-compilation environment variables

CD install/~/./. Bashrcexport PATH this to your name)/osm/install/~/.BASHRC

0X02 Source code compilation Calypsobts

2.1 Compiling LIBOSMO-DSP

git clone git://git.osmocom.org/libosmo-dsp.gitcd libosmo-dsp/-I. /Configuremakesudo make INSTALLCD.

2.2 Compiling OSMOCOM-BB

git clone git://git.osmocom.org/osmocom-bb.git Trxcd trx/git Checkout jolly/TESTINGCD SRC/# requires TX function support # Cancel target/firmware/makefile code 'CFLAGS + =-dconfig_tx_enable'  comments in front # and enable transceiver feature support make when make Host_layer23_confargs

2.3 Installing dependent Packages

sudo apt-get install sqlite3 Libdbi-dev libdbd-sqlite3 Libsctp-dev

2.4 Compiling ORTP

wget http://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.22.0.tar.gzTar- XVF ortp-0.22. 0 . TAR.GZCD ORTP-0.22. 0/. /Configuremakesudo make Installsudo ldconfigcd.

2.5 Compiling Libosmo-abis

git clone git://git.osmocom.org/libosmo-abis.gitcd libosmo--I. /Configuremakesudo make Installsudo ldconfigcd.

2.6 Compiling Libosmo-netif

git clone git://git.osmocom.org/libosmo-netif.gitcd libosmo-netif/-I. /Configuremakesudo make Installsudo ldconfigcd.

2.7 Compiling OPENBSC

Compile openbsc with Pcap library files, search & install dependent packages before compiling:

apt-Cache Search Pcapsudo Pat-get install Libpcap-dev libpcap0. 8 libpcap0. 8-dbg libpcap0. 8-devsudo ldconfiggit clone git://git.osmocom.org/openbsc.gitcd openbsc/ openbsc/-I. /Configuremakesudo make INSTALLCD. /..
git clone git://git.osmocom.org/openbsc.gitcd openbsc/openbsc/-I. /Configuremakesudo make INSTALLCD. /..

2.8 Compiling Osmo-bts

git clone git://git.osmocom.org/osmo-bts.gitcd osmo--I. /configure--enable-Trxmakesudo make INSTALLCD.

2.9 Creating a OPENBSC configuration file

if it isn't exist yetmkdir ~/~/~/.osmocom/open-~/. Osmocom/osmo-bts.cfg

0X03 source code compilation cellular Infrastructure

3.1 Clone source

git clone git://git.osmocom.org/libosmocoregit clone git://git.osmocom.org/ Libosmo-abisgit clone git://git.osmocom.org/openbscgit clone git://  Git.osmocom.org/libosmo-netifgit clone git://git.osmocom.org/libosmo-sccpgit clone git: // git.osmocom.org/libsmpp34git clone git://GIT.OSMOCOM.ORG/OPENGGSN

3.2 Download & Execute automatic compilation script

wget https://osmocom.org/attachments/download/2438/build_2g.sh777  build_ 2g.shsudo Bash build_2g.sh

0X04 Configuration OPENBSC

4.1 Starting the BTS

Terminal 1:

Osmo-nitb-c ~/.osmocom/open-bsc.cfg-l ~/.osmocom/hlr.sqlite3-p-C--DEBUG=DRLL:DCC:DMM:DRR:DRSL:DNM

Terminal 2:

4242

4.2 Configuring IP

Pc

ip:192.168.31.147 (via WiFi connection)

Router

ip:192.168.31.1

3G Access Point

IP: Unknown

Method 1: Enter the routing background to find the 3G Access point IP

Method 2: Find the 3G Access point IP via Abissip-find

CD openbsc/openbsc/src/ipaccess#orcd openbsc/openbsc/build-2g/src/ipaccesssudo. /abisip-find

4.3 telnet into 3G Access point

Telnet 3G Access point's IP 8090

4.4 SSH Connection

SSH-OKEXALGORITHMS=+DIFFIE-HELLMAN-GROUP1-SHA1 [email protected]192.168. 31.136 Password:newsys

Ipaccess-config

[Email protected]:~/osm/openbsc/openbsc/src/ipaccess$./ipaccess-config--helpipaccess-config (C) the- .by Harald Welte and Othersthis isFree software with absolutely NO warrantyusage:ipaccess-config ip_of_btscommands forwriting to the BTS:-U--unit-ID unit_id Set the UNIT ID of the BTS-O--oml-IP IP Set primary OML IP (IP of your BSC)-I--ip-address ip/mask SetStaticIP address +netmask of BTS-G--ip-gateway IP SetStaticIP Gateway of BTS-R--Restart Restart the BTS (after other operations)-N--nvram-flags flags/MASK Set NVRAM attributes-S--nvattr-SetFLAG Set One additional NVRAM attribute-U--nvattr-unset FLAG Set One additional NVRAM attribute-L--Listen TESTNR Perform specified test number-L--Listen test_name Perform specified TEST-S--stream-id ID Set the IPA stream Identifier forOML-D--software FIRMWARE Download FIRMWARE into btsmiscellaneous commands:-H--help Thistext-H--Help Print parameter details. -F--Firmware firmware provide firmware information-W--write-firmware This would dump the firmware parts to the filesystem. Use with-F.-P--loop Loop The tests executed with the--listen command.

Ipaccess-proxy

 [email protected]:~/osm/openbsc/openbsc/src/ipaccess$./ipaccess-proxy-- helpusage:ipaccess -proxy [Options] Ipaccess -proxy is   a proxy BTS.  -H--help. This help text. -L--listen IP. The IP to listen. -B--bsc IP. The BSC IP address. -G--gprs IP. Take the GPRS NS from   that IP.  -S--disable-color. Disable the color inside the logging message. -e--log-level number. Set the global   LogLevel.  -T--timestamp. Prefix every log message with a timestamp. -V--version. Print the version of OPENBSC. 

0x05 Reference

Https://osmocom.org/projects/cellular-infrastructure/wiki/Build_from_Source
Http://osmocom.org/projects/baseband/wiki/CalypsoBTS
Https://osmocom.org/projects/cellular-infrastructure/wiki/Getting_Started_with_3G
Https://osmocom.org/projects/osmocscn/wiki/Osmocom_3G_-_Getting_Started/3
Https://osmocom.org/projects/cellular-infrastructure/wiki/Configuring_the_ipaccess_nano3G

Getting started with 3G | Ip.access NANO3G+OPENBSC+OSMOCOM-BB Part 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.