
MASSA PRODUCTS CORPORATION June 11, 2013
Product Manual 11 M3 Wireless Ultrasonic Level Sensor
8.2.10.1 Host Command to M3: Reset Deep-Sleep Timer, Command #103
This command resets the Deep-Sleep Timer used to maintain several sensors Deep-Sleep time in sync with one another. Here is
the format for this message.
<Destination ID> <Sender ID> <Message Length> <Command> <Checksum>
Sensor ID Host ID 5 103 checksum
default=1 default=251
8.2.10.2 Response to “Reset Deep-Sleep Timer” Command #103
In response to Command #103, the sensor returns the Acknowledge command after resetting the Deep-Sleep Timer. Here is the
format of this message.
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <Checksum>
Host ID Sensor ID 6 200 103 checksum
default=251 default=1 Acknowledge
8.2.11.1 Host Command to M3: “Keep XBee Awake”, Command #104
This command sets the XBee’s SLEEP pin to stay awake and also can extend the XBee watchdog period. This command must be
used prior to initiating XBee Over-The-Air (OTA) programming by the application. Although not required, the command can be
sent prior to other M3 commands when passing significant amount of data such as M3 Firmware upgrade or Waveform data
retrieval.
The time to hold the sleep pin in the Awake state is located in the AwakeHoldTime byte. The 2 byte XBeeWDTime value
extends the XBee watchdog period from the default value of 60 seconds. Here is the format for this message. Once the response
byte is receive (see 8.2.11.2), XBee OTA programming can commence.
<Destination ID> <Sender ID> <Message Length> <Command> <AwakeHoldTime> <XBeeWDTimeL> <XBeeWDTimeH> <Checksum>
Sensor ID Host ID 8 104 0, 1, 30 to 255sec 0, 1, 300 to 3600 sec checksum
default=1 default=251
Time periods defined:
Awake Hold Time Operation
0 Set to normal operation (LED will blink every 2 seconds). Default at power up and at re-boot.
1 Keep the XBee Awake indefinitely. Restore to normal operation by sending a reset command or command 104 with
AwakeHoldTime=0.
30 to 255 Keep the XBee Awake from 30 to 255 seconds
XBee WD Time Operation
0 Set to normal operation with factory default of XBee Watchdog period of 60 seconds. Default at power up and at re-boot.
1 XBee watchdog time disabled. Restore to normal operation by sending a reset command or command 104 with XBeeWDTime=0.
300 to 3600 XBee watchdog time from 300 seconds to 1800 seconds (5 minutes to 1 hour)
8.2.11.2 Response to “Keep XBee Awake” Command #104
In response to Command #104, the sensor returns the Acknowledge command after activating the XBee’s sleep pin. Here is the
format of this message. Note that the application should then initiate programming the XBee radio.
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <Checksum>
Host ID Sensor ID 6 200 104 checksum
default=251 default=1 Acknowledge
Reply message if AwakeHoldTime or XBeeWDTime outside limits
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <Error> <Checksum>
Host ID Sensor ID 7 200 104 1 checksum
default=251 default=1 Acknowledge
OTA Application Programming example #1 (with M3 Deep Sleep Timer=0):
1) Send Command #104 with AwakeHoldTime=120 and XBeeWDTime=600 (2 minutes and 10 minutes respectfully)
2) Wait for acknowledge command #104
3) Start OTA programming. The OTA XBee programming typically takes 1 to 2 minutes.
4) When OTA programming complete, either send Command #104 with AwakeHoldTime=0 and XBeeWDTime=0, reboot
sensor or ignore and wait for timeouts.
Komentáře k této Příručce