Please login or register.

Login with username, password and session length

Author Topic: Please point me in the right direction  (Read 3441 times)

Komits

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Please point me in the right direction
« on: July 20, 2012, 03:41:37 PM »

Hi,
I feel I have a simple objective but am have trouble finding the right combination of information to achieve my goal.  I want to write my own software in .Net (VB or C#) to simply turn on/off a remote device.  Online I purchased a CM19A USB PC Transceiver, TM751-A Transceiver Module, and AM466 Appliance Module 3-Pin Grounded thinking this is what I needed to do the job.  No software came with any of this.  My project is to control the pump to my pool's solar panels based on my roof's temperature.  I have already written the code to monitor the roof temp (http://tempwatcher.cpu-ne.net:81/ - if you are curious - may take a min to load) and now based on that info I want to add a x10 call to trigger the pump motor to turn on or off.  My questions are what dll do I need to drive the CM19A which talks to the TM751-A which sends the on/off signal to the AM466 where the pump is plugged in.  Where can I get the dll?  Is there any existing sample vb or C# code showing how to use the dll?  When searching online I came across some info for Firecracker and cm15a and cm11 - are these programmatically the same as the cm19A?  Any advice is welcome.  Thanks in advance for your help! 
Logged

dhouston

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 37
  • Posts: 2547
    • davehouston.org
Re: Please point me in the right direction
« Reply #1 on: July 20, 2012, 05:37:23 PM »

The CM11A and CM17A (Firecracker) were RS232 devices. X10 published those protocols but they have not published the protocols for the CM15A or CM19A which both have USB interfaces.

I don't know whether it will help but there is some open source Linux code for the USB devices. I don't believe it handles the full protocols as it is based on reverse engineering by several people over several years but it sounds like you only need a way to send a few codes.
« Last Edit: July 20, 2012, 05:39:20 PM by dhouston »
Logged
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Please point me in the right direction
« Reply #2 on: July 20, 2012, 07:36:20 PM »

You'll need the Activehome Pro SDK
Originaly created for the cm15 it was updated to support the cm19 and cm11.
There are VB and other language samples included.
 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Komits

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: Please point me in the right direction
« Reply #3 on: July 21, 2012, 09:52:44 AM »

Thanks for the info!! This is waht I needed!  I downloaded the SDK, installed it, played with the VBScript and VB Sample program and I was able to get my devices working!  I have already incorporated the code into my main progam and am now waiting for the temp outside to warm up to see if the pump really kicks on!  2 observations... a) I do not seem to be getting any confmation code back (although I really havn't spend more the 5 min on this) but is getting a confirm back even possible? b) It seems if I plugged AM466 into a GFI outlet my send codes did not go through - it had to be plugged into a regulay outlet.  Does this make sense?   Thanks again for your help!
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13295
Re: Please point me in the right direction
« Reply #4 on: July 21, 2012, 11:06:01 AM »

a) Confirmation code back? If you mean will the AM466 send back a verification it went On. No it will not. It is a one way device and has no power line transmitter in it. Also the TM751 only takes X10 RF commands and send them on the power lines. The CM19A is strictly RF send and receive so it also will not receive status messages if a two way module was involved.

b) Possible the GFCI maybe effecting the power line signals. We have seen spotty reports of some causing problems.
You may also want to check out some of the troubleshooting tips for X10 as noise phase coupling and signal absorbers can also effect X10 commands.
http://jvde.us/x10_troubleshooting.htm
http://www.act-remote.com/PCC/uncle.htm
http://www.davehouston.net/
« Last Edit: July 21, 2012, 11:19:48 AM by Brian H »
Logged
 

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