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

RTU Framing - Inter-frame delay/space #26

Open
ekawahyu opened this issue Jan 5, 2018 · 2 comments
Open

RTU Framing - Inter-frame delay/space #26

ekawahyu opened this issue Jan 5, 2018 · 2 comments

Comments

@ekawahyu
Copy link

ekawahyu commented Jan 5, 2018

I have a question about the RTU framing. Which file should I look at to modify the 1.5 and 3.5 chars of inter-frame delay time? I was expecting to see in Transport.js or RtuTransport.js, but it was not there.

@morkai
Copy link
Owner

morkai commented Jan 5, 2018

It's exposed in the RtuTransport as the eofTimeout option - a number of milliseconds after the last received byte after which end of frame is assumed. It's Node.js so you have to keep in mind that setTimeout(() => {}, 1) might trigger after 1ms or 1s.

@ekawahyu
Copy link
Author

ekawahyu commented Jan 5, 2018

Yes, I understand completely that it would not be able to strictly follow the delay timing requirement by Modbus spec, but I was curious about where to look for it in case I need to modify it. Let me look at the eofTimeout.

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

2 participants