Please login or register.

Login with username, password and session length

Author Topic: Programming cm15a ?  (Read 7109 times)

RedNecker

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 14
Programming cm15a ?
« on: September 07, 2007, 09:05:25 PM »

Can the cm15a be programmed in binary, hex, & octal?

Can the cm15a control motion sensors & cameras ?

Is the Iwatch or XRAY needed or just use the SDK software to put the video and/or snaphot pictures one the internet?

Can it be made to function as a phone dialer?

New to this & trying to understand. 
Very confusing with all the rants & positive posts about the cm15a.
Logged

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: Programming cm15a ?
« Reply #1 on: September 08, 2007, 01:04:31 AM »

Can the cm15a be programmed in binary, hex, & octal?
Yes, depending on what you mean.  AHP allows you to create timers, macros, etc. and have them run from the CM15A stand-alone.  There is a Software Developers Kit which allows basic access to the CM15A's send and receive commands (and not much else) from languages that can access ActiveX or COM objects.  There is presently no support for downloading timers and macros within the SDK however.

Can the cm15a control motion sensors & cameras ?
Yes.

Can it be made to function as a phone dialer?
Only with add-on software and a computer running at all times.  The CM15A itself doesn't have dial-out capability.

New to this & trying to understand. 
Very confusing with all the rants & positive posts about the cm15a.
Yes.  The CM15A has some "issues" out-of-the-box, but most of them have been addressed (by us dedicated users) in one post or another on this forum.
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!

RedNecker

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 14
Re: Programming cm15a ?
« Reply #2 on: September 08, 2007, 08:02:45 AM »

Can the cm15a be programmed in binary, hex, & octal?

By this I mean is the command sent to the CM15A in binary, hex, or octal digits?

Thanks for the repy.
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Programming cm15a ?
« Reply #3 on: September 08, 2007, 11:13:23 AM »

Can the cm15a be programmed in binary, hex, & octal?
By this I mean is the command sent to the CM15A in binary, hex, or octal digits?


At the lowest level, all communication between the computer and the CM15A is via strings of binary bytes.

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

RedNecker

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 14
Re: Programming cm15a ?
« Reply #4 on: September 09, 2007, 10:06:14 AM »

Yes, I understand that.  But some devices will only accept hex, or octal, or binary.  It depends on their input circuit & then they translate the incoming stream into binary if needed.

One poster from South America was trying to send binary stream & it would not accept it.  Someone else posted a reply & I think the sample code stream was in octal.


How much memory does the CM15A have available for programming?
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Programming cm15a ?
« Reply #5 on: September 09, 2007, 10:53:12 AM »

Yes, I understand that.  But some devices will only accept hex, or octal, or binary.  It depends on their input circuit & then they translate the incoming stream into binary if needed.

One poster from South America was trying to send binary stream & it would not accept it.  Someone else posted a reply & I think the sample code stream was in octal.


What layer was he writing to - the SDK command line, the DLL, or direct to the USB port?  And did he know what he was doing?  X-10 has not published any hardware-level CM15A interface info.

(I can't imaging any modern PC software using octal other than for backward compatibility.)

Neil Cherry has some low-level CM15A programming information here:  http://www.linuxha.com/USB/cm15a.html
A lot of the basic control is similar to that published in X-10's CM11A Protocol document.

Quote
How much memory does the CM15A have available for programming?

8 KB for macros and timers.

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

RedNecker

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 14
Re: Programming cm15a ?
« Reply #6 on: September 09, 2007, 02:21:36 PM »

I found the post.   http://www.x10community.com/forums/index.php?topic=13125.0

It was not octal, it was hex.  I misunderstood the notation of "0x05' as the octal number 5 instead of the hex number 5


I just ordered the ActiveHome ultimate starter kit that is supposed to include a bunch of software $99.  Also ordered the 1-cam xCam2 wireless cam system $89, and the 27 piece big Protector + system $149

I know I will need help later.

Thanks again,
Logged

RedNecker

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 14
Re: Programming cm15a ?
« Reply #7 on: September 09, 2007, 02:26:20 PM »

Which free software would be useful for me to download. 

I will start with the software provide in the kit, then VB and maybe forth later.

I plan on learning the ins & outs of the X10 system.
Logged

HA Dave

  • Hero Member
  • *****
  • Helpful Post Rating: 175
  • Posts: 7127
Re: Programming cm15a ?
« Reply #8 on: September 09, 2007, 03:59:15 PM »


I just ordered the ActiveHome ultimate starter kit that is supposed to include a bunch of software $99. 


You should get an email with links to download software... maybe 4 or 5 links. Download ALL of them, and RUN FROM THE SITE. They install from the sever! Those should be all you need ... and will keep you busy for awhile.

P.S. Save your purchase info, and the email confirmation, if you ever need the software again, you can call X10, and they will re-send you the links.
« Last Edit: September 09, 2007, 07:32:50 PM by Dave_x10_L »
Logged
Home Automation is an always changing technology

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: Programming cm15a ?
« Reply #9 on: September 09, 2007, 04:16:03 PM »

Which free software would be useful for me to download. 

I will start with the software provide in the kit, then VB and maybe forth later.

I plan on learning the ins & outs of the X10 system.


You can create some very complex home automation setups with just the software included with the CM15A... no "real" programming required.  I would suggest just playing with what comes with it for a while.   ;)

Should you then decide you need to write some custom software, may I would suggest downloading the free ActiveHome Pro Software Development Kit.
It provides information about how to use the built-in "ActiveX" and "COM object" hooks within AHP to perform basic functions like sending and receiving X10 signals within your custom software.

You can use whatever "flavor" of programming language you are comfortable with to communicate with the SDK as long as it has support for "ActiveX" and / or "COM" objects.  Heck, I wrote the first version of BVC (then named BXVC) in JScript!   :o

If you need to communicate with the CM15A on an even lower level, the very helpful link provided by Charles Sullivan above has about the best information I have seen about such low level communication with the CM15A.
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!
 

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