You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I run the project on armbian 5.8, I access the virtual COMPORT that is bound to USBotg when opening an exception occurs.
System.IO.Ports 5.0.0
static SerialPort port = new SerialPort("/dev/ttyGS0") { BaudRate = 9600, ReceivedBytesThreshold = 1, ReadTimeout = 500, WriteTimeout = 500, DtrEnable = false };
System.IO.IOException: Invalid argument
at System.IO.Ports.SerialStream.set_DtrEnable(Boolean value)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at TestPort.Program.Main(String[] args)
Beta Was this translation helpful? Give feedback.
All reactions