Dust Networks Inc. M1030 사용자 설명서
Interfaces
M1030-2 M
OTE
D
ATASHEET
D
UST
N
ETWORKS
™
17
C
ONFIDENTIAL
7.4.3.8
Command 0x8D Reset Mote
Upon receiving this command, the mote notifies its children about an upcoming reset, then proceeds to reset itself. The delay
to the actual reset depends on the network configuration.
to the actual reset depends on the network configuration.
7.4.4
Mote Get/Set Command Parameters
This section specifies the parameters that may be used with the Set and Get Commands. Table 26 provides an overview of the
these parameters.
these parameters.
All requests have the following structure:
All replies have the following structure:
Command Types, Parameter types, and error codes are discussed in the following sections. Data length is the number of bytes
of following data, set to 0 in case of non-zero error code.
of following data, set to 0 in case of non-zero error code.
7.4.4.1
Error Codes
Table 25 Command 0x8D Reset Mote
Msg Byte
Description
Data Type
Value
1
Cmd type
unsigned char
0x8D
Table 26 Set and Get Command Parameters
Parameter Type
Set Parameter
Get Parameter
Description
0x01
X
Set the mote’s network ID
0x02
X
Get the mote’s current network connection state
0x03
X
Get the network frame length
0x04
X
Set the network join key on the mote
0x05
X
Get the network time and mote state information
0x06
Reserved
0x07
X
Get the mote’s properties
0x08
Reserved
0x09
Reserved
0x0A
Reserved
Table 27 Request Structure for Parameter Data Packets
Command Type
Parameter Type
Data (Optional)
1 byte
1 byte
Up to 33 bytes
Table 28 Reply Structure for Parameter Data Packets
Command Type
Parameter Type
Error Code
Data Length
Data (Optional)
1 byte
1 byte
1 byte
1 byte
Up to 31 bytes
Table 29 Error Codes
Number
Error
Description
0
DIAG_NO_ERR
No Command-Specific Errors
1
DIAG_EXE_ERR
Mote unable to execute command
2
DIAG_PARAM_ERR
Illegal parameter in the request