Comments (3)
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
- 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 - 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.
Can this issue be closed?
from python-udsoncan.
Thanks you my friend.i should've fully read the docs before creating this issue
from python-udsoncan.
Related Issues (20)
- ascii DidCodec pass parameters HOT 1
- DID codec behavior for DIDs not in DidConfig HOT 25
- ReadDataByIdentifier.py TimeoutException Did not receive response in time HOT 2
- send uds req with suppress postive response bit failed HOT 3
- Allow requesting a did without decoding it HOT 11
- Unexpected UDS Authentication message byte order(Subfunction 0x05,0x6) HOT 12
- IsoTPSocketConnection can not be closed with tpsock in blocking mode HOT 5
- struct.error on change_session interpret_response HOT 9
- PythonIsoTpConnection [cilent.py]send_request() tigger TimeoutException,then ISOTP rxthread_task run isotp_send() HOT 7
- IsoTPSocketConnection doesn't work with can-isotp versions 2 and up HOT 9
- Performance tests HOT 16
- When using CAN as a diagnostic channel,other application messages are sent periodically on the bus, calling the client.change_session interface will block at the self.conn.empty_rxqueue() interface. HOT 3
- cannot import name 'Literal' from 'typing' (/usr/lib/python3.7/typing.py) HOT 8
- Act as server and parse python-can messages HOT 6
- No data received: [TimeoutException] Problem HOT 12
- ReadDataByIdentifier: no codec.encode() ? HOT 6
- Security access SAPR response not correctly interpreted HOT 3
- WriteDataByIdentifier service execution returned a negative response IncorrectMessageLengthOrInvalidFormat (0x13) when data length is correct HOT 4
- Adding parameter to Communication Control Service(0x28) HOT 10
- SecurityAccess mishandes a level value of 0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-udsoncan.