PERL vs SHELL

For more advanced meter data users. Learn from others and ask questions about how to read meters, how to use the EKM Push Data, and how to display the meter data in useful ways.
Jameson
Posts: 860
Joined: Fri Nov 04, 2011 7:42 pm
Location: Santa Cruz, CA
Contact:

Re: PERL vs SHELL

Post by Jameson »

Please take a look at the attached screenshot. This is shows the Dash Hex inspector (with the time highlighted in the Hex) and the date that it has parsed on the right.

31 33 31 30 32 39 30 33 31 33 34 35 30 37

This is parsed as 2013 October 29 Tuesday (3rd day of week) 13:45:07
Attachments
EKM Dash Hex Inspector.png
EKM Dash Hex Inspector.png (121.89 KiB) Viewed 9913 times
Jameson
EKM METERING
http://www.ekmmetering.com
831.425.7371
riv
Posts: 29
Joined: Mon Apr 15, 2013 3:55 am

Re: PERL vs SHELL

Post by riv »

So those bytes stands for the day of week?
31 33 31 30 32 39 30 33 31 33 34 35 30 37
where
30 30 => [00] => Sunday
30 31 => [01] => Monday
....
30 36 => [06] => Saturday.

Correct?
----
V. Rublyov
Jameson
Posts: 860
Joined: Fri Nov 04, 2011 7:42 pm
Location: Santa Cruz, CA
Contact:

Re: PERL vs SHELL

Post by Jameson »

Yes, that is it exactly 8-)

Well actually, not exactly.

Sunday is 30 31
Monday is 30 32
Tuesday is 30 33
Wednesday is 30 34
Thursday is 30 35
Friday is 30 36
Saturday is 30 37
Jameson
EKM METERING
http://www.ekmmetering.com
831.425.7371
riv
Posts: 29
Joined: Mon Apr 15, 2013 3:55 am

Re: PERL vs SHELL

Post by riv »

got it, thanks.

strange, why it need 2 bytes to keep the day of week, plus why it is required at all, as it is calculated value..... not a question, just concern.
----
V. Rublyov
riv
Posts: 29
Joined: Mon Apr 15, 2013 3:55 am

Re: PERL vs SHELL

Post by riv »

result code "0x06" stands for success. any other code and encoding of those error codes?
----
V. Rublyov
Jameson
Posts: 860
Joined: Fri Nov 04, 2011 7:42 pm
Location: Santa Cruz, CA
Contact:

Re: PERL vs SHELL

Post by Jameson »

Yes, when you successfully send a setting and the meter responds with a "0x06", this means success or OK.

There are no other codes that I know of that the meter would send in the place of "0x06". The meter does not respond if something is wrong.
Jameson
EKM METERING
http://www.ekmmetering.com
831.425.7371
Post Reply