Skip to content

genset: DM13 stops and starts the periodic PGs - #35

Merged
tkeairns merged 1 commit into
mainfrom
feat/j1939-dm13
Nov 26, 2026
Merged

tkeairns merged 1 commit into
mainfrom
feat/j1939-dm13

Conversation

@tkeairns

Copy link
Copy Markdown
Contributor

What

The genset answers J1939-73 DM13 (stop/start broadcast, PGN 57088).

  • A stop for this network (byte 1 bits 1-2) or this data link (bits 7-8), sent to the node or to everyone, holds every periodic PG. Requests are still answered.
  • A start brings them back at once. A stop that is not renewed ends 6 s after the last one.
  • The suspend signal and duration fields are not read.

lib/j1939: a quiet flag (zelos_j1939_quiet) holds the periodic sends and keeps their phase; on_pg now also takes PDU1 PGs sent to everyone and is given the destination. FDCAN1's message RAM goes from 8 to 10 extended filters (DM13 is the ninth), 16 bytes more, still clear of FDCAN2's region.

Why

A service tool's stop/start broadcast command had nothing on the bench to act on it.

Tested

  • just twister: 76 of 76 cases, with a new test_quiet.
  • just test-bench j1939 (Renode): 47 passed, three new DM13 cases (stop to the node, stop to everyone, a renewed stop holding and then ending by itself).
  • Hardware, just hil ... j1939: 47 passed. autosar canopen full obd uds xcp: 108 passed, 4 skipped, as before the filter change.
  • A stop sent by a separate J1939 stack through a CAN adapter: 4.1 s without EEC1 until the start, a DM5 request answered inside it, and 6.1 s after a stop to everyone before EEC1 returned by itself.

A DM13 to the node or to everyone with a stop for this network or data link
holds every periodic PG; requests are still answered. A start brings them
back, and a stop not renewed ends 6 s after the last one. The suspend signal
and duration are not read.

lib/j1939: a quiet flag that holds the periodic sends in phase, and on_pg
takes PDU1 PGs sent to everyone too, with the destination. FDCAN1 gets ten
extended filters for the ninth this needs.
@tkeairns
tkeairns merged commit b58a205 into main Nov 26, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant