Code Monkey home page Code Monkey logo

j2534's People

Contributors

dschultzca avatar nikolakozina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

j2534's Issues

USB Protocol Info

Thanks for this project, as it seems to be one of those rare sources of information beyond using closed source drivers with the Tactrix OpenPort. From looking at the code it seems it is using a simple ASCII protocol. I'm not so much interested in J2534-API-compatibility and would rather like to use the Tactrix on Linux w/ SocketCAN and on macOS with MacCAN.

Do you have any more info about this serial USB protocol apart from your source?

Android support

Have you ever tested this on an android platform? I would be very curious setting it up on android to allow an android phone to be used as a flashing platform with the OpenPort 2.0 cable.

create readme.md

Would be nice to create a readme.md with a 3 or 5 line summary of what this is - target platform, included functionality etc :)

Bug(s): PassThruReadMsgs() handles timeouts incorrectly

See Comer352L/FreeSSM#23.

There are at least two issues:

1.) If timeout=0 is passed to PassThruReadMsgs(), the function does not return immediately

Section 7.2.5.2. of the J2434 API specification says:
"If a value of 0 is specified the function retrieves up to pNumMsgs messages and returns immediately."

But the current implementation makes the function blocking forever, if no message is received.
The reason for this incorrect behavior seems to be, that the timeout value is passed to libusb_bulk_transfer(), which interprets value 0 as "infinite".

2.) If a short timeout is selected, the last received message from the ECU is returned

Looking into the code, it seems that the success of the USB transfer is not verified at all and hence timeouts are not recognized and handled properly.

I don't have access to an OpenPort 2.0 interface, but if there is something I can do to help, just let me know.

License?

What's the license for this? MIT, GPL?

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.