Page 1 of 1

Unabe to start YateBTS with bladeRF

Posted: Sun Oct 22, 2017 11:56 pm
by anindya
Hello,

I am getting the following error, please help me solve it.My badeRF

2017-10-23_12:18:07.027509 <mbts:NOTE> GSMConfig.cpp:80:regenerateBeacon: regenerating system information messages, changemark 1
Starting MBTS...
2017-10-23_12:18:07.028196 <ybts:NOTE> State changed WaitHandshake -> Running
2017-10-23_12:18:07.028312 <gsmtrx:CRIT> Failed to create radio interface: Message not handled
ALERT 139703783864128 12:18:07.0 TRXManager.cpp:210:sendCommand: RESET failed with status 2
2017-10-23_12:18:07.028484 <mbts:WARN> TRXManager.cpp:210:sendCommand: RESET failed with status 2
ALERT 139703783864128 12:18:07.0 OpenBTS.cpp:251:main: Failed to reset transceiver
2017-10-23_12:18:07.028625 <mbts:WARN> OpenBTS.cpp:251:main: Failed to reset transceiver
^C2017-10-23_12:18:09.807356 <ybts:NOTE> 'shutdown' command failed
2017-10-23_12:18:09.827863 <ybts:NOTE> State changed Running -> Idle
Yate engine is shutting down with code 0
2017-10-23_12:18:10.060151 <NOTE> Soft cancelling 4 running threads

BladeRF - information
bladeRF> info

Serial #: 24c84aaee6eab00bbf8d4299b11f8885
VCTCXO DAC calibration: 0x9623
FPGA size: 40 KLE
FPGA loaded: yes
USB bus: 3
USB address: 11
USB speed: Hi-Speed
Backend: libusb
Instance: 0

bladeRF> version

bladeRF-cli version: 1.3.1-0.2016.01~rc1-3
libbladeRF version: 1.5.1-0.2016.01~rc1-3

Firmware version: 1.6.1-git-053fb13-buildomatic
FPGA version: 0.1.2

Re: Unabe to start YateBTS with bladeRF

Posted: Fri Nov 03, 2017 4:25 am
by alissaknight
Have you figured out what caused this? I just got finished installing BladeRF + YateBTS on Linux Mint Sonya

This program comes with ABSOLUTELY NO WARRANTY.

Use of this software may be subject to other legal restrictions,
including patent licensing and radio spectrum licensing.
All users of this software are expected to comply with applicable
regulations and laws. See the LEGAL file in the source code for
more information.

