Is there a node that does the crc calculation in question?
A quick search of the forum for crc would reveal a few solutions. Alternatively, see the video in this article: Use any npm module in Node-RED • FlowFuse
Thank you for your answer.
I tested the available nodes but they are not suitable in my case, in fact they are all for modbus.
the video is to be deepened ( I have to use subtitles) but I will see to deepen in the morning.
I have some examples of the result I would like to get, the data is sniffed from the system currently in use and I would like to post on node-red, in the table the first column represents the data to be sent in serial, the second column and the third represents what is actually translated into ascii and hex
QPIGS QPIGS.. 51 50 49 47 53 b7 a9
QMOD QMODI. 51 4d 4f 44 49 c1 00
QPIWS QPIWS.. 51 50 49 57 53 b4 da
QPIRI QPIRI.T 51 50 49 52 49 f8 54
PBFT55.4 PBFT55.4.i 50 42 46 54 35 35 2e 34 e0 69
PCVV55.4 PCVV55.4␆␏ 50 43 56 56 35 35 2e 34 06 0f
POP00 POP00.H 50 4f 50 30 30 c2 48
PCP03 PCP03.␙ 50 43 50 30 33 bd 19
The above data I have captured (sniffed) from serial traffic between devices currently in use. Trying the various nodes available gives me completely different results.
I believe there is certainly a solution... I would just like a little help to achieve the goal.
(Have mercy on my language but it is the result of translator)
thanks
Good afternoon. I’m realizing that with unicode characters is a mess...
Is it possible to send on the serial directly the characters in hex? you have to use some nodes or do something else?
You can build a Buffer object and send that.