Can't connect after upgrade to libusb

Having issues with the site, hardware, source code, or any other issues?
Post Reply
dlonard
Posts: 13
Joined: Sat Aug 31, 2013 1:48 pm

Can't connect after upgrade to libusb

Post by dlonard »

I've got a bladeRF that I successfully got working with the kernel drivers but then I tried an upgrade to libusb. Everything appeared to go smoothly during compiliation...

Then I tried:

./bladeRF-cli -p

Backend: libusb
Serial:
USB Bus: 4
USB Address: 2

But, when I tried to flash the new firmware I get this:

./bladeRF-cli -f latest.img
Failed to open device (NULL): No devices available
Could not open device
bladeRF>

Here is what I see with dmesg:
dmesg |grep nuand
[ 8.327645] nuand_bladerf 4-2:1.0: Nuand bladeRF device is now attached
[ 8.327673] usbcore: registered new interface driver nuand_bladerf

lsusb is showing me this:

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 002: ID 1d50:6066 OpenMoko, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 045e:0053 Microsoft Corp. Optical Mouse
Bus 002 Device 005: ID 050d:945a Belkin Components F7D1101 v1 Basic Wireless Adapter [Realtek RTL8188SU]
Bus 002 Device 003: ID 04ca:0027 Lite-On Technology Corp.
Bus 002 Device 004: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer

Which is showing OpenMoko with an ID of 1d50:6066 as I think it is supposed to, matching with the Nuand on Bus 4, device 2. So, it looks like the BladeRF is there, but I can't get it going. I never saw any mention of legacy issues pop up anywhere. It looks like my connection issue is distinct from some of the other issues out there. Does anyone have any suggestions as to what is wrong here?

Thanks,

David
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: Can't connect after upgrade to libusb

Post by bpadalino »

Did you install the kernel driver? If so, it's claiming the interface so libusb can't grab it. lsmod should be able to see if there is a bladeRF module loaded. You can use rmmod to get rid of it if that's the case.

Give that a shot and let us know how it goes?
dlonard
Posts: 13
Joined: Sat Aug 31, 2013 1:48 pm

Re: Can't connect after upgrade to libusb

Post by dlonard »

That fixed it, thanks so much.
Post Reply