Closed DeltaTangoLima closed 2 years ago
Will take a look. The first byte of the packet is different which is why some that match their checksum (Calc & Checksum are equal), but the packet is still not valid. I will review and add some more relevant info in the debug routines.
OK, give this a try - I'm interested. In efergy.cpp on line 180 (https://github.com/hardtechnology/efergy_v2/blob/master/efergy.cpp#L180) Can you change the line from if ( CSbytes[0] == 7 || CSbytes[0] == 9 ) { to if ( CSbytes[0] == 8 || CSbytes[0] == 11 ) {
and see if you get something valid.
Hmmm - looks like an improvement. Still saying it's failed the checksum, but am I right thinking it's decoding some of the packets?
Connecting to Wifi.........Connected. (192.168.40.134)CheckSum Calc=224 RX Checksum=46
[00d 00:00.17s] Received Data failed Checksum - or incomplete packet{"BituSec":[509,72,78,71,70,144,68,68,65,23,144,66,142,140,138,58,137,59,140,63,137,137,62,135,137,59,62,140,64,66,68,67,69,64,68,72,72,72,73,72,71,70,74,74,15,72,74,72,73,74,69,73,72,74,75,77,74,72,72,146,70,142,139,138,64,66,63,61,51]}
Bit Pattern=SbbbbbbbXbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[509,72,78,71,70,144,68,68,65,23,144,66,142,140,138,58,137,59,140,63,137,137,62,135,137,59,62,140,64,66,68,67,69,64,68,72,72,72,73,72,71,70,74,74,15,72,74,72,73,74,69,73,72,74,75,77,74,72,72,146,70,142,139,138,64,66,63,61,51]}
{"RAW":[8,93,91,32,0,0,0,46]}CheckSum Calc=155 RX Checksum=155
[00d 00:00.17s] {"ts":179,"id":36766,"type":"RX","mA":7291,"W":0,"Int":6,"Pair":"Off","Batt":"OK","Mon":"No"}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbXbbE
{"BituSec":[510,71,72,72,72,145,69,141,136,139,64,67,67,140,138,136,132,136,63,63,137,135,135,135,58,63,138,64,65,67,68,70,66,71,143,139,138,63,138,65,63,140,65,140,65,138,137,64,62,68,68,69,70,71,70,143,137,140,65,66,139,138,63,137,134,23,16,36,32]}
{"RAW":[11,143,158,64,116,172,3,155]}CheckSum Calc=220 RX Checksum=92
[00d 00:00.23s] Received Data failed Checksum - or incomplete packet{"BituSec":[508,72,18,72,71,70,144,69,70,65,143,67,142,140,137,53,139,61,139,64,137,136,63,136,135,58,65,137,63,67,67,69,69,68,69,71,71,71,71,73,72,69,73,72,72,72,72,73,73,70,74,73,74,73,82,74,72,69,145,69,142,138,139,64,66,63,45,138,33]}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbXbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[508,72,18,72,71,70,144,69,70,65,143,67,142,140,137,53,139,61,139,64,137,136,63,136,135,58,65,137,63,67,67,69,69,68,69,71,71,71,71,73,72,69,73,72,72,72,72,73,73,70,74,73,74,73,82,74,72,69,145,69,142,138,139,64,66,63,45,138,33]}
{"RAW":[4,93,91,32,0,0,0,92]}CheckSum Calc=200 RX Checksum=200
[00d 00:00.23s] {"ts":239,"id":36766,"type":"RX","mA":7053,"W":0,"Int":6,"Pair":"Off","Batt":"OK","Mon":"No"}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[510,71,72,72,72,145,69,141,136,139,64,66,66,140,138,136,132,135,63,63,137,136,135,135,58,63,138,64,66,67,68,69,66,70,143,140,139,65,66,68,64,142,140,64,138,136,136,62,134,63,66,67,68,69,69,142,136,137,137,63,64,139,65,67,63,40,30,81,18]}
{"RAW":[11,143,158,64,112,221,3,200]}CheckSum Calc=220 RX Checksum=0
[00d 00:00.29s] Received Data failed Checksum - or incomplete packet{"BituSec":[504,21,17,46,36,21,20,72,135,65,12,84,45,29,134,54,144,99,139,21,86,135,54,144,15,63,116,94,62,163,121,47,22,54,151,84,14,59,56,38,60,24,12,17,64,21,70,18,72,71,12,52,63,27,69,53,18,72,31,18,71,18,15,46,16,57,72,69,13]}
Bit Pattern=SbbbbbbbbbbXbbbbbbbXbXbbbbbbbbbbbbbbbXbbbbbXbbbbbbXbbbXbbXbbbXbbbbbbbbbXbbbbXbbbbE
{"BituSec":[504,21,17,46,36,21,20,72,135,65,12,84,45,29,134,54,144,99,139,21,86,135,54,144,15,63,116,94,62,163,121,47,22,54,151,84,14,59,56,38,60,24,12,17,64,21,70,18,72,71,12,52,63,27,69,53,18,72,31,18,71,18,15,46,16,57,72,69,13]}
{"RAW":[1,5,74,76,64,0,0,0]}CheckSum Calc=200 RX Checksum=200
[00d 00:00.29s] {"ts":299,"id":36766,"type":"RX","mA":7053,"W":0,"Int":6,"Pair":"Off","Batt":"OK","Mon":"No"}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[510,71,72,72,72,145,69,141,136,139,64,66,67,140,138,136,132,135,62,63,137,135,135,135,58,63,138,64,66,67,68,70,66,70,143,139,138,64,67,68,65,141,140,64,138,136,135,62,134,64,66,67,69,69,69,141,136,138,137,63,64,138,65,66,64,66,50,26,35]}
{"RAW":[11,143,158,64,112,221,3,200]}CheckSum Calc=123 RX Checksum=0
[00d 00:00.35s] Received Data failed Checksum - or incomplete packet{"BituSec":[480,18,53,62,68,76,135,81,36,85,138,108,138,90,81,16,38,131,60,118,23,65,12,135,131,62,136,109,67,93,132,19,14,72,63,12,84,74,59,65,68,51,71,61,73,76,17,19,61,15,65,72,70,72,46,74,70,18,90,27,56,90,78,45,30,60,84,55,164]}
Bit Pattern=SbbbXbbbbbbbbbbbbbbbbbbbbbbbbXbbbbbXbbbXbbbbbbbXbbbbbbbXbbbbbbbbbbXbXbbbbXbbbbbE
{"BituSec":[480,18,53,62,68,76,135,81,36,85,138,108,138,90,81,16,38,131,60,118,23,65,12,135,131,62,136,109,67,93,132,19,14,72,63,12,84,74,59,65,68,51,71,61,73,76,17,19,61,15,65,72,70,72,46,74,70,18,90,27,56,90,78,45,30,60,84,55,164]}
{"RAW":[4,112,163,100,0,0,0,0]}CheckSum Calc=64 RX Checksum=64
[00d 00:00.35s] {"ts":359,"id":36766,"type":"RX","mA":6958,"W":0,"Int":6,"Pair":"Off","Batt":"OK","Mon":"No"}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[510,72,72,72,72,145,69,142,136,139,64,66,67,140,138,135,132,135,62,63,137,135,135,135,58,63,138,64,66,67,68,70,66,71,143,140,65,139,137,135,131,62,136,63,137,63,136,136,59,66,67,67,69,70,69,143,136,65,140,66,68,69,69,71,67,74,15,56,58]}
{"RAW":[11,143,158,64,111,86,3,64]}CheckSum Calc=220 RX Checksum=16
[00d 00:00.41s] Received Data failed Checksum - or incomplete packet{"BituSec":[498,75,74,60,17,68,144,65,68,71,135,64,140,137,140,49,150,61,140,54,137,135,65,134,108,58,63,136,64,65,36,66,66,72,56,82,69,72,11,16,82,83,24,37,64,28,50,23,63,12,65,47,72,16,19,72,28,66,20,25,106,51,49,27,72,74,15,77,46]}
Bit Pattern=SbXbbXbbbbbbbbbbbbbbbbbbbbbXbbbbbbbbbXbXXbbbbbbbbbbbbbbbbbbbXbbbbXXbbbbbbbbbbbbE
{"BituSec":[498,75,74,60,17,68,144,65,68,71,135,64,140,137,140,49,150,61,140,54,137,135,65,134,108,58,63,136,64,65,36,66,66,72,56,82,69,72,11,16,82,83,24,37,64,28,50,23,63,12,65,47,72,16,19,72,28,66,20,25,106,51,49,27,72,74,15,77,46]}
{"RAW":[4,93,91,32,0,0,0,16]}CheckSum Calc=200 RX Checksum=200
[00d 00:00.41s] {"ts":419,"id":36766,"type":"RX","mA":7053,"W":0,"Int":6,"Pair":"Off","Batt":"OK","Mon":"No"}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[510,71,72,72,72,144,69,141,136,139,64,67,66,140,138,136,132,135,63,63,137,135,135,135,58,63,138,64,66,67,68,70,66,70,143,139,138,65,67,67,65,141,139,64,138,136,136,62,134,64,66,67,68,69,69,142,136,138,136,63,64,138,65,66,64,59,31,30,56]}
{"RAW":[11,143,158,64,112,221,3,200]}CheckSum Calc=220 RX Checksum=5
[00d 00:00.47s] Received Data failed Checksum - or incomplete packet{"BituSec":[511,72,69,19,70,62,144,70,71,66,143,82,138,146,135,63,136,60,131,49,141,135,63,142,132,55,63,140,63,62,59,63,63,66,11,70,71,71,72,63,70,63,71,76,74,64,74,76,63,11,72,71,74,75,75,20,73,73,73,72,17,77,145,68,141,141,137,55,67]}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbXbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[511,72,69,19,70,62,144,70,71,66,143,82,138,146,135,63,136,60,131,49,141,135,63,142,132,55,63,140,63,62,59,63,63,66,11,70,71,71,72,63,70,63,71,76,74,64,74,76,63,11,72,71,74,75,75,20,73,73,73,72,17,77,145,68,141,141,137,55,67]}
{"RAW":[4,93,91,32,0,0,0,5]}CheckSum Calc=80 RX Checksum=80
[00d 00:00.47s] {"ts":479,"id":36766,"type":"RX","mA":7149,"W":0,"Int":6,"Pair":"Off","Batt":"OK","Mon":"No"}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbE
{"BituSec":[510,71,72,72,72,145,69,141,136,139,64,67,67,140,138,135,132,135,62,63,137,135,135,135,58,63,138,64,66,67,68,70,66,70,143,139,138,64,65,140,63,66,140,139,65,67,67,140,135,65,67,68,69,70,70,142,137,66,140,65,139,66,67,68,65,51,26,19,75]}
{"RAW":[11,143,158,64,114,99,3,80]}CheckSum Calc=149 RX Checksum=0
[00d 00:00.53s] Received Data failed Checksum - or incomplete packet{"BituSec":[508,57,70,72,64,144,88,72,66,143,93,139,138,136,63,146,60,130,79,135,137,14,57,130,130,58,79,139,62,64,65,68,65,63,70,18,71,70,72,14,68,13,63,72,22,57,13,54,15,72,81,18,72,71,69,72,36,73,80,95,73,74,70,72,11,72,145,76,141]}
Bit Pattern=SbXbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbXbbbbbbbbbbbbXbbbbbXbbbbbbbbbbbXbbbbbbbE
{"BituSec":[508,57,70,72,64,144,88,72,66,143,93,139,138,136,63,146,60,130,79,135,137,14,57,130,130,58,79,139,62,64,65,68,65,63,70,18,71,70,72,14,68,13,63,72,22,57,13,54,15,72,81,18,72,71,69,72,36,73,80,95,73,74,70,72,11,72,145,76,141]}
{"RAW":[8,186,179,32,0,0,0,0]}CheckSum Calc=4 RX Checksum=4
[00d 00:00.53s] {"ts":539,"id":36766,"type":"RX","mA":7006,"W":0,"Int":6,"Pair":"Off","Batt":"OK","Mon":"No"}
Bit Pattern=SbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbXbE
{"BituSec":[510,72,72,72,71,145,69,142,135,138,65,66,67,139,137,136,132,135,62,63,136,135,135,135,58,63,137,64,66,67,69,69,65,70,142,140,139,65,66,68,64,71,71,70,143,141,67,67,137,68,68,69,71,71,71,143,137,67,68,70,71,70,143,68,65,53,81,19,29]}
{"RAW":[11,143,158,64,112,25,3,4]}
If you only have a single transmitter you are 100% functional. Time to disable debug. All the rest are just other transmissions from 433MHz devices that we don't care about! Transmitter 36766 is reporting every 6 seconds, which is what it is configured for. Looks good!
Fantastic. I suspected so, so good to get confirmation. Quick q: is it possible to differentiate the data between two different clamps on the same transmitter? I have one on my solar in and one on my household consumption.
Unfortunately, the transmitters only send a single value. Would need a separate transmitter module, and then it will show up. The extra inputs are really only useful for 3-phase, or to add/subtract different loads from the total.
Ah cool. I have two transmitters (and two monitors). I'll move one clamp over to the other transmitter. Cheers!
Hey mate - finally got around to trying your new library (couldn't get the older EfergyMQTT repo working) on my older Efergy Elite, and getting checksum failures on the packets. Do you happen to know if the Elite's packets are different to the E2's?
Cheers, Dan.
Sample from debug level 5: