Jump to content


Photo
- - - - -

M1G Serial port output


  • Please log in to reply
4 replies to this topic

#1 frankdr

frankdr

    Cocooner

  • Registered
  • PipPip
  • 53 posts
  • Location:Fort Worth, Tx

Posted 25 August 2005 - 09:30 PM

I've been testing sending and receiving data through the internal serial port. In addition to the output that I have programmed, I get additional data being sent every 30 seconds. Here's some example output.

temp 79
16XK2224215250805110006E
16XK5224215250805110006B
16XK2125215250805110006E
16XK5125215250805110006B
temp 79
16XK2126215250805110006D
16XK5126215250805110006A
16XK2127215250805110006C
16XK51272152508051100069


I have the temp sent every 2 minutes. The other stuff appears every 30 seconds. Any idea what the other stuff is?

-Frank

#2 Dan (electron)

Dan (electron)

    CocoonTech Admin

  • Admin
  • PipPipPipPip
  • 10865 posts
  • Twitter:@CocoonTech
  • Location:Central NY
  • Experience:guru
  • Software:EventGhost, HomeSeer
  • Hardware:Elk M1, Mi Casa Verde Vera, Ocelot
  • Tech:X10-RF, UPB, Z-Wave, ZigBee
  • Audio:AirPlay
  • Video:SageTV
  • CCTV:analog, ip, dvr
  • Phone:OBi100/110

Posted 25 August 2005 - 09:33 PM

From the SDK:

Ethernet Module Test (XK)
If the M1XEP Ethernet Module has been enrolled into the system during the module enrollment process using Installer Programming Menu 1, the “XK” command will be sent every 30 seconds to make sure the Ethernet Module is still active.  Should an “AT” or “AR” command be sent, the 30 second time interval will start over. The Ethernet Module must reply with the “xk” command within 70 seconds or an “Ethernet Trouble” message will be displayed and logged.  This allows for 1 transmission miss.


I have the same problem, but I don't have the Ethernet module.

As for the temperature, there is no need to force a reading, the Elk M1 will automatically send an update whenever the temperature changes.

#3 frankdr

frankdr

    Cocooner

  • Registered
  • PipPip
  • 53 posts
  • Location:Fort Worth, Tx

Posted 25 August 2005 - 11:31 PM

I don't have the ethernet module, and I don't recall changing anything from default.

I was using the temperature display as a test for sending something out the serial port, which works fine. I just found the serial communication spec on the ELK website, so I'll being trying that when I get some time.

-Frank

#4 Dan (electron)

Dan (electron)

    CocoonTech Admin

  • Admin
  • PipPipPipPip
  • 10865 posts
  • Twitter:@CocoonTech
  • Location:Central NY
  • Experience:guru
  • Software:EventGhost, HomeSeer
  • Hardware:Elk M1, Mi Casa Verde Vera, Ocelot
  • Tech:X10-RF, UPB, Z-Wave, ZigBee
  • Audio:AirPlay
  • Video:SageTV
  • CCTV:analog, ip, dvr
  • Phone:OBi100/110

Posted 26 August 2005 - 06:31 AM

if you need help figuring this stuff out, check out the my.Elk script I posted in the Home Automation download subforum. It's vbscript, so it's easy to understand.

#5 Spanky

Spanky

    Cocoonut

  • Manufacturers
  • PipPipPipPip
  • 2484 posts
  • Location:Shippensburg, PA USA
  • Experience:guru
  • Software:Custom
  • Hardware:Elk M1
  • Tech:X10-PLC, X10-RF, UPB
  • CCTV:ip
  • Phone:VoIP via ISP

Posted 26 August 2005 - 05:28 PM

I suggest you download the ASCII Protocol Document from the M1 section of www.elkproducts.com website. It explains the serial protocol. Under Global 35 to 42 automatic transmissions of data can be enabled and disabled.

There is alot of data available on the RS-232 Port 0 data bus.

Note: When deciding if a data bus command is valid, do not use the length as part of the validation of the command. The length bytes may change as add new data is added to the strings. Any new data will be added to the end of the existing strings, before the CRC value.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users