Search found 7 matches

by jwtd
Wed Apr 09, 2014 1:29 pm
Forum: Developers Sandbox - Meter Data
Topic: Ruby Gem to Read EKM Omnimeter Pulse v.4
Replies: 10
Views: 29706

Re: Ruby Gem to Read EKM Omnimeter Pulse v.4

I have the meter hooked up as a remote meter using an iSerial converter. I'm getting the data back using Ruby's native TCPSocket lib, which gives me generic read and write methods. The code for the call is here https://github.com/jwtd/ekm-omnimeter/blob/master/lib/ekm-omnimeter/meter.rb#L388 . I ass...
by jwtd
Mon Apr 07, 2014 9:17 pm
Forum: Developers Sandbox - Meter Data
Topic: Ruby Gem to Read EKM Omnimeter Pulse v.4
Replies: 10
Views: 29706

Re: Ruby Gem to Read EKM Omnimeter Pulse v.4

I'm having trouble getting the CRC check to match. I tried to implement the algorithm described here http://forum.ekmmetering.com/viewtopic.php?f=4&t=5#p557 My implementation is here... https://github.com/jwtd/ekm-omnimeter/blob/master/lib/ekm-omnimeter/crc16.rb Response from snippet (2nd byte t...
by jwtd
Mon Apr 07, 2014 8:47 am
Forum: Developers Sandbox - Meter Data
Topic: Ruby Gem to Read EKM Omnimeter Pulse v.4
Replies: 10
Views: 29706

Re: Ruby Gem to Read EKM Omnimeter Pulse v.4

No need to reply, I got it working.

the_bytes.unpack('H*') gave me the correct combination of values.

"\x10$".unpack('H*') -> ["1024"]
"\x15".unpack('H*') -> ["15"]

Thanks!
by jwtd
Mon Apr 07, 2014 8:05 am
Forum: Developers Sandbox - Meter Data
Topic: Ruby Gem to Read EKM Omnimeter Pulse v.4
Replies: 10
Views: 29706

Re: Ruby Gem to Read EKM Omnimeter Pulse v.4

Thanks for getting back to me on the models. In the spec, it says the meter_type us 2 Bytes and the firmware version is 1 Byte. Let me make sure I understand how to interpret the table you provided. If model number bytes are a "10" and "11", the model is a "15IDS-N". Is...
by jwtd
Thu Apr 03, 2014 10:19 pm
Forum: Developers Sandbox - Meter Data
Topic: Ruby Gem to Read EKM Omnimeter Pulse v.4
Replies: 10
Views: 29706

Re: Ruby Gem to Read EKM Omnimeter Pulse v.4

I found the value maps for pulse input state, current direction, output state, demand period time, and auto reset max demand in the parsing reference PDF. The only two maps I haven't found yet are the Firmware and Meter Type lookup maps.
by jwtd
Thu Apr 03, 2014 3:01 pm
Forum: Developers Sandbox - Meter Data
Topic: Ruby Gem to Read EKM Omnimeter Pulse v.4
Replies: 10
Views: 29706

Re: Ruby Gem to Read EKM Omnimeter Pulse v.4

You're welcome. Regarding the date, I did set the date via the EKM Dash Software first. Is there a place where you set daylight savings time or timezone? If not, is the time supposed to be UTC? As for the precision of the kwh readings, I created a method to cast all the kwh attributes to the precisi...
by jwtd
Thu Apr 03, 2014 12:16 pm
Forum: Developers Sandbox - Meter Data
Topic: Ruby Gem to Read EKM Omnimeter Pulse v.4
Replies: 10
Views: 29706

Ruby Gem to Read EKM Omnimeter Pulse v.4

I've created a ruby gem that provides an interface to EKM Omnimeter Pulse v.4 meters that are connected to a EKM iSerial TCP/IP Ethernet to RS-485 Serial Converter. Still very early stage, so use at your own risk. Need to write more specs, format some of the response values better, and figure out th...