
MASSA PRODUCTS CORPORATION June 11, 2013
Product Manual 13 M3 Wireless Ultrasonic Level Sensor
8.2.14 Host Command to M3: Re-Send Message, Command #201
Command #201 is a Resend request message to the sensor, whose requested data failed to be received properly or not at all by the
host. It has a byte that indicates the active command, a block address and/or other data. See the format below.
<Destination ID> <Sender ID> <Message Length> <Command> <ReSendToCommand> < WaveformBlock#> <Checksum>
Sensor ID Host ID 7 201 10 1 to 28 checksum
default=1 default=251 Re-Send
Host requests, such as ‘Write to Configuration Registers’, which fail to receive a response (Acknowledge) should use the same
‘Write’ command and not this Re-Send command.
8.2.15 Sensor “Checksum Error”, Command #202
If the sensor detects a checksum error, it will reply with Command 202. See the format below.
<Destination ID> <Sender ID> <Message Length> <Command> <Checksum>
Host ID Sensor ID 5 202 checksum
default=251 default=1 Checksum Error
8.2.16 Sensor response when no application firmware present “Bootloader Only”, Commands #247, #248 and #249
If the sensor’s application firmware is not present, then only reprogramming “Bootloader” code is available. Commands sent to
the sensor at this point other than specific reprogramming commands will be replied to with the “Bootloader Only” response
command shown below. Reprogramming the sensor’s firmware will be done by Massa’s application software and is not outlined
in this document. Note that the sensor’s Green LED will be active when in this mode.
<Destination ID> <Sender ID> <Message Length> <Command> <Checksum>
Host ID Sensor ID 5 249 checksum (Bootloader ver 1 for sensor versions 23.x and earlier)
default=251 default=1 bootloader only
<Destination ID> <Sender ID> <Message Length> <Command> <Checksum>
Host ID Sensor ID 5 248 checksum (Bootloader ver 2 for sensor versions 24.x to 27.x)
default=251 default=1 bootloader only
<Destination ID> <Sender ID> <Message Length> <Command> <Checksum>
Host ID Sensor ID 5 247 checksum (Bootloader ver 3 for sensor versions 29.x and greater)
default=251 default=1 bootloader only
8.2.17.1 Host Command to M3: Auto Discover of Sensors
Massa’s python script loaded in the Digi Gateway ConnectPort™ X8 gateway has the ability to perform a Node discovery
function and will return detected MAC addresses from the sensors to the host. The format is to send the gateway an empty MAC
address of 8 bytes of zeroes as shown below.
<MAC address>
8 byte address, all zeros (empty MAC address)
8.2.17.2 Response to “Auto Discover of Sensors”
The response from the gateway when an Auto Discover of Sensors (Node discover function) is requested is to return all the
detected Sensor’s MAC addresses. There are no delimiters so the responses will always be in multiples of 8 bytes. The format is
shown below. Note that is may take several seconds to receive this data while in the discovery process.
<MAC addressSensor1> <MAC addressSensor2> · · · <MAC addressSensorN>
8 byte sensor address 8 byte sensor address 8 byte sensor address
Comentarios a estos manuales