How To Configure a WPAN Gateway to work with a Man Down Pendant
| AT^SESSIONALERT=n | n=1 If wildcard ID is configured in the WPAN Gateway, in/out of range messages will be generated for any pendant (default). n=2 If wildcard ID is configured, no in/out of range messages will be generated unless pendant’s ID has been programmed into the WPAN Gateway. Note that communication still works for any pendant. n=0 Disabled |
| AT^SESSIONALERT? | Query session status |
When Session alert is enabled, the WPAN Gateway will create an “Out of Range” message when the Man Down Pendant leaves the coverage area. A “Back in Range” message will be generated when the pendant reenters the coverage area.
Examples of WPAN Gateway generated messages:
$PPEN,0013A200402CB49A,2E,OUTOFRANGE*42
$PPEN,0013A200402CB49A,39,BACKINRANGE*74
Query the PAN ID of a WPAN Gateway:
| AT^PANID? | Returns current PAN ID nnnn where nnnn is a 4 digit hex number (range 0000 to FFFE) |
Query the PAN ID of a Man Down Pendant:
This is a two step process:
- Send the WPAN Gateway the following AT command
- Trigger the pendant to broadcast its PAN ID
- Press and hold the pendant button for >= 20 seconds until the pendant makes 2 short beeps.
- Panic alert messages will still be generated during the press and hold process, this is normal.
| AT^RMTPANID?aaaaaaaaaaaaaaaa | aaaaaaaaaaaaaaaa = 64-bit hex address of the pendant |
Note: The PAN ID will be broadcast from the pendant. The WPAN Gateway will stay in this mode until a character is received on its serial port. Once a character has been received, the WPAN Gateway goes back into AT command mode.
The response should be a 4-digit hex value of the PAN ID as follows:| PANIDACKnnnn | nnnn= PAN ID in hex where nnnn is a 4 digit hex number (range 0000 to FFFE) |
Configure a WPAN Gateway's PAN ID:
| AT^PANID=nnnn | nnnn = 4-digit PAN ID in hex (Range from 0000 to FFFE, Defaults to 4465) |
This command takes effect immediately, to save the command enter AT&W.
| PANID=nnnn | nnnn=4-digit hex value of the new PAN ID (Range from 0000 to FFFE,Defaults to 4465) |
Example of PPQ message:
$PPQ,PAN,0013A200403047EE,30,PANID=4465*18
The pendant will respond with PANIDACKnnnn
Example of WPAN Gateway generated message:
$PPEN,0013A200403047EE,30,PANIDACK4465*45
The message from the DCE device to the WPAN Gateway is:
AT^WANSTATUS=n
Where:
n=0 disconnected (Default)
n=1 connected
The command returns OK if WANCTRL=1, otherwise it returns ERROR. This setting is not saved in non-volatile memory.
To enable this feature use the following command:
AT^WANCTRL=n
Where:
n=0 = disabled (Default)
n=1 = enabled
This command takes effect immediately, to save the command enter AT&W
AT^WANCTRL?
Queries the setting
Man Down RANGE messages will be acknowledged by the WPAN Gateway if:
WANCTRL=0
OR
WANCTRL=1 AND WANSTATUS=1
Otherwise RANGE messages will not be acknowledged and the Man Down Pendant will indicate an out of range condition.
Note: Active state is defined as (-5V), Inactive state is defined as (+5V)
- In normal mode (no PANIC or MPANIC requests) DTR should be inactive.
- Once a PANIC or MPANIC is received, DTR is set to Active. Note that the NMEA message still goes out on the RxD/TxD pins.
- DTR stays Active until one of the following occurs:
- CPANIC message is received from the Pendant that triggered PANIC or MPANIC state
- DSR is set to Active state.
The WPAN Gateway sends ACKs in both cases so the pendant clears its panic state.
If more than 1 pendant sends Man Down PANIC requests at the same time, only the first one will be acknowledged. The next PANIC request from the second one will trigger DTR output again.
If local ACK is desired (no external modem involved), DSR can be connected to DTR.
For DRVID operation:
- In normal mode (no DRVID requests) RTS should be Inactive.
- Once a DRVID is received, RTS is set to Active state. Note that the NMEA message still goes out on the RxD/TxD pins.
- RTS is kept Active for 8 seconds and then is set Inactive,the state of the CTS line is ignored.
The WPAN Gateway sends an ACK back as soon it receives the DRVID message.
The following command is used to control this feature:| AT^DTRPANIC=n | n = 0 Disabled (Default) n = 1 Enabled |
| AT^DTRPANIC? | Queries the current value |
A Man Down Alert message can be cleared. If no Man Down messages are received, (button press or no-motion) the WPAN Gateway can now clear the DTR output:
In order to clear a panic indication for situations where the Man Down Pendant goes out of range after generating a PANIC alert, a timeout can be set using DTRPANICTIMEOUT command. If this timeout is set, panic indicating state of the WPAN Gateway will be reset automatically if no communication is detected from the panic state triggering Man Down Pendant.
AT^DTRPANICTIMEOUT=n
Where n is the number of seconds (0-65535)
n=0 disables the timeout
default value is 60
AT^DTRPANICTIMEOUT? Returns the value for the timeout