-
The coincells are dry.
02/10/2022 at 16:57 • 0 commentsApparently maintaining an onpen BLE conection uses a lot of precious miliamps.
- Instead of a permanent BLE connection and constant streaming of data,
the raspberry could each 2-5 minutes create a BLE conection and read the temp+humidity data once, then close the connection. - Modify the firmware/use a modified version of the xiaomi sensors, so they include temperature and humidity data in their advertisment data.
https://microchipdeveloper.com/wireless:ble-link-layer-packet-types
- Instead of a permanent BLE connection and constant streaming of data,
-
signed integer overflow :,(
01/26/2022 at 17:33 • 0 commentsTODO: review and fix the javascript nodered node, it looks like we have a signed/unsigned problem.
I only noticed because this days temperatures dropped below 0ºCparseInt()<----yes im talking to you
msg.temperatura = parseInt(msg.temperatura, 16); if ((msg.temperatura & 0x8000) > 0) { msg.temperatura = msg.temperatura - 0x10000; } msg.temperatura=msg.temperatura/100;
-
BLE conections didnt fail yet
01/18/2022 at 09:34 • 0 commentsBLE conections are still working after 2 days
Now i can start to see what a day temperature/humidity footprint looks like
-
storing data in a database
01/17/2022 at 08:43 • 0 commentsManaged to save received data to influxDB and display it with graphana.
So far only two devices are connected, 12h working uninterrupted .TODO: update the uild steps with influxdb and grapana setups -
Hello World x9 times
12/15/2021 at 23:09 • 0 commentsI managed to maintain 9 simultaneous BLE conexions, enable the notifications for the specific characteristic im interested in.
Receive all notifications and decode the bytes in the payload
The gatttool doesnt allow me to connect a 10th BLE device, i feel the bluetooth chip really struggling when opening more than 5 BLE conections, this would not happen with a raspberryPi4 (different more powerfull wirelles chip) or a raspberryPi3 without active wifi conections