WO2017166541A1 - User device and method for waking from hibernation, and computer storage medium - Google Patents

User device and method for waking from hibernation, and computer storage medium Download PDF

Info

Publication number
WO2017166541A1
WO2017166541A1 PCT/CN2016/090226 CN2016090226W WO2017166541A1 WO 2017166541 A1 WO2017166541 A1 WO 2017166541A1 CN 2016090226 W CN2016090226 W CN 2016090226W WO 2017166541 A1 WO2017166541 A1 WO 2017166541A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
application
application processor
sleep
usb connection
Prior art date
Application number
PCT/CN2016/090226
Other languages
French (fr)
Chinese (zh)
Inventor
薛晓君
Original Assignee
努比亚技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017166541A1 publication Critical patent/WO2017166541A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a user equipment, a sleep wake-up method, and a computer storage medium.
  • the existing mobile terminal generally includes a modem processor and an application processor, wherein the modem processor is used to complete protocol processing, and is used for modulating and demodulating the transmitted and received communication data to implement external communication equipment. Communication and other functions.
  • the application processor is used to handle complex logical operations and task assignments, providing users with interactive interfaces, running operating systems, and the like.
  • the newly added application processor When a mobile terminal has a dual application processor, the newly added application processor usually cannot autonomously sleep.
  • the original application processor is connected to the newly added application processor through the universal serial bus (USB, Universal Serial Bus) for data communication, the sleep mechanism of the newly added application processor needs to be set according to the communication condition of the USB.
  • USB Universal Serial Bus
  • the embodiments of the present invention provide a user equipment, a sleep wakeup method, and a computer storage medium, which at least solve the defects of the prior art.
  • an embodiment of the present invention provides a user equipment, including:
  • the first processor is configured to be connected to the second processor through a USB interface
  • the first processor is configured to disconnect the USB connection when the first processor or the second processor needs to sleep.
  • the first processor when the first processor has an event that needs to interact with the second processor, the first processor is configured to wake up the second processor and establish a USB connection with the second processor;
  • the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
  • the second processor when the second processor has an event that needs to interact with the first processor, the second processor is configured to wake up the first processor;
  • the first processor is woken up, configured to establish a USB connection with the second processor
  • the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
  • the first processor and the second processor are further configured to make a selection of whether to wake up the other party according to the sleep state of the other party when performing the sleep and wake-up operations.
  • the user equipment further includes: a first user identification card and a second user identification card;
  • the first user identification card and the second user identification card are both connected to the first processor;
  • the first processor is further configured to acquire information of the first user identification card and the second user identification card;
  • the first processor is further configured to send the acquired information of the second user identification card to the second processor;
  • the first processor is further configured to perform data service by communicating with the first 4G network based on the acquired information of the first user identification card;
  • the second processor is further configured to receive information based on the received second user identification card Communicate with the second 4G network to perform data services.
  • an embodiment of the present invention provides a sleep wakeup method, including:
  • the first processor is configured to connect to the second processor through the USB interface
  • the first processor is configured to disconnect the USB connection when the first processor or the second processor needs to sleep.
  • the first processor when the first processor has an event that needs to interact with the second processor, the first processor wakes up the second processor and establishes a USB connection with the second processor;
  • the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
  • the second processor when the second processor has an event that needs to interact with the first processor, the second processor wakes up the first processor;
  • the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
  • the first processor and the second processor when performing the sleep and wake-up operations, make a selection of whether to wake up the other party according to the sleep state of the other party.
  • the first processor acquires information of the first user identification card and the second user identification card, wherein the first user identification card and the second user identification card are both related to the first processor connection;
  • the first processor sends the acquired information of the second user identification card to the second processor;
  • the first processor performs communication with the first 4G network based on the acquired information of the first user identification card to perform data service;
  • the second processor performs data service based on the received information of the second user identification card and the second 4G network.
  • an embodiment of the present invention provides a user equipment, including:
  • the first application processor is configured to connect to the second application processor through the USB interface
  • the first application processor is configured to disconnect the USB connection when the first application processor or the second application processor needs to sleep.
  • the second application processor when the second application processor has an event that needs to interact with the first application processor, the second application processor is configured to wake up the first application processor by using a preset pin;
  • the first application processor After the first application processor is woken up, it is configured to establish a USB connection with the second processor for event interaction.
  • the first application processor when the first application processor has an event that needs to interact with the second application processor, the first application processor is configured to wake up the second application processor by using a preset pin, and establish and USB connection of the second application processor.
  • the first application processor is configured to control the preset pin to trigger the second application processor to enter the sleep state, and Open the USB connection.
  • an embodiment of the present invention provides a sleep wakeup method, including:
  • the first application processor is connected to the second application processor through a USB interface
  • the first application processor disconnects the USB connection when the first application processor or the second application processor needs to sleep.
  • the second application processor when the second application processor has an event that needs to interact with the first application processor, the second application processor wakes up the first application processor by using a preset pin;
  • the first application processor when the first application processor has an event that needs to interact with the second application processor, the first application processor wakes up the second application processor by using a preset pin, and establishes and The USB connection of the second application processor.
  • the first application processor controls the preset pin to trigger the second application processor to enter the sleep state, and disconnects the Said USB connection.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the first processor is connected to the second processor through a USB interface
  • the first processor disconnects the USB connection when the first processor or the second processor needs to sleep.
  • the computer executable instructions further comprise:
  • the first processor When the first processor has an event that needs to interact with the second processor, the first processor wakes up the second processor and establishes a USB connection with the second processor;
  • the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
  • the computer executable instructions further comprise:
  • the second processor wakes up the first processor when the second processor has an event that needs to interact with the first processor
  • the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
  • the computer executable instructions comprise:
  • the first processor and the second processor when performing the sleep and wake-up operations, make a selection of whether to wake up the other party according to the sleep state of the other party.
  • the computer executable instructions comprise:
  • the first processor acquires information of the first user identification card and the second user identification card
  • the first processor sends the acquired information of the second user identification card to the second processor;
  • the first processor performs communication with the first 4G network based on the acquired information of the first user identification card to perform data service;
  • the second processor performs data service based on the received information of the second user identification card and the second 4G network.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions include:
  • the first application processor is connected to the second application processor through a USB interface
  • the first application processor disconnects the USB connection when the first application processor or the second application processor needs to sleep.
  • the computer executable instructions further comprise:
  • the second application processor When the second application processor has an event that needs to interact with the first application processor, the second application processor wakes up the first application processor by using a preset pin;
  • the embodiment of the present invention has the following beneficial effects: when the first processor is in sleep, the USB connection is disconnected, and the second processor is enabled to autonomously sleep; when the second processor has active events (eg, control events, network data events, etc.) Actively waking up the first processor, performing USB reconnection, ensuring that the event on the second processor side is transmitted to the first processor in real time; when the event processing is completed, notifying the first processor to disconnect the USB connection, causing the system to sleep, saving Power consumption.
  • the first processor has a request event to the second processor, the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed, so as to ensure normal sleep of the system and save power consumption.
  • FIG. 1 is a schematic structural diagram of a user equipment according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of state communication between the first processor 10 and the second processor 20 through four groups of GPIOs according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of data and control path connections between a first processor 10 and a second processor 20 implemented by USB according to an embodiment of the present invention
  • FIG. 4 is a flow chart showing the operation of the first processor 10 and the second processor 20 according to an embodiment of the present invention
  • FIG. 5 is a sequence diagram showing the flow of operations of the first processor 10 and the second processor 20 according to another embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a switching operation mode of a USB of a first processor 10 in different scenarios according to an embodiment of the invention
  • FIG. 7 is a schematic structural diagram of a user equipment according to another embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a user equipment according to an embodiment of the present invention.
  • the user equipment 100 includes a first processor 10, a first transceiver 11, a first subscriber identity card 13, a second subscriber identity card 14, a second processor 20, and a second transceiver 21.
  • the embodiment of the present invention implements the architecture of the "first processor 10 + the second processor 20" to implement that the user equipment 100 supports two user identification cards to reside on the 4G network.
  • the first processor 10 is configured to perform protocol processing and is configured to modulate and demodulate the transceived communication data to enable communication with an external communication device or the like.
  • the second processor 20 is configured to complete protocol processing and configured to transmit and receive communication data Line modulation and demodulation to enable communication with external communication devices, and the like.
  • the protocol processing includes performing a protocol stack that processes various network interfaces that interact with the network, for example, a protocol code specified in a communication standard such as LTE/WCDMA/GSM/TDSCDMA/1X/CDMA/EVDO. . These standard protocols are required for user equipment 100 to interact with the carrier network (eg, via data traffic, VOLTE calls, or calls through CS circuit domains).
  • a protocol stack that processes various network interfaces that interact with the network, for example, a protocol code specified in a communication standard such as LTE/WCDMA/GSM/TDSCDMA/1X/CDMA/EVDO.
  • the first processor 10 is further configured to process complex logical operations and perform task assignment, provide an interactive interface for the user, and transmit operation instructions input by the user (for example, an operation instruction input by the user through the user interface regarding surfing or calling)
  • the second processor 20 is also configured to execute an operating system of the user device 100.
  • the operating system is stored in a memory (not shown in FIG. 1), and the operating system includes, but is not limited to, Windows, Linux, Unix, Mac OS X, IOS, Solaris, Android, and the like.
  • the first processor 10 can be connected to the first user identification card 13 and the second user identification card 14, respectively, through a data interface to acquire card information from the first user identification card 13 and the second user identification card 14. Additionally, the first processor 10 can be coupled to the second processor 20 via a data interface to transmit card information to the second processor 20. After acquiring the card information (the card information of the first user identification card 13 and/or the second user identification card 14), the first processor 10 (the second processor 20) can perform network registration and authentication according to the acquired information. Wait for the operation.
  • the subscriber identity card may store one or more of the following information: a unique serial number (ICCID), an International Mobile Subscriber Identity (IMSI), security authentication and encryption information, temporary information related to the local network, and user access. Business list, personal identification number (PIN) and personal unlock code (PUK) for PIN unlocking.
  • the first processor 10 includes both the functions of a modem processor and an application processor.
  • the first processor 10 also includes the functions of a modem processor and an application processor.
  • the first transceiver 11 is responsible for modulating the signal from the first processor 10 into the radio frequency band, and After being processed by power amplification, etc., it is transmitted by the antenna.
  • the first transceiver 11 is also responsible for transmitting the signal received by the antenna to the first processor 10 after low power noise amplification, mixing, and the like.
  • the second transceiver 21 is responsible for modulating the signal from the second processor 20 into the radio frequency band, and transmitting it by the antenna after being processed by power amplification or the like.
  • the second transceiver 21 is also responsible for transmitting the signal received by the antenna to the second processor 20 after low power noise amplification, mixing, and the like.
  • the first processor 10 acquires information of the first subscriber identity card 13 to communicate with the first network based on the acquired information of the first subscriber identity card 13 to perform data services.
  • the second processor 20 acquires information of the second subscriber identity card 14 from the first processor 10 to perform data service based on the acquired information of the second subscriber identity card 14 in communication with the second network.
  • the first processor 10 has voice and data capabilities, and the first processor 10 is further configured to perform voice communication with the 2G and/or 3G network based on the acquired information of the first subscriber identity card 13.
  • the second processor 20 also has voice and data capabilities, whereby the second processor 20 can also perform voice traffic based on the acquired information of the subscriber identity card.
  • the first user identification card 13 and the second user identification card 14 can be respectively connected to two processors, whereby the first processor 10 and the second processor 20 can directly obtain the first connection thereto.
  • the user identifies the card's information for voice and/or data traffic.
  • the first processor 10 includes one or more data interfaces, such as a general purpose I/O interface (GPIO), a UART interface, a USB interface, an I2C interface, and the like.
  • the second processor 20 also includes one or more data transfer interfaces, such as a general purpose I/O interface (GPIO), a UART interface, a USB interface, an I2C interface, and the like.
  • the UART interface is a serial communication interface for transmitting basic information such as control signals and status signals.
  • the first processor 10 can be connected to the user identification card through the UART interface to obtain information of the user identification card.
  • the general purpose I/O interface acts as a state detection interface and is identified by the level of high/low or pulse.
  • the first processor 10 can detect the sleep/wake state of the second processor 20 by the level high/low state of the state detection pin.
  • the USB interface is a high-speed data transmission interface with sufficient bandwidth and data transmission capability to achieve immediate delivery of data (no buffering required).
  • the first processor 10 and the second processor 20 perform state communication through four sets of GPIOs (references 1-4), wherein the states include: a sleep state and an awake state. specific:
  • the first group of GPIOs are used to indicate the sleep or awake state of the first processor 10.
  • the first group of GPIO levels are pulled high (or pulled low), and when waking up, the first group of GPIO levels are pulled low (or pulled high).
  • the second processor 20 can determine the state of the first processor 10 by reading the level state of the first group of GPIOs.
  • the second group GPIO is used to indicate the sleep or wake state of the second processor 20.
  • the second group of GPIO levels are pulled high (or pulled low), and when waking up, the second group of GPIO levels are pulled low (or pulled high).
  • the first processor 10 can determine the state of the second processor 20 by reading the level state of the second group GPIO.
  • the third group of GPIOs is used to wake up the second processor 20 (the first processor 10 triggers the second processor 20 to wake up).
  • the GPIO on the second processor 20 side has a wake-up interrupt function, that is, when the second processor 20 is in the sleep state, if the third group GPIO generates a falling edge (may also be other states, for example, a rising edge, etc.), The second processor 20 interrupts the sleep state and is woken up.
  • the fourth group of GPIOs is used to wake up the first processor 10 (the second processor 20 wakes up the first processor 10).
  • the first processor 10 side GPIO has an interrupt wake-up function, that is, when the first processor 10 is in the sleep state, if the fourth group GPIO generates a falling edge (may also be other states, for example, generating a rising edge, etc.), the first The processor 10 is awakened by interrupting the sleep state.
  • the interface labeled 5 is the USB interface.
  • the data and control path connections between the first processor 10 and the second processor 20 are implemented via USB.
  • the USB interface adopts a host role mode.
  • the first processor 10 acts as a host
  • the device 20 acts as a device.
  • the VBUS pin (power pin) of the first processor 10 outputs an active high level (eg, 5.0V) to the VBUS pin (power pin) of the second processor 20.
  • the level of the D+/D- pin (data pin) changes.
  • the first processor 10 detects the change, it considers that a USB device is inserted and initiated. The enumeration process, the two establish a USB connection. Since the USB bottom layer holds the lock, the first processor 10 and the second processor 20 cannot sleep, and if either party needs to sleep, the USB connection needs to be disconnected.
  • the VBUS pin of the first processor 10 outputs a low level, so that the VBUS pin of the second processor 20 cannot be powered, and the first processor 10 and the second processor 20 The USB connection between them is broken.
  • FIG. 4 a flow chart of the operation states of the first processor 10 and the second processor 20 is shown.
  • controlling the third group of GPIO controls triggers the second processor 20 to interrupt the falling edge, causing the second processor 20 to exit the sleep mode, ie, the second processor 20 Was awakened.
  • the first processor 10 switches to the host mode, and a USB connection is established between the first processor 10 and the second processor 20.
  • the first processor 10 supplies power to the USB of the second processor 20.
  • the second processor 20 wakes up, the level of the second group GPIO is controlled to be pulled low, whereby the first processor 10 can learn the wakeup of the second processor 20.
  • the first processor 10 when the second processor 20 needs to perform sleep after the event interaction between the first processor 10 and the second processor 20 is completed, the first processor 10 is disconnected from the second process.
  • the USB connection of the device 20 ensures that the second processor 20 can sleep normally.
  • the VBUS pin of the first processor 10 outputs a low level, and the first processor 10 controls the third group of GPIOs to generate a rising edge, triggers the second processor 20 to interrupt the entry, and the second processor 20 enters the sleep state.
  • the second processor 20 enters When going to sleep, the level of the second group of GPIOs is pulled high, whereby the first processor 10 can know the sleep of the second processor 20.
  • the control The state of the four groups of GPIOs wakes up the first processor 10. After the first processor 10 is woken up, a USB connection with the second processor 20 is established. When the first processor 10 wakes up, the level of the first group of GPIOs is controlled to be pulled low, whereby the second processor 20 can learn the wakeup of the first processor 10.
  • the first processor 10 actively disconnects the USB connection with the second processor 20, enabling the second processor 20 to autonomously sleep. It does not limit the sleep due to the USB connection.
  • the first processor 10 and the second processor 20 need to first determine the sleep state of the other party when performing the sleep and wake-up operations, and then make a choice whether to wake up the other party, and only perform mutual interaction when necessary. Wake up to minimize system power consumption.
  • the second processor 20 when the second processor 20 is powered off, the GPIO and the interrupt are released.
  • Shutdown here refers to the shutdown of the user equipment.
  • events that interact between the first processor 10 and the second processor 20 include: network events (eg, data traffic through the first processor 10, data through the second processor 20) Business, etc.), events generated by the processor kernel module, events generated by the application, and so on.
  • the manner in which the first processor 10 and the second processor 20 sleep may include maintaining a low clock or not being powered at all, etc., to save power.
  • the manner in which the first processor 10 and the second processor 20 are awakened includes: being fully powered, etc.
  • the USB connection when the first processor sleeps, the USB connection is disconnected, and when the second processor autonomously sleeps, the second processor 20 has active events (eg, control events, network data events, etc.), and actively wakes up.
  • the first processor 10 performs USB reconnection to ensure the side of the second processor 20
  • the event is transmitted to the first processor 10 in real time; when the event processing is completed, the first processor 10 is notified to disconnect the USB connection, so that the system sleeps, saving power consumption.
  • the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed to ensure normal sleep of the system and save power consumption.
  • the USB interface of the first processor 10 is used not only for communicating with the second processor 20 but also for communicating with an external device (eg, an OTG device). Therefore, in this embodiment, the USB of the first processor 10 needs to switch the working mode in different scenarios.
  • the mode needs to be set to mode 2 (NONE mode), and when waking up, it needs to be awake according to The event is set to mode 1 (host mode).
  • the USB path of the first processor 10 is only used to communicate with the second processor 20. Therefore, the USB of the first processor 10 only needs to switch between the host and the none mode.
  • the USB path of the first processor 10 is required to communicate with an external device, and the USB of the first processor 10 needs to be in three modes, namely mode 1 (host mode) and mode 2 (none mode). Switching between and , thereby ensuring that it can communicate with both the external device and the second processor.
  • Mode 3 peripheral mode is used to communicate with external devices.
  • the USB of the first processor 10 is switched from mode 1 to mode 2.
  • the USB of the second processor 20 is switched from mode 2 to mode 1.
  • the USB of the first processor 10 is switched from mode 2 to mode 3.
  • the USB of the first processor 10 is switched from mode 3 to mode 1.
  • the first processor 10 communicates with the second processor 20, an external computer is connected, and the USB mode of the first processor 10 is switched from mode 1 to mode 3. This is because, when communicating with an external computer, the user device 100 operates in the device mode, therefore, There will be a mode 1 to mode 3 conversion.
  • the first processor 10 communicates with the second processor 20, the external OTG device is connected, and the first processor 10 maintains mode 1, that is, the USB of the first processor 10 operates in the host mode.
  • the first processor 10 remains in mode 1 when the connection to the external OTG device is disconnected.
  • the USB of the first processor 10 has a function of communicating with the second processor 20 and an external device, and realizes multiplexing of the USB interface; and only one USB state switching method for the first processor 10 To ensure a balance between power consumption and functionality.
  • the embodiment of the present invention is different from the embodiment shown in FIG. 1 in that, in this embodiment, the first processor 10 includes a first modem processor 101 and a first application processor 102;
  • the second processor 20 includes a second modem processor 201 and a second application processor 202.
  • the first application processor 102 processes complex logical operations and performs task assignment, provides an interactive interface for the user, and transmits the operation instructions input by the user to the second application processor 202.
  • the first application processor 102 is also configured to execute an operating system of the user device 100.
  • the first modem processor 101 performs protocol processing and modulates and demodulates the transmitted and received communication data to implement communication with an external communication device or the like.
  • the second application processor 202 does not perform data processing, but only functions as a transparent transmission.
  • the data processed by the second modem processor 201 is transparently transmitted to the first application processor 102 for processing, and the data transmitted by the first application processor 102 is transparently transmitted to the second modem processor 201.
  • the first application processor 102 and the second application processor 202 perform state communication through four sets of GPIOs (numbers 1-4) and data through the USB interface (reference numeral 5). transmission. specific:
  • the first group of GPIOs are used to indicate the sleep or wake state of the first application processor 102.
  • the first application processor 102 When the first application processor 102 is in sleep, the first group of GPIO levels are pulled high (or pulled low), and when waking up, the first group of GPIO levels are pulled low (or pulled high).
  • the second application processor 202 reads the first group of GPIOs by reading The level state can determine the state of the first application processor 102.
  • the second group of GPIOs is used to indicate the sleep or wake state of the second application processor 202.
  • the second application processor 202 When the second application processor 202 is in sleep, the second group of GPIO levels are pulled high (or pulled low), and when waking up, the second group of GPIO levels are pulled low (or pulled high).
  • the first application processor 102 can determine the state of the second application processor 202 by reading the level state of the second group of GPIOs.
  • the third group of GPIOs is used to wake up the second application processor 202 (the first application processor 102 triggers the second application processor 202 to wake up).
  • the GPIO on the second application processor 202 side has a wake-up interrupt function, that is, when the second application processor 202 is in the sleep state, if the third group of GPIOs generates a falling edge (other states may also be generated, for example, a rising edge is generated, etc.)
  • the second application processor 202 interrupts the sleep state and is woken up.
  • the fourth group of GPIOs is used to wake up the first application processor 102 (the second application processor 202 wakes up the first application processor 102).
  • the first application processor 102 side GPIO has an interrupt wake-up function, that is, when the first application processor 102 is in a sleep state, if the fourth group of GPIOs generates a falling edge (other states, for example, a rising edge, etc.), The first application processor 102 is awakened by interrupting the sleep state.
  • the USB interface adopts a host role mode.
  • the first application processor 102 functions as a host.
  • the second application processor 202 acts as a device.
  • the VBUS pin (power pin) of the first application processor 102 outputs an active high level (eg, 5.0V) to the VBUS pin (power pin) of the second application processor 202.
  • the level of the D+/D- pin (data pin) changes.
  • the USB device is considered to be inserted. , initiate the enumeration process, the two establish a USB connection. Since the USB bottom layer holds the lock, the first application processor 102 and the second application processor 202 cannot perform hibernation, and if either party needs to sleep, the USB connection needs to be disconnected.
  • the first application processor 102 When the USB connection is disconnected, the first application processor 102 The VBUS pin outputs a low level such that the VBUS pin of the second application processor 202 cannot be powered up and the USB connection between the first application processor 102 and the second application processor 202 is broken.
  • the flow of the working states of the first application processor 102 and the second application processor 202 is the same as the flow between the first processor 10 and the second processor 20 shown in FIG. 4 and FIG. 5.
  • controlling the third group of GPIO controls triggers the second application processor 202 to interrupt the falling edge, causing the second application processor 202 to exit the sleep mode, ie, The second application processor 202 is woken up.
  • the first application processor 102 switches to the host mode, and a USB connection is established between the first application processor 102 and the second application processor 202.
  • the first application processor 102 supplies power to the USB of the second application processor 202.
  • the second application processor 202 wakes up, the level of the second group of GPIOs is controlled to be pulled down, whereby the first application processor 102 can learn the wakeup of the second application processor 202.
  • the first application processor 102 when the second application processor 202 needs to perform sleep after the event interaction between the first application processor 102 and the second application processor 202 is completed, the first application processor 102 is disconnected.
  • the USB connection with the second application processor 202 ensures that the second application processor 202 can sleep normally.
  • the VBUS pin of the first application processor 102 outputs a low level, and the first application processor 102 controls the third group of GPIOs to generate a rising edge, triggering the second application processor 202 to interrupt the entry, and the second application processor 202 Go to sleep.
  • the second application processor 202 enters sleep the level of the second group of GPIOs is pulled high, whereby the first application processor 102 can learn the sleep of the second application processor 202.
  • the control The state of the four groups of GPIOs wakes up the first application processor 102. After the first application processor 102 is woken up, a USB connection with the second application processor 202 is established. When the first application processor 102 wakes up, the level of the first group of GPIOs is controlled to be pulled down, whereby the second application processor 202 can learn the wakeup of the first application processor 102.
  • the first application processor 102 actively disconnects the USB connection with the second application processor 202 to enable the second application processor 202. Can sleep autonomously, without restricting the sleep due to the USB connection.
  • the second application processor 202 starts a monitoring process (eg, a WPS task), according to a status event of the first application processor 102 (can be learned by querying the level status of the first group of GPIOs)
  • the monitoring process sets the node to enable the second application processor 202 to enter the sleep autonomously.
  • the first application processor 102 When the first application processor 102 has an event (eg, a network event) that needs to interact with the second application processor 202, sending a message to the preset USB monitoring process, and the USB monitoring process controls the third group of GPIO controls to trigger the second application processing.
  • the device 202 interrupts the falling edge.
  • the monitoring process of the second application processor 202 detects an interrupt event, invokes a preset interface (eg, a resume interface), and causes the second application processor 202 to exit the sleep mode, that is, the second application processor 202 is woken up.
  • the USB interfaces of the first application processor 102 and the second application processor 202 remain connected and power the USB of the second application processor 202.
  • the USB monitoring process of the first application processor 102 controls the third group of GPIOs to generate a rising edge, triggering the second application processor 202 to interrupt the entry.
  • the monitoring process of the second application processor 202 receives an interrupt event, triggering the second application processor 202 to go to sleep.
  • the level of the second group of GPIOs is controlled to be pulled high.
  • the state of the fourth group of GPIOs is controlled to wake up the first application processor 102.
  • the USB port is reconnected.
  • the first application processor 102 queries the detailed event through the control interface, and continues to report to the relevant program of the application layer as needed, and the related program holds the lock until the event processing is completed.
  • the first modem when the first application processor 102 is asleep, the first modem is The processor 101 can be in a sleep or awake state.
  • the second application processor 202 when the second application processor 202 is asleep, the second modem processor 201 enters a sleep state.
  • the associated device when in a sleep state, the associated device can remain low clocked or not powered at all to save power.
  • the first application processor 102 and the second application processor 202 need to first determine the sleep state of the other party when performing the sleep and wake operation, and then make a choice whether to wake up the other party, and only if necessary Wake up each other to minimize system power consumption.
  • shutdown refers to the shutdown of the user equipment.
  • USB switching scheme of the embodiment shown in FIG. 6 above is equally applicable to the first application processor and the second application processor of the embodiment. That is, when the USB of the first application processor in the implementation has the function of communicating with the second application processor 202 and the external device, the first application processor 102 can adopt the USB of the embodiment shown in FIG. 6 above. State switching method to ensure power and function balance.
  • the first application processor disconnects the USB connection while sleeping, enabling the second application processor to autonomously sleep; the second application processor 202 has active events (eg, control events, network data events, etc.) At this time, the first application processor 102 is actively woken up to perform USB reconnection.
  • the event on the second application processor 202 side is ensured to be transmitted to the first application processor 102 in real time; when the event processing is completed, the first application processor 102 is notified to disconnect the USB connection, so that the system sleeps, and power consumption is saved.
  • the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed to ensure normal sleep of the system and save power consumption.
  • the user equipment may comprise any mobile, portable computing or communication device, such as a cellular device, that is connectable to the network.
  • user device 100 can be a cellular telephone (mobile phone), a navigation system, a computing device, a camera, a PDA, a music device, a gaming device, or a handheld device with wireless connectivity.
  • An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
  • the first processor is connected to the second processor through a USB interface
  • the first processor disconnects the USB connection when the first processor or the second processor needs to sleep.
  • the computer executable instructions further comprise:
  • the first processor When the first processor has an event that needs to interact with the second processor, the first processor wakes up the second processor and establishes a USB connection with the second processor;
  • the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
  • the computer executable instructions further comprise:
  • the second processor wakes up the first processor when the second processor has an event that needs to interact with the first processor
  • the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
  • the computer executable instructions comprise:
  • the first processor and the second processor when performing the sleep and wake-up operations, make a selection of whether to wake up the other party according to the sleep state of the other party.
  • the computer executable instructions comprise:
  • the first processor acquires information of the first user identification card and the second user identification card
  • the first processor sends the acquired information of the second user identification card to the second processor;
  • the first processor performs communication with the first 4G network based on the acquired information of the first user identification card to perform data service;
  • the second processor performs data service based on the received information of the second user identification card and the second 4G network.
  • An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
  • the first application processor is connected to the second application processor through a USB interface
  • the first application processor disconnects the USB connection when the first application processor or the second application processor needs to sleep.
  • the computer executable instructions further comprise:
  • the second application processor When the second application processor has an event that needs to interact with the first application processor, the second application processor wakes up the first application processor by using a preset pin;
  • the first application processor when the first application processor has an event that needs to interact with the second application processor, the first application processor wakes up the second application processor by using a preset pin, and establishes the second USB connection to the application processor.
  • the first application processor controls the preset pin to trigger the second application processor to enter the sleep state, and disconnects the Said USB connection.
  • a plurality means two or more unless otherwise specified.
  • the terms “first”, “second” and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
  • Any process or method description in the flowcharts or otherwise described in the embodiments of the invention may be understood to include the inclusion of one or more elements for implementing a particular logical function or process.
  • a module, segment or portion of code of an executable instruction of a step, and the scope of the embodiments of the invention includes additional implementations, which may not be in the order shown or discussed, including in a substantially simultaneous manner depending on the function involved or The functions are performed in the reverse order, which should be understood by those skilled in the art to which the embodiments of the invention are.
  • the first network and the second network may be different networks of different operators, or the same or different networks of the same carrier.
  • the first 4G network and the second 4G network may be LTE networks, or other types of 4G networks.
  • the USB connection is disconnected, and the second processor is enabled to autonomously sleep; when the second processor has an active event (eg, a control event, a network data event, etc.), the first wake-up is active.
  • the processor performs USB reconnection to ensure that the event on the second processor side is transmitted to the first processor in real time; when the event processing is completed, the first processor is notified to disconnect the USB connection, so that the system sleeps and saves power consumption.
  • the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed, so as to ensure normal sleep of the system and save power consumption.

