I am new to USB communication. I am studying the USB communication and protocol. I have always wondered about how USB devices actually communicate. I have a microcontroller with USB peripheral. I am using this as device and PC as host for USB communication. Like, UART, the data(8 bits) are transmitted with start, stop and optional parity bit. But at they are excluded from the hardware of UART peripheral and we get ony 8 bit data. Similarly, how the data is transmitted or recieved in USB communication? Alo, if i want to implement MODBUS protocol with USB communication can it be possible? Or the USB protocol is mandatory to use with USB communication.
"USB" actually defines SEVERAL of the lower levels of the "OSI 7 Layer Model". Physical, electrical, logical, etc.
if i want to implement MODBUS protocol with USB communication can it be possible?
Your question doesn't make sense as it stands. USB and Modbus each have their own DIFFERENT specs for physical, electrical, logical, etc. communication standards. Certainly, you could translate and make an adapter or interface between Modbus and USB. In fact there appear to be commercial products billed as Modbus to USB adapters.