Hi. I have written a program using Free Pascal / Lazarus which uses Synaser
to communicate with a ham radio via a serial port at 4800/8/N/2. It is
running under Windows XP SP2. When the radio is connected via a regular
serial port it works fine. When connected using a USB to serial adapter
(Prolific chipset, tried the original unsigned driver supplied with the
adapter and the latest signed XP drivers from Prolific website) at the same
speed I can see from the debug trace monitor built into my application that
the data being received is corrupted.
I have a timer loop that is executed twice a second and runs the following:
if SerialPort.InstanceActive then
data := SerialPort.RecvPacket(0);
This 'data' is corrupt when it is received. The first couple of characters
are usually OK but the rest is gobbledygook, and the received data is
usually a different length from what it should be.
Is the problem with my code, the adapter or its drivers? If the adapter is
the problem, can anyone tell me how to identify one that will work, because
buying them at random could be expensive (most manufacturers don't even
specify the chipset.)
--
Julian
G4ILO's Shack: www.g4ilo.com
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public