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
Amphenol
  • Products
  • Manufacturers
  • Amphenol
  • More
  • Cancel
Amphenol
Forum How does Tx Only Serial Communication Actually Work?
  • Blog
  • Forum
  • Documents
  • Events
  • Leaderboard
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Amphenol to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Answers 4 answers
  • Subscribers 21 subscribers
  • Views 4337 views
  • Users 0 members are here
  • serial communication
  • ydlidar
Related

How does Tx Only Serial Communication Actually Work?

Sean_Miller
Sean_Miller over 5 years ago

I have a YDLidar X2 device that I found doesn't actually have a Rx line.  By design, it has no wire on the connector and doesn't expect any commands to be sent to it.  It just continuously transfers out its packets representing the state of its sensor.

 

I hadn't realized it until today that every project I've ever done with serial was by me sending a command and awaiting a response.  It was so intuitive, I never thought how the bits where banging.

 

So, my question is - does such a device that has no Rx line somehow fill a buffer and pause until bytes are read by the user or is it just pulsing and not caring what's happening on the line?

 

If it does pause, what gives the flag that it is good to continue?

 

If it does not pause, how in the world does the receiving device know how to sync up with the bits streaming?

 

Or, does serial protocol actually use the Tx line alone as a bus to talk back to coordinate the transfer of data from the transferring device?  If not, I would think it would create nothing but garbage if it started listening at a random time.

 

Thanks,

Sean

  • Sign in to reply
  • Cancel

Top Replies

  • neuromodulator
    neuromodulator over 5 years ago in reply to Sean_Miller +5 verified
    Because you must know the timing (Actually there are timing algorithms too, but thats more complex). I recently implemented an UART receiver on my FPGA, so if you understand Verilog and have an FPGA I…
  • Sean_Miller
    Sean_Miller over 5 years ago in reply to neuromodulator +5
    Thanks so much! It finally clicked for me. I have trouble thinking in such small fractions of a second, but if I envision that chart scaled out to minutes, there is no doubt I could write a routine to…
  • neuromodulator
    neuromodulator over 5 years ago +4 suggested
    When the line is in idle its at 1, when it begins transmitting goes to 0 (start bit). The falling edge indicates the beginning of a byte transmission. So unless the transmitter is sending data at full…
Parents
  • dougw
    0 dougw over 5 years ago

    It is just a fire and forget transmission. The sender does not care or respond to what is happening  with the receiver. It depends on the receiver being ready and able to receive anything and everything that gets transmitted, whenever it gets transmitted.

    Sometimes such devices can be configured for different baud rates or to have a longer delay between bytes to make it easier.

    GPS modules are like this - if the receiver misses a byte or gets out of sync, the receiver must recover by looking at the data or the timing of the transmissions.

    Data may be preceded by a synchronizing header that needs to be parsed, but often it is just preceded by a defined break in transmission data.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Sean_Miller
    0 Sean_Miller over 5 years ago in reply to dougw

    So, I take it when you are catching such transmission, you really have to be lean on what you do in between byte reads.

     

    I'll have it look for a certain byte, turn on a flag to look for the second byte, and repeat until I have the series or reset if I it isn't what's expected.  Once the series is detected, I'll then trigger a routine to swallow the whole packet.

     

    I never stop feeling amazed on how much these things can do in such a small fraction of time.  It's darn right divine.

     

    Thanks for the tips.

     

    See ya',

    Sean

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Sean_Miller
    0 Sean_Miller over 5 years ago in reply to dougw

    So, I take it when you are catching such transmission, you really have to be lean on what you do in between byte reads.

     

    I'll have it look for a certain byte, turn on a flag to look for the second byte, and repeat until I have the series or reset if I it isn't what's expected.  Once the series is detected, I'll then trigger a routine to swallow the whole packet.

     

    I never stop feeling amazed on how much these things can do in such a small fraction of time.  It's darn right divine.

     

    Thanks for the tips.

     

    See ya',

    Sean

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • dougw
    0 dougw over 5 years ago in reply to Sean_Miller

    Serial bytes take a long time (measured in CPU instruction cycles) to receive a whole byte, so there is lots of time to deal with the last byte while the next one is arriving, assuming there is a UART receiving individual bits. But often the low level handler just collects a whole message in a buffer, in real time, while performing higher level parsing of complete messages in the background. Then the parsing routine just needs to be completed before the next complete message is received.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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