Forum Discussion
Hi,
Check this out https://stackoverflow.com/questions/59106619/writing-to-uart-serial-port-receiving-response-losing-bytes-when-using-nonblo
The response is coming back at 9600 baud, which is likely much slower per byte than one iteration of the loop requires.
Since the baud rate can't be increased, the only way is to increase iterations. Based on previous post:
800000/493000 = 1.62 iterations per byte (approximately)
400000/230000 = 1.74 iterations per byte (approximately)
Average = (1.62+1.74)/2 = 1.68 iterations per byte (approximately)
Iterations to get required data bytes = 800000*1.68 = 1344739 iterations (approximately)
Let me know if you manage to get required data bytes by increasing iterations.
Best Regards,
Sheng
p/s: If any answer from community or Intel support are helpful, please feel free to mark as solution and give Kudos.
- Jayeshkumar3 years ago
New Contributor
Hi,
I have gone through the link where the issue is with non blocking mode and we are using blocking mode. So it will not apply same to our issue. Please clarify further.
What i understand that in non-blocking mode the execution of code does not halt and iterations keep running while in blocking mode the iteration does not end unless the byte is received.
Please provide some reference link for blocking mode uart serial port if such issues have come in past.
Thanks,