Abstract

The present invention discloses a user device and a method for waking from hibernation, and a computer storage medium. The user device comprises: a first processor and a second processor; the first processor is configured to be connected to the second processor via a USB interface; when the first processor or the second processor needs to hibernate, the first processor is configured to disconnect the USB connection. The advantageous effects of the present invention include: the USB connection is disconnected during the hibernation of the first processor, such that the second processor can hibernate independently, and upon the occurrence of active events to the second processor, the first processor is actively awakened to perform USB re-connection, so as to ensure that events at the second processor are transmitted to the first processor in real time; after processing of the events is completed, the first processor is notified so as to disconnect the USB connection, such that the system can hibernate and reduce power consumption. Upon transmitting a request event by the first processor to the second processor, USB re-connection is actively triggered, and the USB connection is actively disconnected after completing the processing of the event, thus ensuring normal hibernation of the system and reducing power consumption.

Description

用户设备、休眠唤醒方法以及计算机存储介质User equipment, sleep wake-up method, and computer storage medium 技术领域Technical field
本发明涉及通信技术领域,更具体地说,涉及一种用户设备、休眠唤醒方法以及计算机存储介质。The present invention relates to the field of communications technologies, and in particular, to a user equipment, a sleep wake-up method, and a computer storage medium.
背景技术Background technique
现有的移动终端一般包括一个调制解调处理器和一个应用处理器,其中,调制解调处理器用于完成协议处理,以及用于对收发的通信数据进行调制解调,以实现与外部通信设备的通信等功能。应用处理器用于处理复杂的逻辑操作以及进行任务分配,为用户提供交互接口,运行操作系统等。The existing mobile terminal generally includes a modem processor and an application processor, wherein the modem processor is used to complete protocol processing, and is used for modulating and demodulating the transmitted and received communication data to implement external communication equipment. Communication and other functions. The application processor is used to handle complex logical operations and task assignments, providing users with interactive interfaces, running operating systems, and the like.
为了扩展移动终端的通信功能,需要增加新的调制解调器处理器和应用处理器。In order to expand the communication function of the mobile terminal, it is necessary to add a new modem processor and an application processor.
当移动终端具有双应用处理器时,新增的应用处理器通常不能自主休眠。且原有的应用处理器通过通用串行总线(USB,Universal Serial Bus)与新增的应用处理器连接进行数据通信时,新增应用处理器的休眠机制需要根据USB的通信情况设定。而当前技术中并没有提出解决方案,以满足移动终端越来越高的功耗要求。When a mobile terminal has a dual application processor, the newly added application processor usually cannot autonomously sleep. When the original application processor is connected to the newly added application processor through the universal serial bus (USB, Universal Serial Bus) for data communication, the sleep mechanism of the newly added application processor needs to be set according to the communication condition of the USB. However, no solution has been proposed in the current technology to meet the increasingly high power requirements of mobile terminals.
发明内容Summary of the invention
本发明实施例提供一种用户设备及休眠唤醒方法、计算机存储介质,至少解决了现有技术存在的缺陷。The embodiments of the present invention provide a user equipment, a sleep wakeup method, and a computer storage medium, which at least solve the defects of the prior art.
本发明实施例解决其技术问题所采用的技术方案是:The technical solution adopted by the embodiment of the present invention to solve the technical problem thereof is:
第一方面,本发明实施例提供一种用户设备,包括:In a first aspect, an embodiment of the present invention provides a user equipment, including:
第一处理器和第二处理器; a first processor and a second processor;
第一处理器配置为通过USB接口与第二处理器连接;The first processor is configured to be connected to the second processor through a USB interface;
当第一处理器或第二处理器需要休眠时,所述第一处理器配置为断开所述USB连接。The first processor is configured to disconnect the USB connection when the first processor or the second processor needs to sleep.
在一个实施例中,当第一处理器有事件需要与第二处理器交互时,所述第一处理器配置为唤醒第二处理器,并建立与第二处理器的USB连接;In one embodiment, when the first processor has an event that needs to interact with the second processor, the first processor is configured to wake up the second processor and establish a USB connection with the second processor;
当第一处理器和第二处理器之间的事件交互完成后,第一处理器断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the first processor and the second processor is completed, the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
在一个实施例中,当第二处理器有事件需要与第一处理器交互时,所述第二处理器配置为唤醒第一处理器;In one embodiment, when the second processor has an event that needs to interact with the first processor, the second processor is configured to wake up the first processor;
第一处理器被唤醒后,配置为建立与第二处理器的USB连接;After the first processor is woken up, configured to establish a USB connection with the second processor;
当第二处理器和第一处理器之间的事件交互完成后,所述第一处理器主动断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the second processor and the first processor is completed, the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
在一个实施例中,所述第一处理器和第二处理器还配置为在进行休眠与唤醒操作时,根据对方的休眠状态做出是否唤醒对方的选择。In one embodiment, the first processor and the second processor are further configured to make a selection of whether to wake up the other party according to the sleep state of the other party when performing the sleep and wake-up operations.
在一个实施例中,所述用户设备还包括:第一用户识别卡和第二用户识别卡;In an embodiment, the user equipment further includes: a first user identification card and a second user identification card;
所述第一用户识别卡和所述第二用户识别卡均与所述第一处理器连接;The first user identification card and the second user identification card are both connected to the first processor;
所述第一处理器,还配置为获取第一用户识别卡和第二用户识别卡的信息;The first processor is further configured to acquire information of the first user identification card and the second user identification card;
所述第一处理器,还配置为将获取的第二用户识别卡的信息发送给所述第二处理器;The first processor is further configured to send the acquired information of the second user identification card to the second processor;
所述第一处理器,还配置为基于获取的所述第一用户识别卡的信息与第一4G网络通信,进行数据业务;The first processor is further configured to perform data service by communicating with the first 4G network based on the acquired information of the first user identification card;
所述第二处理器,还配置为基于接收到的所述第二用户识别卡的信息 与第二4G网络通信,进行数据业务。The second processor is further configured to receive information based on the received second user identification card Communicate with the second 4G network to perform data services.
第二方面,本发明实施例提供一种休眠唤醒方法,包括:In a second aspect, an embodiment of the present invention provides a sleep wakeup method, including:
第一处理器用于通过USB接口与第二处理器连接;The first processor is configured to connect to the second processor through the USB interface;
当第一处理器或第二处理器需要休眠时,所述第一处理器用于断开所述USB连接。The first processor is configured to disconnect the USB connection when the first processor or the second processor needs to sleep.
在一个实施例中,当第一处理器有事件需要与第二处理器交互时,所述第一处理器唤醒第二处理器,并建立与第二处理器的USB连接;In one embodiment, when the first processor has an event that needs to interact with the second processor, the first processor wakes up the second processor and establishes a USB connection with the second processor;
当第一处理器和第二处理器之间的事件交互完成后,第一处理器断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the first processor and the second processor is completed, the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
在一个实施例中,当第二处理器有事件需要与第一处理器交互时,所述第二处理器唤醒第一处理器;In one embodiment, when the second processor has an event that needs to interact with the first processor, the second processor wakes up the first processor;
第一处理器被唤醒后,建立与第二处理器的USB连接;After the first processor is woken up, establishing a USB connection with the second processor;
当第二处理器和第一处理器之间的事件交互完成后,所述第一处理器主动断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the second processor and the first processor is completed, the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
在一个实施例中,所述第一处理器和第二处理器在进行休眠与唤醒操作时,根据对方的休眠状态做出是否唤醒对方的选择。In one embodiment, the first processor and the second processor, when performing the sleep and wake-up operations, make a selection of whether to wake up the other party according to the sleep state of the other party.
在一个实施例中,所述第一处理器获取第一用户识别卡和第二用户识别卡的信息,所述第一用户识别卡和所述第二用户识别卡均与所述第一处理器连接;In one embodiment, the first processor acquires information of the first user identification card and the second user identification card, wherein the first user identification card and the second user identification card are both related to the first processor connection;
所述第一处理器将获取的所述第二用户识别卡的信息发送给所述第二处理器;The first processor sends the acquired information of the second user identification card to the second processor;
所述第一处理器基于获取的所述第一用户识别卡的信息与第一4G网络通信,进行数据业务;The first processor performs communication with the first 4G network based on the acquired information of the first user identification card to perform data service;
所述第二处理器基于接收到的所述第二用户识别卡的信息与第二4G网络通信,进行数据业务。 The second processor performs data service based on the received information of the second user identification card and the second 4G network.
第三方面,本发明实施例提供一种用户设备,包括:In a third aspect, an embodiment of the present invention provides a user equipment, including:
第一应用处理器和第二应用处理器;a first application processor and a second application processor;
第一应用处理器配置为通过USB接口与第二应用处理器连接;The first application processor is configured to connect to the second application processor through the USB interface;
当第一应用处理器或第二应用处理器需要休眠时,所述第一应用处理器配置为断开所述USB连接。The first application processor is configured to disconnect the USB connection when the first application processor or the second application processor needs to sleep.
在一个实施例中,当第二应用处理器有事件需要与第一应用处理器交互时,所述第二应用处理器配置为通过预设引脚唤醒第一应用处理器;In one embodiment, when the second application processor has an event that needs to interact with the first application processor, the second application processor is configured to wake up the first application processor by using a preset pin;
所述第一应用处理器被唤醒后,配置为建立与所述第二处理器的USB连接以进行事件交互。After the first application processor is woken up, it is configured to establish a USB connection with the second processor for event interaction.
在一个实施例中,当第一应用处理器有事件需要与第二应用处理器交互时,所述第一应用处理器配置为通过预设引脚唤醒第二应用处理器,并建立与所述第二应用处理器的USB连接。In one embodiment, when the first application processor has an event that needs to interact with the second application processor, the first application processor is configured to wake up the second application processor by using a preset pin, and establish and USB connection of the second application processor.
在一个实施例中,所述第一应用处理器和第二应用处理器的事件交互完成后,所述第一应用处理器配置为控制预设引脚触发第二应用处理器进入休眠,并断开所述USB连接。In one embodiment, after the event interaction between the first application processor and the second application processor is completed, the first application processor is configured to control the preset pin to trigger the second application processor to enter the sleep state, and Open the USB connection.
第四方面,本发明实施例提供一种休眠唤醒方法,包括:In a fourth aspect, an embodiment of the present invention provides a sleep wakeup method, including:
第一应用处理器通过USB接口与第二应用处理器连接;The first application processor is connected to the second application processor through a USB interface;
当第一应用处理器或第二应用处理器需要休眠时,所述第一应用处理器断开所述USB连接。The first application processor disconnects the USB connection when the first application processor or the second application processor needs to sleep.
在一个实施例中,当第二应用处理器有事件需要与第一应用处理器交互时,所述第二应用处理器通过预设引脚唤醒第一应用处理器;In one embodiment, when the second application processor has an event that needs to interact with the first application processor, the second application processor wakes up the first application processor by using a preset pin;
所述第一应用处理器被唤醒后,建立与所述第二处理器的USB连接以进行事件交互。After the first application processor is woken up, a USB connection with the second processor is established for event interaction.
在一个实施例中,当第一应用处理器有事件需要与第二应用处理器交互时,所述第一应用处理器通过预设引脚唤醒第二应用处理器,并建立与 所述第二应用处理器的USB连接。In one embodiment, when the first application processor has an event that needs to interact with the second application processor, the first application processor wakes up the second application processor by using a preset pin, and establishes and The USB connection of the second application processor.
在一个实施例中,所述第一应用处理器和第二应用处理器的事件交互完成后,所述第一应用处理器控制预设引脚触发第二应用处理器进入休眠,并断开所述USB连接。In an embodiment, after the event interaction between the first application processor and the second application processor is completed, the first application processor controls the preset pin to trigger the second application processor to enter the sleep state, and disconnects the Said USB connection.
第五方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令包括:In a fifth aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions include:
第一处理器通过USB接口与第二处理器连接;The first processor is connected to the second processor through a USB interface;
当第一处理器或第二处理器需要休眠时,所述第一处理器断开所述USB连接。The first processor disconnects the USB connection when the first processor or the second processor needs to sleep.
在一实施例中,该计算机可执行指令还包括:In an embodiment, the computer executable instructions further comprise:
当第一处理器有事件需要与第二处理器交互时,所述第一处理器唤醒第二处理器,并建立与第二处理器的USB连接;When the first processor has an event that needs to interact with the second processor, the first processor wakes up the second processor and establishes a USB connection with the second processor;
当第一处理器和第二处理器之间的事件交互完成后,第一处理器断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the first processor and the second processor is completed, the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
在一实施例中,该计算机可执行指令还包括:In an embodiment, the computer executable instructions further comprise:
当第二处理器有事件需要与第一处理器交互时,所述第二处理器唤醒第一处理器;The second processor wakes up the first processor when the second processor has an event that needs to interact with the first processor;
第一处理器被唤醒后,建立与第二处理器的USB连接;After the first processor is woken up, establishing a USB connection with the second processor;
当第二处理器和第一处理器之间的事件交互完成后,所述第一处理器主动断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the second processor and the first processor is completed, the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
在一实施例中,该计算机可执行指令包括:In an embodiment, the computer executable instructions comprise:
所述第一处理器和第二处理器在进行休眠与唤醒操作时,根据对方的休眠状态做出是否唤醒对方的选择。The first processor and the second processor, when performing the sleep and wake-up operations, make a selection of whether to wake up the other party according to the sleep state of the other party.
在一实施例中,该计算机可执行指令包括:In an embodiment, the computer executable instructions comprise:
将所述第一用户识别卡和所述第二用户识别卡均与所述第一处理器连 接;Connecting the first user identification card and the second user identification card to the first processor Connect
所述第一处理器获取第一用户识别卡和第二用户识别卡的信息;The first processor acquires information of the first user identification card and the second user identification card;
所述第一处理器将获取的第二用户识别卡的信息发送给所述第二处理器;The first processor sends the acquired information of the second user identification card to the second processor;
所述第一处理器基于获取的所述第一用户识别卡的信息与第一4G网络通信,进行数据业务;The first processor performs communication with the first 4G network based on the acquired information of the first user identification card to perform data service;
所述第二处理器基于接收到的所述第二用户识别卡的信息与第二4G网络通信,进行数据业务。The second processor performs data service based on the received information of the second user identification card and the second 4G network.
第六方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令包括:In a sixth aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions include:
第一应用处理器通过USB接口与第二应用处理器连接;The first application processor is connected to the second application processor through a USB interface;
当第一应用处理器或第二应用处理器需要休眠时,所述第一应用处理器断开所述USB连接。The first application processor disconnects the USB connection when the first application processor or the second application processor needs to sleep.
在一实施例中,该计算机可执行指令还包括:In an embodiment, the computer executable instructions further comprise:
当第二应用处理器有事件需要与第一应用处理器交互时,所述第二应用处理器通过预设引脚唤醒第一应用处理器;When the second application processor has an event that needs to interact with the first application processor, the second application processor wakes up the first application processor by using a preset pin;
所述第一应用处理器被唤醒后,建立与所述第二处理器的USB连接以进行事件交互。After the first application processor is woken up, a USB connection with the second processor is established for event interaction.
采用本发明实施例,具有以下有益效果:第一处理器休眠时断开USB连接,使能第二处理器自主休眠;第二处理器有主动事件(例如,控制事件,网络数据事件等)时,主动唤醒第一处理器,进行USB重连,保证第二处理器侧的事件实时传送到第一处理器;当事件处理完成后,通知第一处理器断开USB连接,使得系统休眠,节省功耗。当第一处理器有请求事件到第二处理器时,主动触发USB重连,事件处理完成后主动断开USB连接,以保证系统的正常休眠,节省功耗。 The embodiment of the present invention has the following beneficial effects: when the first processor is in sleep, the USB connection is disconnected, and the second processor is enabled to autonomously sleep; when the second processor has active events (eg, control events, network data events, etc.) Actively waking up the first processor, performing USB reconnection, ensuring that the event on the second processor side is transmitted to the first processor in real time; when the event processing is completed, notifying the first processor to disconnect the USB connection, causing the system to sleep, saving Power consumption. When the first processor has a request event to the second processor, the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed, so as to ensure normal sleep of the system and save power consumption.
附图说明DRAWINGS
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
图1是本发明一实施例的用户设备的结构示意图;1 is a schematic structural diagram of a user equipment according to an embodiment of the present invention;
图2是本发明实施例的第一处理器10与第二处理器20通过四组GPIO进行状态沟通的示意图;2 is a schematic diagram of state communication between the first processor 10 and the second processor 20 through four groups of GPIOs according to an embodiment of the present invention;
图3是本发明一实施例的第一处理器10和第二处理器20之间的数据和控制通路连接通过USB实现的示意图;3 is a schematic diagram of data and control path connections between a first processor 10 and a second processor 20 implemented by USB according to an embodiment of the present invention;
图4是本发明一实施例的第一处理器10和第二处理器20工作状态的流程时序图;4 is a flow chart showing the operation of the first processor 10 and the second processor 20 according to an embodiment of the present invention;
图5是本发明另一实施例的第一处理器10和第二处理器20工作状态的流程时序图;FIG. 5 is a sequence diagram showing the flow of operations of the first processor 10 and the second processor 20 according to another embodiment of the present invention;
图6是本发明一实施例的第一处理器10的USB在不同场景下切换工作模式的示意图;FIG. 6 is a schematic diagram of a switching operation mode of a USB of a first processor 10 in different scenarios according to an embodiment of the invention; FIG.
图7是本发明另一实施例的用户设备的结构示意图。FIG. 7 is a schematic structural diagram of a user equipment according to another embodiment of the present invention.
具体实施方式detailed description
为了对本发明的技术特征、目的和效果有更加清楚的理解,现对照附图详细说明本发明的具体实施方式。For a better understanding of the technical features, objects and effects of the present invention, the embodiments of the present invention are described in detail with reference to the accompanying drawings.
参见图1为本发明一实施例的用户设备的结构示意图。用户设备100包括:第一处理器10、第一收发机11、第一用户识别卡13、第二用户识别卡14、第二处理器20、第二收发机21。FIG. 1 is a schematic structural diagram of a user equipment according to an embodiment of the present invention. The user equipment 100 includes a first processor 10, a first transceiver 11, a first subscriber identity card 13, a second subscriber identity card 14, a second processor 20, and a second transceiver 21.
本发明实施例运用“第一处理器10+第二处理器20”的架构来实现用户设备100支持两张用户识别卡均驻留在4G网络。The embodiment of the present invention implements the architecture of the "first processor 10 + the second processor 20" to implement that the user equipment 100 supports two user identification cards to reside on the 4G network.
在本发明的实施例中,第一处理器10配置为完成协议处理,以及配置为对收发的通信数据进行调制解调,以实现与外部通信设备的通信等。In an embodiment of the present invention, the first processor 10 is configured to perform protocol processing and is configured to modulate and demodulate the transceived communication data to enable communication with an external communication device or the like.
第二处理器20配置为完成协议处理,以及配置为对收发的通信数据进 行调制解调,以实现与外部通信设备的通信等。The second processor 20 is configured to complete protocol processing and configured to transmit and receive communication data Line modulation and demodulation to enable communication with external communication devices, and the like.
在本发明的一实施例中,协议处理包括执行处理各种与网络交互的网络制式的协议栈,例如,LTE/WCDMA/GSM/TDSCDMA/1X/CDMA/EVDO等通信标准里规定好的协议代码。这些标准的协议是用户设备100与运营商网络进行交互(例如,通过数据流量上网、通过VOLTE打电话或者通过CS电路域打电话等)所必须遵从的。In an embodiment of the invention, the protocol processing includes performing a protocol stack that processes various network interfaces that interact with the network, for example, a protocol code specified in a communication standard such as LTE/WCDMA/GSM/TDSCDMA/1X/CDMA/EVDO. . These standard protocols are required for user equipment 100 to interact with the carrier network (eg, via data traffic, VOLTE calls, or calls through CS circuit domains).
第一处理器10还配置为处理复杂的逻辑操作以及进行任务分配,为用户提供交互接口,将用户输入的操作指令(例如,用户通过用户界面输入的有关上网或打电话的操作指令)传输给第二处理器20。第一处理器10还配置为执行用户设备100的操作系统。操作系统存储于存储器(图1中未示出)中,操作系统包括但不限于Windows、Linux、Unix、Mac OS X、IOS、Solaris、Android等。The first processor 10 is further configured to process complex logical operations and perform task assignment, provide an interactive interface for the user, and transmit operation instructions input by the user (for example, an operation instruction input by the user through the user interface regarding surfing or calling) The second processor 20. The first processor 10 is also configured to execute an operating system of the user device 100. The operating system is stored in a memory (not shown in FIG. 1), and the operating system includes, but is not limited to, Windows, Linux, Unix, Mac OS X, IOS, Solaris, Android, and the like.
第一处理器10可通过数据接口分别与第一用户识别卡13和第二用户识别卡14连接,以从第一用户识别卡13和第二用户识别卡14获取卡信息。此外,第一处理器10可通过数据接口与第二处理器20连接,以将卡信息传输给第二处理器20。获取到卡信息(第一用户识别卡13和/或第二用户识别卡14的卡信息)后,第一处理器10(第二处理器20)可根据获取的信息进行搜网注册、鉴权等操作。具体的,用户识别卡可存储以下信息中的一个或多个:唯一序列号(ICCID)、国际移动用户标识(IMSI)、安全认证和加密信息、与本地网络相关的临时信息、用户接入的业务列表、个人身份号码(PIN)和用于PIN解锁的个人解锁码(PUK)。The first processor 10 can be connected to the first user identification card 13 and the second user identification card 14, respectively, through a data interface to acquire card information from the first user identification card 13 and the second user identification card 14. Additionally, the first processor 10 can be coupled to the second processor 20 via a data interface to transmit card information to the second processor 20. After acquiring the card information (the card information of the first user identification card 13 and/or the second user identification card 14), the first processor 10 (the second processor 20) can perform network registration and authentication according to the acquired information. Wait for the operation. Specifically, the subscriber identity card may store one or more of the following information: a unique serial number (ICCID), an International Mobile Subscriber Identity (IMSI), security authentication and encryption information, temporary information related to the local network, and user access. Business list, personal identification number (PIN) and personal unlock code (PUK) for PIN unlocking.
在本发明的该实施例中,第一处理器10同时包括了调制解调处理器和应用处理器的功能。第一处理器10也同时包括了调制解调处理器和应用处理器的功能。In this embodiment of the invention, the first processor 10 includes both the functions of a modem processor and an application processor. The first processor 10 also includes the functions of a modem processor and an application processor.
第一收发机11负责把来自第一处理器10的信号调制到射频频段,以及 经功率放大等处理后由天线发射出去。第一收发机11还负责将天线接收到的信号经过低功率噪声放大、混频等处理后送入第一处理器10。The first transceiver 11 is responsible for modulating the signal from the first processor 10 into the radio frequency band, and After being processed by power amplification, etc., it is transmitted by the antenna. The first transceiver 11 is also responsible for transmitting the signal received by the antenna to the first processor 10 after low power noise amplification, mixing, and the like.
第二收发机21负责把来自第二处理器20的信号调制到射频频段,以及经功率放大等处理后由天线发射出去。第二收发机21还负责将天线接收到的信号经过低功率噪声放大、混频等处理后送入第二处理器20。The second transceiver 21 is responsible for modulating the signal from the second processor 20 into the radio frequency band, and transmitting it by the antenna after being processed by power amplification or the like. The second transceiver 21 is also responsible for transmitting the signal received by the antenna to the second processor 20 after low power noise amplification, mixing, and the like.
在本发明的该实施例中,第一处理器10获取第一用户识别卡13的信息,以基于获取的第一用户识别卡13的信息与第一网络通信,进行数据业务。In this embodiment of the present invention, the first processor 10 acquires information of the first subscriber identity card 13 to communicate with the first network based on the acquired information of the first subscriber identity card 13 to perform data services.
第二处理器20从第一处理器10处获取第二用户识别卡14的信息,以基于获取的第二用户识别卡14的信息与第二网络通信,进行数据业务。The second processor 20 acquires information of the second subscriber identity card 14 from the first processor 10 to perform data service based on the acquired information of the second subscriber identity card 14 in communication with the second network.
在本发明的一实施例中,第一处理器10具有语音和数据能力,第一处理器10还配置为基于获取的第一用户识别卡13的信息与2G和/或3G网络通信,进行语音业务,以及配置为基于获取的第二用户识别卡14的信息与2G和/或3G网络通信,进行语音业务。In an embodiment of the invention, the first processor 10 has voice and data capabilities, and the first processor 10 is further configured to perform voice communication with the 2G and/or 3G network based on the acquired information of the first subscriber identity card 13. The service, and the information configured to communicate with the 2G and/or 3G network based on the acquired information of the second subscriber identity card 14, performs voice services.
在其它实施例中,第二处理器20也具有语音和数据能力,由此,第二处理器20也可基于获取的用户识别卡的信息进行语音业务。In other embodiments, the second processor 20 also has voice and data capabilities, whereby the second processor 20 can also perform voice traffic based on the acquired information of the subscriber identity card.
且,在一些实施例中,第一用户识别卡13和第二用户识别卡14可分别与两个处理器连接,由此,第一处理器10和第二处理器20可分别直接获取与其相连的用户识别卡的信息,以进行语音和/或数据业务。Moreover, in some embodiments, the first user identification card 13 and the second user identification card 14 can be respectively connected to two processors, whereby the first processor 10 and the second processor 20 can directly obtain the first connection thereto. The user identifies the card's information for voice and/or data traffic.
在本发明的实施例中,第一处理器10包括一个或多个数据接口,例如,通用I/O接口(GPIO)、UART接口、USB接口、I2C接口等等。第二处理器20同样包括一个或多个数据传输接口,例如,通用I/O接口(GPIO)、UART接口、USB接口、I2C接口等等。In an embodiment of the invention, the first processor 10 includes one or more data interfaces, such as a general purpose I/O interface (GPIO), a UART interface, a USB interface, an I2C interface, and the like. The second processor 20 also includes one or more data transfer interfaces, such as a general purpose I/O interface (GPIO), a UART interface, a USB interface, an I2C interface, and the like.
其中,UART接口是一种串行通信接口,用于传输控制信号、状态信号等基本信息。例如,本发明实施例中,第一处理器10可通过UART接口与用户识别卡连接,以获取用户识别卡的信息。 The UART interface is a serial communication interface for transmitting basic information such as control signals and status signals. For example, in the embodiment of the present invention, the first processor 10 can be connected to the user identification card through the UART interface to obtain information of the user identification card.
通用I/O接口作为状态侦测接口,通过电平的高/低或者脉冲来识别。例如,第一处理器10可通过状态侦测引脚的电平高/低状态,检测第二处理器20的休眠/唤醒状态。The general purpose I/O interface acts as a state detection interface and is identified by the level of high/low or pulse. For example, the first processor 10 can detect the sleep/wake state of the second processor 20 by the level high/low state of the state detection pin.
USB接口为高速数据传输接口,具有足够的带宽和数据传输能力,用于实现对数据的即收即送(无需缓冲)。The USB interface is a high-speed data transmission interface with sufficient bandwidth and data transmission capability to achieve immediate delivery of data (no buffering required).
在本发明的一实施例中,参见图2,第一处理器10与第二处理器20通过四组GPIO(标号1-4)进行状态沟通,其中,状态包括:休眠状态和唤醒状态。具体的:In an embodiment of the present invention, referring to FIG. 2, the first processor 10 and the second processor 20 perform state communication through four sets of GPIOs (references 1-4), wherein the states include: a sleep state and an awake state. specific:
(1)第1组GPIO用于指示第一处理器10的休眠或唤醒状态。第一处理器10在休眠时,将第1组GPIO电平拉高(或拉低),唤醒时,将第1组GPIO电平拉低(或拉高)。由此,第二处理器20通过读取第1组GPIO的电平状态可判断第一处理器10的状态。(1) The first group of GPIOs are used to indicate the sleep or awake state of the first processor 10. When the first processor 10 is in sleep, the first group of GPIO levels are pulled high (or pulled low), and when waking up, the first group of GPIO levels are pulled low (or pulled high). Thereby, the second processor 20 can determine the state of the first processor 10 by reading the level state of the first group of GPIOs.
(2)第2组GPIO用于指示第二处理器20的休眠或唤醒状态。第二处理器20在休眠时,将第2组GPIO电平拉高(或拉低),唤醒时,将第2组GPIO电平拉低(或拉高)。由此,第一处理器10通过读取第2组GPIO的电平状态可判断第二处理器20的状态。(2) The second group GPIO is used to indicate the sleep or wake state of the second processor 20. When the second processor 20 is in sleep, the second group of GPIO levels are pulled high (or pulled low), and when waking up, the second group of GPIO levels are pulled low (or pulled high). Thereby, the first processor 10 can determine the state of the second processor 20 by reading the level state of the second group GPIO.
(3)第3组GPIO用于唤醒第二处理器20(第一处理器10触发第二处理器20唤醒)。第二处理器20侧的GPIO有唤醒中断功能,即第二处理器20处于休眠状态时,若第3组GPIO产生下降沿时(也可为其它的状态,例如,产生上升沿等),第二处理器20中断休眠状态而被唤醒。(3) The third group of GPIOs is used to wake up the second processor 20 (the first processor 10 triggers the second processor 20 to wake up). The GPIO on the second processor 20 side has a wake-up interrupt function, that is, when the second processor 20 is in the sleep state, if the third group GPIO generates a falling edge (may also be other states, for example, a rising edge, etc.), The second processor 20 interrupts the sleep state and is woken up.
(4)第4组GPIO用于唤醒第一处理器10(第二处理器20唤醒第一处理器10)。第一处理器10侧GPIO有中断唤醒功能,即第一处理器10处于休眠状态时,若第4组GPIO产生下降沿时(也可为其它的状态,例如,产生上升沿等),第一处理器10中断休眠状态而被唤醒。(4) The fourth group of GPIOs is used to wake up the first processor 10 (the second processor 20 wakes up the first processor 10). The first processor 10 side GPIO has an interrupt wake-up function, that is, when the first processor 10 is in the sleep state, if the fourth group GPIO generates a falling edge (may also be other states, for example, generating a rising edge, etc.), the first The processor 10 is awakened by interrupting the sleep state.
参见图1,标号为5的接口即为USB接口。参见图3,在本发明的一实施 例中,第一处理器10和第二处理器20之间的数据和控制通路连接通过USB实现。当第一处理器10和第二处理器20进行数据通信时,USB接口采用主(host)从(device)角色模式,在本发明的实施例中,第一处理器10作为host,第二处理器20作为device。Referring to Figure 1, the interface labeled 5 is the USB interface. Referring to Figure 3, an implementation of the present invention In an example, the data and control path connections between the first processor 10 and the second processor 20 are implemented via USB. When the first processor 10 and the second processor 20 perform data communication, the USB interface adopts a host role mode. In the embodiment of the present invention, the first processor 10 acts as a host, and the second process The device 20 acts as a device.
在一个实施例中,第一处理器10的VBUS引脚(电源引脚)输出有效高电平(例如,5.0V)提供给第二处理器20的VBUS引脚(电源引脚)。第二处理器20的VBUS引脚上电后,D+/D-引脚(数据引脚)的电平会发生变化,第一处理器10检测到这种变化后,认为有USB device插入,发起枚举过程,二者建立USB连接。由于USB底层持有锁,第一处理器10和第二处理器20不能进行休眠,若任一方需要休眠则需要断开USB连接。具体的,断开USB连接时,第一处理器10的VBUS引脚输出低电平,从而使得第二处理器20的VBUS引脚不能上电,第一处理器10和第二处理器20之间的USB连接断开。In one embodiment, the VBUS pin (power pin) of the first processor 10 outputs an active high level (eg, 5.0V) to the VBUS pin (power pin) of the second processor 20. After the VBUS pin of the second processor 20 is powered on, the level of the D+/D- pin (data pin) changes. After the first processor 10 detects the change, it considers that a USB device is inserted and initiated. The enumeration process, the two establish a USB connection. Since the USB bottom layer holds the lock, the first processor 10 and the second processor 20 cannot sleep, and if either party needs to sleep, the USB connection needs to be disconnected. Specifically, when the USB connection is disconnected, the VBUS pin of the first processor 10 outputs a low level, so that the VBUS pin of the second processor 20 cannot be powered, and the first processor 10 and the second processor 20 The USB connection between them is broken.
参见图4,为第一处理器10和第二处理器20工作状态的流程时序图。当第一处理器10有事件需要与第二处理器20交互时,控制第3组GPIO控制触发第二处理器20中断下降沿,使第二处理器20退出休眠模式,即第二处理器20被唤醒。第一处理器10切换到host模式,第一处理器10与第二处理器20之间建立USB连接。第一处理器10给第二处理器20的USB供电。当第二处理器20唤醒时,控制第2组GPIO的电平拉低,由此,第一处理器10可获知第二处理器20的唤醒。Referring to FIG. 4, a flow chart of the operation states of the first processor 10 and the second processor 20 is shown. When the first processor 10 has an event to interact with the second processor 20, controlling the third group of GPIO controls triggers the second processor 20 to interrupt the falling edge, causing the second processor 20 to exit the sleep mode, ie, the second processor 20 Was awakened. The first processor 10 switches to the host mode, and a USB connection is established between the first processor 10 and the second processor 20. The first processor 10 supplies power to the USB of the second processor 20. When the second processor 20 wakes up, the level of the second group GPIO is controlled to be pulled low, whereby the first processor 10 can learn the wakeup of the second processor 20.
在本发明的一实施例中,当第一处理器10和第二处理器20之间的事件交互完成后,第二处理器20需要进行休眠时,第一处理器10断开与第二处理器20的USB连接,保证第二处理器20可正常休眠。具体的,第一处理器10的VBUS引脚输出低电平,且第一处理器10控制第3组GPIO产生上升沿,触发第二处理器20中断进入,第二处理器20进入休眠。当第二处理器20进 入休眠时,将第2组GPIO的电平拉高,由此,第一处理器10可获知第二处理器20的休眠。In an embodiment of the present invention, when the second processor 20 needs to perform sleep after the event interaction between the first processor 10 and the second processor 20 is completed, the first processor 10 is disconnected from the second process. The USB connection of the device 20 ensures that the second processor 20 can sleep normally. Specifically, the VBUS pin of the first processor 10 outputs a low level, and the first processor 10 controls the third group of GPIOs to generate a rising edge, triggers the second processor 20 to interrupt the entry, and the second processor 20 enters the sleep state. When the second processor 20 enters When going to sleep, the level of the second group of GPIOs is pulled high, whereby the first processor 10 can know the sleep of the second processor 20.
参见图5,当第二处理器20需要唤醒第一处理器10时(例如,产生modem网络事件、第二处理器20的内核模块或其它应用需要唤醒第一处理器10时等),控制第4组GPIO的状态,唤醒第一处理器10。第一处理器10被唤醒后,建立与第二处理器20的USB连接。当第一处理器10唤醒时,控制第1组GPIO的电平拉低,由此,第二处理器20可获知第一处理器10的唤醒。Referring to FIG. 5, when the second processor 20 needs to wake up the first processor 10 (for example, generating a modem network event, a kernel module of the second processor 20 or other application needs to wake up the first processor 10, etc.), the control The state of the four groups of GPIOs wakes up the first processor 10. After the first processor 10 is woken up, a USB connection with the second processor 20 is established. When the first processor 10 wakes up, the level of the first group of GPIOs is controlled to be pulled low, whereby the second processor 20 can learn the wakeup of the first processor 10.
当第二处理器20和第一处理器10之间的事件交互完成后,第一处理器10主动断开与第二处理器20的USB连接,使能第二处理器20可自主进行休眠,而不会因为USB连接限制了休眠的进行。After the event interaction between the second processor 20 and the first processor 10 is completed, the first processor 10 actively disconnects the USB connection with the second processor 20, enabling the second processor 20 to autonomously sleep. It does not limit the sleep due to the USB connection.
在本发明的实施例中,第一处理器10与第二处理器20在进行休眠与唤醒操作时需要首先判断对方的休眠状态,然后做出是否唤醒对方的选择,且只有在必要时进行相互唤醒,以最大限度的降低系统功耗。In the embodiment of the present invention, the first processor 10 and the second processor 20 need to first determine the sleep state of the other party when performing the sleep and wake-up operations, and then make a choice whether to wake up the other party, and only perform mutual interaction when necessary. Wake up to minimize system power consumption.
在本发明的实施例中,当第二处理器20关机,则释放GPIO和中断。这里的关机指的是指用户设备关机。In an embodiment of the invention, when the second processor 20 is powered off, the GPIO and the interrupt are released. Shutdown here refers to the shutdown of the user equipment.
在本发明的一些实施例中,第一处理器10与第二处理器20之间交互的事件包括:网络事件(例如,通过第一处理器10进行数据业务、通过第二处理器20进行数据业务等)、处理器内核模块产生的事件、应用程序产生的事件等等。In some embodiments of the present invention, events that interact between the first processor 10 and the second processor 20 include: network events (eg, data traffic through the first processor 10, data through the second processor 20) Business, etc.), events generated by the processor kernel module, events generated by the application, and so on.
在本发明的一些实施例中,第一处理器10和第二处理器20休眠的方式包括:保持低时钟或完全不被供电等等方式,以节省功耗。而第一处理器10和第二处理器20被唤醒的方式包括:被完全供电等方式。In some embodiments of the present invention, the manner in which the first processor 10 and the second processor 20 sleep may include maintaining a low clock or not being powered at all, etc., to save power. The manner in which the first processor 10 and the second processor 20 are awakened includes: being fully powered, etc.
在本发明的实施例中,第一处理器休眠时断开USB连接,使能第二处理器自主休眠第二处理器20有主动事件(例如,控制事件,网络数据事件等)时,主动唤醒第一处理器10,进行USB重连,保证第二处理器20侧的 事件实时传送到第一处理器10;当事件处理完成后,通知第一处理器10断开USB连接,使得系统休眠,节省功耗。当第一处理器10有请求事件到第二处理器20时,主动触发USB重连,事件处理完成后主动断开USB连接,以保证系统的正常休眠,节省功耗。In the embodiment of the present invention, when the first processor sleeps, the USB connection is disconnected, and when the second processor autonomously sleeps, the second processor 20 has active events (eg, control events, network data events, etc.), and actively wakes up. The first processor 10 performs USB reconnection to ensure the side of the second processor 20 The event is transmitted to the first processor 10 in real time; when the event processing is completed, the first processor 10 is notified to disconnect the USB connection, so that the system sleeps, saving power consumption. When the first processor 10 has a request event to the second processor 20, the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed to ensure normal sleep of the system and save power consumption.
参见图6,在本发明的另一实施例中,第一处理器10的USB接口不仅用于与第二处理器20通信,还用于与外部设备(例如,OTG设备)通信。由此,在该实施例中,第一处理器10的USB需要在不同场景下切换工作模式,当系统可以进入休眠时,需要将模式设置为模式2(NONE模式),当唤醒时需要根据唤醒的事件设置为模式1(host模式)。Referring to FIG. 6, in another embodiment of the present invention, the USB interface of the first processor 10 is used not only for communicating with the second processor 20 but also for communicating with an external device (eg, an OTG device). Therefore, in this embodiment, the USB of the first processor 10 needs to switch the working mode in different scenarios. When the system can enter the sleep mode, the mode needs to be set to mode 2 (NONE mode), and when waking up, it needs to be awake according to The event is set to mode 1 (host mode).
上述的实施例中,第一处理器10的USB通路仅用于与第二处理器20通信,因此,第一处理器10的USB只需要host与none模式的切换。In the above embodiment, the USB path of the first processor 10 is only used to communicate with the second processor 20. Therefore, the USB of the first processor 10 only needs to switch between the host and the none mode.
在该实施例中,第一处理器10的USB通路需用于与外部设备通信,则第一处理器10的USB需要在三种模式,即模式1(host模式)、模式2(none模式)和之间切换,由此,保证既可以与外部设备通信,又可以与第二处理器通信。其中,模式3(peripheral模式)即是用于与外部设备通信的。In this embodiment, the USB path of the first processor 10 is required to communicate with an external device, and the USB of the first processor 10 needs to be in three modes, namely mode 1 (host mode) and mode 2 (none mode). Switching between and , thereby ensuring that it can communicate with both the external device and the second processor. Mode 3 (peripheral mode) is used to communicate with external devices.
参见图6,当第一处理器10或第二处理器20进入休眠时,第一处理器10的USB从模式1转换为模式2。当第一处理器10或第二处理器20退出休眠,则第二处理器20的USB从模式2转换为模式1。应理解,该实施例中,第一处理器10在模式1和模式2之间的切换过程中,休眠和唤醒的实现细节和上述图1所示的实施例相同,在此不再赘述。Referring to FIG. 6, when the first processor 10 or the second processor 20 enters sleep, the USB of the first processor 10 is switched from mode 1 to mode 2. When the first processor 10 or the second processor 20 exits sleep, the USB of the second processor 20 is switched from mode 2 to mode 1. It should be understood that, in this embodiment, the implementation details of the sleep and wake-up are the same as those of the embodiment shown in FIG. 1 in the switching process between the mode 1 and the mode 2, and details are not described herein again.
参见图6,当连接外部设备(例如,外部电脑),唤醒第一处理器10时,第一处理器10的USB从模式2转换为模式3。断开与外部电脑的连接时,第一处理器10的USB从模式3转换为模式1。当第一处理器10与第二处理器20通信时,连接了外部电脑,则第一处理器10的USB模式从模式1转换为模式3。这是由于,当与外部电脑通信时,用户设备100工作在device模式,因此, 会有模式1到模式3的转换。当第一处理器10与第二处理器20通信时,连接外部OTG设备,则第一处理器10保持模式1,即第一处理器10的USB工作在host模式。当断开与外部OTG设备的连接时,第一处理器10依然保持模式1。Referring to FIG. 6, when an external device (for example, an external computer) is connected to wake up the first processor 10, the USB of the first processor 10 is switched from mode 2 to mode 3. When the connection with the external computer is disconnected, the USB of the first processor 10 is switched from mode 3 to mode 1. When the first processor 10 communicates with the second processor 20, an external computer is connected, and the USB mode of the first processor 10 is switched from mode 1 to mode 3. This is because, when communicating with an external computer, the user device 100 operates in the device mode, therefore, There will be a mode 1 to mode 3 conversion. When the first processor 10 communicates with the second processor 20, the external OTG device is connected, and the first processor 10 maintains mode 1, that is, the USB of the first processor 10 operates in the host mode. The first processor 10 remains in mode 1 when the connection to the external OTG device is disconnected.
本发明的该实施例,第一处理器10的USB具有和第二处理器20和外部设备通信的功能,实现了USB接口的复用;且针对第一处理器10只有一路USB的状态切换方法,保证了功耗和功能的平衡。In this embodiment of the present invention, the USB of the first processor 10 has a function of communicating with the second processor 20 and an external device, and realizes multiplexing of the USB interface; and only one USB state switching method for the first processor 10 To ensure a balance between power consumption and functionality.
参见图7,本发明的该实施例和上述图1所示的实施例的区别在于,在该实施例中,第一处理器10包括第一调制解调器处理器101和第一应用处理器102;第二处理器20包括第二调制解调器处理器201和第二应用处理器202。Referring to FIG. 7, the embodiment of the present invention is different from the embodiment shown in FIG. 1 in that, in this embodiment, the first processor 10 includes a first modem processor 101 and a first application processor 102; The second processor 20 includes a second modem processor 201 and a second application processor 202.
其中,第一应用处理器102处理复杂的逻辑操作以及进行任务分配,为用户提供交互接口,将用户输入的操作指令传输给第二应用处理器202。第一应用处理器102还用于执行用户设备100的操作系统。第一调制解调器处理器101完成协议处理,以及对收发的通信数据进行调制解调,以实现与外部通信设备的通信等。The first application processor 102 processes complex logical operations and performs task assignment, provides an interactive interface for the user, and transmits the operation instructions input by the user to the second application processor 202. The first application processor 102 is also configured to execute an operating system of the user device 100. The first modem processor 101 performs protocol processing and modulates and demodulates the transmitted and received communication data to implement communication with an external communication device or the like.
在本发明的一实施例中,第二应用处理器202不进行数据的处理,仅起到透传的作用。例如,将第二调制解调器处理器201处理后的数据透传给第一应用处理器102进行处理,以及将第一应用处理器102传过来的数据透传给第二调制解调器处理器201。In an embodiment of the present invention, the second application processor 202 does not perform data processing, but only functions as a transparent transmission. For example, the data processed by the second modem processor 201 is transparently transmitted to the first application processor 102 for processing, and the data transmitted by the first application processor 102 is transparently transmitted to the second modem processor 201.
在本发明的一实施例中,参见图7,第一应用处理器102与第二应用处理器202通过四组GPIO(标号1-4)进行状态沟通,以及通过USB接口(标号5)进行数据传输。具体的:In an embodiment of the present invention, referring to FIG. 7, the first application processor 102 and the second application processor 202 perform state communication through four sets of GPIOs (numbers 1-4) and data through the USB interface (reference numeral 5). transmission. specific:
(1)第1组GPIO用于指示第一应用处理器102的休眠或唤醒状态。第一应用处理器102在休眠时,将第1组GPIO电平拉高(或拉低),唤醒时,将第1组GPIO电平拉低(或拉高)。由此,第二应用处理器202通过读取第1组GPIO 的电平状态可判断第一应用处理器102的状态。(1) The first group of GPIOs are used to indicate the sleep or wake state of the first application processor 102. When the first application processor 102 is in sleep, the first group of GPIO levels are pulled high (or pulled low), and when waking up, the first group of GPIO levels are pulled low (or pulled high). Thus, the second application processor 202 reads the first group of GPIOs by reading The level state can determine the state of the first application processor 102.
(2)第2组GPIO用于指示第二应用处理器202的休眠或唤醒状态。第二应用处理器202在休眠时,将第2组GPIO电平拉高(或拉低),唤醒时,将第2组GPIO电平拉低(或拉高)。由此,第一应用处理器102通过读取第2组GPIO的电平状态可判断第二应用处理器202的状态。(2) The second group of GPIOs is used to indicate the sleep or wake state of the second application processor 202. When the second application processor 202 is in sleep, the second group of GPIO levels are pulled high (or pulled low), and when waking up, the second group of GPIO levels are pulled low (or pulled high). Thus, the first application processor 102 can determine the state of the second application processor 202 by reading the level state of the second group of GPIOs.
(3)第3组GPIO用于唤醒第二应用处理器202(第一应用处理器102触发第二应用处理器202唤醒)。第二应用处理器202侧的GPIO有唤醒中断功能,即第二应用处理器202处于休眠状态时,若第3组GPIO产生下降沿时(也可为其它的状态,例如,产生上升沿等),第二应用处理器202中断休眠状态而被唤醒。(3) The third group of GPIOs is used to wake up the second application processor 202 (the first application processor 102 triggers the second application processor 202 to wake up). The GPIO on the second application processor 202 side has a wake-up interrupt function, that is, when the second application processor 202 is in the sleep state, if the third group of GPIOs generates a falling edge (other states may also be generated, for example, a rising edge is generated, etc.) The second application processor 202 interrupts the sleep state and is woken up.
(4)第4组GPIO用于唤醒第一应用处理器102(第二应用处理器202唤醒第一应用处理器102)。第一应用处理器102侧GPIO有中断唤醒功能,即第一应用处理器102处于休眠状态时,若第4组GPIO产生下降沿时(也可为其它的状态,例如,产生上升沿等),第一应用处理器102中断休眠状态而被唤醒。(4) The fourth group of GPIOs is used to wake up the first application processor 102 (the second application processor 202 wakes up the first application processor 102). The first application processor 102 side GPIO has an interrupt wake-up function, that is, when the first application processor 102 is in a sleep state, if the fourth group of GPIOs generates a falling edge (other states, for example, a rising edge, etc.), The first application processor 102 is awakened by interrupting the sleep state.
当第一应用处理器102和第二应用处理器202进行数据通信时,USB接口采用主(host)从(device)角色模式,在本发明的实施例中,第一应用处理器102作为host,第二应用处理器202作为device。When the first application processor 102 and the second application processor 202 perform data communication, the USB interface adopts a host role mode. In the embodiment of the present invention, the first application processor 102 functions as a host. The second application processor 202 acts as a device.
在一个实施例中,第一应用处理器102的VBUS引脚(电源引脚)输出有效高电平(例如,5.0V)提供给第二应用处理器202的VBUS引脚(电源引脚)。第二应用处理器202的VBUS引脚上电后,D+/D-引脚(数据引脚)的电平会发生变化,第一应用处理器102检测到这种变化后,认为有USB device插入,发起枚举过程,二者建立USB连接。由于USB底层持有锁,第一应用处理器102和第二应用处理器202不能进行休眠,若任一方需要休眠则需要断开USB连接。具体的,断开USB连接时,第一应用处理器102的 VBUS引脚输出低电平,从而使得第二应用处理器202的VBUS引脚不能上电,第一应用处理器102和第二应用处理器202之间的USB连接断开。In one embodiment, the VBUS pin (power pin) of the first application processor 102 outputs an active high level (eg, 5.0V) to the VBUS pin (power pin) of the second application processor 202. After the VBUS pin of the second application processor 202 is powered on, the level of the D+/D- pin (data pin) changes. After the first application processor 102 detects the change, the USB device is considered to be inserted. , initiate the enumeration process, the two establish a USB connection. Since the USB bottom layer holds the lock, the first application processor 102 and the second application processor 202 cannot perform hibernation, and if either party needs to sleep, the USB connection needs to be disconnected. Specifically, when the USB connection is disconnected, the first application processor 102 The VBUS pin outputs a low level such that the VBUS pin of the second application processor 202 cannot be powered up and the USB connection between the first application processor 102 and the second application processor 202 is broken.
本发明实施例中,第一应用处理器102和第二应用处理器202工作状态的流程和图4和图5所示的第一处理器10和第二处理器20之间的流程相同。当第一应用处理器102有事件需要与第二应用处理器202交互时,控制第3组GPIO控制触发第二应用处理器202中断下降沿,使第二应用处理器202退出休眠模式,即第二应用处理器202被唤醒。第一应用处理器102切换到host模式,第一应用处理器102与第二应用处理器202之间建立USB连接。第一应用处理器102给第二应用处理器202的USB供电。当第二应用处理器202唤醒时,控制第2组GPIO的电平拉低,由此,第一应用处理器102可获知第二应用处理器202的唤醒。In the embodiment of the present invention, the flow of the working states of the first application processor 102 and the second application processor 202 is the same as the flow between the first processor 10 and the second processor 20 shown in FIG. 4 and FIG. 5. When the first application processor 102 has an event to interact with the second application processor 202, controlling the third group of GPIO controls triggers the second application processor 202 to interrupt the falling edge, causing the second application processor 202 to exit the sleep mode, ie, The second application processor 202 is woken up. The first application processor 102 switches to the host mode, and a USB connection is established between the first application processor 102 and the second application processor 202. The first application processor 102 supplies power to the USB of the second application processor 202. When the second application processor 202 wakes up, the level of the second group of GPIOs is controlled to be pulled down, whereby the first application processor 102 can learn the wakeup of the second application processor 202.
在本发明的一实施例中,当第一应用处理器102和第二应用处理器202之间的事件交互完成后,第二应用处理器202需要进行休眠时,第一应用处理器102断开与第二应用处理器202的USB连接,保证第二应用处理器202可正常休眠。具体的,第一应用处理器102的VBUS引脚输出低电平,且第一应用处理器102控制第3组GPIO产生上升沿,触发第二应用处理器202中断进入,第二应用处理器202进入休眠。当第二应用处理器202进入休眠时,将第2组GPIO的电平拉高,由此,第一应用处理器102可获知第二应用处理器202的休眠。In an embodiment of the present invention, when the second application processor 202 needs to perform sleep after the event interaction between the first application processor 102 and the second application processor 202 is completed, the first application processor 102 is disconnected. The USB connection with the second application processor 202 ensures that the second application processor 202 can sleep normally. Specifically, the VBUS pin of the first application processor 102 outputs a low level, and the first application processor 102 controls the third group of GPIOs to generate a rising edge, triggering the second application processor 202 to interrupt the entry, and the second application processor 202 Go to sleep. When the second application processor 202 enters sleep, the level of the second group of GPIOs is pulled high, whereby the first application processor 102 can learn the sleep of the second application processor 202.
当第二应用处理器202需要唤醒第一应用处理器102时(例如,产生modem网络事件、第二应用处理器202的内核模块或其它应用需要唤醒第一应用处理器102时等),控制第4组GPIO的状态,唤醒第一应用处理器102。第一应用处理器102被唤醒后,建立与第二应用处理器202的USB连接。当第一应用处理器102唤醒时,控制第1组GPIO的电平拉低,由此,第二应用处理器202可获知第一应用处理器102的唤醒。 When the second application processor 202 needs to wake up the first application processor 102 (eg, when a modem network event is generated, a kernel module of the second application processor 202 or other application needs to wake up the first application processor 102, etc.), the control The state of the four groups of GPIOs wakes up the first application processor 102. After the first application processor 102 is woken up, a USB connection with the second application processor 202 is established. When the first application processor 102 wakes up, the level of the first group of GPIOs is controlled to be pulled down, whereby the second application processor 202 can learn the wakeup of the first application processor 102.
当第二应用处理器202和第一应用处理器102之间的事件交互完成后,第一应用处理器102主动断开与第二应用处理器202的USB连接,使能第二应用处理器202可自主进行休眠,而不会因为USB连接限制了休眠的进行。After the event interaction between the second application processor 202 and the first application processor 102 is completed, the first application processor 102 actively disconnects the USB connection with the second application processor 202 to enable the second application processor 202. Can sleep autonomously, without restricting the sleep due to the USB connection.
具体的,当用户设备100开机,则第二应用处理器202启动一监控进程(例如,WPS任务),根据第一应用处理器102的状态事件(可通过查询第1组GPIO的电平状态获知),监控进程设置节点,使能第二应用处理器202可以自主进入休眠。Specifically, when the user equipment 100 is powered on, the second application processor 202 starts a monitoring process (eg, a WPS task), according to a status event of the first application processor 102 (can be learned by querying the level status of the first group of GPIOs) The monitoring process sets the node to enable the second application processor 202 to enter the sleep autonomously.
当第一应用处理器102有事件(例如,网络事件)需要与第二应用处理器202交互时,发送消息给预设的USB监测进程,USB监测进程控制第3组GPIO控制触发第二应用处理器202中断下降沿。第二应用处理器202的监控进程监测到中断事件,调用预设接口(例如,一resume接口),使第二应用处理器202退出休眠模式,即第二应用处理器202被唤醒。第一应用处理器102和第二应用处理器202的USB接口保持相连,并给第二应用处理器202的USB供电。When the first application processor 102 has an event (eg, a network event) that needs to interact with the second application processor 202, sending a message to the preset USB monitoring process, and the USB monitoring process controls the third group of GPIO controls to trigger the second application processing. The device 202 interrupts the falling edge. The monitoring process of the second application processor 202 detects an interrupt event, invokes a preset interface (eg, a resume interface), and causes the second application processor 202 to exit the sleep mode, that is, the second application processor 202 is woken up. The USB interfaces of the first application processor 102 and the second application processor 202 remain connected and power the USB of the second application processor 202.
第一应用处理器102和第二应用处理器202的事件交互完成后,第一应用处理器102的USB监测进程控制第3组GPIO产生上升沿,触发第二应用处理器202中断进入。第二应用处理器202的监控进程接收到中断事件,触发第二应用处理器202进入休眠。当第二应用处理器202进行休眠时,控制第2组GPIO的电平拉高。After the event interaction of the first application processor 102 and the second application processor 202 is completed, the USB monitoring process of the first application processor 102 controls the third group of GPIOs to generate a rising edge, triggering the second application processor 202 to interrupt the entry. The monitoring process of the second application processor 202 receives an interrupt event, triggering the second application processor 202 to go to sleep. When the second application processor 202 sleeps, the level of the second group of GPIOs is controlled to be pulled high.
当第二应用处理器202有事件(例如,产生modem网络事件)需要与第一应用处理器102交互时,控制第4组GPIO的状态,唤醒第一应用处理器102。第一应用处理器102被唤醒后,重连USB端口。第一应用处理器102通过控制接口查询详细事件,根据需要继续上报到应用层的相关程序,相关程序持有锁直到事件处理完成。When the second application processor 202 has an event (eg, generating a modem network event) that needs to interact with the first application processor 102, the state of the fourth group of GPIOs is controlled to wake up the first application processor 102. After the first application processor 102 is woken up, the USB port is reconnected. The first application processor 102 queries the detailed event through the control interface, and continues to report to the relevant program of the application layer as needed, and the related program holds the lock until the event processing is completed.
在本发明的实施例中,第一应用处理器102休眠时,第一调制解调器处 理器101可为休眠或唤醒状态。第二应用处理器202休眠时,第二调制解调器处理器201进入休眠状态。在一些实施例中,当处于休眠状态时,相关器件可保持低时钟或完全不被供电,以节省功耗。In an embodiment of the present invention, when the first application processor 102 is asleep, the first modem is The processor 101 can be in a sleep or awake state. When the second application processor 202 is asleep, the second modem processor 201 enters a sleep state. In some embodiments, when in a sleep state, the associated device can remain low clocked or not powered at all to save power.
在本发明的实施例中,第一应用处理器102与第二应用处理器202在进行休眠与唤醒操作时需要首先判断对方的休眠状态,然后做出是否唤醒对方的选择,且只有在必要时进行相互唤醒,以最大限度的降低系统功耗。In the embodiment of the present invention, the first application processor 102 and the second application processor 202 need to first determine the sleep state of the other party when performing the sleep and wake operation, and then make a choice whether to wake up the other party, and only if necessary Wake up each other to minimize system power consumption.
在本发明的实施例中,当第二应用处理器202关机,则释放GPIO和中断。这里的关机指的是指用户设备关机。In an embodiment of the invention, when the second application processor 202 is shut down, the GPIO and the interrupt are released. Shutdown here refers to the shutdown of the user equipment.
应理解,上述图6所示的实施例的USB切换方案同样适用于该实施例的第一应用处理器和第二应用处理器。即当本实施了中的第一应用处理器的USB同时具有和第二应用处理器202和外部设备通信的功能时,第一应用处理器102可采用上述图6所示的实施例的USB的状态切换方法,以保证功耗和功能的平衡。It should be understood that the USB switching scheme of the embodiment shown in FIG. 6 above is equally applicable to the first application processor and the second application processor of the embodiment. That is, when the USB of the first application processor in the implementation has the function of communicating with the second application processor 202 and the external device, the first application processor 102 can adopt the USB of the embodiment shown in FIG. 6 above. State switching method to ensure power and function balance.
在本发明的实施例中,第一应用处理器休眠时断开USB连接,使能第二应用处理器自主休眠;第二应用处理器202有主动事件(例如,控制事件,网络数据事件等)时,主动唤醒第一应用处理器102,进行USB重连。保证第二应用处理器202侧的事件实时传送到第一应用处理器102;当事件处理完成后,通知第一应用处理器102断开USB连接,使得系统休眠,节省功耗。当第一应用处理器102有请求事件到第二应用处理器202时,主动触发USB重连,事件处理完成后主动断开USB连接,以保证系统的正常休眠,节省功耗。In an embodiment of the present invention, the first application processor disconnects the USB connection while sleeping, enabling the second application processor to autonomously sleep; the second application processor 202 has active events (eg, control events, network data events, etc.) At this time, the first application processor 102 is actively woken up to perform USB reconnection. The event on the second application processor 202 side is ensured to be transmitted to the first application processor 102 in real time; when the event processing is completed, the first application processor 102 is notified to disconnect the USB connection, so that the system sleeps, and power consumption is saved. When the first application processor 102 has requested the event to the second application processor 202, the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed to ensure normal sleep of the system and save power consumption.
本发明实施例中,用户设备可以包括能够与网络相连接的任意移动、便携计算或通信设备,例如蜂窝设备。例如,用户设备100可以是蜂窝电话(手机)、导航系统、计算设备、照相机、PDA、音乐设备、游戏设备或具有无线连接能力的手持设备。 In an embodiment of the invention, the user equipment may comprise any mobile, portable computing or communication device, such as a cellular device, that is connectable to the network. For example, user device 100 can be a cellular telephone (mobile phone), a navigation system, a computing device, a camera, a PDA, a music device, a gaming device, or a handheld device with wireless connectivity.
本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令包括:An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
第一处理器通过USB接口与第二处理器连接;The first processor is connected to the second processor through a USB interface;
当第一处理器或第二处理器需要休眠时,所述第一处理器断开所述USB连接。The first processor disconnects the USB connection when the first processor or the second processor needs to sleep.
在一实施例中,该计算机可执行指令还包括:In an embodiment, the computer executable instructions further comprise:
当第一处理器有事件需要与第二处理器交互时,所述第一处理器唤醒第二处理器,并建立与第二处理器的USB连接;When the first processor has an event that needs to interact with the second processor, the first processor wakes up the second processor and establishes a USB connection with the second processor;
当第一处理器和第二处理器之间的事件交互完成后,第一处理器断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the first processor and the second processor is completed, the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
在一实施例中,该计算机可执行指令还包括:In an embodiment, the computer executable instructions further comprise:
当第二处理器有事件需要与第一处理器交互时,所述第二处理器唤醒第一处理器;The second processor wakes up the first processor when the second processor has an event that needs to interact with the first processor;
第一处理器被唤醒后,建立与第二处理器的USB连接;After the first processor is woken up, establishing a USB connection with the second processor;
当第二处理器和第一处理器之间的事件交互完成后,所述第一处理器主动断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the second processor and the first processor is completed, the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
在一实施例中,该计算机可执行指令包括:In an embodiment, the computer executable instructions comprise:
所述第一处理器和第二处理器在进行休眠与唤醒操作时,根据对方的休眠状态做出是否唤醒对方的选择。The first processor and the second processor, when performing the sleep and wake-up operations, make a selection of whether to wake up the other party according to the sleep state of the other party.
在一实施例中,该计算机可执行指令包括:In an embodiment, the computer executable instructions comprise:
将所述第一用户识别卡和所述第二用户识别卡均与所述第一处理器连接;Connecting the first user identification card and the second user identification card to the first processor;
所述第一处理器获取第一用户识别卡和第二用户识别卡的信息;The first processor acquires information of the first user identification card and the second user identification card;
所述第一处理器将获取的第二用户识别卡的信息发送给所述第二处理器; The first processor sends the acquired information of the second user identification card to the second processor;
所述第一处理器基于获取的所述第一用户识别卡的信息与第一4G网络通信,进行数据业务;The first processor performs communication with the first 4G network based on the acquired information of the first user identification card to perform data service;
所述第二处理器基于接收到的所述第二用户识别卡的信息与第二4G网络通信,进行数据业务。The second processor performs data service based on the received information of the second user identification card and the second 4G network.
本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令包括:An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions include:
第一应用处理器通过USB接口与第二应用处理器连接;The first application processor is connected to the second application processor through a USB interface;
当第一应用处理器或第二应用处理器需要休眠时,所述第一应用处理器断开所述USB连接。The first application processor disconnects the USB connection when the first application processor or the second application processor needs to sleep.
在一实施例中,该计算机可执行指令还包括:In an embodiment, the computer executable instructions further comprise:
当第二应用处理器有事件需要与第一应用处理器交互时,所述第二应用处理器通过预设引脚唤醒第一应用处理器;When the second application processor has an event that needs to interact with the first application processor, the second application processor wakes up the first application processor by using a preset pin;
所述第一应用处理器被唤醒后,建立与所述第二处理器的USB连接以进行事件交互。After the first application processor is woken up, a USB connection with the second processor is established for event interaction.
在一实施例中,当第一应用处理器有事件需要与第二应用处理器交互时,所述第一应用处理器通过预设引脚唤醒第二应用处理器,并建立与所述第二应用处理器的USB连接。In an embodiment, when the first application processor has an event that needs to interact with the second application processor, the first application processor wakes up the second application processor by using a preset pin, and establishes the second USB connection to the application processor.
在一实施例中,所述第一应用处理器和第二应用处理器的事件交互完成后,所述第一应用处理器控制预设引脚触发第二应用处理器进入休眠,并断开所述USB连接。In an embodiment, after the event interaction between the first application processor and the second application processor is completed, the first application processor controls the preset pin to trigger the second application processor to enter the sleep state, and disconnects the Said USB connection.
在本发明的实施例中,若没有特别说明,“多个”是指两个或两个以上。在本发明的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。In the embodiments of the present invention, "a plurality" means two or more unless otherwise specified. In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
流程图中或在本发明的实施例中以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的 步骤的可执行指令的代码的模块、片段或部分,并且本发明实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所述技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described in the embodiments of the invention may be understood to include the inclusion of one or more elements for implementing a particular logical function or process. A module, segment or portion of code of an executable instruction of a step, and the scope of the embodiments of the invention includes additional implementations, which may not be in the order shown or discussed, including in a substantially simultaneous manner depending on the function involved or The functions are performed in the reverse order, which should be understood by those skilled in the art to which the embodiments of the invention are.
在本发明的上述实施例中,第一网络和第二网络可为不同运营商的不同网络,或为相同运营商的相同或不同网络。第一4G网络和第二4G网络可为LTE网络,或其它类型的4G网络。In the above embodiments of the present invention, the first network and the second network may be different networks of different operators, or the same or different networks of the same carrier. The first 4G network and the second 4G network may be LTE networks, or other types of 4G networks.
出于解释的目的,前面的描述使用了特定的术语,以提供对本发明的透彻理解。然而,对本领域的技术人员来说显而易见的是,为了实践本发明并不需要具体的细节。本发明的具体实施例的前述描述是为了图示和说明的目的而呈现。它们并不意在详尽的或将本发明限于所公开的准确形式。鉴于上面的教义,许多修改和变化是可能的。为了最好地解释本发明的原理及其实际应用而示出并描述了这些实施例,从而使本领域的其他技术人员能够最好地利用本发明和具有适于预期的特定使用的各种修改的各种实施例。意在本发明的范围由随后的权利要求和其等同物来限定。For purposes of explanation, the foregoing description has been used in a specific However, it will be apparent to those skilled in the art that <RTIgt; The foregoing description of the specific embodiments of the invention has been presented They are not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The embodiments are shown and described in order to best explain the principles of the invention and the embodiments of the invention Various embodiments. The scope of the invention is intended to be defined by the appended claims and their equivalents.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
采用本发明实施例,第一处理器休眠时断开USB连接,使能第二处理器自主休眠;第二处理器有主动事件(例如,控制事件,网络数据事件等)时,主动唤醒第一处理器,进行USB重连,保证第二处理器侧的事件实时传送到第一处理器;当事件处理完成后,通知第一处理器断开USB连接,使得系统休眠,节省功耗。当第一处理器有请求事件到第二处理器时,主动触发USB重连,事件处理完成后主动断开USB连接,以保证系统的正常休眠,节省功耗。 In the embodiment of the present invention, when the first processor sleeps, the USB connection is disconnected, and the second processor is enabled to autonomously sleep; when the second processor has an active event (eg, a control event, a network data event, etc.), the first wake-up is active. The processor performs USB reconnection to ensure that the event on the second processor side is transmitted to the first processor in real time; when the event processing is completed, the first processor is notified to disconnect the USB connection, so that the system sleeps and saves power consumption. When the first processor has a request event to the second processor, the USB reconnection is actively triggered, and the USB connection is actively disconnected after the event processing is completed, so as to ensure normal sleep of the system and save power consumption.

