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

Implementation of the Tester Present service

Open richClubb opened this issue 7 years ago • 3 comments

Implementation of the tester present service and creation of container and methodFactory classes

This might be tricky as this may require some changes to the Uds communications component as this might need some kind of thread and semaphore to work correctly.

richClubb avatar Sep 17 '18 16:09 richClubb

A solution has now been implemented on the tstpresnt_extension branch - subject to review with Richard prior to any merge back to the master branch. The code has been tested as well as it can be at unit test level.

The implementation includes:

  • manual call of testerPresent()
  • automated sending of testerPresent for any diagnostic sessions where testerPresent has been requested
  • automated sending can be cancelled for a given diagnostic session
  • timing between sends can be adjusted per target/diagnostic session
  • supports multiple targets (e.g. if flashing multiple devices via a single script)

beckyc567 avatar Jan 29 '19 12:01 beckyc567

Regression tested via unit tests for all other services, and aside from a few minor fixes required (ECU reset and transExit), all was good - merged the tester present code back down to the master branch, as it doesn't affect anything else if not activated.

beckyc567 avatar Jan 31 '19 10:01 beckyc567

Hi! I see that is an old topic, and I cannot find the branch tstpresnt_extension. I am trying to do something similar on application level, but I am getting some routine issues because the tester_present() message jump in to the middle of my routine response. Do you have it correctly integrated?

Thank you for your great project!

antoniomolram avatar Jul 21 '21 05:07 antoniomolram