[REBOL] X10
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