Please login or register.

Login with username, password and session length
Advanced search  

News:

The X10Hub (PiX10Hub) is here! Created by the Community, for the Community.:)% #:)

Author Topic: Pgm to load data from a text file into HC60CRX = CM11A without mouse or GUI  (Read 16626 times)

wkyoung

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2

I had something like that I wrote years ago for the X10 PowerHouse CP290 and my 8088 pc. 
Keywords in a text file were used to construct timer events for the interface and events from the interface were converted back to show that the interface was getting what I intended.

I bought the RCA Active Home deal last month since it is serial and not USB. 
So, now I need to find out how much data it will hold and get a program I can start automatically to keep the interface events updated. 

(long story)
The CP290 could only handle a one week schedule, but by running my program using a data file with the baseball schedule typed from a calendar, it could run things around the house and turn the radio on just in time for baseball games. 
(More recently it has extracted baseball and hockey schedules from the internet)
My program loaded standard weekly events and selected dated entries that would be needed in the coming week. 
To make it work with a 486 pc, I needed to adapt a driver program written for a course I took for the BSCS degree. 
It was still working great untill last year in August when the 486 power supply died. 
The ports on my Celeron pc do not offer the needed baud rate. 
The CP290 is still running on that last 7 day schedule. 
Our power was off for 50 hours last month and a 9 volt battery kept the memory and clock running and even now scheduled events are only about 4 minutes late. 
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 289
  • Posts: 12679

Have you downloaded the manuals for the CK11A and the protocol sheet?
cm11a_protocol.txt
CK11A_om.pdf
http://www.x10.com/support/support_manuals.htm
Logged

wkyoung

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2

Yes, I have read the protocol and now looked at CK11A_om.pdf
Still looks like unless one of these programs will copy a file to the interface:
Directory of F:\Program Files\X10
File Name         Size        Allocated      Modified      Accessed  Attrib

X10SCHED EXE       120,821       122,880  01.01.12 11:49a  06.08.10       A     X10SCHED.EXE
ACTIVE   EXE       177,343       180,224  01.01.12 11:49a  06.08.10       A     ACTIVE.EXE
MACRO    EXE       139,566       143,360  01.01.12 11:49a  06.08.10       A     MACRO.EXE
X10COMM  EXE        79,617        81,920  01.01.12 11:49a  06.08.10       A     x10comm.EXE
X10BURST EXE        79,617        81,920  01.01.12 11:49a  06.08.06       A     X10BURST.EXE
X10COM32 EXE       163,840       163,840  02.03.11  3:51p  06.08.10       A     x10com32.exe

I will have to write my own program because there is no way I am going to use a mouse to add 162 baseball events a year and around 80 hockey events. 

Guess the first step is to make a small program to work out the handshaking protocol and successfully send any command to the interface. 
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 289
  • Posts: 12679

Don't know if anything here may apply but you may want to look.
http://home-automation.org/Software/Windows_and_DOS/
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 93
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX

Are you limited to running under MS-Windows?  If you're willing to load Linux on your system you can use Heyu to program a schedule of timers and macros (described by a simple text file) into your HC60CRX from the command line   See http://www.heyu.org

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

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 289
  • Posts: 12679

OH yes I have heard about heyu. I think I may even have it somewhere.
Logged
 

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