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

Resource Busy Error during connection attempt with BLED112 #75

Closed
eteters opened this issue Feb 5, 2019 · 1 comment
Closed

Resource Busy Error during connection attempt with BLED112 #75

eteters opened this issue Feb 5, 2019 · 1 comment

Comments

@eteters
Copy link

eteters commented Feb 5, 2019

On Mac, in terminal -

I am seeing an error when trying to establish a connection with a Muse 2016.

muselsl list results in

Traceback (most recent call last): File "/Users/evanteters/anaconda3/lib/python3.6/site-packages/serial/serialposix.py", line 265, in open self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) OSError: [Errno 16] Resource busy: '/dev/cu.usbmodem1'

I tried addressing the issue through using muselsl list --interface /dev/cu.usbmodem1
but this still gave an error. This time:

File "/Users/evanteters/anaconda3/lib/python3.6/site-packages/serial/serialposix.py", line 265, in open self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) OSError: [Errno 6] Device not configured: '/dev/cu.usbmodem1'

I'm running High Sierra 10.13.6, and using BLED112-V1 manufactured by Silicon Labs

I tried to find other processes accessing the same port but it seemed nothing was using it.

Thanks for the help!

@oori
Copy link

oori commented Nov 25, 2019

This is an old issue with pygatt version 3, see: peplin/pygatt#159
There are two solution, either:
a. Upgrade pygatt > 4 pip install -U pygatt
b. Use the time.sleep(2) hack, as explain here: peplin/pygatt#159 (comment)

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