09-29-2021 02:59 PM - edited 09-29-2021 03:16 PM
What are the steps to obtain diagnostic information from a Battery Electric Vehicle? I need to measure throttle position in percent.
Would it be anything similar to the WWH-OBD Engine Monitor.vi located in the LabVIEW examples folder? (partial depicted below)
Solved! Go to Solution.
09-29-2021 04:19 PM
@sfrosty wrote:
What are the steps to obtain diagnostic information from a Battery Electric Vehicle?
Contact the manufacturer of the ECU that is responsible for having that information.
You might get lucky and have it just be part of the standard CAN 2.0 data being sent out periodically. But even then you are going to look at a stream of bytes coming in, move the pedal, then see if the stream of bytes moves in a way that you can guess is the position. Pedal position is one I have seen be sent periodically in an ECU in the past, but different manufacturers will choose to do different things.
If the pedal position isn't being sent periodically then there is practically no hope without contacting the manufacturer. There are probably half a dozen protocols on top of the CAN bus that could be used. All with various levels of security that might or might not be used. And that is before you actually get to how to read the data, or how to parse the data.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-30-2021 05:40 AM
@Hooovahh wrote:
@sfrosty wrote:
What are the steps to obtain diagnostic information from a Battery Electric Vehicle?
Contact the manufacturer of the ECU that is responsible for having that information.
You might get lucky and have it just be part of the standard CAN 2.0 data being sent out periodically. But even then you are going to look at a stream of bytes coming in, move the pedal, then see if the stream of bytes moves in a way that you can guess is the position. Pedal position is one I have seen be sent periodically in an ECU in the past, but different manufacturers will choose to do different things.
If the pedal position isn't being sent periodically then there is practically no hope without contacting the manufacturer. There are probably half a dozen protocols on top of the CAN bus that could be used. All with various levels of security that might or might not be used. And that is before you actually get to how to read the data, or how to parse the data.
Thank You! Is there a standard baud rate?
09-30-2021 07:34 AM
@sfrosty wrote:
Thank You! Is there a standard baud rate?
Nope. 500K is probably the most common though.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord