Skip to content

intg-1866 dtc error codes implementation on vehicle start#121

Merged
zakharenkodmytro merged 7 commits into
mainfrom
intg-1866_dtc-on-start
Jul 18, 2025
Merged

intg-1866 dtc error codes implementation on vehicle start#121
zakharenkodmytro merged 7 commits into
mainfrom
intg-1866_dtc-on-start

Conversation

@JamesReate

Copy link
Copy Markdown
Member

Run DTC error cods command on vehicle start, same flow as we do for fingerprint.

This just re-uses the signals data on the device status topic. This does not set some of the common data or the vehicle make model year as it seems useless for this feature. Will need to double check this isn't a problem for ingest.

Signal name that will be mapped is dtcErrors and the value can be comma delimited - which we'll need to handle for telemetry ingest.

@linear

linear Bot commented Jul 15, 2025

Copy link
Copy Markdown

Comment thread internal/dtcErrors.go
return errors.Wrap(err, fmt.Sprintf("failed to scan for dtc. fail count since boot: %d", ls.failureCount))
}
if len(codes) > 0 {
// send the dtc in the signals using status topic. Seems pointless to send any other common data

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, agree, we probably can at some point of time even get rid of common data, since it is has only a timestamp

Comment thread internal/dtcErrors.go

@zakharenkodmytro zakharenkodmytro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zakharenkodmytro

Copy link
Copy Markdown
Contributor

After upgrading to golangci-lint v2, numerous linter errors arise that were not detected using linter v1. So, I decided to skip fixing it, since it takes too much effort; at this point, it is not a priority.

Ticket created

@zakharenkodmytro zakharenkodmytro merged commit 3624742 into main Jul 18, 2025
1 of 2 checks passed
@JamesReate JamesReate deleted the intg-1866_dtc-on-start branch July 22, 2025 13:47
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.

2 participants