Code Monkey home page Code Monkey logo

Comments (16)

pylessard avatar pylessard commented on July 18, 2024

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.

pylessard avatar pylessard commented on July 18, 2024

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.

pompushko avatar pompushko commented on July 18, 2024

Hmm

I have:

udsoncan             1.20.1
can-isotp            1.9

Let me check. Thank you :)

from python-udsoncan.

pompushko avatar pompushko commented on July 18, 2024

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

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.

pylessard avatar pylessard commented on July 18, 2024

Are you sure this line raise the issue. check your stack trace.
image

from python-udsoncan.

pompushko avatar pompushko commented on July 18, 2024

Well.... Yes
95 line...

image

image

from python-udsoncan.

pylessard avatar pylessard commented on July 18, 2024

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.

pompushko avatar pompushko commented on July 18, 2024

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.

pylessard avatar pylessard commented on July 18, 2024

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.

pompushko avatar pompushko commented on July 18, 2024

Well. I found the problem. Fixed, my bad

Unfortunately, my tests give me same performance :(

from python-udsoncan.

pylessard avatar pylessard commented on July 18, 2024

What do you pass to PythonIsoTPConnection? Try a notifierBasedCanStack.

from python-udsoncan.

pompushko avatar pompushko commented on July 18, 2024

I use IsotpSocketConnection , not PythonIsoTPConnection

from python-udsoncan.

pylessard avatar pylessard commented on July 18, 2024

You opened an issue saying that the PythonIsotpConnection was slower than IsoTPSocketConenction.

What are you asking?

from python-udsoncan.

pompushko avatar pompushko commented on July 18, 2024

Im asking, is that possible to use all CPU cores when using IsoTPSocketConnection or PythonIsoTpConnection. Or make faster transmission...

from python-udsoncan.

pylessard avatar pylessard commented on July 18, 2024

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.

pylessard avatar pylessard commented on July 18, 2024

Closing this issue. reopen if needed

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.