X10 Community Forum

ActiveHome Pro => SDK => Topic started by: petrocad3d on September 06, 2016, 03:24:18 AM

Title: VBScript with DS10A
Post by: petrocad3d on September 06, 2016, 03:24:18 AM

I have a CM19A attached to a PC. I can control light/fan from PC and remote control. work very well.

But the program(on IE) can not receive nothing from DS10A(door/windows sensor).

i use this function in order to receive command from remote control and DS10A

Function ActiveHome1_RecvAction( bszRecv, vParm1, vParm2, vParm3, vParm4, vParm5, vReserved )

bszRecv = recvrf
vParm1 = ?? (house/number, do i need to register it?, how can i do it?)
vParm2 = socialite (command from sensor as DS10A)
vParm3 = ff,16,7g,f5 (code from DS10)
vParm4 = (status of DS10)
vParm5 = (date time)

do i need to "register" the DS10A and link to a house/number?, how can i do it?

Title: Re: VBScript with DS10A
Post by: dhouston on September 06, 2016, 06:51:02 AM
It's been several years since I had "hands on" experience with X10's security sensors but I believe they send slightly different RF codes which are not reported by the CM19A.
Title: Re: VBScript with DS10A
Post by: Tuicemen on September 06, 2016, 07:45:04 AM
The trick to getting the ds10 working with the cm19 is to watch the socialite commands and those only.
The SDK is very limited to what it can see in regards to the security codes.
If your ds10 isn't being seen by your program you need to reset it so it uses a different code. This can take several attempts and once you replace the batteries usually your program will stop seeing the ds10 again. ::)

Title: Re: VBScript with DS10A
Post by: Brian H on September 06, 2016, 09:41:12 AM
As pointed out. The X10 Security Messages are different than the Standard X10 Messages.

You may want to start by reinitializing the DS10A and going from there.
Take the batteries out and hold the set button for a short time to discharge any remaining power in the capacitors.
Then install the batteries and hold the set button until the LED flashes indicating a new security code was generated.