yaacov / node-modbus-serial

A pure JavaScript implemetation of MODBUS-RTU (and TCP) for NodeJS
ISC License
640 stars 239 forks source link

Modbus RTU - CRC delay #544

Open Ababuy78 opened 9 months ago

Ababuy78 commented 9 months ago

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

yaacov commented 9 months ago

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

Ababuy78 commented 9 months ago

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?

yaacov commented 9 months ago

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:

teddy1565 commented 7 months ago

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

Ababuy78 commented 7 months ago

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!