Skip to content

J1939: VP1/VP2 PG fixes#626

Open
SamantazFox wants to merge 4 commits intolinux-can:masterfrom
SamantazFox:patch-1
Open

J1939: VP1/VP2 PG fixes#626
SamantazFox wants to merge 4 commits intolinux-can:masterfrom
SamantazFox:patch-1

Conversation

@SamantazFox
Copy link
Copy Markdown

@SamantazFox SamantazFox commented May 5, 2026

Please refer to the commit messages for more details!

Note that I added the missing unused bytes to VP2, which as per the J1939 must always be 0xFF, but I'm not sure where to add that in the code (I don't see where the actual message data is built).

Edit: for reference, here are the VP1 and VP2 layouts
VP1 layoutVP2 layout

Since J1939DA:SEP2015, the repetition rate of VP1 has been changed to 1s.
Lat/longitude parameters have a range of -210 to +211.1081215
Add 3 missing unused bytes (for a message len of 8) to the j1939 VP2 struct, as well as range information for the existing parameters.
@olerem
Copy link
Copy Markdown
Contributor

olerem commented May 6, 2026

Hi @SamantazFox , thank you for your work!

The message data is build in j1939_vp2_get_data().

Are you able to validate this services against any existing devices? Not required, just curious :)

@SamantazFox
Copy link
Copy Markdown
Author

@olerem you're welcome :)

The message data is build in j1939_vp2_get_data().

I added the relevant logic in there.

Are you able to validate this services against any existing devices? Not required, just curious :)

Unfortunately no, I don't have such device handy. My work usually consists of working on vehicles that we don't own.

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