我想在 Raspberry Pi 3 上使用 2 位停止(在 UWP 应用程序中)对我的串行设置进行参数化,以控制 DMX512。我的应用程序正在运行,它可以与外部 FTDI 一起使用,但不能与 Raspberry Pi 的 UART 一起使用......当它使用停止位参数执行行时,我收到“参数不正确”错误。
_serialPort->WriteTimeout = _timeOut; _serialPort->ReadTimeout = _timeOut; _serialPort->BaudRate = 250000; _serialPort->Parity = Windows::Devices::SerialCommunication::SerialParity::None; _serialPort->DataBits = 8; _serialPort->StopBits = Windows::Devices::SerialCommunication::SerialStopBitCount::Two; _serialPort->Handshake = Windows::Devices::SerialCommunication::SerialHandshake::None;
在 Linux 下,我知道 RPi3 的 UART 支持 2 个停止位。
有人有解决方案还是仅仅因为 Windows IOT?
谢谢。