Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response shifted in ucMasterRTURcvBuf #57

Open
oussemagaied opened this issue Apr 19, 2021 · 0 comments
Open

Response shifted in ucMasterRTURcvBuf #57

oussemagaied opened this issue Apr 19, 2021 · 0 comments

Comments

@oussemagaied
Copy link

the problem is triggered following these steps:
1.1 - Plug the USB RS485 interface and run a modbus server script in PC side (uModbus "python")
1.2 - Request reading coils every 3 seconds (Freemodbus running on Atmel SAMDJ17A)
1.3 - Close the script and re-open it on the first read retry after the timeout

So what actually happens here :
Script response is shifted on the ucMasterRTURcvBuf buffer so the response is always incorrect thus read coil timeout
yet the response is not shifted on the USART circular fifo buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant