Massa M3 Instrukcja Użytkownika Strona 13

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 29
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 12
MASSA PRODUCTS CORPORATION June 11, 2013
Product Manual 12 M3 Wireless Ultrasonic Level Sensor
OTA Application Programming example #2 (with M3 Deep Sleep Timer=0):
1) Send Command #104 with AwakeHoldTime=1 and XBeeWDTime=1
2) Wait for acknowledge command #104
3) Start OTA programming. The OTA XBee programming typically takes 1 to 2 minutes.
4) When OTA finished, send Command #104 with AwakeHoldTime=0 and XBeeWDTime=0 or reboot sensor.
8.2.12.1 Host Command to M3 and Response: Re-Boot (restart) Sensor, Command #199
This command reboots (restarts) the sensor. As a safety measure, a second command from the host is required to actually perform
the reboot operation. See the sequence below.
Host requests to reboot the Sensor
<Destination ID> <Sender ID> <Message Length> <Command> <Checksum>
Sensor ID Host ID 5 199 checksum
default=1 default=251
‘Are You Sure’ Response from Sensor
Sensor responds with the ‘Acknowledge’ command including the requesting command number
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <Checksum>
Host ID Sensor ID 6 200 199 checksum
default=251 default=1 Acknowledge
The host then replies back to the Sensor with an ‘Acknowledge’ or ‘Cancel’ command shown below
Acknowledge command
<Destination ID> <Sender ID> <Message Length> <Command> <ASCII ’G’> <Checksum>
Sensor ID Host ID 6 199 71 checksum
default=1 default=251 Acknowledge GO indicator
The command below can be used (or any other command) to quit the clearing function. There will not be any response from the
sensor to this command.
Cancel command
<Destination ID> <Sender ID> <Message Length> <Command> <ASCII ’Q’> <Checksum>
Sensor ID Host ID 6 199 81 checksum
default=1 default=251 Ack. To Quit indicator
Sensor responds with the ‘Acknowledge’ to the GO command after it cleared the history buffer
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <Checksum>
Host ID Sensor ID 6 200 199 checksum
default=251 default=1 Acknowledge
8.2.13 Sensor “Acknowledge” response to some Host requests, Command #200
Command #200 is an acknowledge message by the sensor to the host in response to a particular request that was received and
accepted. See format below. The 5
th
byte in this message is the Command number in which this message is responding.
6 byte acknowledge message
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <Checksum>
Host ID Sensor ID 6 200 x checksum
default=251 default=1 Acknowledge
7 byte acknowledge message
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <ValueError> <Checksum>
Host ID Sensor ID 7 200 x 0 = no error checksum
default=251 default=1 Acknowledge 1 = error
Przeglądanie stron 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 28 29

Komentarze do niniejszej Instrukcji

Brak uwag