USB to RS232 Interface bug
Discovery
Posts: 606
in BASIC Stamp
Over the last several years, my computers were plagued by program stoppages. "Computer found a problem and shutdown..."
The computers use a Parallax USB to RS232 Rev B interface to BS2 micro controllers.
A NASA engineer familiar with USB interfaces analyzed this problem and determined that when the computer reads the driver code from the USB to RS232 chip and loads the driver into the operating system a condition is setup where the computer will detect an interface problem as data is sent to the computer for display using the DEBUG instruction. The computer shutdown usually takes several weeks to occur but it does occur. With the USB to RS232 interface removed the computer runs the program and never fails. Tests have run for over eight months with no computer failure.
Discovery
The computers use a Parallax USB to RS232 Rev B interface to BS2 micro controllers.
A NASA engineer familiar with USB interfaces analyzed this problem and determined that when the computer reads the driver code from the USB to RS232 chip and loads the driver into the operating system a condition is setup where the computer will detect an interface problem as data is sent to the computer for display using the DEBUG instruction. The computer shutdown usually takes several weeks to occur but it does occur. With the USB to RS232 interface removed the computer runs the program and never fails. Tests have run for over eight months with no computer failure.
Discovery
Comments
Hello!
Okay who. Can you cite specific references here? I freely admit I've seen something of a sort happen, but on a computer running Windows XP_SP1 with specific updates applied, and not on Windows 7_SP1 also with matching updates.
I should also explain that the way Windows does things is positively fraught with implied dangerous activities.
And you should also tell us what sort of system you yourself run.
When the USB to RS232 interface is connected to the BS2 micro controller data is sent from the BS2 to the Basic program for display on the screen. After several weeks, the computer encounters a problem and stops.
So, to avoid the computer stop problem, I only inset the USB interfaces when I make program changes. I can not send data from the Propeller micro controller or the BS2 micro controller 24 hours a day, 7 days a week, month after month without having the computer encounter a problem and stop.
Sincerely,
Discovery
Thank you...I will investigate.
Sincerely,
Discovery
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "hello"
END
What appeared in the debug terminal was:
($llohello(e(lkHeldo `l,o
I think the problem may be the RS-232 adapter, but I have been told that it is the latency timer.
-Phil
With this information, I feel it safe to say that the NASA engineer's analysis of the Parallax interface was wrong. Microsoft crashed without the USB to BS2 interface installed. I give the Parallax interface a clean bill-of-health.
Discovery
I can't tell you how many times I've seen this computer throw up a BSOD screen on something else, and then restart and work like nothing happened.
But on the other machine when running Windows XP_SP1 that machine would do much the same thing and cause more problems.
USB detection and management is still an art form for Windows.
I braced myself for all kinds of possible glitches......hasn't happened.
I had an issue, in a couple of installations where I was setting a flag over Bluetooth and almost immediately resetting it on the motion controller. Sometimes it would work and sometimes not, it was a timing thing.
The customer's in-house "experts" insisted that it was a Bluetooth issue and were pushing me to switch to USB instead. Since I corrected the flag issue, my installations have been set-and-forget.
However, the very suggestion of wireless can be a deal-breaker so now I intend to provide both BT-RS422 and USB-RS422 on every system so they have a choice.
Android tablets make ideal HMIs. They are ubiquitous, inexpensive, robust, feature-laden, powerful and easy to code for. Lock them down to Kiosk Mode and they can't be tampered with. I restrict mine to my own app and TeamViewer Quick Support for remote control.
----
And this message is being sponsored by the Klingon Demolition Corp, look for us at your favorite watering hole.