ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#9044 - 01/25/03 04:13 PM Guy's X-10 Logger Program
Anonymous
Unregistered



Guy contributed:

Here is the X-10 activity logging application. This program produces a
text log of X-10 activity for all possible house/unit codes and send it
out by either the controller's serial port or through an ascii bobcat,
version 6 or above (modify the module number accordingly). Note that I
have never tested it through an ascii bobcat myself. It uses variables
90 to 98 and ascii strings 100 and up. I've provided both a project and
a snippet. Also incuded is the special ascii strings file needed.

www.appdigsupport.com/ADI_Files/logger.pgm
www.appdigsupport.com/ADI_Files/logger.TCH
www.appdigsupport.com/ADI_Files/logger.SNP
www.appdigsupport.com/ADI_Files/X10statusstrings.asc

Top
#9045 - 01/25/03 04:34 PM Re: Guy's X-10 Logger Program
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Here is the X-10 activity logging application. This program produces a text log of X-10 activity for all possible house/unit codes and send it out by the controller's serial port. To help avoid conflicts with any existing variables and ASCII strings that you may already be using, it uses variables 90 to 98 and ascii strings 100 and up. I've provided both a program and a snippet. Also incuded is the special ascii strings file needed.

http://www.appdigusers.com/ADI_2/Logger/logger.pgm

http://www.appdigusers.com/ADI_2/Logger/logger.snp

http://www.appdigusers.com/ADI_2/Logger/X10statusstrings.asc
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#9046 - 06/01/03 03:22 PM Re: Guy's X-10 Logger Program
Drew Offline
journeyman


Registered: 03/25/03
Posts: 90
Loc: Darien, Illinois USA
[QUOTE]
...I've provided both a project and a snippet. Also incuded is the special ascii strings file needed.
[/QUOTE]Dan or Guy,

Shouldn't there be a .prj file if it's a project? Also, what do I do with the ASCII file? Thanks...

--Drew

Top
#9047 - 06/01/03 05:21 PM Re: Guy's X-10 Logger Program
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
There is no project file because this is meant to be mainly used as a snippet, to be added within an existing program. There are no modules normally used with it so I sent it as a regular program file if someone wants to try it standalone.

The ASCII file is meant to load as ASCII strings into your controller. These strings make up the logging messages, and are of the form

06/01/03 20:15 X-10 House Code: A Unit/Cmd: 1
06/01/03 20:15 X-10 House Code: A Unit/Cmd: ON
...

and will be put out by the controller's serial port as the events happen. You can then capture them into a file with any serial capturing utility, like Hyperterminal that comes with Windows.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#9048 - 06/01/03 07:40 PM Re: Guy's X-10 Logger Program
Drew Offline
journeyman


Registered: 03/25/03
Posts: 90
Loc: Darien, Illinois USA
[QUOTE]Originally posted by Guy Lavoie:
[qb]The ASCII file is meant to load as ASCII strings into your controller.[/qb][/QUOTE]Guy,

Maybe I'm a little slow, but I'm not fully grasping it yet. How does the ASCII file load as ASCII strings into the controller? I opened the file with Notepad and it looks like a lot of spaces with some text stings and control characters to make up logging messages. I just don't see how they get into the controller. Thanks...

--Drew

Top
#9049 - 06/02/03 05:15 AM Re: Guy's X-10 Logger Program
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Seems you haven't explored all the nooks and crannies of C-Max yet If you go into the controller access screen, the last pulldown menu (at the right end) is called "Serial Messages" and in there you have one selection called "ASCII Messages". This will open up a window where you can edit the ascii strings. In our case, just click on "file" --> "open" and open the .asc file that you downloaded with the logger program. You will need to scroll down to messages 100 and above to see the strings for the logging utility. I purposely put them there (as well as use variables between 90 and 100) to ease integration with an existing program; less chance of a usage conflict. Now to load the strings into your controller, select the destination module number at the bottom, which will be module 0 for your own controller, and click on "Send to" to start the loading process.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#9050 - 06/02/03 11:05 AM Re: Guy's X-10 Logger Program
Drew Offline
journeyman


Registered: 03/25/03
Posts: 90
Loc: Darien, Illinois USA
You're right...I'm still exploring. The Ocelot gets cooler everytime I get a question answered on here! And this ASCII message thing is opening even more doors!

--Drew

Top
#9051 - 03/29/06 03:28 PM Re: Guy's X-10 Logger Program [Re: Drew]
bman001 Offline
newbie


Registered: 09/08/05
Posts: 7
Doing some searching for some logger code I ran across this message. Can someone point me in the direction of where I can find this snippet and asc file?

Thanks

Top
#9052 - 03/29/06 04:00 PM Re: Guy's X-10 Logger Program [Re: bman001]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
It looks like the first post of this thread was lost in the forum migration. I just recreated it along with the needed links to get the files.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 64 anonymous users online.
Recent Posts
Cmax Message: Failed to set data for a 'delay'
by John Vomastic
07/03/17 10:14 PM
Shout Box

Newest Members
brigiel, vevevie, zhutree, 416, saiqul
3003 Registered Users
Forum Stats
3003 Members
19 Forums
4000 Topics
23426 Posts

Max Online: 132 @ 11/13/16 10:07 AM
July
Su M Tu W Th F Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31