Please login or register.

Login with username, password and session length

Author Topic: BEGINNING IN X10  (Read 19533 times)

alegon

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 30
    • Siatron Automation
BEGINNING IN X10
« on: August 01, 2007, 08:04:05 PM »

HI,

I AM TRYING TO USE the X10.
I SERIAL SENDING FOR THE COMMAND 11100110011001110011000111
TO POWER HOUSE "A" KEY NUMER "1"

IT DOES NOT FUNCTION  >:(

WHERE IT IS THE ERROR?

THANKS




Logged
Home Automation in Brazil

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: BEGINNING IN X10
« Reply #1 on: August 02, 2007, 12:20:18 AM »

First, please do not use all CAPITAL letters (unless you have no choice) as this is seen as SHOUTING!   ;)

It sounds like you are sending a string of bits out the serial port?

What device is connected to your computer's serial port to put the output on the power line?

From the way your post reads, I believe you are not an english speaker.  What is your native language?

We will help all we can if you can give more detail.
Logged
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

alegon

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 30
    • Siatron Automation
Re: BEGINNING IN X10
« Reply #2 on: August 02, 2007, 10:20:29 AM »

Hi

Excuse I don't speak English.
I am from Brazil. I speak Portuguese.
I am programmer windows dot net
I am use CM11A in computer serial.
I sending the command for serial port 11100110011001110011000111

                                                     1110  0110    01100  1110   0110   00111
                                                     star    house   key      start   house  Function
                                                    code   code     code    code  code    code (off)

I want to turn off X10 Appliance Module (house "A" key "1")

what is wrong?


thank you






Logged
Home Automation in Brazil

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: BEGINNING IN X10
« Reply #3 on: August 02, 2007, 10:47:13 AM »

Hi

Excuse I don't speak English.
I am from Brazil. I speak Portuguese.
I am programmer windows dot net
I am use CM11A in computer serial.
I sending the command for serial port 11100110011001110011000111

                                                     1110  0110    01100  1110   0110   00111
                                                     star    house   key      start   house  Function
                                                    code   code     code    code  code    code (off)

I want to turn off X10 Appliance Module (house "A" key "1")

what is wrong?

thank you


The code you describe is the bit stream that the CM11A transmits over the power line, not what you should write to the CM11A.

To program the CM11A to send the "A1 Off" signal, you have to communicate with the CM11A as follows.
Address the module "A1":
        1. Send the two bytes 0x04 0x66
        2. Read back the checksum, which should be 0x6a
        3. Send the byte 0x00 to tell the CM11A to transmit the code over the powerline.
        4. Read back the "ready" code 0x55
        5. Delay for 3 AC powerline cycles.
Send the command function "A Off":
        1. Send the two bytes 0x06 0x63
        2. Read back the checksum, which should be 0x69
        3. Send the byte 0x00 to tell the CM11A to transmit the code over the powerline.
        4. Read back the "ready" code 0x55
        5. Delay for 3 AC powerline cycles (before sending another address or function).

For more details, see the CM11A protocol at:
   http://software.x10.com/pub/manuals/cm11a_protocol.txt




Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: BEGINNING IN X10
« Reply #4 on: August 03, 2007, 12:52:27 AM »

alegon,

Give more information = get better answer!  You see?   ;D

(I try to keep simple for translator program!)  ;)

Good luck!   :D
« Last Edit: August 03, 2007, 12:54:25 AM by -Bill- (of wgjohns.com) »
Logged
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

alegon

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 30
    • Siatron Automation
Re: BEGINNING IN X10
« Reply #5 on: August 03, 2007, 08:07:44 AM »

Bill,

I don't quite understand.

house code A =0110
Key code 1 = 01100

How do you get from 01100110 to 0x04,0x66

What conversion did you use?

thank you


   

                                                   
Logged
Home Automation in Brazil

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: BEGINNING IN X10
« Reply #6 on: August 03, 2007, 08:31:14 AM »

Bill,

I don't quite understand.

house code A =0110
Key code 1 = 01100

How do you get from 01100110 to 0x04,0x66

What conversion did you use?

thank you
                                                   

I'm not Bill.

01100110 = 0x66

Read section 3 of the protocol and you will understand.
  http://software.x10.com/pub/manuals/cm11a_protocol.txt

« Last Edit: August 03, 2007, 08:36:08 AM by Charles Sullivan »
Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.