Page 1 of 1

Error with Davis/Linux Mint

Posted: Wed 26 Aug 2020 9:16 pm
by KPAERIE18
When I start the software, it works for about a minute or two, then throws the following error:

System.IO.IOException: Resource temporarily unavailable
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00012] in <bd46d4d4f7964dfa9beea098499ab597>:0
at System.IO.Ports.SerialPortStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x0008d] in <bd46d4d4f7964dfa9beea098499ab597>:0
at System.IO.Ports.SerialPort.read_byte () [0x00007] in <bd46d4d4f7964dfa9beea098499ab597>:0
at System.IO.Ports.SerialPort.ReadChar () [0x00010] in <bd46d4d4f7964dfa9beea098499ab597>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:ReadChar ()
at CumulusMX.DavisStation.WaitForACK (System.IO.Ports.SerialPort serialPort, System.Int32 timeoutMs) [0x00029] in <7fec7c98302d42e5b5feaae48ba3f4c7>:0
at CumulusMX.DavisStation.SendLoopCommand (System.IO.Ports.SerialPort serialPort, System.String commandString) [0x00066] in <7fec7c98302d42e5b5feaae48ba3f4c7>:0
at CumulusMX.DavisStation.Start () [0x0018d] in <7fec7c98302d42e5b5feaae48ba3f4c7>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate

Attached are the MXDiags Files...

Re: Error with Davis/Linux Mint

Posted: Fri 28 Aug 2020 4:31 pm
by mcrossley
It looks like the serial port was disconnected from Linux. The latest version of MX (3.8.3) should be more robust in handling this gracefully and reconnecting when the port comes back.