+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 2
    Points: 22, Level: 1

    Join Date
    May 2016
    Posts
    2
    Helped
    0 / 0
    Points
    22
    Level
    1

    Difference signal betwenn RS232 to UART and USB to UART

    Hi everyone,
    I am facing with a problem about changing DB9 port to USB port to adapt to new computer generation.
    I download an application that has a Graphic user interface was written on Windows XP, use DB9 port connect to a board has a MAX232 IC to convert signal from RS232 to UART to communication with MCU with diagram:
    PC -- DB9 cable -- RS232 to UART -- MCU.
    My computer running windows 8, which does not have DB9 port, so I bought a board that convert USB to TTL (uart). So now my diagram is:
    PC --- USB cable -- USB to TTL board --- MCU.
    With my connection (using USB to TTL), I can not use the GUI to read or write signal because the GUI waiting for a "\r" ascii 13 or CR to parse data. I can confirm that because I can use a serial port software such as putty to type the command and communication with the board.
    So my question is when I change RS232 to USB, will my signal be changed? if yes, could you suggest for me a solution?
    Thank you so much!

    •   Alt10th May 2016, 18:49

      advertising

        
       

  2. #2
    Super Moderator
    Points: 44,825, Level: 51
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    9,182
    Helped
    2211 / 2211
    Points
    44,825
    Level
    51

    Re: Difference signal betwenn RS232 to UART and USB to UART

    Hi,

    usually it should be possible.

    What about comm port settings? baud rate handshake...
    Some USB to TTL converter invert the signals. this can be overwritten.

    What about the signal levels on "TTL" side? Are they true TTL or CMOS, LVCMOS, LVTTL? What voltage level?

    Do you have a scope to watch the signals?

    Klaus



    •   Alt10th May 2016, 19:04

      advertising

        
       

  3. #3
    Newbie level 2
    Points: 22, Level: 1

    Join Date
    May 2016
    Posts
    2
    Helped
    0 / 0
    Points
    22
    Level
    1

    Re: Difference signal betwenn RS232 to UART and USB to UART

    Dear KlausST,
    Yes, it is TTL, I can view help text and descriptions from MCU via terminal screen, but I can not receive it on the GUI, so I have set a right baudrate also wiring. It just lack of some characters such as \r or \n.



    •   Alt11th May 2016, 01:50

      advertising

        
       

  4. #4
    Advanced Member level 5
    Points: 32,595, Level: 44

    Join Date
    Mar 2008
    Location
    USA
    Posts
    5,197
    Helped
    1504 / 1504
    Points
    32,595
    Level
    44

    Re: Difference signal betwenn RS232 to UART and USB to UART

    There's an outfit that makes many USB-XX chips, I'm
    having trouble recalling the name - FTDI maybe? There
    may be an existing (if obscure) solution for adding USB,
    maybe without having to ditch the RS-232 (which may
    still have a lot of life left in it for factory automation).
    The chip set maker was good about providing drivers
    back when I was looking at stuff using them (like
    GPIB<->USB converters dongles).



--[[ ]]--