Skip to content

Conversation

@elkoled
Copy link

@elkoled elkoled commented Dec 15, 2025

Add CAN ignition for PSA vehicles.
EV and ICE models use two separate bits.

if ((msg->addr == 0x348U) && (len == 8)) {
// bit 41: EV running, bit 42: ICE running
ignition_can = (msg->data[5] & 0x6U) != 0U;
ignition_can_cnt = 0U;
Copy link
Contributor

Choose a reason for hiding this comment

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

does this message have a counter? ideally all new CAN ignition signals have a counter since we're seeing some collisions across brands now

Copy link
Author

Choose a reason for hiding this comment

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

it does not unfortunately.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm is there another one we can use that has one?

Copy link
Author

Choose a reason for hiding this comment

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

I will check, this one works with all PSA models I have seen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants