Comments (6)
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.
@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.
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.
@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.
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.
@pylessard Thank you mate :* Probably have all what I need. Have a nice evening.
from python-udsoncan.
Related Issues (20)
- 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
- 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
- SocketConnection cannot be closed HOT 6
- P2 timer issue on client.transfer_data(block_number, data HOT 22
- Runtime Error: Connection is not open HOT 2
- TimeoutError: timed out 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.