CN114327020A - Wireless module, power consumption control method and electronic equipment - Google Patents

Wireless module, power consumption control method and electronic equipment Download PDF

Info

Publication number
CN114327020A
CN114327020A CN202111448103.0A CN202111448103A CN114327020A CN 114327020 A CN114327020 A CN 114327020A CN 202111448103 A CN202111448103 A CN 202111448103A CN 114327020 A CN114327020 A CN 114327020A
Authority
CN
China
Prior art keywords
usb peripheral
power consumption
control
wireless module
peripheral device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111448103.0A
Other languages
Chinese (zh)
Inventor
杨玉玺
封向龙
王敬
崔璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Guanghetong Wireless Communication Co ltd
Original Assignee
Xi'an Guanghetong Wireless Communication Co ltd
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 Xi'an Guanghetong Wireless Communication Co ltd filed Critical Xi'an Guanghetong Wireless Communication Co ltd
Priority to CN202111448103.0A priority Critical patent/CN114327020A/en
Publication of CN114327020A publication Critical patent/CN114327020A/en
Priority to PCT/CN2022/099708 priority patent/WO2023098033A1/en
Pending legal-status Critical Current

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
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the invention relates to a wireless module, a power consumption control method and electronic equipment. Therefore, through the wireless module, the use or the stop of the USB peripheral equipment is realized based on the control pin on the power consumption monitoring module, the use or the stop of the USB peripheral equipment is not completely dependent on a USB communication protocol, the power consumption of the wireless module can be further reduced, and the service life of the wireless module is prolonged.

Description

