CN110018976A - USB main equipment responds USB from device, method and relevant device - Google Patents
USB main equipment responds USB from device, method and relevant device Download PDFInfo
- Publication number
- CN110018976A CN110018976A CN201810024581.0A CN201810024581A CN110018976A CN 110018976 A CN110018976 A CN 110018976A CN 201810024581 A CN201810024581 A CN 201810024581A CN 110018976 A CN110018976 A CN 110018976A
- Authority
- CN
- China
- Prior art keywords
- usb
- instruction
- module
- interface
- interrupt signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000001514 detection method Methods 0.000 claims description 9
- 230000002618 waking effect Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 14
- 230000005540 biological transmission Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 9
- 230000009467 reduction Effects 0.000 description 7
- 239000000872 buffer Substances 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 238000005265 energy consumption Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Power Sources (AREA)
- Information Transfer Systems (AREA)
Abstract
Present invention implementation provides a kind of USB main equipment and responds USB from device, method and relevant device, this method comprises: USB receives the first instruction inputted by input unit from equipment, and interrupt signal is generated according to first instruction, the interrupt signal is exported to main USB from equipment by the auxiliary pin of the first USB interface, when USB main equipment assists the level signal of pin to be interrupt signal in detecting secondary USB interface, second USB module is powered on, restoring the usb bus for being in hang-up to normal operating conditions, USB sends the first instruction to the USB main equipment by the differential signal pin of first USB interface from equipment, in turn, USB main equipment receives first instruction by the differential signal pin of the secondary USB interface, and execute described One operation realizes that the USB main equipment in suspended state responds USB from device directive.
Description
Technical Field
The present invention relates to the field of electronic communications, and in particular, to a USB slave device control method and related device.
Background
Universal Serial Bus (USB) is an external Bus standard used to standardize the connection and communication between computers, mobile phones, and other external devices. The USB interface supports plug and play and hot plug functions of the device.
A USB device (e.g., a USB master or a USB slave) can support the suspend state and can enter the suspend state from either level state to cause the USB bus to stop data transfers. When the USB equipment finds that the duration time of the idle state on the USB bus exceeds 3.0ms, the USB controller of the USB equipment and the USB physical layer module (USB PHY) can be powered down, so that the USB equipment enters a suspend (suspend) state, and the energy consumption of the equipment is reduced.
When the USB controller, the USB physical layer module, and the like enter the suspend state, data cannot be transmitted between the USB host device and the USB slave device, and the USB host device cannot respond to an operation instruction of the USB slave device.
If the USB master device needs to respond to the instruction sent by the USB slave device in time, the USB controller of the USB master device, the USB PHY, and the USB controller of the USB slave device need to be kept in a powered-on state all the time, which results in large power consumption of the USB device.
Disclosure of Invention
The embodiment of the invention provides a method for a USB master device to respond to a USB slave device and related devices, which can receive and respond to an instruction sent by the USB slave device when a USB module of the USB master device is hung up.
In a first aspect, an embodiment of the present invention provides a USB slave device, where the USB slave device includes: the USB interface comprises a main chip, a USB interface, an input device and a signal wire for connecting the main chip and the USB interface; the main chip comprises a first USB module; the input device is connected to the main chip and an auxiliary pin of the USB through the signal line; the first USB module is connected to a differential signal pin of the USB interface; wherein,
the input device is used for receiving an input first instruction, generating an interrupt signal according to the first instruction, and outputting the interrupt signal to USB main equipment through an auxiliary pin of the USB interface; the first instruction is used for instructing the USB master device to execute a first operation; the interrupt signal is used for waking up a second USB module of the USB main equipment;
the first USB module is used for acquiring a first instruction and sending the first instruction to the USB main equipment through a differential signal pin of the USB interface so as to enable the USB main equipment to execute the first operation.
In a possible implementation manner, the USB slave device further includes a wake-up module, where the wake-up module is configured to power up the first USB module when detecting that the input apparatus outputs an interrupt signal.
In yet another possible implementation, the USB interface is a USB-C interface.
In yet another possible implementation manner, the input device includes at least one control unit connected in parallel, and a first common terminal of the plurality of control units is connected to an auxiliary pin of the USB; the second common ends of the plurality of control units are grounded; wherein,
the control unit comprises at least one resistor and a switch connected with the at least one resistor in series;
the interrupt signal is an electrical signal output by the input device to the auxiliary pin of the USB or the main chip when the switch is switched on and/or off.
In yet another possible implementation manner, the USB slave device further includes a drive-by-wire module, and the drive-by-wire module is configured to generate the first instruction according to a switch that is turned on and/or off.
In the embodiment of the invention, the input device is directly connected with the auxiliary pin of the USB interface, the input device generates an interrupt signal after receiving an input first instruction, the interrupt signal is output to the USB main equipment through the auxiliary pin of the USB interface to wake up the USB main equipment, and then the first instruction is sent to the USB main equipment through the differential signal pin of the USB interface, so that the USB main equipment in a suspended state can respond to the instruction sent by the USB slave equipment.
In a second aspect, an embodiment of the present invention further provides a USB slave device, where the USB slave device includes: the USB interface comprises a main chip, a USB interface, an input device and a signal wire for connecting the main chip and the USB interface; the main chip comprises a processor and a first USB module; the input device is connected to the processor, and the main chip is connected to an auxiliary pin of the USB through the signal line; the first USB module is connected to a differential signal pin of the USB interface; wherein
The input device is used for: receiving an input first instruction; and generating an interrupt signal according to the first instruction; the first instruction is used for instructing the USB master device to execute a first operation; the interrupt signal is used for waking up a second USB module in the USB main equipment;
the processor is configured to: acquiring the interrupt signal, and outputting the interrupt signal to USB main equipment through an auxiliary pin of the USB interface;
the first USB module is used for: the method comprises the steps of obtaining a first instruction, and sending the first instruction to the USB main equipment through a differential signal pin of the USB interface so that the USB main equipment can execute the first operation.
In a possible implementation manner, the USB slave device further includes a wake-up module, where the wake-up module is configured to power up the first USB module when it is detected that the input apparatus outputs the interrupt signal.
In yet another possible implementation, the USB interface is a USB-C interface.
In yet another possible implementation manner, the input device includes at least one control unit connected in parallel, and a first common terminal of the plurality of control units is connected to an auxiliary pin of the USB; the second common ends of the plurality of control units are grounded; wherein,
the control unit comprises at least one resistor and a switch connected with the at least one resistor in series;
the interrupt signal is an electrical signal output by the input device to the auxiliary pin of the USB or the main chip when the switch is switched on and/or off.
In yet another possible implementation manner, the USB slave device further includes a drive-by-wire module, and the drive-by-wire module is configured to generate the first instruction according to a switch that is turned on and/or off.
In the embodiment of the invention, the input first instruction is received by the input device, the processor outputs an interrupt signal to the USB main equipment through the auxiliary pin of the USB interface so as to wake up the USB main equipment, and then the first instruction is sent to the USB main equipment through the differential signal pin of the USB interface, so that the USB main equipment in a suspended state can respond to the instruction sent by the USB slave equipment.
In a third aspect, an embodiment of the present invention further provides a USB host device, where the USB host device includes: the USB interface comprises a main chip, a USB interface and a data line for connecting the main chip and the USB interface; the main chip comprises a processor, a wake-up module and a second USB module; wherein,
the wake-up module is configured to: when detecting that a level signal of an auxiliary pin in the USB interface is an interrupt signal, powering on a second USB module; the interrupt signal is generated by triggering the USB slave equipment according to a received first instruction input through an input device;
the second USB module is used for: receiving a first instruction sent by the USB slave equipment through a differential signal pin of the USB interface, and sending the first instruction to the processor; the first instruction is used for instructing the USB master device to execute a first operation;
the processor is configured to: and receiving and executing the first operation.
In one possible implementation, the USB interface is a USB-C interface.
In yet another possible implementation manner, the USB host device further includes an earphone plugging detection module,
the earphone plug detection module is used for: detecting a level signal of an auxiliary pin of the USB interface, and sending a wake-up instruction to the wake-up module when an interrupt signal is detected;
the wake-up module is further configured to power on the second USB module when a wake-up instruction is received.
In the embodiment of the invention, when the USB master device awakening module detects that the level signal of the auxiliary pin in the USB interface is the interrupt signal, the second USB module is powered on, the data transmission function between the USB master device and the USB slave device is recovered, so as to receive the first instruction transmitted through the USB interface, and further respond to the first instruction, so that the USB master device in the suspended state can respond to the instruction sent by the USB slave device.
In a fourth aspect, an embodiment of the present invention further provides a method for a USB master device to respond to a USB slave device, where the method is applied to the USB slave device, and the method includes:
the USB slave equipment receives a first instruction input through an input device and generates an interrupt signal according to the first instruction; the first instruction is used for instructing the USB master device to execute a first operation;
the USB slave device outputs the interrupt signal to the USB master device through an auxiliary pin of the first USB interface, and the interrupt signal is used for waking up a second USB module of the USB master device;
the USB slave device sends the first instruction to the USB master device through a differential signal pin of the first USB interface so as to enable the USB master device to execute the first operation;
wherein the USB slave device includes the first USB interface.
In one possible implementation, the method further includes:
the USB slave equipment powers on a first USB module when detecting that the input device outputs the interrupt signal;
wherein the USB slave device comprises the first USB module.
In yet another possible implementation manner, the first USB interface is a USB-C interface.
In the embodiment of the invention, the USB slave device receives a first instruction input through an input device, generates an interrupt signal according to the first instruction, outputs the interrupt signal to the main USB slave device through an auxiliary pin of a first USB interface, when the USB master device detects that a level signal of the auxiliary pin in a second USB interface is the interrupt signal, the second USB module is powered on to restore the suspended USB bus to a normal working state, the USB slave device sends the first instruction to the USB master device through a differential signal pin of the first USB interface, and further the USB master device receives the first instruction through the differential signal pin of the second USB interface and executes a first operation, so that the USB master device in the suspended state responds to the USB slave device instruction.
In a fifth aspect, an embodiment of the present invention further provides a method for a USB master device to respond to a USB slave device, where the method is applied to the USB master device, and the method includes:
when the USB master device detects that a level signal of an auxiliary pin in a second USB interface is an interrupt signal, a second USB module is powered on, so that the USB slave device sends a first instruction to the USB master device through a differential signal pin of a first USB interface; the interrupt signal is generated by triggering the USB slave equipment according to a received first instruction input through an input device; the first instruction is used for instructing the USB master device to execute a first operation;
the USB master device receives the first instruction through a differential signal pin of the second USB interface and executes the first operation;
wherein the USB slave device comprises the first USB interface; the USB master device comprises the second USB interface and the second USB module; the first USB interface is matched with the second USB interface.
In yet another possible implementation form of the method,
in one possible implementation manner, the first USB interface and the second USB interface are USB-C interfaces.
In the embodiment of the invention, the USB slave device receives a first instruction input through an input device, generates an interrupt signal according to the first instruction, outputs the interrupt signal to the main USB slave device through an auxiliary pin of a first USB interface, when the USB master device detects that a level signal of the auxiliary pin in a second USB interface is the interrupt signal, the second USB module is powered on to restore the suspended USB bus to a normal working state, the USB slave device sends the first instruction to the USB master device through a differential signal pin of the first USB interface, and further the USB master device receives the first instruction through the differential signal pin of the second USB interface and executes a first operation, so that the USB master device in the suspended state responds to the USB slave device instruction.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic illustration of pins of a USB interface according to an embodiment of the present invention;
FIG. 2 is a pin schematic illustration of a USB Type-C interface provided by an embodiment of the present invention;
FIG. 3 is an architecture diagram of a USB system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first USB slave device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second USB slave device according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an input device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a first USB host device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a second USB host device according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a method for a USB master device to respond to a USB slave device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the prior art or the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic illustration of a pin of a USB interface according to an embodiment of the present invention, where the USB interface provides pins for the following signal lines:
at least one power signal pin (VBUS) for providing power;
at least two differential signal pins (D +, D-) are used for transmitting differential signals;
at least one ground pin (GND) for grounding;
at least one auxiliary pin (SU) can customize its function, and in this application, the SU is used to transmit an interrupt signal.
In an embodiment of the present invention, the USB interface may be a USB-C interface, which is also called a USB Type-C interface. The Type-C interface is symmetrical, and the plugging direction and the cable direction of the Type-C interface do not distinguish forward and reverse. Referring to the schematic pin diagram of the USB Type-C interface shown in fig. 2, the USB Type-C interface provides pins for the following signal lines: four VBUS lines, four Ground (GND) lines, two D + lines (D1+ and D2+), two D-lines ((D1-and D2-), two TX + lines (TX1+ and TX2+), two TX-lines (TX 1-and TX2-), two RX + lines (RX1+ and RX2+), two RX-lines (RX 1-and RX2-), two CC lines (CC1 and CC2), and two SBU lines (SBU1 and SBU2), etc.
The 4 power signal pins (VBUS) are used to provide power.
The 4 ground pins (GND) are used for grounding.
2 Channel Configuration (Channel Configuration) signal pins (CC1 and CC2) for function negotiation. For example, the direction of interface insertion and transmission is determined, the power supply function on the interface is negotiated, the redistribution of signals, etc.
The 2 auxiliary signal pins (SBU1 and SBU2) have different purposes in different application scenes and can be customized. In an embodiment of the invention, the auxiliary pins are SBU1 and SBU2 for transmitting interrupt signals.
The 4 differential signal pins (D1+, D2+, D1-and D2-) are used to transmit differential signals.
The 4 transmission differential signal lines (TX1+, TX2+, TX 1-and TX2-) are used to transmit differential signals.
The 4 reception differential signal lines (RX1+, RX2+, RX1-, and RX2-) are used for receiving differential signals.
It is understood that SBUs 1, SBUs 2, CC1, CC2 are signals that conventional USB interfaces do not have. The transmission of the interrupt signal in the embodiment of the present invention may be implemented by the SBU1 and the SBU2 to wake up the USB host device.
Based on the USB interface and the USB-C interface, the embodiments of the present invention provide a USB system including the USB master device and the USB slave device of the USB interface or the USB-C interface.
Referring to fig. 3, fig. 3 is an architecture diagram of a USB system according to an embodiment of the present invention, where the USB system includes a USB host (USB host)10, a USB slave (USB device)20, and a USB bus 30 connecting the USB host 10 and the USB slave 20. The USB host device 10 may be a mobile phone, a computer, a tablet computer, a multimedia player, etc.; the USB slave device 20 may be a USB headset, a USB keyboard, a USB mouse, etc.; it is understood that the USB slave device 20 may also be a mobile phone, a computer, a tablet computer, a multimedia player, etc. with a USB interface, and the present invention is not limited thereto.
It will be appreciated that the USB device (e.g., USB master device 10 or USB slave device 20) can support the suspend state and can enter the suspend state from either level state to cause the USB bus to stop data transfers. When the USB equipment finds that the duration time of the idle state on the USB bus exceeds 3.0ms, the USB controller of the USB equipment is powered down, the USB physical layer module (USB PHY) is powered down or part of the USB controller is powered down, so that the USB equipment enters a suspended state, and the energy consumption of the equipment is reduced. The USB device may have multiple sleep states, for example, in an implementation scenario, the USB device may be in a power-down state, and all software is not run; in another implementation scenario, the USB device may be in a low power consumption state, and a part of the functional units may operate and may respond to user operations. In the embodiment of the present invention, how the host is in the sleep state is not limited.
The USB device in the suspend state may Power up the USB controller, USB PHY, etc. through a Link Power Management module (LPM) after detecting an interrupt signal for waking up the USB module, so as to return the suspended USB controller, USB PHY, etc. to the active state.
It will be appreciated that when USB bus 30 is in the idle state for more than 3ms or other time period, USB bus 30 may enter the suspend state, i.e., the USB controller and some or all of the USB PHY is powered down in the USB master or slave, wherein USB master 10 may power USB slave 20, or USB slave 20 itself, to maintain the implementation of some of the functions of USB slave 20.
For a USB slave device 20 that may be self-powered, when the USB bus 30 is in the suspend state, the USB controller, USB PHY, etc. in the USB master device 10 or the USB slave device 20 is powered down.
For the USB slave device 20 that needs the USB master device 10 to supply power, when the USB bus 30 is in the suspend state, the USB controller in the USB slave device 20 is powered down, and the USB PHY part is powered down to maintain the power supply function of the USB master device to the USB slave device 20; the USB controller in the USB main equipment is powered down, and the USB PHY is powered down.
Alternatively, the operating voltage in USB slave device 20 when USB master device 10 is in the suspend state may be less than the operating voltage when USB slave device 20 is in normal operation.
It should be noted that, in various embodiments of the present invention, each of the USB master device 10 and the USB slave device 20 may include a USB module, and the USB module may include, but is not limited to, a USB controller, a USB physical layer module, and the like, and is used to implement data transmission with a communication peer through a USB bus.
The following describes USB slave devices in embodiments of the present invention:
referring to fig. 4, a schematic structural diagram of a first USB slave device is shown, where the USB slave device 4 includes: a main chip 41, a USB interface 42, an input device 43, and a signal line 44 connecting the main chip 41 and the USB interface; the main chip 41 comprises a processor 411 and a first USB module 412; the input device 42 is connected to the main chip 41 and an auxiliary pin (e.g., SBU1 pin in fig. 4) of the USB interface 42 through the signal line 44; the first USB module 412 is connected to differential signal pins (such as D1+, D1-pins in FIG. 4) connected to the USB interface 42 through the signal lines 44; wherein,
the input device 43 is configured to receive an input first instruction, generate an interrupt signal according to the first instruction, and output the interrupt signal to a USB host device through an auxiliary pin of the USB interface 42; the interrupt signal is used for the USB main equipment to wake up a USB module in the USB main equipment;
the first USB module 412 is configured to obtain a first instruction, and send the first instruction to the USB host device through the differential signal pin of the USB interface 42, so that the USB host device executes the first operation.
The first USB module 412 includes a USB controller and a USB physical layer module (USB PHY); the first instruction is used for instructing the USB master device to execute a first operation; the interrupt signal is used to instruct the USB master device to wake up the second USB module in the USB master device, so as to resume the USB communication connection between the USB master device and the USB slave device 4.
The second USB module is a USB module in the USB host device, and is configured to implement data transmission with a communication peer, such as a USB slave device, through a USB bus).
Specifically, for the USB slave device, the USB controller and the USB PHY are used to implement data transmission between the USB slave device 4 and the USB master device. The USB controller may obtain the first instruction, further buffer the first instruction, and send the first instruction to the USB PHY after the USB host device recovers to operate normally, and the USB PHY encapsulates the first instruction, and sends the encapsulated first instruction to the USB host device through the differential signal pin of the USB interface 42, so that the USB host device executes the first operation.
The input device 43 may be a voice control device, a touch device, a key device or a combination thereof. It will be appreciated that the role of the first instruction may be different in different application scenarios. The first instruction is used for instructing the USB master device to execute a first operation. It is understood that the USB slave device 4, such as a USB headset, may include a sound control apparatus, the sound control apparatus may include a sound input module, such as a microphone, and the sound control apparatus may receive the voice information acquired by the sound input apparatus and convert the voice information into an instruction, for example, a user may input the voice information "increase volume", and the sound control apparatus may generate a volume increase instruction according to the voice information, the volume increase instruction being used to instruct the USB master device to increase the volume of the audio signal output to the USB headset.
In the embodiment of the present invention, the input device 43 is directly connected to the auxiliary pin of the USB interface 42, the input device 43 generates an interrupt signal after receiving the first input command, the interrupt signal is output to the USB host device through the auxiliary pin of the USB interface 42 to wake up the USB host device, and then the first command is sent to the USB host device through the differential signal pin of the USB interface 42, so that the USB host device in the suspend state can respond to the command sent by the USB slave device 4.
Referring to fig. 5, a schematic structural diagram of a second USB slave device is shown, where the USB slave device 5 includes: a main chip 51, a USB interface 52, an input device 53, and a signal line 54 connecting the main chip 51 and the USB interface 52; the main chip 51 comprises a processor 511 and a first USB module 512; the input device 53 is connected to the processor 511, and the processor 511 or the first USB module 512 in the main chip 51 is connected to an auxiliary pin (e.g., SBU1 pin in fig. 5) of the USB through the signal line 54; the first USB module 512 is connected to differential signal pins (such as D1+, D1-pins in FIG. 5) of the USB interface 52; wherein,
the input device 53 is configured to: receiving an input first instruction; and generating an interrupt signal according to the first instruction; the interrupt signal is used for waking up a second USB module of the USB main equipment;
the processor 511 is configured to: acquiring the interrupt signal, and outputting the interrupt signal to a USB host device through an auxiliary pin of the USB interface 52;
the first USB module 512 is configured to: acquiring a first instruction, and sending the first instruction to the USB host device through a differential signal pin of the USB interface 52, so that the USB host device executes the first operation.
The first USB module 512 includes a USB controller and a USB PHY.
The second USB module is a USB module in the USB host device, and is configured to implement data transmission with a communication peer (for example, a USB slave device) through a USB bus.
Specifically, for the USB slave device, the USB controller and the USB PHY are used to implement data transmission between the USB slave device 5 and the USB master device. The USB controller can obtain the first instruction, cache the first instruction, and send the first instruction to the USB PHY after the USB main equipment recovers to work normally; the USB PHY encapsulates the first instruction, and sends the encapsulated first instruction to the USB host device through the differential signal pin of the USB interface 52, so that the USB host device executes the first operation.
In the embodiment of the present invention, when receiving the input first instruction through the input device 53, the processor 511 outputs an interrupt signal to the USB host device through the auxiliary pin of the USB interface 52 to wake up the USB host device, and further sends the first instruction to the USB host device through the differential signal pin of the USB interface 52, so that the USB host device in the suspend state can respond to the instruction sent by the USB slave device 5.
It should be understood that the interrupt signal may be a high level signal, a low level signal, a level jump signal, etc., and the present invention is not limited thereto.
Optionally, for the USB slave shown in fig. 4, the master chip 41 further includes a processor, and the processor may obtain the first instruction and send the first instruction to the USB controller.
For the USB slave device shown in fig. 4 or fig. 5, the processor may also be used to implement the functionality of the USB slave device. For example, when the USB slave device is a USB headset, the processor may include an audio codec module to enable codec of audio data. The USB slave device also comprises a digital-to-analog converter which is used for receiving the audio data from the processor and converting the audio data into the audio analog signal for the output of the earphone.
The first implementation manner of the USB controller acquiring the first instruction may be: the USB controller is connected with the input device, and the input device sends the first instruction to the USB controller. A second implementation manner of the USB controller obtaining the first instruction may be: the processor is connected with the input device, acquires a first instruction input through the input device and sends the first instruction to the USB controller.
In an embodiment of the present invention, before receiving the input first instruction, the USB slave device may be in a sleep state, where its USB controller is in a power-down state, and the USB PHY is in a power-down state or a partial power-down state. The USB slave device further comprises a wake-up module for powering on the first USB module, i.e. the USB controller, the USBPHY and the like, when detecting that the input device outputs the interrupt signal, so as to wake up the USB controller, the USB PHY and the like. When the USB slave device is in a sleep state, if the processor is also powered off, the wake-up module in the USB slave device may first power on the CPU to wake up the CPU.
Optionally, the USB slave device may include a power management module, which is still in an active state when the USB slave device is dormant or the USB controller and the USB PHY are powered down. The power management module is used for receiving the awakening instruction of the awakening module and electrifying the CPU, the USB controller, the USB PHY and the like so as to awaken the suspended thread in the USB slave device.
It is understood that for a USB-C interface, the auxiliary pins may be SBU1 and SBU 2; the differential signal pins may be D1+, D2+, D1-, and D2-, or TX1+, TX2+, TX1-, TX2-, RX1+, RX2+, RX1-, and RX 2-.
It should be noted that, a power signal interface (VBUS) of the USB interface may be connected to the master chip to enable the USB master device to supply power to the USB slave device.
Referring to the schematic diagram of fig. 6, the input device 60 includes at least one control unit connected in parallel, and the first common terminal a of the control units is connected to the auxiliary pin of the USB; the second common ends of the plurality of control units are grounded; wherein,
the control unit comprises at least one resistor and a switch connected with the at least one resistor in series; for example, a first switch S1, a second switch S2, a third switch S3, and the like connected in series to the first resistor R1, the second resistor R2, and the third resistor R3, respectively;
the interrupt signal is an electrical signal output by the input device to the auxiliary pin of the USB or the main chip when the switch is switched on and/or off.
It can be understood that one switch may correspond to one key, and pressing a key may turn on or off the corresponding switch, so as to cause a change in a level at the first common terminal a, that is, a change signal of the level is an interrupt signal, where the first common terminal a is connected to an auxiliary pin of the first USB interface, so that a USB host device connected to the USB slave device may detect the interrupt signal and wake up a USB module in the USB host device, so as to recover a communication connection between the USB host device and the USB slave device.
For example, when the first switch is turned on, the level of the first common terminal a is at a low level, and when the first switch is turned off, the level of the first common terminal a is at a high level. The interrupt signal may be a level jump signal at the first common terminal a when the first switch is turned on; the interrupt signal may also be a level jump signal at the first common terminal a when the first switch is turned off from on; the interrupt signal may also be a level jump signal at the first common terminal a when the first switch is turned on and then turned off, which is not limited in the present invention.
Optionally, the USB slave device further includes a drive-by-wire module, and the drive-by-wire module is configured to generate the first instruction according to a switch that is turned on and/or off. It is understood that the drive-by-wire module may be a part of the input device, or may be integrated on the main chip, and the invention is not limited thereto.
For example, the USB slave device is a USB-C headset, and generates a sound increase instruction when receiving an operation for the first switch; generating a sound reduction instruction when an operation for the second switch is received; when an operation for the third switch is received, a pause/play instruction is generated. For the USB slave device shown in fig. 4, when the first switch is pressed and bounced, on one hand, the USB slave device generates a sound reduction instruction and buffers the sound reduction instruction; on the other hand, the input device outputs an interrupt signal to the auxiliary pin, so that the USB main equipment detects the interrupt signal, and then wakes up the USB main equipment, and further recovers the data communication function of the USB bus. After the USB bus resumes working, the processor or the USB controller may send the first instruction to the USB PHY, the USB PHY encapsulates the sound reduction instruction, and sends the encapsulated sound reduction instruction to the USB master device through a differential signal pin of the USB interface, after receiving the sound reduction instruction, the USB master device responds to the sound reduction instruction, and reduces the volume of sound output to the USB headset, thereby implementing a response of the USB master device to the instruction of the USB slave device when the USB is in a suspend state.
It should be noted that fig. 4 and 5 describe the USB slave device by taking the USB interface as the USB-C interface as an example, and it is understood that in fig. 4 or 5, the USB interface may be an interface as shown in fig. 1.
It should be noted that, in the embodiment of the present invention, the Processor may be a Central Processing Unit (CPU), a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), or other Programmable logic devices, transistor logic devices, hardware components, or any combination thereof, and the present invention is not limited thereto.
It should also be noted that the input device may include, but is not limited to, a touch panel, a physical button, etc., for example, when the USB slave device is a USB headset or a USB-C headset, the input device may be a line control button.
The following describes USB host devices in embodiments of the present invention:
referring to fig. 7, a schematic structural diagram of a first USB host device is shown, where the USB host device 7 includes: a main chip 71, a USB interface 72, and a signal line 73 connecting the main chip 71 and the USB interface 72; the main chip 71 includes a processor 711, a wake-up module 712, and a second USB module 713; wherein,
the wake-up module 712 is configured to power up the second USB module 713 when detecting that the level signal of the auxiliary pin (e.g., SBU1 in fig. 7) in the USB interface 72 is an interrupt signal; the interrupt signal is used to wake up a second USB module in the USB host device 7;
the second USB module 713 is configured to receive a first instruction sent by the USB slave device through the differential signal pin of the USB interface 72, and send the first instruction to the processor 711;
the processor 711 is configured to receive and execute the first operation.
For the USB host, the second USB module 713 may include a USB controller, a USB PHY, and the like. The USB phy receives the first packaged instruction sent by the USB slave device through the differential signaling pins (e.g., D1+ and D1-) of the USB interface 72, parses the first packaged instruction, obtains the first instruction, and sends the first instruction to the processor 711, so that the processor 711 executes the first operation.
It should be understood that the interrupt signal may be a high level signal, a low level signal, a level jump signal, etc., and the present invention is not limited thereto. The interrupt signal is generated by the USB slave device according to the received first instruction.
When the USB host 7 is in the sleep state, if the processor 711 is also powered off, the wake-up module 712 in the USB host 7 may first power on the CPU to wake up the CPU.
Optionally, the USB host 7 may include a power management module 714, and the power management module 714 is still in an operating state when the USB host 7 is in a sleep state or the USB controller and the USB PHY are powered down. The power management module 714 is configured to manage power in the USB host device 7, receive a wake-up instruction of the wake-up module 712, and power up the processor 711, the USB controller, the USB PHY, and the like to wake up a suspended thread in the USB host device 7.
In this embodiment of the present invention, when detecting that the level signal of the auxiliary pin in the USB interface 72 is an interrupt signal, the wake-up module 712 powers up the second USB module 713, so as to resume the data transmission function between the USB host device 7 and the USB slave device, to receive the first instruction transmitted through the USB interface 72, and further respond to the first instruction, so that the USB host device 7 in the suspend state can respond to the instruction sent by the USB slave device.
In an embodiment of the present invention, the USB host device 7 may be a terminal, for example, a mobile phone, a tablet computer, and the like, and the USB host device 7 may include an earphone plugging detection module, where the earphone plugging detection module may detect whether an earphone jack is inserted into an earphone device, for example, the USB host device 7 includes a jack of an earphone of 3.5mm, and may detect plugging of an earphone of 3.5 mm. It is understood that a 3.5mm plug refers to a coaxial audio plug having a diameter of 3.5mm, and a 3.5mm headphone refers to a connected audio device including a 3.5mm plug for transmitting audio signals.
Referring to the structural schematic diagram of the second USB host device shown in fig. 8, in addition to the USB host device 7 shown in fig. 7, the USB host device 8 shown in fig. 8 further includes an earphone plug detection module 715, where an input end of the earphone plug detection module 715 is connected to an auxiliary pin (for example, SBU1 in fig. 7) of the USB interface 72. The headphone plug detecting module 715 is configured to detect a level signal of an auxiliary pin of the USB interface 72, and after detecting an interrupt signal, that is, a transition level signal, the headphone plug detecting module 715 sends a wake-up instruction to the wake-up module 712, so that the wake-up module 712 powers on the second USB module 713 and the second USB module 713 resumes the working state when receiving the wake-up instruction. It can be understood that, in the above method, by multiplexing the plugging logic of the headphone jack in the USB host device 8, the USB host device 8 can wake up the USB host device 8 without adding other improvements.
It is understood that the earphone plugging detection module 715 may be integrated in the main chip 71, or may be disposed in the USB host device 8 separately from the main chip 71.
The USB interface 72 may be the interface shown in fig. 1 or fig. 2, consistent with the type of USB interface of the USB slave device. It is understood that for a USB-C interface, the auxiliary pins may be SBU1 and SBU 2; the differential signal pins may be D1+, D2+, D1-, and D2-, or TX1+, TX2+, TX1-, TX2-, RX1+, RX2+, RX1-, and RX 2-.
It should be noted that fig. 7 and 8 describe the USB host device by taking the USB interface as the USB-C interface as an example, and it is understood that in fig. 4 or fig. 5, the USB interface may be an interface as shown in fig. 1.
It should be noted that, in the embodiment of the present invention, the Processor 711 may be a Central Processing Unit (CPU), a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), or other Programmable logic devices, transistor logic devices, hardware components, or any combination thereof, and the present invention is not limited thereto.
The following describes a method for a USB master device to respond to a USB slave device according to an embodiment of the present invention, where the method may be implemented based on a USB system formed by the USB master device and the USB slave device, please refer to a flowchart of the method for a USB master device to respond to a USB slave device shown in fig. 9, where the method includes, but is not limited to, the following partial or all steps:
it should be noted that, in the embodiment of the present invention, the USB slave device includes a first USB interface and a first USB module; the USB slave device comprises a second USB interface and a second USB module. The terms "first" and "second" in the embodiments of the present invention are used only for distinguishing the respective interfaces or modules, and are not to be construed as indicating or implying relative importance. The first USB interface is USB interface 42 in fig. 4 and USB interface 52 in fig. 5; the first USB module is a first USB module 412 in fig. 4 and a first USB module 512 in fig. 5; a second USB interface, which is USB interface 72 in fig. 7 or fig. 8; the second USB module is a USB interface 713 in fig. 7 or fig. 8, and refer to the related description in fig. 4, fig. 5, fig. 7, or fig. 8 specifically, which is not repeated herein.
Step S900: the USB slave equipment receives a first instruction input through an input device and generates an interrupt signal according to the first instruction.
The input device may be a voice control device, a touch device, a key device or a combination thereof. It will be appreciated that the role of the first instruction may be different in different application scenarios. The first instruction is used for instructing the USB master device to execute a first operation. It is understood that the USB slave device, such as the USB headset, may include a sound control apparatus, the sound control apparatus may include a sound input module, such as a microphone, and the sound control apparatus may receive the voice information acquired by the sound input apparatus and convert the voice information into an instruction, for example, a user may input the voice information "increase volume", and the sound control apparatus may generate a volume increase instruction according to the voice information, the volume increase instruction being used to instruct the USB master device to increase the volume of the audio signal output to the USB headset.
The interrupt signal may be a high level signal, a low level signal, a transition level signal, etc., without limiting the present invention. The interrupt signal is used to wake up a second USB module in the USB host. The interrupt signal is output to the USB master device through the auxiliary pin of the first USB interface, so that the USB master device connected to the USB slave device can detect the interrupt signal and wake up the second USB module.
It can be understood that, for the USB headset, the input device may also be a line control device, please refer to the schematic diagram of the input device generating the interrupt signal described in fig. 6. One switch can correspond to one key, the key can be pressed to enable the corresponding switch to be switched on or switched off, so that the level at the first public end A is changed, namely the level change signal is an interrupt signal, the input device is connected to an auxiliary pin of the first USB interface, and therefore a USB main device connected with the USB slave device can detect the interrupt signal and awaken the second USB module.
Step S902: and the USB slave device outputs the interrupt signal to the main USB slave device through an auxiliary pin of the first USB interface.
And the first USB interface is a USB interface of the USB slave equipment side.
The first USB interface of the USB slave device may refer to the related description in fig. 1 or fig. 2. The connection relationship between each pin of the first USB interface in the USB slave device and the master chip, the input device, the first USB module, and the like in the USB slave device may refer to related description in fig. 4 or fig. 5, which is not described in detail herein.
Step S904: and the USB main equipment powers on the second USB module when detecting that the level signal of the auxiliary pin in the second USB interface is an interrupt signal.
The second USB interface is a USB interface of the USB host device, and the second USB module is a USB module of the USB host device.
The second USB interface of the USB host device may refer to the related description in fig. 1 or fig. 2. The connection relationship between each pin of the second USB interface in the USB host device and the host chip, the processor, the wake-up module, the second USB module, and the like in the USB host device may be described with reference to fig. 7 or fig. 8, which is not described in detail herein.
It can be understood that when the processor of the USB goes to sleep, the USB host may first wake up the processor, i.e. power up the processor, and then power up the second USB module.
The manner in which the USB host wakes up the USB host or the second USB module according to the interrupt signal may refer to the related description in the USB host shown in fig. 7 or fig. 8, which is not repeated herein.
Step S906: and the USB slave equipment sends a first instruction to the USB master equipment through a differential signal pin of the first USB interface.
It will be appreciated that the USB slave device may buffer the first instruction before the USB slave device sends the first instruction to the USB master device. When the second USB module of the USB master device enters a normal operating state, that is, the USB master device and the USB slave device recover the USB communication connection, the USB slave device may send the cached first instruction to the USB master device. Specifically, reference may be made to the related description of the USB slave device shown in fig. 4 or fig. 5, and the description of the present invention is not repeated.
Step S908: and the USB master equipment receives the first instruction through a differential signal pin of the second USB interface and executes the first operation.
In an embodiment of the present invention, after step S900 and before step S906, the method further includes:
and when the USB slave device detects that the input device outputs the interrupt signal, the USB slave device powers on the first USB module to wake up the USB slave device.
The first USB module is a USB module of the USB slave equipment side.
It is understood that the USB slave device may be in a sleep state, the processor and the first USB module of the USB slave device are in a power-down state, and the wake-up module in the USB slave device may power up the processor and the first USB module when detecting the interrupt signal to recover the data transmission function of the second USB module.
For specific implementation of the above steps, reference may be made to the related descriptions in the USB interface, the USB system, the USB slave device, and the USB master device, which is not described in detail herein.
In the embodiment of the invention, the USB slave device receives a first instruction input through an input device, generates an interrupt signal according to the first instruction, outputs the interrupt signal to the main USB slave device through an auxiliary pin of a first USB interface, when the USB master device detects that a level signal of the auxiliary pin in a second USB interface is the interrupt signal, the second USB module is powered on to restore the suspended USB bus to a normal working state, the USB slave device sends the first instruction to the USB master device through a differential signal pin of the first USB interface, and further the USB master device receives the first instruction through the differential signal pin of the second USB interface and executes a first operation, so that the USB master device in the suspended state responds to the USB slave device instruction.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device provided by the embodiment of the invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
Claims (18)
1. A Universal Serial Bus (USB) slave device, comprising: the USB interface comprises a main chip, a USB interface, an input device and a signal wire for connecting the main chip and the USB interface; the main chip comprises a first USB module; the input device is connected to the main chip and an auxiliary pin of the USB through the signal line; the first USB module is connected to a differential signal pin of the USB interface; wherein,
the input device is used for receiving an input first instruction, generating an interrupt signal according to the first instruction, and outputting the interrupt signal to USB main equipment through an auxiliary pin of the USB interface; the first instruction is used for instructing the USB master device to execute a first operation; the interrupt signal is used for waking up a second USB module of the USB main equipment;
the first USB module is used for acquiring a first instruction and sending the first instruction to the USB main equipment through a differential signal pin of the USB interface so as to enable the USB main equipment to execute the first operation.
2. The USB slave device of claim 1, further comprising a wake-up module to power up the first USB module upon detecting that the input apparatus outputs the interrupt signal.
3. The USB slave device of claim 1, wherein the USB interface is a USB-C interface.
4. The USB slave device according to claim 1, wherein the input means comprises at least one control unit connected in parallel, a first common terminal of the plurality of control units being connected to an auxiliary pin of the USB; the second common ends of the plurality of control units are grounded; wherein,
the control unit comprises at least one resistor and a switch connected with the at least one resistor in series;
the interrupt signal is an electrical signal output by the input device to the auxiliary pin of the USB or the main chip when the switch is switched on and/or off.
5. The USB slave device of claim 4, further comprising a drive-by-wire module to generate the first instruction according to a switch that is turned on and/or off.
6. A Universal Serial Bus (USB) slave device, comprising: the USB interface comprises a main chip, a USB interface, an input device and a signal wire for connecting the main chip and the USB interface; the main chip comprises a processor and a first USB module; the input device is connected to the processor, and the main chip is connected to an auxiliary pin of the USB through the signal line; the first USB module is connected to a differential signal pin of the USB interface; wherein
The input device is used for: receiving an input first instruction; and generating an interrupt signal according to the first instruction; the first instruction is used for instructing the USB master device to execute a first operation; the interrupt signal is used for waking up a second USB module in the USB main equipment;
the processor is configured to: acquiring the interrupt signal, and outputting the interrupt signal to USB main equipment through an auxiliary pin of the USB interface;
the first USB module is used for: the method comprises the steps of obtaining a first instruction, and sending the first instruction to the USB main equipment through a differential signal pin of the USB interface so that the USB main equipment can execute the first operation.
7. The USB slave device of claim 6, further comprising a wake-up module to power up the first USB module upon detecting that the input apparatus outputs the interrupt signal.
8. The USB slave device of claim 6, wherein the USB interface is a USB-C interface.
9. The USB slave device according to claim 6, wherein the input means comprises at least one control unit connected in parallel, the first common terminal of the plurality of control units being connected to an auxiliary pin of the USB; the second common ends of the plurality of control units are grounded; wherein,
the control unit comprises at least one resistor and a switch connected with the at least one resistor in series;
the interrupt signal is an electrical signal output by the input device to the auxiliary pin of the USB or the main chip when the switch is switched on and/or off.
10. The USB slave device of claim 9, further comprising a drive-by-wire module to generate the first instruction according to a switch that is turned on and/or off.
11. A Universal Serial Bus (USB) master device, the USB master device comprising: the USB interface comprises a main chip, a USB interface and a data line for connecting the main chip and the USB interface; the main chip comprises a processor, a wake-up module and a second USB module; wherein,
the wake-up module is configured to: when detecting that a level signal of an auxiliary pin in the USB interface is an interrupt signal, powering on a second USB module; the interrupt signal is generated by triggering the USB slave equipment according to a received first instruction input through an input device;
the second USB module is used for: receiving a first instruction sent by the USB slave equipment through a differential signal pin of the USB interface, and sending the first instruction to the processor; the first instruction is used for instructing the USB master device to execute a first operation;
the processor is configured to: and receiving and executing the first operation.
12. The USB host device of claim 11, wherein the USB interface is a USB-C interface.
13. The USB master device of claim 11 or 12, further comprising a headset plug detection module,
the earphone plug detection module is used for: detecting a level signal of an auxiliary pin of the USB interface, and sending a wake-up instruction to the wake-up module when an interrupt signal is detected;
the wake-up module is further configured to power on the second USB module when a wake-up instruction is received.
14. A USB master device response to USB slave device method, the method being applied to a USB slave device, the method comprising:
the USB slave equipment receives a first instruction input through an input device and generates an interrupt signal according to the first instruction; the first instruction is used for instructing the USB master device to execute a first operation;
the USB slave device outputs the interrupt signal to the USB master device through an auxiliary pin of the first USB interface, and the interrupt signal is used for waking up a second USB module of the USB master device;
the USB slave device sends the first instruction to the USB master device through a differential signal pin of the first USB interface so as to enable the USB master device to execute the first operation;
wherein the USB slave device includes the first USB interface.
15. The method of claim 14, wherein the method further comprises:
the USB slave equipment powers on a first USB module when detecting that the input device outputs the interrupt signal;
wherein the USB slave device comprises the first USB module.
16. The method of claim 14 or 15, wherein the first USB interface is a USB-C interface.
17. A USB master device response to USB slave device method, the method being applied to a USB master device, the method comprising:
when the USB master device detects that a level signal of an auxiliary pin in a second USB interface is an interrupt signal, a second USB module is powered on, so that the USB slave device sends a first instruction to the USB master device through a differential signal pin of a first USB interface; the interrupt signal is generated by triggering the USB slave equipment according to a received first instruction input through an input device; the first instruction is used for instructing the USB master device to execute a first operation;
the USB master device receives the first instruction through a differential signal pin of the second USB interface and executes the first operation;
wherein the USB slave device comprises the first USB interface; the USB master device comprises the second USB interface and the second USB module; the first USB interface is matched with the second USB interface.
18. The method of claim 17, wherein the first USB interface and the second USB interface are USB-C interfaces.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810024581.0A CN110018976B (en) | 2018-01-10 | 2018-01-10 | Method for USB master device to respond to USB slave device and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810024581.0A CN110018976B (en) | 2018-01-10 | 2018-01-10 | Method for USB master device to respond to USB slave device and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110018976A true CN110018976A (en) | 2019-07-16 |
CN110018976B CN110018976B (en) | 2022-06-10 |
Family
ID=67188208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810024581.0A Active CN110018976B (en) | 2018-01-10 | 2018-01-10 | Method for USB master device to respond to USB slave device and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110018976B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769319A (en) * | 2019-10-22 | 2020-02-07 | 苏州思必驰信息科技有限公司 | Standby wakeup interaction method and device |
CN111897263A (en) * | 2020-07-30 | 2020-11-06 | Oppo广东移动通信有限公司 | Intelligent glasses control method and device, storage medium and electronic equipment |
CN112559422A (en) * | 2020-12-24 | 2021-03-26 | 深圳劲芯微电子有限公司 | Encoding and decoding implementation method, device and equipment based on USB differential signal line |
CN113094105A (en) * | 2020-01-09 | 2021-07-09 | 北京君正集成电路股份有限公司 | Method for ensuring low power consumption state of USB device and awakening USB device |
CN114860520A (en) * | 2022-04-22 | 2022-08-05 | 珠海海奇半导体有限公司 | USB slave equipment extraction detection circuit |
CN116088658A (en) * | 2022-05-16 | 2023-05-09 | 荣耀终端有限公司 | Abnormality recovery method for electronic equipment and electronic equipment |
CN115118534B (en) * | 2022-06-07 | 2023-11-17 | 合肥移瑞通信技术有限公司 | Low-power-consumption state control method, device, terminal and storage medium of MBB equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938818A (en) * | 2010-08-30 | 2011-01-05 | 中兴通讯股份有限公司 | Two-way waking method, equipment and system based on USB |
CN103760451A (en) * | 2014-01-28 | 2014-04-30 | 天地融科技股份有限公司 | Method and device for detecting interface access modes of intelligent secret key device |
CN104063061A (en) * | 2013-03-20 | 2014-09-24 | 鸿富锦精密工业(武汉)有限公司 | Computer started up through keyboard |
CN105807886A (en) * | 2014-12-30 | 2016-07-27 | 展讯通信(上海)有限公司 | Chip arousing system, chip arousing method and mobile terminal |
CN105960000A (en) * | 2016-06-12 | 2016-09-21 | 努比亚技术有限公司 | Dormancy awakening method and processor |
CN108920397A (en) * | 2018-07-02 | 2018-11-30 | Oppo(重庆)智能科技有限公司 | device identification method, device, storage medium and electronic equipment |
-
2018
- 2018-01-10 CN CN201810024581.0A patent/CN110018976B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938818A (en) * | 2010-08-30 | 2011-01-05 | 中兴通讯股份有限公司 | Two-way waking method, equipment and system based on USB |
CN104063061A (en) * | 2013-03-20 | 2014-09-24 | 鸿富锦精密工业(武汉)有限公司 | Computer started up through keyboard |
CN103760451A (en) * | 2014-01-28 | 2014-04-30 | 天地融科技股份有限公司 | Method and device for detecting interface access modes of intelligent secret key device |
CN105807886A (en) * | 2014-12-30 | 2016-07-27 | 展讯通信(上海)有限公司 | Chip arousing system, chip arousing method and mobile terminal |
CN105960000A (en) * | 2016-06-12 | 2016-09-21 | 努比亚技术有限公司 | Dormancy awakening method and processor |
CN108920397A (en) * | 2018-07-02 | 2018-11-30 | Oppo(重庆)智能科技有限公司 | device identification method, device, storage medium and electronic equipment |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769319A (en) * | 2019-10-22 | 2020-02-07 | 苏州思必驰信息科技有限公司 | Standby wakeup interaction method and device |
CN110769319B (en) * | 2019-10-22 | 2022-05-10 | 思必驰科技股份有限公司 | Standby wakeup interaction method and device |
CN113094105A (en) * | 2020-01-09 | 2021-07-09 | 北京君正集成电路股份有限公司 | Method for ensuring low power consumption state of USB device and awakening USB device |
CN113094105B (en) * | 2020-01-09 | 2024-02-27 | 北京君正集成电路股份有限公司 | Method for guaranteeing low power consumption state of USB device and waking up |
CN111897263A (en) * | 2020-07-30 | 2020-11-06 | Oppo广东移动通信有限公司 | Intelligent glasses control method and device, storage medium and electronic equipment |
CN112559422A (en) * | 2020-12-24 | 2021-03-26 | 深圳劲芯微电子有限公司 | Encoding and decoding implementation method, device and equipment based on USB differential signal line |
CN114860520A (en) * | 2022-04-22 | 2022-08-05 | 珠海海奇半导体有限公司 | USB slave equipment extraction detection circuit |
CN116088658A (en) * | 2022-05-16 | 2023-05-09 | 荣耀终端有限公司 | Abnormality recovery method for electronic equipment and electronic equipment |
CN116088658B (en) * | 2022-05-16 | 2023-10-20 | 荣耀终端有限公司 | Abnormality recovery method for electronic equipment and electronic equipment |
CN115118534B (en) * | 2022-06-07 | 2023-11-17 | 合肥移瑞通信技术有限公司 | Low-power-consumption state control method, device, terminal and storage medium of MBB equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110018976B (en) | 2022-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110018976B (en) | Method for USB master device to respond to USB slave device and related device | |
US9414147B2 (en) | Method and device for earphone and USB to share micro-USB interface | |
US10136223B1 (en) | Control method and control system for audio device | |
WO2018149224A1 (en) | Type-c interface control circuit, control method, and mobile terminal | |
US20070239924A1 (en) | Electronic device transmitting audio-and-video signals with USB connector | |
CN108733609B (en) | Switching circuit, intelligent switching device and switching method of double USB interfaces | |
US20150253842A1 (en) | Semiconductor device, and power control method for usbotg | |
US20210200705A1 (en) | Terminal, terminal peripheral, signal transmission system and signal sending and receiving method | |
CN109672950A (en) | A kind of power-saving circuit and electricity saving method based on Type-C earphone | |
WO2024148860A1 (en) | Pcie network card and interface mode switching method therefor, electronic device, and storage medium | |
US20240152192A1 (en) | Charging Control Method, Electronic Device, and Charging Control System | |
CN109062846B (en) | Universal serial bus device and operation method thereof | |
JP7442551B2 (en) | Mobile terminal and control method | |
WO2024099182A1 (en) | Master/slave node determination method and apparatus, and electronic device and storage medium | |
US9570922B2 (en) | Charging method and electronic device | |
CN108966079B (en) | Control method and system of audio device | |
CN108777627B (en) | Power supply method and device | |
CN110168511B (en) | Electronic equipment and method and device for reducing power consumption | |
CN113316057B (en) | Earphone, method and device for reducing power consumption and electronic equipment | |
TWI394036B (en) | Mother board | |
CN107402898B (en) | Information processing method and electronic equipment | |
CN114924639B (en) | Electronic device and method for waking up micro control unit | |
CN111201522A (en) | Universal serial bus equipment and power saving method thereof | |
CN115494972B (en) | KVM switch with data cross copy function | |
US20220357782A1 (en) | External audio device and method of operating the same capable of reducing power consumption |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |