ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#23586 - 08/17/13 10:39 AM Status request
dlloyd560 Offline
junior


Registered: 11/18/10
Posts: 38
I have things that turn on in the morning that I need to make sure they go on I don't have signal issue its more of a signal collision . So my question is how do I send a status request to see if it went on and if its off to send the on command again. Or have the leopard check the status and send the on command until the leopard gets an on status? How would I write the program for this? Thanks Dave
Top
#23587 - 08/17/13 05:54 PM Re: Status request [Re: dlloyd560]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Do you know for a fact that the device you're controlling supports the Status Request command? Most of the X-10 brand modules don't, and for other brands it depends on the module/switch types.

It is possible to create code for doing that kind of thing, ideally with a limited number of retries. Let me know what kind of modules you're working with.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#23588 - 08/17/13 06:35 PM Re: Status request [Re: Guy Lavoie]
dlloyd560 Offline
junior


Registered: 11/18/10
Posts: 38
I'm going to buy an act fixture mount receiver rf124 http://www.act-solutions.com/sites/www.act-solutions.com/files/RF124234324_spec_.pdf but I want to make sure that I can create code that will work with this receiver and will do what I want it to do before I buy it . Thanks Dave
Top
#23589 - 08/18/13 03:07 PM Re: Status request [Re: dlloyd560]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Have a look at the discussion in this thread, regarding Status Requests:

http://www.appdigusers.com/forums/ubbthreads.php?ubb=showflat&Board=3&Number=23346
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#23590 - 08/19/13 05:25 AM Re: Status request [Re: Guy Lavoie]
dlloyd560 Offline
junior


Registered: 11/18/10
Posts: 38
Guy thanks for the help. I think I got it what do you think?


if time of day becomes=to 0600
then send b10 on
then timmer 2=1
if timmer 2 becomes=to 300
then send x10 b 10
then send b status request
if receive b status off
then send b10 on
then timer 2=1
if receive b status off
then timer 2=0

Top
#23591 - 08/19/13 06:26 AM Re: Status request [Re: dlloyd560]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
You would need to look for the received Status On or Off within a set time window to make this reliable. You would also need to limit the number of retires to avoid unexpected attempts at turning on the device. Assuming that you want to test if the light is on every 5 minutes, up to 5 times. Something like this:

 Code:
IF Time of day becomes = 0600    //at 6 AM
THEN X10 B/10 Turn On 
THEN Timer #2 = 1          //start the retry timer
THEN Variable #1 = 0       //initial retry count set to zero

IF Timer #2 becomes = 300 
THEN Transmit X10 B/10 
THEN Transmit X10 B Status Request

IF Receive X10 B Status Off
AND Timer #2 > 299        //look for time window
AND Timer #2 < 305
THEN X10 B/10 Turn On     //retry the On command
THEN timer 2 = 1          //restart timer
THEN Variable #1 + 1      //increment retry count

IF Receive X10 B Status On  
AND Timer #2 > 299        //look for retry time window
AND Timer #2 < 305
THEN Timer #2 = 0         //stop the retry timer

IF Variable #1 > 5        //if max retry count reached
THEN Timer #2 = 0         //stop the retry timer

_________________________
"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 60 anonymous users online.
Recent Posts
Ocelot Battery
by ADI Tech Support
09/22/17 07:38 AM
Comms Retry Error
by HDTVPete
09/18/17 04:04 PM
Cmax Message: Failed to set data for a 'delay'
by HDTVPete
09/16/17 04:36 PM
Shout Box

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

Max Online: 132 @ 11/13/16 10:07 AM
September
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