Git Product home page Git Product logo

Comments (5)

domnulvlad avatar domnulvlad commented on June 12, 2024

Hi. First things first, this protocol isn't really about PIDs, instead it's blocks. Every block has between 0 and 4 values, whatever the module wants. Every module can have a maximum of 255 blocks which may or may not contain anything.

Every module is different, there is no real standard. This means your voltage value you are looking for could be anywhere.

You should try the "Full measurement test", and let it run until the end (block 255). Then you can look for the value you want to figure out what BLOCK_TO_READ and MEASUREMENT_TO_READ to use for the "Single measurement test".

from klinekwp1281lib.

ClusterModzCo avatar ClusterModzCo commented on June 12, 2024

from klinekwp1281lib.

domnulvlad avatar domnulvlad commented on June 12, 2024

I am pretty sure it will be the same for all. Usually important values are kept in the same place for all models.

Since you have VCDS you can find this value easier. You can access the label files (or just open "Meas. Blocks") and find what "Group" (BLOCK_TO_READ) and what measurement (MEASUREMENT_TO_READ) you need. The first measurement is MEASUREMENT_TO_READ=0, the second is MEASUREMENT_TO_READ=1 etc..

from klinekwp1281lib.

domnulvlad avatar domnulvlad commented on June 12, 2024

To clear things up:
This protocol has pretty much nothing in common with the standard OBD protocol and has nothing to do with CAN. There are no such things as PIDs.

For every included example you can select which module you want in the example's "configuration.h" by changing the connect_to_module (example: 0x01 = Engine, 0x02 = Auto Transmission, 0x17 = Instruments etc.).

If you have VCDS, the group/block and measurement correspond directly to what you can see in the "Meas. Blocks".

If you don't have VCDS, run the "03.Full_measurement_test" until the end (block 255) so you find what values all blocks contain.
For example, the RPM can appear in multiple places, you can use whichever one you want, they are all the same.
After you find a location for your value, you can try it in the "05.Single_measurement_test".
After you confirm it works, you can just use the readGroup() function with those numbers directly in your own sketch, as you can see in the example.

from klinekwp1281lib.

domnulvlad avatar domnulvlad commented on June 12, 2024

Assuming I've cleared up the misunderstanding, I will close the issue.

from klinekwp1281lib.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.