从spcomm的readme上抄的
ParityCheck : Boolean
Specifies whether parity checking is enabled. If this member is TRUE,
parity checking is performed and errors are reported
(to OnReceiveError handler).
You can change this value when the comm is open.
Parity : ( None, Odd, Even, Mark, Space )
Specifies the parity scheme to be used. This member can be one of the
following values:
Value Meaning
------- ---------------------
None No parity
Odd Sum of logic '1' bits (data bits and parity bit) is odd
Even Sum of logic '1' bits (data bits and parity bit) is even
Mask Parity bit is always in logic '1'
Space Parity bit is always in logic '0'
You can change this value when the comm is open.
看来应该是可以在打开串口的状态下设置 Parity 的。要注意的是收发两个程序要同步设置Parity 和ParityCheck 。