USB포트를 통한 RS485 통신을 하고 있습니다.
그런데 가끔 통신이 끊기고 응용 프로그램이 정지됩니다.
에라로그를 로깅하였는데 검토하시고 혹시 해결 방안이 있으면 조언 부탁드립니다.
에라 로그내용
2013-12-06 오후 1:42:06
System.IO.IOException: 스레드 종료 또는 응용 프로그램 요청 때문에 I/O 작업이 취소되었습니다.
위치: System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
위치: System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
위치: System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
위치: System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
위치: WinFirm.Communication.Serial.ModbusRTU.ModbusRTU.WorkProc()
스레드 종료 또는 응용 프로그램 요청 때문에 I/O 작업이 취소되었습니다.
위치: System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
위치: System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
위치: System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
위치: System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
위치: WinFirm.Communication.Serial.ModbusRTU.ModbusRTU.WorkProc()
2013-12-06 오후 1:42:06
System.UnauthorizedAccessException: 포트에 대한 액세스가 거부되었습니다.
위치: System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
위치: System.IO.Ports.SerialStream.BeginReadCore(Byte[] array, Int32 offset, Int32 numBytes, AsyncCallback userCallback, Object stateObject)
위치: System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
위치: System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count)
위치: System.IO.Ports.SerialPort.Read(Byte[] buffer, Int32 offset, Int32 count)
위치: WinFirm.Communication.Serial.ModbusRTU.ModbusRTU.WorkProc()
포트에 대한 액세스가 거부되었습니다.
위치: System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
위치: System.IO.Ports.SerialStream.BeginReadCore(Byte[] array, Int32 offset, Int32 numBytes, AsyncCallback userCallback, Object stateObject)
위치: System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
위치: System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count)
위치: System.IO.Ports.SerialPort.Read(Byte[] buffer, Int32 offset, Int32 count)
위치: WinFirm.Communication.Serial.ModbusRTU.ModbusRTU.WorkProc()
MODBUS END
이 문제로 몇개월째 고생하고 있습니다.
죄송하지만 꼭좀 도움주십시요.
감사합니다.
연락처 ******** 박권수
**개인정보 보호를 위해 전화번호가 삭제되었습니다.**