Code Monkey home page Code Monkey logo

Comments (3)

pylessard avatar pylessard commented on May 22, 2024 1

Hi,
UDS is only one layer (application layer) in the communication stack. It is normally used over a transport layer, usually IsoTP (ISO-15765). This project only handles the UDS part (there is a another repo to that handle IsoTP). It is not dependent on the operating system, you have the possibility to build the underlying layers yourself.

The way this project handle underlying layers is through an object of type Connection. See the documentation on the subject. You can always write your own connection to handle your specific case or use one of the generic connections that write to a FIFO or a Socket and write the other side of the pipe.

Assuming you use the IsoTP protocol as a transport layer and you use my other project, you can use the PythonCanIsoTPConnection object. This object will bridge the UDS layer with the IsoTP layer. Your problem will be pushed down a layer below and you will need to find a way to bridge the IsoTP layer with your hardware. There, you'll have 2 options

  1. Write 2 functions, one for reception (rxfn) and one for transmission (txfn) and give these functions to the IsoTP layer. You make the bridge between the transport layer and the link layer
  2. Make usage of python-can that is a cross-platform CAN library that works under Windows with the most popular dongle out there . The bridge between IsoTP layer and python-can is already written, check for the CanStack object. If your device is supported by python-can, it should be a no brainer to setup.

Also, note that any implementation of the underlying layers (transport/link layer) executed in the user space won't be able to respect the timings dictated by ISO-15765. Only the Linux kernel module and some other vendor specific libraries can guarantee their respect.

Finally, take the time to read the documentation. Most of what I wrote is already written in there.

Regards

from python-udsoncan.

pylessard avatar pylessard commented on May 22, 2024

Can this issue be closed?

from python-udsoncan.

jwdsoft avatar jwdsoft commented on May 22, 2024

Thanks you my friend.i should've fully read the docs before creating this issue

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.