looking for solution to Handshaking protocol

everlost

Honorable
Mar 8, 2013
167
0
10,710
hi, my name is Everlost. (extends hand)

I test, install, and repair electronic controls for energy generation and distribution systems.

now you know who i am and what i do. if we were computers, we would be connected across a network. if we were computer components, you would know what drivers to load to make best use of my skills.

 

onichikun

Distinguished
Nov 13, 2009
304
1
18,860


You don't >need< a handshaking protocol for peripheral interfacing, but it does help in cases where there is a probability of data corruption at the protocol layer which cannot be tolerated! It's a form of fault-tolerance to tell the sender that "HEY! I GOT YOUR MESSAGE!" Then the sender can be sure that they got the message.

The receiver may not ACK something if the parity/checksum of a message is wrong, so that the sender will try to resend.

Some peripherals, however, can be lossy, such as a mouse.

If you were transmitting a set of commands to a peripheral, you would want to ensure that the peripheral got the correct commands tho, so a handshake is important.