Skip to content

problem with serial parity other than none #2

@JojoS62

Description

@JojoS62

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions