|
31 | 31 | * - <b>TSF</b>: messages emitted by transport support functions
|
32 | 32 | * - SUB SYSTEMS:
|
33 | 33 | * - Transport state machine (<b>TSM</b>)
|
34 |
| -* - TSM:INIT from <b>stInit</b> Initialize transport and radio |
35 |
| -* - TSM:FPAR from <b>stParent</b> Find parent |
| 34 | +* - TSM:INIT from <b>stInit</b> Initialize transport and radio |
| 35 | +* - TSM:FPAR from <b>stParent</b> Find parent |
36 | 36 | * - TSM:ID from <b>stID</b> Check/request node ID, if dynamic node ID set
|
37 | 37 | * - TSM:UPL from <b>stUplink</b> Verify uplink connection by pinging GW
|
38 |
| -* - TSM:READY from <b>stReady</b> Transport is ready and fully operational |
39 |
| -* - TSM:FAIL from <b>stFailure</b> Failure in transport link or transport HW |
| 38 | +* - TSM:READY from <b>stReady</b> Transport is ready and fully operational |
| 39 | +* - TSM:FAIL from <b>stFailure</b> Failure in transport link or transport HW |
40 | 40 | * - Transport support function (<b>TSF</b>)
|
41 | 41 | * - TSF:CKU from @ref transportCheckUplink(), checks connection to GW
|
42 | 42 | * - TSF:SID from @ref transportAssignNodeID(), assigns node ID
|
|
55 | 55 | *
|
56 | 56 | * Transport debug log messages:
|
57 | 57 | *
|
58 |
| -* |E| SYS | SUB | Message | Comment |
59 |
| -* |-|-------|-----------|---------------------------|--------------------------------------------------------------------- |
60 |
| -* | | TSM | INIT | | <b>Transition to stInit state</b> |
61 |
| -* | | TSM | INIT | STATID=%%d | Node ID is static |
62 |
| -* | | TSM | INIT | TSP OK | Transport device configured and fully operational |
63 |
| -* | | TSM | INIT | TSP PSM | Transport passive mode set |
64 |
| -* | | TSM | INIT | GW MODE | Node is set up as GW, thus omitting ID and findParent states |
65 |
| -* |!| TSM | INIT | TSP FAIL | Transport device initialization failed |
66 |
| -* | | TSM | FPAR | | <b>Transition to stParent state</b> |
67 |
| -* | | TSM | FPAR | STATP=%%d | Static parent set, skip finding parent |
68 |
| -* | | TSM | FPAR | OK | Parent node identified |
69 |
| -* |!| TSM | FPAR | NO REPLY | No potential parents replied to find parent request |
70 |
| -* |!| TSM | FPAR | FAIL | Finding parent failed |
71 |
| -* | | TSM | ID | | <b>Transition to stID state</b> |
72 |
| -* | | TSM | ID | OK,ID=%%d | Node ID is valid |
73 |
| -* | | TSM | ID | REQ | Request node ID from controller |
74 |
| -* |!| TSM | ID | FAIL,ID=%%d | ID verification failed, ID invalid |
75 |
| -* | | TSM | UPL | | <b>Transition to stUplink state</b> |
76 |
| -* | | TSM | UPL | OK | Uplink OK, GW returned ping |
77 |
| -* | | TSF | UPL | DGWC,O=%%d,N=%%d | Uplink check revealed changed network topology, old distance (O), new distance (N) |
78 |
| -* |!| TSM | UPL | FAIL | Uplink check failed, i.e. GW could not be pinged |
79 |
| -* | | TSM | READY | SRT | Save routing table |
80 |
| -* | | TSM | READY | ID=%%d,PAR=%%d,DIS=%%d | <b>Transition to stReady</b> Transport ready, node ID (ID), parent node ID (PAR), distance to GW (DIS) |
81 |
| -* |!| TSM | READY | UPL FAIL,SNP | Too many failed uplink transmissions, search new parent |
82 |
| -* |!| TSM | READY | FAIL,STATP | Too many failed uplink transmissions, static parent enforced |
83 |
| -* | | TSM | FAIL | CNT=%%d | <b>Transition to stFailure state</b>, consecutive failure counter (CNT) |
84 |
| -* | | TSM | FAIL | DIS | Disable transport |
85 |
| -* | | TSM | FAIL | RE-INIT | Attempt to re-initialize transport |
86 |
| -* | | TSF | CKU | OK | Uplink OK |
87 |
| -* | | TSF | CKU | OK,FCTRL | Uplink OK, flood control prevents pinging GW in too short intervals |
88 |
| -* | | TSF | CKU | DGWC,O=%%d,N=%%d | Uplink check revealed changed network topology, old distance (O), new distance (N) |
89 |
| -* | | TSF | CKU | FAIL | No reply received when checking uplink |
90 |
| -* | | TSF | SID | OK,ID=%%d | Node ID assigned |
91 |
| -* |!| TSF | SID | FAIL,ID=%%d | Assigned ID is invalid |
92 |
| -* | | TSF | PNG | SEND,TO=%%d | Send ping to destination (TO) |
93 |
| -* | | TSF | WUR | MS=%%lu | Wait until transport ready, timeout (MS) |
94 |
| -* | | TSF | MSG | ACK REQ | ACK message requested |
95 |
| -* | | TSF | MSG | ACK | ACK message, do not proceed but forward to callback |
96 |
| -* | | TSF | MSG | FPAR RES,ID=%%d,D=%%d | Response to find parent received from node (ID) with distance (D) to GW |
97 |
| -* | | TSF | MSG | FPAR PREF FOUND | Preferred parent found, i.e. parent defined via MY_PARENT_NODE_ID |
98 |
| -* | | TSF | MSG | FPAR OK,ID=%%d,D=%%d | Find parent response from node (ID) is valid, distance (D) to GW |
99 |
| -* | | TSF | MSG | FPAR INACTIVE | Find parent response received, but no find parent request active, skip response |
100 |
| -* | | TSF | MSG | FPAR REQ,ID=%%d | Find parent request from node (ID) |
101 |
| -* | | TSF | MSG | PINGED,ID=%%d,HP=%%d | Node pinged by node (ID) with (HP) hops |
102 |
| -* | | TSF | MSG | PONG RECV,HP=%%d | Pinged node replied with (HP) hops |
103 |
| -* | | TSF | MSG | BC | Broadcast message received |
104 |
| -* | | TSF | MSG | GWL OK | Link to GW ok |
105 |
| -* | | TSF | MSG | FWD BC MSG | Controlled broadcast message forwarding |
106 |
| -* | | TSF | MSG | REL MSG | Relay message |
107 |
| -* | | TSF | MSG | REL PxNG,HP=%%d | Relay PING/PONG message, increment hop counter (HP) |
108 |
| -* |!| TSF | MSG | LEN,%%d!=%%d | Invalid message length, (actual!=expected) |
109 |
| -* |!| TSF | MSG | PVER,%%d!=%%d | Message protocol version mismatch (actual!=expected) |
110 |
| -* |!| TSF | MSG | SIGN VERIFY FAIL | Signing verification failed |
111 |
| -* |!| TSF | MSG | REL MSG,NORP | Node received a message for relaying, but node is not a repeater, message skipped |
112 |
| -* |!| TSF | MSG | SIGN FAIL | Signing message failed |
113 |
| -* |!| TSF | MSG | GWL FAIL | GW uplink failed |
114 |
| -* |!| TSF | MSG | ID TK INVALID | Token for ID request invalid |
115 |
| -* | | TSF | SAN | OK | Sanity check passed |
116 |
| -* |!| TSF | SAN | FAIL | Sanity check failed, attempt to re-initialize radio |
117 |
| -* | | TSF | CRT | OK | Clearing routing table successful |
118 |
| -* | | TSF | LRT | OK | Loading routing table successful |
119 |
| -* | | TSF | SRT | OK | Saving routing table successful |
120 |
| -* |!| TSF | RTE | FPAR ACTIVE | Finding parent active, message not sent |
121 |
| -* |!| TSF | RTE | DST %%d UNKNOWN | Routing for destination (DST) unknown, send message to parent |
122 |
| -* | | TSF | RRT | ROUTE N=%%d,R=%%d | Routing table, messages to node (N) are routed via node (R) |
123 |
| -* |!| TSF | SND | TNR | Transport not ready, message cannot be sent |
124 |
| -* | | TSF | TDI | TSL | Set transport to sleep |
125 |
| -* | | TSF | TDI | TPD | Power down transport |
126 |
| -* | | TSF | TRI | TRI | Reinitialise transport |
127 |
| -* | | TSF | TRI | TSB | Set transport to standby |
128 |
| -* | | TSF | SIR | CMD=%d,VAL=%d | Get signal report |
| 58 | +* |E| SYS | SUB | Message | Comment |
| 59 | +* |-|-----|-------|---------------------------|--------------------------------------------------------------------- |
| 60 | +* | | TSM | INIT | | <b>Transition to stInit state</b> |
| 61 | +* | | TSM | INIT | STATID=%%d | Node ID is static |
| 62 | +* | | TSM | INIT | TSP OK | Transport device configured and fully operational |
| 63 | +* | | TSM | INIT | TSP PSM | Transport passive mode set |
| 64 | +* | | TSM | INIT | GW MODE | Node is set up as GW, thus omitting ID and findParent states |
| 65 | +* |!| TSM | INIT | TSP FAIL | Transport device initialization failed |
| 66 | +* | | TSM | FPAR | | <b>Transition to stParent state</b> |
| 67 | +* | | TSM | FPAR | STATP=%%d | Static parent set, skip finding parent |
| 68 | +* | | TSM | FPAR | OK | Parent node identified |
| 69 | +* |!| TSM | FPAR | NO REPLY | No potential parents replied to find parent request |
| 70 | +* |!| TSM | FPAR | FAIL | Finding parent failed |
| 71 | +* | | TSM | ID | | <b>Transition to stID state</b> |
| 72 | +* | | TSM | ID | OK,ID=%%d | Node ID is valid |
| 73 | +* | | TSM | ID | REQ | Request node ID from controller |
| 74 | +* |!| TSM | ID | FAIL,ID=%%d | ID verification failed, ID invalid |
| 75 | +* | | TSM | UPL | | <b>Transition to stUplink state</b> |
| 76 | +* | | TSM | UPL | OK | Uplink OK, GW returned ping |
| 77 | +* | | TSF | UPL | DGWC,O=%%d,N=%%d | Uplink check revealed changed network topology, old distance (O), new distance (N) |
| 78 | +* |!| TSM | UPL | FAIL | Uplink check failed, i.e. GW could not be pinged |
| 79 | +* | | TSM | READY | SRT | Save routing table |
| 80 | +* | | TSM | READY | ID=%%d,PAR=%%d,DIS=%%d | <b>Transition to stReady</b> Transport ready, node ID (ID), parent node ID (PAR), distance to GW (DIS) |
| 81 | +* |!| TSM | READY | UPL FAIL,SNP | Too many failed uplink transmissions, search new parent |
| 82 | +* |!| TSM | READY | FAIL,STATP | Too many failed uplink transmissions, static parent enforced |
| 83 | +* | | TSM | FAIL | CNT=%%d | <b>Transition to stFailure state</b>, consecutive failure counter (CNT) |
| 84 | +* | | TSM | FAIL | DIS | Disable transport |
| 85 | +* | | TSM | FAIL | RE-INIT | Attempt to re-initialize transport |
| 86 | +* | | TSF | CKU | OK | Uplink OK |
| 87 | +* | | TSF | CKU | OK,FCTRL | Uplink OK, flood control prevents pinging GW in too short intervals |
| 88 | +* | | TSF | CKU | DGWC,O=%%d,N=%%d | Uplink check revealed changed network topology, old distance (O), new distance (N) |
| 89 | +* | | TSF | CKU | FAIL | No reply received when checking uplink |
| 90 | +* | | TSF | SID | OK,ID=%%d | Node ID assigned |
| 91 | +* |!| TSF | SID | FAIL,ID=%%d | Assigned ID is invalid |
| 92 | +* | | TSF | PNG | SEND,TO=%%d | Send ping to destination (TO) |
| 93 | +* | | TSF | WUR | MS=%%lu | Wait until transport ready, timeout (MS) |
| 94 | +* | | TSF | MSG | ACK REQ | ACK message requested |
| 95 | +* | | TSF | MSG | ACK | ACK message, do not proceed but forward to callback |
| 96 | +* | | TSF | MSG | FPAR RES,ID=%%d,D=%%d | Response to find parent received from node (ID) with distance (D) to GW |
| 97 | +* | | TSF | MSG | FPAR PREF FOUND | Preferred parent found, i.e. parent defined via MY_PARENT_NODE_ID |
| 98 | +* | | TSF | MSG | FPAR OK,ID=%%d,D=%%d | Find parent response from node (ID) is valid, distance (D) to GW |
| 99 | +* | | TSF | MSG | FPAR INACTIVE | Find parent response received, but no find parent request active, skip response |
| 100 | +* | | TSF | MSG | FPAR REQ,ID=%%d | Find parent request from node (ID) |
| 101 | +* | | TSF | MSG | PINGED,ID=%%d,HP=%%d | Node pinged by node (ID) with (HP) hops |
| 102 | +* | | TSF | MSG | PONG RECV,HP=%%d | Pinged node replied with (HP) hops |
| 103 | +* | | TSF | MSG | BC | Broadcast message received |
| 104 | +* | | TSF | MSG | GWL OK | Link to GW ok |
| 105 | +* | | TSF | MSG | FWD BC MSG | Controlled broadcast message forwarding |
| 106 | +* | | TSF | MSG | REL MSG | Relay message |
| 107 | +* | | TSF | MSG | REL PxNG,HP=%%d | Relay PING/PONG message, increment hop counter (HP) |
| 108 | +* |!| TSF | MSG | LEN,%%d!=%%d | Invalid message length, (actual!=expected) |
| 109 | +* |!| TSF | MSG | PVER,%%d!=%%d | Message protocol version mismatch (actual!=expected) |
| 110 | +* |!| TSF | MSG | SIGN VERIFY FAIL | Signing verification failed |
| 111 | +* |!| TSF | MSG | REL MSG,NORP | Node received a message for relaying, but node is not a repeater, message skipped |
| 112 | +* |!| TSF | MSG | SIGN FAIL | Signing message failed |
| 113 | +* |!| TSF | MSG | GWL FAIL | GW uplink failed |
| 114 | +* |!| TSF | MSG | ID TK INVALID | Token for ID request invalid |
| 115 | +* | | TSF | SAN | OK | Sanity check passed |
| 116 | +* |!| TSF | SAN | FAIL | Sanity check failed, attempt to re-initialize radio |
| 117 | +* | | TSF | CRT | OK | Clearing routing table successful |
| 118 | +* | | TSF | LRT | OK | Loading routing table successful |
| 119 | +* | | TSF | SRT | OK | Saving routing table successful |
| 120 | +* |!| TSF | RTE | FPAR ACTIVE | Finding parent active, message not sent |
| 121 | +* |!| TSF | RTE | DST %%d UNKNOWN | Routing for destination (DST) unknown, send message to parent |
| 122 | +* | | TSF | RRT | ROUTE N=%%d,R=%%d | Routing table, messages to node (N) are routed via node (R) |
| 123 | +* |!| TSF | SND | TNR | Transport not ready, message cannot be sent |
| 124 | +* | | TSF | TDI | TSL | Set transport to sleep |
| 125 | +* | | TSF | TDI | TPD | Power down transport |
| 126 | +* | | TSF | TRI | TRI | Reinitialise transport |
| 127 | +* | | TSF | TRI | TSB | Set transport to standby |
| 128 | +* | | TSF | SIR | CMD=%d,VAL=%d | Get signal report |
129 | 129 | *
|
130 | 130 | *
|
131 | 131 | * Incoming / outgoing messages:
|
|
0 commit comments