Windows 7 Forums


Reply
Thread Tools

Momentary hang/freeze causes serial communication breakdown?

 
 
m0rtician m0rtician is offline
New Member
Join Date: Jun 2011
Posts: 1
Thanked: 0
 
      06-27-2011
Dear Everyone,

I have been tasked with fixing an error in a software product that my company sells and I desperately need some help. The software is used for controlling a machine and uses serial (rs-232) communication for doing so. The PC and the device continuously exchanges data and if either end detects that no new data has been received with in a 5 second timeout period the connection is dropped. Some users complains that the connection is dropping rather frequently (2-3 times per 7-8 hours). What happens is that the serial port stops working for a few seconds (enough to trigger a disconnect). This happens with both built-in serial ports and USB-to-serial adaptors.

I have been doing a lot of testing to see if I could reproduce the problem or come up with a generally applicable solution. I have tested with 4 different Windows 7 PC's and three different serial ports. On three of the four machines I have been unable to reproduce the error but on the last one I found an interesting thing. When I start a stress test program (BurnInTest) the machine freezes for about 5 seconds. This does not happen on my other test machines. It turns out that this program uses Windows Management Instrumentation for detecting the hardware setup on the machine and I suspect that this somehow causes the freeze. The event viewer does not report any errors in the WMI log.

I theorize that this problem or a similar one could cause the disconnects. Most of the users of our product are only using the PC sporadicly and will probably not notice if the UI freezes for a few seconds once or twice during the day and I have yet to witness a breakdown myself because of the randomness. This makes diagnosing the problem that much harder. I have a few questions that I would like some assistance with:

Is there a tool for detecting temporary lock-up's on the system level and on the driver level?

What might cause such temporary lock-ups and how should I proceed to diagnose the underlying problem?

Thank you
 
Reply With Quote
 
 
 
 
TrainableMan TrainableMan is offline
^ The World's First ^
TrainableMan's Avatar
Join Date: May 2010
Location: PA, USA
Posts: 4,654
Thanked: 887
 
      06-29-2011
The causes for Windows freezes/lock-ups are as diverse as the solutions.

I was able to determine what was causing mine but only because I was running Process Explorer (similar to task manager but more detailed) in another window and was able to see what service was running. I do not know how you could do this on an unattended machine and I do not envy you your task.

Perhaps someone will come along with an answer but I do suggest you post on a more techie/hardware programmer forum.
 
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 04:34 PM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33