Comments (16)
Download latest isotp package (v2.0.3)
Update udsoncan to 1.21.1 (1.21.2 will release soon)
You should get an improvement
from python-udsoncan.
Just so you know, when you'll update udsoncan, make sure to pass an isotp.Address
if you use the IsotpSocketConnection
. IT is now required. See https://udsoncan.readthedocs.io/en/latest/udsoncan/questions_answers.html#my-isotpsocketconnection-raises-an-error-after-updating-udsoncan
from python-udsoncan.
Hmm
I have:
udsoncan 1.20.1
can-isotp 1.9
Let me check. Thank you :)
from python-udsoncan.
Just so you know, when you'll update udsoncan, make sure to pass an
isotp.Address
if you use theIsotpSocketConnection
. IT is now required. See https://udsoncan.readthedocs.io/en/latest/udsoncan/questions_answers.html#my-isotpsocketconnection-raises-an-error-after-updating-udsoncan
Well, This is strange, I have this code:
conn = IsoTPSocketConnection(args.interface, isotp.Address(isotp.AddressingMode.NormalFixed_29bits, rxid=0xF1, txid=args.ecuaddress), tpsock=tpsock)
And I still get:
RuntimeError: Provide an isotp.Address to the IsoTPSocketConnection. The interface has changed in a non-backward compatible way and this is now required.
from python-udsoncan.
Are you sure this line raise the issue. check your stack trace.
from python-udsoncan.
Well.... Yes
95 line...
from python-udsoncan.
I don't know what to say. Something else is going on. The test condition is quite straight forward, I even have unit test that validates it.
print kwargs inside the IsotpSocketConenction constructor please.
from python-udsoncan.
I don't know what to say. Something else is going on. The test condition is quite straight forward, I even have unit test that validates it.
print kwargs inside the IsotpSocketConenction constructor please.
Could you, please, tell me how to do that?
Thank you
from python-udsoncan.
edit the file defining IsotpSocketConnection
. You can find it by looking at udsoncan.connections.__file__
then do print(kwargs)
inside of __init__
from python-udsoncan.
Well. I found the problem. Fixed, my bad
Unfortunately, my tests give me same performance :(
from python-udsoncan.
What do you pass to PythonIsoTPConnection? Try a notifierBasedCanStack.
from python-udsoncan.
I use IsotpSocketConnection , not PythonIsoTPConnection
from python-udsoncan.
You opened an issue saying that the PythonIsotpConnection was slower than IsoTPSocketConenction.
What are you asking?
from python-udsoncan.
Im asking, is that possible to use all CPU cores when using IsoTPSocketConnection or PythonIsoTpConnection. Or make faster transmission...
from python-udsoncan.
Using more CPU cores will not give you a faster transmission. The bottleneck is not the CPU.
To have a faster transmission, start by identifying the cause of the slowness. IsoTP protocol has some timing parameter that can be adjusted. Most likely that the receiving party is requiring the sender to not go too fast.
Start by sharing a can log of a transmission and indicate what you consider slow.
from python-udsoncan.
Closing this issue. reopen if needed
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
- 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
- SocketConnection cannot be closed HOT 7
- 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.