Comments (7)
Hi,
Which version were you using? Does log-file have any errors etc. or what is the last info that is in the file before get sensors hangs.
from ruuvitag-sensor.
I used the most recent firmware version of RuuviTag (2.3.0), the most recent ruuvitag-sensor library (0.11.0, python3). I did not get any messages in the log file, the callback result contained a single string, i.e. values from the first and single packet the system captured before hanged.
from ruuvitag-sensor.
@fommike Sorry for a long silence :(
Could you try if you can reproduce the error with the implementation that uses Bleson-library from the brach https://github.com/ttu/ruuvitag-sensor/tree/bleson-ble-communication?
from ruuvitag-sensor.
I'm having this same issue, when you run find it shows up:
Start receiving broadcasts (device hci0) FA:9C:27:9F:90:5E {'data_format': 4, 'temperature': 21.0, 'humidity': 46.0, 'pressure': 877.0, 'identifier': 'w'}
but when you run ruuvitag_sensor -g FA:9C:27:9F:90:5E
it just does: Start receiving broadcasts (device hci0)
and nothing happens.
I tried with the new bleson branch and it does the same thing with some warnings.
find:
Finding RuuviTags. Stop with Ctrl+C. 2019-05-14 11:28:22,623 INFO - ruuvi.py: 76 - find_ruuvitags(): Finding RuuviTags. Stop with Ctrl+C. Start receiving broadcasts (device 0) 2019-05-14 11:28:22,624 INFO - ble_communication.py:169 - start(): Start receiving broadcasts (device 0) FA:9C:27:9F:90:5E 2019-05-14 11:28:27,447 INFO - ruuvi.py: 83 - find_ruuvitags(): FA:9C:27:9F:90:5E {'data_format': 4, 'temperature': 21.0, 'humidity': 46.0, 'pressure': 877.0, 'identifier': 'w'} 2019-05-14 11:28:27,447 INFO - ruuvi.py: 84 - find_ruuvitags(): {'data_format': 4, 'temperature': 21.0, 'humidity': 46.0, 'pressure': 877.0, 'identifier': 'w'} 2019-05-14 11:28:30,129 WARNING - type_converters.py:197 - from_hcipayload(): TODO: Unhandled GAP type, pos=13 type=0x02 len=3 2019-05-14 11:28:30,129 WARNING - type_converters.py:198 - from_hcipayload(): Data: 01 00 01 89 dc f8 b7 98 cd 0e 02 01 06 03 02 af fe 06 09 4e 30 31 36 35 2019-05-14 11:28:30,129 WARNING - type_converters.py:199 - from_hcipayload(): POS : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
and then the get:
Start receiving broadcasts (device 0) 2019-05-14 11:28:47,032 INFO - ble_communication.py:169 - start(): Start receiving broadcasts (device 0) 2019-05-14 11:28:53,354 WARNING - type_converters.py:197 - from_hcipayload(): TODO: Unhandled GAP type, pos=13 type=0x02 len=3 2019-05-14 11:28:53,354 WARNING - type_converters.py:198 - from_hcipayload(): Data: 01 00 01 89 dc f8 b7 98 cd 0e 02 01 06 03 02 af fe 06 09 4e 30 31 36 35 2019-05-14 11:28:53,354 WARNING - type_converters.py:199 - from_hcipayload(): POS : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
not sure what to try next.
from ruuvitag-sensor.
Warning in the bleson branch comes from the Bleson package
https://github.com/TheCellule/python-bleson/blob/710a355ae28333d6b760511b711e613e3414efad/bleson/core/hci/type_converters.py#L197
@ojousima any ideas? Is there some data coming from the RuuviTag that is not handled correctly?
from ruuvitag-sensor.
If I recall correctly, the 2.3.0 sent in connectable advertisement types. This might be the cause of Unhandled GAP type. Please update to 2.4.2 available at lab.ruuvi.com/dfu which is unconnectable and check if the issue remains
from ruuvitag-sensor.
Added a fix for decoder and likely it would fix hanging. On side note it will also blacklist whole sensor as sensor with that firmware sends data that library can't understand. Will make changes if that functionality comes part of released (supported) firmware.
Fixes in commits: 352e0d7 and f6e6212
from ruuvitag-sensor.
Related Issues (20)
- Ruuvitags and InfluxDB 2 HOT 6
- README.md has broken link to Setup guide HOT 1
- Updated install instructions ffor Rasperry Pi HOT 1
- Latest firmware using data format 2 HOT 1
- Can't get device info: No such device HOT 1
- Stuck after "Invalid advertisement data" error. HOT 5
- High CPU usage with Bleson backend HOT 1
- "Cannot read %d bytes, data too short" error causes ruuvitag-sensors to stop working HOT 1
- Cross-platform BLE communicaton with Bleak
- Changing the spelling of datas to data HOT 9
- find_ruuvitags_async payload contains non-parsed data HOT 1
- ruuvi_rx should support Bleak-adapter HOT 3
- Add tests for find_ruuvitags_async HOT 1
- Use typing in examples HOT 3
- BleCommunicationBleak doesn't work with asyncio.run() HOT 3
- Docs request: Pull Request Templates HOT 1
- Data Format Mismatch HOT 2
- Get sensor data with callback stopped working after new firmware HOT 3
- Bleak Async call failing ... no attribute HOT 1
- Development install fails HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruuvitag-sensor.