Claims (20)

  1. 一种用户设备,包括:A user equipment comprising:
    第一处理器和第二处理器;a first processor and a second processor;
    第一处理器配置为通过USB接口与第二处理器连接;The first processor is configured to be connected to the second processor through a USB interface;
    当第一处理器或第二处理器需要休眠时,所述第一处理器配置为断开所述USB连接。The first processor is configured to disconnect the USB connection when the first processor or the second processor needs to sleep.
  2. 根据权利要求1所述的用户设备,其中,当第一处理器有事件需要与第二处理器交互时,所述第一处理器配置为唤醒第二处理器,并建立与第二处理器的USB连接;The user equipment of claim 1, wherein when the first processor has an event that needs to interact with the second processor, the first processor is configured to wake up the second processor and establish a second processor USB connection;
    当第一处理器和第二处理器之间的事件交互完成后,第一处理器断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the first processor and the second processor is completed, the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
  3. 根据权利要求1所述的用户设备,其中,当第二处理器有事件需要与第一处理器交互时,所述第二处理器配置为唤醒第一处理器;The user equipment of claim 1, wherein the second processor is configured to wake up the first processor when the second processor has an event that needs to interact with the first processor;
    第一处理器被唤醒后,配置为建立与第二处理器的USB连接;After the first processor is woken up, configured to establish a USB connection with the second processor;
    当第二处理器和第一处理器之间的事件交互完成后,所述第一处理器主动断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the second processor and the first processor is completed, the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
  4. 根据权利要求1所述的用户设备,其中,所述第一处理器和第二处理器还配置为在进行休眠与唤醒操作时,根据对方的休眠状态做出是否唤醒对方的选择。The user equipment of claim 1, wherein the first processor and the second processor are further configured to, when the sleep and wake operations are performed, make a selection of whether to wake up the other party according to the sleep state of the other party.
  5. 根据权利要求1所述的用户设备,其中,所述用户设备还包括:第一用户识别卡和第二用户识别卡;The user equipment according to claim 1, wherein the user equipment further comprises: a first user identification card and a second user identification card;
    所述第一用户识别卡和所述第二用户识别卡均与所述第一处理器连接;The first user identification card and the second user identification card are both connected to the first processor;
    所述第一处理器,还配置为获取第一用户识别卡和第二用户识别卡的信息; The first processor is further configured to acquire information of the first user identification card and the second user identification card;
    所述第一处理器,还配置为将获取的第二用户识别卡的信息发送给所述第二处理器;The first processor is further configured to send the acquired information of the second user identification card to the second processor;
    所述第一处理器,还配置为基于获取的所述第一用户识别卡的信息与第一4G网络通信,进行数据业务;The first processor is further configured to perform data service by communicating with the first 4G network based on the acquired information of the first user identification card;
    所述第二处理器,还配置为基于接收到的所述第二用户识别卡的信息与第二4G网络通信,进行数据业务。The second processor is further configured to perform data service based on the received information of the second subscriber identity card and the second 4G network.
  6. 一种休眠唤醒方法,所述方法包括:A sleep wake-up method, the method comprising:
    第一处理器通过USB接口与第二处理器连接;The first processor is connected to the second processor through a USB interface;
    当第一处理器或第二处理器需要休眠时,所述第一处理器断开所述USB连接。The first processor disconnects the USB connection when the first processor or the second processor needs to sleep.
  7. 根据权利要求6所述的方法,其中,当第一处理器有事件需要与第二处理器交互时,所述第一处理器唤醒第二处理器,并建立与第二处理器的USB连接;The method of claim 6, wherein when the first processor has an event that needs to interact with the second processor, the first processor wakes up the second processor and establishes a USB connection with the second processor;
    当第一处理器和第二处理器之间的事件交互完成后,第一处理器断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the first processor and the second processor is completed, the first processor disconnects the USB connection with the second processor, enabling the second processor to sleep.
  8. 根据权利要求6所述的方法,其中,当第二处理器有事件需要与第一处理器交互时,所述第二处理器唤醒第一处理器;The method of claim 6, wherein the second processor wakes up the first processor when the second processor has an event that needs to interact with the first processor;
    第一处理器被唤醒后,建立与第二处理器的USB连接;After the first processor is woken up, establishing a USB connection with the second processor;
    当第二处理器和第一处理器之间的事件交互完成后,所述第一处理器主动断开与第二处理器的USB连接,使能第二处理器休眠。After the event interaction between the second processor and the first processor is completed, the first processor actively disconnects the USB connection with the second processor to enable the second processor to sleep.
  9. 根据权利要求6所述的方法,其中,所述第一处理器和第二处理器在进行休眠与唤醒操作时,根据对方的休眠状态做出是否唤醒对方的选择。The method according to claim 6, wherein the first processor and the second processor, when performing the sleep and wake-up operations, make a selection of whether to wake up the other party according to the sleep state of the other party.
  10. 根据权利要求6所述的方法,其中,The method of claim 6 wherein
    所述第一处理器获取第一用户识别卡和第二用户识别卡的信息,所述第一用户识别卡和所述第二用户识别卡均与所述第一处理器连接; The first processor acquires information of the first user identification card and the second user identification card, and the first user identification card and the second user identification card are both connected to the first processor;
    所述第一处理器将获取的所述第二用户识别卡的信息发送给所述第二处理器;The first processor sends the acquired information of the second user identification card to the second processor;
    所述第一处理器基于获取的所述第一用户识别卡的信息与第一4G网络通信,进行数据业务;The first processor performs communication with the first 4G network based on the acquired information of the first user identification card to perform data service;
    所述第二处理器基于接收到的所述第二用户识别卡的信息与第二4G网络通信,进行数据业务。The second processor performs data service based on the received information of the second user identification card and the second 4G network.
  11. 一种用户设备,包括:A user equipment comprising:
    第一应用处理器和第二应用处理器;a first application processor and a second application processor;
    第一应用处理器配置为通过USB接口与第二应用处理器连接;The first application processor is configured to connect to the second application processor through the USB interface;
    当第一应用处理器或第二应用处理器需要休眠时,所述第一应用处理器配置为断开所述USB连接。The first application processor is configured to disconnect the USB connection when the first application processor or the second application processor needs to sleep.
  12. 根据权利要求11所述的用户设备,其中,当第二应用处理器有事件需要与第一应用处理器交互时,所述第二应用处理器配置为通过预设引脚唤醒第一应用处理器;The user equipment of claim 11, wherein when the second application processor has an event that needs to interact with the first application processor, the second application processor is configured to wake up the first application processor by using a preset pin ;
    所述第一应用处理器被唤醒后,配置为建立与所述第二处理器的USB连接以进行事件交互。After the first application processor is woken up, it is configured to establish a USB connection with the second processor for event interaction.
  13. 根据权利要求11所述的用户设备,其中,当第一应用处理器有事件需要与第二应用处理器交互时,所述第一应用处理器配置为通过预设引脚唤醒第二应用处理器,并建立与所述第二应用处理器的USB连接。The user equipment of claim 11, wherein when the first application processor has an event that needs to interact with the second application processor, the first application processor is configured to wake up the second application processor by using a preset pin And establishing a USB connection with the second application processor.
  14. 根据权利要求12或13所述的用户设备,其中,所述第一应用处理器和第二应用处理器的事件交互完成后,所述第一应用处理器配置为控制预设引脚触发第二应用处理器进入休眠,并断开所述USB连接。The user equipment according to claim 12 or 13, wherein after the event interaction of the first application processor and the second application processor is completed, the first application processor is configured to control a preset pin to trigger a second The application processor goes to sleep and disconnects the USB connection.
  15. 一种休眠唤醒方法,所述方法包括:A sleep wake-up method, the method comprising:
    第一应用处理器通过USB接口与第二应用处理器连接;The first application processor is connected to the second application processor through a USB interface;
    当第一应用处理器或第二应用处理器需要休眠时,所述第一应用处理 器断开所述USB连接。The first application processing when the first application processor or the second application processor needs to sleep The device disconnects the USB connection.
  16. 根据权利要求15所述的方法,其中,当第二应用处理器有事件需要与第一应用处理器交互时,所述第二应用处理器通过预设引脚唤醒第一应用处理器;The method according to claim 15, wherein when the second application processor has an event that needs to interact with the first application processor, the second application processor wakes up the first application processor by using a preset pin;
    所述第一应用处理器被唤醒后,建立与所述第二处理器的USB连接以进行事件交互。After the first application processor is woken up, a USB connection with the second processor is established for event interaction.
  17. 根据权利要求15所述的方法,其中,当第一应用处理器有事件需要与第二应用处理器交互时,所述第一应用处理器通过预设引脚唤醒第二应用处理器,并建立与所述第二应用处理器的USB连接。The method according to claim 15, wherein when the first application processor has an event that needs to interact with the second application processor, the first application processor wakes up the second application processor by using a preset pin, and establishes A USB connection to the second application processor.
  18. 根据权利要求16或17所述的方法,其中,所述第一应用处理器和第二应用处理器的事件交互完成后,所述第一应用处理器控制预设引脚触发第二应用处理器进入休眠,并断开所述USB连接。The method according to claim 16 or 17, wherein after the event interaction of the first application processor and the second application processor is completed, the first application processor controls the preset pin to trigger the second application processor Go to sleep and disconnect the USB connection.
  19. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求6-10任一项所述的休眠唤醒方法。A computer storage medium having stored therein computer executable instructions for performing the sleep wake method of any one of claims 6-10.
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求15-18任一项所述的休眠唤醒方法。 A computer storage medium having stored therein computer executable instructions for performing the sleep wake method of any one of claims 15-18.
PCT/CN2016/090226 2016-04-01 2016-07-15 User device and method for waking from hibernation, and computer storage medium WO2017166541A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610201448.9 2016-04-01
CN201610201448.9A CN105744606A (en) 2016-04-01 2016-04-01 User equipment and sleep waking method

