NetGear said:
Hi,
We have a HP Proliant server and it seems that there is some kind of a
problem with the serial port.
The server is used to control quite a large CCTV camera system and after a
system crash it seems that some of the camera movement functions are not
working. I think there must be a problem with the integrated com port.
Is it possible to test the port with some easy way?
In the example of camera protocol here, each packet sent on the
RS232/RS485 has a checksum on it. At least some percentage of
transmission errors, would potentially result in the camera
ignoring the command.
http://www.232analyzer.com/RS232_Examples/CCTV/Pelco_D_Pelco_P_Examples_Tutorial.HTM
http://en.wikipedia.org/wiki/Rs485
http://en.wikipedia.org/wiki/Rs232
For asynchronous serial devices to be able to communicate, they have
to agree on baud rate. A 16x clock, for example, may be used to sample
the data bits, and identify the middle of the data bit. If the clocking
signals used on either end, have too large a difference in frequency, the
sampling process moves further and further from the center of
each data bit, and if bad enough, the last bit in the sent byte
can get corrupted. We used to have a lot of trouble with that,
25 years ago, as baud rate generators were not very clever, and
the frequency error got seriously bad up around 19200 or higher.
None of that should be related to a system crash. As long
as the serial port parameters have been set properly
(8-N-1 or whatever), and the baud rate is correct, it should
just work.
You may end up needing an oscilloscope, to verify there isn't a problem
with the wiring itself. If the oscilloscope has digital storage (as
a lot of recent generation equipment would), you can also look
at a packet sent on the port, and verify the bit pattern sent.
The debugging procedure you use, may vary a bit depending on the
actual physical protocol being used. An oscilloscope with digital
storage, makes it possible to unambiguously determine what is
going on. Any other techniques (such as using a second serial port
to "listen in" on the first serial port's TXD signal), may not
tell you enough to fix anything. You may be able to see the
transmissions are garbled, but not know why.
Paul