D
David
Hi all,
I am trying to use the RS232 serial port but appear to be having problems.
Intially, it looks like the equipment I am connecting to is the one with the
problem, but the potential also does lie with the SerialPort class.
Here is my scenario... this is what I have tested.
I have to receive data in from the serial port by a parallel to serial
convertor.
I have tested the parallel to serial convertor successfully using HyperTerm.
It works flawlessly. However, I need to get the data into my program,
written in C#
The program I have written works flawlessly with a loopback adapter, it also
works fine when connected to another device that outputs RS232 data (in my
case, a freeview box with an RS232 adapter)
However, from the parallel to serial device, I cannot read the data. In
fact, it does not even get to the datareceived event. (listening on RS232)
Is there something Hyperterm is doing that I don't know about? some sort of
low level communication potentially?
Is there a bug in the SerialPort class that is not following strict RS232
protocol?
I cannot rule out the device, but then again, I cannot rule out SerialPort
class.
Incidentally, I have tried this on 2 computers now to read the device.
I can supply code, but I have written now two different versions from two
different internet sources, however, it seems to me to not be based on code,
but most likely on the actual serialport class itself.
Any ideas whatsoever would be most appreciated as I have been battling this
one issue for over a month now (and only recently realised that I could use
hyperterm to ensure that the device is working).
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I am trying to use the RS232 serial port but appear to be having problems.
Intially, it looks like the equipment I am connecting to is the one with the
problem, but the potential also does lie with the SerialPort class.
Here is my scenario... this is what I have tested.
I have to receive data in from the serial port by a parallel to serial
convertor.
I have tested the parallel to serial convertor successfully using HyperTerm.
It works flawlessly. However, I need to get the data into my program,
written in C#
The program I have written works flawlessly with a loopback adapter, it also
works fine when connected to another device that outputs RS232 data (in my
case, a freeview box with an RS232 adapter)
However, from the parallel to serial device, I cannot read the data. In
fact, it does not even get to the datareceived event. (listening on RS232)
Is there something Hyperterm is doing that I don't know about? some sort of
low level communication potentially?
Is there a bug in the SerialPort class that is not following strict RS232
protocol?
I cannot rule out the device, but then again, I cannot rule out SerialPort
class.
Incidentally, I have tried this on 2 computers now to read the device.
I can supply code, but I have written now two different versions from two
different internet sources, however, it seems to me to not be based on code,
but most likely on the actual serialport class itself.
Any ideas whatsoever would be most appreciated as I have been battling this
one issue for over a month now (and only recently realised that I could use
hyperterm to ensure that the device is working).
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available