Introduction to Internal Protocols in Hardware Devices

Ashwini Puranik
6 min readFeb 22, 2024

--

What is Protocol: A set of rules and regulations is called a protocol.

What is Communication: Exchange of information from one system to another system with a medium is called communication.

What is Communication Protocol: A set of rules and regulations that allow two electronic devices to connect to exchange the data with one and another.

Communication protocols assist varied network devices to converse with each other by transmitting the analog signals, digital signals, different files & process the data from one device to other devices. These types of protocols are applicable in telecommunication & computer networks where suitable rules are executed to transmit information from source to destination. The most vital protocols within networking are TCP (Transmission Control Protocol) & User datagram protocol (UDP).

Types of Communication Protocols-

1. Inter System Protocol
2. Intra System Protocol

1. Inter System Protocol-
The different categories of intersystem protocol mainly include the following.

-> UART Protocol
-> USART Protocol
-> USB Protocol

-> UART Protocol -
UART stands for a universal asynchronous transmitter and receiver. UART Protocols is a serial communication with two wired protocols. The data cable signal lines are labeled as Rx and Tx. Serial communication is commonly used for transmitting and receiving the signal. It is transferred and receives the data serially bit by bit without class pulses. The UART takes bytes of data and sends the individual bits in a sequential manner.
UART is a half-duplex protocol. Half-duplex means transferring and receiving the data but not at the same time. Most of the controllers have hardware UART on board. It uses a single data line for transmitting and receiving the data. It has one start bit, 8-bit data and a one-stop bit mean the 8-bit data transfer one’s signal is high to low.
Ex: Emails, SMS, Walkie-talkie.

-> USART Protocol-
USART stands for a universal synchronous and asynchronous transmitter and receiver. It is a serial communication of a two-wire protocol. The data cable signal lines are labeled as Rx and TX. This protocol is used to transmitting and receiving the data byte by byte along with the clock pulses. It is a full-duplex protocol that means transmitting and receiving data simultaneously to different board rates. Different devices communicate with microcontroller to this protocol.
Ex:-Telecommunications

-> USB Protocol-
USB stands for universal serial bus. Again it is a serial communication of two-wire protocol. The data cable signal lines are labeled D+ and D-. This protocol is used to communicate with the system peripherals.USB protocol is used to send and receive the data serially to the host and peripheral devices. USB communication requires driver software that is based on the functionality of the system. USB devices can transfer data on the bus without any request on the host computer.
Now a day’s most devices are using this technique for communicating with USB protocol. Like a computer to communicate with an ARM controller using USB. USB transfer the data to different modes .first one is slow speed mode 10kbps to 100 kbps; the second one is full speed mode 500kbps to 10mbps, high-speed mode 25mbps to 400 Mbps. USB maximum cable length of 4 meters.
Ex: Mouse, Keyboard, Hubs, switches, pen drive.

2. Intra System Protocol -

The Intra system protocol is used to communicate the two devices within the circuit board. While using these intra system protocols, without going to intrasystem protocols we will expand the peripherals of the microcontroller. The circuit complexity and power consumption will be increased by using the intrasystem protocol. Using intra system protocols circuit complexity and power consumption, the cost is decreased and it is very secure to accessing the data.

The different categories of intrasystem protocol mainly include the following.

-> I2C Protocol
-> SPI Protocol
-> CAN Protocol

-> I2C Protocol-
I2C stands for the inter-integrated circuit and it requires only two wires connecting all peripherals to the microcontroller. I2C requires two wires SDA (serial data line) and SCL (serial clock line) to carry information between devices. It is a master to a slave communication protocol. Each slave has a unique address. The master device sends the address of the target slave device and reads/writes the flag. The address matches any slave device that the device is ON, the remaining slave devices are disabled mode.

Once the address is match communication proceed between the master and that slave device and transmitting and receiving the data. The transmitter sends 8-bit data, the receiver replies 1-bit of acknowledgment. When the communication is completed master issues the stop condition. The I2C bus was developed by Philips Semiconductors. Its original purpose is to provide an easy way to connect CPU to peripherals chips.

Peripheral devices in embedded systems are often connected to the microcontroller as memory-mapped devices. I2C requires only two wires for connecting all the peripherals to the microcontroller. These active wires, called SDA and SCL, are both bidirectional. SDA line is a serial data line and the SCA line is a serial clock line.

-> CAN Protocol-
CAN stands for the controller area network. It is a serial communication protocol. It requires two wires CAN High (H+) and CAN low (H-). It was developed by the Robert bosh company in 1985 for in-vehicle networks. It is based on a message-oriented transmission protocol.

Communication Protocols in IoT

The IoT based devices are more susceptible to threats. So these security loopholes can be reduced by using the correct protocols. Communication protocols in IoT are types of communication that ensure the finest security toward the data being exchanged among the IoT connected devices.

The connection of these devices can be done through an IP network otherwise a non IP network but, there is a disparity within their power, range & memory used. The connection throughout IP networks is difficult & takes huge memory as well as power from these devices as the range is not a trouble. Alternatively, Bluetooth which is known as non-IP networks needs low power and memory however they have a limitation in the range.

The main benefits of IoT communication protocols are high quality, credibility, interoperability, innovation flexibility & global scalability. IoT protocols are available in two types mainly IoT network protocols and IoT data protocols.

The list of Top 10 IoT Communication Protocols includes the following-

WiFi
SigFox
Bluetooth
LoRaWAN
NFC (Near Field Communication)
Z wave
Zigbee
OPC- UA
Cellular
MQTT

Data Communication Protocols-
Data communication protocols are very significant for communication because they are used for understanding the networks or computers or devices to each other.

These types of protocols use typical rules as well as methods like a common language to interact with computers or networks to each other. For instance, if a user wants to send an e-mail to another, then the user will create the e-mail on his personal computer by including the details along with the message and attachments.
Once the user sends the e-mail, then immediately multiple actions can take place so that the receiver gets the email. The message moves over the network and reaches the recipient. These protocols provide the information on how the note will be enclosed so that it can move over the system, how the receiver computer can verify for errors, etc

PLC Communication Protocols-
The following primary communication protocols are used for the PLC as well as other connections of the network which supports through different PLC software products. These protocols mainly depend on the basic three parts like baud rate, length of network & the number of nodes. The list of

Communication Protocols in Cloud Computing-
The cloud supports two communication protocols for communication as well as connection like MQTT and HTTP. The communication of these devices can be done through Cloud IoT Core across a bridge either the HTTP or the MQTT. These bridges are central components in Cloud IoT Core. Once you create a registry of a device, then you can choose protocols to allow HTTP, MQTT, etc. The standard protocol like MQTT is used frequently and it is supported through embedded devices. This protocol is common in the interactions of the machine to machine.

HTTP is a connectionless protocol, so devices do not maintain a connection to the cloud IoT core. As an alternative, they send requests as well as get responses. The protocols of cloud computing are a set of rules that permit two electronic elements to unite as well as exchange the data with each other. It is mainly used for communication, storage, encryption, networks, decryption, security, management of user login, etc. Some cloud computing protocols include

Gossip Protocol
MTP (Media Transfer Protocol)
CLNP (Connection Less Network Protocol)
CEE (Coverage Enhanced Ethernet Protocol)
SRP (State Routing Protocol)
SSHP (Secure Shell Protocol)
IGMP (Internet Group Management Protocol)

Thus, this is about an overview of communication protocols and its types.

--

--

Ashwini Puranik
Ashwini Puranik

No responses yet