epsilonrt / libmodbuspp

Much more than a C++ wrapper for libmodbus
https://epsilonrt.fr/modbuspp
GNU Lesser General Public License v3.0
73 stars 44 forks source link

Unreachable serial port configuration #8

Closed zkasa closed 3 years ago

zkasa commented 3 years ago

Hi! It is not possible to get configuration '9600 8 N 1'. E parity is always used.

epsilonrt commented 3 years ago

Hi, As specified in the MODBUS OSL standard https://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf, page 12, if no parity, there must be 2 stop bits in order to guarantee that the duration of a character is 11 bits.