Code Monkey home page Code Monkey logo

Comments (6)

pylessard avatar pylessard commented on May 29, 2024

Hi
You are passing an isotp payload directly to the UDS layer. You are lacking a layer of interpretation. The first byte is meant to be consumed by that isotp (transport layer). You can look at my other project for an implementation of that layer. If you input the whole Can message on one side, you will received the UDS payload on the other

Let me know if I can help, you have some doc reading to do first I believe :)

from python-udsoncan.

Upgreydd avatar Upgreydd commented on May 29, 2024

@pylessard thank you - but which one project you're talking about? :D Can you please point me some example or code line to get familiar with? I think you're talking about python-isotp.

from python-udsoncan.

pylessard avatar pylessard commented on May 29, 2024

I have 2 projects, the other one is called python-can-isotp. Which implements the isotp protocol as per above comment.
There are plenty of examples in the documentation, start there

from python-udsoncan.

Upgreydd avatar Upgreydd commented on May 29, 2024

@pylessard sorry for asking stupid questions, but as I understand I need to implement custom rxfn and txfn functions in isotp transport layer? Or totally avoid using isotp and implement own wrapper to handle this translation between isotp and uds?

from python-udsoncan.

pylessard avatar pylessard commented on May 29, 2024

Don't hack it. Isotp headers are not always 1 byte.

You need a custom rxfn/txfn if you have specialized hardware. If you use python-can, the work is already done. See this example : https://udsoncan.readthedocs.io/en/latest/udsoncan/examples.html#using-uds-over-python-can

from python-udsoncan.

Upgreydd avatar Upgreydd commented on May 29, 2024

@pylessard Thank you mate :* Probably have all what I need. Have a nice evening.

from python-udsoncan.

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.