EL34 Using the SDK it is quite possible to capture commands as they are sent/recieved!
X10dispatcher,and PC Companion can do it and
-Bill- (of wgjohns.com) has a program which shows all actions of devices you set into it!
PC Companion saves the info to a log file you can upload to a web site or print off! The only action it doesn't record is camera action from with in the program!
Using the SDK you import ActiveHomeScriptLib into your program and then declare
Public WithEvents _AHObj As ActiveHome
to recieve the trafic use the _AHObj.OnRecvAction like this:
Public Sub ActiveHome_Received(ByVal bszAction As Object, ByVal bszParam1 As Object, ByVal bszParam2 As Object, ByVal bszParam3 As Object, ByVal bszParam4 As Object, ByVal bszParam5 As Object, ByVal bszReserved As Object) Handles ahobj.RecvAction
'These local variables are used to convert input data to strings
'They are initalized to prevent compiler warning about possibly using them in console.writeline
'before setting them (it knows that the try/catch might fail and leave some unassigned)
Dim Action As String = "", Param1 As String = "", Param2 As String = "", Param3 As String = ""
Dim Param4 As String = "", Param5 As String = "", Reserved As String = ""
'Since this is an ActiveX Object we should convert the objects to strings which is what they really are
Try
Action = CType(bszAction, String) 'recvplc, recvrf
Param1 = CType(bszParam1, String) 'e1 on, e1 bright
Param2 = CType(bszParam2, String) '50 as in bright 50%
Param3 = CType(bszParam3, String) '?
Param4 = CType(bszParam4, String) '?
Param5 = CType(bszParam5, String) '?
Reserved = CType(bszReserved, String)
Catch ex As Exception
'Since we could get floods of x10 messages its best not to put any message boxes here
Console.WriteLine(ex.ToString())
End Try
Console.WriteLine("Received an Event " + Action + " " + Param1 + " " + Param2)
End Sub
Hope this helps