LinTronic, PhoneLineStatus

Protocol command reference list


PIRStatusRequest
Command: 911


This Status and Request command alerts about changes in a connected PIR, passive infrared motion detector.

911[PIRStatus][Parameter1][Parameter2]

PIRStatus

000 = Idle, followed by seconds (Parameter1) and minutes (Parameter2, max 250) for idle periode.

A command 911 is send to the computer in the following intervals:
1 minute
2 minutes
3 minutes
4 minutes
5 minutes
10 minutes
20 minutes
30 minutes
45 minutes
60 minutes

255 = Active, followed by seconds since last detected active (Parameter1). If seconds show 0 then PIR is currently active.

A Digital Input must be programmed to work as a PIR input.

When the PIR detects motion the digital input is activated. The LinTronic device will send a PIRStatusRequest message to the computer reporting PIR is Active, and the LinTronic device will start a 1 minute timer. The PIR status will remain Active as long as motion is detected. If no motion is detected in the room for 1 minute, the LinTronic device will send a PIRStatusRequest message to the computer reporting PIR is Idle.

The PIR status can be used as Trigger to start Actions, which will allow you to for example turn on light when motion is dected, og turn off light when there has been no motion for for example 30 minutes.


Request
<0100911092>
< =  Start of package
01 = TO address ( device )
00 = FROM address ( computer )
911 = PIRStatusRequest
092 = Checksum
> = End of package
Status
<0001911255000136>
< =  Start of package
01 = TO address ( device )
00 = FROM address ( computer )
911 = PIRStatusRequest
255 = Status: Active
000 = Currently active
136 = Checksum
> = End of package
Status
<0001911255023141>
< =  Start of package
01 = TO address ( device )
00 = FROM address ( computer )
911 = PIRStatusRequest
255 = Status: Active
023 = Not active for 23 seconds
141 = Checksum
> = End of package