Publications (1)

Publication Number Publication Date
WO2017166541A1 true WO2017166541A1 (en) 2017-10-05

Family

ID=56253441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090226 WO2017166541A1 (en) 2016-04-01 2016-07-15 User device and method for waking from hibernation, and computer storage medium

Country Status (2)

Country Link
CN (1) CN105744606A (en)
WO (1) WO2017166541A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938991A (en) * 2020-06-29 2022-01-14 大唐移动通信设备有限公司 Base station radio frequency unit and dormancy awakening method thereof

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105764124B (en) * 2016-01-27 2021-06-15 努比亚技术有限公司 Method for reducing power consumption of terminal and terminal
CN105744606A (en) * 2016-04-01 2016-07-06 努比亚技术有限公司 User equipment and sleep waking method
CN106507457B (en) * 2016-10-31 2019-10-15 努比亚技术有限公司 A kind of dormancy control method and terminal
CN110955323A (en) * 2019-11-27 2020-04-03 出门问问信息科技有限公司 Intelligent watch equipment
WO2021104267A1 (en) 2019-11-27 2021-06-03 出门问问信息科技有限公司 Data transmission method and apparatus, and smart watch device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997963A (en) * 2009-08-31 2011-03-30 英华达股份有限公司 Power supply management method and system of portable communication device
CN102156528A (en) * 2010-02-11 2011-08-17 联想(北京)有限公司 Data processing equipment and universal serial bus (USB) external connection driving method thereof
CN102200827A (en) * 2010-03-25 2011-09-28 中兴通讯股份有限公司 Sleep and wake-up methods and systems for equipment
WO2012027991A1 (en) * 2010-08-30 2012-03-08 中兴通讯股份有限公司 Method, device and system for bidirectional wake-up based on universal serial bus
CN105744606A (en) * 2016-04-01 2016-07-06 努比亚技术有限公司 User equipment and sleep waking method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101173A (en) * 2015-07-20 2015-11-25 努比亚技术有限公司 Multi-data-channel-based data loading apparatus and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997963A (en) * 2009-08-31 2011-03-30 英华达股份有限公司 Power supply management method and system of portable communication device
CN102156528A (en) * 2010-02-11 2011-08-17 联想(北京)有限公司 Data processing equipment and universal serial bus (USB) external connection driving method thereof
CN102200827A (en) * 2010-03-25 2011-09-28 中兴通讯股份有限公司 Sleep and wake-up methods and systems for equipment
WO2012027991A1 (en) * 2010-08-30 2012-03-08 中兴通讯股份有限公司 Method, device and system for bidirectional wake-up based on universal serial bus
CN105744606A (en) * 2016-04-01 2016-07-06 努比亚技术有限公司 User equipment and sleep waking method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938991A (en) * 2020-06-29 2022-01-14 大唐移动通信设备有限公司 Base station radio frequency unit and dormancy awakening method thereof
CN113938991B (en) * 2020-06-29 2023-09-26 大唐移动通信设备有限公司 Base station radio frequency unit and dormancy awakening method thereof

