element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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 Trouble with ttl to usb interface
  • 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 Not Answered
  • Replies 7 replies
  • Subscribers 27 subscribers
  • Views 1943 views
  • Users 0 members are here
  • interrupt
  • ttl
  • usb
  • riotboard
  • display
  • interface
  • usbttl
  • prompt
  • keypress
  • booting
Related

Trouble with ttl to usb interface

Former Member
Former Member over 10 years ago

Hey guys, riotboard noob here!  A local computer store had a USB to TTL serial cable based on the PL2303 chip and I can see the boot information through screen and minicom as my riotboard is booting up so that's working just fine.  However, when it comes to the prompt where I can press any key to interrupt the boot sequence, nothing works.  Neither keypresses on the host computer (Ubuntu Linux) or an attached usb keyboard will interrupt the 3 second timer.  What am I doing wrong?  I apologize in advance if this is a painfully obvious problem.  I'm really stumped, though!

 

Background: I purchased the 7" LCD display and connector board for my riotboard.  I'm following the documentation where it instructs me to interrupt the boot sequence so I can enter the appropriate parameters to enable the screen.

  • Sign in to reply
  • Cancel

Top Replies

  • johnbeetem
    johnbeetem over 10 years ago +1
    I'm not a RIoTboard user but I've done a lot of UART. Here are a few things I'd try. First, make sure the USB UART dongle is working by itself. Unplug it from the RIoTboard and connect the RX and TX bits…
  • radiatortwo
    0 radiatortwo over 10 years ago

    To cancel the boot you have to do that over your serial connection.

    With an attached USB Keyboard this won´t work.

     

    What terminal progam are you using to connect on the serial port?

    You have to press a key in this terminal program to cancel the boot.

     

    I´m mainly using putty in Windows. But as far as I know "screen" should be working on the terminal in Ubuntu.

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

    I've used both screen and minicom.  They both allow me to see the output when the board is booting but it's not accepting any keystrokes in return.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago

    Sorry you did not specify the O/S you used. This sounds a bit more software related. Did you check your connections? Please look at @Debian on RIoTboard - After basic install, adding a GUI Desktop and other usefull stuff

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gdstew
    0 gdstew over 10 years ago in reply to clem57

    I don't think this is software related. I've used minicom on PCs, Raspberry Pi, ODROID-C1, and other SBCs with no problems and I've used screen on PCs with no problems. Its

    also unlikely that minicom and screen would have the exact same problem.

     

    Rich, after checking out the riotboard and USB/TTL converter information from what I see they should be connected like this:

     

    USB/TTL                           riotboard pin #

     

    red wire                             not connected

    white wire  (input)               1  UART2_TXD  (output, this one must be correct for you to see the boot information coming from the riotboard)

    green wire  (output)            2  UART2_RXD (input)

    black wire                         3  GND

     

    If this is how you have it wired then there must be a problem with the USB/TTL converter output, or the riotboard UART2 RXD input. This could be anything from bad IC pins on

    either one (nothing you can do), bad solder connections to the IC pins on either one or the connector on the riotboard or the wires on the USB/TTL converter (may be fixable if you

    can solder), problems with the PCB on either one (probably nothing you can do), or the USB/TTL converter green and black wires are connected to the wrong place (swapped)

    although it probably wouldn't work at all because there would be no good ground reference between them.

     

    If you have a digital multimeter you could verify that there is 5V between the red and black wires on the USB/TTL converter when it is plugged into a USB port. This would at

    least tell you that the USB/TTL converter is probably wired properly. Just about anything else would require an oscilloscope to trace out the problem.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 10 years ago

    I'm not a RIoTboard user but I've done a lot of UART.

     

    Here are a few things I'd try.  First, make sure the USB UART dongle is working by itself.  Unplug it from the RIoTboard and connect the RX and TX bits to each other.  Then start up your terminal emulator and see if it echoes the characters you type to the screen.

     

    If this doesn't work, you either have a bad USB UART dongle or you don't have the serial configuration right.  Specifically, be sure that flow control is OFF or NONE since you only have RX and TX.

     

    Once the USB UART echo works, make sure you have the correct serial config for RIoTboard.  You obviously have the Baud rate correct or you wouldn't be seeing the boot trace.  I think the correct setting is 115200N8 so make sure you have parity turned OFF, 8 bits per byte, and flow control OFF.

     

    Otherwise, as Gary says you probably need a 'scope to see the signal from USB UART TX to RIoTboard RX.

     

    Hope this helps!

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

    Thanks for all of the replies, gentlemen!  I am going to pick up a multimeter after work today and check the voltage and also try the echo test referenced above.

     

    But, yes, you are correct - I can see the output as the machine is booting up.  Could it be a permissions problem maybe?  Or maybe the usb port on the laptop I've been using is bad?

     

    Related question:  if I pick up a dedicated serial port card for my desktop, is it just a 1:1 straight pin mapping between the card's serial port rx/tx pins and the rx/tx pins on the riotboard?

     

    by the way, it's nice to see a vibrant and helpful community for this device!

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

    Could it be a permissions problem maybe?

    IF my detected device is /dev/ttyUSB3 , i use below command.

     

    sudo screen /dev/ttyUSB3 115200 8N1


    i guess sudo (super user) required else not possible to write down the TX, read shouldn't be a problem.

    • 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