tzachi-dar / LibreAllHouse

Use Raspberry pi devices to have all house coverage using the miaomiao device.
16 stars 12 forks source link

RPi 3 model B inconsistently collects MiaoMiao data #6

Open bordeb opened 4 years ago

bordeb commented 4 years ago

Dear @tzachi-dar . Several months ago I had opened the issue https://github.com/tzachi-dar/LibreAllHouse/issues/2 and you helped me to solve it. The RPi zero W was damaged so after change everything works. Now I have the issue with RPi 3 model B. Everything worked for a year or so just fine, but last couple of months I can notice that RPI 3 B is not collecting readings from MiaoMiao 1 consistently. After fresh reboot it sometimes collects and then stops for a days although the MM is in its range. I tried to disable all other RPIs and master phone and smartwatch just to test this malfunctioning RPi and nothing. After fresh restart then sometimes it collects again for some limited time but sometimes not at all. Can you or anyone else please help to track the root of the problem (hardware vs software)? I will buy soon a new RPi 4 but I am interested what may cause such a strange behavior.

tzachi-dar commented 4 years ago

There are two simple things that you can do:

1) Run with btmon and see what results you will get. This is close to running a network monitor on the data.

2) uncomment the line:

btle.Debugging = True

on the file main.py it will show more data.

3) Connect an external bt dongle and run on it, it will show if this is a hw problem or not.