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
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum BBB's serial port is not receiving any data.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 103 subscribers
  • Views 2399 views
  • Users 0 members are here
Related

BBB's serial port is not receiving any data.

jmseo153
jmseo153 over 5 years ago

Hello,

 

I have a problem in my BBB(BeagleBone Black) board.

 

I received BBB today. So I tried to test. First of all, I checked serial port for debug.

I could see boot logs with putty.

However, I could not enter any input though the serial uart. It seems that there is some problem in UART connection.

Shortly,

TX of BBB's Serial UART is working. RX of BBB's Serial UART is not working.

It seems like hardware's problem.

 

My USB TO UART Converter is working well for Raspberry Pi.

So I don't think my USB TO UART Converter has problem.

 

Could you let me know how I can fix it? Should I update software?

And, I would like to know how return my board.

 

Thank you.

  • Sign in to reply
  • Cancel
  • cstanton
    cstanton over 5 years ago

    What settings are you using to communicate with the BBB?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jmseo153
    jmseo153 over 5 years ago in reply to cstanton

    I didn't change any setting.

    Once I got the board, I started testing without any change.

    Debian Linux and u-boot have already been installed in the board. I just used it.

    Should I change GPIO setting for serial debug?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gdstew
    gdstew over 5 years ago in reply to jmseo153

    Are you using an SD card or the on board eMMC? If you are using a SD card and Linux on your PC you can check some of

    the things below by inserting the SD card in a reader and opening the files to read them. The uboot configuration should be

    in the MSDOS format partition /boot directory. /etc will be in the Linux formated partition / directory. If you are using Windows

    you should at least be able to look at the /boot directory.

     

    During uboot there will be a (very) short pause after it displays a message to press any key to stop the boot process and enter

    the uboot command line. When you see that message press a key and it should stop the boot process and display a uboot prompt.

    The length of the pause can be configured but it is usually set at one second so you need to be quick and you may have to do it

    more than once. If it does stop booting and displays the uboot prompt then it shows that the receive side of the UART does work

    and you should then be able to enter a uboot command. Try help and it should then print a list of the available uboot commands.

     

    One reason it the serial terminal receive may not work after Linux boots is that it may not have permission to be used as a

    secure terminal. In a sysvint (non-systemd, it may have the file too) Linux/Unix there is a file in /etc called securetty which

    contains a list of terminals that can be used by root. If the BBB's serial terminal is not in that list it will ignore anything entered

    from it. Its been a while since I needed to do that so I don't remember if it will display the login message or not.

     

    Another reason is that the command line used to boot Linux does not include a parameter to use the serial port as the console

    terminal. I'm pretty sure it does but I thought I should mention it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jmseo153
    jmseo153 over 5 years ago in reply to gdstew

    Thank you for your reply.

    I have already mentioned that I can see boot logs.

    It means that boot argument is set correctly.

     

    You are right. In order for u-boot to stop boot process, we need to enter any key in the short time.

    However, I cannot enter any key input at the time.

     

    My problem is...

    I can see boot and kernel logs. However, Serial port is not receiving any data.

    So, I cannot give BBB any command.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jmseo153
    jmseo153 over 5 years ago

    Resolved by myself.

     

    When I connected 3.3V in BBB to my USB TO UART Converter as reference voltage input, UART input started working.

     

    When I used the USB TO UART Converter for Raspberry Pi, I did not need to do that.

    I think that Rasp pi and BBB, they are using same IO level, which is 3.3V.

    Interesting.

     

    Anyway, Thank you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gdstew
    gdstew over 5 years ago in reply to jmseo153

    I know what you say the problem is. I want to be sure it is a hardware problem and not a Linux configuration problem.

    Seeing Linux kernel logs and boot messages on the serial port does not mean that it is not a Linux configuration problem as

    it can display boot information to any console hardware and then switch to a particular console for log in. If it switches to an

    on board SoC graphics console it will not accept serial input for the console and instead look for keyboard input on the USB

    port. There is another Linux configuration file in /etc called inittab (sorry, I forgot about that one) that determines which

    hardware is used for console after booting.

     

    You say now that you can not enter a key at the (that?) time but you never said before that you tried to stop it from booting

    during u-boot. From what you say now I could assume that you did, I would prefer not to.

     

    Oh, I just though about this. Have you tried entering ^s (ctrl s) to stop and ^q (ctrl q) to start the boot messages while Linux

    is booting? Some times it takes a little time to act on these but it is easier than trying to get to the u-boot prompt.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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