Giter Club home page Giter Club logo

Comments (3)

tonton81 avatar tonton81 commented on June 3, 2024

okay, there are lots of people who have this issue, and most of the time it's because the bus is busy with data, people recommend you hold reset for 5 seconds before you load the filters, however, I have found a solution that is a bit crude but DOES work as im switching from ALL traffic to 1x 29-bit canid, and then back to all traffic, dynamically, and without error.
There should be a note on this as i worked hard debugging and finding out the result by myself

if you create a for loop, and take your masks and filters above, and let it loop twice, you'll have more success changing them with less likely to let traffic slip through. But, even though, maybe it still might not set, I have set my for loop to set masks and filters 3x! and this has resulted in fixing this issue on 500 bitrate bus. This method does not require resetting the canbus shield OR the arduino which is awesome.

Also, you should add the additional info for ISO 15765-4, to specify frame flow should be in readme not necessarily in the examples however, if you send a buf to the ecu requesting vin, or requesting 4 pids, ecu will only send you the first 5 bytes starting at buf[3] position, to get the remaining (and this includes reading VIN(09 02 pid) you MUST send a frame flow ex unsigned char frame_flow = { 0x30, 00,00,00,00,00,00,00 } ( only once is needed) you will get 1 or 2 frames comming in with the remainder of the pid data or vin ascii (char).
Tony

from seeed_arduino_can.

tonton81 avatar tonton81 commented on June 3, 2024

to read vin you'll need to save 3 buffers, concatenate them needed bytes together (exclude the first unneeded bytes from each), then snprintf or memcpy them to a new buffer to be able to print it as ascii

from seeed_arduino_can.

MTEngineer avatar MTEngineer commented on June 3, 2024

Wow, no idea how you figured that out but that's awesome work, thanks!

from seeed_arduino_can.

Related Issues (20)

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.