90 likes | 453 Views
媒体接入层 (MAC) CSMA/CA 算法 改进的 RTS/CTS 握手. 数据显示层 (PRE). 物理层 (PHY). 媒体接入层扩展 (MAC-EX)—— 重传机制. 数 据. 数据提取层 (Filter). 数据显示层 (PRE). 物理层 (PHY)—— 串口传输. DATA Range. RTS/CTS Range. Bytes:. 1. 2. 2. 2. n(n <= 116). 2. 2. Frame Control Field (FCF). Data Sequence Number.
E N D
媒体接入层(MAC) • CSMA/CA算法 • 改进的RTS/CTS握手 数据显示层 (PRE) 物理层(PHY) 媒体接入层扩展(MAC-EX)——重传机制
数 据 数据提取层(Filter) 数据显示层 (PRE) 物理层(PHY)——串口传输
DATA Range RTS/CTS Range
Bytes: 1 2 2 2 n(n <= 116) 2 2 Frame Control Field (FCF) Data Sequence Number Destination Address Destination PAN ID Source Address Frame Payload Frame Check Sequence (FCS) MAC Layer: lsb msb lsb msb lsb msb MAC Header (MHR) MAC Payload MAC Footer (MFR) 1 (9+2+n) 4 1 Bytes: Preamble Sequence Start of frame Delimiter (SFD) Frame Length MAC Protocol Data Unit (MPDU) PHY Layer: Synchronization Header (SHR) PHY Header (PHR) PHY Service Data Unit (PSDU) RobotNet发送数据格式
RobotNet收到数据格式 Index: Bytes: 1 1 2 2 2 n(n <= 116) 1 1 2 Frame Length (Len) Frame Control Field (FCF) Data Sequence Number Destination Address Destination PAN ID Source Address Frame Payload RSSI CRC PHY Layer: lsb msb lsb msb lsb msb 9+2+n
RobotNet命令格式规约 Index: 0 1 2 3* 4* 5* 6*…… Len+2 Delimiter (0x7E) Command Length (Len) Command Type Parameter Type* Parameter Value* Command Payload* Check Sum Command: lsb msb 1+n
RobotNet发送数据格式 Index: 0 1 2 3……Len+1 Len+2 Delimiter (0x7E) Command Length (Len) Command Type (0x10) Command Payload (>0) Check Sum Command: 1+n
RobotNet查询参数格式 Index: 0 1 2 3 4 5 6 Delimiter (0x7E) Command Length (0x04) Command Type (0x09) Parameter Type Parameter Value Check Sum Command: lsb msb 4
RobotNet查询统计信息格式 Index: 0 1 2 3 Delimiter (0x7E) Command Length (0x01) Command Type (0x70) Check Sum (0x8E) Command: 1