我想参数我的串行设置与2位停止(在一个UWP应用程序)在一个覆盆子Pi 3控制一个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支持两个停止位。
有人有解决方案,还是因为Windows IOT?
谢谢。
发布于 2016-07-03 03:48:08
RPi3上公开的UART不支持两个停止位,只支持一个停止位。查看this answer的引文,以及更多关于公开的UART功能的详细信息。
https://stackoverflow.com/questions/38017231
复制相似问题