# Network Command protocol (ID 1)
The Network Command protocol makes it possible to get and set configuration, manage channel allocation and adaptive power management for End Devices.
End Device Command messages are defined by the protocol and MAY be extended by the use of proprietary commands. The Command ID is set in the Command (Cmd) field of the frame and the payload is command specific.
Cmd 1 byte | Command specific payload 0-57 bytes |
---|
The following table list the Commands that and End Device MAY support:
Command | Description | Payload |
---|---|---|
0x01 | Echo request (ping) | |
0x02 | Reboot | |
0x03 | Wake up at this time and listen for data | MittoNet Time |
0x04 | Wake up at this time and listen for data on channel X | MittoNet Time, uint16 channelID |
0x05 | Change channel | uint16 channelID |
0x11 | Get Device Info | |
0x12 | Get Battery level | |
0x13 | Set Time | MittoNet Time |
0x21 | Firmware update wakeup | MittoNet Time, uint16 channelID, byte[16] firmware decryption key |
0x31 | Set Network configuration | |
0xA0 - 0xEF | Proprietary commands | |
0xF0 - 0xFF | Reserved |
# Echo request (0x01)
The echo request, or Ping as it is also called, can be used to measure the round trip time to a destination. The reqsponse to the Echo Request is the acknowledgement message which will contains the same payload as sent in the echo request.
# Reboot (0x02)
TBD.
# Wake up at this time and listen for data (0x03)
TBD.
# Wake up at this time and listen for data on channel X (0x04)
TBD.
# Change channel (0x05)
TBD.
# Get Device Info (0x11)
TBD.
# Get Battery level (0x12)
TBD.
# Set Time (0x13)
TBD.
# Firmware update wakeup (0x21)
Wake up at this time and listen for firmware update on channel X
NWTime 8 bytes | RFU 3 bytes | Channel 1 byte | AES128 Key 16 bytes |
---|
# Set Network configuration (0x31)
TBD.