node-modbus-serial icon indicating copy to clipboard operation
node-modbus-serial copied to clipboard

Modbus RTU - CRC delay

Open Ababuy78 opened this issue 1 year ago • 5 comments

I am observing a 500ms delay between any read command (FC1, FC2, FC3 or FC4) and its respective CRC.

Is this behaviour expected? It seems odd.

Captura de ecrã 2024-02-05 081202

Ababuy78 avatar Feb 05 '24 08:02 Ababuy78

hi, thank you for the issue, can you find more information and fix if needed ?

yaacov avatar Feb 05 '24 08:02 yaacov

I could try, but I am not proficient at javascript so it would require an unnecessary large amount of time to immerse my self on this project to find the issue and correct it. I would prefer if someone familiarized with the project to correct this issue. Is that ok?

Ababuy78 avatar Feb 05 '24 09:02 Ababuy78

Sure, I added a "help wanted" label, It will let people know that can look at this issue and comment if they have more information, or find a fix.

thank you again for noticing this issue and reporting it :green_heart:

yaacov avatar Feb 05 '24 09:02 yaacov

HI, I want check a question Are you using modbus-serial self-host a ModbusRTU Slave?

teddy1565 avatar Apr 09 '24 06:04 teddy1565

Hello! No, I was using an external emulator. As I could not see any problem with the modbus-serial library I connected directly to a PLC and the problem was solved. It seems that the issue was using the same machine to test everything with a serial port emulator in the middle. I believe this issue can be closed. Thank you!

Ababuy78 avatar Apr 09 '24 07:04 Ababuy78