minicom utility problems with understanding

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!

 

Robert Wall's picture

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);

alexlember's picture

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?

alexlember's picture

Re: minicom utility problems with understanding

I've attached an image. Is it correct?

Robert Wall's picture

Re: minicom utility problems with understanding

No, sorry, this is what you have:

 
10 38 37 37 37 39 37 200 6 0 0 0 0
-- ----- ----- ----- ----- --- ---
 |   |     |     |     |    |   |
 |   |     |     |     |    |   Temperature
 |   |     |     |     |    Vrms
 |   |     |     |     Power 4
 |   |     |     Power 3          
 |   |     Power 2
 |   Power 1
 Node ID

Two bytes for each integer! Power 1 = 38 + (256 × 37) = 9510 W.

alexlember's picture

Re: minicom utility problems with understanding

Now it's clear for me! Thanks a lot!

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.