Author Topic: Ruby code for EZ-Bridge (Insteon) RC1  (Read 12135 times)

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Ruby code for EZ-Bridge (Insteon) RC1
« Reply #30 on: December 14, 2007, 01:59:58 am »
I've tried BOTH the EZBridge, and direct to the PLM.
(I have my developer PLM attached to my windows box)
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Ruby code for EZ-Bridge (Insteon) RC1
« Reply #31 on: December 14, 2007, 02:13:22 am »
I have double checked, BOTH the PLM and the EZBridge report back exactly the same..

Looks like the problem is with the device being interrogated (the EZRain1)

I've run the same tests on other devices, as a result of the problems with the EZRain..
The only device I found that reports CORRECTLY is the EZX10RF.

The EZBridge (when being interrogated by an external PLM) responds the same way as the EZRain... the 2MSB is different though..

When it comes down to it, even though the devices don't follow spec, they are still distinguishable, unlike the legacy devices.

I'm trying to find a way to determine if I'm talking to a Switchlinc, or a Keypadlinc...

I'll let you know if I find a way...

Dan
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Ruby code for EZ-Bridge (Insteon) RC1
« Reply #32 on: December 14, 2007, 03:00:21 am »
On another note, it looks like the PLM support Higher level All-Link commands.
I've verified the EZBridge also supports them.
so, it looks as though I don't have to poke the devices after all...

Good news for me... :)
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

PeteK

  • Guru
  • ****
  • Posts: 408
    • View Profile
Re: Ruby code for EZ-Bridge (Insteon) RC1
« Reply #33 on: December 14, 2007, 03:13:17 am »
Ah, lucky you. ;)

PeteK

  • Guru
  • ****
  • Posts: 408
    • View Profile
Re: Ruby code for EZ-Bridge (Insteon) RC1
« Reply #34 on: December 14, 2007, 03:44:21 am »
So have you tried linking yet?

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Ruby code for EZ-Bridge (Insteon) RC1
« Reply #35 on: December 14, 2007, 04:05:33 am »
not linking yet.. I've been trying to figure out how to tell the devices apart...

I FINALLY FOUND IT!!!

Legacy devices INCLUDED!!!

Here's how:
send a SD 0x1000 (ping)
watch for a broadcast message back (message flags 8B)
in the To Address fields of that message will be:
High Byte = DEV CAT
Middle Byte = SUB CAT
Low Byte = Firmware Version

This seems to be the way of determining at least the device types..

I've been painstakingly going through my devices and recording the results in a spreadsheet..  All seems OK so far..

Here's my results in a nutshell:
LampLinc V2 = 01 00 32
EZRain1 = 04 00 FF
KeypadLincs = 01 09 29
Access Points: return an Extended length message with 00 00 22
SwitchLincs = 01 01 27
ApplianceLincs = 02 09 32
SwitchLinc Relays = 02 0A 2C
SwitchLinc 1000W Dimmer = 01 04 28

Keep in mind, the last value is a firmware version, may not always be the same...

That should make you happy!

« Last Edit: December 14, 2007, 04:07:34 am by ddamron »
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Ruby code for EZ-Bridge (Insteon) RC1
« Reply #36 on: December 14, 2007, 07:42:39 am »
Aaawwkgghhhrrrraaaa

Been at that stupid problem ALL DAY.  Finally got it figured out, and can't think straight enough to implement it..

I've got it implemented into my code, just not debugged yet.. 12 hours at the same problem (Solid, I might add)  It's bed time.  I can't program like I used to in the days of structured.. 16 Hours no problem, sometimes 24...

Ahh, getting older, and not liking it..

G'night all
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.