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 server receives but does not send #293

Closed
deid84 opened this issue Oct 16, 2024 · 3 comments
Closed

rtu server receives but does not send #293

deid84 opened this issue Oct 16, 2024 · 3 comments

Comments

@deid84
Copy link

deid84 commented Oct 16, 2024

Hello

I tried your lib in both tcp and rtu mode. While tcp works like a charm, I see that rtu receives and parse correctly the frame but it does not write the answer to the serial port.

I saw that also your rtu server example has this problem, is that a problem emerged with the latest update?

thank you

@uklotzde
Copy link
Member

The process() loops for TCP, RTU, and RTU-over-TCP are almost identical. All send out a response if returned from call().

@uklotzde
Copy link
Member

The new debug logs might provide more details: #294

But I can't spot a bug.

@deid84
Copy link
Author

deid84 commented Oct 17, 2024

yeah I think I figured it out,

I didn't mention that i'm using an embedded device with a rs-485 port, looking at some examples I discovered that I need to manage RTS at low level, so it's not a problem related to your crate but to tokio-serial at a lower level.

Thank you for your support

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