The CRC16 code in the flow example is strange

I used the example code below.
https://flows.nodered.org/flow/28e9e10c72a9d00f438ec1150734c7a9

The problem arises only with certain strings.

The string looks like this:
0103500001000000000002000000000000000000000000000000000000001200000014000000160017000000000000000000000000000000000000000000000000000000000000000000000000000000000000

If you input this to the CRC16 modbus rtu node, it comes out as follows.

0103500001000000000002000000000000000000000000000000000000001200000014000000160017000000000000000000000000000000000000000000000000000000000000000000000000000000000000D9B

To come out normally, the last part should come out "BD09".

However, if you put the NodeRed example code, it comes out in the form of "D9B".

Even if I try to insert other strings, they all come out normally, but only the code I put in, the CRC modbus code comes out abnormally. Any solution?
1

Almost sounds like something you want to ask first on the author's github page.

1 Like

Not according to this website

Perhaps there is a problem with nodered. As you can see it should come out as 170 bytes, not 169 bytes. Only that string comes out like that. When you do the rest it works fine.

Why?? I suspect that neither Node-Red (nor the makers of) made the node contrib you are testing with... that would be nixator. And it is just over about a month old, so perhaps still in development? Perhaps you should post a bug report there.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.