Please login or register.

Login with username, password and session length

Author Topic: Querying Status of a 2way module  (Read 6379 times)

hkactive

  • Full Member
  • ***
  • Helpful Post Rating: 1
  • Posts: 50
Querying Status of a 2way module
« on: October 20, 2006, 07:49:30 PM »

This works in VB6

ActiveHome1.SendCommand "sendplc", "e8 StatusRequest"

You can pick up the response in the ReceiveAction procedure of the ActiveHome1 component (using the ahscript.dll)

Private Sub ActiveHome1_RecvAction(ByVal bszAction As Variant, _
    ByVal bszParm1 As Variant, ByVal bszParm2 As Variant, ByVal bszParm3 As Variant, _
    ByVal bszParm4 As Variant, ByVal bszParm5 As Variant, ByVal bszReserved As Variant)
    '
    Debug.Print bszAction, bszParm1, bszParm2, bszParm3, bszParm4, bszParm5, bszReserved
    '
End Sub

You should pick up two responses when working with a 2way module. The first response comes from sending the command. The second response (event) should occur after the 2way module sends its response. The CM15A should pick up the response and it should be reported in the ReceiveAction procedure.

Immediate Window results:
-----------------------------------------------------------------------

recvplc       e8            StatusRequest                                           
recvplc       e8            StatusOff 

-----------------------------------------------------------------------

This worked on an AM14A (2-way appliance module) : also worked with the RR501 Transceiver Module.


Hank
Logged
 

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