LinuxMCE Forums
May 23, 2013, 12:40:46 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Ruby code for EZ-Bridge (Insteon) RC1  (Read 9169 times)
ddamron
Alumni
wants to work for LinuxMCE
*
Posts: 962



View Profile WWW
« 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)
Logged

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 WWW
« 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
Logged

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 WWW
« 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... Smiley
Logged

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
« Reply #33 on: December 14, 2007, 03:13:17 am »

Ah, lucky you. Wink
Logged
PeteK
Guru
****
Posts: 408


View Profile
« Reply #34 on: December 14, 2007, 03:44:21 am »

So have you tried linking yet?
Logged
ddamron
Alumni
wants to work for LinuxMCE
*
Posts: 962



View Profile WWW
« 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 » Logged

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 WWW
« 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
Logged

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.
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!