RS232 Issue

Hello Everyone,

I am using RS232 Module with Raptor and trying to communicate with PC over usb to serial adapter: USB to RS-232 Adapter (35cm) - UC232A, ATEN USB Converters | ATEN Corporate Headquarters

On the RS232 side I have a Gender Changer.

Here my code:

 void ProgramStarted()
            Debug.Print("Program Started");

            rs232.Configure(9600, GT.SocketInterfaces.SerialParity.None, GT.SocketInterfaces.SerialStopBits.One, 8, GT.SocketInterfaces.HardwareFlowControl.NotRequired);

            rs232.Port.DataReceived += Port_DataReceived;
            rs232.Port.LineReceived += Port_LineReceived;


        void Port_DataReceived(GT.SocketInterfaces.Serial sender)
            byte[] readData = new byte[sender.BytesToRead];
            sender.Read(readData, 0, readData.Length);

        void Port_LineReceived(GT.SocketInterfaces.Serial sender, string line)

None of any callback methods run so I assume this should be a HW issue.

When I read this topic:

I did not find any “FT232R USB UART” device in Dev & Printers.

Only I have, see attached picture.

Do you have any idea? (On PC Side I have a small LabVIEW vi that tries to connect and send some junk data to Raptor.

the device named FT232 will only appear if you have the GHI USB to serial device (that uses an FTDI FT232-based chip). So in your case, COM3 is the equivalent from your ATEN usb converter.

What does a “gender changer” do for you ? It’s probably the cause of your lack of communication; I think you’ll need a null modem cable

Personal suggestion. Go to eBay and buy a number of USB-to-UART TTL adapters. Search for CP2102. These are only a couple of bucks each, so get several. Means you can directly connect a UART on a Fez device to this device and you’re done. Very cheap, and the CP2102 driver support under Windows is awesome (I have a few RS232 to USB converters that just don’t have supported drivers).

Second suggestion. Just try simple communications with TeraTerm. You should have TeraTerm anyway in case you need to manually load firmware, and you just connect it to COM3, set the right serial parameters of 9600,n,8,1, and you should then be able to send/receive successfully.

1 Like