Extended data:
In fact, token can be called a password. Before transmitting some data, it is necessary to check the password and authorize different passwords for different data operations. For example, four types of data packets are defined in USB 1. 1 protocol: token packet, data packet, handshake packet and special packet. The continuous data exchange between host and USB device can be divided into three stages. In the first stage, the host sends a token packet, and different token packets have different contents (different passwords), which can tell the device to do different jobs. In the second stage, the data packet is sent, and in the third stage, the device returns the handshake data packet.
References:
Baidu encyclopedia token