-
Notifications
You must be signed in to change notification settings - Fork 78
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
Decoder index out of range #67
Comments
It may be a bit hard to tell what's wrong based on that. One interesting thing is that my own code's debug says that it last got data at I also intermittently get these:
I'm not sure if they are related. |
I've noticed that running 2 BLE programs at the same time can cause corrupted data, for example if I run Noble (NodeJS BLE) and ruuvitag-sensor at the same time there's a load of hard-to-replicate bugs on both programs. Might be related? |
In my case, ruuvitag-sensor is the only BLE application running. However, I'm using the ruuvi_rx reactive wrapper implementation. From the lack of data, looks like it has died again in the night. I'll take a look at it when I get back home and try to wrap things in a way that it doesn't stop completely or restarts when bad things happen. |
I was checking the code and when there is something wrong with the decoding it should stop handling next datas. On error decode return none And it is just then ignored I'll try to update a new version of ruuvitag package this weekend and also merge changes to bleson branch and update it to use the latest version of Bleson and do related code changes. |
Version 0.12.0 released, code merged to bleson branch and bleson updated from 0.0.13 to version 0.0.15 @quulah Have you tried with "normal" Bluez version? |
Yes, I started with that, but had trouble with it since I run this in a Docker container. I think it was related to the usage of |
@quulah Thats nice. I really hope that Python will eventually get some working cross platform bluetooth solution (and will be extra happy if it will be Bleson). Little bit off topic, but could also add Dockerfile to the repository. Did you have some extra settings for the image, or just some basic like this?
NOTE: I updated setup.py as process-dependecy-links was removed from pip |
I can try to whip up a Dockerfile in a pull request for this repository. And yeah, basically that's it for the Docker image. I'm putting in my own code too and ruuvitag-sensor is in a requirements.txt that gets read by pip. I'm using I took a look at the code, as well as the changes, and looks like the merge didn't really change anything in the decoder.py. And as you said, that exception should have been grabbed. I'm currently running the newer version, and there hasn't been any problems yet so I'll close this. |
@quulah great if you have time to do the Dockerfile 👍 I should also gather some feedback how this Bleson version is working and if there is no complains I could release a new version to pypi from this branch. Will open a new issue for that. |
An exception jumped out of the decoder:
I'm running with data format 3, and the bleson branch.
The text was updated successfully, but these errors were encountered: