0

I want to parameter my serial settings with 2 bit stop (in a UWP app) on a Raspberry Pi 3 to control a DMX512. My app is working and it works with a external FTDI, but not with the UART from the Raspberry Pi... I get a "parameter is incorrect" error when it execute the line with the stop bit parameter.

        _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;

With Linux, I know that the UART of RPi3 supports 2 stop bits.

Someone has a solution or it's just because of Windows IOT ?

Thanks.

extazoië
  • 41
  • 2

1 Answers1

1

The exposed UART on the RPi3 doesn't support 2 stop bits, only 1 stop bit. Take a look at this answer for citation and more details about the capabilities of the exposed UART.

Community
  • 1
  • 1
Fls'Zen
  • 4,594
  • 1
  • 29
  • 37