Also Published As

Publication number Publication date
CN105744606A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
WO2017166541A1 (en) User device and method for waking from hibernation, and computer storage medium
CN105960000A (en) Dormancy awakening method and processor
JP4095501B2 (en) Computer apparatus, wireless access point, power-on method via wireless network, frame listening method, frame transmission method, and program
US8661272B2 (en) Automated power management of a peripheral device
US7898994B2 (en) Power saving in multi-processor device
WO2018000134A1 (en) Bluetooth connection method and terminal
CN111356230B (en) Communication method and device
US11064437B2 (en) Power saving for wireless device
JP2020502908A (en) Improved power saving mode for wireless devices
JP2011166759A (en) Device and method for reducing power consumption through packet filtering with mobile terminal
JP2012518821A (en) Wireless module built-in computer and its standby and recovery method
JP2006005577A (en) Power saving method of wireless lan
JP2006065865A (en) External device detection method for mobile communication terminal
WO2022017359A1 (en) Direct communication start-up control method and related device
CN105763735B (en) User equipment and fast dormancy method
CN106413062A (en) User equipment and sleep wake-up method
WO2022078314A1 (en) Inactive state configuration method and device, and communication device
US20110273276A1 (en) Communication device and wireless communication method
CN107087269B (en) Mobile terminal and data transmission method thereof
CN116491218A (en) Synchronization of RRC state of multi-SIM user equipment with base station
WO2022135435A1 (en) Method for controlling secondary cell group, terminal, and network side device
US20100246464A1 (en) Power conservation through bi-directional association of multiple devices
WO2022028597A1 (en) Secondary cell control method, terminal, and network side device
JP2013062827A (en) Communication apparatus and radio communication method
CN106900044B (en) Mobile terminal and dormancy control method thereof

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896313

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896313

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 25/04/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16896313

Country of ref document: EP

Kind code of ref document: A1