-
Notifications
You must be signed in to change notification settings - Fork 185
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
No BGAPI compatible device detected #118
Comments
Check out this section very recently added to the README: https://github.com/peplin/pygatt#cant-find-bgapi-device-in-windows My guess is the COM port is incrementing every time you plug it in, and now you've got one > 9, and for whatever reason pyserial can't detect those. |
Thanks for your response!
This got things working for me so I guess you can close this issue if you like. |
Hello @crobertsbmw , I faced the same issue on both Linux and Windows. Could you please provide more detail on how you add a serial time delay and then solve the problem? What other library did you add? A short example code would be very helpful. |
@zjllynn The code is posted above. I just added the |
@zjllynn, I think you should just be able to change the file directly as it was installed by pip. When the error is printed it will show where the file is as well. I had the same problem but had to use |
This can be necessary to avoid the _open_serial_port call to fail. Else it will raise an exception in the first iteration and abort with a NotConnectedError. Note that 250ms seems to be sufficient on some setups [0], but at least on my Windows setup on a Virtual Machine the half second is necessary. [0] peplin#118 (comment)
I've ran into the same issue. However, I don't think a hard coded sleep is going to work well mainly due to the fact that the time required is going to vary for each machine. Alternatively, the
As you can see, there is already a 250ms sleep in the loop near the bottom. There is also an error reported at the end if there is no connection after 10 retries. Simply removing the |
@eliquious you are making a good point. I have tried the sleep on our end and it was mostly working, but would still fail every now and then. Removing the early exit from the |
This should be resolved by #144 - there was a bug in the auto-reconnect logic that for some reason, didn't trigger on my machine. |
Sorry but problem still occurs with release 3.2.0 I'm using Windows 10 inside a Virtual Box VM and still need to use the workaround, adding I don't have a physical Windows machine to check it VirtualBox is responsible for this delay If I specify the serial port ( |
I have Windows 7 inside of a virtual machine, and it also requires the addition of a time delay to keep the connection from failing. |
Same here on baremetal Windows 7 64 bits. |
…version Fixes this bug in muse-lsl: peplin/pygatt#118
Same problem here, on Win 10, pip version 3.2.0 and latest git, and adding @crobertsbmw's delay fixes it at least reliably enough. |
Same problem, but with help : #119, works for me. |
Delay fix above fixed it for me also |
Same problem here. Version v3.2.0. Removing the "early exit" as per @eliquious fixed it for me. |
Also added time.selay(1) between |
i had same issue adding sleep works, will try to look at a permanent fix |
I've been playing with this a lot the last couple days. At first, I wasn't having any issues with it, but now, whenever I try to call
adapter.start()
I am getting an error that No BGAPI compatible device detected.At first it worked everytime flawlessly, then for a while, if I just kept calling adapter.start() over and over, eventually on the tenth or fifteenth time it would work. Now I can't get it to recognize the dongle at all. I've tried unplugging and plugging in the dongle, restarting my PC, nothing seems to solve the issue.
Any help is super appreciated.
The text was updated successfully, but these errors were encountered: