The bytesize attribute in a sequential class is defined as the number of data bits used for this connection. If I enable odd parity, will it convert one of the specific data bits to indicate parity? Or does he just add another bit between the start and stop bits?
import serial
my_com = serial.serial(bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE)
[ START_BIT, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, STOP_BIT ]
my_com.parity = serial.PARITY_ODD
[ START_BIT, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, PARITY, STOP_BIT ]
[ START_BIT, DB0, DB1, DB2, DB3, DB4, DB5, DB6, PARITY, STOP_BIT ]
Any help would be greatly appreciated. Thanks
source
share