The embodiment of the invention discloses a communication method and device of a
USB protocol, a storage medium and a
USB host, and relates to the field of communication. According to the method, four basic endpoint queues (interrupt, synchronization, batch and control transmission queues) are initialized, and empty
queue data are created for each
queue, so that communication between the
USB host and the USB slave is managed. When a pipeline creation or
data transmission request of an
application layer is received, the scheme can generate or update
queue data and add the queue data into a corresponding queue. The queue data comprises key information such as a state flag bit, a transceiving flag bit, an equipment address, an endpoint address, a data address and a data length. When an SOF time slot
signal arrives, according to the scheme, a queue is polled according to the priority, queue head data is analyzed, and the
data transmission direction is determined according to a receiving and transmitting flag bit. Through the mode, the USB host can flexibly communicate with various slave devices, meanwhile, the occupation of endpoint resources is reduced, and the
logic complexity and the
chip cost of the controller are reduced.