python-udsoncan icon indicating copy to clipboard operation
python-udsoncan copied to clipboard

"How to Continuously Send 3E Service Requests like CANOE: Is There a Configurable Switch or Is Multi-threading Required?"

Open zhikangfan01 opened this issue 6 months ago • 2 comments

Assuming I am designing the BOOTLOAD function for a UI page, there is a window period after entering a certain service. If the session is not maintained at this time, the service will exit. Is there any configuration locally that can support continuously sending session 3E 80? If not, I will write my own multi-threaded execution. Does the client support multiple processes and will it trigger the capture logic error of invalid messages? Could you please guide and explain

zhikangfan01 avatar May 22 '25 08:05 zhikangfan01

If it were me, for something this simple, I would just setup a raw CAN message of 02 3e 80 with python-can and send it using a Broadcast Manager https://python-can.readthedocs.io/en/stable/bcm.html.

martinjthompson avatar May 22 '25 18:05 martinjthompson

There is no feature for that. You can have your own mechanism for concurrent execution. Be careful as the the client is not thread safe. You may want 2 clients or locks.

You may want to read this too : https://github.com/pylessard/python-udsoncan/issues/255

pylessard avatar May 22 '25 18:05 pylessard