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.
closed as too broad by Bence Kaulics, Daniel Grillo, Sparky256, Voltage Spike, pipe Jul 16 '16 at 16:31
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
"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.