Author Topic: bladeRF2 a4 and yate  (Read 8581 times)

Andrey

  • Newbie
  • *
  • Posts: 3
    • View Profile
bladeRF2 a4 and yate
« on: September 25, 2019, 05:23:12 PM »
Hello everybody!
I am trying to launch yate with BladeRF 2 a4 on ubuntu 18!
I am advanced *nix user and have everything done according to manual at https://nuand.com/forums/viewtopic.php?f=5&t=5094#p9358
Proper FPGA is successfully loaded, usblib1 installed, bladerf-cli info shows my sdr okay!

But after running "yate" I get errors.
Bladerf module is loaded!

Loaded module BladeRF using libusb 1.0.20.11004 desc='http://libusb.info'

errors:
Failed to open USB device: USB reset failed - no device found
Failed to create radio interface: USB reset failed - no device found
Failed to reset transceiver

I would appreciate your advice!

Andrey

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: bladeRF2 a4 and yate
« Reply #1 on: October 06, 2019, 02:08:03 PM »
Well, I have solved problem with opening usb device.
Next problem is with failed to reset transciever.
help
Quote
Yate (2319) is starting Sun Oct  6 12:57:58 2019
Loaded module YSOCKS
Loaded module iSAC floating point - based on WebRTC iSAC library version 4.3.0 (SPL version 1.2.0)
Loaded module DumbChannel
Loaded module YJingle
Loaded module Call Forker
Loaded module RegexRoute
Loaded module SIP Channel
Loaded module WaveFile
Loaded module GVoice
Loaded module ToneGen
Loaded module YSTUN
Loaded module FileInfo
Loaded module MUX
Loaded module Conference
Loaded module Javascript
Loaded module WireSniff
Loaded module YRTP
Loaded module iLBC - based on WebRTC iLBC library version 1.1.1
Loaded module CdrBuild
Loaded module MsgSniffer
Loaded module File Transfer
Loaded module CdrCombine
Loaded module MOH
Loaded module PBX
Loaded module Analyzer
Loaded module ExtModule
Loaded module ToneDetector
Loaded module YIAX
Loaded module iLBC - based on iLBC reference library
Loaded module CdrFile
Loaded module RManager
Loaded module Call Generator
Loaded module Radius client
Loaded module Subscriptions
Loaded module Heartbeat
Loaded module Queues
Loaded module Cisco SM
Loaded module MGCP-CA
Loaded module Late Router
Loaded module Cpu
Loaded module CCongestion
Loaded module PBX for database
Loaded module Users Management
Loaded module Monitoring
Loaded module Signalling Channel
Loaded module MGCP-GW
Loaded module SIP Features
Loaded module Call Parking
Loaded module YBTS
Loaded module Analog Detector
Loaded module Analog Channel
Loaded module MRCP
Loaded module Clustering
Loaded module Register for database
Loaded module Accounts from file
Loaded module SigTransport
Loaded module SNMP Agent
Loaded module Cache
Loaded module Registration from file
Loaded module DbWave
Loaded module Presence
Loaded module GSM Transceiver
Loaded module Event Logs
Loaded module Queues Notify
Loaded module CallCounters
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
2019-10-06_12:57:58.101383 <jbserverengine:NOTE> Failed to load entity caps from '/usr/local/etc/yate/jabberentitycaps.xml': I/O error 2 'No such file or directory'
2019-10-06_12:57:58.101455 <jbserverengine:NOTE> No domains configured
Initializing module Jabber Server Features
Initializing module Event Logs
Initializing module DbWave
Initializing module SigTransport
Initializing module Clustering
Initializing module Analog Detector
Initializing module Cpu
2019-10-06_12:57:58.102596 <cpuload:NOTE> Updating CPU core number from 1 to 4
Initializing module MGCP Call Agent
Initializing module Cisco SM
Initializing module Subscriptions
Initializing module CdrFile
Initializing module Javascript
Initializing module MUX
Initializing module YSOCKS
Initializing module iSAC
Initializing module DumbChannel
DumbChannel initialized
Initializing module YJingle
2019-10-06_12:57:58.110041 <jingle:NOTE> Module initialized: localip=MISSING jingle_version=1 singletone=true pending_timeout=10000 anonymous_caller=unk_caller codecs=mulaw,alaw
Initializing module Call Forker
Initializing module RegexRoute
Initializing module SIP Channel
Initializing module WaveFile
Initializing module GVoice
Initializing module ToneGen
Initializing module YSTUN
Initializing module FileInfo
Initializing module Conference
Initializing module WireSniff
2019-10-06_12:57:58.139066 <wiresniff:WARN> Remote address and remote port are not configured
Initializing module YRTP
Initializing module iLBC webrtc
Initializing module CdrBuild
Initializing module MsgSniffer
Initializing module File Transfer
Initializing module CdrCombine
Initializing module MOH
Initializing module PBX
Initializing module Analyzer
Initializing module ExtModule
Initializing module ToneDetector
Initializing module YIAX
Initializing module RManager
Initializing module Call Generator
Initializing module Radius client
2019-10-06_12:57:58.141611 <yradius:NOTE> Local address not set or invalid. Radius functions disabled
Initializing module Queues for database
Initializing module Late Router
Initializing module CCongestion
Initializing module PBX for database
Initializing module Users Management
Initializing module Monitoring
Initializing module Signalling Channel
2019-10-06_12:57:58.143103 <sig:NOTE> Section 'tcapuser_test'. Unknown/missing type '(null)'
Initializing module MGCP Gateway
Initializing module SIP Features
Initializing module Call Parking
Initializing module YBTS
Initializing module Analog Channel
Initializing module MrcpSpeech
Initializing module Register for database
Initializing module Accounts from file
Initializing module SNMP Agent
2019-10-06_12:57:58.154930 <snmpagent:WARN> Could not bind SNMP UDP Listener, error 13 Permission denied
Initializing module Cache
Initializing module Register from file
Initializing module Presence
Initializing module GSM Transceiver
Initializing module Queues Notify
Initializing module Radio Test
Initialization complete
2019-10-06_12:57:58.168500 <jabber:NOTE> Changing supported compression formats to '(null)' old='zlib'
2019-10-06_12:57:58.168582 <jbserverengine:NOTE> TLS not available for outgoing streams
2019-10-06_12:57:58.168712 <ybts:NOTE> YBTSDriver State changed Idle -> Starting restart counter 1/10
2019-10-06_12:57:58.171270 <ybts:NOTE> YBTSDriver 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.1.1 formal build date Oct  6 2019 rev
2019-10-06_12:57:58.186590 <mbts:NOTE> proc 2348 GSMConfig.cpp:80:regenerateBeacon: thread 139919490516800: regenerating system information messages, changemark 1
Starting MBTS...
2019-10-06_12:57:58.186942 <mbts:NOTE> proc 2348 TRXManager.cpp:127:sendCommandPacket: thread 139919490516800: this:0x564c867de5c0 command CMD RESET 1
2019-10-06_12:57:58.187226 <ybts:NOTE> YBTSDriver State changed WaitHandshake -> Running
2019-10-06_12:57:58.188534 >>> RSP RESET ANSWER
2019-10-06_12:57:58.189172   <gsmtrx:CRIT> Failed to create radio interface: Message not handled
2019-10-06_12:57:58.189392 <<< RSP RESET ANSWER
ALERT 139919490516800 12:57:58.1 proc 2348 TRXManager.cpp:225:sendCommand: thread 139919490516800: RESET failed with status 2
2019-10-06_12:57:58.189762 <mbts:NOTE> proc 2348 TRXManager.cpp:153:sendCommandPacket: thread 139919490516800: this:0x564c867de5c0 response RSP RESET 2 to command CMD RESET 1
2019-10-06_12:57:58.189789 <mbts:WARN> proc 2348 TRXManager.cpp:225:sendCommand: thread 139919490516800: RESET failed with status 2
ALERT 139919490516800 12:57:58.1 proc 2348 OpenBTS.cpp:251:main: thread 139919490516800: Failed to reset transceiver
2019-10-06_12:57:58.189847 <mbts:WARN> proc 2348 OpenBTS.cpp:251:main: thread 139919490516800: Failed to reset transceiver
2019-10-06_12:57:58.221612 <nipc:CONF> Please configure country code. See subscribers.conf or use the LMI web interface
Yate engine is initialized and starting up on ubuntu
2019-10-06_12:57:59.117864 <cpuload:NOTE> Updating CPU core number from 1 to 4
2019-10-06_12:58:03.003230 <ybts:NOTE> Peer pid 2348 vanished
2019-10-06_12:58:04.004975 <ybts:NOTE> 'shutdown' command failed
2019-10-06_12:58:04.005137 <ybts:NOTE> Stopping ...
2019-10-06_12:58:04.027888 <ybts:NOTE> YBTSDriver State changed Running -> Idle
2019-10-06_12:58:05.003824 <ybts:NOTE> YBTSDriver State changed Idle -> Starting restart counter 2/10
2019-10-06_12:58:05.006559 <ybts:NOTE> YBTSDriver 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.1.1 formal build date Oct  6 2019 rev
2019-10-06_12:58:05.031233 <mbts:NOTE> proc 2357 GSMConfig.cpp:80:regenerateBeacon: thread 140394454525760: regenerating system information messages, changemark 1
Starting MBTS...
2019-10-06_12:58:05.031921 <mbts:NOTE> proc 2357 TRXManager.cpp:127:sendCommandPacket: thread 140394454525760: this:0x5648128f75c0 command CMD RESET 1
2019-10-06_12:58:05.032035 <ybts:NOTE> YBTSDriver State changed WaitHandshake -> Running
2019-10-06_12:58:05.033243 >>> RSP RESET ANSWER
2019-10-06_12:58:05.033561   <gsmtrx:CRIT> Failed to create radio interface: Message not handled
2019-10-06_12:58:05.033660 <<< RSP RESET ANSWER
2019-10-06_12:58:05.034130 <mbts:NOTE> proc 2357 TRXManager.cpp:153:sendCommandPacket: thread 140394454525760: this:0x5648128f75c0 response RSP RESET 2 to command CMD RESET 1
ALERT 140394454525760 12:58:05.0 proc 2357 TRXManager.cpp:225:sendCommand: thread 140394454525760: RESET failed with status 2
ALERT 140394454525760 12:58:05.0 proc 2357 OpenBTS.cpp:251:main: thread 140394454525760: Failed to reset transceiver2019-10-06_12:58:05.034323 <mbts:WARN> proc 2357 TRXManager.cpp:225:sendCommand: thread 140394454525760: RESET failed with status 2

