Author Topic: Yate Failed to open usb Device  (Read 20139 times)

rockthestreet81

  • Newbie
  • *
  • Posts: 1
    • View Profile
Yate Failed to open usb Device
« on: November 21, 2018, 10:52:12 AM »
Hello im trying to run Yate with Yate-Bts on Ubuntu16.04 and BladeRF 2.0 xA4

I followed this Script:
https://gist.github.com/smarek/b538465a711edc7e6d7652c82e76d374

I have installed this versions:
an0n@an0n-pc:~$ bladeRF-cli -i
bladeRF> version

  bladeRF-cli version:        1.7.0-git-0bc1f8c
  libbladeRF version:         2.1.0-git-0bc1f8c

  Firmware version:           2.3.1
  FPGA version:               0.9.0 (configured from SPI flash)

bladeRF> info

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

Starting Yate i become following error's something is wrong with Yate transeiver and USB


I copied only the errors after starting!
an0n@an0n-pc:~$ sudo yate -vv -CDoa

2018-11-21_18:31:07.904076 <javascript:WARN> Failed to parse 'nipc' script: /usr/local/share/yate/scripts/nipc.js
2018-11-21_18:31:07.904110 <ybts:WARN> Failed to load script='nipc', error='Failed to load script from file 'nipc.js'


2018-11-21_18:31:07.915117 <bladerf/1:WARN> Failed to open USB device: USB reset failed - no device found [0x7fe4dc0010f0]
2018-11-21_18:31:07.915227 <gsmtrx:GOON> Failed to create radio interface: USB reset failed - no device found
ALERT 140140529350464 18:31:07.9 TRXManager.cpp:207:sendCommand: RESET failed with status 2 extra: code=524288
2018-11-21_18:31:07.915369 <mbts:WARN> TRXManager.cpp:207:sendCommand: RESET failed with status 2 extra: code=524288
2018-11-21_18:31:07.915418 <ybts-signalling:WARN> Peer fatal stop notification 'RadioError' code=0x80000 (HardwareNotAvailable) operation=RESET [0x15809d0]
ALERT 140140529350464 18:31:08.1 OpenBTS.cpp:251:main: Failed to reset transceiver
2018-11-21_18:31:08.116342 <mbts:WARN> OpenBTS.cpp:251:main: Failed to reset transceiver

