Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

X10

 [1/3] from: amicom:sonic at: 8-Mar-2004 12:31


Has anyone written a Rebol controller for X10's FireCracker interface? I have the documentation on it, but didn't want to duplicate efforts if someone has already implemented it. Thanks! Bohdan "Bo" Lechnowsky Lechnowsky Technical Consulting

 [2/3] from: greggirwin:mindspring at: 8-Mar-2004 14:29


Hi Bo, Someone did some X10 stuff a while back, but I don't know what Firecracker is to know how it relates. I can try to dig it up if you want. -- Gregg

 [3/3] from: amicom:sonic at: 19-Mar-2004 11:09


I looked at Parki's X10 example he sent to the list a while back, but I couldn't get it to work with the Firecracker wireless serial controller. I'm assuming his was written for the powerline interface or somesuch. I have the technical specs for sending data to the Firecracker serial controller, but I'm not sure if I understand exactly why my attempt isn't working. First, the technical info: http://www.geocities.com/ido_bartana/Firecracker_protocol.htm Here is what I tried:
>> system/ports/serial
== [com1 com2] I have the interface plugged into com1, so that's good.
>> x10: open/binary/direct/no-wait serial://port1/4800/8/none/1
I tried with and without the following lines:
>> x10/rts-cts: false
== false
>> update x10
If I left the above lines out, Rebol would lock-up (totally) after the 'insert below.
>> insert x10 2#{11010101 10101010 01100000 00000000 10101101} >> close x10
Unfortunately, this doesn't turn on my light. If I use the (limited) software from X10 it turns on the light, so I know the computer and interface are working. I think I may not be understanding the whole RTS/DTR table they've got going on there. Is it possible to simulate that in Rebol? If so, how? Thanks in advance! Bohdan "Bo" Lechnowsky Lechnowsky Technical Consulting