Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi No available USB found Resource temporarily unavailable #76

Open
aaronnewcomb opened this issue Mar 7, 2023 · 11 comments
Open

Comments

@aaronnewcomb
Copy link

I tried installing on a fresh install of Raspbian today. Unfortunately, it looks like maybe libusbjava isn't working somehow? I am getting "No available USB found" in the GUI and Java errors on the command line.
env: Linux, Java 17.0.6 arm app dir: /opt/owon-vds-tiny user dir: /root/.owon-vds-tiny locale: en, en_US, false ch.ntb.usb.USBException: LibusbJava.usb_open: Resource temporarily unavailable (-1568584872) at com.owon.uppersoft.vds.core.usb.CDevice.open(CDevice.java:86) at com.owon.uppersoft.vds.core.usb.CDevice.getDevices(CDevice.java:300) at com.owon.uppersoft.dso.source.usb.USBSourceManager.refreshUSBPort(USBSourceManager.java:79) at com.owon.uppersoft.dso.source.comm.detect.USBLoopChecker.checkUSBDevice(USBLoopChecker.java:74) at com.owon.uppersoft.dso.source.comm.USBDaemonHelper.onNotConnecting(USBDaemonHelper.java:35) at com.owon.uppersoft.vds.machine.InfiniteDaemonTiny0.onNotConnecting(InfiniteDaemonTiny0.java:37) at com.owon.uppersoft.dso.source.comm.Flow.run(Flow.java:79) at com.owon.uppersoft.dso.global.ControlAppsTiny$1.run(ControlAppsTiny.java:38)

@aaronnewcomb
Copy link
Author

I also tried installing the version based on Debian Buster. Same result.

@florentbr
Copy link
Owner

Could you provide :

  • the exact system architecture : uname -a
  • the usb descriptor : lsusb -v -s 5345

@aaronnewcomb
Copy link
Author

image
lsusb -v -s 5345 does not return anything. However, here is what shows up about the device when I just use lsusb -v ...
image

@aaronnewcomb
Copy link
Author

BTW - I just tried this on a fresh install using a model 2B and it worked. Slowly of course, but it did work.

@florentbr
Copy link
Owner

lsusb -v -s 5345 does not return anything.

My bad, it should be lsusb -v -d 5345:1234

I tried installing on a fresh install of Raspbian today. Unfortunately, it looks like maybe libusbjava isn't working somehow?

The native libusbjava.so provided here was compiled for armhf. It's likely the source of your issue since your system is armv7l. It should work once compiled to the correct architecture. Sources: https://github.com/florentbr/OWON-VDS1022/blob/master/lib/libusbJava-src.zip

BTW - I just tried this on a fresh install using a model 2B and it worked. Slowly of course, but it did work.

Disable all the measures, it should improve the refresh rate.

@aaronnewcomb
Copy link
Author

aaronnewcomb commented Mar 8, 2023

I don't think that armv71 could be the issue since it is working on my 2B and that is also running armv71.
image
Also, on my 2B it doesn't show the resource temporarily unavailable in lsusb.

@florentbr
Copy link
Owner

Have a look at the system events. Maybe a driver is crashing or interfering with libusb.
Note that one has a linux kernel v7+ while the other is v7l+. So it could still be related to the compiled architecture.

@aaronnewcomb
Copy link
Author

So, thinking this may be related to the architecture I decided to try 64bit Raspbian since that will be different again. And ... it works when compiled on this architecture.
image
So, I am going to call this good enough for now. Perhaps this will resolve itself with future changes in the supporting architecture libraries. Maybe this will help someone else who is having a similar problem.

@nistvan86
Copy link

@aaronnewcomb is this a Raspberry Pi 4B? Does the software work with usable speed on that? The 2B was too slow as you mentioned.
(Sorry for hijacking the thread, but there's not much information available on the net about this.)

@aaronnewcomb
Copy link
Author

Yes. it was a Raspberry Pi 4B. However, that was overkill. I ended up using an Orange Pi 3 board running their Ubuntu image and it works perfectly. I hooked it up to a 10" touchscreen and 3D printed a case to put everything in. It works like a champ and now I don't have to connect it to my desktop or laptop.

@nistvan86
Copy link

@aaronnewcomb thank you! Tested the install on a Pi4 with recent 64bit RaspberryPi OS and it was straightforward. Ordered a scope, I'm looking forward to it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants