다음을 통해 공유

USB포트를 통한 RS485 통신 문제 문의

익명
2013-12-18T06:25:25+00:00

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

이 문제로 몇개월째 고생하고 있습니다.

죄송하지만 꼭좀 도움주십시요.

감사합니다.

연락처 ******** 박권수

**개인정보 보호를 위해 전화번호가 삭제되었습니다.**

가정용 Windows | 이전 Windows 버전 | 인터넷 및 연결

잠긴 질문. 이 질문은 Microsoft 지원 커뮤니티에서 마이그레이션되었습니다. 질문이 도움이 되었는지 여부에 대해 응답할 수는 있지만, 메모나 회신을 추가하거나 질문을 따를 수는 없습니다.

댓글 0개 설명 없음

답변 1개

정렬 기준: 가장 유용함
  1. 익명
    2013-12-19T01:55:10+00:00

    안녕하세요, 권수박 님

    Windows 7 사용 중 RS485 통신 시 가끔 통신이 끊기고 응용 프로그램이 정지되는 문제로 문의를 주셨습니다.

    문의주신 내용의 경우, Microsoft Community 에서 해당 로그 분석에 도움을 드리기에는 다소 어려움이 있는 점 양해 부탁드리며, 해당 문의에 대해서는 통신 프로그램 개발자측을 통해서 문의해보시기 바랍니다.

    추가적으로,

    아래의 MSDN 포럼이나 TechNet 포럼을 참고해보실 수 있습니다.

    MSDN 포럼

    http://social.msdn.microsoft.com/Forums/ko-kr/categories/

    TechNet 포럼

    http://social.technet.microsoft.com/Forums/ko-kr/categories

    추가적인 내용이 있다면 하단의 **[응답]**버튼을 눌러 회신해주시기 바랍니다.

    감사합니다.

    응답이 문제 해결에 도움이 되었다면,아래에 있는 **[답변으로 표시]**버튼을 눌러 주시기 바랍니다.이는 유사한 증상을 겪는 다른 사용자들에게 도움이 될 수 있습니다.

    이 대답이 도움이 되었나요?

    댓글 0개 설명 없음