Open ArthurOliveiraBR opened 7 years ago
I also encountered this problem, this is most probably a bug (or unsupported feature) in Windows IoT
Edit: it is possible to set it on external devices (USB - Serial converters) At the internal serial port it isn't possible to set StopBits.
Hi folks,
I've tried to modify the "SerialSample" to use two stop bits instead of the default configuration in a RaspberryPI 3 Model B and any value different from "SerialStopBitCount.One" throws an exception as below:
'serialPort.StopBits = SerialStopBitCount.Two' threw an exception of type 'System.ArgumentException' Data: {System.Collections.ListDictionaryInternal} HResult: -2147024809 HelpLink: null InnerException: null Message: "Value does not fall within the expected range." ParamName: null Source: "Windows" StackTrace: " at Windows.Devices.SerialCommunication.SerialDevice.put_StopBits(SerialStopBitCount value)"
My understanding is that it's not allowing any "non-zero' value (SerialStopBitCount.One = 0, SerialStopBitCount.OnePointFive = 1 and SerialStopBitCount.Two = 2).
Anyone else have faced the same issue before? Can someone try to reproduce it?
Entire function source code as reference:
Thanks in advance!