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);
Debug.Print(rs232.Port.IsOpen.ToString());
rs232.Port.Open();
Debug.Print(rs232.Port.IsOpen.ToString());
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);
Debug.Print(readData.ToString());
}
void Port_LineReceived(GT.SocketInterfaces.Serial sender, string line)
{
Debug.Print(line);
}
None of any callback methods run so I assume this should be a HW issue.
When I read this topic: https://www.ghielectronics.com/docs/149/device-to-pc-communication
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.