Coder Social home page Coder Social logo

Comments (9)

cybe avatar cybe commented on July 24, 2024

This is usually caused by:

  • Parallel access to the Bluetooth interface from another process
  • Using the RPi Wifi interface in parallel
  • Another Bluetooth client accessing the target device, like your smartphone

from bt-mqtt-gateway.

zewelor avatar zewelor commented on July 24, 2024

What bluez version are you using ? For me default version for raspbian was unstable. After updating it works great. I think minimum stable version was 5.49 ( for rpi0 ).

from bt-mqtt-gateway.

diplix avatar diplix commented on July 24, 2024
pi@ivanka:~ $ bluetoothd -v 
5.43

followed https://scribles.net/updating-bluez-on-raspberry-pi-5-43-to-5-48/ to upgrade bluez to 5.49.

pi@ivanka:~ $ bluetoothctl -v
bluetoothctl: 5.49

i disabled my reset-cron and will see what happens …

from bt-mqtt-gateway.

diplix avatar diplix commented on July 24, 2024

had another bt lock, couldn’t even hciconfig hci0 reset, had unplug-reboot the pi. which bluez version do you use, @zewelor ? sure it’s 5.49?

from bt-mqtt-gateway.

zewelor avatar zewelor commented on July 24, 2024

Currently I'm using 5.50. Before for many months 5.49.

from bt-mqtt-gateway.

diplix avatar diplix commented on July 24, 2024

downgraded back to the built-in raspbian bluez version, which handles sudo hciconfig hci0 reset more gracefully and overall runs more or less stable if i occasionally run the reset command.

from bt-mqtt-gateway.

joselito11 avatar joselito11 commented on July 24, 2024

@diplix I have the same problems, can you please share the crone job script/config?

from bt-mqtt-gateway.

diplix avatar diplix commented on July 24, 2024

i moved bt-gateway to a nuc where it is working reliably. this is what i did on the pi:

sudo crontab -e

20 4 * * * hciconfig hci0 reset
20 10 * * * hciconfig hci0 reset
20 16 * * * hciconfig hci0 reset
20 22 * * * hciconfig hci0 reset

from bt-mqtt-gateway.

joselito11 avatar joselito11 commented on July 24, 2024

Thanks, I am also on nuc

from bt-mqtt-gateway.

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.