2019-10-06_12:58:05.035089 <mbts:WARN> proc 2357 OpenBTS.cpp:251:main: thread 140394454525760: Failed to reset transceiver
^C2019-10-06_12:58:05.295706 <ybts:NOTE> 'shutdown' command failed
2019-10-06_12:58:05.295767 <ybts:NOTE> Stopping ...
2019-10-06_12:58:05.318543 <ybts:NOTE> YBTSDriver State changed Running -> Idle
Yate engine is shutting down with code 0
2019-10-06_12:58:05.561703 <NOTE> Soft cancelling 4 running threads
Unloading module Radio Test
Unloading module CallCounters
Unloading module Queues Notify
2019-10-06_12:58:05.570222 <WARN> Unloading 'gsmtrx' removed 0 out of 1 plugins
Unloaded module Presence
Unload module Registration from file
Unloading module Cache
2019-10-06_12:58:05.570377 <WARN> Unloading 'ysnmpagent' removed 0 out of 1 plugins
Unloading module Register for database
Unloading module MRCP
Unloading module Analog Channel
2019-10-06_12:58:05.570660 <WARN> Unloading 'ybts' removed 0 out of 1 plugins
Unloading module Call Parking
Unloading module SIP Features
Unloading module MGCP-GW
Unloading module Signalling Channel
Unloaded module Monitoring
Unloaded module Users Management
Unloading module PBX for database
Unloading module CCongestion
Unloading module Late Router
Unloading module Queues
Unloading module Heartbeat
Unloaded module Radius client
Unloading module Call Generator, clearing 0 calls
Unloading module RManager
Unloading module iLBC with 0 codecs still in use
Unloading module YIAX
2019-10-06_12:58:05.572187 <WARN> Unloading 'tonedetect' removed 0 out of 1 plugins
Unloading module ExtModule
Unloading module Analyzer
Unloading module PBX
Unloading module MOH
Unloading module CdrCombine
Unloading module CdrBuild
Unloading module iLBC webrtc with 0 codecs still in use
Unloading module YRTP
2019-10-06_12:58:05.572752 <WARN> Unloading 'wiresniff' removed 0 out of 1 plugins
Unloading module Conference
Unloading module FileInfo
Unloading module YSTUN
Unloading module ToneGen
Unloading module GVoice
2019-10-06_12:58:05.574936 <WARN> Unloading 'ysipchan' removed 0 out of 1 plugins
Unloading module Call Forker
2019-10-06_12:58:05.575132 <WARN> Unloading 'yjinglechan' removed 0 out of 1 plugins
Unloading module DumbChannel
Unloading module iSAC with 0 codecs still in use
2019-10-06_12:58:05.575379 <WARN> Unloading 'ysockschan' removed 0 out of 1 plugins
Unloading module MUX
2019-10-06_12:58:05.575565 <WARN> Unloading 'javascript' removed 0 out of 1 plugins
Unloading module File Transfer
Unloading module CdrFile
Unloading module Subscriptions
2019-10-06_12:58:05.575774 <WARN> Unloading 'ciscosm' removed 0 out of 1 plugins
Unloading module MGCP-CA
Unloading module ToneDetector
2019-10-06_12:58:05.576076 <WARN> Unloading 'mgcpca' removed 2 out of 1 plugins
Unloading module Cpu
Unloading module Analog Detector
Unloading module Clustering
Unloading module SigTransport
Unloading module Event Logs
Unloading module Jabber Server Features
Unloading module Jabber Server
Unloading module DummyRadio
2019-10-06_12:58:05.577015 <WARN> Exiting with 0 locked mutexes and 9 plugins loaded!
Yate (2319) is stopping Sun Oct  6 12:58:05 2019
Unloading module GSM Transceiver
Unloaded module SNMP Agent
Unloading module YBTS
Unloading module Cisco SM
Unloading module Javascript
Unloading module SIP Channel
Unloading module YJingle
Unloading module YSOCKS


Andrey

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: bladeRF2 a4 and yate
« Reply #2 on: October 06, 2019, 03:10:12 PM »
libusb is latest build from git
libbladerf is latest build from git
firmware and fpga are latest

Quote
$ bladeRF-cli -i
bladeRF> info

  Board:                    Nuand bladeRF 2.0 (bladerf2)
  Serial #:                 6f75efbb7ed143bca616a96e0cc7a368
  VCTCXO DAC calibration:   0x1d9b
  FPGA size:                49 KLE
  FPGA loaded:              yes
  Flash size:               32 Mbit
  USB bus:                  4
  USB address:              2
  USB speed:                SuperSpeed
  Backend:                  libusb
  Instance:                 0

bladeRF> version

  bladeRF-cli version:        1.8.0-git-f03d8433
  libbladeRF version:         2.2.1-git-f03d8433

  Firmware version:           2.3.2
  FPGA version:               0.10.2 (configured by USB host)


nonce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: bladeRF2 a4 and yate
« Reply #3 on: October 08, 2019, 02:04:39 PM »
Someone should pin this....

This will help with the current error but it still may not fully work

https://nuand.com/forums/viewtopic.php?f=5&t=5094#p9358