Debug pages switch between each other: one tab bar on top of /status.html, /can.html and /sim.html (views/_debug_nav.erb). CAN analyzer: a trace of every frame as it came (the server keeps the last 1000, GET /api/can?since=<seq> gives the new ones), each byte colored by what it is and decoded by its CANopen role — SDO command, index:subindex, expedited payload, segments, abort codes, byte 0 in bits; NMT, heartbeat, EMCY, SYNC, PDOs; who sent it, Δ ms, pause, clear, the frame filter
This commit is contained in:
1 parent
7901d75ff1
commit
7fdc0114e6
7 files changed
+153
-9
No files matched your search
@@ -66,6 +66,8 @@ class CanTest < Minitest::Test
|
||||
tpdo = snapshot[:frames].find { |f| f[:id] == 0x181 }
|
||||
assert_equal [:tpdo1, 1, 2, 0.5], tpdo.values_at(:role, :node, :count, :interval)
|
||||
assert_equal({ code: 0x8130, register: 0x11, at: 3.0 }, snapshot[:nodes][5][:emcy])
|
||||
assert_equal [3, 4], store.snapshot(since: 2)[:log].map { |f| f[:seq] }
|
||||
assert_equal "3081" "11", store.snapshot(since: 3)[:log].first[:data]
|
||||
end
|
||||
|
||||
def test_a_node_missing_3_heartbeats_is_silent_until_heard_again
|
||||
|
||||
Reference in new issue
Block a user