WATTIOCORP S.L. SERIE1 用户手册

下载
页码 15
 
 
Serial User Manual 
Página 11 
 
2: AREQ: An asynchronous request. For example, a callback event or a function call 
with no return value would use an AREQ command.  
 
3: SRSP: A synchronous response. This type of command is only sent in response to a 
SREQ command. For an SRSP command the subsystem and ID are set to the same 
values as the corresponding SREQ. The length of an SRSP is generally nonzero, so an 
SRSP with length=0 can be used to indicate an error.  
 
4-7: Reserved.  
Subsystem: The subsystem of the command. Values are shown below: 
Subsystem Value  
Subsystem Name  
0  
RPC Error interface  
1  
SYS interface  
2  
Reserved  
3  
Reserved  
4  
AF interface  
5  
ZDO interface  
6  
Simple API interface  
7  
UTIL interface  
8-32  
Reserved  
Table 2: Subsystem values 
ID: The command ID. The ID maps to a particular interface message. Value range: 0-255.  
When the ZNP cannot recognize an SREQ command from the host processor, the following 
SRSP is returned:  
SRSP
 
 
 
 
 
 
Length = 0x03  
Cmd0 = 0x60  
Cmd1 = 0x00  
ErrorCode  
ReqCmd0  
ReqCmd1  
Figure 10: SRSP response 
Attributes: 
Attribute  
Length (byte)  
Description  
ErrorCode  
  
The  error  code  maps  to  one  of  the  following  enumerated 
values.  
Value  
Description  
0x01 
Invalid subsystem  
0x02 
Invalid command ID  
0x03 
Invalid parameter  
0x04 
Invalid length 
 
ReqCmd0  
The Cmd0 value of the processed SREQ  
ReqCmd1  
The Cmd1 value of the processed SREQ