element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Forum USB to TTL Connection
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Subscribers 24 subscribers
  • Views 1351 views
  • Users 0 members are here
  • ttl
  • usb
  • riotboard
Related

USB to TTL Connection

Former Member
Former Member over 11 years ago

Hi,

 

i didn't got a serial connection running yet - no output.

 

My setup was like in the blog post with the same cable.

 

blog post:

Impressions on the RIoTboard and changing its Operating System in Windows

 

Same cable with my raspi works great.

 

Do i need to setup something first?

 

Steffen

  • Sign in to reply
  • Cancel
Parents
  • radiatortwo
    0 radiatortwo over 11 years ago

    It should work directly. As soon as you pressed the reset button it should give you some output.

     

    Maybe you switched the txd with the rxd pin? Then you wouldn´t get any response.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to radiatortwo

    Thanks for the hint Otto.

     

    Unfortunately it didn't help. I also tried with 2 different boards - one with factory settings and one with Ubuntu on EMMC.

    No luck image

     

    image

     

    Cable: TTL-232R-RPi (FTDI-Chip)

    black - GND

    orange - TX

    yellow RX

     

    Also tried other cables with one of the riot-boards: TTL-232R-3V3, CR-409202

     

    Do i need to set any jumpers to enable serial interface?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    No jumpers needed, it should just work right out of the box at 115200 baud 8-N-1, From your photo, I think the red/orange cables should be swapped.

     

    Does Android/Linux come up? I just want to make sure the switches on SW1 are in the default position. If you see Android/Linux, you should see output on the terminal.

     

    I used this cable with no problems: http://www.embest-tech.com/product/extension-module/uart8000-u.html

    Riot (J18):                Cable:

    1  (TXD)                     Green (RXD)

    2  (RXD)                     Red (TXD)

    3 (GND)                      Black (GND)

     

    Fullscreen contentimage_176460.html Download
    <html><head><title>Jive SBS</title></head>
    <body><font face="arial,helvetica,sans-serif">
    <b>Error</b><br><font size="-1">
    An general error occurred while processing your request.
    </font></font></body></html>
    

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Yes, Android / Linux come up. I also tried to swap rx / tx (yellow and orange in my case), but no success.

     

    I will do further testing image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Ah, you are right - i switched yellow and orange and it's working image

     

    Not sure why it didn't last time image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Ah, you are right - i switched yellow and orange and it's working image

     

    Not sure why it didn't last time image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    hey,

     

    right now i don´t have access to that cable, so i figured that i could use a USB to RS232 serial DB9 Adapter instead of the usb to ttl.

    But i when i connect to the port i get this :

     

    Þ¯^}U-û›mªªÊ”ê:ªúk +=Mû›ê*j:jô» uöëºô‹Ö¶ö+½-ZåW/5='¿ 5# ! - /¿ -!¿…¿—ëåÔºT´TZö

    ûûËöö˝ûËê:jÚÚÔºÔ

                      ú»êºÔúûöTö¬ªö6ª6Zå% “ ¿ ''‹¿‘›eo

                                                        ëå% “ ¿ ''›‹¿•›eo

                                                                          ëå% “ ¿ ''

    Tm‹¿—Ÿeo

            ëå% “ ¿ ''‹¿•Ÿeo

                             ëå- 1¿9'!9)¿¿¿¿¿‹¿““ŸŸŸŸŸŸo

                                                        ëå- 1¿ 59'!9)¿‹¿““ŸŸŸŸŸŸo

                                                                                 ëå

    =¿9'!9)¿¿¿¿‹¿ŸŸŸŸŸŸŸo

                          ëå9  -¿9'!9)¿¿¿¿‹¿“ŸŸŸŸŸŸŸo

                                                     ëå=/;¿9'!9)¿¿¿¿¿‹¿Tm›ŸŸŸŸŸŸo

                                                                                 ëå=

    -¿9'!9)¿¿¿‹¿ŸŸŸŸŸŸo

                           ëå5%-A '! ¿9'!9)‹¿ŸŸŸŸŸŸo

                                                      ëå779'!9)¿¿¿¿¿‹¿Tm“ŸŸŸŸŸŸo

                                                                                ëå 

    7/9¿9'!9)¿¿‹¿ŸŸŸŸŸŸo

                            ëå  7/9›¿9'!9)¿¿‹¿ŸŸŸŸŸŸo

                                                        ëå  7/9Tm¿9'!9)¿¿‹¿ŸŸŸŸŸŸo

     

     

    ëå  7/9—¿9'!9)¿¿‹¿ŸŸŸŸŸŸo

                                ëå#39¿9'!9)¿¿¿¿¿‹¿›—ŸŸŸŸŸŸo

                                                           ëå{!=‹¿-£eO“wg¡Y!'!¥Y}{[u

    ëåw[}e‹¿¿¿¿q{ëå´!=‹¿Ÿ “Ÿ¿I_a[¿Eëå{!! ¿w5 -95‹¿eeyëåm›y‹¿¿¿=7

     

     

    i just can´t get the desire output , my connections are like these:

     

     

    serial DB9              Serial Debug RiotBoard

     

    2 - Rx                    1 - Tx

    3 -Tx                      2 - Rx

    5 - GND                3 - GND

     

     

    i,m using this port settings on hyperterminal and also with PuTTy

     

    115200 baud rate

    8 bits data

    1 stop bit

    no parity

    no flow control

     

    am i wrong using the usb to serial adapter ? it looks to me that i should work the same as the usb to ttl right ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • radiatortwo
    0 radiatortwo over 11 years ago in reply to Former Member

    The port speaks on UART not RS232 so you get that stuff.

    You´ll need an USB to UART adapter.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Former Member

    A USB to Serial (DB9) could easily be also upping the voltage on the pins to be compatible with true serial interfaces, that is anything from +-3V to +-15volts

     

    this would be catastrophic to an interface only tolerant of 0-5V (TTL)

     

    so using a USB to Serial DB9 is probably a very bad idea and one of those "Use at your own risk" items.

     

    If the interface specifically asks for USB to TTL, that's what you should be sure your using or face the consequences of a fried interface.

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to radiatortwo

    To clarify, a UART is a Universal Asynchronous Receiver Transmitter. and in most modern versions It is capable of communicating in numerous serial protocols including those commonly used for the  RS232 standard. It is also typically fully implemented within a single chip or even embedded into micro-controllers and micro-processors used in Arduino, Raspberry PI and other popular evaluation boards. they often can also support I2C, SPI and other standards

     

    RS232 is commonly used as a generic term for the whole serial communications but more specifically it refers to the physical and electrical interface. (RS422, RS485 and others are also physical and electrical standards that a UART can support with the correct interface hardware, in many case the actual data protocol is the same travelling across the wire)

     

    see the following links, as you will see they are all variations on a theme.

    http://en.wikipedia.org/wiki/RS-232

    http://en.wikipedia.org/wiki/RS-485

    http://en.wikipedia.org/wiki/RS-422

     

    so to be pedantic, there is no such thing as a USB to UART adapter, It would be more generically correct to say USB to Serial and this would have to also be coupled to the interface configuration aka it would be one of the above or as required here USB to TTL. In all cases a UART is the device off loading the serial communications, the variations are the electrical interfacing and the physical connector configuration.

     

    Hope this helps

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Thanks for the explanation !!, i´ll stick to the board specification and get the right cable .

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube