Your Universal Remote Control Center
RemoteCentral.com
RTI Control Systems Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
RP-6 Serial Control of X10
This thread has 4 replies. Displaying all posts.
Post 1 made on Monday March 31, 2008 at 09:41
RTI_Source
Long Time Member
Joined:
Posts:
September 2007
15
I did a search but didn't find any obvious hits. If there is a thread that I missed, please feel free to point me there...

Otherwise, I'm trying to control a serial X10 interface with the RP-6. I tested the interface and snooped the serial port on a PC beforehand to make sure it's working but also to confirm the correct HEX data to send for control of the X10 lighting.

After programming the RP-6 for 4800-N-8-1 output of the same HEX data that showed success on the PC, I get nothing. The port blinks but the X10 interface never injects the commands into the AC system of the house!

The HEX output is something like this in a macro:
2 HEX bytes for housecode and address
0.1s pause to allow for interface to respond with checksum
1 HEX byte "00" for acknowledgement (correct sum assumed as RP-6 can't receive)
0.1s pause to allow interface to respond with HEX "55" (interface ready)
2 HEX bytes for housecode and command
0.1s pause to allow for interface to respond with checksum
1 HEX byte "00" for acknowledgement (correct sum assumed as RP-6 can't receive)

Any ideas?
Post 2 made on Monday March 31, 2008 at 11:40
estech
Active Member
Joined:
Posts:
August 2002
584
Can you list the macro (part)? What do your hex strings look like?

Otherwise, do you need CR at the end of each string? 0D in hex, \r in ascii

Have you tried adjusting the delay between characters in the hex string? right-click/edit step
Pay no attention to that man behind the curtain.
OP | Post 3 made on Monday March 31, 2008 at 16:40
RTI_Source
Long Time Member
Joined:
Posts:
September 2007
15
On March 31, 2008 at 11:40, estech said...
Can you list the macro (part)? What do your hex strings
look like?

Otherwise, do you need CR at the end of each string?
0D in hex, \r in ascii

Have you tried adjusting the delay between characters
in the hex string? right-click/edit step

Listing below...

Macro for button: Serial X10 - A9 - Off

Serial Port [CM-232] 5 (4800 8N1): \x04g
Serial Port [CM-232] 5 (4800 8N1): \x00
Serial Port [CM-232] 5 (4800 8N1): \x06c
Serial Port [CM-232] 5 (4800 8N1): \x00

Within each command, the option to allow 0.3s delay is enabled but there is 0ms between characters. Your suggestions are good ones. I'll play some more and see what I can learn.

As far as the CR required, the serial port sniffer should have shown that, I think. I'll try it and see..
OP | Post 4 made on Monday March 31, 2008 at 19:52
RTI_Source
Long Time Member
Joined:
Posts:
September 2007
15
Replying to my own post in the hopes that it may help somebody else.

1) The CM11A requires initialization. Figured that out by searching for "CM11A initialization" on the internet and reading. Did't realize at first as the original Activehome application I was testing with must have left the device in a "ready state" which was lost when I unplugged.

2) The macros that I'd put together were good except that I needed to have somewhere between .3s and .4s between sections of the macro to allow the CM11A to process/respond.

3) Within each RS232 command line, setting the RP-6 to space the hex characters by 10ms seemed to do the trick.

I think that's it...
Post 5 made on Tuesday April 1, 2008 at 11:31
tabascojunkie
Long Time Member
Joined:
Posts:
July 2007
255
Good info. How did you accomplish the initialization??
Does is seem 100% reliable via serial??

Just FYI..I've had pretty good luck just using thier IR/X-10 interface with an emitter stuck to the front. It's been working pretty good so far. I see there is now an Insteon serial contoller as well.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse