Coder Social home page Coder Social logo

Comments (5)

Scrin avatar Scrin commented on June 19, 2024

What hardware & OS are you using? And when this happens, can you see a hcitool and a hcidump process running in addition to the collector process?

from ruuvicollector.

laiti avatar laiti commented on June 19, 2024

Iā€™m running Raspbian 9.11 on Raspberry Pi 3. The situation is not easy to catch as it happens only once a week or so. But I'll add a process logger to investigate the situation.

from ruuvicollector.

laiti avatar laiti commented on June 19, 2024

Finally catched this one. Here's output from my ruuvi restart script:

[Wed Jan  1 01:55:18 2020] Bluetooth: hci0: hardware error 0x19

ps -fu ruuvi:
UID        PID  PPID  C STIME TTY          TIME CMD
ruuvi    29200     1  0  2019 ?        03:10:46 /usr/bin/java -jar ruuvi-collector-0.2.jar
ruuvi    29218 29200  0  2019 ?        00:00:00 hcitool lescan --duplicates --passive
ruuvi    29220 29200  0  2019 ?        00:35:17 hcidump --raw

HW error, restarting ruuvi.service at Wed Jan  1 01:56:01 EET 2020

from ruuvicollector.

Scrin avatar Scrin commented on June 19, 2024

Hmm, so it seems neither hcitool nor hcidump crashes/exits when this happens, which makes it hard to reliably detect this error from within the collector as I don't want to add dependencies to dmesg as normal users can't access it on a properly secured system.. either way that'd be a workaround for a problem somewhere else; the real solution would be figuring out why the bluetooth gets those hardware errors. One possible cause for that is a bad power supply that doesn't supply stable enough voltage, as there's almost no voltage regulation on the RPi itself

from ruuvicollector.

laiti avatar laiti commented on June 19, 2024

Hmm, ok. I could switch to official RP power source and see if this still happens.

from ruuvicollector.

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.