Release 6.0.0 formal build date Nov 3 2017 rev
2017-11-03_04:23:54.021649 <mbts:NOTE> GSMConfig.cpp:80:regenerateBeacon: regenerating system information messages, changemark 1
Starting MBTS...
2017-11-03_04:23:54.022447 <ybts-signalling:INFO> Received [0x1665bf0]
-----
Primitive: Handshake
Info: 0
-----
2017-11-03_04:23:54.022963 <ybts:NOTE> State changed WaitHandshake -> Running
2017-11-03_04:23:54.023023 <ybts-signalling:INFO> Sending [0x1665bf0]
-----
Primitive: Handshake
Info: 0
-----
2017-11-03_04:23:54.023145 <gsmtrx:CRIT> Failed to create radio interface: Message not handled
ALERT 140218309138240 04:23:54.0 TRXManager.cpp:210:sendCommand: RESET failed with status 2
ALERT 140218309138240 04:23:54.0 OpenBTS.cpp:251:main: Failed to reset transceiver
2017-11-03_04:23:54.023600 <mbts:WARN> TRXManager.cpp:210:sendCommand: RESET failed with status 2
2017-11-03_04:23:54.023719 <mbts:WARN> OpenBTS.cpp:251:main: Failed to reset transceiver
cccc2017-11-03_04:23:58.002184 <ybts:NOTE> Peer pid 17822 vanished
2017-11-03_04:23:58.002222 <ybts:ALL> Restart scheduled in 1ms [0x7f53bd1c4ae0]
2017-11-03_04:23:58.002237 <ybts:ALL> Scheduled stop in 0ms
2017-11-03_04:23:59.000787 <ybts:NOTE> 'shutdown' command failed
2017-11-03_04:23:59.000825 <ybts:ALL> Stopping ...
2017-11-03_04:23:59.004050 <ybts-signalling:ALL> Worker thread terminated [0x1665bf0]
2017-11-03_04:23:59.005925 <ybts-signalling:INFO> Stopped [0x1665bf0]
2017-11-03_04:23:59.010777 <ybts-media:ALL> Worker thread terminated [0x1665910]
2017-11-03_04:23:59.011038 <ybts-media:INFO> Stopped [0x1665910]
2017-11-03_04:23:59.011068 <ybts-command:INFO> Stopped [0x16657b0]
2017-11-03_04:23:59.015964 <transceiver:ALL> Worker thread terminated [0x1665310]
2017-11-03_04:23:59.016189 <transceiver:INFO> Stopped [0x1665310]
2017-11-03_04:23:59.021042 <mbts:ALL> Worker thread terminated [0x1665550]
2017-11-03_04:23:59.021364 <mbts:INFO> Stopped [0x1665550]
2017-11-03_04:23:59.021392 <ybts:NOTE> State changed Running -> Idle
^C2017-11-03_04:23:59.270200 <sip:ALL> Returning false from engine.stop handler
2017-11-03_04:23:59.270254 <iaxengine:INFO> Status changed Listening -> Exiting [0x157d870]
2017-11-03_04:23:59.270275 <iaxengine:ALL> Set terminate timeout=16500ms status=Exiting [0x157d870]
2017-11-03_04:23:59.270315 <iax:INFO> Removed listener (0x157d870) 'iaxengine' status='Exiting'
2017-11-03_04:23:59.271074 <iaxengine:ALL> Thread (0x15861b0) 'YIAXGetEvent' terminated [0x157d870]
2017-11-03_04:23:59.271274 <iaxengine:ALL> Thread (0x1585cc0) 'YIAXListener' terminated [0x157d870]
2017-11-03_04:23:59.271344 <iaxengine:ALL> Thread (0x1585fa0) 'YIAXGetEvent' terminated [0x157d870]
2017-11-03_04:23:59.271420 <iaxengine:ALL> Thread (0x15863c0) 'YIAXGetEvent' terminated [0x157d870]
2017-11-03_04:23:59.271466 <iaxengine:ALL> Thread (0x15866a0) 'YIAXTrunking' terminated [0x157d870]
2017-11-03_04:23:59.273841 <iaxengine:ALL> Thread (0x15923d0) 'YIAXListener' terminated [0x157d870]
2017-11-03_04:23:59.273891 <jingle:ALL> YJGEngineWorker stop running
2017-11-03_04:23:59.273977 <iaxengine:ALL> Thread (0x15921f0) 'YIAXListener' terminated [0x157d870]
2017-11-03_04:23:59.275472 <iaxengine:ALL> Destroyed [0x157d870]
Yate engine is shutting down with code 0
2017-11-03_04:23:59.278918 <jabber:ALL> JBPendingWorker(0) terminated [0x14c76a0]
2017-11-03_04:23:59.278969 <jabber:ALL> Terminated 1 pending worker threads
2017-11-03_04:23:59.279074 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.279188 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.279210 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x14c8f80 (100) to 0x14ca290 (100)
2017-11-03_04:23:59.279243 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.279328 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.279346 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x14f7e80 (100) to 0x14f9560 (100)
2017-11-03_04:23:59.279471 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.279495 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x15724f0 (100) to 0x1572980 (100)
2017-11-03_04:23:59.279516 <sip:ALL> Clearing udp transports reason=Exiting
2017-11-03_04:23:59.279543 <sip:INFO> Listener(UDP,'general') stop listening reason='Exiting' [0x157a550]
2017-11-03_04:23:59.279559 <sip:ALL> Removed transport (0x157a550,'general')
2017-11-03_04:23:59.279571 <sip:INFO> Reset default UDP transport
2017-11-03_04:23:59.285727 <sip:ALL> Transport(general) destroyed [0x157a550]
2017-11-03_04:23:59.285796 <sip:ALL> Endpoint stopped
2017-11-03_04:23:59.285840 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.285969 <sip:ALL> YateSIPEndPoint::~YateSIPEndPoint() [0x1575c70]
2017-11-03_04:23:59.289395 <signalling:ALL> Engine stopped worker thread [0x1646f00]
2017-11-03_04:23:59.289433 <gsmtrx:INFO> Module state changed Waiting -> Idle
2017-11-03_04:23:59.294314 <gsmtrx:ALL> 'control' thread terminated
2017-11-03_04:23:59.294749 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.294785 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x1659540 (100) to 0x165a2c0 (100)
2017-11-03_04:23:59.294857 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.294878 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x165ba10 (100) to 0x165c570 (100)
2017-11-03_04:23:59.294957 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.294978 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x165c570 (100) to 0x165dcc0 (100)
2017-11-03_04:23:59.295039 <queuesnotify:ALL> Cancelling worker(s)
2017-11-03_04:23:59.296818 <queuesnotify:ALL> Worker(s) terminated
2017-11-03_04:23:59.296848 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.296885 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x165ea30 (100) to 0x165f430 (100)
2017-11-03_04:23:59.296964 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.296998 <snmpagent:ALL> ::unload()
2017-11-03_04:23:59.307592 <ALL> Rescanning handler list for 'engine.halt' [0x7ffe2e7251b0] at priority 100
2017-11-03_04:23:59.307689 <ALL> Handler list for 'engine.halt' [0x7ffe2e7251b0] changed, skipping from 0x1666490 (100) to 0x16677c0 (100)
2017-11-03_04:23:59.509957 >>> ThreadPrivate::killall()
2017-11-03_04:23:59.510018 <NOTE> Soft cancelling 4 running threads
2017-11-03_04:23:59.510044 <INFO> Stopping ThreadPrivate 'RManager Listener' [0x158df50]
2017-11-03_04:23:59.510128 <INFO> Stopping ThreadPrivate 'MGCP Receive' [0x1668c40]
2017-11-03_04:23:59.510153 <INFO> Stopping ThreadPrivate 'MGCP Process' [0x1668eb0]
2017-11-03_04:23:59.510174 <INFO> Stopping ThreadPrivate 'Engine Worker' [0x18272f0]
2017-11-03_04:23:59.520417 <<< ThreadPrivate::killall()
2017-11-03_04:23:59.522404 <sig/isup.decode:INFO> ISUP Call Controller destroyed [0x16454b0]
2017-11-03_04:23:59.522455 <sig/isup.encode:INFO> ISUP Call Controller destroyed [0x1646640]
Unloading module Radio Test
2017-11-03_04:23:59.525213 >>> Plugin::~Plugin() "radiotest" [0x7f53ba5dfda0]
2017-11-03_04:23:59.525246 <<< Plugin::~Plugin()
Unloading module Analog Channel
2017-11-03_04:23:59.525393 >>> Plugin::~Plugin() "analog" [0x7f53bae39660]
2017-11-03_04:23:59.525417 <<< Plugin::~Plugin()
Unloading module MGCP-GW
2017-11-03_04:23:59.525567 >>> Plugin::~Plugin() "mgcpgw" [0x7f53bb2651e0]
2017-11-03_04:23:59.525582 <<< Plugin::~Plugin()
2017-11-03_04:23:59.525632 <WARN> Unloading 'ysnmpagent' removed 0 out of 1 plugins
Unloading module Heartbeat
2017-11-03_04:23:59.525695 >>> Plugin::~Plugin() "heartbeat" [0x7f53bb6ad260]
2017-11-03_04:23:59.525717 <<< Plugin::~Plugin()
Unloading module Register for database
2017-11-03_04:23:59.525826 >>> Plugin::~Plugin() "register" [0x7f53bbeee660]
2017-11-03_04:23:59.525858 <<< Plugin::~Plugin()
Unloaded module Radius client
2017-11-03_04:23:59.525949 >>> Plugin::~Plugin() "yradius" [0x7f53bc0ffa80]
2017-11-03_04:23:59.525962 <<< Plugin::~Plugin()
Unloading module Call Parking
2017-11-03_04:23:59.526044 >>> Plugin::~Plugin() "park" [0x7f53bc305240]
2017-11-03_04:23:59.526056 <<< Plugin::~Plugin()
Unloading module Queues Notify
2017-11-03_04:23:59.526149 >>> Plugin::~Plugin() "queuesnotify" [0x7f53bc947480]
2017-11-03_04:23:59.526161 <<< Plugin::~Plugin()
Unloading module MRCP
2017-11-03_04:23:59.526229 >>> Plugin::~Plugin() "mrcp" [0x7f53bcb4f280]
2017-11-03_04:23:59.526241 <<< Plugin::~Plugin()
Unloaded module Monitoring
2017-11-03_04:23:59.526314 >>> Plugin::~Plugin() "monitoring" [0x7f53bcd6b2c0]
2017-11-03_04:23:59.526326 <<< Plugin::~Plugin()
Unloaded module Users Management
2017-11-03_04:23:59.526396 >>> Plugin::~Plugin() "users" [0x7f53bcf72260]
2017-11-03_04:23:59.526407 <<< Plugin::~Plugin()
Unloading module YBTS
2017-11-03_04:23:59.526506 >>> Plugin::~Plugin() "ybts" [0x7f53bd1c4ae0]
2017-11-03_04:23:59.526519 <<< Plugin::~Plugin()
Unloading module CCongestion
2017-11-03_04:23:59.526626 >>> Plugin::~Plugin() "ccongestion" [0x7f53bd3cb2c0]
2017-11-03_04:23:59.526643 <<< Plugin::~Plugin()
Unloaded module Presence
2017-11-03_04:23:59.526730 >>> Plugin::~Plugin() "presence" [0x7f53bd5d42a0]
2017-11-03_04:23:59.526743 <<< Plugin::~Plugin()
Unloading module Late Router
2017-11-03_04:23:59.526816 >>> Plugin::~Plugin() "lateroute" [0x7f53bd7d9220]
2017-11-03_04:23:59.526829 <<< Plugin::~Plugin()
Unload module Registration from file
2017-11-03_04:23:59.526886 >>> Plugin::~Plugin() "regfile" [0x7f53bd9e2380]
2017-11-03_04:23:59.526896 <<< Plugin::~Plugin()
Unloading module Queues
2017-11-03_04:23:59.526959 >>> Plugin::~Plugin() "queues" [0x7f53bddf1560]
2017-11-03_04:23:59.526978 <<< Plugin::~Plugin()
2017-11-03_04:23:59.527053 >>> Plugin::~Plugin() "pbxassist" [0x7f53be001400]
2017-11-03_04:23:59.527066 <<< Plugin::~Plugin()
2017-11-03_04:23:59.527131 <WARN> Unloading 'gsmtrx' removed 0 out of 1 plugins
Unloading module PBX for database
2017-11-03_04:23:59.527170 >>> Plugin::~Plugin() "dbpbx" [0x7f53be67b2a0]
2017-11-03_04:23:59.527179 <<< Plugin::~Plugin()
Unloading module SIP Features
2017-11-03_04:23:59.527247 >>> Plugin::~Plugin() "sipfeatures" [0x7f53bea8d360]
2017-11-03_04:23:59.527258 <<< Plugin::~Plugin()
2017-11-03_04:23:59.527292 <WARN> Unloading 'ysigchan' removed 0 out of 1 plugins
Unloading module Cache
2017-11-03_04:23:59.527333 >>> Plugin::~Plugin() "cache" [0x7f53bf61d960]
2017-11-03_04:23:59.527343 <<< Plugin::~Plugin()
2017-11-03_04:23:59.527396 >>> Plugin::~Plugin() "accfile" [0x7f53bf823280]
2017-11-03_04:23:59.527408 <<< Plugin::~Plugin()
Unloading module CallCounters
2017-11-03_04:23:59.527473 >>> Plugin::~Plugin() "callcounters" [0x7f53bfa291c0]
2017-11-03_04:23:59.527483 <<< Plugin::~Plugin()
Unloading module iLBC with 0 codecs still in use
2017-11-03_04:23:59.527595 >>> Plugin::~Plugin() "ilbccodec" [0x7f53bfe51000]
2017-11-03_04:23:59.527606 <<< Plugin::~Plugin()
Unloading module PBX
2017-11-03_04:23:59.527677 >>> Plugin::~Plugin() "pbx" [0x7f53c00584c0]
2017-11-03_04:23:59.527688 <<< Plugin::~Plugin()
Unloading module GVoice
2017-11-03_04:23:59.527750 >>> Plugin::~Plugin() "gvoice" [0x7f53c025e480]
2017-11-03_04:23:59.527761 <<< Plugin::~Plugin()
Unloading module RManager
2017-11-03_04:23:59.527811 >>> Plugin::~Plugin() "rmanager" [0x7f53c046f860]
2017-11-03_04:23:59.527820 <<< Plugin::~Plugin()
2017-11-03_04:23:59.527853 <WARN> Unloading 'yjinglechan' removed 0 out of 1 plugins
Unloading module YIAX
2017-11-03_04:23:59.527896 >>> Plugin::~Plugin() "iax" [0x7f53c0f4d500]
2017-11-03_04:23:59.527906 <<< Plugin::~Plugin()
Unloading module ToneGen
2017-11-03_04:23:59.528323 >>> Plugin::~Plugin() "tone" [0x7f53c115d620]
2017-11-03_04:23:59.528335 <<< Plugin::~Plugin()
2017-11-03_04:23:59.528471 <WARN> Unloading 'ysipchan' removed 0 out of 1 plugins
Unloading module FileInfo
2017-11-03_04:23:59.528524 >>> Plugin::~Plugin() "fileinfo" [0x7f53c15d2c00]
2017-11-03_04:23:59.528532 <<< Plugin::~Plugin()
^C