Wireless module, power consumption control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a wireless module, a power consumption control method and electronic equipment.
Background
In products adopting wireless modules, such as security protection, intelligent electric meters, intelligent door locks, POS machines and the like, USB peripheral equipment is often accessed, but after the USB peripheral equipment is accessed, the power consumption of the wireless modules can be increased to a certain extent.
In the prior art, in order to reduce the power consumption of the wireless module accessing the USB peripheral device, the suspend state of the USB is set according to the USB protocol. Under normal conditions, the hub (hub) or the logical hub (root hub) periodically sends out SOF (start Of frame) packets, wherein a SOF packet is sent out by the full-speed USB every 1ms, a SOF packet is sent out by the high-speed USB in 125 μ s, when the USB line is always in an idle state for more than 3ms, the USB peripheral device takes the SOF packet as a suspend signal, the corresponding USB peripheral device enters the suspend state within 10ms, and the current required by the USB peripheral device is reduced to a specified value (500 μ a is required for a low-power device, and 2.5mA is required for a high-power device or a device supporting a remote wake-up function).
However, when the USB peripheral device is in the suspend state, the USB peripheral device still has to continue to provide voltage to the pull-up resistor of the data item D +/D-to maintain the idle state, so that when the USB peripheral device is in the suspend state, although power consumption is saved to a certain extent, power consumption is still increased by about 0.9ma compared with when the USB peripheral device is not used, and at this time, the USB peripheral device still maintains the original USB address and configuration, and is also in the unavailable state.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a wireless module, a power consumption control method and an electronic device to solve the above technical problems or some technical problems.
In a first aspect, an embodiment of the present invention provides a wireless module, including:
the power consumption monitoring module is provided with a control pin, the control pin is connected with the USB peripheral equipment, and the power consumption monitoring module is used for monitoring the state data of the USB peripheral equipment in real time and controlling the USB peripheral equipment to stop or use through the control pin based on the state data.
In one possible embodiment, the power consumption monitoring module includes a power consumption control unit and a data monitoring unit which are connected in communication, wherein:
the data monitoring unit is connected with the USB peripheral equipment and is used for monitoring the state data of the USB peripheral equipment in real time;
the power consumption control unit is provided with the control pin and is used for controlling the stop or use of the USB peripheral equipment through the control pin according to the state data.
In one possible embodiment, the power consumption control unit is further configured to:
and when the state data sent by the data monitoring unit is not received within the preset time, the control pin controls the USB peripheral equipment to be deactivated.
In one possible embodiment, the power consumption control unit is further configured to:
receiving a control instruction, and controlling the deactivation or use of the USB peripheral equipment through the control pin based on the control instruction; the control instructions include a wake-up instruction and a sleep instruction.
In one possible embodiment, the power consumption control unit is further configured to:
and controlling the control pin to output a high level signal or a low level signal based on the state data sent by the data monitoring unit, and controlling the deactivation or use of the USB peripheral equipment based on the high level signal or the low level signal.
In a possible implementation manner, the number of the control pins is multiple, and the number of the peripheral devices is multiple, where each control pin corresponds to one USB peripheral device connection.
In one possible embodiment, the data monitoring unit is further configured to:
and respectively monitoring the state data of the plurality of USB peripheral equipment in real time in a multithreading mode.
In a second aspect, an embodiment of the present invention further provides a power consumption control method for a wireless module, which is applied to the wireless module described above, and includes:
receiving the state data of the USB peripheral equipment in real time,
controlling, via a control pin, deactivation or use of the USB peripheral device based on the status data.
In one possible embodiment, the power consumption control method further includes:
receiving a control instruction, and controlling the deactivation or use of the USB peripheral equipment through the control pin based on the control instruction; the control instructions include a wake-up instruction and a sleep instruction.
In a third aspect, an embodiment of the present invention further provides a storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the power consumption control method described above.
The wireless module provided by the embodiment of the invention comprises a power consumption monitoring module, wherein the power consumption monitoring module is provided with a control pin, the control pin is connected with the USB peripheral equipment, and the power consumption monitoring module is used for monitoring the state data of the USB peripheral equipment in real time and controlling the USB peripheral equipment to be used or stopped through the control pin based on the state data. Through foretell wireless module, based on the control pin on the consumption monitoring module, realized USB peripheral hardware's use or stop use, do not totally rely on USB communication protocol, can further reduce wireless module's consumption, prolonged wireless module's life.
Drawings
Fig. 1 is a first control diagram of a wireless module according to an embodiment of the present invention;
fig. 2 is a second schematic control diagram of a wireless module according to an embodiment of the present invention;
fig. 3 is a flowchart of a power consumption control method of a wireless module according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
in the above drawings:
100. a wireless module; 10. a power consumption monitoring module; 101. a power consumption control unit; 102. a control pin; 103. a data monitoring unit; 104. a USB peripheral device; 20. a control module;
200. an electronic device; 20. a processor; 30. a communication interface; 40. memory, 50, communication bus.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the technical problem that power consumption still exists when the USB peripheral equipment is not used in the prior art, the embodiment of the invention provides a wireless module which comprises a power consumption monitoring module, wherein a control pin is arranged on the power consumption monitoring module and is connected with the USB peripheral equipment, and the power consumption monitoring module is used for monitoring state data of the USB peripheral equipment in real time and controlling the USB peripheral equipment to be used or stopped through the control pin based on the state data. Through foretell wireless module, based on the control pin on the consumption monitoring module, realized USB peripheral hardware's use or stop use, do not totally rely on USB communication protocol, can further reduce wireless module's consumption, prolonged wireless module's life.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
An embodiment of the present invention provides a wireless module 100, referring to fig. 1, including a power consumption monitoring unit 10, where the power consumption monitoring unit 10 is configured to analyze data and control use or deactivation of a USB peripheral device 104. The power consumption monitoring unit 10 is provided with a control pin 102. Specifically, the power consumption monitoring unit 10 is configured to monitor status data of the USB peripheral device 104 in real time and control the deactivation or use of the USB peripheral device 104 via the control pin 102 based on the status data.
It should be noted that the USB peripheral device 104 in this embodiment specifically refers to a peripheral device connected to the wireless module 100 through a USB interface, for example, the USB peripheral device 104 may be an audio device or a camera device, and the specific form of the USB peripheral device 104 is not specifically limited in this embodiment, and may be specifically set according to actual needs.
In this embodiment, the wireless module 100 described above realizes the use or the stop of the USB peripheral device 104 based on the control pin 102 on the power consumption monitoring unit 10, and does not completely depend on the USB communication protocol, so that the power consumption of the wireless module 100 can be further reduced, and the service life of the wireless module 100 is prolonged.
In this embodiment, the power consumption monitoring unit 10 includes a power consumption control unit and a data monitoring unit 103, which are in communication connection, the power consumption control unit is provided with a control pin 102, the power consumption control unit is connected with the USB peripheral device 104 through the control pin 102, and the data monitoring unit 103 is further connected with the USB peripheral device 104. The data monitoring unit 103 is configured to monitor status data of the USB peripheral device 104 in real time, and the power consumption control unit is configured to control the USB peripheral device 104 to be disabled or used through the control pin 102 according to the status data.
In this embodiment, the monitoring of the status data of the USB peripheral device 104 specifically includes: status data on a USB line connected to the USB peripheral device 104 is monitored, wherein the status data is operational status data. In this embodiment, when the data monitoring unit 103 monitors the working state data, the data monitoring unit 103 interacts with the power consumption control unit, and at this time, the power consumption control unit determines that the USB peripheral device 104 is in the working state, and the power consumption control unit controls the USB peripheral device 104 to continue to be used through the control pin.
In this embodiment, the power consumption control unit is further configured to: when the status data sent by the data monitoring unit 103 is not received within a preset time, the USB peripheral device 104 is controlled to be deactivated via the control pin 102. The preset time may be set according to actual needs, and this embodiment is not specifically limited. Specifically, when the data monitoring unit 103 does not detect the status data within the preset time, the data monitoring unit 103 interacts with the power consumption control unit, and at this time, the power consumption control unit determines that the USB peripheral device 104 is in an idle state, and the power consumption control unit controls the USB peripheral device 104 to be deactivated through the control pin. The idle state may mean that there is no data interaction when the USB peripheral device 104 is connected to the wireless module 100, or that the USB peripheral device 104 is no longer connected to the wireless module 100.
It should be noted that the power consumption control unit and the data monitoring unit 103 may be connected by a hard wire, specifically, the communication mode between the power consumption control unit and the data monitoring unit 103 includes, but is not limited to, RS485, RS232, and the like, and the specific communication mode may be set according to actual needs, which is not limited in this embodiment.
This embodiment is through carrying out the modularization with consumption monitoring unit 10 to divide into consumption control unit and data monitoring unit 103 with consumption monitoring unit 10, so that on the basis of realizing relevant function, when wireless module 100 trouble, can be rapid fix a position the fault point, reduce the time that influences wireless module 100 work, improve work efficiency.
In this embodiment, in addition to real-time monitoring of the status data of the USB external device by the wireless module 100 to control the deactivation or use of the USB external device via the control pin 102, the USB external device may also be controlled by external intervention to deactivate or use the USB external device.
Specifically, referring to fig. 2, the power consumption control unit is further configured to: receiving a control instruction, and controlling the deactivation or use of the USB peripheral device 104 through the control pin 102 based on the control instruction; wherein the control instructions include a wake instruction and a sleep instruction.
It should be noted that the control instruction is sent by the control module 20 in the device provided with the wireless module 100, and the control module 20 is a main control center of the device and is responsible for processing data and issuing the control instruction. The control module 20 and the power consumption monitoring unit 10 may be connected by a hard wire, specifically, the communication mode between the control module 20 and the power consumption monitoring unit 10 (i.e., between the control module 20 and the power consumption control unit) includes, but is not limited to, RS485, RS232, and the like, and the specific communication mode may be set according to actual needs, which is not limited in this embodiment.
More specifically, when the control module 20 issues a sleep command to the power consumption control unit, the power consumption control unit controls the USB peripheral device 104 to be deactivated through the control pin 102 according to the received sleep command; when the control module 20 issues a wake-up command to the power consumption control unit, the power consumption control unit controls the USB peripheral device 104 to start using through the control pin 102 according to the received wake-up command.
It should be noted that the power consumption control unit and the data monitoring unit 103 execute control of using or disabling the USB peripheral device 104 inside the wireless module 100, and when the power consumption control unit and the data monitoring unit 103 cyclically monitor status data of the USB peripheral device 104 to control the USB peripheral device 104 to use or disable through the control pin, if the power consumption control unit receives a control instruction issued by the control module 20, the power consumption control unit preferentially processes the control instruction, and controls the USB peripheral device 104 to disable or use through the control pin according to the received control instruction.
In this embodiment, in order to improve the expandability of the wireless module 100, there are a plurality of control pins 102 and a plurality of USB peripheral devices 104, wherein each USB peripheral device 104 is correspondingly connected to one control pin 102, that is, each USB peripheral device 104 is correspondingly connected to one control pin 102 through a USB interface. In this embodiment, the number of the control pins 102 is multiple, that is, the number of the control pins 102 is greater than 1, and the specific number of the control pins 102 is not specifically limited in this embodiment. The number of the USB peripheral devices 104 may be selected according to the actual requirement, that is, the number of the USB peripheral devices 104 may be the same as the number of the control pins 102, and the number of the USB peripheral devices 104 may also be smaller than the number of the control pins 102. However, whether the number of the control pins 102 is the same as the number of the USB peripheral devices 104 or the number of the control pins 102 is greater than the number of the USB peripheral devices 104, when the USB peripheral devices 104 are connected, each USB peripheral device 104 is connected to a corresponding control pin, and when the USB peripheral devices 104 are controlled, the control pins corresponding to the USB peripheral devices 104 are used for controlling the USB peripheral devices 104.
It should be noted that, when the wireless module 100 is connected to a plurality of USB peripheral devices 104, if the power consumption control unit does not receive the status data of a certain USB peripheral device 104 sent by the data monitoring unit 103 within a preset time, the power consumption control unit determines that the USB peripheral device 104 is in an idle state, and controls the USB peripheral device 104 to be deactivated through the control pin 102 connected to the USB peripheral device 104 according to the address of the USB peripheral device 104. Likewise, the method of controlling the use of the USB peripheral device 104 is consistent with that described above.
In this embodiment, the power consumption control unit is further configured to: based on the status data sent by the data monitoring unit 103, the control pin 102 is controlled to output a high level signal or a low level signal, and the USB peripheral device 104 is controlled to be disabled or used based on the high level signal or the low level signal.
Specifically, in the present embodiment, a high level signal may be selected as the signal for controlling the USB peripheral device 104 to be deactivated, or a low level signal may be selected as the signal for controlling the USB peripheral device 104 to be deactivated, and similarly, the signal control used by the USB peripheral device 104 may be selected as the high level signal or the low level signal. However, when the USB peripheral device 104 is controlled by the high-level signal (disable signal is not enabled) as the disable signal, the USB peripheral device is controlled by the low-level signal (enable signal) as the enable signal, and vice versa. The specific signal control method of the USB peripheral device 104 is not specifically limited in this embodiment, and may be selected according to actual needs. More specifically, the power consumption control unit causes the control pin to output a high level signal or a low level signal according to the PWM waveform, thereby causing the control pin to control the use or deactivation of the USB peripheral device 104 according to the high level signal or the low level signal.
In this embodiment, the data monitoring unit 103 is further configured to: and the state data of the plurality of USB peripheral devices 104 are respectively monitored in real time in a multithreading mode.
In this embodiment, when the wireless module 100 is connected to a plurality of USB peripheral devices 104, the status data of the plurality of USB peripheral devices 104 are respectively monitored in real time in a multi-thread manner, so as to ensure real-time status data monitoring. Of course, the present embodiment may also monitor the status data of the multiple USB peripheral devices 104 in real time in a single-thread manner, and the monitoring manner of the status data of the USB peripheral devices 104 is not specifically limited in this embodiment.
In this embodiment, the data monitoring unit 103 is further configured to: after the wireless module 100 is powered on, the function of the corresponding USB peripheral device is initialized.
It should be noted that, when the data monitoring unit 103 initializes and completes the function of the corresponding USB peripheral device, specifically, the camera takes a picture, plays audio, and the like. During the operation of the USB peripheral device 104, the data monitoring unit 103 monitors the status data of the USB peripheral device 104 in real time, thereby completing the control of the use or the deactivation of the USB peripheral device 104.
In this embodiment, by adding the control pin for controlling the use or the deactivation of the USB peripheral device 104 to the wireless module 100, when the USB peripheral device 104 is idle, the USB peripheral device 104 is controlled to be deactivated through the control pin, compared with the prior art that the USB peripheral device 104 is suspended according to the USB communication protocol when the USB peripheral device 104 is idle, the power consumption is significantly lower, and the service life of the wireless module 100 is prolonged.
The following describes, as an example, a process of the wireless module 100 controlling the USB peripheral device 104 to be used or disabled with reference to fig. 1 and 2:
(1) when the control module 20 in the device issues a control instruction: the power consumption control unit receives a control instruction issued by the control module 20, and when the control instruction is judged to be a sleep control instruction, the power consumption control unit controls the corresponding control pin to output a high level signal or a low level signal according to the sleep instruction, and the USB peripheral device 104 corresponding to the control pin is deactivated; when the control instruction is judged to be the wake-up control instruction, the power consumption control unit controls the corresponding control pin to output a high level signal or a low level signal according to the wake-up instruction, and the USB peripheral device 104 corresponding to the control pin starts to be used.
(2) When monitoring and controlling the internal circulation of the wireless module 100: the data monitoring unit 103 monitors state data on a USB line connected with the USB peripheral device 104 in real time, when the power consumption control unit does not receive the state data of the USB peripheral device 104 within a preset time, the power consumption control unit judges that the USB peripheral device 104 is in an idle state, the power consumption control unit controls a corresponding control pin to output a high level signal or a low level signal, and the USB peripheral device 104 corresponding to the control pin is deactivated; when the power consumption control unit receives the status data sent by the data monitoring unit 103 in real time, the power consumption control unit controls the corresponding control pin to output a high level signal or a low level signal, and the USB peripheral device 104 corresponding to the control pin continues to be used.
An embodiment of the present invention further provides a power consumption control method of a wireless module 100, which is applied to the wireless module 100 described above, and referring to fig. 3, the power consumption control method provided in this embodiment includes:
s1: the status data of the USB peripheral device 104 is received in real time.
It should be noted that step S1 is executed by the power consumption control unit in the wireless module 100, and the status data is sent to the power consumption control unit by the data monitoring unit 103 in the wireless module 100. The status data is the operating status data of the USB peripheral device 104.
S2: the deactivation or use of the USB peripheral device 104 is controlled via the control pin 102 based on the status data.
Note that, the step S2 is executed by the power consumption control unit in the wireless module 100.
In this embodiment, the power consumption control method of the wireless module 100 is based on the control pin 102 on the power consumption monitoring unit 10, so that the USB peripheral device 104 is used or disabled without completely depending on the USB communication protocol, the power consumption of the wireless module 100 can be further reduced, and the service life of the wireless module 100 is prolonged.
In this embodiment, the step S2, based on the state data, controls the USB peripheral device 104 to be disabled or used through the control pin 102, which specifically includes:
when receiving the state data of the USB peripheral equipment, judging that the USB peripheral equipment 104 is in a working state at the moment, and controlling the USB peripheral equipment 104 to continue to use through a control pin; when the status data is not received within the preset time, the USB peripheral device 104 is determined to be in an idle state, and the USB peripheral device 104 is controlled to be deactivated through the control pin.
In this embodiment, the step S2, controlling the USB peripheral device 104 to be disabled or used via the control pin 102 specifically includes:
based on the status data, the control pin 102 outputs a high signal or a low signal, and controls the deactivation or use of the USB peripheral device 104 based on the high signal or the low signal.
S3: receiving a control instruction, and controlling the deactivation or use of the USB peripheral device 104 through the control pin 102 based on the control instruction; the control instruction comprises a wake-up instruction and a sleep instruction.
It should be noted that, step S1 is executed by the power consumption control unit in the wireless module 100, and the control command is issued by the control module 20, which is a master control center of the device equipped with the wireless module 100 and can be controlled by external intervention to disable or use the USB external device.
Specifically, when the received control command is a sleep command, the USB peripheral device 104 is controlled to be deactivated through the control pin 102; when the received control command is a wake-up command, the USB peripheral device 104 is controlled to start using through the control pin 102.
It should be noted that the step S3 is not in obvious sequence with the steps S1 and S2.
In this embodiment, by the above power consumption control method of the wireless module 100, when the USB peripheral device 104 is idle, the control pin controls the USB peripheral device 104 to be disabled, compared with the prior art that the USB peripheral device 104 is suspended according to the USB communication protocol when the USB peripheral device 104 is idle, the power consumption is significantly lower, and the service life of the wireless module 100 is prolonged.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where an electronic device 200 in this embodiment is a wireless module 100 capable of implementing a communication function or a terminal device including the wireless module 100, the terminal device may be a mobile terminal and/or an intelligent device, the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like, the intelligent device may be at least one of an intelligent watch, an intelligent refrigerator, an intelligent speaker, an intelligent washing machine, and an intelligent television, the wireless module 100 may be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and an NB-LOT communication module, and the electronic device 200 includes a processor 20, a communication interface 30, a memory 40, and a communication bus 50, where the processor 20, the communication interface 30, and the communication bus 50 are included in the electronic device 200, The memories 40 communicate with each other via a communication bus 50.
A memory 40 for storing a computer program;
in an embodiment of the present invention, when the processor 20 is configured to execute the program stored in the memory 40, the method for controlling power consumption of the wireless module 100 according to any one of the foregoing method embodiments includes:
receiving status data of the USB peripheral device 104 in real time;
the deactivation or use of the USB peripheral device 104 is controlled via the control pin 102 based on the status data.
In an optional embodiment, further comprising:
receiving a control instruction, and controlling the deactivation or use of the USB peripheral device 104 through the control pin 102 based on the control instruction; the control instruction comprises a wake-up instruction and a sleep instruction.
In an alternative embodiment, controlling the deactivation or use of the USB peripheral device 104 via the control pin 102 based on the status data specifically includes:
when receiving the state data of the USB peripheral device 104, determining that the USB peripheral device 104 is in a working state, and controlling the USB peripheral device 104 to continue to be used through the control pin; when the status data is not received within the preset time, the USB peripheral device 104 is determined to be in an idle state, and the USB peripheral device 104 is controlled to be deactivated through the control pin.
In an optional embodiment, the controlling the deactivation or the use of the USB peripheral device 104 via the control pin 102 specifically includes:
based on the status data, the control pin 102 outputs a high signal or a low signal, and controls the deactivation or use of the USB peripheral device 104 based on the high signal or the low signal.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium are executable by one or more processors to implement the steps of the above-described power consumption control method of the device performed on the device side.
The processor is configured to execute a control program stored in the memory to implement the following steps of the power consumption control method of the device, which is performed on the device side.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, circuit, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, circuit, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, circuit, article, or apparatus that comprises the element.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A wireless module, comprising:
the power consumption monitoring module is provided with a control pin, the control pin is connected with the USB peripheral equipment, and the power consumption monitoring module is used for monitoring the state data of the USB peripheral equipment in real time and controlling the USB peripheral equipment to stop or use through the control pin based on the state data.
2. The wireless module according to claim 1, wherein the power consumption monitoring module comprises a power consumption control unit and a data monitoring unit which are connected in communication, wherein:
the data monitoring unit is connected with the USB peripheral equipment and is used for monitoring the state data of the USB peripheral equipment in real time;
the power consumption control unit is provided with the control pin and is used for controlling the stop or use of the USB peripheral equipment through the control pin according to the state data.
3. The wireless module of claim 2, wherein the power consumption control unit is further configured to:
and when the state data sent by the data monitoring unit is not received within the preset time, the control pin controls the USB peripheral equipment to be deactivated.
4. The wireless module according to claim 2 or 3, wherein the power consumption control unit is further configured to:
receiving a control instruction, and controlling the deactivation or use of the USB peripheral equipment through the control pin based on the control instruction; the control instructions include a wake-up instruction and a sleep instruction.
5. The wireless module of claim 2, wherein the power consumption control unit is further configured to:
and controlling the control pin to output a high level signal or a low level signal based on the state data sent by the data monitoring unit, and controlling the deactivation or use of the USB peripheral equipment based on the high level signal or the low level signal.
6. The wireless module of claim 2, wherein the control pin is a plurality of pins, and the USB peripheral devices are a plurality of pins, wherein each of the USB peripheral devices is correspondingly connected to one of the control pins.
7. The wireless module of claim 6, wherein the data monitoring unit is further configured to:
and respectively monitoring the state data of the plurality of USB peripheral equipment in real time in a multithreading mode.
8. A power consumption control method of a wireless module, applied to the wireless module according to any one of claims 1 to 7, comprising:
receiving state data of the USB peripheral equipment in real time;
controlling, via a control pin, deactivation or use of the USB peripheral device based on the status data.
9. The power consumption control method according to claim 8, characterized by further comprising:
receiving a control instruction, and controlling the deactivation or use of the USB peripheral equipment through the control pin based on the control instruction; the control instructions include a wake-up instruction and a sleep instruction.
10. An electronic device, comprising: a processor and a memory, the processor being configured to execute a power consumption control program stored in the memory to implement the power consumption control method recited in claim 8 or 9.
CN202111448103.0A 2021-11-30 2021-11-30 Wireless module, power consumption control method and electronic equipment Pending CN114327020A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111448103.0A CN114327020A (en) 2021-11-30 2021-11-30 Wireless module, power consumption control method and electronic equipment
PCT/CN2022/099708 WO2023098033A1 (en) 2021-11-30 2022-06-20 Wireless module, power consumption control method, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111448103.0A CN114327020A (en) 2021-11-30 2021-11-30 Wireless module, power consumption control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114327020A true CN114327020A (en) 2022-04-12

