diff --git a/docs/evidence/stage8_2_rtu_reliability/baseline-windows.json b/docs/evidence/stage8_2_rtu_reliability/baseline-windows.json new file mode 100644 index 0000000..ac454e2 --- /dev/null +++ b/docs/evidence/stage8_2_rtu_reliability/baseline-windows.json @@ -0,0 +1,569 @@ +{ + "baseline-1": [ + { + "sequence": 556, + "stress_sequence": 537, + "fc": 6, + "address": 3, + "value_or_count": 134, + "pdu": "0600030086", + "request": "010600030086f868", + "tx_crc_ok": true, + "tx_ns": 31634317990211, + "rx_ns": 31634346722394, + "gap_ns": 61897, + "response": "010600030086f868", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 28732183 + }, + { + "sequence": 557, + "stress_sequence": 538, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31634346781450, + "rx_ns": 31634376674301, + "gap_ns": 59056, + "response": "01040200863892", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 29892851 + }, + { + "sequence": 558, + "stress_sequence": 539, + "fc": 5, + "address": 6, + "value_or_count": 65280, + "pdu": "050006ff00", + "request": "01050006ff006c3b", + "tx_crc_ok": true, + "tx_ns": 31634376746481, + "rx_ns": 31634406181960, + "gap_ns": 72180, + "response": "01050006ff006c3b", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29435479 + }, + { + "sequence": 559, + "stress_sequence": 540, + "fc": 1, + "address": 6, + "value_or_count": 1, + "pdu": "0100060001", + "request": "0101000600011dcb", + "tx_crc_ok": true, + "tx_ns": 31634406313099, + "rx_ns": 31634435101694, + "gap_ns": 131139, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 28788595 + }, + { + "sequence": 560, + "stress_sequence": 541, + "fc": 6, + "address": 3, + "value_or_count": 135, + "pdu": "0600030087", + "request": "01060003008739a8", + "tx_crc_ok": true, + "tx_ns": 31634435189153, + "rx_ns": 31634464096842, + "gap_ns": 87459, + "response": "01060003008739a8", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 28907689 + }, + { + "sequence": 561, + "stress_sequence": 542, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31634464162167, + "rx_ns": 31634494119265, + "gap_ns": 65325, + "response": "0104020087f952", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 29957098 + }, + { + "sequence": 562, + "stress_sequence": 543, + "fc": 5, + "address": 7, + "value_or_count": 65280, + "pdu": "050007ff00", + "request": "01050007ff003dfb", + "tx_crc_ok": true, + "tx_ns": 31634494191151, + "rx_ns": 31634523339572, + "gap_ns": 71886, + "response": "01050007ff003dfb", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29148421 + }, + { + "sequence": 563, + "stress_sequence": 544, + "fc": 1, + "address": 7, + "value_or_count": 1, + "pdu": "0100070001", + "request": "0101000700014c0b", + "tx_crc_ok": true, + "tx_ns": 31634523404407, + "rx_ns": 31634553244175, + "gap_ns": 64835, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 29839768 + }, + { + "sequence": 564, + "stress_sequence": 545, + "fc": 6, + "address": 3, + "value_or_count": 136, + "pdu": "0600030088", + "request": "01060003008879ac", + "tx_crc_ok": true, + "tx_ns": 31634553309990, + "rx_ns": 31634582880623, + "gap_ns": 65815, + "response": "01060003008879ac", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29570633 + }, + { + "sequence": 565, + "stress_sequence": 546, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31634583108232, + "rx_ns": 31634611058377, + "gap_ns": 227609, + "response": "0104020088b956", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 27950145 + }, + { + "sequence": 566, + "stress_sequence": 547, + "fc": 5, + "address": 0, + "value_or_count": 65280, + "pdu": "050000ff00", + "request": "01050000ff008c3a", + "tx_crc_ok": true, + "tx_ns": 31634611126738, + "rx_ns": null, + "gap_ns": 68361, + "response": "", + "rx_bytes": 0, + "rx_crc_ok": null, + "response_elapsed_ns": null + } + ], + "baseline-2": [ + { + "sequence": 406, + "stress_sequence": 387, + "fc": 5, + "address": 0, + "value_or_count": 65280, + "pdu": "050000ff00", + "request": "01050000ff008c3a", + "tx_crc_ok": true, + "tx_ns": 31666625395014, + "rx_ns": 31666654545873, + "gap_ns": 93522, + "response": "01050000ff008c3a", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29150859 + }, + { + "sequence": 407, + "stress_sequence": 388, + "fc": 1, + "address": 0, + "value_or_count": 1, + "pdu": "0100000001", + "request": "010100000001fdca", + "tx_crc_ok": true, + "tx_ns": 31666654693187, + "rx_ns": 31666683938847, + "gap_ns": 147314, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 29245660 + }, + { + "sequence": 408, + "stress_sequence": 389, + "fc": 6, + "address": 3, + "value_or_count": 97, + "pdu": "0600030061", + "request": "010600030061b822", + "tx_crc_ok": true, + "tx_ns": 31666684030992, + "rx_ns": 31666712519824, + "gap_ns": 92145, + "response": "010600030061b822", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 28488832 + }, + { + "sequence": 409, + "stress_sequence": 390, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31666712810715, + "rx_ns": 31666742064341, + "gap_ns": 290891, + "response": "010402006178d8", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 29253626 + }, + { + "sequence": 410, + "stress_sequence": 391, + "fc": 5, + "address": 1, + "value_or_count": 65280, + "pdu": "050001ff00", + "request": "01050001ff00ddfa", + "tx_crc_ok": true, + "tx_ns": 31666742132884, + "rx_ns": 31666771504027, + "gap_ns": 68543, + "response": "01050001ff00ddfa", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29371143 + }, + { + "sequence": 411, + "stress_sequence": 392, + "fc": 1, + "address": 1, + "value_or_count": 1, + "pdu": "0100010001", + "request": "010100010001ac0a", + "tx_crc_ok": true, + "tx_ns": 31666771578077, + "rx_ns": 31666801034087, + "gap_ns": 74050, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 29456010 + }, + { + "sequence": 412, + "stress_sequence": 393, + "fc": 6, + "address": 3, + "value_or_count": 98, + "pdu": "0600030062", + "request": "010600030062f823", + "tx_crc_ok": true, + "tx_ns": 31666801105187, + "rx_ns": 31666830543103, + "gap_ns": 71100, + "response": "010600030062f823", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29437916 + }, + { + "sequence": 413, + "stress_sequence": 394, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31666830610761, + "rx_ns": 31666860215560, + "gap_ns": 67658, + "response": "010402006238d9", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 29604799 + }, + { + "sequence": 414, + "stress_sequence": 395, + "fc": 5, + "address": 2, + "value_or_count": 65280, + "pdu": "050002ff00", + "request": "01050002ff002dfa", + "tx_crc_ok": true, + "tx_ns": 31666860289709, + "rx_ns": 31666890162191, + "gap_ns": 74149, + "response": "01050002ff002dfa", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29872482 + }, + { + "sequence": 415, + "stress_sequence": 396, + "fc": 1, + "address": 2, + "value_or_count": 1, + "pdu": "0100020001", + "request": "0101000200015c0a", + "tx_crc_ok": true, + "tx_ns": 31666890237225, + "rx_ns": 31666919671698, + "gap_ns": 75034, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 29434473 + }, + { + "sequence": 416, + "stress_sequence": 397, + "fc": 6, + "address": 3, + "value_or_count": 99, + "pdu": "0600030063", + "request": "01060003006339e3", + "tx_crc_ok": true, + "tx_ns": 31666919755288, + "rx_ns": null, + "gap_ns": 83590, + "response": "", + "rx_bytes": 0, + "rx_crc_ok": null, + "response_elapsed_ns": null + } + ], + "baseline-3": [ + { + "sequence": 417, + "stress_sequence": 398, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31698847828902, + "rx_ns": 31698877378872, + "gap_ns": 86456, + "response": "0104020063f919", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 29549970 + }, + { + "sequence": 418, + "stress_sequence": 399, + "fc": 5, + "address": 3, + "value_or_count": 65280, + "pdu": "050003ff00", + "request": "01050003ff007c3a", + "tx_crc_ok": true, + "tx_ns": 31698877455185, + "rx_ns": 31698907399621, + "gap_ns": 76313, + "response": "01050003ff007c3a", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29944436 + }, + { + "sequence": 419, + "stress_sequence": 400, + "fc": 1, + "address": 3, + "value_or_count": 1, + "pdu": "0100030001", + "request": "0101000300010dca", + "tx_crc_ok": true, + "tx_ns": 31698907465989, + "rx_ns": 31698936142837, + "gap_ns": 66368, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 28676848 + }, + { + "sequence": 420, + "stress_sequence": 401, + "fc": 6, + "address": 3, + "value_or_count": 100, + "pdu": "0600030064", + "request": "0106000300647821", + "tx_crc_ok": true, + "tx_ns": 31698936216000, + "rx_ns": 31698965533879, + "gap_ns": 73163, + "response": "0106000300647821", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29317879 + }, + { + "sequence": 421, + "stress_sequence": 402, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31698965612556, + "rx_ns": 31698995737879, + "gap_ns": 78677, + "response": "0104020064b8db", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 30125323 + }, + { + "sequence": 422, + "stress_sequence": 403, + "fc": 5, + "address": 4, + "value_or_count": 65280, + "pdu": "050004ff00", + "request": "01050004ff00cdfb", + "tx_crc_ok": true, + "tx_ns": 31698995838218, + "rx_ns": 31699026102284, + "gap_ns": 100339, + "response": "01050004ff00cdfb", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 30264066 + }, + { + "sequence": 423, + "stress_sequence": 404, + "fc": 1, + "address": 4, + "value_or_count": 1, + "pdu": "0100040001", + "request": "010100040001bc0b", + "tx_crc_ok": true, + "tx_ns": 31699026181945, + "rx_ns": 31699054646888, + "gap_ns": 79661, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 28464943 + }, + { + "sequence": 424, + "stress_sequence": 405, + "fc": 6, + "address": 3, + "value_or_count": 101, + "pdu": "0600030065", + "request": "010600030065b9e1", + "tx_crc_ok": true, + "tx_ns": 31699054727042, + "rx_ns": 31699084361006, + "gap_ns": 80154, + "response": "010600030065b9e1", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 29633964 + }, + { + "sequence": 425, + "stress_sequence": 406, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 31699084442341, + "rx_ns": 31699114332521, + "gap_ns": 81335, + "response": "0104020065791b", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 29890180 + }, + { + "sequence": 426, + "stress_sequence": 407, + "fc": 5, + "address": 5, + "value_or_count": 65280, + "pdu": "050005ff00", + "request": "01050005ff009c3b", + "tx_crc_ok": true, + "tx_ns": 31699114546986, + "rx_ns": 31699142881655, + "gap_ns": 214465, + "response": "01050005ff009c3b", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 28334669 + }, + { + "sequence": 427, + "stress_sequence": 408, + "fc": 1, + "address": 5, + "value_or_count": 1, + "pdu": "0100050001", + "request": "010100050001edcb", + "tx_crc_ok": true, + "tx_ns": 31699142958362, + "rx_ns": null, + "gap_ns": 76707, + "response": "", + "rx_bytes": 0, + "rx_crc_ok": null, + "response_elapsed_ns": null + } + ] +} diff --git a/docs/evidence/stage8_2_rtu_reliability/fifo-1-window.json b/docs/evidence/stage8_2_rtu_reliability/fifo-1-window.json new file mode 100644 index 0000000..f181f7e --- /dev/null +++ b/docs/evidence/stage8_2_rtu_reliability/fifo-1-window.json @@ -0,0 +1,698 @@ +{ + "full_trace": "build/rtu-r1/fifo-1", + "summary": { + "status": "FAIL", + "successful": 174, + "attempted": 175, + "timeout_seconds": 0.15, + "gap_requested_ms": 0, + "transport": "raw", + "retries": 0, + "argv": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/fifo-1", + "--transport", + "raw" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "e2ad01c7ef3e8d3de4b451071a732ce4a94d1d4ef92f4b41d233f0ef83cb7470", + "gap_ms": { + "min": 0.072383, + "median": 0.204783, + "max": 0.853302 + }, + "failure_sequence": 175, + "classification": "empty", + "late": "", + "actual_ns": 150405966 + }, + "slave_exit": 0, + "transaction_window": [ + { + "sequence": 165, + "started_ns": 32099467051118, + "finished_ns": 32099493502493, + "gap_ns": 387293, + "fc": 6, + "address": 3, + "value": 41, + "expected_hex": "010600030029b814", + "tx": "010600030029b814", + "tx_crc_ok": true, + "rx": "010600030029b814", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099467054404, + "ns": 32099467207569, + "bytes": 8, + "hex": "010600030029b814" + }, + { + "op": "rx", + "started_ns": 32099493424086, + "ns": 32099493488437, + "bytes": 8, + "hex": "010600030029b814" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 166, + "started_ns": 32099493997586, + "finished_ns": 32099520742968, + "gap_ns": 495093, + "fc": 4, + "address": 7, + "value": 1, + "expected_hex": "010402002978ee", + "tx": "010400070001800b", + "tx_crc_ok": true, + "rx": "010402002978ee", + "rx_bytes": 7, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099494001876, + "ns": 32099494186531, + "bytes": 8, + "hex": "010400070001800b" + }, + { + "op": "rx", + "started_ns": 32099520674053, + "ns": 32099520732106, + "bytes": 7, + "hex": "010402002978ee" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 167, + "started_ns": 32099520952907, + "finished_ns": 32099547750865, + "gap_ns": 209939, + "fc": 5, + "address": 1, + "value": 65280, + "expected_hex": "01050001ff00ddfa", + "tx": "01050001ff00ddfa", + "tx_crc_ok": true, + "rx": "01050001ff00ddfa", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099520955007, + "ns": 32099521091650, + "bytes": 8, + "hex": "01050001ff00ddfa" + }, + { + "op": "rx", + "started_ns": 32099547691535, + "ns": 32099547741007, + "bytes": 8, + "hex": "01050001ff00ddfa" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 168, + "started_ns": 32099547902569, + "finished_ns": 32099576221768, + "gap_ns": 151704, + "fc": 1, + "address": 1, + "value": 1, + "expected_hex": "010101019048", + "tx": "010100010001ac0a", + "tx_crc_ok": true, + "rx": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099547904121, + "ns": 32099547994304, + "bytes": 8, + "hex": "010100010001ac0a" + }, + { + "op": "rx", + "started_ns": 32099576110591, + "ns": 32099576204699, + "bytes": 6, + "hex": "010101019048" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 169, + "started_ns": 32099576507924, + "finished_ns": 32099603473104, + "gap_ns": 286156, + "fc": 6, + "address": 3, + "value": 42, + "expected_hex": "01060003002af815", + "tx": "01060003002af815", + "tx_crc_ok": true, + "rx": "01060003002af815", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099576510845, + "ns": 32099576651231, + "bytes": 8, + "hex": "01060003002af815" + }, + { + "op": "rx", + "started_ns": 32099603373793, + "ns": 32099603456765, + "bytes": 8, + "hex": "01060003002af815" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 170, + "started_ns": 32099603777973, + "finished_ns": 32099630567716, + "gap_ns": 304869, + "fc": 4, + "address": 7, + "value": 1, + "expected_hex": "010402002a38ef", + "tx": "010400070001800b", + "tx_crc_ok": true, + "rx": "010402002a38ef", + "rx_bytes": 7, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099603780802, + "ns": 32099603917445, + "bytes": 8, + "hex": "010400070001800b" + }, + { + "op": "rx", + "started_ns": 32099630450058, + "ns": 32099630551651, + "bytes": 7, + "hex": "010402002a38ef" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 171, + "started_ns": 32099630835799, + "finished_ns": 32099657907500, + "gap_ns": 268083, + "fc": 5, + "address": 2, + "value": 65280, + "expected_hex": "01050002ff002dfa", + "tx": "01050002ff002dfa", + "tx_crc_ok": true, + "rx": "01050002ff002dfa", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099630838173, + "ns": 32099630961763, + "bytes": 8, + "hex": "01050002ff002dfa" + }, + { + "op": "rx", + "started_ns": 32099657808372, + "ns": 32099657890614, + "bytes": 8, + "hex": "01050002ff002dfa" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 172, + "started_ns": 32099658169103, + "finished_ns": 32099685133005, + "gap_ns": 261603, + "fc": 1, + "address": 2, + "value": 1, + "expected_hex": "010101019048", + "tx": "0101000200015c0a", + "tx_crc_ok": true, + "rx": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099658171568, + "ns": 32099658306203, + "bytes": 8, + "hex": "0101000200015c0a" + }, + { + "op": "rx", + "started_ns": 32099685043461, + "ns": 32099685117396, + "bytes": 6, + "hex": "010101019048" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 173, + "started_ns": 32099685420805, + "finished_ns": 32099712186359, + "gap_ns": 287800, + "fc": 6, + "address": 3, + "value": 43, + "expected_hex": "01060003002b39d5", + "tx": "01060003002b39d5", + "tx_crc_ok": true, + "rx": "01060003002b39d5", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099685424729, + "ns": 32099685612580, + "bytes": 8, + "hex": "01060003002b39d5" + }, + { + "op": "rx", + "started_ns": 32099712120821, + "ns": 32099712171754, + "bytes": 8, + "hex": "01060003002b39d5" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 174, + "started_ns": 32099712422769, + "finished_ns": 32099740359330, + "gap_ns": 236410, + "fc": 4, + "address": 7, + "value": 1, + "expected_hex": "010402002bf92f", + "tx": "010400070001800b", + "tx_crc_ok": true, + "rx": "010402002bf92f", + "rx_bytes": 7, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099712425873, + "ns": 32099712524727, + "bytes": 8, + "hex": "010400070001800b" + }, + { + "op": "rx", + "started_ns": 32099740249796, + "ns": 32099740340253, + "bytes": 7, + "hex": "010402002bf92f" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + }, + { + "sequence": 175, + "started_ns": 32099740623032, + "finished_ns": 32099891028998, + "gap_ns": 263702, + "fc": 5, + "address": 3, + "value": 65280, + "expected_hex": "01050003ff007c3a", + "tx": "01050003ff007c3a", + "tx_crc_ok": true, + "rx": "", + "rx_bytes": 0, + "rx_crc_ok": false, + "classification": "empty", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32099740625770, + "ns": 32099740783225, + "bytes": 8, + "hex": "01050003ff007c3a" + } + ], + "clock_reads": [], + "clock_offset_span_ns": null + } + ], + "pty_events": [ + { + "ns": 32099466219484, + "pty": 4, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32099483774353, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099483818805, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0600030029b814" + }, + { + "ns": 32099493037888, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "010600030029b814" + }, + { + "ns": 32099511299523, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099511363691, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32099520425046, + "pty": 4, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "010402002978ee" + }, + { + "ns": 32099538442512, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099538495727, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050001ff00ddfa" + }, + { + "ns": 32099547485064, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050001ff00ddfa" + }, + { + "ns": 32099565731364, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099565801009, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0100010001ac0a" + }, + { + "ns": 32099575523125, + "pty": 4, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32099593395916, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099593467934, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "060003002af815" + }, + { + "ns": 32099602878062, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01060003002af815" + }, + { + "ns": 32099620617221, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099620699189, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32099630091518, + "pty": 4, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "010402002a38ef" + }, + { + "ns": 32099648175617, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099648241611, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050002ff002dfa" + }, + { + "ns": 32099657430207, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050002ff002dfa" + }, + { + "ns": 32099675277075, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099675348089, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "01000200015c0a" + }, + { + "ns": 32099684739414, + "pty": 4, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32099702636484, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099702672995, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "060003002b39d5" + }, + { + "ns": 32099711879939, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01060003002b39d5" + }, + { + "ns": 32099730131989, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32099730205285, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32099739795596, + "pty": 4, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "010402002bf92f" + }, + { + "ns": 32099740885730, + "pty": 4, + "dir": "rx", + "bytes": 8, + "requested": 8, + "hex": "01050003ff007c3a", + "stack": [ + "0x7a96852b158b", + "0x7a96852b1788", + "0x40eb58", + "0x4095dc" + ] + }, + { + "ns": 32099903313654, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "53" + } + ], + "data_pty": 4, + "stats_and_thread": [ + "THREAD name=sysworkq size=4096 unused=4056 rc=0", + "THREAD name=idle size=256 unused=216 rc=0", + "THREAD name=main size=4096 unused=4056 rc=0", + "STATS requests=174 valid=174 responses=174 errors=0 crc=0 exceptions=0 edges=0 rising=0 falling=0 samples=290 beats=58 de_high=174 de_low=175 direction=131072 di=0 do=43 commands=87 unused=4056", + "THREAD name= size=40 unused=0 rc=0", + "THREAD name=sysworkq size=4096 unused=4056 rc=0", + "THREAD name=idle size=256 unused=216 rc=0", + "THREAD name=main size=4096 unused=4056 rc=0" + ] +} diff --git a/docs/evidence/stage8_2_rtu_reliability/gui-regression.json b/docs/evidence/stage8_2_rtu_reliability/gui-regression.json new file mode 100644 index 0000000..7d208b0 --- /dev/null +++ b/docs/evidence/stage8_2_rtu_reliability/gui-regression.json @@ -0,0 +1,369 @@ +{ + "exit": 0, + "pr_head": "85b1eb4363ba78ef67b6aba9f85691f3c19d693b", + "pr_blobs_verified": 16, + "status": "CANCELLED", + "slave_exit": 0, + "supervisor_exit": 130, + "worker_exit": 143, + "pty_paths_absent_on_postcheck": true, + "pids_absent_on_postcheck": true, + "snapshots": [ + { + "event": "ready", + "time": 1795513111.287519, + "coils": [ + false, + false, + false, + false, + false, + false, + false, + false + ], + "inputs": [ + false, + false, + false, + false + ], + "holding": [ + 1, + 10, + 500, + 0, + 100, + 0, + 0, + 0 + ], + "registers": [ + 1, + 240, + 0, + 4, + 3, + 0, + 0, + 0 + ] + }, + { + "event": "result", + "time": 1795513111.680699, + "request": { + "op": "write", + "index": 0, + "value": true + }, + "coils": [ + true, + false, + false, + false, + false, + false, + false, + false + ], + "inputs": [ + false, + false, + false, + false + ], + "holding": [ + 1, + 10, + 500, + 1, + 100, + 1, + 0, + 0 + ], + "registers": [ + 1, + 670, + 0, + 9, + 8, + 0, + 0, + 1 + ] + }, + { + "event": "result", + "time": 1795513112.1663928, + "request": { + "op": "write", + "index": 0, + "value": false + }, + "coils": [ + false, + false, + false, + false, + false, + false, + false, + false + ], + "inputs": [ + false, + false, + false, + false + ], + "holding": [ + 1, + 10, + 500, + 0, + 100, + 2, + 0, + 0 + ], + "registers": [ + 1, + 1200, + 0, + 14, + 13, + 0, + 0, + 0 + ] + }, + { + "event": "result", + "time": 1795513112.6251478, + "request": { + "op": "input", + "mask": 5 + }, + "coils": [ + false, + false, + false, + false, + false, + false, + false, + false + ], + "inputs": [ + true, + false, + true, + false + ], + "holding": [ + 1, + 10, + 500, + 0, + 100, + 2, + 0, + 0 + ], + "registers": [ + 1, + 1700, + 0, + 18, + 17, + 0, + 5, + 0 + ] + } + ], + "wire": [ + { + "time": 1795513111.1235204, + "direction": "tx", + "hex": "0101000000083dcc" + }, + { + "time": 1795513111.1448703, + "direction": "rx", + "hex": "010101005188" + }, + { + "time": 1795513111.1652803, + "direction": "tx", + "hex": "01020000000479c9" + }, + { + "time": 1795513111.1941218, + "direction": "rx", + "hex": "01020100a188" + }, + { + "time": 1795513111.2146592, + "direction": "tx", + "hex": "010300000008440c" + }, + { + "time": 1795513111.2407463, + "direction": "rx", + "hex": "0103100001000a01f400000064000000000000f365" + }, + { + "time": 1795513111.2610862, + "direction": "tx", + "hex": "010400000008f1cc" + }, + { + "time": 1795513111.2873182, + "direction": "rx", + "hex": "010410000100f0000000040003000000000000d51d" + }, + { + "time": 1795513111.4782035, + "direction": "tx", + "hex": "01050000ff008c3a" + }, + { + "time": 1795513111.4974344, + "direction": "rx", + "hex": "01050000ff008c3a" + }, + { + "time": 1795513111.5178921, + "direction": "tx", + "hex": "0101000000083dcc" + }, + { + "time": 1795513111.542241, + "direction": "rx", + "hex": "010101019048" + }, + { + "time": 1795513111.5625398, + "direction": "tx", + "hex": "01020000000479c9" + }, + { + "time": 1795513111.5890257, + "direction": "rx", + "hex": "01020100a188" + }, + { + "time": 1795513111.6095963, + "direction": "tx", + "hex": "010300000008440c" + }, + { + "time": 1795513111.634859, + "direction": "rx", + "hex": "0103100001000a01f400010064000100000000c335" + }, + { + "time": 1795513111.6553, + "direction": "tx", + "hex": "010400000008f1cc" + }, + { + "time": 1795513111.68038, + "direction": "rx", + "hex": "0104100001029e0000000900080000000000016261" + }, + { + "time": 1795513111.9601278, + "direction": "tx", + "hex": "010500000000cdca" + }, + { + "time": 1795513111.982186, + "direction": "rx", + "hex": "010500000000cdca" + }, + { + "time": 1795513112.0024915, + "direction": "tx", + "hex": "0101000000083dcc" + }, + { + "time": 1795513112.0280366, + "direction": "rx", + "hex": "010101005188" + }, + { + "time": 1795513112.0482402, + "direction": "tx", + "hex": "01020000000479c9" + }, + { + "time": 1795513112.0744987, + "direction": "rx", + "hex": "01020100a188" + }, + { + "time": 1795513112.094858, + "direction": "tx", + "hex": "010300000008440c" + }, + { + "time": 1795513112.120563, + "direction": "rx", + "hex": "0103100001000a01f4000000640002000000008aa5" + }, + { + "time": 1795513112.1409957, + "direction": "tx", + "hex": "010400000008f1cc" + }, + { + "time": 1795513112.1662798, + "direction": "rx", + "hex": "010410000104b00000000e000d000000000000bf79" + }, + { + "time": 1795513112.462264, + "direction": "tx", + "hex": "0101000000083dcc" + }, + { + "time": 1795513112.4863937, + "direction": "rx", + "hex": "010101005188" + }, + { + "time": 1795513112.5066895, + "direction": "tx", + "hex": "01020000000479c9" + }, + { + "time": 1795513112.5329196, + "direction": "rx", + "hex": "01020105618b" + }, + { + "time": 1795513112.5535262, + "direction": "tx", + "hex": "010300000008440c" + }, + { + "time": 1795513112.5797918, + "direction": "rx", + "hex": "0103100001000a01f4000000640002000000008aa5" + }, + { + "time": 1795513112.6000867, + "direction": "tx", + "hex": "010400000008f1cc" + }, + { + "time": 1795513112.6249676, + "direction": "rx", + "hex": "010410000106a4000000120011000000050000d9af" + } + ] +} diff --git a/docs/evidence/stage8_2_rtu_reliability/log-manifest.json b/docs/evidence/stage8_2_rtu_reliability/log-manifest.json new file mode 100644 index 0000000..83debca --- /dev/null +++ b/docs/evidence/stage8_2_rtu_reliability/log-manifest.json @@ -0,0 +1,682 @@ +{ + "build/rtu-r1/baseline-1/command.log": { + "bytes": 2062, + "sha256": "4158a37e8ceb5a218a4cdeea43a739bafa2325a91e3945e600ea3511e2c864d7" + }, + "build/rtu-r1/baseline-1/exit.json": { + "bytes": 41, + "sha256": "8eae8665f959c2cda3735177d25e53a72408bc79446e753adfa6b9c501d007ba" + }, + "build/rtu-r1/baseline-1/report/acceptance.json": { + "bytes": 924, + "sha256": "295dd82f6d1b340d01fcfef129c67d757b65e5ce571b6d44a9a27dfa4b458c7b" + }, + "build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/runs/master-31618030661876/wire.json": { + "bytes": 108200, + "sha256": "9594a4421f2635123ae6980684b40b721d73f286c6849201d2868c773a9609fd" + }, + "build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/runs/master-31618030661876/slave.log": { + "bytes": 213070, + "sha256": "0e28bf5927215636c65d561d74584ebc467043ce88ec38243c32c8178c736b10" + }, + "build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/runs/master-31618030661876/exit.json": { + "bytes": 25, + "sha256": "68a9a976ec7361e8b2bc4a29bb5e57819e9c846a87959217ea74df3cdb39d4c8" + }, + "build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/runs/build-31592015772393.log": { + "bytes": 13858, + "sha256": "1348f82f5ca0dd02d7e49ed825eda9444d194bcb2161cf5f7e0665a8e445556c" + }, + "build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/runs/master-31617922341552.log": { + "bytes": 2061, + "sha256": "826bff7672172ef17cdbd17fd7bd120e35f0da2999bb897fedee4e2a422dd4da" + }, + "build/rtu-r1/baseline-2/command.log": { + "bytes": 2143, + "sha256": "e714fccc984e57f5801ee3ba355252eceff8131d9755c789cbcd5345e729d6eb" + }, + "build/rtu-r1/baseline-2/exit.json": { + "bytes": 42, + "sha256": "0653c44adcdad592e569fc31bec0487b179d29ef725805ec2be72f9e8783db96" + }, + "build/rtu-r1/baseline-2/report/acceptance.json": { + "bytes": 923, + "sha256": "29ffe31bb128344503bf13d664e18bd04365bca9ce88fa6fc5182868d67ab5cf" + }, + "build/rtu-r1/baseline-2/work/modbus_stage8_2_ws/runs/master-31654710193960/wire.json": { + "bytes": 79511, + "sha256": "defd18ff3f2292a9fd469b83aeadf355028b9fb24bbdb85e1327d0787a6ecafc" + }, + "build/rtu-r1/baseline-2/work/modbus_stage8_2_ws/runs/master-31654710193960/slave.log": { + "bytes": 156361, + "sha256": "7df3c91a5e005b923a84e7f0063a10fea7ab97afe08e61b5beeba7105969d7e6" + }, + "build/rtu-r1/baseline-2/work/modbus_stage8_2_ws/runs/master-31654710193960/exit.json": { + "bytes": 25, + "sha256": "7a860c7e9914d122391219d975f5173c0cef144b51e3c63f83fd9a9ed5dc2b73" + }, + "build/rtu-r1/baseline-2/work/modbus_stage8_2_ws/runs/build-31634843227576.log": { + "bytes": 13858, + "sha256": "11337f2c22341fe93826675b044943a7b56c2a431d55a3aa30b7fbb0f0ea1ad0" + }, + "build/rtu-r1/baseline-2/work/modbus_stage8_2_ws/runs/master-31654629608614.log": { + "bytes": 2142, + "sha256": "c11f76df6c7221bd8972c49c04cbb8c98edc9f753f599c9339f7f6e5cc943729" + }, + "build/rtu-r1/baseline-3/command.log": { + "bytes": 2237, + "sha256": "34c24d5171da641847e592b5716b035e9f1d8acfbe144a5c234afd53dbd65504" + }, + "build/rtu-r1/baseline-3/exit.json": { + "bytes": 42, + "sha256": "b3404c4a65c8465d17c3cf3eaa24f9b8b3b774b3ec1f858810cbcd4ea405bda8" + }, + "build/rtu-r1/baseline-3/report/acceptance.json": { + "bytes": 925, + "sha256": "af9e274bbcfb4489d5300478a463de88a15c985b6d0d82be9f5e0ac5ec24b81d" + }, + "build/rtu-r1/baseline-3/work/modbus_stage8_2_ws/runs/master-31686613758501/wire.json": { + "bytes": 81611, + "sha256": "86a61a659921a93c454aefe63d9dca5dc90069055de0ab4f0ebe56dea675641c" + }, + "build/rtu-r1/baseline-3/work/modbus_stage8_2_ws/runs/master-31686613758501/slave.log": { + "bytes": 160789, + "sha256": "be71673da5f585de2c795d806d519feba8359551cdf2430e9f3b6b53a6ae74f7" + }, + "build/rtu-r1/baseline-3/work/modbus_stage8_2_ws/runs/master-31686613758501/exit.json": { + "bytes": 25, + "sha256": "fd5cfc519dc87baac1f9b7ff03169dcb18e1f676205e725d4d553c2948e9ea0a" + }, + "build/rtu-r1/baseline-3/work/modbus_stage8_2_ws/runs/build-31667099319620.log": { + "bytes": 13858, + "sha256": "365a381e0b53db56b626ee2e3dde45d944af69df2849316e856786800630a72c" + }, + "build/rtu-r1/baseline-3/work/modbus_stage8_2_ws/runs/master-31686535563190.log": { + "bytes": 2236, + "sha256": "4b5cb1fddaf88c3a612a4c06cf3de5b79a509949b62bffabffe40302034bdf19" + }, + "build/rtu-r1/trace-original/result.json": { + "bytes": 10840, + "sha256": "d932a6e4818b0f13dcbbf74f996af7b13ff3540ac39c34859b416e1820b200f1" + }, + "build/rtu-r1/trace-original/wire.jsonl": { + "bytes": 530163, + "sha256": "b815b3ac5e91c443ed6cc76764627c7d6c550c45a40b741a61786c1b4d46323c" + }, + "build/rtu-r1/trace-original/slave.log": { + "bytes": 375729, + "sha256": "a20c22e201b093b010baded554ce0e2eebe42bb23a43d43599e80e3281012f03" + }, + "build/rtu-r1/trace-original/slave-pty.jsonl": { + "bytes": 210562, + "sha256": "b3b5d7a74e8375de9d050f040bacee390591f876f4466919d98be356ba150d38" + }, + "build/rtu-r1/trace-timeout/result.json": { + "bytes": 10514, + "sha256": "d6d000d637a114bd1a5e66ceadbd70c8f1dfebd6a379e52ef8a6a2f1d43ae19e" + }, + "build/rtu-r1/trace-timeout/wire.jsonl": { + "bytes": 522870, + "sha256": "412b4392b6e72da5834b0b07f50575fdb0a2dc957485074e196e928463fea1e6" + }, + "build/rtu-r1/trace-timeout/slave.log": { + "bytes": 370722, + "sha256": "7ce3189b3f678270add2f0dc47dfaff9f6bfbc708f3455e82becbb30f36dcecc" + }, + "build/rtu-r1/trace-timeout/slave-pty.jsonl": { + "bytes": 207678, + "sha256": "3672998136318c7f988745bf1a7aaec889d9ff1ad9bf5d70b1d5ae57f0ad98f0" + }, + "build/rtu-r1/trace-gap/result.json": { + "bytes": 10895, + "sha256": "753ea0095c8b5b0a9f0e18740b120feb62d50df8e5682740da8a87760f2f245a" + }, + "build/rtu-r1/trace-gap/wire.jsonl": { + "bytes": 532779, + "sha256": "7ab809bfc93121e7300cd23a387ee3da755c4f4e0e22c7d5db49e2b4a956b22a" + }, + "build/rtu-r1/trace-gap/slave.log": { + "bytes": 379672, + "sha256": "09f49515d061225b6bc72c2abbbbb81f5ff59d67d2fa2f5f9a8cfc4f2b73f657" + }, + "build/rtu-r1/trace-gap/slave-pty.jsonl": { + "bytes": 210562, + "sha256": "62574d91072c034c14d1abfc8100707fc3fd705ba2ac4d18fe2351ec6bfe0d33" + }, + "build/rtu-r1/trace-raw/result.json": { + "bytes": 10900, + "sha256": "a698f10b36831d61088e42b9b9263d8cfbfa2b21cf4b7d5083b5024652079aa0" + }, + "build/rtu-r1/trace-raw/wire.jsonl": { + "bytes": 181114, + "sha256": "7a729692e293fbf15feda3c0a05bfc73fdab6e74d0ac003e83ed8ed477cf73d6" + }, + "build/rtu-r1/trace-raw/slave.log": { + "bytes": 118063, + "sha256": "9da92a6bdf044671becd0cda0be93a077466fb2a1493d6659deb0d7df036bafc" + }, + "build/rtu-r1/trace-raw/slave-pty.jsonl": { + "bytes": 65876, + "sha256": "68523412676c20e6bb8dd1db47ea655fa9ab232923c69fc78f533351cb8f0b71" + }, + "build/rtu-r1/fifo-1/result.json": { + "bytes": 10960, + "sha256": "bfbfc7e523786da35a21251c6bf9c64e0f927592e65b33d6d0c3ab8a4fe29f24" + }, + "build/rtu-r1/fifo-1/wire.jsonl": { + "bytes": 101202, + "sha256": "d3cd8b4f94a842b98b9b63f4a758c2d7d1a521e55e11c32102a453dff014f00e" + }, + "build/rtu-r1/fifo-1/slave.log": { + "bytes": 66357, + "sha256": "65c8e62d53929da4f82ba23326d3348a80b41e98f1017da05a60ff046c9098bd" + }, + "build/rtu-r1/fifo-1/slave-pty.jsonl": { + "bytes": 44592, + "sha256": "98190da2cc5a4d4da5fbb9c47466c64d9e1aa1c5e56078d43e10e68270bbd053" + }, + "build/rtu-r1/ready-trace-1/result.json": { + "bytes": 11958, + "sha256": "43e4cb60bce759630a4fa3c39f8b935d939cc19b655ce7a2ee4d5122fb6810e4" + }, + "build/rtu-r1/ready-trace-1/wire.jsonl": { + "bytes": 434624, + "sha256": "6d6edf25454bac38aa8f862d1b99b0d160914ad23da6296c8cc3ecf02f4b1275" + }, + "build/rtu-r1/ready-trace-1/slave.log": { + "bytes": 283458, + "sha256": "c99c1e61b5eecc04f3745b83d8d0a48b646ee492ba78dcd64c3bbe2c39ba7aba" + }, + "build/rtu-r1/ready-trace-1/slave-pty.jsonl": { + "bytes": 304622, + "sha256": "cda56150dba86aad9d52bc007fe93fc3f5786c6746c8908f41e522820caa1a01" + }, + "build/rtu-r1/stable/fault/exit.json": { + "bytes": 177, + "sha256": "bb83900f0bb6a5cdb763936ad17564de1eb0abd1c943ba0ba3d949854d6d85d5" + }, + "build/rtu-r1/stable/fault/command.log": { + "bytes": 193, + "sha256": "2e3f2b96443c1cf66e09dab16e6b37f10907b7be5d69e2c7fef34b900a984b59" + }, + "build/rtu-r1/stable/fault/slave-pty.jsonl": { + "bytes": 17738, + "sha256": "6ba09e5a0773e953dbb28170738b153d4c559dcdd80b6c4e57c371bc8d593f8a" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32543591968827/wire.json": { + "bytes": 8146, + "sha256": "e1aeb549db7406d31851b50ed15330b032293938eb2eed01173273f9fb070b92" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32543591968827/slave.log": { + "bytes": 18794, + "sha256": "617f6ef0fa96d5418d79f1edff404ff6fc7b2845fa8c32e55dfe2db772e72a3f" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32543591968827/exit.json": { + "bytes": 25, + "sha256": "2143c3ff3a846e713b4b356ca4c23ba57295dfd1d9fd1d6c7d752a41a2bea308" + }, + "build/rtu-r1/stable/fault/fault/acceptance.json": { + "bytes": 1714, + "sha256": "43fdd8873406376322c65e05c672018b2390733ee0ef76e9271c3634ae66691b" + }, + "build/rtu-r1/stable/protocol-1/exit.json": { + "bytes": 175, + "sha256": "8095ac4eb0f11cb8ca469dade91c4298b5eef685c4f9a5fb85a8492657d34697" + }, + "build/rtu-r1/stable/protocol-1/command.log": { + "bytes": 1395, + "sha256": "71973a388c4b0853ec831a9fc93cce4efb9a692540a738b4eef103ac92659541" + }, + "build/rtu-r1/stable/protocol-1/slave-pty.jsonl": { + "bytes": 414305, + "sha256": "c482ed47954da1346f0d182de413dc6d05f8032ad736ae21a8a9e0042299b730" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32340358818845/wire.json": { + "bytes": 194722, + "sha256": "54789b39a30b581a89911a1987c0473d56bb98590bee8dc84844966c99648d1b" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32340358818845/slave.log": { + "bytes": 384420, + "sha256": "c43a54dda91bb00e094a4b6c0a88294143ba80468992734da479b9608a4f74ac" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32340358818845/exit.json": { + "bytes": 25, + "sha256": "c6bcd915f2de4ca3e38bd2017574cfc6dc8bc0d5d696d6c03669f4062972b353" + }, + "build/rtu-r1/stable/protocol-2/exit.json": { + "bytes": 175, + "sha256": "d1b41d8caec4523211c928a51afa63ed605af14364727df28e73b7c7b9245444" + }, + "build/rtu-r1/stable/protocol-2/command.log": { + "bytes": 201, + "sha256": "2b0f289edffe4513a93482adcaa02a59bb2c5ecbd4fafa846e273cc254d55093" + }, + "build/rtu-r1/stable/protocol-2/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "33a6ad40154e88a826db6c0e9a052d3528289e19f9fb83e4f33662c514539995" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32380947318782/wire.json": { + "bytes": 196357, + "sha256": "5c47d070b141eaaef0581e8a2c5bdba97692779135c79d6bbd3fa32d37a73971" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32380947318782/slave.log": { + "bytes": 389286, + "sha256": "978418cc5d46c77eef2f11369af263966dc274ce09eaa1ba3b6b4b25f416ad07" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32380947318782/exit.json": { + "bytes": 25, + "sha256": "4879e947d53279d2efae25d76bf1f22a5dbab8c7639f7a0ce3db1d0e5ceb98d0" + }, + "build/rtu-r1/stable/protocol-2/protocol/acceptance.json": { + "bytes": 1722, + "sha256": "005be181dc22cae0192f87741794c22605ef1c0bb2d526baeb9f31bee5b178e6" + }, + "build/rtu-r1/stable/protocol-3/exit.json": { + "bytes": 177, + "sha256": "516a4203654a550c136db5bd07d8ddddd262d72d3f526ccefe7da3dde92985e8" + }, + "build/rtu-r1/stable/protocol-3/command.log": { + "bytes": 201, + "sha256": "10b5a852ee3acd4fc009c93841e91aab4a79655483280aa5f8c604c707604976" + }, + "build/rtu-r1/stable/protocol-3/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "743387f6f4140b7b1abf4a938bd641593b63d1936b3e8377ff382acbde14e086" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32421910609836/wire.json": { + "bytes": 196358, + "sha256": "ee448237f9adb6cd8e1c459db64832f09d923fc017834dcba2ef2c95f68c2372" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32421910609836/slave.log": { + "bytes": 389287, + "sha256": "c955aa512965c2444a37c50be077d1151207dff6aca51613398746ae36b3e3e1" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32421910609836/exit.json": { + "bytes": 25, + "sha256": "3169c8e2be8c8b3e0847c0a9d3feb86fd4ec04bf14d1d4267f81f35b3a5f51cd" + }, + "build/rtu-r1/stable/protocol-3/protocol/acceptance.json": { + "bytes": 1720, + "sha256": "9b379ff5f517c1604c8e843996e4657cbf79b6ced8aac4809a674a2d89ada286" + }, + "build/rtu-r1/stable/protocol-4/exit.json": { + "bytes": 177, + "sha256": "1aea85ddee0d16348e76efd53df21759580145141e607fa4e85b790bc6d0df1a" + }, + "build/rtu-r1/stable/protocol-4/command.log": { + "bytes": 201, + "sha256": "ecc0852d14b7c1e2775eb87623f3f740421d2734691baa1426228aff3bb3491b" + }, + "build/rtu-r1/stable/protocol-4/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "7fa5c68ac4428ae84222f4b2333c89c6310a58a42821980a621af47eb827cfa6" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32462658105805/wire.json": { + "bytes": 196349, + "sha256": "7445093ba77e8d02075297419fb8dcd5a0b2823607928a42e270a270bf7e29ac" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32462658105805/slave.log": { + "bytes": 389284, + "sha256": "e359eadbaf7095926329e39e0818a78767ca3444d9a60ad5762d1e4f3efa321a" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32462658105805/exit.json": { + "bytes": 25, + "sha256": "9283decf2fb655c9e7b38ec71507c214fedacb64125cda5a7ee5d734193449dd" + }, + "build/rtu-r1/stable/protocol-4/protocol/acceptance.json": { + "bytes": 1721, + "sha256": "e6fb6e21e3daa3a41455677073434b95e22b52f6214d8173b82344a92e64fc14" + }, + "build/rtu-r1/stable/protocol-5/exit.json": { + "bytes": 176, + "sha256": "5f5603bd4061af5780c7a59c298d37aa68358c7bf5aa68ef3e7c30fbe8f141ad" + }, + "build/rtu-r1/stable/protocol-5/command.log": { + "bytes": 201, + "sha256": "095c1bac43ddf0d770c6a3dc99cb69dc2b2956b4163d5ea059ca0c6a39b06d03" + }, + "build/rtu-r1/stable/protocol-5/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "cd892e2b8cccbe43a1e95374f7fa2181672079197d8130df8882e7ea47a3e1a7" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32503080512977/wire.json": { + "bytes": 196343, + "sha256": "ecacbdc91b1568578d3fc06ae030f998edc335ef9cd3a1b9f9afdae86a7ef44a" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32503080512977/slave.log": { + "bytes": 389284, + "sha256": "df1c31edf4fca24ff83aeba1c1c440ee1ecc076ac14c8f747afd2a11bb5680e6" + }, + "build/rtu-r1/fixed/work/modbus_stage8_2_ws/runs/master-32503080512977/exit.json": { + "bytes": 25, + "sha256": "0247e3424f238ee0fa9a828874ed67e220978553ec58cdcaa0ed2999390a4194" + }, + "build/rtu-r1/stable/protocol-5/protocol/acceptance.json": { + "bytes": 1720, + "sha256": "2533591e0fddbe834f0352fcb0c1f8ec2e7106d0be6a509cbf4d4a07279cb263" + }, + "build/rtu-r1/acceptance/result.json": { + "bytes": 8195, + "sha256": "4842d8eff8b29d1d4093d505b7f1381ee65128901ec8531d3eced8ba610d72a9" + }, + "build/rtu-r1/acceptance/build.log": { + "bytes": 131, + "sha256": "e74e1b8c66e55389f31e5838ebdf346f0cd0108d8dffed8a73abbf5c1c9fdacc" + }, + "build/rtu-r1/acceptance/tracer-build.log": { + "bytes": 228, + "sha256": "6388ddf1efd0b47f4682d675a273840a74d782fe63121a3a2f73cd968a6ed825" + }, + "build/rtu-r1/acceptance/build-report/acceptance.json": { + "bytes": 523, + "sha256": "aec09f7e5b1fec754126aae2305f772612de0197dc4e5a12094498efb3af46da" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/build-32593199533720.log": { + "bytes": 13857, + "sha256": "4eaca10f1dac7931fa1419a31deea385f5b94f8810f4731e17b2a3d305e626cf" + }, + "build/rtu-r1/acceptance/protocol-1/command.log": { + "bytes": 269, + "sha256": "603d887fea4acb099fa9efde07d9c7a21a14a348287b08f95be3d3738d0a293f" + }, + "build/rtu-r1/acceptance/protocol-1/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "a1e1ad8a597a2575535f662ea2484beefa95d3159309e5dd94f3ecf5b76f33a5" + }, + "build/rtu-r1/acceptance/protocol-1/result.json": { + "bytes": 950, + "sha256": "14d54e99244304999af15f1be5b5836ee33e67758f43a1e81452e43cec720949" + }, + "build/rtu-r1/acceptance/protocol-1/protocol/acceptance.json": { + "bytes": 1730, + "sha256": "7dacdc1e177f27958f4aa43cbcfbd926a79a6edf7f5c5a07da780158d6cf6ebe" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32612959646973/wire.json": { + "bytes": 196329, + "sha256": "8f36bcd8d5e6c09ca6e5ef1e493b98492be6b5ed6cdae6c1768a3d362dbacc28" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32612959646973/slave.log": { + "bytes": 389286, + "sha256": "48bbd500e832ba9f501d65a8b1c49f7cd58d52afb9d58d639a394675c4e34118" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32612959646973/exit.json": { + "bytes": 25, + "sha256": "a02bffb48900ef598204d990748bed53accc671d79a8e1e1f1f7de3f8c373ed7" + }, + "build/rtu-r1/acceptance/protocol-2/command.log": { + "bytes": 269, + "sha256": "ab140c7d73dde5452094249ceba86544ef62c8a452cba6f06a17552d5c920e1a" + }, + "build/rtu-r1/acceptance/protocol-2/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "838c46e2b63bb20de11db1f407c61e6e249cec734e6a4889d9c05c1601d18496" + }, + "build/rtu-r1/acceptance/protocol-2/result.json": { + "bytes": 949, + "sha256": "5cc227ec2a96d9651497cfaa2f10f6565f71cb97b4aa5d528d2512b5d1c7984a" + }, + "build/rtu-r1/acceptance/protocol-2/protocol/acceptance.json": { + "bytes": 1729, + "sha256": "6297960589b125471866611f4bc76087b66fb0eef816d43de5b2772117f0fe3e" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32653703944030/wire.json": { + "bytes": 196323, + "sha256": "545d6373f95093bde5c0b605d25f8f6b00a61f875cb9666abcf40decc49632c6" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32653703944030/slave.log": { + "bytes": 389284, + "sha256": "d0cb9964ab7413f6b88cff92698a1314c875114788c3b6dbf9d315868729711b" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32653703944030/exit.json": { + "bytes": 25, + "sha256": "730e13feff5d6433f9229db7f2e8a211a45e4f09c6c88d451e325c383625b042" + }, + "build/rtu-r1/acceptance/protocol-3/command.log": { + "bytes": 269, + "sha256": "ecaa153488e937bf360a5771c1a33e6ba948c85119d34a7f41a9979092b90eff" + }, + "build/rtu-r1/acceptance/protocol-3/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "dbebbfb370f17d56f0d2cf5ae670877b66e53ace61530d35dc52e34c13d9a2c4" + }, + "build/rtu-r1/acceptance/protocol-3/result.json": { + "bytes": 949, + "sha256": "e1cc1a27f4b172eb73f541a0f734a2cd4fb3ebdcf298b4d4cdc7f17be72d82d2" + }, + "build/rtu-r1/acceptance/protocol-3/protocol/acceptance.json": { + "bytes": 1729, + "sha256": "3230f7663cdfcb0385177acf7caaf8d70b0b68111f2f40eaa3098570f22a51de" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32694436206476/wire.json": { + "bytes": 196344, + "sha256": "950aaba57325f9d6eed908698d1753521dbb3f05b0484ebec3d736fcbc09e4b1" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32694436206476/slave.log": { + "bytes": 389284, + "sha256": "f7559b0361ee10b0a5b7409fbefe63398aa9f7ff35a2b98890012fa1e8fb13af" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32694436206476/exit.json": { + "bytes": 25, + "sha256": "f2972f21325fb14ca0eedce3738f6f6743686bfcf49c4196fa5926ca3ad0d23e" + }, + "build/rtu-r1/acceptance/protocol-4/command.log": { + "bytes": 269, + "sha256": "52b58a20bad58721d7472cac30d33b47e7516388e538e6f039f8d274f3906c93" + }, + "build/rtu-r1/acceptance/protocol-4/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "dfb210552c168b471606cf994087515b6edf238452118ba888269428e80ab4c5" + }, + "build/rtu-r1/acceptance/protocol-4/result.json": { + "bytes": 950, + "sha256": "6658a024a4551ae17f6a7b1e5143728d4453c5b9114e9763b9cc24ac07473723" + }, + "build/rtu-r1/acceptance/protocol-4/protocol/acceptance.json": { + "bytes": 1731, + "sha256": "6e37fcd15f32dcea8eee385172eb405047a48cd5aa74b01c205f67c7224ce7a7" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32735158543442/wire.json": { + "bytes": 196347, + "sha256": "c2d92f409ad6951971a5fd111d1cfd3333c82c79d012ec9f57a80876d1492cb6" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32735158543442/slave.log": { + "bytes": 389286, + "sha256": "79f12343c23f85f62a634fa48bfdeabfa91bd4ac129942af5ee396cb432008a9" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32735158543442/exit.json": { + "bytes": 25, + "sha256": "d70d7f094f12a31a3458375620b5234ced8d7ffe202c7130b87038e4bed3a742" + }, + "build/rtu-r1/acceptance/protocol-5/command.log": { + "bytes": 269, + "sha256": "23e653be18afac5a77b1d3fb832bbfb04d97651f2b7a451989fbba2fd53ab579" + }, + "build/rtu-r1/acceptance/protocol-5/slave-pty.jsonl": { + "bytes": 417932, + "sha256": "d522b181b381ed1f0387610b105355642bdba623b27dfe590cc9e7d8eb983567" + }, + "build/rtu-r1/acceptance/protocol-5/result.json": { + "bytes": 950, + "sha256": "d9ba5fb58c6d654bf20089a576d4983647368554735dbe310fbeaa0787361230" + }, + "build/rtu-r1/acceptance/protocol-5/protocol/acceptance.json": { + "bytes": 1730, + "sha256": "5dd8f9f71bc14566bb955cc55b1ce46f9e8d6d88a216debb728755ecfde4496e" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32777226678993/wire.json": { + "bytes": 196380, + "sha256": "c1f1d8040191c7f6d954279c91772e3a0fbb9b2d96240fbeea31acc05264ad6c" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32777226678993/slave.log": { + "bytes": 389284, + "sha256": "d67d636b7310ac49c885ddeb5d1de9673f25b7c5f657b34e8eff63b503dd822d" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32777226678993/exit.json": { + "bytes": 25, + "sha256": "8ddd1feb3f88459eb9ea4ef435d3e3b35f072594d2b27118ff7a6ad5a663f6ef" + }, + "build/rtu-r1/acceptance/fault/command.log": { + "bytes": 261, + "sha256": "b36f902c6714b372c048503c334d6ec9ad8c4f7f9f980653bfe2075bf032200f" + }, + "build/rtu-r1/acceptance/fault/slave-pty.jsonl": { + "bytes": 17738, + "sha256": "ab63a331bb6b4e422cce3df9ec44530fb31ba91377a86c98cc9d9c3b13280141" + }, + "build/rtu-r1/acceptance/fault/result.json": { + "bytes": 1922, + "sha256": "7ec61d004317b98123f4f0854fb007f778680bedf7ec4e543b29d43e150b85ab" + }, + "build/rtu-r1/acceptance/fault/fault/acceptance.json": { + "bytes": 1724, + "sha256": "79fdacf00e46e9b400dd2cce1eb593b3d009b92c3393b27c05e36ad52fbf24b4" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32819648573290/wire.json": { + "bytes": 8148, + "sha256": "31e9993761ee9c46fdb77b1d1d0599a8aa316d2a3656dfe86756cf9fc1a2d508" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32819648573290/slave.log": { + "bytes": 18794, + "sha256": "44fdc917371a391a21a12577320e5604f3569835ae95a94ef9b593abf31a3769" + }, + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32819648573290/exit.json": { + "bytes": 25, + "sha256": "220d73048e6c958a0644bc796a9ed3e57dd8736838b4f81b6b01d333264d4ca6" + }, + "build/rtu-r1/gui-recheck/command.log": { + "bytes": 879, + "sha256": "6c81edb1d7063d56d5e211228dc13f8fb3fef4869c073ea85a4cf95a7fc5d28d" + }, + "build/rtu-r1/gui-recheck/exit.json": { + "bytes": 1386, + "sha256": "dfc0d4915bf2646b061915bc7dc6e79f46aabf91ee544e1c683c7208611e95ae" + }, + "build/rtu-r1/gui-recheck/work/gui-h1/runs/rtu-itkefrg3/rtu-wire.jsonl": { + "bytes": 2865, + "sha256": "9feab333d2d55cd81207b9420b36c0c24d344d10d838e909a98d06713de74938" + }, + "build/rtu-r1/gui-recheck/work/gui-h1/runs/rtu-itkefrg3/slave-exit.json": { + "bytes": 25, + "sha256": "62a93977367ed6b8262c6ebc72f4f40b170d0954a4733c4aec13b22390a91d4d" + }, + "build/rtu-r1/gui-recheck/work/gui-h1/runs/rtu-itkefrg3/result.json": { + "bytes": 438, + "sha256": "65ba04c184d9e148ab4190528cb43449bc9f1e68ab4cd18c56dd5d2954c78875" + }, + "build/rtu-r1/gui-recheck/work/gui-h1/runs/rtu-itkefrg3/slave.log": { + "bytes": 8361, + "sha256": "8db26da32a058d14fc73684dc11c96816d53e1fdd7d331ca14253c5e9dd336d1" + }, + "build/rtu-r1/gui-recheck/work/gui-h1/runs/rtu-itkefrg3/build.log": { + "bytes": 14487, + "sha256": "65e36ed83bf5cd3f6c6da7a1e2a3c38e240de20056d34c326f9d006b700e0c15" + }, + "build/rtu-r1/gui-recheck/work/gui-h1/runs/rtu-itkefrg3/console.log": { + "bytes": 1344, + "sha256": "a240680c294e335a2683d313a9872fa64de9454d08139f20cc90ba0b8e2675e1" + }, + "build/rtu-r1/gui/command.log": { + "bytes": 2371, + "sha256": "8322478a505adfe02babc4406f378fe3419568d19553e298f078cf02d7433c85" + }, + "build/rtu-r1/gui/exit.json": { + "bytes": 1386, + "sha256": "9e6907b7d864c58e1b38e89725ef960bcbc3b51381b64d6d8f1135ff41eddcb5" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/concurrency-f1smk8xd/process_exits.json": { + "bytes": 248, + "sha256": "5297cdcc6c52505b7721ef4a702bbbbad01150430a46b718c3508d981ad5688f" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/concurrency-f1smk8xd/gateway1.log": { + "bytes": 76163, + "sha256": "7cba0b3c24090d0b2d1d1d96de963b83f8a348412a7d18bf0b1f319ed10c565a" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/concurrency-f1smk8xd/slave0.log": { + "bytes": 130164, + "sha256": "25ba87d57a1d9f3a8ecf729d1b284ca84e8aea4a389221e252ce122a31ec7cc4" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/fault-nzslw3va/process_exits.json": { + "bytes": 166, + "sha256": "433af0a800639d4588b998e0a512472ca99f5f3f489ec78c7d1910ad063bcb23" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/fault-nzslw3va/gateway3.log": { + "bytes": 449, + "sha256": "e7a54865f217476bf088cc7d4fd76fdeb6566b2a27dd06d7528dbf0240a9b724" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/fault-nzslw3va/slave2.log": { + "bytes": 1386, + "sha256": "31693783262593b710a913dfee8fbf6d1580db5bd63cd4616021406158861bc4" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/status-crosscheck-hch3i9ar/process_exits.json": { + "bytes": 84, + "sha256": "8327d50ec917e8aa8ba90db3a0695548aed8418cc0e4034fa0b61c12dd12f313" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/status-crosscheck-hch3i9ar/gateway1.log": { + "bytes": 1367, + "sha256": "d7c556cd12f4ee07900174a60dc475dd30b51b6ef18a8b39f96dcea2c2ed4f4a" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/status-crosscheck-hch3i9ar/slave0.log": { + "bytes": 4387, + "sha256": "6c6198777fb5c537b5b5bfd4007fa539567db1275fab098a32cae731ace16f38" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/protocol-wbw997yc/process_exits.json": { + "bytes": 84, + "sha256": "1701f4a6e9be43cefd4ab95d501a8e917201b32ddee853f81f092a5da62af26f" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/protocol-wbw997yc/gateway1.log": { + "bytes": 231431, + "sha256": "fc57d393de50fdfe1df2c2f8142b214430221e42b1c545632f3ce73f4e8fde86" + }, + "build/rtu-r1/gateway/work/gateway_stage8_3_ws/runs/protocol-wbw997yc/slave0.log": { + "bytes": 391960, + "sha256": "3dbb135f2bcfa521bd4ba485161cb4683e76291475770ba163e7cf01194ebcca" + }, + "build/rtu-r1/gateway/exit.json": { + "bytes": 146, + "sha256": "f526fead86fc3fa7afe27b002d168750c5119507f69d0ba7a20e379d3123c7bc" + }, + "build/rtu-r1/gateway/command.log": { + "bytes": 1186, + "sha256": "e1c7f1b30951d7f4cb0757f9ef3136800f6c6718c4cc2552bc749af7fd4a5b40" + }, + "build/rtu-r1/gateway/report/stage8_3_build.log": { + "bytes": 17504, + "sha256": "26241dbab864a168291a912fb05d00736fa163c99f642eb2fa7df20ba8728b06" + }, + "build/rtu-r1/gateway/report/stage8_2_build.log": { + "bytes": 13934, + "sha256": "df0617131e185643317406746d4a4ff4a32645b37efc052efa57f39e6cf98242" + }, + "build/rtu-r1/gateway/report/stage8_3_consistency.log": { + "bytes": 133, + "sha256": "bf3966ec67149d90b874d15660e091ac237646adee41e30030564aa8e6f77bc9" + }, + "build/rtu-r1/gateway/report/stage8_3_test.log": { + "bytes": 132, + "sha256": "d3d97ddb94e5a01a68ca0bba49f2dac9420133c2d085c404b4675a989e79244c" + }, + "build/rtu-r1/gateway/report/acceptance.json": { + "bytes": 944, + "sha256": "f477e2e98ec3c0b120d601060658e7d65380ba8ed9e0dbe2d3d415dc7fbe7ab8" + }, + "build/rtu-r1/gateway/report/tests_all.json": { + "bytes": 2426, + "sha256": "ace2f867e1c3580bbdf20e39f4630425170e034066926755ce242d268fa1d60e" + }, + "build/rtu-r1/gateway/report/fault/acceptance.json": { + "bytes": 2584, + "sha256": "8ff7f68143e74ca0cae1dfeb5d1dedc890b0fd571a491563b6f6c9fa4d7ab855" + }, + "build/rtu-r1/gateway/report/tcp/protocol.json": { + "bytes": 397212, + "sha256": "6ef977f2ad994cdc59c9cf4f536244449a9db1cdc7ffbd4f4648f196ddade7ac" + }, + "build/rtu-r1/gateway/report/rtu/consistency.json": { + "bytes": 1610, + "sha256": "ececf8a54196a8355840aaa397fb0a6ba36310b0a989837bdc7dfb341ff9634b" + }, + "build/rtu-r1/gateway/report/concurrency/acceptance.json": { + "bytes": 146844, + "sha256": "601989eede10023833aba9f364c5015ed768f3980dbd5b3f3aa510ba27d4b1da" + } +} diff --git a/docs/evidence/stage8_2_rtu_reliability/pre-transmit-failure-window.json b/docs/evidence/stage8_2_rtu_reliability/pre-transmit-failure-window.json new file mode 100644 index 0000000..3d34ac0 --- /dev/null +++ b/docs/evidence/stage8_2_rtu_reliability/pre-transmit-failure-window.json @@ -0,0 +1,641 @@ +{ + "run": { + "exit": 1, + "seconds": 40.6973585559972, + "run": "protocol-1", + "completed": 1018, + "error": "TimeoutError: native_sim RTU receive-ready acknowledgement timed out", + "next_rtu_request_sent": false + }, + "host": [ + { + "sequence": 1008, + "stress_sequence": 989, + "fc": 6, + "address": 3, + "value_or_count": 247, + "pdu": "06000300f7", + "request": "0106000300f7384c", + "tx_crc_ok": true, + "tx_ns": 32379919154342, + "rx_ns": 32379941440188, + "gap_ns": 7961291, + "response": "0106000300f7384c", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 22285846 + }, + { + "sequence": 1009, + "stress_sequence": 990, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 32379959101028, + "rx_ns": 32379991123153, + "gap_ns": 17660840, + "response": "01040200f7f8b6", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 32022125 + }, + { + "sequence": 1010, + "stress_sequence": 991, + "fc": 5, + "address": 7, + "value_or_count": 65280, + "pdu": "050007ff00", + "request": "01050007ff003dfb", + "tx_crc_ok": true, + "tx_ns": 32379999210601, + "rx_ns": 32380020351350, + "gap_ns": 8087448, + "response": "01050007ff003dfb", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 21140749 + }, + { + "sequence": 1011, + "stress_sequence": 992, + "fc": 1, + "address": 7, + "value_or_count": 1, + "pdu": "0100070001", + "request": "0101000700014c0b", + "tx_crc_ok": true, + "tx_ns": 32380039019852, + "rx_ns": 32380070488042, + "gap_ns": 18668502, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 31468190 + }, + { + "sequence": 1012, + "stress_sequence": 993, + "fc": 6, + "address": 3, + "value_or_count": 248, + "pdu": "06000300f8", + "request": "0106000300f87848", + "tx_crc_ok": true, + "tx_ns": 32380079001871, + "rx_ns": 32380100584070, + "gap_ns": 8513829, + "response": "0106000300f87848", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 21582199 + }, + { + "sequence": 1013, + "stress_sequence": 994, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 32380118859927, + "rx_ns": 32380151191557, + "gap_ns": 18275857, + "response": "01040200f8b8b2", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 32331630 + }, + { + "sequence": 1014, + "stress_sequence": 995, + "fc": 5, + "address": 0, + "value_or_count": 65280, + "pdu": "050000ff00", + "request": "01050000ff008c3a", + "tx_crc_ok": true, + "tx_ns": 32380158768088, + "rx_ns": 32380180340207, + "gap_ns": 7576531, + "response": "01050000ff008c3a", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 21572119 + }, + { + "sequence": 1015, + "stress_sequence": 996, + "fc": 1, + "address": 0, + "value_or_count": 1, + "pdu": "0100000001", + "request": "010100000001fdca", + "tx_crc_ok": true, + "tx_ns": 32380198812187, + "rx_ns": 32380230272492, + "gap_ns": 18471980, + "response": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "response_elapsed_ns": 31460305 + }, + { + "sequence": 1016, + "stress_sequence": 997, + "fc": 6, + "address": 3, + "value_or_count": 249, + "pdu": "06000300f9", + "request": "0106000300f9b988", + "tx_crc_ok": true, + "tx_ns": 32380238430605, + "rx_ns": 32380260540490, + "gap_ns": 8158113, + "response": "0106000300f9b988", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 22109885 + }, + { + "sequence": 1017, + "stress_sequence": 998, + "fc": 4, + "address": 7, + "value_or_count": 1, + "pdu": "0400070001", + "request": "010400070001800b", + "tx_crc_ok": true, + "tx_ns": 32380278524708, + "rx_ns": 32380310485949, + "gap_ns": 17984218, + "response": "01040200f97972", + "rx_bytes": 7, + "rx_crc_ok": true, + "response_elapsed_ns": 31961241 + }, + { + "sequence": 1018, + "stress_sequence": 999, + "fc": 5, + "address": 1, + "value_or_count": 65280, + "pdu": "050001ff00", + "request": "01050001ff00ddfa", + "tx_crc_ok": true, + "tx_ns": 32380318201114, + "rx_ns": 32380339282277, + "gap_ns": 7715165, + "response": "01050001ff00ddfa", + "rx_bytes": 8, + "rx_crc_ok": true, + "response_elapsed_ns": 21081163 + } + ], + "slave": [ + { + "ns": 32379918660990, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32379918805013, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32379928562850, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32379928615249, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "06000300f7384c" + }, + { + "ns": 32379939018844, + "pty": 5, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "0106000300f7384c" + }, + { + "ns": 32379958655285, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32379958763078, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32379978612010, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32379978671696, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32379988851421, + "pty": 5, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "01040200f7f8b6" + }, + { + "ns": 32379998631515, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32379998873849, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380008391647, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380008439256, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050007ff003dfb" + }, + { + "ns": 32380018709607, + "pty": 5, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050007ff003dfb" + }, + { + "ns": 32380038541272, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380038734601, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380058330520, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380058401882, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "01000700014c0b" + }, + { + "ns": 32380068701377, + "pty": 5, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32380078502631, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380078672704, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380088206471, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380088256175, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "06000300f87848" + }, + { + "ns": 32380098588408, + "pty": 5, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "0106000300f87848" + }, + { + "ns": 32380118431152, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380118573378, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380138178080, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380138226986, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32380148647349, + "pty": 5, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "01040200f8b8b2" + }, + { + "ns": 32380158281124, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380158441017, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380168127291, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380168184381, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050000ff008c3a" + }, + { + "ns": 32380178508429, + "pty": 5, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050000ff008c3a" + }, + { + "ns": 32380198251166, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380198391496, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380218082532, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380218139023, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0100000001fdca" + }, + { + "ns": 32380228417858, + "pty": 5, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32380237993944, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380238142758, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380247934929, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380247992618, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "06000300f9b988" + }, + { + "ns": 32380258322355, + "pty": 5, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "0106000300f9b988" + }, + { + "ns": 32380278144339, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380278242351, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380297768604, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380297904343, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32380308133473, + "pty": 5, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "01040200f97972" + }, + { + "ns": 32380317788208, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380317928438, + "pty": 4, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32380327672701, + "pty": 5, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32380327716916, + "pty": 5, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050001ff00ddfa" + }, + { + "ns": 32380337907520, + "pty": 5, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050001ff00ddfa" + } + ] +} diff --git a/docs/evidence/stage8_2_rtu_reliability/ready-trace-1-window.json b/docs/evidence/stage8_2_rtu_reliability/ready-trace-1-window.json new file mode 100644 index 0000000..f88cc46 --- /dev/null +++ b/docs/evidence/stage8_2_rtu_reliability/ready-trace-1-window.json @@ -0,0 +1,927 @@ +{ + "full_trace": "build/rtu-r1/ready-trace-1", + "summary": { + "status": "FAIL", + "successful": 748, + "attempted": 749, + "timeout_seconds": 0.15, + "gap_requested_ms": 0, + "transport": "pymodbus", + "retries": 0, + "argv": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/fixed/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/ready-trace-1", + "--ready" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/fixed/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "4f6882e73152200bb6328cc934eeb05f6953d658a2a2d03edbf265a051bb9fec", + "gap_ms": { + "min": 0.056006, + "median": 0.2130125, + "max": 0.923597 + }, + "failure_sequence": 749, + "classification": "empty", + "late": "0106000300bb39b9", + "actual_ns": 26850695 + }, + "slave_exit": 0, + "transaction_window": [ + { + "sequence": 739, + "started_ns": 32282009356794, + "finished_ns": 32282059096072, + "gap_ns": 137388, + "fc": 5, + "address": 0, + "value": 65280, + "expected_hex": "01050000ff008c3a", + "tx": "01050000ff008c3a", + "tx_crc_ok": true, + "rx": "01050000ff008c3a", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282027213584, + "ns": 32282027282530, + "bytes": 8, + "hex": "01050000ff008c3a" + }, + { + "op": "rx", + "started_ns": 32282058972939, + "ns": 32282059029451, + "bytes": 8, + "hex": "01050000ff008c3a" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 2051 + }, + { + "sequence": 740, + "started_ns": 32282059198077, + "finished_ns": 32282089259443, + "gap_ns": 102005, + "fc": 1, + "address": 0, + "value": 1, + "expected_hex": "010101019048", + "tx": "010100000001fdca", + "tx_crc_ok": true, + "rx": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282067385447, + "ns": 32282067421032, + "bytes": 8, + "hex": "010100000001fdca" + }, + { + "op": "rx", + "started_ns": 32282089120235, + "ns": 32282089169064, + "bytes": 6, + "hex": "010101019048" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 2307 + }, + { + "sequence": 741, + "started_ns": 32282089404918, + "finished_ns": 32282140270090, + "gap_ns": 145475, + "fc": 6, + "address": 3, + "value": 185, + "expected_hex": "0106000300b9b878", + "tx": "0106000300b9b878", + "tx_crc_ok": true, + "rx": "0106000300b9b878", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282108095033, + "ns": 32282108171966, + "bytes": 8, + "hex": "0106000300b9b878" + }, + { + "op": "rx", + "started_ns": 32282140163739, + "ns": 32282140202963, + "bytes": 8, + "hex": "0106000300b9b878" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 33574 + }, + { + "sequence": 742, + "started_ns": 32282140366434, + "finished_ns": 32282170442964, + "gap_ns": 96344, + "fc": 4, + "address": 7, + "value": 1, + "expected_hex": "01040200b97882", + "tx": "010400070001800b", + "tx_crc_ok": true, + "rx": "01040200b97882", + "rx_bytes": 7, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282148579279, + "ns": 32282148622144, + "bytes": 8, + "hex": "010400070001800b" + }, + { + "op": "rx", + "started_ns": 32282170301027, + "ns": 32282170344194, + "bytes": 7, + "hex": "01040200b97882" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 2360 + }, + { + "sequence": 743, + "started_ns": 32282170534050, + "finished_ns": 32282221033866, + "gap_ns": 91086, + "fc": 5, + "address": 1, + "value": 65280, + "expected_hex": "01050001ff00ddfa", + "tx": "01050001ff00ddfa", + "tx_crc_ok": true, + "rx": "01050001ff00ddfa", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282188926744, + "ns": 32282188964351, + "bytes": 8, + "hex": "01050001ff00ddfa" + }, + { + "op": "rx", + "started_ns": 32282220930041, + "ns": 32282220966031, + "bytes": 8, + "hex": "01050001ff00ddfa" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 1682 + }, + { + "sequence": 744, + "started_ns": 32282221142644, + "finished_ns": 32282251829382, + "gap_ns": 108778, + "fc": 1, + "address": 1, + "value": 1, + "expected_hex": "010101019048", + "tx": "010100010001ac0a", + "tx_crc_ok": true, + "rx": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282229343863, + "ns": 32282229390771, + "bytes": 8, + "hex": "010100010001ac0a" + }, + { + "op": "rx", + "started_ns": 32282251725356, + "ns": 32282251761548, + "bytes": 6, + "hex": "010101019048" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 1228 + }, + { + "sequence": 745, + "started_ns": 32282251914201, + "finished_ns": 32282302670595, + "gap_ns": 84819, + "fc": 6, + "address": 3, + "value": 186, + "expected_hex": "0106000300baf879", + "tx": "0106000300baf879", + "tx_crc_ok": true, + "rx": "0106000300baf879", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282269868244, + "ns": 32282269908682, + "bytes": 8, + "hex": "0106000300baf879" + }, + { + "op": "rx", + "started_ns": 32282302486097, + "ns": 32282302594976, + "bytes": 8, + "hex": "0106000300baf879" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 2365 + }, + { + "sequence": 746, + "started_ns": 32282302762692, + "finished_ns": 32282332929804, + "gap_ns": 92097, + "fc": 4, + "address": 7, + "value": 1, + "expected_hex": "01040200ba3883", + "tx": "010400070001800b", + "tx_crc_ok": true, + "rx": "01040200ba3883", + "rx_bytes": 7, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282309917681, + "ns": 32282309951649, + "bytes": 8, + "hex": "010400070001800b" + }, + { + "op": "rx", + "started_ns": 32282332819408, + "ns": 32282332857217, + "bytes": 7, + "hex": "01040200ba3883" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 25347 + }, + { + "sequence": 747, + "started_ns": 32282333044951, + "finished_ns": 32282382949014, + "gap_ns": 115147, + "fc": 5, + "address": 2, + "value": 65280, + "expected_hex": "01050002ff002dfa", + "tx": "01050002ff002dfa", + "tx_crc_ok": true, + "rx": "01050002ff002dfa", + "rx_bytes": 8, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282350810452, + "ns": 32282350853417, + "bytes": 8, + "hex": "01050002ff002dfa" + }, + { + "op": "rx", + "started_ns": 32282382785746, + "ns": 32282382844785, + "bytes": 8, + "hex": "01050002ff002dfa" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 5336 + }, + { + "sequence": 748, + "started_ns": 32282383167682, + "finished_ns": 32282412315150, + "gap_ns": 218668, + "fc": 1, + "address": 2, + "value": 1, + "expected_hex": "010101019048", + "tx": "0101000200015c0a", + "tx_crc_ok": true, + "rx": "010101019048", + "rx_bytes": 6, + "rx_crc_ok": true, + "classification": "ok", + "error": null, + "serial": [ + { + "op": "tx", + "started_ns": 32282390820260, + "ns": 32282390854025, + "bytes": 8, + "hex": "0101000200015c0a" + }, + { + "op": "rx", + "started_ns": 32282412212135, + "ns": 32282412247821, + "bytes": 6, + "hex": "010101019048" + } + ], + "clock_reads": [], + "clock_offset_span_ns": 2384 + }, + { + "sequence": 749, + "started_ns": 32282412402597, + "finished_ns": 32282439253292, + "gap_ns": 87447, + "fc": 6, + "address": 3, + "value": 187, + "expected_hex": "0106000300bb39b9", + "tx": "0106000300bb39b9", + "tx_crc_ok": true, + "rx": "", + "rx_bytes": 0, + "rx_crc_ok": false, + "classification": "empty", + "error": "ModbusIOException: Modbus Error: [Input/Output] No response received after 0 retries, continue with next request", + "serial": [ + { + "op": "tx", + "started_ns": 32282431371633, + "ns": 32282431480411, + "bytes": 8, + "hex": "0106000300bb39b9" + }, + { + "op": "rx", + "started_ns": 32282438902492, + "ns": 32282438914725, + "bytes": 0, + "hex": "" + } + ], + "clock_reads": [ + [ + 32282431501338, + 1795512987355057408 + ], + [ + 32282431511346, + 1795512987355067904 + ], + [ + 32282432874307, + 1795512987356429824 + ], + [ + 32282434191067, + 1795512987357745920 + ], + [ + 32282435469008, + 1795512987359025152 + ], + [ + 32282436602685, + 1795512987360159232 + ], + [ + 32282437696228, + 1795512987361252864 + ], + [ + 32282438867109, + 1795512988206139648 + ], + [ + 32282438921195, + 1795512988206194688 + ] + ], + "clock_offset_span_ns": 843718640 + } + ], + "pty_events": [ + { + "ns": 32282006710939, + "pty": 4, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "01040200b8b942" + }, + { + "ns": 32282026834073, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282026932843, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282046883510, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282046917781, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050000ff008c3a" + }, + { + "ns": 32282057307805, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050000ff008c3a" + }, + { + "ns": 32282067104807, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282067156062, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282077132609, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282077160005, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0100000001fdca" + }, + { + "ns": 32282087555893, + "pty": 4, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32282107664571, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282107717545, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282127734833, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282127777192, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "06000300b9b878" + }, + { + "ns": 32282138020730, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "0106000300b9b878" + }, + { + "ns": 32282148148413, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282148338674, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282158098169, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282158127184, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32282168546728, + "pty": 4, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "01040200b97882" + }, + { + "ns": 32282188622145, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282188673198, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282208665516, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282208689475, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050001ff00ddfa" + }, + { + "ns": 32282219055641, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050001ff00ddfa" + }, + { + "ns": 32282229025111, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282229079399, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282239129745, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282239153401, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0100010001ac0a" + }, + { + "ns": 32282249580224, + "pty": 4, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32282269483679, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282269539281, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282289477210, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282289501271, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "06000300baf879" + }, + { + "ns": 32282300473298, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "0106000300baf879" + }, + { + "ns": 32282309648162, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282309686073, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282319850352, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282319878558, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "0400070001800b" + }, + { + "ns": 32282330303460, + "pty": 4, + "dir": "tx", + "bytes": 7, + "requested": 7, + "hex": "01040200ba3883" + }, + { + "ns": 32282350440343, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282350550537, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282370292139, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282370324287, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "050002ff002dfa" + }, + { + "ns": 32282380656789, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "01050002ff002dfa" + }, + { + "ns": 32282390535779, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282390579654, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282400675391, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282400707843, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "01000200015c0a" + }, + { + "ns": 32282410981204, + "pty": 4, + "dir": "tx", + "bytes": 6, + "requested": 6, + "hex": "010101019048" + }, + { + "ns": 32282430952089, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282431000008, + "pty": 3, + "dir": "tx", + "bytes": 1, + "requested": 1, + "hex": "52" + }, + { + "ns": 32282451207557, + "pty": 4, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "01" + }, + { + "ns": 32282451235762, + "pty": 4, + "dir": "rx", + "bytes": 7, + "requested": 255, + "hex": "06000300bb39b9" + }, + { + "ns": 32282451363647, + "pty": 3, + "dir": "rx", + "bytes": 1, + "requested": 1, + "hex": "53" + }, + { + "ns": 32282461655205, + "pty": 4, + "dir": "tx", + "bytes": 8, + "requested": 8, + "hex": "0106000300bb39b9" + } + ], + "data_pty": 4, + "stats_and_thread": [ + "THREAD name=sysworkq size=4096 unused=4056 rc=0", + "THREAD name=idle size=256 unused=216 rc=0", + "THREAD name=main size=4096 unused=4056 rc=0", + "STATS requests=749 valid=749 responses=749 errors=0 crc=0 exceptions=0 edges=0 rising=0 falling=0 samples=1519 beats=304 de_high=749 de_low=750 direction=131072 di=0 do=187 commands=375 unused=4056", + "THREAD name= size=40 unused=0 rc=0", + "THREAD name=sysworkq size=4096 unused=4056 rc=0", + "THREAD name=idle size=256 unused=216 rc=0", + "THREAD name=main size=4096 unused=4056 rc=0" + ] +} diff --git a/docs/evidence/stage8_2_rtu_reliability/summary.json b/docs/evidence/stage8_2_rtu_reliability/summary.json new file mode 100644 index 0000000..0157d59 --- /dev/null +++ b/docs/evidence/stage8_2_rtu_reliability/summary.json @@ -0,0 +1,1103 @@ +{ + "base": "4fa470ac3df4b8459fca2dc8eccb13aad70c7ef9", + "zephyr_commit": "dccb09599635bdff17633fa7e9dab014b91dce90", + "environment": { + "guest": "Bridge-Ubuntu-24.04 / 24.04.5 LTS / x86_64", + "kernel": "6.18.54.1-microsoft-standard-WSL2", + "user": "bridge", + "zephyr": "4.4.2 / native_sim/native/64", + "gcc": "13.3.0", + "cmake": "3.28.3", + "ninja": "1.11.1", + "qemu": "8.2.2", + "python": "3.12.3", + "west": "1.5.0", + "pymodbus": "3.11.4", + "pyserial": "3.5" + }, + "source_sha256": { + "host/modbus_master/test_master.py": "4c68270537e5e97d13de347a182721625b0ddff8d13db1a7a3c412e9fd055e68", + "host/modbus_master/pty_control.py": "850dd32adf7e4879233e8bfb0c9e3875de98f1f06dbccf6748d80b186c689f13", + "host/modbus_master/trace_pty.c": "aa0bf7e4b28dad312633263d05d13d154f52e23e8c027b992c8367e52755336d", + "zephyr/apps/modbus_rtu_slave/src/main.c": "fb12890e09d1aa16c262e48279d14a11282eeaf0e0eaf856849bf1f2a776305a", + "scripts/audit_stage8_2_rtu.py": "45d4a330d636c189fac13cfa4f137454aa890365f3e61376532ec29dcec01a70", + "scripts/diagnose_stage8_2.py": "2ad6ebbebf23229e401ba6ebe004252dede422b29c3b5c41033e11ef016a8e61", + "scripts/retest_stage8_2_rtu.py": "28479438bf165818fabc2f73f65839289c99247c935056227dacbd9416c1a933" + }, + "baseline": [ + { + "run": "baseline-1", + "exit": 1, + "successful": 565, + "failed_sequence": 566, + "failed_stress_sequence": 547, + "fc": 5, + "address": 0, + "request": "01050000ff008c3a", + "rx_bytes": 0, + "error": "pymodbus.exceptions.ModbusIOException", + "timeout_seconds": 0.15, + "retries": 0, + "slave_exit": 0, + "elf_sha256": "e2ad01c7ef3e8d3de4b451071a732ce4a94d1d4ef92f4b41d233f0ef83cb7470", + "last_periodic_stats": "STATS requests=566 valid=566 responses=566 errors=0 crc=0 exceptions=0 edges=12 rising=6 falling=6 samples=851 beats=171 de_high=566 de_low=567 direction=131072 di=0 do=137 commands=278 unused=4056", + "full_host_wire": "build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/runs/master-31618030661876/wire.json" + }, + { + "run": "baseline-2", + "exit": 1, + "successful": 415, + "failed_sequence": 416, + "failed_stress_sequence": 397, + "fc": 6, + "address": 3, + "request": "01060003006339e3", + "rx_bytes": 0, + "error": "pymodbus.exceptions.ModbusIOException", + "timeout_seconds": 0.15, + "retries": 0, + "slave_exit": 0, + "elf_sha256": "e53e06bf5525b71cf51b897b7125dfb27e45899ef395f66d7f9814749acf4c37", + "last_periodic_stats": "STATS requests=399 valid=399 responses=399 errors=0 crc=0 exceptions=0 edges=12 rising=6 falling=6 samples=601 beats=121 de_high=399 de_low=400 direction=131072 di=0 do=94 commands=194 unused=4056", + "full_host_wire": "build/rtu-r1/baseline-2/work/modbus_stage8_2_ws/runs/master-31654710193960/wire.json" + }, + { + "run": "baseline-3", + "exit": 1, + "successful": 426, + "failed_sequence": 427, + "failed_stress_sequence": 408, + "fc": 1, + "address": 5, + "request": "010100050001edcb", + "rx_bytes": 0, + "error": "pymodbus.exceptions.ModbusIOException", + "timeout_seconds": 0.15, + "retries": 0, + "slave_exit": 0, + "elf_sha256": "48e8cf36a17d0d9095dca2fc9bbd293567e5cdb04e723490a5f65856167841cd", + "last_periodic_stats": "STATS requests=399 valid=399 responses=399 errors=0 crc=0 exceptions=0 edges=12 rising=6 falling=6 samples=601 beats=121 de_high=399 de_low=400 direction=131072 di=0 do=94 commands=194 unused=4056", + "full_host_wire": "build/rtu-r1/baseline-3/work/modbus_stage8_2_ws/runs/master-31686613758501/wire.json" + } + ], + "controlled_diagnostics": { + "trace-original": { + "status": "PASS", + "successful": 1000, + "attempted": 1000, + "timeout_seconds": 0.15, + "gap_requested_ms": 0, + "transport": "pymodbus", + "retries": 0, + "argv": [ + "scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/trace-original" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "e2ad01c7ef3e8d3de4b451071a732ce4a94d1d4ef92f4b41d233f0ef83cb7470", + "gap_ms": { + "min": 0.050021, + "median": 0.08502, + "max": 0.647812 + } + }, + "trace-timeout": { + "status": "FAIL", + "successful": 985, + "attempted": 986, + "timeout_seconds": 0.6, + "gap_requested_ms": 0, + "transport": "pymodbus", + "retries": 0, + "argv": [ + "scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/trace-timeout", + "--timeout", + ".6" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "e2ad01c7ef3e8d3de4b451071a732ce4a94d1d4ef92f4b41d233f0ef83cb7470", + "gap_ms": { + "min": 0.050367, + "median": 0.091639, + "max": 0.790482 + }, + "failure_sequence": 986, + "classification": "empty", + "late": "01040200f63976", + "actual_ns": 25877186 + }, + "trace-gap": { + "status": "PASS", + "successful": 1000, + "attempted": 1000, + "timeout_seconds": 0.15, + "gap_requested_ms": 20.0, + "transport": "pymodbus", + "retries": 0, + "argv": [ + "scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/trace-gap", + "--gap-ms", + "20" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "e2ad01c7ef3e8d3de4b451071a732ce4a94d1d4ef92f4b41d233f0ef83cb7470", + "gap_ms": { + "min": 20.111913, + "median": 20.292044, + "max": 21.134485 + } + }, + "trace-raw": { + "status": "FAIL", + "successful": 312, + "attempted": 313, + "timeout_seconds": 0.15, + "gap_requested_ms": 0, + "transport": "raw", + "retries": 0, + "argv": [ + "scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/trace-raw", + "--transport", + "raw" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "e2ad01c7ef3e8d3de4b451071a732ce4a94d1d4ef92f4b41d233f0ef83cb7470", + "gap_ms": { + "min": 0.057648, + "median": 0.115687, + "max": 0.722157 + }, + "failure_sequence": 313, + "classification": "empty", + "late": "", + "actual_ns": 150276491 + }, + "fifo-1": { + "status": "FAIL", + "successful": 174, + "attempted": 175, + "timeout_seconds": 0.15, + "gap_requested_ms": 0, + "transport": "raw", + "retries": 0, + "argv": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/fifo-1", + "--transport", + "raw" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/baseline-1/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "e2ad01c7ef3e8d3de4b451071a732ce4a94d1d4ef92f4b41d233f0ef83cb7470", + "gap_ms": { + "min": 0.072383, + "median": 0.204783, + "max": 0.853302 + }, + "failure_sequence": 175, + "classification": "empty", + "late": "", + "actual_ns": 150405966 + }, + "ready-trace-1": { + "status": "FAIL", + "successful": 748, + "attempted": 749, + "timeout_seconds": 0.15, + "gap_requested_ms": 0, + "transport": "pymodbus", + "retries": 0, + "argv": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/scripts/diagnose_stage8_2.py", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/fixed/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/ready-trace-1", + "--ready" + ], + "slave_command": [ + "/home/bridge/projects/stm32/VirtualEmbeddedLab-rtu-r1/build/rtu-r1/fixed/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe", + "-rt", + "-stop_at=110" + ], + "elf_sha256": "4f6882e73152200bb6328cc934eeb05f6953d658a2a2d03edbf265a051bb9fec", + "gap_ms": { + "min": 0.056006, + "median": 0.2130125, + "max": 0.923597 + }, + "failure_sequence": 749, + "classification": "empty", + "late": "0106000300bb39b9", + "actual_ns": 26850695 + } + }, + "preliminary_both_changes": [ + { + "exit": 0, + "seconds": 3.7417953129988746, + "run": "fault", + "cases": [ + { + "name": "eight_functions_gpio_and_registers", + "status": "PASS", + "seconds": 0.8505336930029443 + }, + { + "name": "fault_matrix_and_atomic_rejection", + "status": "PASS", + "seconds": 2.2159225409995997 + }, + { + "name": "configuration_applied_to_state_machine", + "status": "PASS", + "seconds": 0.3486534940020647 + } + ] + }, + { + "exit": 1, + "seconds": 40.6973585559972, + "run": "protocol-1", + "completed": 1018, + "error": "TimeoutError: native_sim RTU receive-ready acknowledgement timed out", + "next_rtu_request_sent": false + }, + { + "exit": 0, + "seconds": 41.0357703089976, + "run": "protocol-2", + "check": { + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2063, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 13155583, + "median": 28171925, + "max": 65168687 + }, + "previous_rx_to_tx_ns": { + "min": 4741655, + "median": 14043800, + "max": 35541860 + }, + "slave_process_exit": 0 + } + }, + { + "exit": 0, + "seconds": 40.733346182001696, + "run": "protocol-3", + "check": { + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2065, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 18834663, + "median": 28241407, + "max": 61925217 + }, + "previous_rx_to_tx_ns": { + "min": 2058907, + "median": 16117328, + "max": 27030589 + }, + "slave_process_exit": 0 + } + }, + { + "exit": 0, + "seconds": 40.425316444998316, + "run": "protocol-4", + "check": { + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2062, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 18299238, + "median": 27643466, + "max": 44276773 + }, + "previous_rx_to_tx_ns": { + "min": 4833218, + "median": 9800903, + "max": 27165395 + }, + "slave_process_exit": 0 + } + }, + { + "exit": 0, + "seconds": 40.50602619900019, + "run": "protocol-5", + "check": { + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2061, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 9654870, + "median": 24788207, + "max": 42973512 + }, + "previous_rx_to_tx_ns": { + "min": 5539748, + "median": 15606620, + "max": 25390757 + }, + "slave_process_exit": 0 + } + } + ], + "acceptance_sessions": { + "protocol-1": { + "exit": 0, + "seconds": 40.75807348200033, + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2062, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 19862781, + "median": 29113970, + "max": 45746295 + }, + "previous_rx_to_tx_ns": { + "min": 1241882, + "median": 13923895, + "max": 28944383 + }, + "slave_process_exit": 0, + "runs": [ + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32612959646973" + ] + }, + "protocol-2": { + "exit": 0, + "seconds": 40.70792821000214, + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2063, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 8989479, + "median": 29120163, + "max": 43453063 + }, + "previous_rx_to_tx_ns": { + "min": 6075651, + "median": 16003242, + "max": 27102501 + }, + "slave_process_exit": 0, + "runs": [ + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32653703944030" + ] + }, + "protocol-3": { + "exit": 0, + "seconds": 40.69545049500084, + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2061, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 20041669, + "median": 29509374, + "max": 34559729 + }, + "previous_rx_to_tx_ns": { + "min": 4432100, + "median": 9957816, + "max": 27797598 + }, + "slave_process_exit": 0, + "runs": [ + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32694436206476" + ] + }, + "protocol-4": { + "exit": 0, + "seconds": 42.02796476000367, + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2064, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 20005689, + "median": 29329649, + "max": 47191802 + }, + "previous_rx_to_tx_ns": { + "min": 5787836, + "median": 16710279, + "max": 27658818 + }, + "slave_process_exit": 0, + "runs": [ + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32735158543442" + ] + }, + "protocol-5": { + "exit": 0, + "seconds": 42.383326625000336, + "status": "PASS", + "all_request_response_pairs": 1026, + "stress_request_response_pairs": 1000, + "wire_mismatches": 0, + "retries": 0, + "rtu_timeout_seconds": 0.15, + "stats": { + "requests": 1026, + "valid": 1026, + "responses": 1026, + "errors": 0, + "crc": 0, + "exceptions": 0, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 2061, + "beats": 415, + "de_high": 1026, + "de_low": 1027, + "direction": 131072, + "di": 0, + "do": 251, + "commands": 506, + "unused": 4056 + }, + "response_elapsed_ns": { + "min": 9791040, + "median": 29581922, + "max": 50994936 + }, + "previous_rx_to_tx_ns": { + "min": 4656479, + "median": 16035461, + "max": 30867418 + }, + "slave_process_exit": 0, + "runs": [ + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32777226678993" + ] + }, + "fault": { + "exit": 0, + "seconds": 3.7845822400049656, + "status": "PASS", + "mode": "fault", + "cases": [ + { + "name": "eight_functions_gpio_and_registers", + "status": "PASS", + "seconds": 0.8830796839974937 + }, + { + "name": "fault_matrix_and_atomic_rejection", + "status": "PASS", + "seconds": 2.2184116119969985 + }, + { + "name": "configuration_applied_to_state_machine", + "status": "PASS", + "seconds": 0.3513763760056463 + } + ], + "tests": 3, + "successful_transactions": 31, + "stats": { + "requests": 42, + "valid": 39, + "responses": 39, + "errors": 9, + "crc": 1, + "exceptions": 7, + "edges": 12, + "rising": 6, + "falling": 6, + "samples": 172, + "beats": 37, + "de_high": 39, + "de_low": 40, + "direction": 131072, + "di": 0, + "do": 150, + "commands": 6, + "unused": 4056 + }, + "scope": "Real PTY bytes; parity unsupported physically; official Zephyr RTU plus independent pymodbus", + "process_exit": 0, + "runs": [ + "build/rtu-r1/acceptance/work/modbus_stage8_2_ws/runs/master-32819648573290" + ] + } + }, + "release_elf_sha256": "a006e6dcbade6fc7965195698badc6a6772b132a2375af283fa670d042b26a15", + "gui": { + "tests": 7, + "exit": 0 + }, + "gateway": { + "concurrency/acceptance.json": { + "status": "PASS", + "cases": [ + { + "name": "four_independent_tcp_masters", + "status": "PASS", + "transactions": 320, + "fd_baseline": 7, + "fd_after_20_reconnects": 7 + } + ] + }, + "fault/acceptance.json": { + "status": "PASS", + "cases": [ + { + "name": "socket_serial_process_fault_matrix", + "status": "PASS", + "queue_overload_responses": [ + [ + 717, + 1, + "8306" + ], + [ + 718, + 1, + "8306" + ], + [ + 719, + 1, + "8306" + ], + [ + 720, + 1, + "8306" + ], + [ + 721, + 1, + "8306" + ], + [ + 722, + 1, + "8306" + ], + [ + 723, + 1, + "8306" + ], + [ + 700, + 1, + "830b" + ], + [ + 701, + 1, + "830b" + ], + [ + 702, + 1, + "830b" + ], + [ + 703, + 1, + "830b" + ], + [ + 704, + 1, + "830b" + ], + [ + 705, + 1, + "830b" + ], + [ + 706, + 1, + "830b" + ], + [ + 707, + 1, + "830b" + ], + [ + 708, + 1, + "830b" + ], + [ + 709, + 1, + "830b" + ], + [ + 710, + 1, + "830b" + ], + [ + 711, + 1, + "830b" + ], + [ + 712, + 1, + "830b" + ], + [ + 713, + 1, + "830b" + ], + [ + 714, + 1, + "830b" + ], + [ + 715, + 1, + "830b" + ], + [ + 716, + 1, + "830b" + ] + ], + "hidden_retries": false + } + ] + }, + "rtu/consistency.json": { + "status": "PASS", + "cases": [ + { + "name": "independent_device_status_crosscheck", + "status": "PASS" + } + ] + }, + "tcp/protocol.json": { + "status": "PASS", + "cases": [ + { + "name": "eight_functions_gpio", + "status": "PASS" + }, + { + "name": "tcp_rtu_consistency", + "status": "PASS" + }, + { + "name": "tcp_fragment_coalesced_stream", + "status": "PASS" + }, + { + "name": "1000_mixed_transactions", + "status": "PASS", + "transactions": 1000, + "final": [ + 1, + 10, + 500, + 251, + 100, + 504, + 0, + 0 + ] + } + ] + }, + "tests_all.json": { + "status": "PASS", + "cases": [ + { + "name": "eight_functions_gpio", + "status": "PASS" + }, + { + "name": "tcp_rtu_consistency", + "status": "PASS" + }, + { + "name": "tcp_fragment_coalesced_stream", + "status": "PASS" + }, + { + "name": "1000_mixed_transactions", + "status": "PASS", + "transactions": 1000, + "final": [ + 1, + 10, + 500, + 251, + 100, + 504, + 0, + 0 + ] + }, + { + "name": "four_independent_tcp_masters", + "status": "PASS", + "transactions": 320, + "fd_baseline": 7, + "fd_after_20_reconnects": 7 + }, + { + "name": "socket_serial_process_fault_matrix", + "status": "PASS", + "queue_overload_responses": [ + [ + 717, + 1, + "8306" + ], + [ + 718, + 1, + "8306" + ], + [ + 719, + 1, + "8306" + ], + [ + 720, + 1, + "8306" + ], + [ + 721, + 1, + "8306" + ], + [ + 722, + 1, + "8306" + ], + [ + 723, + 1, + "8306" + ], + [ + 700, + 1, + "830b" + ], + [ + 701, + 1, + "830b" + ], + [ + 702, + 1, + "830b" + ], + [ + 703, + 1, + "830b" + ], + [ + 704, + 1, + "830b" + ], + [ + 705, + 1, + "830b" + ], + [ + 706, + 1, + "830b" + ], + [ + 707, + 1, + "830b" + ], + [ + 708, + 1, + "830b" + ], + [ + 709, + 1, + "830b" + ], + [ + 710, + 1, + "830b" + ], + [ + 711, + 1, + "830b" + ], + [ + 712, + 1, + "830b" + ], + [ + 713, + 1, + "830b" + ], + [ + 714, + 1, + "830b" + ], + [ + 715, + 1, + "830b" + ], + [ + 716, + 1, + "830b" + ] + ], + "hidden_retries": false + } + ] + } + }, + "hardware": "NOT TESTED", + "physical_rs485": "NOT TESTED", + "ethernet": "NOT TESTED", + "historical_133": "NOT RUN", + "stage8_3_1": "NOT RUN" +} diff --git a/docs/stage8_2_rtu_reliability_report.md b/docs/stage8_2_rtu_reliability_report.md new file mode 100644 index 0000000..3f673de --- /dev/null +++ b/docs/stage8_2_rtu_reliability_report.md @@ -0,0 +1,86 @@ +# Stage 8.2-R1 Modbus RTU 可靠性复验 + +2026-11-24,Issue #3。基线为 main 的 **4fa470ac3df4b8459fca2dc8eccb13aad70c7ef9**。独立工作树使用 WSL2 Ubuntu 24.04.5、普通用户 bridge、x86_64。Zephyr 4.4.2 源码固定在 **dccb09599635bdff17633fa7e9dab014b91dce90**,目标为 native_sim/native/64。测试使用 GCC 13.3.0、CMake 3.28.3、Ninja 1.11.1、Python 3.12.3、pymodbus 3.11.4 和 pyserial 3.5。环境检查识别到 QEMU 8.2.2,本轮 RTU 使用的是 native_sim。 + +## 原样复现 + +在三个全新的工作目录运行 `python3 scripts/accept_stage8_2.py --mode protocol`。从站、主站及配置均取自基线。每轮构建成功,主站以 150 ms 超时和零重试运行。主站的无响应异常均为 `pymodbus.exceptions.ModbusIOException`,从站在测试清理中均以 0 退出。 + +| 会话 | 已收到有效响应 | 失败总序号 / 压力序号 | FC / 地址 | 请求完整 ADU | 读到字节 | 退出码 | +| --- | ---: | --- | --- | --- | ---: | ---: | +| 1 | 565 | 566 / 547 | 05 / DO0 | `01050000ff008c3a` | 0 | 1 | +| 2 | 415 | 416 / 397 | 06 / HR3 | `01060003006339e3` | 0 | 1 | +| 3 | 426 | 427 / 408 | 01 / DO5 | `010100050001edcb` | 0 | 1 | + +总序号包含 19 笔前置请求。原样主站只在收到帧时写响应时间,因此失败请求的精确等待耗时在原日志中不可用。短窗口保留可见报文、单调时间戳和距离上一响应的间隔。周期统计在失败前最近一次采样,第二、三轮的最后一条周期统计分别早于失败 17、28 笔。故障定位使用新增诊断中的即时统计与实际 PTY 收发。 + +## 受控诊断 + +以下会话均为 250 × 4 笔压力序列。表中的间隔是前一笔主站调用结束到下一笔调用开始的实际中位数。每项使用独立进程、PTY 与日志,零重试。基线固件上的第四、五行只是切换主站收发方式。第六行启用 RX-ready 但保留原 pymodbus 等待实现,用于区分两类故障。 + +| 参数 | 完成数 / 计划 | 实际间隔中位数 | 结果 | +| --- | ---: | ---: | --- | +| pymodbus / 150 ms / 额外间隔 0 | 1000 / 1000 | 0.085 ms | 一次通过,原样三轮仍有失败 | +| 仅超时改为 600 ms | 985 / 1000 | 0.092 ms | 第 986 笔主站提前返回,之后读到正确响应 | +| 仅请求间额外等待 20 ms | 1000 / 1000 | 20.292 ms | 一次通过,样本不足以认定有效,更早 GUI-H1 诊断中仍见失败 | +| raw serial / 150 ms / 额外间隔 0 | 312 / 1000 | 0.116 ms | 第 313 笔从站读到请求,未写出响应 | +| raw serial,另一次并记录 read 请求长度 | 174 / 1000 | 0.205 ms | 第 175 笔被 RX 清理路径读走 | +| RX-ready + 原 pymodbus 实时时钟 | 748 / 1000 | 0.213 ms | 第 749 笔主站提前返回,之后读到正确响应 | + +### 从站接收切换时清理了下一帧 + +raw 第 175 笔 `01050003ff007c3a` CRC 有效。上一帧响应已由从站写入 PTY,主站随后发送请求。约 1.09 ms 后(距本次主站写入完成约 0.10 ms),从站以长度参数 **8** 调用读取并取走全部 8 字节,后续未写出该请求的响应。native_sim 正常接收先从 PTY 预读 1 字节,再由 RTU 以剩余缓冲区长度读取,窗口中观察到长度参数 **255**。失败读的地址可解析为 `nsi_host_read` → `np_uart_read_n`,配合 Zephyr `subsys/modbus/modbus_serial.c` 的固定 8 字节 FIFO drain 与项目配置,确认失败发生在 RX 禁用期间的清理路径。IRQ 路径的两个 drain 调用点都会在 RX 尚未开启时丢弃数据,本次抓包未区分具体是哪一个调用点。 + +native_sim UART 的 TX FIFO 写入直接将字节交付给宿主 PTY,宿主可以在从站完成 TX 后处理之前读到回应。Zephyr ISR 在切回接收前清理 RX FIFO 以丢弃本地回显,PTY 上提前到达的后继请求落入该窗口。独立 raw 路径复现说明此丢帧发生在 pymodbus 解析之前。 + +### 主站的实时时钟跳变提前结束等待 + +打开 RX-ready 后,第 749 笔 `0106000300bb39b9` 送出。pymodbus 以 `time.time()` 计算接收截止时间,该请求发送后约 **7.5 ms** 即调用了 `read(0)`,得到空结果。等待期间 CLOCK_REALTIME 相对于 CLOCK_MONOTONIC 向前跳变约 **843.7 ms**。从站正常地预读 1 字节并读完剩余请求,在发送后约 **30.2 ms** 写出 CRC 正确的完整回包,主站诊断随后实际读到了它。600 ms 的对照同样观测到提前返回及迟到字节,未为那一次采集时钟偏移,故不单独对其归因。 + +`responses` 和 IR4 的含义是已准备响应。只有真实 PTY 上的写入与主站实际读取匹配,才记为成功。 + +## 修复与边界 + +- native_sim 从站在既有 UART0 控制通道接受 `R` 探测。对单个在途请求,下一笔发送前主站等待一个 `R` 应答。从站主线程在 DE=0、RE=1 后发布应答,高优先级 UART 回调已完成清理并重新启用 RX。UART1 继续只承载 Modbus RTU。控制探测独立采用 150 ms 上限,失败时显式退出,尚未发送的事务不会被重发。 +- Stage 8.2 测试主站沿用 pymodbus 的收发、轮询策略、帧解析和响应验证,只将 PTY 等待循环的截止时间改为单调时钟。RTU 超时仍为 150 ms,零重试,也没有新增固定请求间隔。Stage 8.3 网关、GUI-H1 源码、寄存器表和 Modbus 功能码均未修改。 +- 软件从站配置为 115200 8E1。PTY 主站使用 parity=N 验证字节流。Hardware、物理 RS485 和 Ethernet 均为 **NOT TESTED**,Stage 0–7 历史 133 项和 Stage 8.3.1 耐久均为 **NOT RUN**。 + +## 正式验收 + +正式批次重新构建固件,按顺序启动五个相互独立的从站进程和 PTY。每轮执行原压力序列并保留前置和收尾检查,共 1,026 笔正常请求。审计工具比较主站传入解析器的实际字节与从站 PTY 系统调用记录,逐笔检查顺序、请求和只有一个响应、CRC、从站地址、功能码、压力响应内容和 150 ms 内的到达时间。每轮计数均为 requests=valid=responses-prepared=1026,errors=crc=exceptions=0。 + +| 项目 | 结果 | +| --- | --- | +| 轮 1 | PASS,1,000 对,最大响应耗时 45.75 ms | +| 轮 2 | PASS,1,000 对,最大响应耗时 43.45 ms | +| 轮 3 | PASS,1,000 对,最大响应耗时 34.56 ms | +| 轮 4 | PASS,1,000 对,最大响应耗时 47.19 ms | +| 轮 5 | PASS,1,000 对,最大响应耗时 50.99 ms | +| Stage 8.2 fault | 3/3,包含非法请求、异常响应、写入原子性和重新打开 PTY | +| GUI-H1 | WSLg 7/7。FC05 驱动 DO0 0→1→0,FC01 和 IR7 一致。DI=0101 经 FC02 和 IR6 确认。关闭后确认从站、Supervisor、受管 Worker 和两条 PTY 均已退出或释放 | +| Stage 8.3 Gateway | 7/7,含 6 个网关测试组和独立 RTU 状态一致性组 | + +五轮共审计 **5,000 对压力报文,5,130 对正常报文**。空帧、部分帧、CRC 错误、迟到、错配和重复响应均为 0。 + +早期双修复批次保留了一次**发送前**控制通道超时。当时已有 1,018 对 RTU 报文,下一笔尚未发送,未观察到该笔的 RTU 空响应。具体停顿原因未定位。该批次其余四轮完整通过,独立正式批次在相同修复和控制上限下五轮完整通过。第一次 GUI 检查的 DO/DI 操作已完成,但日志页更新断言失败,另外两个 ARM 测试缺少构建产物。正式 GUI 回归使用逐文件校验过 GitHub blob 的 Draft PR #2 副本(`85b1eb4363ba78ef67b6aba9f85691f3c19d693b`),只叠加本次从站改动,并放入原有 ARM/Zephyr 测试 ELF 后 7/7。第一次失败日志也收录于清单。 + +## 复跑与证据 + +在 WSL 普通用户环境,从工程根目录执行。若依赖在工程目录之外,按现有 `vel_env.py` 约定设置 `VEL_ZEPHYR_BASE`、`VEL_TOOLS_ROOT`、`VEL_PYTHON_PACKAGES`。 + +```bash +python3 scripts/retest_stage8_2_rtu.py build/rtu-r1/replay +python3 scripts/diagnose_stage8_2.py \ + build/rtu-r1/replay/work/modbus_stage8_2_ws/build/zephyr/zephyr.exe \ + build/rtu-r1/diag-replay --ready --monotonic +VEL_WORK_ROOT="$PWD/build/rtu-r1/gateway-replay" \ + python3 scripts/accept_stage8_3.py --mode all +``` + +对照诊断可以对基线 ELF 单独使用 `--timeout .6`、`--gap-ms 20` 或 `--transport raw`。诊断在首个失败停止主动发请求,然后采集原始字节和即时状态。正式固件的 ELF SHA-256 为 `a006e6dcbade6fc7965195698badc6a6772b132a2375af283fa670d042b26a15`。 + +- 版本、固件 SHA、源码 SHA、命令、对照参数和各轮计数。[机器摘要](evidence/stage8_2_rtu_reliability/summary.json) +- 原始三轮的最后 11 笔事务。[基线短窗口](evidence/stage8_2_rtu_reliability/baseline-windows.json) +- 失败前十笔、失败帧、失败后的 PTY/状态采样。[FIFO 清理窗口](evidence/stage8_2_rtu_reliability/fifo-1-window.json) · [实时时钟跳变窗口](evidence/stage8_2_rtu_reliability/ready-trace-1-window.json) +- 早期发送前失败及正式 GUI 的可核对报文。[控制超时窗口](evidence/stage8_2_rtu_reliability/pre-transmit-failure-window.json) · [WSLg 回归](evidence/stage8_2_rtu_reliability/gui-regression.json) +- 完整日志保留在工作树的 `build/rtu-r1/` 下,清单记录仓库相对路径、大小和 SHA-256。[原始日志清单](evidence/stage8_2_rtu_reliability/log-manifest.json) diff --git a/host/modbus_master/pty_control.py b/host/modbus_master/pty_control.py new file mode 100644 index 0000000..2bc79f9 --- /dev/null +++ b/host/modbus_master/pty_control.py @@ -0,0 +1,35 @@ +"""Host side of the native_sim RTU receive-ready control channel.""" +import os +import select +import time + +from pymodbus.client import ModbusSerialClient + + +def wait_rx_ready(control_fd, timeout=0.15): + """Wait for one UART0 acknowledgement before sending the next RTU frame.""" + if os.write(control_fd, b"R") != 1: + raise OSError("Could not request native_sim RTU receive-ready") + if not select.select([control_fd], [], [], timeout)[0]: + raise TimeoutError("native_sim RTU receive-ready acknowledgement timed out") + acknowledgement = os.read(control_fd, 1) + if acknowledgement != b"R": + raise OSError(f"Unexpected native_sim RTU acknowledgement: {acknowledgement!r}") + + +class PtySerialClient(ModbusSerialClient): + """Use elapsed time for the pymodbus PTY receive window.""" + + def _wait_for_data(self): + # Preserve pymodbus's data/size polling and timeout. WSL can step + # CLOCK_REALTIME while this loop is waiting for the native UART. + deadline = time.monotonic() + self.comm_params.timeout_connect + size = 0 + while time.monotonic() <= deadline: + available = self._in_waiting() + if size and (not available or available == size): + break + if available: + size = available + time.sleep(self._recv_interval) + return size diff --git a/host/modbus_master/test_master.py b/host/modbus_master/test_master.py index 528417e..cf67f7c 100644 --- a/host/modbus_master/test_master.py +++ b/host/modbus_master/test_master.py @@ -1,8 +1,8 @@ import os,pathlib,subprocess,time,re,json,tty,signal,sys,serial def terminated(signum,frame):raise SystemExit(128+signum) signal.signal(signal.SIGTERM,terminated) -from pymodbus.client import ModbusSerialClient from pymodbus.framer.rtu import FramerRTU +from pty_control import PtySerialClient, wait_rx_ready ROOT=pathlib.Path(__file__).resolve().parents[2];WS=pathlib.Path(os.environ.get('VEL_WORK_ROOT',ROOT/'build/workspaces'))/'modbus_stage8_2_ws';mode=sys.argv[1] if len(sys.argv)>1 else 'all';d=WS/'runs'/('master-'+str(time.monotonic_ns()));d.mkdir();log=d/'slave.log';f=log.open('w');p=subprocess.Popen([str(WS/'build/zephyr/zephyr.exe'),'-rt','-stop_at=110'],stdout=f,stderr=subprocess.STDOUT,start_new_session=True);transcript=[];cases=[];transactions=0;writes=0;control=None;c=None def trace(sending,data):transcript.append({'time':time.monotonic(),'direction':'request' if sending else 'response','hex':data.hex()});return data @@ -14,6 +14,7 @@ def wait(pred,timeout=5): raise TimeoutError(log.read_text()[-2000:]) def call(method,*args,**kw): global transactions,writes + wait_rx_ready(control) response=getattr(c,method)(*args,device_id=1,**kw);assert not response.isError(),response;transactions+=1 if method.startswith('write_'):writes+=1 return response @@ -22,6 +23,7 @@ def case(name,fn): def raw(payload,expect=None,fragment=False,corrupt=False): data=payload+FramerRTU.compute_CRC(payload).to_bytes(2,'big') if corrupt:data=data[:-1]+bytes([data[-1]^1]) + wait_rx_ready(control) c.socket.reset_input_buffer();trace(True,data) if fragment:c.socket.write(data[:3]);time.sleep(.0001);c.socket.write(data[3:]) else:c.socket.write(data) @@ -33,7 +35,7 @@ def raw(payload,expect=None,fragment=False,corrupt=False): return response try: wait(lambda:'MODBUS_INIT rc=0' in log.read_text());paths=re.findall(r'/dev/pts/\d+',log.read_text());control=os.open(paths[0],os.O_RDWR|os.O_NOCTTY);tty.setraw(control) - c=ModbusSerialClient(paths[1],baudrate=115200,parity='N',stopbits=1,timeout=.15,retries=0,trace_packet=trace);assert c.connect() + c=PtySerialClient(paths[1],baudrate=115200,parity='N',stopbits=1,timeout=.15,retries=0,trace_packet=trace);assert c.connect() def functions(): call('write_coil',0,True);assert call('read_coils',0,count=8).bits[:8]==[True]+[False]*7 bits=[True,False,True,False,False,True,True,False];call('write_coils',0,bits);assert call('read_coils',0,count=8).bits[:8]==bits @@ -55,6 +57,7 @@ def faults(): raw(bytes.fromhex('010600010000'),corrupt=True);raw(bytes.fromhex('020300000001'));raw(bytes.fromhex('014100000001'),b'\xc1\x01');raw(bytes.fromhex('010300080001'),b'\x83\x02');raw(bytes.fromhex('010600010000'),b'\x86\x03');raw(bytes.fromhex('010300000000'),b'\x83\x03') raw(bytes.fromhex('0110000400020400640001'),b'\x90\x02');raw(bytes.fromhex('010f000700020103'),b'\x8f\x02');raw(bytes.fromhex('0110000000020400010000'),b'\x90\x03') assert call('read_holding_registers',0,count=8).registers==before;assert call('read_coils',0,count=8).bits[:8]==coils + wait_rx_ready(control) trace(True,bytes.fromhex('010600'));c.socket.write(bytes.fromhex('010600'));time.sleep(.03);dropped=c.socket.read(100);trace(False,dropped);assert dropped==b'' # Reopen the same PTY after an incomplete transaction; native slave keeps safe state. c.close();time.sleep(.02);assert c.connect();assert call('read_holding_registers',0,count=8).registers==before diff --git a/host/modbus_master/trace_pty.c b/host/modbus_master/trace_pty.c new file mode 100644 index 0000000..affde05 --- /dev/null +++ b/host/modbus_master/trace_pty.c @@ -0,0 +1,75 @@ +/* Record positive syscalls on native_sim PTY masters without transforming bytes. */ +#define _GNU_SOURCE +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static int trace_fd = -1; +static ssize_t (*real_read)(int, void *, size_t); +static ssize_t (*real_write)(int, const void *, size_t); + +__attribute__((constructor)) static void open_trace(void) +{ + real_read = dlsym(RTLD_NEXT, "read"); + real_write = dlsym(RTLD_NEXT, "write"); + const char *path = getenv("VEL_PTY_TRACE"); + if (path) { + trace_fd = open(path, O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0600); + if (trace_fd < 0) _exit(78); + } +} + +static void record(int fd, const void *data, ssize_t count, size_t requested, const char *direction) +{ + int saved_errno = errno; + unsigned int pty; + if (trace_fd >= 0 && count > 0 && ioctl(fd, TIOCGPTN, &pty) == 0) { + struct timespec ts; + clock_gettime(CLOCK_MONOTONIC, &ts); + char line[768]; + const unsigned char *bytes = data; + const char digits[] = "0123456789abcdef"; + int n = snprintf(line, sizeof line, + "{\"ns\":%lld,\"pty\":%u,\"dir\":\"%s\",\"bytes\":%zd,\"requested\":%zu,\"hex\":\"", + (long long)ts.tv_sec * 1000000000LL + ts.tv_nsec, pty, direction, count, requested); + for (ssize_t i = 0; i < count && i < 256; i++) { + line[n++] = digits[bytes[i] >> 4]; + line[n++] = digits[bytes[i] & 15U]; + } + n += snprintf(line + n, sizeof line - (size_t)n, "\""); + if (count == 8 && !strcmp(direction, "rx")) { + void *frames[13]; + int depth = backtrace(frames, 13); + n += snprintf(line + n, sizeof line - (size_t)n, ",\"stack\":["); + for (int i = 0; i < depth; ++i) { + n += snprintf(line + n, sizeof line - (size_t)n, "%s\"%p\"", i ? "," : "", frames[i]); + } + line[n++] = ']'; + } + n += snprintf(line + n, sizeof line - (size_t)n, "}\n"); + (void)syscall(SYS_write, trace_fd, line, (size_t)n); + } + errno = saved_errno; +} + +ssize_t read(int fd, void *buf, size_t len) +{ + ssize_t rc = real_read ? real_read(fd, buf, len) : syscall(SYS_read, fd, buf, len); + record(fd, buf, rc, len, "rx"); + return rc; +} + +ssize_t write(int fd, const void *buf, size_t len) +{ + ssize_t rc = real_write ? real_write(fd, buf, len) : syscall(SYS_write, fd, buf, len); + record(fd, buf, rc, len, "tx"); + return rc; +} diff --git a/scripts/audit_stage8_2_rtu.py b/scripts/audit_stage8_2_rtu.py new file mode 100644 index 0000000..b8abfcd --- /dev/null +++ b/scripts/audit_stage8_2_rtu.py @@ -0,0 +1,106 @@ +#!/usr/bin/env python3 +"""Audit Stage 8.2 protocol logs against actual native_sim PTY traffic.""" +import argparse +import json +from pathlib import Path +import re + +from diagnose_stage8_2 import crc, expected, frame + +SETUP_REQUESTS = 19 +STRESS_REQUESTS = 1000 +TOTAL_REQUESTS = 1026 + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def audit(report_path, trace_path): + report = json.loads(report_path.read_text()) + host = json.loads(Path(report["transcript"]).read_text()) + paths = re.findall(r"/dev/pts/(\d+)", Path(report["log"]).read_text()) + require(len(paths) >= 2, "Missing RTU PTY from slave startup") + events = [json.loads(line) for line in trace_path.read_text().splitlines()] + slave = [event for event in events if event["pty"] == int(paths[1])] + require(report["status"] == "PASS" and report["successful_transactions"] == TOTAL_REQUESTS, + "Incomplete original protocol suite") + require(report["process_exit"] == 0, "Slave did not shut down cleanly") + stats = report["stats"] + require(all(stats[k] == TOTAL_REQUESTS for k in ("requests", "valid", "responses")), + "Slave request and prepared-response totals differ from the host") + require(all(stats[k] == 0 for k in ("errors", "exceptions", "crc")), + "Unexpected slave errors in normal protocol run") + require(len(host) == 2 * TOTAL_REQUESTS, "Missing or extra host frame") + previous_response = None + interval_ns = [] + elapsed_ns = [] + slave_rxs = bytearray() + transaction = 0 + for event in slave: + chunk = bytes.fromhex(event["hex"]) + require(len(chunk) == event["bytes"], "Incomplete native PTY event") + if event["dir"] == "rx": + slave_rxs.extend(chunk) + continue + require(event["dir"] == "tx" and transaction < TOTAL_REQUESTS, + "Unknown native PTY event or extra response") + number = transaction + 1 + tx, rx = host[2 * transaction:2 * transaction + 2] + request, response = (bytes.fromhex(row["hex"]) for row in (tx, rx)) + require(tx["direction"] == "request" and rx["direction"] == "response", + f"Wrong host event order at transaction {number}") + require(slave_rxs == request and chunk == response, + f"Native PTY bytes differ at transaction {number}") + require(len(request) >= 5 and len(response) >= 5 and + all(crc(data[:-2]) == data[-2:] for data in (request, response)), + f"Invalid host frame CRC at transaction {number}") + require(request[:2] == response[:2], + f"Slave ID or function mismatch at transaction {number}") + sent = round(tx["time"] * 1e9) + received = round(rx["time"] * 1e9) + require(sent <= event["ns"] <= received, + f"Slave emitted a response outside the host frame window at {number}") + if SETUP_REQUESTS <= transaction < SETUP_REQUESTS + STRESS_REQUESTS: + stress = transaction - SETUP_REQUESTS + level, index = divmod(stress, 4) + coil = level % 8 + cases = [(6, 3, level), (4, 7, 1), (5, coil, 0xFF00), (1, coil, 1)] + expected_request = frame(*cases[index]) + require(request == expected_request and response == expected(expected_request, level, True), + f"Unexpected stress payload at transaction {number}") + require(0 <= received - sent <= 150_000_000, f"Late response at {number}") + elapsed_ns.append(received - sent) + interval_ns.append(sent - previous_response) + previous_response = received + slave_rxs.clear() + transaction += 1 + require(transaction == TOTAL_REQUESTS and not slave_rxs and len(elapsed_ns) == STRESS_REQUESTS, + "Missing response or extra request bytes on native PTY") + return {"status": "PASS", "all_request_response_pairs": transaction, + "stress_request_response_pairs": len(elapsed_ns), "wire_mismatches": 0, + "retries": 0, "rtu_timeout_seconds": .15, "stats": stats, + "response_elapsed_ns": distribution(elapsed_ns), + "previous_rx_to_tx_ns": distribution(interval_ns), + "slave_process_exit": report["process_exit"]} + + +def distribution(values): + ordered = sorted(values) + return {"min": ordered[0], "median": ordered[len(ordered) // 2], "max": ordered[-1]} + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("acceptance", type=Path) + parser.add_argument("slave_pty_trace", type=Path) + args = parser.parse_args() + try: + print(json.dumps(audit(args.acceptance, args.slave_pty_trace), indent=2)) + except (OSError, KeyError, ValueError) as error: + parser.exit(1, f"Wire audit failed: {error}\n") + + +if __name__ == "__main__": + main() diff --git a/scripts/diagnose_stage8_2.py b/scripts/diagnose_stage8_2.py new file mode 100644 index 0000000..1a6e020 --- /dev/null +++ b/scripts/diagnose_stage8_2.py @@ -0,0 +1,287 @@ +#!/usr/bin/env python3 +"""Measure host serial, native PTY syscalls and Zephyr state without retrying.""" +import argparse +import hashlib +from importlib.metadata import version +import json +import os +import re +import select +import signal +import struct +import subprocess +import sys +import time +import tty + +from vel_env import ROOT, ZEPHYR_REV, tool_environment, zephyr_base +from vel_jobs import install_cancel_handlers + + +def crc(payload): + value = 0xFFFF + for byte in payload: + value ^= byte + for _ in range(8): + value = (value >> 1) ^ (0xA001 if value & 1 else 0) + return value.to_bytes(2, "little") + + +def frame(fc, address, value): + pdu = struct.pack(">BBHH", 1, fc, address, value) + return pdu + crc(pdu) + + +def expected(tx, level, coil): + fc = tx[1] + if fc in (5, 6): + return tx + pdu = bytes((1, fc, 1, int(coil))) if fc == 1 else bytes((1, fc, 2, 0, level)) + return pdu + crc(pdu) + + +def classify(data, wanted): + if not data: + return "empty" + length = 5 if len(data) > 1 and data[1] & 128 else len(wanted) + if len(data) < length: + return "partial" + if crc(data[:length-2]) != data[length-2:length]: + return "crc" + if len(data) > length: + return "duplicate" if data == wanted * 2 else "trailing" + if data == wanted: + return "ok" + return "exception" if data[1] & 128 else "mismatch" + + +def wait_slave(proc, path): + until = time.monotonic() + 9 + while time.monotonic() < until and proc.poll() is None: + text = path.read_text(errors="replace") + paths = re.findall(r"/dev/pts/\d+", text) + if "MODBUS_INIT rc=0" in text and len(paths) >= 2: + return paths[:2] + time.sleep(.01) + raise RuntimeError(f"Slave startup failed: {path}") + + +def raw_exchange(port, wire, length, timeout): + port.write(wire) + response = bytearray() + deadline = time.monotonic() + timeout + while len(response) < length: + remaining = deadline - time.monotonic() + if remaining <= 0 or not select.select([port.fileno()], [], [], remaining)[0]: + break + response.extend(port.read(length - len(response))) + if len(response) >= 2 and response[1] & 128: + length = 5 + if port.in_waiting: + response.extend(port.read(port.in_waiting)) + return bytes(response) + + +def main(): + from pathlib import Path + import serial + from pymodbus.client import ModbusSerialClient + import pymodbus.client.serial as serial_client + + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("elf", type=lambda s: Path(s).resolve()) + parser.add_argument("output", type=lambda s: Path(s).resolve()) + parser.add_argument("--transport", choices=["pymodbus", "raw"], default="pymodbus") + parser.add_argument("--timeout", type=float, default=.15) + parser.add_argument("--gap-ms", type=float, default=0) + parser.add_argument("--cycles", type=int, default=250) + parser.add_argument("--ready", action="store_true", help="use native_sim receive-ready control") + parser.add_argument("--monotonic", action="store_true", help="use the PTY client elapsed-time receive window") + parser.add_argument("--no-trace", action="store_true") + args = parser.parse_args() + if not (0 < args.timeout <= 2 and 0 <= args.gap_ms <= 100 and 1 <= args.cycles <= 500): + parser.error("Invalid diagnostic bounds") + if args.monotonic and args.transport != "pymodbus": + parser.error("--monotonic requires --transport pymodbus") + if args.ready or args.monotonic: + sys.path.insert(0, str(ROOT / "host/modbus_master")) + from pty_control import PtySerialClient, wait_rx_ready + + folder = args.output + folder.mkdir(parents=True, exist_ok=False) + metadata = dict(status="FAIL", source_commit=subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=ROOT, text=True).strip(), + zephyr_build_sha=ZEPHYR_REV, receive_ready=args.ready, monotonic_receive=args.monotonic, + zephyr=str(zephyr_base()), timeout_seconds=args.timeout, retries=0, + gap_ms=args.gap_ms, transport=args.transport, cycles=args.cycles, + pymodbus=version("pymodbus"), pyserial=version("pyserial"), + argv=sys.argv, elf_sha256=hashlib.sha256(args.elf.read_bytes()).hexdigest(), + parity="N (PTY only)", baudrate=115200, hardware="NOT TESTED", + trace_enabled=not args.no_trace) + install_cancel_handlers() + env = tool_environment() + process = client = port = control = None + rows = [] + clock_reads = [] + + class ClockProbe: + def time(self): + wall = time.time() + clock_reads.append((time.monotonic_ns(), round(wall * 1_000_000_000))) + return wall + + def __getattr__(self, name): + return getattr(time, name) + + if args.transport == "pymodbus": + serial_client.time = ClockProbe() + serial_events = [] + late = b"" + slave_log = folder / "slave.log" + with slave_log.open("w") as output, (folder / "wire.jsonl").open("w") as trace: + try: + if not args.no_trace: + library = folder / "trace_pty.so" + subprocess.run(["gcc", "-Wall", "-Wextra", "-Werror", "-shared", "-fPIC", + ROOT / "host/modbus_master/trace_pty.c", "-o", library, "-ldl"], + check=True, timeout=25) + env.update(LD_PRELOAD=str(library), VEL_PTY_TRACE=str(folder / "slave-pty.jsonl")) + cmd = [args.elf, "-rt", "-stop_at=110"] + metadata["slave_command"] = list(map(str, cmd)) + process = subprocess.Popen(cmd, env=env, stdout=output, stderr=subprocess.STDOUT, + start_new_session=True) + control_path, data_path = wait_slave(process, slave_log) + metadata["pty"] = int(data_path.rsplit("/", 1)[1]) + control = os.open(control_path, os.O_RDWR | os.O_NOCTTY) + tty.setraw(control) + if args.transport == "pymodbus": + client_type = PtySerialClient if args.monotonic else ModbusSerialClient + client = client_type(data_path, baudrate=115200, parity="N", + timeout=args.timeout, retries=0) + if not client.connect(): + raise RuntimeError("Cannot open slave PTY") + port = client.socket + else: + port = serial.Serial(data_path, 115200, parity="N", timeout=0, + write_timeout=args.timeout) + original_read, original_write = port.read, port.write + + def serial_io(op, function, arg): + start = time.monotonic_ns() + result = function(arg) + data = result if op == "rx" else arg[:result] + serial_events.append(dict(op=op, started_ns=start, ns=time.monotonic_ns(), + bytes=len(data), hex=data.hex())) + return result + + port.read = lambda n: serial_io("rx", original_read, n) + port.write = lambda data: serial_io("tx", original_write, data) + previous_end = None + writes = 0 + for i in range(args.cycles): + level, index = i & 255, i % 8 + cases = [(6, 3, level), (4, 7, 1), (5, index, 0xFF00), (1, index, 1)] + for fc, address, value in cases: + if args.gap_ms: + time.sleep(args.gap_ms / 1000) + tx = frame(fc, address, value) + wanted = expected(tx, level, True) + sequence = len(rows) + 1 + serial_events.clear() + clock_reads.clear() + exception = None + started = time.monotonic_ns() + try: + if args.ready: + wait_rx_ready(control) + if client is None: + raw_exchange(port, tx, len(wanted), args.timeout) + elif fc == 6: + client.write_register(address, value, device_id=1) + elif fc == 4: + client.read_input_registers(address, count=value, device_id=1) + elif fc == 5: + client.write_coil(address, True, device_id=1) + else: + client.read_coils(address, count=value, device_id=1) + except Exception as error: + exception = f"{type(error).__name__}: {error}" + ended = time.monotonic_ns() + observed = b"".join(bytes.fromhex(v["hex"]) for v in serial_events if v["op"] == "rx") + sent = b"".join(bytes.fromhex(v["hex"]) for v in serial_events if v["op"] == "tx") + status = classify(observed, wanted) + if not sent and exception: + status = "pre_tx_error" + elif sent != tx: + status = "tx_mismatch" + elif status == "ok" and exception: + status = "host_parse_error" + row = dict(sequence=sequence, started_ns=started, finished_ns=ended, + gap_ns=started-previous_end if previous_end else None, + fc=fc, address=address, value=value, expected_hex=wanted.hex(), + expected_length=len(wanted), pdu=tx[1:-2].hex(), tx=sent.hex(), + tx_crc_ok=len(sent) >= 5 and crc(sent[:-2]) == sent[-2:], + rx=observed.hex(), rx_bytes=len(observed), + rx_crc_ok=len(observed) >= 5 and crc(observed[:-2]) == observed[-2:], + classification=status, error=exception, serial=serial_events.copy(), + clock_reads=clock_reads.copy() if status != "ok" else [], + clock_offset_span_ns=(max(offsets)-min(offsets)) if + (offsets := [wall-mono for mono, wall in clock_reads]) else None) + previous_end = ended + rows.append(row) + trace.write(json.dumps(row) + "\n") + if status != "ok": + trace.flush() + os.write(control, b"S") + until = time.monotonic() + .35 + while time.monotonic() < until: + if select.select([port.fileno()], [], [], .02)[0]: + late += os.read(port.fileno(), 256) + metadata["late_rx_hex"] = late.hex() + if late: + metadata["late_classification"] = classify(observed + late, wanted) + break + if fc in (5, 6): + writes += 1 + if rows[-1]["classification"] != "ok": + break + metadata["expected_writes"] = writes + metadata["status"] = "PASS" if len(rows) == args.cycles * 4 and all( + row["classification"] == "ok" for row in rows) else "FAIL" + except Exception as error: + metadata["error"] = f"{type(error).__name__}: {error}" + finally: + if control is not None: + try: + os.write(control, b"S") + time.sleep(.04) + except OSError as error: + metadata["stats_error"] = str(error) + finally: + os.close(control) + if client: + client.close() + elif port: + port.close() + if process is not None: + if process.poll() is None: + os.killpg(process.pid, signal.SIGTERM) + try: + process.wait(3) + except subprocess.TimeoutExpired: + os.killpg(process.pid, signal.SIGKILL) + process.wait(3) + metadata["slave_exit"] = process.returncode + text = slave_log.read_text(errors="replace") + metadata["last_stats"] = [line for line in text.splitlines() if line.startswith(("STATS ", "THREAD "))][-8:] + metadata["transactions"] = len(rows) + metadata["successful"] = sum(row["classification"] == "ok" for row in rows) + metadata["window"] = rows[-11:] + metadata["exit_code"] = int(metadata["status"] != "PASS") + (folder / "result.json").write_text(json.dumps(metadata, indent=2) + "\n") + print(folder, metadata["status"], metadata["successful"], "/", len(rows), flush=True) + return metadata["exit_code"] + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/scripts/retest_stage8_2_rtu.py b/scripts/retest_stage8_2_rtu.py new file mode 100644 index 0000000..9631bb4 --- /dev/null +++ b/scripts/retest_stage8_2_rtu.py @@ -0,0 +1,101 @@ +#!/usr/bin/env python3 +"""Run five independent Stage 8.2 protocol sessions and the fault suite.""" +import argparse +import hashlib +import json +import os +from pathlib import Path +import signal +import subprocess +import sys +import time + +from audit_stage8_2_rtu import audit +from vel_env import ROOT, nonroot, tool_environment +from vel_jobs import install_cancel_handlers + + +def run(command, env, log, timeout): + with log.open("w") as output: + print(" ".join(map(str, command)), file=output, flush=True) + process = subprocess.Popen(command, cwd=ROOT, env=env, start_new_session=True, + stdout=output, stderr=subprocess.STDOUT) + try: + return process.wait(timeout) + except BaseException as error: + try: + os.killpg(process.pid, signal.SIGTERM) + process.wait(6) + except ProcessLookupError: + process.wait() + except subprocess.TimeoutExpired: + os.killpg(process.pid, signal.SIGKILL) + process.wait(5) + if isinstance(error, subprocess.TimeoutExpired): + return 124 + raise + + +def main(): + nonroot() + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("output", type=Path, help="new output folder") + args = parser.parse_args() + folder = args.output.resolve() + folder.mkdir(parents=True, exist_ok=False) + env = tool_environment() + env["VEL_WORK_ROOT"] = str(folder / "work") + env["VEL_STAGE8_2_EVIDENCE"] = str(folder / "build-report") + report = {"status": "FAIL", "sessions": {}, "hardware": "NOT TESTED"} + try: + report["build_exit"] = run([sys.executable, ROOT / "scripts/accept_stage8_2.py", + "--mode", "build"], env, folder / "build.log", 380) + if report["build_exit"]: + return 1 + ws = folder / "work/modbus_stage8_2_ws" + report["elf_sha256"] = hashlib.sha256( + (ws / "build/zephyr/zephyr.exe").read_bytes()).hexdigest() + library = folder / "trace_pty.so" + report["tracer_build_exit"] = run( + ["gcc", "-O2", "-Wall", "-Wextra", "-Werror", "-shared", "-fPIC", + ROOT / "host/modbus_master/trace_pty.c", "-o", library, "-ldl"], + env, folder / "tracer-build.log", 30) + if report["tracer_build_exit"]: + return 1 + for name in [*(f"protocol-{i}" for i in range(1, 6)), "fault"]: + mode = name.split("-")[0] + out = folder / name + out.mkdir() + trace = out / "slave-pty.jsonl" + session_env = env | {"VEL_STAGE8_2_EVIDENCE": str(out), "VEL_PTY_TRACE": str(trace)} + session_env["LD_PRELOAD"] = " ".join(v for v in + (str(library), env.get("LD_PRELOAD")) if v) + existing = set((ws / "runs").glob("master-*")) + start = time.monotonic() + code = run([sys.executable, ROOT / "host/modbus_master/test_master.py", mode], + session_env, out / "command.log", 125) + launches = sorted(set((ws / "runs").glob("master-*")) - existing) + session = {"exit": code, "seconds": time.monotonic() - start, + "runs": [str(p) for p in launches], "status": "FAIL"} + report["sessions"][name] = session + try: + if code == 0 and len(launches) == 1: + evidence = out / mode / "acceptance.json" + verdict = (audit(evidence, trace) if mode == "protocol" + else json.loads(evidence.read_text())) + session.update(verdict) + except (OSError, ValueError, KeyError) as error: + session["audit_error"] = str(error) + (out / "result.json").write_text(json.dumps(session, indent=2) + "\n") + print(name, session["status"], flush=True) + if all(item["status"] == "PASS" for item in report["sessions"].values()): + report["status"] = "PASS" + return 0 + return 1 + finally: + (folder / "result.json").write_text(json.dumps(report, indent=2) + "\n") + + +if __name__ == "__main__": + install_cancel_handlers() + sys.exit(main()) diff --git a/zephyr/apps/modbus_rtu_slave/src/main.c b/zephyr/apps/modbus_rtu_slave/src/main.c index 38c5bfb..7d64621 100644 --- a/zephyr/apps/modbus_rtu_slave/src/main.c +++ b/zephyr/apps/modbus_rtu_slave/src/main.c @@ -46,6 +46,18 @@ bool __wrap_modbus_server_handler(struct modbus_context *ctx){ static struct modbus_user_callbacks callbacks={.coil_rd=coil_rd,.coil_wr=coil_wr,.discrete_input_rd=di_rd,.holding_reg_rd=hr_rd,.holding_reg_wr=hr_wr,.input_reg_rd=ir_rd}; static void thread_stats(const struct k_thread *t,void *arg){(void)arg;size_t free=0;int rc=k_thread_stack_space_get(t,&free);printk("THREAD name=%s size=%u unused=%u rc=%d\n",k_thread_name_get((k_tid_t)t),(unsigned)t->stack_info.size,(unsigned)free,rc);} static void stats(void){size_t unused=0;(void)k_thread_stack_space_get(k_current_get(),&unused);gpio_port_value_t v=0;(void)gpio_emul_output_get_masked(gpio,0x30000,&v);printk("STATS requests=%u valid=%u responses=%u errors=%u crc=%u exceptions=%u edges=%u rising=%u falling=%u samples=%u beats=%u de_high=%u de_low=%u direction=%u di=%u do=%u commands=%u unused=%u\n",requests,valid,responses,errors,crc_errors,exceptions,edges,rising,falling,samples,beats,de_high,de_low,(unsigned)(v&0x30000),bitmap(8,4),output(),holding[5],(unsigned)unused);} +/* The PTY exposes TX bytes before Zephyr finishes the half-duplex turn-around. + * Answer on UART0 from main, after the higher-priority UART callback has + * drained any local echo and enabled RX. UART1 carries only RTU frames. + */ +static bool rtu_rx_ready(void) +{ + gpio_port_value_t direction; + + return gpio_emul_output_get_masked(gpio, BIT(16) | BIT(17), &direction) == 0 && + (direction & (BIT(16) | BIT(17))) == BIT(17); +} + int main(void){ if(!device_is_ready(gpio)||!device_is_ready(control))return 2; for(unsigned i=0;i<8;i++)if(gpio_pin_configure(gpio,i,GPIO_OUTPUT_LOW))return 2; @@ -53,8 +65,13 @@ int main(void){ gpio_init_callback(&cb,change,0xf00|BIT(16));(void)gpio_add_callback(gpio,&cb); struct modbus_iface_param p={.mode=MODBUS_MODE_RTU,.server={.unit_id=1,.user_cb=&callbacks},.serial={.baud=115200,.parity=UART_CFG_PARITY_EVEN}}; int iface=modbus_iface_get_by_name(DEVICE_DT_NAME(DT_NODELABEL(rtu)));int rc=modbus_init_server(iface,p);printk("MODBUS_INIT rc=%d iface=%d software=115200_8E1\n",rc,iface);if(rc)return 2; + bool ready_requested = false; int64_t next=0,heartbeat=0,report=1000;while(k_uptime_get()<120000){ - unsigned char c;while(uart_poll_in(control,&c)==0){if(c>='A'&&c<='P'){unsigned bits=c-'A';for(unsigned i=0;i<4;i++)(void)gpio_emul_input_set(gpio,8+i,!!(bits&BIT(i)));printk("INPUT bits=%u\n",bits);}else if(c=='S'){stats();k_thread_foreach(thread_stats,NULL);}} + unsigned char c;while(uart_poll_in(control,&c)==0){if(c>='A'&&c<='P'){unsigned bits=c-'A';for(unsigned i=0;i<4;i++)(void)gpio_emul_input_set(gpio,8+i,!!(bits&BIT(i)));printk("INPUT bits=%u\n",bits);}else if(c=='S'){stats();k_thread_foreach(thread_stats,NULL);}else if(c=='R'){ready_requested=true;}} + if (ready_requested && rtu_rx_ready()) { + uart_poll_out(control, 'R'); + ready_requested = false; + } int64_t now=k_uptime_get();if(holding[0]&&now>=next){samples++;next=now+holding[1];}if(now>=heartbeat){beats++;heartbeat=now+holding[4];}if(now>=report){stats();report=now+1000;}k_msleep(1); }stats();return 0; }