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

ModBus requests/responses #39

Open
tibarbosa opened this issue Jul 14, 2023 · 1 comment
Open

ModBus requests/responses #39

tibarbosa opened this issue Jul 14, 2023 · 1 comment

Comments

@tibarbosa
Copy link

CRC is not being properly displayed on this section.

At Raw data we can see the CRC for a request, but on the "ModBus requests/responses" section the CRC appears to be as "0000" (always).

image

@tibarbosa
Copy link
Author

tibarbosa commented Jul 14, 2023

Suggestion

As as temporarily measure, change "check_confirmation" function of file "modbus.c":

if (ctx->monitor_add_item) {
        ctx->monitor_add_item(ctx, 1,
                req[offset - 1],  /* slave */
                function,  /* func */
                ( req[offset + 1] << 8 ) + req[offset + 2], /* addr */
                ( req[offset + 3] << 8 ) + req[offset + 4], /* nb */
                (req[offset + 5] << 8) + req[offset + 6], (req[offset + 5] << 8) + req[offset + 6]); /* crc */
    }

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