Repository navigation
genset: EEC3, CCVS1, status fields, TSC1 override, CI - #33
Merged
Merged
Conversation
…, memory access The genset answers the diagnostic messages a service tool asks for: - Fault lists beside DM1 / DM2: DM6, DM12, DM23, DM27, DM28, from the same two faults by membership (pending, emission-related, permanent). - Readiness and counts consistent with those lists: DM5, DM21, DM26, DM29. - DM19 calibration, DM20 monitor ratios, DM24 supported SPNs, DM25 a freeze frame captured when the first fault sets, DM31 lamps per fault, DM33, DM34, DM56. - DM11 / DM3 clear the active / previously active faults, acknowledged when asked by address; DM22 clears one fault and answers; a fault whose cause remains sets again on the next pass. - DM7 commands a test, answered by DM30. - DM14 / DM15 / DM16 read and write a 64-byte region through a seed and key. lib/j1939: a positive Acknowledgment beside the NACK, PDU1 messages sent to the requester (RTS/CTS when over 8 bytes), reply-only messages, and on_request / on_pg callbacks for requests and commands addressed to the node. DM1 and DM2, their timing and every periodic message are as before. The suite grows to 43 tests; the README lists what the node answers, the memory map and the key.
… queue is full; timers stop at their top - The DM5 / DM21 / DM26 / DM29 / DM34 signals in genset.dbc take short names of their own (ActiveDtcCount, TimeSinceClear, NoxControlArea, ...); the codec is regenerated. - A DM3 / DM11 request that finds the command queue full is left untaken, so one sent to the node is NACKed instead of silently dropped. - The time-since counters saturate instead of wrapping after 49 days. - README: boost pressure control is the monitor sent as not complete; one answer per kind of command in each 50 ms pass.
- DM35 and DM42 list the active DTCs, as DM1. - DM4: one freeze frame, the coolant fault's of the node's history from boot, then that of the first DTC to set. - DM7 with the rationality test identifier (245) is answered by DM58 with the SPN's data as its PG carries it. The suite grows to 44 tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The genset sends the vehicle-side PGs a decoder meets on real trucks and fills the status fields it used to leave not-available:
Every layout is from
dbc/genset.dbc; the codec anddbc/full.dbcare regenerated. Byte positions checked against the Equipment and Tool Institute's J1939DA extract (j1939-84).Why
Sub-byte status fields, a PDU1 message addressed to the node and the most common vehicle PGs were not on the bench, so a decoder's indicator-band and state handling had no hardware traffic to prove itself on.
How tested
just hil can-full/build/full.elf can0 j1939on the hardware bench: 22 passed. New tests: the status fields follow the VCU's mode (idle: low idle governor, pedal at idle, parking brake, PTO standby; drive: pedal, PTO set), TSC1 speed control to 1500 rpm and a limit below idle, both reported in EEC1 and dropped on timeout, CI by BAM.Follow-ups
DM3/DM11 (needs a positive ACK in lib/j1939), a second sender of EEC1 (a second J1939 instance).
J1939-73 diagnostics (later commits)
What: the genset answers the diagnostic messages a service tool asks for.
lib/j1939: positive Acknowledgment, PDU1 messages to the requester, reply-only messages,on_request/on_pgcallbacks.DM1, DM2, their timing and every periodic message are unchanged; VI stays unsupported as the NACK probe.
How tested (final commit):
just test-bench j1939 can-full/build/full.elf(Renode): 44 passed (22 existing tests untouched, 22 new).just hil ... can0 j1939on the board: 44 passed.xcp uds obd canopen autosar full): 108 passed, 4 skipped.just twister: 75 of 75 test cases passed, no warnings. Image: flash 211 KB of 2 MB, RAM 179 KB of 512 KB.Notes: layouts as implemented by public MIT-licensed J1939 stacks. The node uses all 8 extended receive filters of the board's CAN controller, so one more addressed PGN needs a wider filter first. The node keeps one answer per kind of command in each 50 ms pass.