Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: USB Serial
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 5-Jan-13 18:19pm
Comments
Sergey Alexandrovich Kryukov at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 539
1 Maciej Los 300
2 DamithSL 233
3 Sergey Alexandrovich Kryukov 209
4 BillWoodruff 200
0 OriginalGriff 7,168
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,461
3 Manas Bhardwaj 4,876
4 Maciej Los 4,450


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100