test_reset_sequence (TC-NM-01) |
After Rst: Reset_App in cycle 2, Reset_Comm in cycle 3, the boot-up request (00h) in cycle 4, Stat_State "00" until then and "01" from the request. Every service enable stays '0' until the boot-up message completes, then Ena_Sdo and Ena_Sync are '1' and Ena_Pdo '0'. Node_Id equals the pins and Node_IdValid is '1' from cycle 4. Repeated with the completion by Tx_Done, by Tx_Aborted and by the reject path |
NM-SM-01, NM-SM-04, NM-SM-06, NM-HB-01, NM-IF-01, NM-IF-03, NM-IF-04, NM-IF-07, NM-ID-01 |
test_node_id_valid (TC-NM-02) |
Every NODE-ID 1 to 127 with its complement: Node_Id correct, Node_IdValid '1', boot-up message. The pins change to another valid NODE-ID before a reset communication: the new NODE-ID from the sample on; Node_IdValid stays '1' through reset node and reset communication |
NM-ID-01, NM-IF-01 |
test_node_id_invalid (TC-NM-03) |
NODE-ID 0 with code 7Fh; for NODE-IDs 1, 127 and 14 random ones every single-bit error of the 14 pins; the code equal to the NODE-ID; all pins '0' and all '1'. The node stays in the Initialisation: Node_IdValid and the enables '0', no Tx_Valid, Stat_State "00". The pins are taken at a tick only: a valid code applied between two ticks takes effect at the next tick and starts the node with a boot-up message, without a reset. A reset communication after the pins changed to an invalid code clears Node_IdValid from the sample |
NM-ID-01, NM-ID-03 |
test_node_id_upset (TC-NM-04) |
In PreOp_s, Op_s and Stopped_s, each of the 14 bits of the NODE-ID copies inverted through ErrInj_BitFlip and ErrInj_Valid: Node_IdValid '0' and Err_NodeId in the same cycle, Reset_Comm in the next cycle, a new sample and a boot-up message, after which the node runs with the NODE-ID of the pins |
NM-ID-02, NM-ID-04, NM-IF-07 |
test_node_control (TC-NM-05) |
From each of PreOp_s, Op_s and Stopped_s every command specifier 1, 2, 128, 129 and 130, also into the state the node is in: the target state and the service enables of the state table; for 129 Reset_App and Reset_Comm in consecutive cycles, for 130 Reset_Comm alone, each followed by a boot-up message |
NM-SM-02, NM-SM-04, NM-SM-06, NM-IF-02, NM-IF-03, NM-IF-07 |
test_unknown_cs (TC-NM-06) |
In each of the three states every other command specifier (0, 3 to 127, 131 to 255): no change and one Err_Cs per message. NMT messages in the Initialisation (in WaitId_s and between Rst and the boot-up request): no change and no Err_Cs |
NM-SM-03, NM-IF-07 |
test_nmt_back_to_back (TC-NM-07) |
2000 NMT messages with random command specifiers, in consecutive cycles and with random gaps, checked against the reference model after every message |
NM-SM-07, NM-SM-02, NM-SM-03 |
test_preop_request (TC-NM-08) |
Red_PreopReq in each state: Op_s and Stopped_s to PreOp_s, no effect in PreOp_s and in the Initialisation. In the same cycle as an NMT message with 1, 2, 128, 129, 130 and an unknown command specifier: PreOp_s after 1, 2, 128 and the unknown one; the reset sub-states after 129 and 130, without a later change to PreOp_s by the request |
NM-SM-05, NM-IF-06 |
test_heartbeat_period (TC-NM-09) |
P = 1, 2, 7, 1000 and 65535: a heartbeat at every P-th tick after the boot-up request, in each of the three states with its state byte (04h, 05h, 7Fh, bit 7 '0'); P = 0: no heartbeat in 100000 ticks. Bounds of the first interval with tick period M and P = 3: a restart one cycle after a tick gives the first heartbeat P x M - 1 cycles later, a restart one cycle before a tick (P - 1) x M + 1 cycles later, a restart in the cycle of a tick P x M cycles later |
NM-HB-02, NM-HB-03, NM-IF-05 |
test_heartbeat_restart (TC-NM-10) |
P from 0 to 5: a heartbeat at once, then every 5 ticks; from 5 to 3: the next heartbeat 3 ticks after the change; to 0: no more heartbeats. Red_Switched: a heartbeat at once and the cycle restarts; with P = 0 and in the Initialisation no heartbeat. A change of P, Red_Switched and a tick in one cycle: one request |
NM-HB-04, NM-HB-05, NM-IF-06 |
test_request_pending (TC-NM-11) |
The responder holds Tx_Ready and the completion for up to 3 P: heartbeats that fall due meanwhile are not requested. A reset communication while the heartbeat waits for Tx_Ready (not taken): the heartbeat stays requested, the boot-up request follows in the cycle of its completion, and the enables stay '0' until the boot-up message completes |
NM-HB-06, NM-IF-04, NM-SM-04 |
test_abort (TC-NM-12) |
A heartbeat aborted through the reject path and after Tx_Ready: not repeated, the next one at its time. A boot-up message aborted: the enables of PreOp_s return. At the next Red_Switched the boot-up message instead of the heartbeat, also with P = 0, with the enables '0' until it completes; the switch after that requests a heartbeat |
NM-HB-07, NM-SM-04 |
test_minimal_set (TC-NM-13) |
Configuration minimal: every command specifier in Op_s, in PreOp_s and in the Initialisation changes nothing and gives no Err_Cs. The Initialisation ends in Op_s without a boot-up message, with a heartbeat (05h) at once. Red_PreopReq leads to PreOp_s; Red_Selecting from '1' to '0' leads back to Op_s; a change from '0' to '1' and a change in Op_s do nothing. Stopped_s is never reached. An upset of a copy: reset communication, then Op_s with a heartbeat at once and no boot-up message. Red_Switched: a heartbeat at once |
NM-MS-01, NM-MS-02, NM-MS-03, NM-IF-06, NM-ID-04 |
test_boot_retry_stale (TC-NM-16) |
Three runs, each with a copy upset that gives a reset communication and a new boot-up request: a boot-up request that waits for Tx_Ready and ends through the reject path in the cycle the deferred new request is registered; a taken boot-up message whose late abort is ignored; a waiting boot-up request that ends through the reject path in the cycle of the reset communication, in which the new request is made at once. After the new boot-up message completes, a bus switch requests a heartbeat (7Fh), not a boot-up message |
NM-HB-07, NM-HB-06 |
test_abort_and_switch (TC-NM-17) |
The abort of the boot-up message and Red_Switched in the same cycle: the boot-up message is requested again in the next cycle |
NM-HB-07 |
test_bootdue_reset (TC-NM-18) |
A boot-up message deferred behind a heartbeat (BootDue), and a reset communication in the cycle of the completion of the heartbeat: no boot-up request in that cycle and before the sample, one boot-up message after it |
NM-HB-06 |
test_command_and_heartbeat (TC-NM-19) |
An NMT command (1, 2, 128) in the cycle of a tick with a due heartbeat (P = 1): the heartbeat carries the state of the next cycle (05h, 04h, 7Fh) |
NM-HB-02, NM-SM-02 |
test_tx_timeout (TC-NM-20) |
A heartbeat taken without completion: Err_TxTimeout 255 to 256 ticks later, then the next heartbeat is requested and taken after the late completion of the old frame. A boot-up message taken without completion: Err_TxTimeout, the boot-up message is requested again at once, the enables stay '0'; when the frames complete, the enables return (the boot-up message taken twice). A reset communication while a heartbeat is awaited: the boot-up request follows the sample at once |
NM-HB-08, NM-HB-06, NM-IF-07 |
test_net_bootup (TC-NM-14) |
Bench network: the first frame of the node on the bus after the reset is the boot-up message (identifier 700h + NODE-ID, DLC 1, 00h); then a heartbeat every P ms with the state byte. M1 sends start remote node, enter pre-operational, stop remote node and reset communication; the heartbeats follow the state, and a boot-up message follows the reset communication. M1 sends a node guarding request (remote frame 700h + NODE-ID): the node sends no reply, only its next heartbeat at its time |
NM-HB-01, NM-HB-02, NM-SM-02, NM-SM-04, NM-IF-04 |
test_net_no_ack (TC-NM-15) |
Bench network with the acknowledge of M1 and M2 off: the link repeats the boot-up message, Stat_State is "01", the enables stay '0' and no heartbeat is requested for 10 P. M2 turns its acknowledge on: the boot-up message completes, the enables of PreOp_s follow, and the heartbeats start |
NM-SM-04, NM-HB-06 |
test_net_reset_wait (TC-NM-21) |
Bench network: a heartbeat waits for its acknowledge at the link; M1 sends reset communication. The boot-up request waits behind the heartbeat in ocan_dispatch; when the acknowledge returns, the heartbeat completes and then the boot-up message is sent. The enables return only after the boot-up message is on the bus (the completion of the heartbeat is not taken for the boot-up message, DS-TX-03) |
NM-HB-06, NM-SM-04 |