Windows / .NET way to track / debug serial port?

I have a .NET 2.0 application running on Windows XP Professional. This application uses a serial port to communicate with some custom devices.

For some reason, some of our user PCs have problems with the Serial Port, where it will stop functioning after several weeks of use. Another thing that automatically reboots, that will not work in my script, are there any utilities that can debug / diagnose the serial port? Is there any .NET library that can help with this (can I write my own utility for port debugging)?

Also, does anyone have experience with the following library: Sax CommStudio

+5
source share
4 answers

I have used Sax CommStudio in the past, but now I just use System.IO.Ports.SerialPort.

Do you accidentally use a USB serial port? I had problems with those who go BSOD and much more. In this case, you have a driver problem, not a software problem.

If you want to troubleshoot problems outside your application, you can watch the HHD serial monitor . I think they have a free trial, but if you are seriously developing RS232, it is really worth buying.

+3
source

portmon - http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx

, "" Windows. , - , ...

- "" UART, - USB-Serial ?

2017: 2008 , 64- Windows, .

+2

. / . , .

0
source

You mentioned that you are running Windows XP and .NET 2.0, .NET may well be your problem, since most versions of .NET have bugs affecting serial ports. The minimum version that I recommend for serial ports is .NET 3.5 SP1.

See also: http://blog.zachsaw.com/2010/07/net-serialport-woes.html

0
source

All Articles