Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
As we are trying to communicate USB to UART(serial) using UFT230XA (FTDI module).We successfully did loopback at PC(Windows XP-SP2) side.We also did communication PC to UART,but the problem is we are getting same data from PC at UART side nor data from UART at PC.

For example, as we sent 'A'(using byte[] or string) to UART we are getting hex value 0x5F(ASCII char _).Also we are getting same value again no garbage.

Any help is much appreciated!
Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Jan-13 1:19am    
I would say, not enough information, not even close. You did not explain what's you hardware you try to connect, not provided any code sample.
—SA

1 solution

Without your code, it is impossible to be sure, but I would start by looking at your communication setup - make sure that your baud rate matches, your bits per character, parity and stop bits are correct also. I would also try wiring from one pc to another to confirm you are using the right port and that your PC based software works (assuming you don't have a protocol analyser you can slap on the wires, or at a minimum an oscilloscope)
Then confirm the setting at the UART end is exactly what you expected. If any of these are out, you will get garbage.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900