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