Family

ID=81049226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111448103.0A Pending CN114327020A (en) 2021-11-30 2021-11-30 Wireless module, power consumption control method and electronic equipment

Country Status (2)

Country Link
CN (1) CN114327020A (en)
WO (1) WO2023098033A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023098033A1 (en) * 2021-11-30 2023-06-08 西安广和通无线通信有限公司 Wireless module, power consumption control method, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308399A (en) * 2008-06-23 2008-11-19 北京中星微电子有限公司 Universal serial bus equipment selective dormancy realization method and related device
US20090153189A1 (en) * 2007-12-12 2009-06-18 International Business Machines Corporation Universal serial bus wakeup circuit
CN104411003A (en) * 2014-11-06 2015-03-11 深圳市广和通无线通信软件有限公司 Dormancy wakeup control method and system of wireless communication equipment
CN109388241A (en) * 2018-09-29 2019-02-26 歌尔科技有限公司 Implementation method, device and the electronic equipment of VR equipment low-power consumption

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8166221B2 (en) * 2004-03-17 2012-04-24 Super Talent Electronics, Inc. Low-power USB superspeed device with 8-bit payload and 9-bit frame NRZI encoding for replacing 8/10-bit encoding
CN101790225A (en) * 2010-03-16 2010-07-28 华为终端有限公司 Power management method and device for on-line module
CN114327020A (en) * 2021-11-30 2022-04-12 西安广和通无线通信有限公司 Wireless module, power consumption control method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090153189A1 (en) * 2007-12-12 2009-06-18 International Business Machines Corporation Universal serial bus wakeup circuit
CN101308399A (en) * 2008-06-23 2008-11-19 北京中星微电子有限公司 Universal serial bus equipment selective dormancy realization method and related device
CN104411003A (en) * 2014-11-06 2015-03-11 深圳市广和通无线通信软件有限公司 Dormancy wakeup control method and system of wireless communication equipment
CN109388241A (en) * 2018-09-29 2019-02-26 歌尔科技有限公司 Implementation method, device and the electronic equipment of VR equipment low-power consumption

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023098033A1 (en) * 2021-11-30 2023-06-08 西安广和通无线通信有限公司 Wireless module, power consumption control method, and electronic device

