Framed-based serial protocols
Up until now, we have been discussing protocols that have fairly small message sizes in the region of 8-10 bits. What if you want to send more? In the next few sections, you will learn about protocols that support larger message sizes and package them into frames or packets.
You will learn about the following protocols:
- CAN
- Ethernet: UDP and TCP
Understanding CAN
Controller Area Network (CAN) is a message-based protocol that was developed, by Bosch, to reduce the number of wires connecting the ever-growing number of microcontrollers and Electronic Control Units (ECUs) in vehicles.
It is a bus-based protocol with two wires acting as a differential pair, CAN-HI and CAN-LO. You learned about differential pairs in the Single-ended versus differential section.
Ghost and goblins
Do you recall the trick we used to provide safe passage to the langis and the signal on their journey? There is a real twist to that story.
CAN...