Closed mr-sneezy closed 3 years ago
Hi, I have just committed the fix for the debug issue. Thanks for finding that. :)
From above you are now receiving data, but it is timing out before receiving a successful transmission. This Line is the key: _debug=ON - T=Timeout, S=Start, b=bit, o=Rxtimeout, L=loop routine, E=End of Packet
I'll take a more detailed look tonight and provide a working output.
OK - please pull down the library again, I have done some work on the debug routines to improve them. Please set DEBUG to 5 to enable everything.
The received information should all be the same length, something I have hopefully improved detection in the updated library. All the packets should be the same length, an example of working debug logging is below:
[00d 00:00.14s] {"ts":143,"id":2526,"type":"RX","mA":60,"W":14,"Int":6,"Pair":"Off","Batt":"OK","Mon":"Yes"} Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE {"BituSec":[513,72,72,73,72,144,71,71,139,69,70,71,71,143,69,69,138,141,138,64,137,135,133,133,58,64,137,65,67,68,70,70,67,71,142,139,137,135,135,63,61,140,65,67,69,70,71,71,68,144,139,137,135,134,134,62,61,66,67,140,67,139,66,68,65,49,37,135]} {"RAW":[9,9,222,64,124,128,252,40]}CheckSum Calc=8 RX Checksum=8
[00d 00:00.15s] {"ts":150,"id":32312,"type":"RX","mA":27,"W":6,"Int":6,"Pair":"Off","Batt":"OK","Mon":"Yes"} Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE {"BituSec":[513,72,73,73,72,144,70,70,138,68,141,138,136,134,133,133,58,65,65,137,137,135,63,65,64,68,141,67,68,70,71,71,69,71,142,140,67,139,136,136,61,139,64,137,65,66,68,69,66,143,139,136,135,135,62,134,130,63,65,67,68,140,67,69,66,13,42,189]} {"RAW":[9,126,56,64,110,160,251,8]}CheckSum Calc=40 RX Checksum=40
Closed. Debug is now operating correctly.
Made some progress in getting debug to initialize, but maybe it's not correct, I'm no programmer :) Changed this
to this
And now I see a debug =ON message in the serial console.
and I get this when the Efergy E2 LCD updates from a new transmission (after I removed my Serial.print lines).
So it's some progress, what do you make of the debug messages ?