Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master.close() delay #209

Open
fross opened this issue Feb 14, 2025 · 0 comments
Open

Master.close() delay #209

fross opened this issue Feb 14, 2025 · 0 comments

Comments

@fross
Copy link

fross commented Feb 14, 2025

Hi,

I'm making use of pyxcp and udsoncan in unit tests.

Question:
Is there a way (or configuration) that can be used to reduce the time it takes for closing Master?

Connect + disconnect using IXXAT (pyxcp):

2025-02-14 13:05:12,924 - MyLogger  - Connecting...
2025-02-14 13:05:14,434 - can.ixxat  - CAN Filters: None
2025-02-14 13:05:14,434 - can.ixxat  - Searching for first available device
2025-02-14 13:05:14,520 - can.ixxat  - Using unique HW ID b'100023418'
2025-02-14 13:05:14,520 - can.ixxat  - Initializing channel 0 in shared mode, 16 rx buffers, 16 tx buffers
2025-02-14 13:05:14,531 - can.ixxat  - Initializing control 0 bitrate 1000000
2025-02-14 13:05:14,565 - MyLogger  - Connected
2025-02-14 13:05:14,565 - MyLogger  - Disconnecting...
2025-02-14 13:05:14,565 - MyLogger  - Master disconnecting...
2025-02-14 13:05:14,575 - MyLogger  - Master disconnected
2025-02-14 13:05:14,575 - MyLogger  - Master closing...   ***** takes ~5 seconds *****
2025-02-14 13:05:20,593 - MyLogger  - Master closed
2025-02-14 13:05:20,594 - MyLogger  - Disconnected

Connect + disconnect using IXXAT (udsoncan):

2025-02-14 13:05:43,039 - MyLogger  - Connecting...
2025-02-14 13:05:43,055 - can.ixxat  - CAN Filters: None
2025-02-14 13:05:43,055 - can.ixxat  - Searching for first available device
2025-02-14 13:05:43,123 - can.ixxat  - Using unique HW ID b'100023418'
2025-02-14 13:05:43,123 - can.ixxat  - Initializing channel 0 in shared mode, 16 rx buffers, 16 tx buffers
2025-02-14 13:05:43,123 - can.ixxat  - Initializing control 0 bitrate 1000000
2025-02-14 13:05:43,127 - Connection  - Connection opened
2025-02-14 13:05:43,127 - MyLogger  - Connected
2025-02-14 13:05:43,128 - MyLogger  - Disconnecting...
2025-02-14 13:05:43,128 - MyLogger  - UDS client closing...
2025-02-14 13:05:43,128 - Connection  - Connection closed
2025-02-14 13:05:43,128 - MyLogger  - UDS client closed
2025-02-14 13:05:43,128 - MyLogger  - CAN bus shutting down...
2025-02-14 13:05:44,145 - MyLogger  - CAN bus shutdown
2025-02-14 13:05:44,145 - MyLogger  - Disconnected

I understand this may simply be due to protocol differences between XCP and UDS. My test suite is quite exhaustive and reducing the disconnection delay of the XCP master would speed things up tremendously.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant