Difference between revisions of "Protocol decoder:Sae j1850 vpw"

From sigrok
Jump to navigation Jump to search
(add info box, add category, move links to resources)
Line 1: Line 1:
TODO  this page needs some more attention
{{Infobox protocol decoder
| id              = sae_j1850_vpw
| name            = SAE J1850 VPW
| description    = SAE J1850 Variable Pulse Width 1x and 4x.
| status          = planned
| license        = GPLv2+
| source_code_dir = sae_j1850_vpw
| input          = logic
| output          =
| probes          = data
| info            =
}}


SAE J1850 VPW is one of several signal protocols mandated by OBD2/EOBD legislation, which requires automotive vehicle manufacturers from 1996 (USA) or 2001 (Europe) to provide access to the vehicles data bus via a standard 16 pin SAE J1962 connector. The purpose originally being to allow testing and diagnostics from the "on-board diagnostic" capabilities (which were also required by the legislation), of the control module responsible for the vehicles emission control system (typically the PCM, Powertrain Control Module). However the VPW databus also serves many other purposes.  
SAE J1850 VPW is one of several signal protocols mandated by OBD2/EOBD legislation, which requires automotive vehicle manufacturers from 1996 (USA) or 2001 (Europe) to provide access to the vehicles data bus via a standard 16 pin SAE J1962 connector. The purpose originally being to allow testing and diagnostics from the "on-board diagnostic" capabilities (which were also required by the legislation), of the control module responsible for the vehicles emission control system (typically the PCM, Powertrain Control Module). However the VPW databus also serves many other purposes.  
Line 7: Line 18:
* VPW (Variable Pulse Width), 10.4 kb/s, typically used by General Motors.
* VPW (Variable Pulse Width), 10.4 kb/s, typically used by General Motors.
The way the bits are represented on the bus and voltage level is different between them. This decoder is for the VPW variety.
The way the bits are represented on the bus and voltage level is different between them. This decoder is for the VPW variety.
IRC user pman92 reported on 1/5/2020 that antus created a J1850 VPW decoder in 2016, which needs migration to PD API v3 and mainlining.
pman92 has created a branch of sigrokdecode and commited the 2016 version of the PD, as well as commited an attempted change to v3 API:
https://github.com/pman92/libsigrokdecode/tree/master/decoders/vpw
There is also a branch of sigrok-dumps with example captures containing VPW data packets:
https://github.com/pman92/sigrok-dumps/tree/master/vpw/
Discussion about the decoder can be found here:
https://pcmhacking.net/forums/viewtopic.php?f=3&t=4761
Antus has partially completed migration to PD V3
https://bitbucket.org/antuspcm/sigrok-vpw-decoder/commits/


= Resources =
= Resources =


* [https://pcmhacking.net/forums/viewtopic.php?f=3&t=4761 PCM hacking forum thread]
* [https://bitbucket.org/antuspcm/sigrok-vpw-decoder/commits Antus' partial migration], [https://github.com/pman92/libsigrokdecode pman92's repo] (see the decoders/vpw/ directory)
* [https://github.com/pman92/sigrok-dumps pman92's example captures] (see the vpw/ directory)
* https://www.irjet.net/archives/V4/i7/IRJET-V4I791.pdf
* https://www.irjet.net/archives/V4/i7/IRJET-V4I791.pdf
* http://www.fastfieros.com/tech/vpw_communication_protocol.htm
* http://www.fastfieros.com/tech/vpw_communication_protocol.htm
[[Category:Protocol decoder]]

Revision as of 20:19, 7 July 2020

sae_j1850_vpw
Name SAE J1850 VPW
Description SAE J1850 Variable Pulse Width 1x and 4x.
Status planned
License GPLv2+
Source code decoders/sae_j1850_vpw
Input logic
Probes data

SAE J1850 VPW is one of several signal protocols mandated by OBD2/EOBD legislation, which requires automotive vehicle manufacturers from 1996 (USA) or 2001 (Europe) to provide access to the vehicles data bus via a standard 16 pin SAE J1962 connector. The purpose originally being to allow testing and diagnostics from the "on-board diagnostic" capabilities (which were also required by the legislation), of the control module responsible for the vehicles emission control system (typically the PCM, Powertrain Control Module). However the VPW databus also serves many other purposes.

SAE J1850 came in 2 varieties:

  • PWM (Pulse Width Modulation), 41.6 kb/s, typically used by Ford.
  • VPW (Variable Pulse Width), 10.4 kb/s, typically used by General Motors.

The way the bits are represented on the bus and voltage level is different between them. This decoder is for the VPW variety.

Resources