Coder Social home page Coder Social logo

Comments (7)

ttu avatar ttu commented on May 18, 2024

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.

fommike avatar fommike commented on May 18, 2024

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.

ttu avatar ttu commented on May 18, 2024

@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.

gonecrazy25 avatar gonecrazy25 commented on May 18, 2024

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.

ttu avatar ttu commented on May 18, 2024

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.

ojousima avatar ojousima commented on May 18, 2024

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.

ttu avatar ttu commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.