Here are the full messages after starting yate!
an0n@an0n-pc:~$ sudo yate -vv -CDoa
[sudo] Passwort für an0n:
Yate (9303) is starting Wed Nov 21 18:49:16 2018
Loaded module MOH
Loaded module ToneDetector
Loaded module OpenSSL - based on OpenSSL 1.0.2g  1 Mar 2016
Loaded module SIP Channel
Loaded module CdrBuild
Loaded module CdrCombine
Loaded module iLBC - based on WebRTC iLBC library version 1.1.1
Loaded module RManager
Loaded module MUX
Loaded module ExtModule
Loaded module Speex - based on libspeex-1.1.16
Loaded module iLBC - based on iLBC reference library
Loaded module Analyzer
Loaded module GVoice
Loaded module Javascript
Loaded module Conference
Loaded module YIAX
Loaded module iSAC floating point - based on WebRTC iSAC library version 4.3.0 (SPL version 1.2.0)
Loaded module RegexRoute
Loaded module ZLib - using zlib library version 1.2.8
Loaded module GSM - based on libgsm-1.0.10
Loaded module YSTUN
Loaded module WaveFile
Loaded module YSOCKS
Loaded module Call Forker
Loaded module ToneGen
Loaded module YJingle
Loaded module CdrFile
Loaded module Call Generator
Loaded module FileInfo
Loaded module File Transfer
Loaded module DumbChannel
Loaded module MsgSniffer
Loaded module YRTP
Loaded module PBX
Loaded module Clustering
Loaded module Queues Notify
Loaded module Late Router
Loaded module Cpu
Loaded module SigTransport
Loaded module MGCP-GW
Loaded module Cisco SM
Loaded module Radius client
Loaded module Event Logs
Loaded module Analog Detector
Loaded module YBTS
Loaded module Users Management
Loaded module Accounts from file
Loaded module SQLite based on 3.11.0
Loaded module Register for database
Loaded module Monitoring
Loaded module Call Parking
Loaded module SIP Features
Loaded module CCongestion
Loaded module GSM Transceiver
Loaded module Cache
Loaded module Signalling Channel
Loaded module Presence
Loaded module Analog Channel
Loaded module SNMP Agent
Loaded module Queues
Loaded module Registration from file
Loaded module MGCP-CA
Loaded module Subscriptions
Loading module LKSCTP
Loaded module MRCP
Loaded module PBX for database
Loaded module Heartbeat
Loaded module DbWave
Loaded module CallCounters
Loaded module Jabber Server Features
Loaded module Jabber Server
Loaded module Radio Test
Loaded module DummyRadio
Loaded module BladeRF using libusb 1.0.20.11004 desc='http://libusb.info'
Initializing plugins
Initializing module BladeRF
Initializing module DummyRadio
Initializing module Jabber Server
Initializing module Jabber Server Features
Initializing module DbWave
Initialize module LKSCTP
Initializing module Subscriptions
Initializing module MGCP Call Agent
Initializing module SQLite
Initializing module Analog Detector
Initializing module Event Logs
Initializing module Cisco SM
Initializing module SigTransport
Initializing module Cpu
Initializing module Clustering
Initializing module CdrFile
Initializing module YSOCKS
Initializing module ZLib
Initializing module Javascript
Initializing module MUX
Initializing module OpenSSL
Initializing module MOH
Initializing module ToneDetector
Initializing module SIP Channel
Initializing module CdrBuild
Initializing module CdrCombine
Initializing module iLBC webrtc
Initializing module RManager
Initializing module ExtModule
Initializing module Analyzer
Initializing module GVoice
Initializing module Conference
Initializing module YIAX
Initializing module iSAC
Initializing module RegexRoute
Initializing module YSTUN
Initializing module WaveFile
Initializing module Call Forker
Initializing module ToneGen
Initializing module YJingle
Initializing module Call Generator
Initializing module FileInfo
Initializing module File Transfer
Initializing module DumbChannel
DumbChannel initialized
Initializing module MsgSniffer
Initializing module YRTP
Initializing module PBX
Initializing module Queues Notify
Initializing module Late Router
Initializing module MGCP Gateway
Initializing module Radius client
Initializing module YBTS
Initializing module Users Management
Initializing module Accounts from file
Initializing module Register for database
Initializing module Monitoring
Initializing module Call Parking
Initializing module SIP Features
Initializing module CCongestion
Initializing module GSM Transceiver
Initializing module Cache
Initializing module Signalling Channel
Initializing module Presence
Initializing module Analog Channel
Initializing module SNMP Agent
Initializing module Queues for database
Initializing module Register from file
Initializing module MrcpSpeech
Initializing module PBX for database
Initializing module Radio Test
Initialization complete
2018-11-21_18:49:16.718760 <javascript:WARN> Failed to parse 'nipc' script: /usr/local/share/yate/scripts/nipc.js
2018-11-21_18:49:16.718800 <ybts:WARN> Failed to load script='nipc', error='Failed to load script from file 'nipc.js'
'
Yate engine is initialized and starting up on an0n-pc
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 5.0.1 formal build date Nov 19 2018 rev
Starting MBTS...
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.005863] [0000246c] libusb: debug [libusb_get_device_list]
[ 0.005884] [0000246c] libusb: debug [discovered_devs_append] need to increase capacity
[ 0.005893] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005899] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005902] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005905] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005908] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005911] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005914] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005917] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005920] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005923] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005928] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005932] [0000246c] libusb: debug [libusb_get_device_descriptor]
[ 0.005936] [0000246c] libusb: debug [libusb_get_device_descriptor]
2018-11-21_18:49:16.732853 <bladerf/1:WARN> Failed to open USB device: USB reset failed - no device found [0x7fe43c0010f0]
2018-11-21_18:49:16.732961 <gsmtrx:GOON> Failed to create radio interface: USB reset failed - no device found
ALERT 140369874130752 18:49:16.7 TRXManager.cpp:207:sendCommand: RESET failed with status 2 extra: code=524288
2018-11-21_18:49:16.733108 <mbts:WARN> TRXManager.cpp:207:sendCommand: RESET failed with status 2 extra: code=524288
2018-11-21_18:49:16.733144 <ybts-signalling:WARN> Peer fatal stop notification 'RadioError' code=0x80000 (HardwareNotAvailable) operation=RESET [0x1ddb9d0]
ALERT 140369874130752 18:49:16.9 OpenBTS.cpp:251:main: Failed to reset transceiver
2018-11-21_18:49:16.934229 <mbts:WARN> OpenBTS.cpp:251:main: Failed to reset transceiver

I hope someone can help me... thanks

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Yate Failed to open usb Device
« Reply #1 on: November 22, 2018, 02:23:57 AM »
With the board plugged in, please type the following command in a console:
lsusb
Post the output here.

silodk

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Yate Failed to open usb Device
« Reply #2 on: February 21, 2019, 07:42:36 AM »
Well, I have the exact same problem.
At the moment I'm running the Linux Mint in a VM.
But even running on the bare metal I get the same problem.

lsusb gives me this:

root@mintvpc:~# lsusb
Bus 004 Device 007: ID 2cf0:5250
Bus 004 Device 002: ID 0bda:0316 Realtek Semiconductor Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 006: ID 0e0f:0004 VMware, Inc. Virtual CCID
Bus 003 Device 004: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 003: ID 0e0f:0008 VMware, Inc.
Bus 003 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@mintvpc:~#