Also Published As

Publication number Publication date
WO2023098033A1 (en) 2023-06-08

Similar Documents

Publication Publication Date Title
US5410713A (en) Power-management system for a computer
CN107851050B (en) Device with watchdog timer and method for operating watchdog timer
JP4847408B2 (en) Method and apparatus for dynamic power management in a processor system
CN102789305B (en) Postponing suspend
WO2016101099A1 (en) Techniques for power management associated with processing received packets at a network device
US20160239343A1 (en) Multi-tenant monitoring
US20170269984A1 (en) Systems and methods for improved detection of processor hang and improved recovery from processor hang in a computing device
EP3128789B1 (en) Method, device and mobile terminal for reducing power consumption
US9377834B2 (en) Adjusting working frequency of a processor based on monitored idle time
CN105511593A (en) Method and device for adjusting frequencies of CPU (central processing unit) subsystems of Linux systems
CN114327020A (en) Wireless module, power consumption control method and electronic equipment
US7716504B2 (en) System for retaining power management settings across sleep states
CN108806679B (en) Voice wake-up method and device
CN113360344B (en) Server monitoring method, device, equipment and computer readable storage medium
US11256321B2 (en) Network-driven, packet context-aware power management for client-server architecture
CN113986000A (en) Server power-on method, system, device and medium
CN106912091B (en) Control method and device and electronic equipment
CN115826732A (en) Dormancy awakening method and device and computer readable storage medium
US20160124485A1 (en) Computer system having an absence mode
CN116513966A (en) Crane control method and device, electronic equipment and crane
EP3176674A1 (en) Method for power control of a control unit and control unit
CN115185769A (en) Monitoring method, device, equipment and medium for server cluster
CN110647401B (en) Frequency modulation method, frequency modulation device, storage medium and electronic equipment
CN109669526B (en) Method, system, terminal and storage medium for configuring energy-saving mode of cluster server
CN112506686A (en) Method and device for realizing log system of DCS (distributed control system) controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220412