Re: Unabe to start YateBTS with bladeRF

Posted: Fri Nov 03, 2017 4:37 am
by alissaknight
Here is how I installed Yate + GNUradio, etc:
Install gnuradio and gqrx

$ apt-get install gnuradio libboost-all-dev gr-osmosdr gqrx-sdr

Install Apache2 and PHP
$ apt-get install apache2
$ add-apt-repository ppa:ondrej/php
$ apt-get update
$ apt-get install php5.6


Install Yate
$ addgroup yate
$ usermod -a -G yate myuser
$ apt-get install autoconf doxygen build-essential subversion
$ svn checkout http://voip.null.ro/svn/yate/trunk
$ mv trunk yate
$ cd yate ; ./autogen.sh ; ./configure --prefix=/usr/local ; make ; make install-noapi ; ldconfig

Install YateBTS
Download latest yatebts from yatebts.com

$ tar zxvf <filename>
$ ./autogen.sh ; ./configure --prefix=/usr/local ; make install ; ldconfig
$ touch /usr/local/etc/yate/snmp_data.conf /usr/local/etc/yate/tmsidata.conf
$ chown root:yate /usr/local/etc/yate/*.conf
$ chmod g+w /usr/local/etc/yate/*.conf

Configure your ybts.conf
Edit /usr/local/etc/yate/ybts.conf with your local MCC, MNC, etc

NOTE: Mobile Country Codes (MCC) are used in wireless telephone networks (GSM, CDMA, UMTS, etc.) in order to identify the country which a mobile subscriber belongs to. In order to uniquely identify a mobile subscribers network the MCC is combined with a Mobile Network Code (MNC). The combination of MCC and MNC is called HNI (Home network identity) and is the combination of both in one string (e.g. MCC= 262 and MNC = 01 results in an HNI of 26201). If you combine the HNI with the MSIN (Mobile Subscriber Identification Number) the result is the so called IMSI (integrated mobile subscriber identify). Below you can browse/search the list of countries and their MCCs for free in order to identify any MCC, MNC or HNI of the world.

In order to obtain the ARFCN/UARFCN/EARFCN, you will need to enter "Field Test Mode" in your phone. This varies greatly from phone to phone. In general, all involve dialing certain special codes in the dialer in order to bring up the hidden options. 

Some common ones are:
Samsung (Android): *#*#197328640#*#* or *#0011#
Sony (Android): *#*#*386#*#* or *#*#*585*0000#*#* 
iPhone (all): *3001#12345#*
HTC (Android): *#*#7262626#*#*

Remember to use the "downlink" or "RX" (U)ARFCN

Valid MCC/MNC is: http://www.mcc-mnc.com/
$ vi /usr/local/etc/yate/ybts.conf

Non-privileged users cannot bind sockets on ports lower than 1024. Therefore, we must change the SNMP ports. (Note that clients will need to be aware of this, if you plan to use SNMP.)
To do this, edit /usr/local/etc/yate/ysnmpagent.conf and look for the following lines:
;port=161
;remote_port=162
Uncomment these by removing the preceding ; character, and set these to available ports greater than or equal to 1024.
Edit Subscribers.conf
Country_code=YOURCOUNTRYCODE
Regexp=.*
WARNING Using the .* regular expression will make EVERY GSM phone in your area connect to your BTS.


Install Network-in-a-Box (NIB) for Web UI
$ cd /var/www/html
$ ln -s /usr/local/share/yate/nipc_web nipc
$ chmod -R a+rw /usr/local/etc/yate
$ /etc/init.d/apache2 start

Here is how I installed BladeRF

Install libbladeRF and BladeRF-cli

Easy installation for Ubuntu: The bladeRF PPA
$ sudo add-apt-repository ppa:bladerf/bladerf
$ sudo apt-get update
$ sudo apt-get install bladerf libbladerf-dev bladerf-firmware-fx3 bladerf-fpga-hostedx40


Additional Stuff
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 build-essential cmake libncurses5-dev libtecla1 libtecla-dev pkg-config git wget

To install documentation
sudo apt-get install doxygen help2man pandoc



Here is all my info:
alissaknight@alissaknight-lnx /etc $ bladeRF-cli -p

Backend: libusb
Serial: c95955c78e2dc4af24b8679f741394f4
USB Bus: 1
USB Address: 4

alissaknight@alissaknight-lnx /etc $ bladeRF-cli info
alissaknight@alissaknight-lnx /etc $ bladeRF-cli -i
bladeRF> info

Serial #: c95955c78e2dc4af24b8679f741394f4
VCTCXO DAC calibration: 0x8fb1
FPGA size: 40 KLE
FPGA loaded: yes
USB bus: 1
USB address: 4
USB speed: Hi-Speed
Backend: libusb
Instance: 0


Again, here is what I'm getting when starting Yate:

alissaknight-lnx yate-bts # yate -s
Supervisor (20590) is starting, max sanity 5
Yate (20591) is starting Fri Nov 3 04:27:38 2017
Loaded module CdrBuild
Loaded module Call Generator
Loaded module CdrCombine
Loaded module RegexRoute
Loaded module MOH
Loaded module WaveFile
Loaded module Analyzer
Loaded module Javascript
Loaded module YSTUN
Loaded module ExtModule
Loaded module ToneDetector
Loaded module iSAC floating point - based on WebRTC iSAC library version 4.3.0 (SPL version 1.2.0)
Loaded module MsgSniffer
Loaded module DumbChannel
Loaded module Conference
Loaded module File Transfer
Loaded module iLBC - based on WebRTC iLBC library version 1.1.1
Loaded module Call Forker
Loaded module YRTP
Loaded module YSOCKS
Loaded module FileInfo
Loaded module SIP Channel
Loaded module ToneGen
Loaded module YIAX
Loaded module YJingle
Loaded module MUX
Loaded module CdrFile
Loaded module RManager
Loaded module GVoice
Loaded module PBX
Loaded module iLBC - based on iLBC reference library
Loaded module Clustering
Loaded module CallCounters
Loaded module Accounts from file
Loaded module Cache
Loaded module Event Logs
Loaded module Signalling Channel
Loaded module SIP Features
Loaded module Cpu
Loaded module PBX for database
Loaded module GSM Transceiver
Loaded module Queues
Loaded module DbWave
Loaded module Registration from file
Loaded module Late Router
Loaded module Presence
Loaded module CCongestion
Loaded module YBTS
Loaded module Users Management
Loaded module Monitoring
Loaded module MRCP
Loaded module Queues Notify
Loaded module MGCP-CA
Loaded module Call Parking
Loaded module Radius client
Loaded module Register for database
Loaded module Subscriptions
Loaded module Analog Detector
Loaded module Cisco SM
Loaded module Heartbeat
Loaded module SNMP Agent
Loaded module MGCP-GW
Loaded module SigTransport
Loaded module Analog Channel
Loaded module Jabber Server Features
Loaded module Jabber Server
Loaded module DummyRadio
Loaded module Radio Test
Initializing plugins
Initializing module DummyRadio
Initializing module Jabber Server
2017-11-03_04:27:38.767666 <jbserverengine:NOTE> Failed to load entity caps from '/usr/local/etc/yate/jabberentitycaps.xml': I/O error 2 'No such file or directory'
2017-11-03_04:27:38.767678 <jbserverengine:NOTE> No domains configured
Initializing module Jabber Server Features
Initializing module SigTransport
Initializing module Cisco SM
Initializing module Analog Detector
Initializing module Subscriptions
Initializing module MGCP Call Agent
Initializing module DbWave
Initializing module Cpu
2017-11-03_04:27:38.768893 <cpuload:NOTE> Updating CPU core number from 1 to 4
Initializing module Event Logs
Initializing module Clustering
Initializing module CdrFile
Initializing module MUX
Initializing module YSOCKS
Initializing module Javascript
Initializing module CdrBuild
Initializing module Call Generator
Initializing module CdrCombine
Initializing module RegexRoute
Initializing module MOH
Initializing module WaveFile
Initializing module Analyzer
Initializing module YSTUN
Initializing module ExtModule
Initializing module ToneDetector
Initializing module iSAC
Initializing module MsgSniffer
Initializing module DumbChannel
DumbChannel initialized
Initializing module Conference
Initializing module File Transfer
Initializing module iLBC webrtc
Initializing module Call Forker
Initializing module YRTP
Initializing module FileInfo
Initializing module SIP Channel
Initializing module ToneGen
Initializing module YIAX
Initializing module YJingle
2017-11-03_04:27:38.800279 <jingle:NOTE> Module initialized: localip=MISSING jingle_version=1 singletone=true pending_timeout=10000 anonymous_caller=unk_caller codecs=mulaw,alaw
Initializing module RManager
Initializing module GVoice
Initializing module PBX
Initializing module Accounts from file
Initializing module Cache
Initializing module Signalling Channel
2017-11-03_04:27:38.800731 <sig:NOTE> Section 'tcapuser_test'. Unknown/missing type '(null)'
Initializing module SIP Features
Initializing module PBX for database
Initializing module GSM Transceiver
Initializing module Queues for database
Initializing module Register from file
Initializing module Late Router
Initializing module Presence
Initializing module CCongestion
Initializing module YBTS
Initializing module Users Management
Initializing module Monitoring
Initializing module MrcpSpeech
Initializing module Queues Notify
Initializing module Call Parking
Initializing module Radius client
2017-11-03_04:27:38.802097 <yradius:NOTE> Local address not set or invalid. Radius functions disabled
Initializing module Register for database
Initializing module SNMP Agent
Initializing module MGCP Gateway
Initializing module Analog Channel
Initializing module Radio Test
Initialization complete
2017-11-03_04:27:38.806460 <jabber:NOTE> Changing supported compression formats to '(null)' old='zlib'
2017-11-03_04:27:38.806473 <jbserverengine:NOTE> TLS not available for outgoing streams
2017-11-03_04:27:38.806525 <ybts:NOTE> State changed Idle -> Starting restart counter 1/10
2017-11-03_04:27:38.806829 <ybts:NOTE> State changed Starting -> WaitHandshake
MBTS connected to YBTS
Yate-BTS MBTS Component
Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
Copyright 2010 Kestrel Signal Processing, Inc.
Copyright 2011, 2012, 2013 Range Networks, Inc.
Copyright 2013, 2014 Null Team Impex SRL
Copyright 2014 Legba, Inc.
"OpenBTS" is a registered trademark of Range Networks, Inc.

Contributors:
SC Null Team Impex SRL:
Paul Chitescu
Legba, Inc.
David Burgess
Range Networks, Inc.:
David Burgess, Harvind Samra, Donald Kirker, Doug Brown,
Pat Thompson, Kurtis Heimerl
Kestrel Signal Processing, Inc.:
David Burgess, Harvind Samra, Raffi Sevlian, Roshan Baliga
GNU Radio:
Johnathan Corgan
Others:
Anne Kwong, Jacob Appelbaum, Joshua Lackey, Alon Levy
Alexander Chemeris, Alberto Escudero-Pascual
Incorporated L/GPL libraries and components:
libusb, LGPL 2.1, various copyright holders, www.libusb.org
Incorporated BSD/MIT-style libraries and components:
A5/1 Pedagogical Implementation, Simplified BSD License,
Copyright 1998-1999 Marc Briceno, Ian Goldberg, and David Wagner
Incorporated public domain libraries and components:
sqlite3, released to public domain 15 Sept 2001, www.sqlite.org


This program comes with ABSOLUTELY NO WARRANTY.

Use of this software may be subject to other legal restrictions,
including patent licensing and radio spectrum licensing.
All users of this software are expected to comply with applicable
regulations and laws. See the LEGAL file in the source code for
more information.

Release 6.0.0 formal build date Nov 3 2017 rev
2017-11-03_04:27:38.811108 <mbts:NOTE> GSMConfig.cpp:80:regenerateBeacon: regenerating system information messages, changemark 1
Starting MBTS...
2017-11-03_04:27:38.811365 <ybts:NOTE> State changed WaitHandshake -> Running
2017-11-03_04:27:38.811452 <gsmtrx:CRIT> Failed to create radio interface: Message not handled
ALERT 139993912346432 04:27:38.8 TRXManager.cpp:210:sendCommand: RESET failed with status 2
2017-11-03_04:27:38.811550 <mbts:WARN> TRXManager.cpp:210:sendCommand: RESET failed with status 2
ALERT 139993912346432 04:27:38.8 OpenBTS.cpp:251:main: Failed to reset transceiver
2017-11-03_04:27:38.811628 <mbts:WARN> OpenBTS.cpp:251:main: Failed to reset transceiver
Yate engine is initialized and starting up on alissaknight-lnx
2017-11-03_04:27:39.772330 <cpuload:NOTE> Updating CPU core number from 1 to 4
2017-11-03_04:27:44.001682 <ybts:NOTE> Peer pid 20620 vanished
2017-11-03_04:27:45.000820 <ybts:NOTE> 'shutdown' command failed
2017-11-03_04:27:45.021234 <ybts:NOTE> State changed Running -> Idle
2017-11-03_04:27:46.004021 <ybts:NOTE> State changed Idle -> Starting restart counter 2/10
2017-11-03_04:27:46.005168 <ybts:NOTE> State changed Starting -> WaitHandshake
MBTS connected to YBTS
Yate-BTS MBTS Component
Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
Copyright 2010 Kestrel Signal Processing, Inc.
Copyright 2011, 2012, 2013 Range Networks, Inc.
Copyright 2013, 2014 Null Team Impex SRL
Copyright 2014 Legba, Inc.
"OpenBTS" is a registered trademark of Range Networks, Inc.

Contributors:
SC Null Team Impex SRL:
Paul Chitescu
Legba, Inc.
David Burgess
Range Networks, Inc.:
David Burgess, Harvind Samra, Donald Kirker, Doug Brown,
Pat Thompson, Kurtis Heimerl
Kestrel Signal Processing, Inc.:
David Burgess, Harvind Samra, Raffi Sevlian, Roshan Baliga
GNU Radio:
Johnathan Corgan
Others:
Anne Kwong, Jacob Appelbaum, Joshua Lackey, Alon Levy
Alexander Chemeris, Alberto Escudero-Pascual
Incorporated L/GPL libraries and components:
libusb, LGPL 2.1, various copyright holders, www.libusb.org
Incorporated BSD/MIT-style libraries and components:
A5/1 Pedagogical Implementation, Simplified BSD License,
Copyright 1998-1999 Marc Briceno, Ian Goldberg, and David Wagner
Incorporated public domain libraries and components:
sqlite3, released to public domain 15 Sept 2001, www.sqlite.org


This program comes with ABSOLUTELY NO WARRANTY.

Use of this software may be subject to other legal restrictions,
including patent licensing and radio spectrum licensing.
All users of this software are expected to comply with applicable
regulations and laws. See the LEGAL file in the source code for
more information.

Release 6.0.0 formal build date Nov 3 2017 rev
2017-11-03_04:27:46.022569 <mbts:NOTE> GSMConfig.cpp:80:regenerateBeacon: regenerating system information messages, changemark 1
Starting MBTS...
2017-11-03_04:27:46.023390 <ybts:NOTE> State changed WaitHandshake -> Running
2017-11-03_04:27:46.023541 <gsmtrx:CRIT> Failed to create radio interface: Message not handled
ALERT 140585945040704 04:27:46.0 TRXManager.cpp:210:sendCommand: RESET failed with status 2
2017-11-03_04:27:46.023735 <mbts:WARN> TRXManager.cpp:210:sendCommand: RESET failed with status 2
ALERT 140585945040704 04:27:46.0 OpenBTS.cpp:251:main: Failed to reset transceiver
2017-11-03_04:27:46.023807 <mbts:WARN> OpenBTS.cpp:251:main: Failed to reset transceiver
2017-11-03_04:27:51.001634 <ybts:NOTE> Peer pid 20634 vanished
2017-11-03_04:27:52.002994 <ybts:NOTE> 'shutdown' command failed
2017-11-03_04:27:52.023447 <ybts:NOTE> State changed Running -> Idle
2017-11-03_04:27:53.002343 <ybts:NOTE> State changed Idle -> Starting restart counter 3/10
2017-11-03_04:27:53.003734 <ybts:NOTE> State changed Starting -> WaitHandshake
MBTS connected to YBTS
Yate-BTS MBTS Component
Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
Copyright 2010 Kestrel Signal Processing, Inc.
Copyright 2011, 2012, 2013 Range Networks, Inc.
Copyright 2013, 2014 Null Team Impex SRL
Copyright 2014 Legba, Inc.
"OpenBTS" is a registered trademark of Range Networks, Inc.

Contributors:
SC Null Team Impex SRL:
Paul Chitescu
Legba, Inc.
David Burgess
Range Networks, Inc.:
David Burgess, Harvind Samra, Donald Kirker, Doug Brown,
Pat Thompson, Kurtis Heimerl
Kestrel Signal Processing, Inc.:
David Burgess, Harvind Samra, Raffi Sevlian, Roshan Baliga
GNU Radio:
Johnathan Corgan
Others:
Anne Kwong, Jacob Appelbaum, Joshua Lackey, Alon Levy
Alexander Chemeris, Alberto Escudero-Pascual
Incorporated L/GPL libraries and components:
libusb, LGPL 2.1, various copyright holders, www.libusb.org
Incorporated BSD/MIT-style libraries and components:
A5/1 Pedagogical Implementation, Simplified BSD License,
Copyright 1998-1999 Marc Briceno, Ian Goldberg, and David Wagner
Incorporated public domain libraries and components:
sqlite3, released to public domain 15 Sept 2001, www.sqlite.org


This program comes with ABSOLUTELY NO WARRANTY.

Use of this software may be subject to other legal restrictions,
including patent licensing and radio spectrum licensing.
All users of this software are expected to comply with applicable
regulations and laws. See the LEGAL file in the source code for
more information.

Release 6.0.0 formal build date Nov 3 2017 rev
2017-11-03_04:27:53.020501 <mbts:NOTE> GSMConfig.cpp:80:regenerateBeacon: regenerating system information messages, changemark 1
Starting MBTS...
2017-11-03_04:27:53.021152 <ybts:NOTE> State changed WaitHandshake -> Running
2017-11-03_04:27:53.021200 <gsmtrx:CRIT> Failed to create radio interface: Message not handled
ALERT 140470942578496 04:27:53.0 TRXManager.cpp:210:sendCommand: RESET failed with status 2
2017-11-03_04:27:53.021445 <mbts:WARN> TRXManager.cpp:210:sendCommand: RESET failed with status 2
ALERT 140470942578496 04:27:53.0 OpenBTS.cpp:251:main: Failed to reset transceiver
2017-11-03_04:27:53.021529 <mbts:WARN> OpenBTS.cpp:251:main: Failed to reset transceiver
^C2017-11-03_04:27:57.073536 <ybts:NOTE> Peer pid 20641 vanished
2017-11-03_04:27:57.077017 <ybts:NOTE> 'shutdown' command failed
2017-11-03_04:27:57.097622 <ybts:NOTE> State changed Running -> Idle
Yate engine is shutting down with code 0
2017-11-03_04:27:57.330052 <NOTE> Soft cancelling 4 running threads
Unloading module Radio Test
Unloading module Analog Channel
Unloading module MGCP-GW
2017-11-03_04:27:57.346090 <WARN> Unloading 'ysnmpagent' removed 0 out of 1 plugins
Unloading module Heartbeat
Unloading module Register for database
Unloaded module Radius client
Unloading module Call Parking
Unloading module Queues Notify
Unloading module MRCP
Unloaded module Monitoring
Unloaded module Users Management
Unloading module YBTS
Unloading module CCongestion
Unloaded module Presence
Unloading module Late Router
Unload module Registration from file
Unloading module Queues
2017-11-03_04:27:57.347717 <WARN> Unloading 'gsmtrx' removed 0 out of 1 plugins
Unloading module PBX for database
Unloading module SIP Features
2017-11-03_04:27:57.347910 <WARN> Unloading 'ysigchan' removed 0 out of 1 plugins
Unloading module Cache
Unloading module CallCounters
Unloading module iLBC with 0 codecs still in use
Unloading module PBX
Unloading module GVoice
Unloading module RManager
2017-11-03_04:27:57.348562 <WARN> Unloading 'yjinglechan' removed 0 out of 1 plugins
Unloading module YIAX
Unloading module ToneGen
2017-11-03_04:27:57.351442 <WARN> Unloading 'ysipchan' removed 0 out of 1 plugins
Unloading module FileInfo
Unloading module YRTP
Unloading module Call Forker
Unloading module iLBC webrtc with 0 codecs still in use
Unloading module Conference
Unloading module DumbChannel
Unloading module iSAC with 0 codecs still in use
2017-11-03_04:27:57.353073 <WARN> Unloading 'tonedetect' removed 0 out of 1 plugins
Unloading module ExtModule
Unloading module YSTUN
Unloading module Analyzer
Unloading module MOH
Unloading module CdrCombine
Unloading module Call Generator, clearing 0 calls
Unloading module CdrBuild
2017-11-03_04:27:57.353658 <WARN> Unloading 'javascript' removed 0 out of 1 plugins
Unloading module File Transfer
2017-11-03_04:27:57.353726 <WARN> Unloading 'ysockschan' removed 0 out of 1 plugins
Unloading module MUX
Unloading module CdrFile
Unloading module Clustering
Unloading module Event Logs
Unloading module Cpu
Unloading module MGCP-CA
Unloading module SIP Channel
Unloading module ToneDetector
2017-11-03_04:27:57.354250 <WARN> Unloading 'mgcpca' removed 3 out of 1 plugins
Unloading module Subscriptions
Unloading module Analog Detector
Unloading module Cisco SM
Unloading module SigTransport
Unloading module Jabber Server Features
Unloading module Jabber Server
Unloading module DummyRadio
2017-11-03_04:27:57.354656 <WARN> Exiting with 0 locked mutexes and 6 plugins loaded!
Yate (20591) is stopping Fri Nov 3 04:27:57 2017
Unloaded module SNMP Agent
Unloading module GSM Transceiver
Unloading module Signalling Channel
Unloading module YJingle
Unloading module YSOCKS
Unloading module Javascript
Supervisor: child 20591 exited with code 0
Supervisor (20590) exiting with code 0

Re: Unabe to start YateBTS with bladeRF

Posted: Thu Nov 30, 2017 11:11 am
by bglod
What guide were you using to set this up? Evilsocket's guide uses libbladeRF version 0.16.2, so that might be a possible cause of this issue. Are you able to get more verbose output from Yate to determine the actual cause of this error?

Re: Unabe to start YateBTS with bladeRF

Posted: Thu Nov 30, 2017 6:34 pm
by alissaknight
Hi blogd,

This issue was resolved. It was caused by libbladerf not getting compiled :)

Re: Unabe to start YateBTS with bladeRF

Posted: Fri Dec 01, 2017 12:15 pm
by bglod
Wonderful! glad you figured it out and shared the solution. Would you mind sharing the bladeRF version info so it will help others who may have a similar problem? You can do this by running the command:

Code: Select all

bladeRF-cli -e version

Re: Unabe to start YateBTS with bladeRF

Posted: Tue Jan 09, 2018 3:21 am
by lincolnq
I am having the same problem (2018-01-09_10:19:22.659953 <gsmtrx:CRIT> Failed to create radio interface: Message not handled) during startup. I am also using a bladeRF x40. I can connect to the bladeRF using bladerf-cli and the versions I get are as follows:

Code: Select all

$ bladeRF-cli -e version

  bladeRF-cli version:        1.5.1-git-8b420ebc
  libbladeRF version:         1.9.0-git-8b420ebc

  Firmware version:           2.0.0
  FPGA version:               0.6.0
I tried compiling libbladerf from source as suggested by a previous commenter and that didn't seem to help. I can try getting an older libbladerf version, but I'm skeptical that this is the real problem. Any ideas?

Re: Unabe to start YateBTS with bladeRF

Posted: Tue Jan 09, 2018 3:32 am
by lincolnq
Never mind, I solved my own issue. I needed to have libusb-1.0-0-dev installed when compiling yate. Here was the solution: http://forum.yate.ro/index.php?topic=1310.0
It seems that the BladeRF module (ybladerf.yate) is missing. (See : http://forum.yate.ro/index.php?topic=12 ... 96#msg4896)

If you compiled and installed yate by yourself, you might not have had the libusb-1.0-devel support at configure time. Install the development libraries for libusb-1.0, reconfigure Yate (and you can check in config log that libusb was detected) and re-compile, reinstall.
After this, check that in yate_src/modules/radio/ you have ybladerf.yate