nonce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Yate Failed to open usb Device
« Reply #3 on: February 21, 2019, 01:36:26 PM »
I appear to be running into the same issue. I get the same errors and am using BladeRF xA4. I have fallowed this setup. https://github.com/Nuand/bladeRF/wiki/Setting-up-Yate-and-YateBTS-with-the-bladeRF

The biggest difference I see is I'm using Ubuntu 18.04.
I have also setup the configuration.

Code: [Select]
Radio.Band 900
Radio.C0 975


Code: [Select]
bladeRF> version

  bladeRF-cli version:        1.7.1-2018.12-rc3-2-ppabionic
  libbladeRF version:         2.2.0-2018.12-rc3-2-ppabionic

  Firmware version:           2.2.0-git-47f93fe1
  FPGA version:               0.10.2

Code: [Select]
bladeRF> info

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


Code: [Select]
root@ubuntu:/home/bladerf#yate -vv -CDoa

Release 6.1.1 formal build date Feb 20 2019 rev668
2019-02-21_11:25:15.019084 <mbts:NOTE> proc 30764 GSMConfig.cpp:80:regenerateBeacon: thread 139651856996160: regenerating system information messages, changemark 1
Starting MBTS...
2019-02-21_11:25:15.019166 <mbts:NOTE> proc 30764 TRXManager.cpp:127:sendCommandPacket: thread 139651856996160: this:0x563665ca05c0 command CMD RESET 1
2019-02-21_11:25:15.019477 <gsmtrx:CRIT> Failed to create radio interface: Message not handled
ALERT 139651856996160 11:25:15.0 proc 30764 TRXManager.cpp:224:sendCommand: thread 139651856996160: RESET failed with status 2
2019-02-21_11:25:15.019770 <mbts:NOTE> proc 30764 TRXManager.cpp:152:sendCommandPacket: thread 139651856996160: this:0x563665ca05c0 response RSP RESET 2 to command CMD RESET 1
2019-02-21_11:25:15.019847 <mbts:WARN> proc 30764 TRXManager.cpp:224:sendCommand: thread 139651856996160: RESET failed with status 2
ALERT 139651856996160 11:25:15.0 proc 30764 OpenBTS.cpp:251:main: thread 139651856996160: Failed to reset transceiver
2019-02-21_11:25:15.020129 <mbts:WARN> proc 30764 OpenBTS.cpp:251:main: thread 139651856996160: Failed to reset transceiver


Troubleshooting
Installed libusb-1.0-0-dev before compiling yate

Code: [Select]
root@ubuntu:/home/bladerf# lsusb
Bus 004 Device 004: ID 2cf0:5250 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub



« Last Edit: February 21, 2019, 01:56:39 PM by nonce »

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Yate Failed to open usb Device
« Reply #4 on: February 22, 2019, 12:46:12 AM »
The device with id 2cf0:5250 is not currently detected by bladerf module as supported.

For nonce: you also don't have the bladerf module.
See the log line: Failed to create radio interface: Message not handled.
Most probably it wasn't built at all.

nonce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Yate Failed to open usb Device
« Reply #5 on: February 22, 2019, 03:58:53 PM »
@rockthestreet81 @silodk I was able to get yate communicating with BladeRF2 xA4 fallowing this post and paying special attention to the versions. I used Firmware version: 2.2.0, because I couldn't find 2.1.0  https://nuand.com/forums/viewtopic.php?f=5&t=5094#p9358 



The device with id 2cf0:5250 is not currently detected by bladerf module as supported.

For nonce: you also don't have the bladerf module.
See the log line: Failed to create radio interface: Message not handled.
Most probably it wasn't built at all.

Thanks for the feedback, however I do have the bladerf module installed. Gqrx runs without issue and requires this module.  Perhaps there is a linking issue? Anyways at this time it doesn't really matter.


silodk

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Yate Failed to open usb Device
« Reply #6 on: February 25, 2019, 04:08:47 AM »
@nonce Thanks! As long as I know it should work then its fine. I was now sure the xA4 would work at all. So now I have to try again. Thanks :)

SeyedhHojjatHosseini

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Yate Failed to open usb Device
« Reply #7 on: June 02, 2019, 01:16:49 AM »
Hi
I have the same problem
please help me step by step
« Last Edit: June 02, 2019, 01:20:05 AM by SeyedhHojjatHosseini »

nonce

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Yate Failed to open usb Device
« Reply #8 on: June 05, 2019, 11:50:30 AM »
Hi
I have the same problem
please help me step by step

Unfortunately no one has time to help users step by step here. Maybe not me, I just started, but users who know a lot about this are in demand.  But if you provide the steps you have taken and exactly where the issue then some users including myself can help if we know the answer. logs also help a lot.

Have you carefully read there this post and fallowed the steps? https://nuand.com/forums/viewtopic.php?f=5&t=5094#p9358
Where are you stuck at?