Zigbee路由中的三张表
1. routing table
| Filed Name | size | Desc |
|---|---|---|
| Destination addr | 2 octests | 目标的地址,设备地址或者组地址,RFD的地址为它父节点的地址 |
| Status | 3 bits | 0 - active 1 - DISCOVERY_UNDERWAY 2 - DISCOVERY-FAILED 3 - INACTIVE 4 - VALIDATION_UNDERWAY |
| No Route cache | 1 bit | 目标地址不支持(存储)路由 source routes |
| Many-to-one | 1 bit | 表示目标地址是concentrator, 通过MANY-TO-ONE建立的路由 |
| Route record required | 1 bit | 在下一个数据侦发送之前,先发送一个 route record command frame |
| GroupID flag | 1 bit | 表示地址是组地址 |
| Next-hop address | 2 octets | 下一跳的地址 |
2. route discovery table
| Filed Name | Size (octets) | Desc |
|---|---|---|
| Route reuest ID | 1 | 每次发送路由请求(route request )之后自动加1 |
| Source address | 2 | 路由请求发起方地址 |
| Sender address | 2 | 收到路由请求侦的最低开销的上一跳地址,接收方根据 route request id & source address 来判断是否与本条对应 |
| Forward cost | 1 | 记录路由发现中前向跳数, 源地址到本设备 |
| Residual cost | 1 | 记录路由发现中后向跳数, 本设备到目标地址 |
| Expiration time | 2 | 路由发现的倒计算器 |
3. route record table
| Field Name | filed Type | Valid Range | Reference |
|---|---|---|---|
| Network address | integer | 0x0000-fff7 | the destination network address ofr thsi route record |
| Relay Count | ineger | 0x0000-ffff | the count of relay nodes form concentrator to the destination |
| Path | set of network addresses | - | a set of addresses that represent the route in order from the concentrator to the destination |
------------------------------------------------
Newbit Studio, 感谢你的光临
http://weibo.com/newbittech
------------------------------------------------
浙公网安备 33010602011771号