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

problem with serial parity other than none #2

Open
JojoS62 opened this issue Feb 4, 2024 · 0 comments
Open

problem with serial parity other than none #2

JojoS62 opened this issue Feb 4, 2024 · 0 comments

Comments

@JojoS62
Copy link

JojoS62 commented Feb 4, 2024

Is this repo still maintained?
I found this problem when I tried to use this modbus lib with serial and parity even:
https://forums.mbed.com/t/unbufferedserial-sending-with-parity-even-does-not-work/22377/2

The portserial.cpp does not regard the parity argument. I had fixed this, but still no success. Then I found that the enable_output function starts the initialization again and did not restore the parity/wordlength settings, so that the modbus Ack was sent with wrong framing.

I think the the intention of using the enable function is to enable/disable the according ISRs, but the function also does all init stuff.

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

1 participant