Dust Networks Inc. M1030 사용자 설명서

다운로드
페이지 28
 Interfaces
M1030-2 M
OTE
 D
ATASHEET
D
UST
 N
ETWORKS
15
C
ONFIDENTIAL
7.4.3.4
Command 0x84 Time/State Packet 
Time data packets use the command type 0x84. The time packet includes the network time and the current real time relative to 
the Manager. The mote sends this response when it receives a Get Parameter request with time as the parameter (described 
later). 
7.4.3.5
Commands 0x87 and 0x88 Set Parameter Request/Response
The Set Parameter command allows the setting of a number of configuration parameters in the mote. When the Set Parameter 
Request command is sent, the response to the request is sent within the diag_ack_timeout (see Table 13). The command 
structure for individual Parameter Types and can be found in section 7.4.4. The length of payload (n) depends on the Parameter 
Type and is specified in the Parameter Data Packet section of this document.
.
Table 19  Command 0x84 Time/State Packet
Msg Byte
Description
Data Type
Value
1
Cmd type
unsigned char
0x84
2-5
The sequential number of the 
frame
unsigned long
Cycle
6-9
The offset from start of frame  unsigned long
Offset (
μsec)
10-11
Frame length
unsigned short
Frame length (slots)
12-15
UTC time 
unsigned long
Real time part 1 (sec)
16-19
UTC time 
unsigned long
Real time part 2 (
μsec)
20-23
Time from the last mote reset  unsigned long
Mote uptime (ms)
24
Mote state 
unsigned char
Mote state (see Table 34)
25
Mote diagnostics status 
unsigned char
Mote diagnostics status (see 
Table 35)
Table 20  Command 0x87 Set Parameter Request
Msg Byte
Description
Data Type
Value
1
Cmd type
unsigned char
0x87
2
unsigned char
Parameter type
3
Data
First byte of data 
...3+n
Data
Up to n–1 additional bytes of 
data
Table 21  Command 0x88 Set Parameter Response
Msg Byte
Description
Data Type
Value
1
Cmd type
unsigned char
0x88
2
unsigned char
Parameter type
3
Error code
unsigned char
Error code (see Table 29)
4
Data length 
unsigned char
0x00