I tried to use minicom utility, I have this configs:
74 i10 g210 @ 433 MHz Lock: 1
And I have that output:
10 38 37 37 37 39 37 200 6 0 0 0 0
Could you please explain me each digit meaning? If some of them are physical sense could you also tell me about the unit of measure of each data?
Thank you!
Re: minicom utility problems with understanding
"10" is the node number, the remaining data is the "payload" from your emonTx. It is 6 integer values represented as byte values in decimal.
You need to look at the (default?) emonTx sketch to see what the payload is, then look at where the values are copied into it to see if there is a multiplier.
The payload is defined:
typedef struct { int power1, power2, power3, power4, Vrms, temp; } PayloadTX;
PayloadTX emontx;
Then looking down to see how we get power1 (for example), we see:
emontx.power1=ct1.realPower;
That power is in watts. But doing the same for Voltage, you see the voltage is multiplied by 100:
emontx.Vrms=ct1.Vrms*100;
and temperature by 10:
emontx.temp=(temp*10);
Re: minicom utility problems with understanding
Yes, I looked at default emonTx sketch and I saw this structure:
typedef struct { int power1, power2, power3, power4, Vrms, temp; } PayloadTX;
PayloadTX emontx;
I have this output in minicom: 10 38 37 37 37 39 37 200 6 0 0 0 0
Isn't it too many values for this structure?
10 - node number
power1, power2, power3, power4, Vrms, temp - 6 integer values, but I have 12 values, exclude node number.
How to link them with each other?
Re: minicom utility problems with understanding
I've attached an image. Is it correct?
Re: minicom utility problems with understanding
No, sorry, this is what you have:
Two bytes for each integer! Power 1 = 38 + (256 × 37) = 9510 W.
Re: minicom utility problems with understanding
Now it's clear for me! Thanks a lot!