GithubHelp home page GithubHelp logo

Comments (3)

pylessard avatar pylessard commented on August 21, 2024

Hi.

  1. Because you did not receive a response from the server. Check the CAN log and make sure that you receive data within proper timing with CAN ID that matches your ISOTP stack.

  2. Because the client code raise a TimeoutException when the underlying Connection object raises one. It's just how the code is written. See

    except TimeoutException:
    if timeout_type_used == 'single_request':
    timeout_name_to_report = 'P2* timeout' if using_p2_star else 'P2 timeout'
    elif timeout_type_used == 'overall':
    timeout_name_to_report = 'Global request timeout'
    else: # Shouldn't go here.
    timeout_name_to_report = 'Timeout'
    raise TimeoutException('Did not receive response in time. %s time has expired (timeout=%.3f sec)' % (timeout_name_to_report, timeout_value))

I can and will rearrange the code to get a single error message to avoid confusion.

from python-udsoncan.

WSXXB-main avatar WSXXB-main commented on August 21, 2024

Thank you for your answer.

 I can understand ISOTP and Client All Raise TimeoutException because the bus really does not respond to the message.
As for the second error:the software Pycharm reports an error "During handling of the above exception, another exception"  .    Can be understood as when  ISOTP & Client all Raise TimeoutException, this second error I encountered is normal?  If the answer is YES, Please close the problem。

from python-udsoncan.

pylessard avatar pylessard commented on August 21, 2024

Yes, the second error. You can see in the snippet of code I previously posted that the second exception is raised on purpose.

Will close 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.