7.5. Handling request & response
Every request sent to the SF40/C will receive a response, it is often useful to use the response as a way to
determine if the request was received and processed. Here is the recommended procedure for sending a command
request and reading the response:
Start
Sucess
Send request packet
Wait up to 100ms for
response
No
Yes
Response packet
received?
No
Yes
Response
command ID
matches request
command ID?
Yes
No
Retries expired?
Error: No response received
The values used for timeout or number of retries should be tuned to the specific application.
SF40/C
Product manual
SF40/C -Product manual
|
17 of 30 |
© LightWare Optoelectronics (Pty) Ltd, 2019 |
www.lightware.co.za