Please login or register.

Login with username, password and session length

Author Topic: Activity Monitor Question  (Read 9207 times)

bret5823

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3
Activity Monitor Question
« on: November 13, 2006, 11:19:43 PM »

Does anyone know where the actions displayed in the Activity Monitor are stored?  I have looked everywhere and in all the X10 files.  I need to write some Java code to monitor the state of each divice and the RF states being received.  Because there is no Java header for the DALL this is the only way I can see to get the information I need.  I need this to control other non X10 divices.  If there are other suggestions please let me know.

Thanks for the help,
Bret
Logged

ArtClark

  • Guest
Re: Activity Monitor Question
« Reply #1 on: November 14, 2006, 04:03:35 AM »

I fairly sure the AM history file in in x:\Doc & Set\all users\app data\x-10 settings\ cmdhst.xx where xx is an incrementing number.

The data in here is binary and you would have to decode it, but that should not present a problem if you are already coding in Java.  Just send known codes and build a translate table?

I can't be positive that these ARE the history files because I havn't actually decoded them, but the time/date of the files is correct.  When the files are changed/updated I can't say either, nor if they are a buffer that is changed only when "Clear History" is done, but Others may have more info, and in the meantime, this is a good place to start.
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Activity Monitor Question
« Reply #2 on: November 14, 2006, 11:37:06 AM »

This link / thread may help with your question:

cmdhst.xx log file format
Logged

Dan Lawrence

  • Hero Member
  • *****
  • Helpful Post Rating: 68
  • Posts: 3991
Re: Activity Monitor Question
« Reply #3 on: November 14, 2006, 01:09:16 PM »

There's a print command in the Activiity Monitor, and it will dump the contents to your printer.  Depending on how many items, it will take a lot of paper!!!

My Activiity Monitor had 245 items and took 11 pages.
Logged
I don't SELL this stuff... BUT I sure do ENJOY using it!!!

bret5823

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3
Re: Activity Monitor Question
« Reply #4 on: November 24, 2006, 07:53:52 PM »

Thanks for all the help.  I haven't been able to find a dump that will write to a file, but I guess I'll have to write one.
Logged

TakeTheActive

  • Hero Member
  • *****
  • Helpful Post Rating: 126
  • Posts: 1047
  • Old !@#$% Tinkerer!
Re: Activity Monitor Question
« Reply #5 on: November 25, 2006, 12:00:00 PM »


...I haven't been able to find a dump that will write to a file, but I guess I'll have to write one.

Did you read the thread located at Puck's LINK? :-[
Logged
Low Post Count != Low Knowledge - High Post Count != High Knowledge ;)

ADVICE TO X-10 NEWBIES FROM AN X-10 OLD-TIMER

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Activity Monitor Question
« Reply #6 on: November 25, 2006, 03:30:38 PM »


...I haven't been able to find a dump that will write to a file, but I guess I'll have to write one.

Did you read the thread located at Puck's LINK? :-[
Apparently NOT!
Or they stoped reading after Dans reply!
 I just posted to that thread, Oldtimers trick does work! ;) :D ;D
Resulting Pics were posted!
« Last Edit: November 25, 2006, 03:41:19 PM by Tuicemen »
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

heatvent

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 15
Re: Activity Monitor Question
« Reply #7 on: March 16, 2008, 12:11:12 PM »

Thanks for all the help.  I haven't been able to find a dump that will write to a file, but I guess I'll have to write one.

Anybody every find a way to decrypt the log file (other than printing from the activity monitor)?  I would like to monitor the log entries from another program so I would need the log file to be decrypted and then append an unencrypted log file to work I think.
Logged

PrimeGuild

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 44
    • Software Solutions
Re: Activity Monitor Question
« Reply #8 on: March 26, 2008, 05:37:03 PM »

X10 SDK might do the trick.
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Activity Monitor Question
« Reply #9 on: March 26, 2008, 05:58:03 PM »

X10 SDK might do the trick.
The Free SDK will do the trick if heatvent has some programing knowledge!
Many thirdparty addon software for AHP contain the ability recieve this and log to a file!
There is even some code posted in the SDK Section Topic: Activity Monitor actions  (Read 2266 times) to display recieved commands
 And\or Topic: Control my X10 online  (Read 318 times)
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

PrimeGuild

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 44
    • Software Solutions
Re: Activity Monitor Question
« Reply #10 on: March 31, 2008, 12:28:16 PM »

Right, programming knowledge is a must, and from...

Quote
I need to write some Java code to monitor the state of each divice and the RF states being received
...

I understand he is a programmer.
Logged

EL34

  • Hero Member
  • *****
  • Helpful Post Rating: 21
  • Posts: 278
    • My X-10 projects
Re: Activity Monitor Question
« Reply #11 on: April 09, 2008, 05:00:34 PM »

If you program, just monitor the traffic yourself with the SDK
That's way better and faster than having to check a file

Everytime X10 traffic is received, an event is triggered and you get the data instantly

Her's the monitor code I use in Visual Basic

Code: [Select]
    'This is an event handler for the receive action
    'Monitor events from ActiveHome
    Sub ActiveHomeTrafficAction(ByVal bszRecv As Object _
                            , ByVal vParm1 As Object _
                            , ByVal vParm2 As Object _
                            , ByVal vParm3 As Object _
                            , ByVal vParm4 As Object _
                            , ByVal vParm5 As Object _
                            , ByVal vReserved As Object) Handles ActiveHomeObj.RecvAction

        ActiveHomeTraffic = (bszRecv & " " & vParm1 & " " & vParm2 & " " & vParm3 & " " & vParm4 & " " & vParm5)
     

These are vaiables that the data are loaded into
bszRecv is the type of traffic like recvplc (reveive power line command)
vParm1 is the module like A2
VParm2 is on or off,
etc
« Last Edit: April 10, 2008, 05:59:22 AM by EL34 »
Logged
W10 - CM15A - AHP 3.301 - i Witness - MyHouse online - Smart Macros - SDK using Visual Basic express 2008
My X10 page-> http://www.el34world.com/Misc/home/X10_0.htm
 

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