Synch timeout for task waiting semaphore #106
Replies: 2 comments
-
|
@orbitcoms |
Beta Was this translation helpful? Give feedback.
-
|
But then the timeout could happen any time and not after the uart sends? So it needs to be like this
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Mair,
I was looking again at examples of using the Binary semaphores in the course and have a question about the timeout while waiting to "GET" a semaphore.
Can you synch the delay so it starts at a specific point?
What I am trying to do is send a UART data packet to an external device and process received packet but the time frame for the received packet can vary from several ms to several hundred ms and if I don't receive the response within say 10 seconds of sending the UART data then I want to retry. If the wait routine is not in synch with the UART TX then it could be timing out when it should be waiting. Hope this make sense
Or is this not possible and needs to implement a timer or something?
Beta Was this translation helpful? Give feedback.
All reactions