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

Ubuntu 22.04 and errors accessing multiple devices simultaneously #264

Open
yg-ht opened this issue Sep 16, 2022 · 1 comment
Open

Ubuntu 22.04 and errors accessing multiple devices simultaneously #264

yg-ht opened this issue Sep 16, 2022 · 1 comment

Comments

@yg-ht
Copy link

yg-ht commented Sep 16, 2022

I was recently working on a task that required me to capture ZigBee traffic, but, a) I didn't know which channel the traffic was going to be on, and b) the traffic would only ever happen once. (Boring, complex and not particularly exciting reasons why).

As a previous user of zbopenear, I thought "that will be easy". Ahem...

It seems that there is something "not happy" with KillerBee, the Python3 version of zbopenear (see pull requests: #263 and rmspeers/zigbee-security#3), Python3 itself, and Ubuntu 22.04.

The error message is pretty simple, "errno 16, resource busy".

I spent a while trying to debug this and I got to the point where I ran out of time and ended up spinning up 16 VMs and each of those had a single zbwireshark instance running.

I spent quite a bit of time in the code adding debug output trying to see if for some reason the code was passing the wrong device ID but I couldn't find anything obvious. I then tried to run two instances of zbwireshark but each with a command arg of a different device and noticed that I got the same error here.

I did some digging online and frankly not a lot of use came up. What I did see was references to people experiencing locks when Python3 attempts to set the configuration of a USB device. I compared this with my dmesg output and there could be something in this but nothing conclusive. Nothing else jumped out at me as the answer and then I ran out of time.

Happy to help diagnose etc, but, I am getting to the limits of my lower-level USB knowledge.

@yg-ht yg-ht changed the title Ubuntu 22.04 and accessing multiple devices simulataneously Ubuntu 22.04 and accessing errors multiple devices simultaneously Sep 16, 2022
@yg-ht yg-ht changed the title Ubuntu 22.04 and accessing errors multiple devices simultaneously Ubuntu 22.04 and errors accessing multiple devices simultaneously Sep 16, 2022
@yg-ht
Copy link
Author

yg-ht commented Sep 16, 2022

Just to clairfy a bit further.

I was attempting to use zbopenear and during execution I would get error traces which boil down to the above error. The script still runs but it only ever writes output data for one channel.

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

1 participant