GithubHelp home page GithubHelp logo

Comments (6)

tttech-miori avatar tttech-miori commented on August 26, 2024

version 0.18.48

from pyxcp.

tttech-miori avatar tttech-miori commented on August 26, 2024

Probably fixed here: #120
To be tested.

from pyxcp.

tttech-miori avatar tttech-miori commented on August 26, 2024

This is fixed by #120
Thanks!

from pyxcp.

christoph2 avatar christoph2 commented on August 26, 2024

Still not perfect -- I've tested the TIMEOUT case with my own cxcp project, there's no infinite loop anymore, but only a single SYNCH/DISCONNECT sequence.

Use-case: disconnect a slave which is potentially connected, just as a matter of fact to reset communication from a known state.

Not sure what potentially in this context should mean -- Or to put it another way: If there was a CONNECT before, the XCP slave must respond to DISCONNECT...

from pyxcp.

tttech-miori avatar tttech-miori commented on August 26, 2024

Thank you for the reply.

Not sure what potentially in this context should mean -- Or to put it another way: If there was a CONNECT before, the XCP slave must respond to DISCONNECT...

True. At the same time, though, the action of disconnecting from a slave may be a preventive measure when you are probing system where its state is unknown i.e. I have my test-system / diagnostics tool and I issue a preventive "DISCONNECT" before attempting a new connection. In this situation, the slave is not going to answeron DISCONNECT.
"Potentially" referred to the possibility of having a slave that is still in connected state regardless of pyxcp (e.g. diagnostic tool or test system did not properly shutdown xcp)

Still not perfect -- I've tested the TIMEOUT case with my own cxcp project, there's no infinite loop anymore, but only a single SYNCH/DISCONNECT sequence.

Yes, actually you are right, I was just ok the software to not indefinitely block :-).
We should try that 2 times I guess based on the specification: DISCONNECT -> timeout t1 -> SYNCH -> timeout t1 -> timeout t1 -> DISCONNECT -> timeout t1 -> SYNCH -> timeout t1 -> timeout t1 -> END

NOTE: my slave runs the Vector XCP Basic implementation.

from pyxcp.

christoph2 avatar christoph2 commented on August 26, 2024

OK, I see.

To support such scenarios, I've added a new config-option (Commit d0bc55d , Release 0.18.59)

  • DISCONNECT_RESPONSE_OPTIONAL

TOML

DISCONNECT_RESPONSE_OPTIONAL = true 

JSON

"DISCONNECT_RESPONSE_OPTIONAL": true

from pyxcp.

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.