The code is on github:
https://github.com/Rubyan/MySensors/blob/master/Meterkast/Meterkast.ino
I had lots of problems with receiving the ACK messages of a node. I was sending a switch off command with ACK. The ACK was never delivered 50% of the time.
[2016-09-07 17:16:44.241 Info] RX 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=ok:0
[2016-09-07 17:16:44.241 Info] RX 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=1,c=1,t=2,pt=0,l=1,sg=0:0
[2016-09-07 17:16:44.241 Info] RX 100;1;1;1;2;0
[2016-09-07 17:16:44.490 Info] TX 100;1;1;1;2;0
[2016-09-07 17:16:44.537 Info] RX 0;255;3;0;9;!TSP:MSG:SEND 0-0-100-100 s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=fail:0
[2016-09-07 17:16:44.755 Info] TX 100;1;1;1;2;0
[2016-09-07 17:16:44.771 Info] RX 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=ok:0
[2016-09-07 17:16:44.771 Info] RX 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=1,c=1,t=2,pt=0,l=1,sg=0:0
[2016-09-07 17:16:44.771 Info] RX 100;1;1;1;2;0
[2016-09-07 17:16:48.052 Info] TX 100;1;1;1;2;0
[2016-09-07 17:16:48.099 Info] RX 0;255;3;0;9;!TSP:MSG:SEND 0-0-100-100 s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=fail:0
[2016-09-07 17:16:48.899 Info] TX 100;1;1;1;2;0
[2016-09-07 17:16:48.946 Info] RX 0;255;3;0;9;!TSP:MSG:SEND 0-0-100-100 s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=fail:0
[2016-09-07 17:17:00.021 Info] TX 100;1;1;1;2;0
[2016-09-07 17:17:00.068 Info] RX 0;255;3;0;9;!TSP:MSG:SEND 0-0-100-100 s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=fail:0
[2016-09-07 17:17:00.614 Info] TX 100;1;1;1;2;0
[2016-09-07 17:17:00.645 Info] RX 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=ok:0
[2016-09-07 17:17:00.645 Info] RX 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=1,c=1,t=2,pt=0,l=1,sg=0:0
When I removed the (aliexpress) NRF24L01+ Socket Adapter Board on the node and connected the radio directly to the 3.3v nano the acknowledge rate went to 100%. Strange...
Hi all,
This project enables me to read the gas meter using an optical sensor, the TCRT5000. The last digit of the meter has a reflective '6' that triggers the optical circuit. The board is powered by the well known HLK-PM01, and uses an arduino pro mini (clone). The nrf24 is fitted into a board that provides a proper 3.3v voltage. The board can receive OTA firmware upgrades
The sketch (that i adapted from Sandor Incze & Michel Schilthuizen) uses debounce, and raises the counter only if filtered pin value goes from 0 to 1. There is no problem if the meter stops at the '6'. If the sketch starts, it asks the controller for the last known value.
I use domoticz to present the readings. At this moment, there seems to be a problem with the large numbers that my meter uses, I still need to figure this out.
Future updates consist of using a fuse and thermistor with the power supply to make it more safe, and to create a nice casing.
code: github
@Fabien said:
I try to add new hex file in MYSController 1.0 but after clicking "reload repo", it tells me 2107-15-31 is not a valid date specification. I don't have the ability to select firmware after this. And after a reboot the "reload repo" is garyed.
@Fabien You have two or more blank lines in your firmware_config.csv. This causes the error message. If you remove them and click on Reload Repo the error will be gone.