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

Increasing the Ring buffer size to support Modbus protocol #26

Closed
dhineshkumarmcci opened this issue Mar 4, 2019 · 1 comment
Closed
Assignees

Comments

@dhineshkumarmcci
Copy link
Member

As per the spec of Modbus protocol, it is possible to read 125 registers at once. With the current version of SAMD BSP, BAD CRC has been thrown on reading more than 79 registers (163 bytes). This is because of the limit in Serial buffer size as 164.

To read more than 79 registers (up to 125), we have to increase the serial buffer size SERIAL_BUFFER_SIZE to 256 in RingBuffer.h. The coding part to be updated is below:

#define SERIAL_BUFFER_SIZE 164

On increasing the serial buffer size to 256, Catena 4470 was able to read 125 registers.

@terrillmoore
Copy link
Member

Please submit a pull request, thanks.

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

No branches or pull requests

4 participants