WO2023098033A1 - Wireless module, power consumption control method, and electronic device - Google Patents

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

Info

Publication number
WO2023098033A1
WO2023098033A1 PCT/CN2022/099708 CN2022099708W WO2023098033A1 WO 2023098033 A1 WO2023098033 A1 WO 2023098033A1 CN 2022099708 W CN2022099708 W CN 2022099708W WO 2023098033 A1 WO2023098033 A1 WO 2023098033A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
power consumption
usb peripheral
peripheral device
wireless module
Prior art date
Application number
PCT/CN2022/099708
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 WO2023098033A1 publication Critical patent/WO2023098033A1/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
    • 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

Abstract

Disclosed are a wireless module, a power consumption control method, and an electronic device. The wireless module comprises a power consumption monitoring module; the power consumption monitoring module is provided with control pins; each control pin is connected to a USB peripheral device; and the power consumption monitoring module is used for monitoring state data of each USB peripheral device in real time and controlling disablement or enablement of each USB peripheral device by means of each control pin on the basis of the state data.

Description

无线模组、功耗控制方法及电子设备Wireless module, power consumption control method and electronic device
相关申请的引用References to related applications
[根据细则91更正 15.09.2022]
本公开要求于2021年11月30日向中华人民共和国国家知识产权局提交的申请号为202111448103.0、发明名称为“一种无线模组、功耗控制方法及电子设备”的发明专利的优先权,并通过引用的方式将其全部内容并入本公开。
[Corrected 15.09.2022 under Rule 91]
This disclosure claims the priority of the invention patent with the application number 202111448103.0 and the invention name "a wireless module, power consumption control method and electronic equipment" submitted to the State Intellectual Property Office of the People's Republic of China on November 30, 2021, and This disclosure is incorporated by reference in its entirety.
领域field
本公开大体上涉及通信技术领域,更具体地涉及无线模组、功耗控制方法及电子设备。The present disclosure generally relates to the technical field of communication, and more specifically relates to a wireless module, a method for controlling power consumption, and an electronic device.
背景background
在安防、智能电表、智能门锁、POS机等采用无线模组的产品中,常常会接入USB外设设备,但当接入USB外设设备后,一定程度上会增加上述无线模组的功耗。In products using wireless modules such as security, smart meters, smart door locks, and POS machines, USB peripheral devices are often connected, but when connected to USB peripheral devices, the above-mentioned wireless modules will increase to a certain extent. power consumption.
目前现有技术中,为了减少无线模组接入USB外设设备所增加的功耗,根据USB协议会设置USB的suspend挂起状态。在正常状态下,集线器(hub)或逻辑集线器(root hub)周期性地发送SOF(Start Of Frame)包,其中,全速USB每1ms发送一个SOF包,高速USB则是125μs发送一个SOF包,当USB线上一直处于空闲状态超过3ms时,USB外设设备将其作为一个挂起信号,相应的USB外设设备在10ms内进入挂起状态,并把USB外设设备所需的电流大小降到规定的值(对于低功耗设备,要求是500μA,而对于高功耗或支持远程唤醒功能的设备,要求是2.5mA)。In the current prior art, in order to reduce the increased power consumption of the wireless module connected to the USB peripheral device, the USB suspend state is set according to the USB protocol. Under normal conditions, the hub (hub) or logical hub (root hub) periodically sends SOF (Start Of Frame) packets, among which, full-speed USB sends a SOF packet every 1ms, and high-speed USB sends a SOF packet every 125μs. When the USB line has been in the idle state for more than 3ms, the USB peripheral device takes it as a suspend signal, and the corresponding USB peripheral device enters the suspend state within 10ms, and reduces the current required by the USB peripheral device to specified value (500µA is required for low-power devices, and 2.5mA is required for high-power devices or devices that support remote wake-up).
概述overview
第一方面,本公开提供无线模组,其包括:In a first aspect, the present disclosure provides a wireless module, which includes:
功耗监测模块,所述功耗监测模块上设有控制管脚,所述控制管脚与USB外设设备连接,所述功耗监测模块用于实时监测所述USB外设设备的状态数据,并基于所述状态数据,经所述控制管脚控制所述USB外设设备的停用或使用。A power consumption monitoring module, the power consumption monitoring module is provided with a control pin, the control pin is connected to a USB peripheral device, and the power consumption monitoring module is used to monitor the state data of the USB peripheral device in real time, And based on the state data, control the disabling or using of the USB peripheral device through the control pin.
在某些实施方案中,所述功耗监测模块包括通信连接的功耗控制单元和数据监测单元,其中:In some embodiments, the power consumption monitoring module includes a communication-connected power consumption control unit and a data monitoring unit, wherein:
数据监测单元与所述USB外设设备连接,配置为实时监测所述USB外设设备的所述状态数据;The data monitoring unit is connected to the USB peripheral device and configured to monitor the status data of the USB peripheral device in real time;
所述功耗控制单元上设有所述控制管脚,配置为根据所述状态数据,经所述控制管脚控制所述USB外设设备的停用或使用。The power consumption control unit is provided with the control pin configured to control the deactivation or use of the USB peripheral device through the control pin according to the state data.
在某些实施方案中,所述功耗控制单元还配置为:In some implementations, the power consumption control unit is further configured to:
当预设时间内未接收到所述数据监测单元发送的所述状态数据时,则经所述控制管脚控制停用所述USB外设设备。When the status data sent by the data monitoring unit is not received within a preset time, the USB peripheral device is controlled to be disabled through the control pin.
在某些实施方案中,所述功耗控制单元还配置为:In some implementations, the power consumption control unit is further configured to:
接收控制指令,并基于所述控制指令,经所述控制管脚控制所述USB外设设备的停用或使用;所述控制指令包括唤醒指令和睡眠指令。receiving a control instruction, and based on the control instruction, controlling the deactivation or use of the USB peripheral device through the control pin; the control instruction includes a wake-up instruction and a sleep instruction.
在某些实施方案中,所述功耗控制单元还配置为:In some implementations, the power consumption control unit is further configured to:
基于所述数据监测单元发送的所述状态数据,控制所述控制管脚输出高电平信号或低电平信号,基于所述高电平信号或所述低电平信号控制USB外设设备的停用或使用。Based on the state data sent by the data monitoring unit, control the control pin to output a high-level signal or a low-level signal, and control the USB peripheral device based on the high-level signal or the low-level signal deactivate or use.
在某些实施方案中,所述控制管脚为多个,所述外设设备为多个,其中,每一控制管脚对应一所述USB外设设备连接。In some implementations, there are multiple control pins and multiple peripheral devices, wherein each control pin corresponds to a USB peripheral device connection.
在某些实施方案中,所述数据监测单元还配置为:In some embodiments, the data monitoring unit is further configured to:
采用多线程方式分别实时监测多个所述USB外设设备的所述状态数据。The status data of multiple USB peripheral devices are respectively monitored in real time in a multi-thread manner.
第二方面,本公开还提供无线模组的功耗控制方法,所述方法应用于本公开所述的无线模组,所述方法包括:In the second aspect, the present disclosure also provides a method for controlling power consumption of a wireless module, the method is applied to the wireless module described in the present disclosure, and the method includes:
实时接收USB外设设备的状态数据;以及receiving status data of USB peripheral devices in real time; and
基于所述状态数据,经控制管脚控制所述USB外设设备的停用或使用。Based on the status data, disabling or enabling of the USB peripheral device is controlled via a control pin.
在某些实施方案中,所述功耗控制方法还包括:In some implementations, the power consumption control method also includes:
接收控制指令,并基于所述控制指令,经所述控制管脚控制所述USB外设设备的停用或使用;所述控制指令包括唤醒指令和睡眠指令。receiving a control instruction, and based on the control instruction, controlling the deactivation or use of the USB peripheral device through the control pin; the control instruction includes a wake-up instruction and a sleep instruction.
第三方面,本公开还提供存储介质,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现本公开所述的功耗控制方法。In a third aspect, the present disclosure further provides a storage medium, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to realize the power consumption control described in the present disclosure method.
本公开实施例提供的无线模组,其包括功耗监测模块,功耗监测模块上设有控制管脚,控制管脚与USB外设设备连接,功耗监测模块用于实时监测USB外设设备的状态数据,并基于状态数据,经控制管脚控制USB外设设备的使用或停用。通过上述的无线模组,基于功耗监测模块上的控制管脚,实现了USB外设设备的使用或停用,不完全依赖于USB通信协议,能够进一步降低无线模组的功耗,延长了无线模组的使用寿命。The wireless module provided by the embodiment of the present disclosure includes a power consumption monitoring module, the power consumption monitoring module is provided with control pins, the control pins are connected to USB peripheral devices, and the power consumption monitoring module is used for real-time monitoring of USB peripheral devices The state data, and based on the state data, control the use or deactivation of the USB peripheral device through the control pin. Through the above-mentioned wireless module, based on the control pins on the power consumption monitoring module, the use or deactivation of the USB peripheral device is realized, which does not completely depend on the USB communication protocol, which can further reduce the power consumption of the wireless module and prolong the The service life of the wireless module.
附图简要说明Brief description of the drawings
图1为本公开一实施例所提供的无线模组的控制示意图;FIG. 1 is a control schematic diagram of a wireless module provided by an embodiment of the present disclosure;
图2为本公开另一实施例所提供的无线模组的控制示意图;FIG. 2 is a control schematic diagram of a wireless module provided by another embodiment of the present disclosure;
图3为本公开一实施例所提供的无线模组的功耗控制方法的流程图;FIG. 3 is a flowchart of a method for controlling power consumption of a wireless module provided by an embodiment of the present disclosure;
图4为本公开一实施例提供的电子设备的结构示意图;FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure;
以上附图中:In the attached drawings above:
100、无线模组;10、功耗监测模块;101、功耗控制单元;102、控制管脚;103、数据监测单元;104、USB外设设备;20、控制模块;100. Wireless module; 10. Power consumption monitoring module; 101. Power consumption control unit; 102. Control pin; 103. Data monitoring unit; 104. USB peripheral equipment; 20. Control module;
200、电子设备;20、处理器;30、通信接口;40、存储器、50、通信总线。200, electronic equipment; 20, processor; 30, communication interface; 40, memory, 50, communication bus.
详述detail
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments It is a part of the embodiments of the present disclosure, but not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present disclosure.
在某些实施方案中,本公开提供无线模组,其包括功耗监测模块,功耗监测模块上设有控制管脚,控制管脚与USB外设设备连接,功耗监测模块用于实时监测USB外设设备的状态数据,并基于状态数据,经控制管脚控制USB外设设备的使用或停用。通过上述的无线模组,基于功耗监测模块上的控制管脚,实现了USB外设设备的使用或停用,不完全依赖于USB通信协议,能够进一步降低无线模组的功耗,延长了无线模组的使用寿命。In some embodiments, the present disclosure provides a wireless module, which includes a power consumption monitoring module, the power consumption monitoring module is provided with a control pin, the control pin is connected to a USB peripheral device, and the power consumption monitoring module is used for real-time monitoring The status data of the USB peripheral device, and based on the status data, the use or deactivation of the USB peripheral device is controlled through the control pin. Through the above-mentioned wireless module, based on the control pins on the power consumption monitoring module, the use or deactivation of the USB peripheral device is realized, which does not completely depend on the USB communication protocol, which can further reduce the power consumption of the wireless module and prolong the The service life of the wireless module.
为便于对本公开实施例的理解,下面将结合附图以实施例做解释说明,实施例并不构成对本公开实施例的限定。In order to facilitate the understanding of the embodiments of the present disclosure, the embodiments will be explained below in conjunction with the accompanying drawings, and the embodiments are not intended to limit the embodiments of the present disclosure.
本公开实施例提供无线模组100,参考图1,其包括功耗监测单元10,功耗监测单元10用于分析数据及控制USB外设设备104的使用或停用。其中,功耗监测单元10上设有控制管脚102。功耗监测单元10用于实时监测USB外设设备104的状态数据,并基于状态数据,经控制管脚102控制USB外设设备104的停用或使用。An embodiment of the present disclosure provides a wireless module 100 , referring to FIG. 1 , which includes a power consumption monitoring unit 10 for analyzing data and controlling the use or disabling of a USB peripheral device 104 . Wherein, the power consumption monitoring unit 10 is provided with a control pin 102 . The power consumption monitoring unit 10 is used to monitor the status data of the USB peripheral device 104 in real time, and control the deactivation or use of the USB peripheral device 104 through the control pin 102 based on the status data.
需要说明的是,本实施例中的USB外设设备104为一种通过USB接口与无线模组100连接的外设设备,USB外设设备104可以为音频设备,也可以为照相设备,USB外设设备104的形式本实施例不做限定,可根据实际需要进行设定。It should be noted that the USB peripheral device 104 in this embodiment is a peripheral device connected to the wireless module 100 through a USB interface. The USB peripheral device 104 can be an audio device or a camera device. The form of the device 104 is not limited in this embodiment, and can be set according to actual needs.
在某些实施方案中,本公开通过上述的无线模组100,基于功耗监测单元10上的控制管脚102,实现了USB外设设备104的使用或停用,不完全依赖于USB通信协议,能够进一步降低无线模组100的功耗,延长了无线模组100的使用寿命。In some implementations, the present disclosure realizes the use or deactivation of the USB peripheral device 104 based on the control pin 102 on the power consumption monitoring unit 10 through the above-mentioned wireless module 100, and does not completely depend on the USB communication protocol , can further reduce the power consumption of the wireless module 100, and prolong the service life of the wireless module 100.
在某些实施方案中,功耗监测单元10包括通信连接的功耗控制单元和数据监测单元103,功耗控制单元上设有控制管脚102,功耗控制单元经控制管脚102与USB外设设备104连接,数据监测单元103还与USB外设设备104连接。其中,数据监测单元103用于实时监测USB外设设备104的状态数据,功耗控制单元用于根据状态数据,经控制管脚102控制USB外设设备104的停用或使用。In some implementations, the power consumption monitoring unit 10 includes a power consumption control unit and a data monitoring unit 103 connected by communication, the power consumption control unit is provided with a control pin 102, and the power consumption control unit communicates with the USB external Assuming that the device 104 is connected, the data monitoring unit 103 is also connected with the USB peripheral device 104 . Wherein, the data monitoring unit 103 is used to monitor the status data of the USB peripheral device 104 in real time, and the power consumption control unit is used to control the deactivation or use of the USB peripheral device 104 through the control pin 102 according to the status data.
在某些实施方案中,监测USB外设设备104的状态数据指:监测与USB外设设备104连接的USB线上的状态数据,其中,状态数据为工作状态数据。在某些实施方案中,当数据监测单元103监测到工作状态数据时,则数据监测单元103与功耗控制单元进行交互,此时功耗控制单元判断USB外设设备104处于工作状态,则功耗控制单元经控制引脚控制USB外设设备104继续使用。In some embodiments, monitoring the status data of the USB peripheral device 104 refers to: monitoring the status data of the USB line connected to the USB peripheral device 104, wherein the status data is working status data. In some embodiments, when the data monitoring unit 103 monitors the working state data, the data monitoring unit 103 interacts with the power consumption control unit, and the power consumption control unit judges that the USB peripheral device 104 is in the working state, and then the power consumption The consumption control unit controls the USB peripheral device 104 to continue to use through the control pin.
在某些实施方案中,功耗控制单元还配置为:当预设时间内未接 收到数据监测单元103发送的状态数据时,则经控制管脚102控制停用USB外设设备104。其中,预设时间可根据实际需要进行设置,本实施例不做具体地限定。在某些实施方案中,当预设时间内数据监测单元103未检测到状态数据时,则数据监测单元103与功耗控制单元进行交互,此时,功耗控制单元判断此USB外设设备104处于空闲状态,则功耗控制单元经控制引脚控制USB外设设备104停用。其中,空闲状态即可以指USB外设设备104与无线模组100连接时无数据交互,也可以指USB外设设备104已不再与无线模组100连接。In some embodiments, 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 . Wherein, the preset time may be set according to actual needs, which is not specifically limited in this embodiment. In some implementations, when the data monitoring unit 103 does not detect 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 judges that the USB peripheral device 104 In the idle state, the power consumption control unit controls the USB peripheral device 104 to disable through the control pin. Wherein, the idle state can mean that there is no data interaction when the USB peripheral device 104 is connected to the wireless module 100 , or it can mean that the USB peripheral device 104 is no longer connected to the wireless module 100 .
需要说明的是,功耗控制单元与数据监测单元103之间可通过硬线的方式连接,在某些实施方案中,功耗控制单元与数据监测单元103之间的通信方式包括但不限于RS485、RS232等,通信方式可根据实际需要进行设定,本实施例不做限定。It should be noted that the power consumption control unit and the data monitoring unit 103 can be connected by a hard wire. In some embodiments, the communication mode between the power consumption control unit and the data monitoring unit 103 includes but is not limited to RS485 , RS232, etc., the communication mode can be set according to actual needs, which is not limited in this embodiment.
本实施例通过将功耗监测单元10进行模块化,以将功耗监测单元10划分为功耗控制单元和数据监测单元103,以便于在实现相关功能的基础上,当无线模组100故障时,能够迅速的定位到故障点,减小影响无线模组100工作的时间,提高工作效率。In this embodiment, the power consumption monitoring unit 10 is modularized to divide the power consumption monitoring unit 10 into a power consumption control unit and a data monitoring unit 103, so that on the basis of realizing related functions, when the wireless module 100 fails , can quickly locate the fault point, reduce the time that affects the work of the wireless module 100, and improve work efficiency.
在某些实施方案中,除了通过无线模组100实时监测USB外部设备的状态数据以经控制管脚102控制USB外部设备的停用或使用,还可以通过外部干预以USB外部设备的停用或使用的控制。In some implementations, in addition to monitoring the status data of the USB external device in real time through the wireless module 100 to control the deactivation or use of the USB external device through the control pin 102, the deactivation or use of the USB external device can also be performed through external intervention. used controls.
在某些实施方案中,参考图2,功耗控制单元还配置为:接收控制指令,并基于控制指令,经控制管脚102控制USB外设设备104的停用或使用;其中控制指令包括唤醒指令和睡眠指令。In some embodiments, referring to FIG. 2, the power consumption control unit is further configured to: receive a control command, and based on the control command, control the disabling or using of the USB peripheral device 104 through the control pin 102; wherein the control command includes waking up command and sleep command.
需要说明的是,控制指令由设有无线模组100的设备内的控制模块20发送,控制模块20为设备的主控中心,负责数据的处理以及控制指令的下发。其中,控制模块20与功耗监测单元10可通过硬线的方式连接,在某些实施方案中,控制模块20与功耗监测单元10之间(即 控制模块20与功耗控制单元之间)的通信方式包括但不限于RS485、RS232等,具体的通信方式可根据实际需要进行设定,本实施例不做具体的限定。It should be noted that the control command is sent by the control module 20 in the device equipped with the wireless module 100, and the control module 20 is the main control center of the device, responsible for data processing and control command delivery. Wherein, the control module 20 and the power consumption monitoring unit 10 can be connected by a hard wire. In some embodiments, between the control module 20 and the power consumption monitoring unit 10 (that is, between the control module 20 and the power consumption control unit) The communication methods include but are not limited to RS485, RS232, etc. The specific communication methods can be set according to actual needs, and are not specifically limited in this embodiment.
在某些实施方案中,当控制模块20下发睡眠指令至功耗控制单元时,功耗控制单元根据接收到的睡眠指令,经控制管脚102控制USB外设设备104停用;当控制模块20下发唤醒指令至功耗控制单元时,功耗控制单元根据接收到的唤醒指令,经控制管脚102控制USB外设设备104开始使用。In some embodiments, when the control module 20 sends a sleep instruction to the power consumption control unit, the power consumption control unit controls the USB peripheral device 104 to disable through the control pin 102 according to the received sleep instruction; when the control module 20. When sending a wake-up instruction to the power consumption control unit, the power consumption control unit controls the USB peripheral device 104 to start using via the control pin 102 according to the received wake-up instruction.
在某些实施方案中,功耗控制单元和数据监测单元103所执行的为无线模组100内部对USB外设设备104的使用或停用控制,在功耗控制单元和数据监测单元103循环监测USB外设设备104的状态数据以经控制引脚控制USB外设设备104的使用或停用时,若功耗控制单元接收到控制模块20下发的控制指令,功耗控制单元优先处理控制指令,根据接收到的控制指令经控制引脚控制USB外设设备104停用或使用。In some embodiments, what the power consumption control unit and the data monitoring unit 103 execute is the use or deactivation control of the USB peripheral device 104 inside the wireless module 100, and the power consumption control unit and the data monitoring unit 103 cycle monitor When the status data of the USB peripheral device 104 is used to control the use or deactivation of the USB peripheral device 104 through the control pin, if the power consumption control unit receives the control command issued by the control module 20, the power consumption control unit will process the control command first. , controlling the USB peripheral device 104 to be disabled or used via the control pin according to the received control command.
在某些实施方案中,为了提高无线模组100的可拓展性,控制管脚102为多个,USB外设设备104也为多个,其中,每一USB外设设备104与一控制管脚102对应连接,即每一USB外设设备104经USB接口与一控制管脚102对应连接。本实施例中控制管脚102的数量为多个,即控制管脚102的数量大于1,其控制管脚102的具体数量本实施例不做具体的限定。其中,USB外设设备104的数量可根据实际需要控制管脚102的数量进行选择,即,USB外设设备104的数量既可以与控制管脚102的数量一致,USB外设设备104的数量也可以小于控制管脚102的数量。但无论是控制管脚102的数量与USB外设设备104的数量一致,还是控制管脚102的数量大于USB外设设备104的数量,USB外设设备104在连接时,每一USB外设设备104对应一个控制引脚连接,并且在控制USB外设设备104时,分别通过与USB 外设设备104相对应的控制引脚进行控制。In some embodiments, in order to improve the expandability of the wireless module 100, there are multiple control pins 102, and there are multiple USB peripheral devices 104, wherein each USB peripheral device 104 is associated with a control pin 102 are correspondingly connected, that is, each USB peripheral device 104 is correspondingly connected to a control pin 102 via the USB interface. In this embodiment, the number of control pins 102 is multiple, that is, the number of control pins 102 is greater than 1, and the specific number of control pins 102 is not specifically limited in this embodiment. Wherein, the quantity of USB peripheral equipment 104 can be selected according to the quantity of actual need control pin 102, that is, the quantity of USB peripheral equipment 104 both can be consistent with the quantity of control pin 102, and the quantity of USB peripheral equipment 104 can also be can be less than the number of control pins 102 . But no matter the quantity of control pin 102 is consistent with the quantity of USB peripheral equipment 104, or the quantity of control pin 102 is greater than the quantity of USB peripheral equipment 104, when USB peripheral equipment 104 is connected, every USB peripheral equipment 104 corresponds to a control pin connection, and when controlling the USB peripheral device 104, the control pins corresponding to the USB peripheral device 104 are respectively used for control.
在某些实施方案中,当无线模组100连接有多个USB外设设备104时,若功耗控制单元在预设时间内未接收到数据监测单元103发送的某一USB外设设备104的状态数据时,则功耗控制单元判断为此USB外设设备104处于空闲状态,且功耗控制单元根据USB外设设备104的地址,经与此USB外设设备104连接的控制管脚102控制此USB外设设备104停用。同样的,控制USB外设设备104使用的方法与上述一致。In some implementations, when multiple USB peripheral devices 104 are connected to the wireless module 100, if the power consumption control unit does not receive the data of a certain USB peripheral device 104 sent by the data monitoring unit 103 within a preset time state data, the power consumption control unit judges that the USB peripheral device 104 is in an idle state, and the power consumption control unit controls the USB peripheral device 104 via the control pin 102 connected to the USB peripheral device 104 according to the address of the USB peripheral device 104 This USB peripheral device 104 is disabled. Likewise, the method for controlling the use of the USB peripheral device 104 is consistent with the above.
本实施例中,功耗控制单元还配置为:基于数据监测单元103发送的状态数据,控制控制管脚102输出高电平信号或低电平信号,基于高电平信号或低电平信号控制USB外设设备104的停用或使用。In this embodiment, the power consumption control unit is further configured to: based on the state data sent by the data monitoring unit 103, control the control pin 102 to output a high-level signal or a low-level signal, and control the output based on the high-level signal or low-level signal Deactivation or use of USB peripheral device 104 .
在某些实施方案中,本实施例中既可以选择以高电平信号作为控制USB外设设备104停用的信号,也可以选择以低电平信号作为控制USB外设设备104停用的信号,同样的,USB外设设备104使用的信号控制既可以选择高电平信号,也可以选择低电平信号。但当USB外设设备104以高电平信号(不使能disable信号)作为停用信号控制时,则以低电平信号(使能enable信号)作为使用信号控制,反之亦然。具体的USB外设设备104的信号控制方式本实施例不做具体的限定,可根据实际需要进行选择。在某些实施方案中,功耗控制单元根据PWM波形以使得控制引脚输出高电平信号或低电平信号,从而使得控制引脚根据高电平信号或低电平信号控制USB外设设备104的使用或停用。In some embodiments, in this embodiment, either a high-level signal can be selected as a signal for controlling the USB peripheral device 104 to be disabled, or a low-level signal can be selected as a signal for controlling the USB peripheral device 104 to be disabled. , similarly, the signal control used by the USB peripheral device 104 can select either a high-level signal or a low-level signal. However, when the USB peripheral device 104 is controlled with a high level signal (disable disable signal) as a disable signal, it is controlled with a low level signal (enable enable signal) as an enable signal, and vice versa. The specific signal control mode of the USB peripheral device 104 is not specifically limited in this embodiment, and can be selected according to actual needs. In some embodiments, the power consumption control unit makes the control pin output a high-level signal or a low-level signal according to the PWM waveform, so that the control pin controls the USB peripheral device according to the high-level signal or the low-level signal 104 use or deactivation.
在某些实施方案中,数据监测单元103还配置为:采用多线程方式分别实时监测多个USB外设设备104的状态数据。In some embodiments, the data monitoring unit 103 is further configured to monitor the status data of multiple USB peripheral devices 104 in real time respectively in a multi-threaded manner.
本实施例中在当无线模组100连接多个USB外设设备104时,通过多线程方式分别实时监测多个USB外设设备104的状态数据,保证了状态数据监测的实时性。当然,本实施例也可采用单线程方式实时 监测多个USB外设设备104的状态数据,本实施例对USB外设设备104的状态数据的监测方式不做具体的限定。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-threaded manner, which ensures the real-time performance of status data monitoring. Of course, this embodiment can also use a single thread to monitor the status data of multiple USB peripheral devices 104 in real time, and this embodiment does not specifically limit the monitoring method of the status data of the USB peripheral devices 104 .
本实施例中,数据监测单元103还配置为:无线模组100上电后,初始化完成对应USB外设设备的功能。In this embodiment, the data monitoring unit 103 is further configured to: after the wireless module 100 is powered on, initialize and complete the function corresponding to the USB peripheral device.
在某些实施方案中,当数据监测单元103初始化完成对应USB外设设备的功能,指照相机拍照、播放音频等。在USB外设设备104工作过程中,数据监测单元103实时监测USB外设设备104的状态数据,从而完成USB外设设备104的使用或停用的控制。In some implementations, when the data monitoring unit 103 is initialized to complete the functions corresponding to the USB peripheral device, it refers to the camera taking pictures, playing audio, and so on. During the working process of the USB peripheral device 104 , the data monitoring unit 103 monitors the status data of the USB peripheral device 104 in real time, so as to complete the control of using or disabling the USB peripheral device 104 .
在某些实施方案中,通过在无线模组100上增加控制USB外设设备104的使用或停用的控制引脚,在USB外设设备104空闲时,经控制引脚控制USB外设设备104的停用,相较于现有技术在USB外设设备104空闲时根据USB通信协议以将USB外设设备104挂起,明显较低了功耗,延长了无线模组100的使用寿命。In some embodiments, by adding a control pin to control the use or deactivation of the USB peripheral device 104 on the wireless module 100, when the USB peripheral device 104 is idle, the USB peripheral device 104 is controlled via the control pin Compared with the prior art, when the USB peripheral device 104 is idle, the USB peripheral device 104 is suspended according to the USB communication protocol, which significantly reduces power consumption and prolongs the service life of the wireless module 100 .
下面作为一个示例并结合附图,介绍一下无线模组100控制USB外设设备104使用或停用的过程,参考图1和图2:As an example and with reference to the accompanying drawings, the following describes the process of the wireless module 100 controlling the use or deactivation of the USB peripheral device 104, referring to Figures 1 and 2:
(1)设备中的控制模块20下发控制指令时:功耗控制单元接收控制模块20下发的控制指令,当判断控制指令为睡眠控制指令时,由功耗控制单元根据睡眠指令控制相应的控制引脚输出高电平信号或低电平信号,与控制引脚对应的USB外设设备104停用;当判断控制指令为唤醒控制指令时,由功耗控制单元根据唤醒指令控制相应的控制引脚输出高电平信号或低电平信号,与控制引脚对应的USB外设设备104开始使用。(1) When the control module 20 in the device issues a control command: the power consumption control unit receives the control command issued by the control module 20, and when it is judged that the control command is a sleep control command, the power consumption control unit controls the corresponding The control pin outputs a high-level signal or a low-level signal, and the USB peripheral device 104 corresponding to the control pin is disabled; when it is judged that the control command is a wake-up control command, the power consumption control unit controls the corresponding control according to the wake-up command The pin outputs a high-level signal or a low-level signal, and the USB peripheral device 104 corresponding to the control pin starts to be used.
(2)由无线模组100内部循环监测控制时:数据监测单元103实时监测与USB外设设备104连接的USB线上的状态数据,当功耗控制单元在预设时间内未接收到USB外设设备104的状态数据时,则功耗控制单元判断此USB外设设备104处于空闲状态,由功耗控制单元控 制相应的控制引脚输出高电平信号或低电平信号,与控制引脚对应的USB外设设备104停用;当功耗控制单元实时接收到数据监测单元103发送的状态数据时,由功耗控制单元控制相应的控制引脚输出高电平信号或低电平信号,与控制引脚对应的USB外设设备104继续使用。(2) When controlled by the internal cycle monitoring of the wireless module 100: the data monitoring unit 103 monitors the status data on the USB line connected to the USB peripheral device 104 in real time, and when the power consumption control unit does not receive the USB external device within the preset time When the status data of the device 104 is set, the power consumption control unit judges that the USB peripheral device 104 is in an idle state, and the corresponding control pin is controlled by the power consumption control unit to output a high-level signal or a low-level signal, and the control pin The corresponding USB peripheral device 104 is disabled; 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, The USB peripheral device 104 corresponding to the control pin continues to be used.
在某些实施方案中,本公开实施例还提供无线模组100的功耗控制方法,其应用于如上所述的无线模组100,参考图3,本实施例提供的功耗控制方法,其包括:In some implementations, the embodiment of the present disclosure also provides a power consumption control method of the wireless module 100, which is applied to the wireless module 100 described above. Referring to FIG. 3, the power consumption control method provided in this embodiment, which include:
S1:实时接收USB外设设备104的状态数据;S1: receiving the status data of the USB peripheral device 104 in real time;
S2:基于状态数据,经控制管脚102控制USB外设设备104的停用或使用;以及S2: Based on the status data, control the deactivation or use of the USB peripheral device 104 via the control pin 102; and
S3:接收控制指令,并基于控制指令,经控制管脚102控制USB外设设备104的停用或使用;其中,控制指令包括唤醒指令和睡眠指令。S3: Receive a control command, and based on the control command, control the deactivation or use of the USB peripheral device 104 through the control pin 102; wherein, the control command includes a wake-up command and a sleep command.
在某些实施方案中,S1步骤由无线模组100中的功耗控制单元执行,状态数据由无线模组100中的数据监测单元103发送至功耗控制单元中。状态数据为USB外设设备104的工作状态数据。In some embodiments, 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 working status data of the USB peripheral device 104 .
在某些实施方案中,S2步骤由无线模组100中的功耗控制单元执行。In some embodiments, step S2 is performed by the power consumption control unit in the wireless module 100 .
在某些实施方案中,本实施例通过上述的无线模组100的功耗控制方法,基于功耗监测单元10上的控制管脚102,实现了USB外设设备104的使用或停用,不完全依赖于USB通信协议,能够进一步降低无线模组100的功耗,延长了无线模组100的使用寿命。In some implementations, this embodiment implements the use or deactivation of the USB peripheral device 104 based on the control pin 102 on the power consumption monitoring unit 10 through the above-mentioned power consumption control method of the wireless module 100, without Fully relying on the USB communication protocol can further reduce the power consumption of the wireless module 100 and prolong the service life of the wireless module 100 .
在某些实施方案中,S2步骤中基于状态数据,经控制管脚102控制USB外设设备104的停用或使用,其包括:In some embodiments, based on the state data in step S2, the USB peripheral device 104 is controlled to be disabled or used via the control pin 102, which includes:
当接收到USB外设设备的状态数据时,此时判断USB外设设备 104处于工作状态,则经控制引脚控制USB外设设备104继续使用;当预设时间内未接收到状态数据时,此时判断此USB外设设备104处于空闲状态,则经控制引脚控制USB外设设备104停用。When receiving the status data of the USB peripheral device, it is judged that the USB peripheral device 104 is in the working state, and then the USB peripheral device 104 is controlled to continue to use through the control pin; when the status data is not received within the preset time, At this time, it is judged that the USB peripheral device 104 is in an idle state, and then the USB peripheral device 104 is controlled to be disabled via the control pin.
在某些实施方案中,S2步骤中经控制管脚102控制USB外设设备104的停用或使用,其包括:In some implementations, in step S2, the disabling or using of the USB peripheral device 104 is controlled via the control pin 102, which includes:
基于状态数据,控制控制管脚102输出高电平信号或低电平信号,基于高电平信号或低电平信号控制USB外设设备104的停用或使用。Based on the status data, the control pin 102 is controlled to output a high-level signal or a low-level signal, and based on the high-level signal or the low-level signal, the USB peripheral device 104 is controlled to be disabled or used.
在某些实施方案中,S1步骤由无线模组100中的功耗控制单元执行,而控制指令由控制模块20下发,其为设有无线模组100的设备的主控中心,能够通过外部干预以USB外部设备的停用或使用的控制。In some embodiments, the 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 the main control center of the device equipped with the wireless module 100, and can pass external Intervention with the control of the deactivation or use of USB external devices.
在某些实施方案中,当接收到的控制指令为睡眠指令时,则经控制管脚102控制USB外设设备104停用;当接收到的控制指令为唤醒指令时,则经控制管脚102控制USB外设设备104开始使用。In some implementations, when the received control command is a sleep command, the control pin 102 controls the USB peripheral device 104 to disable; when the received control command is a wake-up command, the control pin 102 Control the USB peripheral device 104 to start using.
在某些实施方案中,S3步骤与S1步骤和S2步骤并无明显的先后顺序。In some embodiments, step S3 is not in obvious order with steps S1 and S2.
在某些实施方案中,通过上述的无线模组100的功耗控制方法,在USB外设设备104空闲时,经控制引脚控制USB外设设备104的停用,相较于现有技术在USB外设设备104空闲时根据USB通信协议以将USB外设设备104挂起,明显较低了功耗,延长了无线模组100的使用寿命。In some embodiments, through the above-mentioned power consumption control method of the wireless module 100, when the USB peripheral device 104 is idle, the deactivation of the USB peripheral device 104 is controlled through the control pin, compared with the prior art When the USB peripheral device 104 is idle, the USB peripheral device 104 is suspended according to the USB communication protocol, which significantly reduces power consumption and prolongs the service life of the wireless module 100 .
在某些实施方案中,图4为本公开实施例提供的电子设备200的结构示意图,本实施例中的电子设备200为能够实现通信功能的无线模组100或包含无线模组100的终端设备,终端设备可以为移动终端和/或智能设备等,移动终端可以为手机、平板电脑、笔记本电脑等中的至少一种,智能设备可以为智能手表、智能冰箱、智能音箱、智能 洗衣机、智能电视机等中的至少一种,无线模组100可以为2G通信模组、3G通信模组、4G通信模组、5G通信模组、NB-LOT通信模组等中任意一种,电子设备200包括处理器20、通信接口30、存储器40和通信总线50,其中,处理器20、通信接口30、存储器40通过通信总线50完成相互间的通信。In some implementations, FIG. 4 is a schematic structural diagram of an electronic device 200 provided by an embodiment of the present disclosure. The electronic device 200 in this embodiment is a wireless module 100 capable of realizing communication functions or a terminal device including the wireless module 100 , the terminal device can be a mobile terminal and/or a smart device, etc., the mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop, etc., and the smart device can be a smart watch, a smart refrigerator, a smart speaker, a smart washing machine, a smart TV The wireless module 100 can be any one of the 2G communication module, 3G communication module, 4G communication module, 5G communication module, NB-LOT communication module, etc. The electronic device 200 includes The processor 20 , the communication interface 30 , the memory 40 and the communication bus 50 , wherein the processor 20 , the communication interface 30 and the memory 40 complete mutual communication through the communication bus 50 .
存储器40,配置为存放计算机程序; memory 40 configured to store computer programs;
在某些实施方案中,处理器20,配置为执行存储器40上所存放的程序时,实现本公开例提供的无线模组100的功耗控制方法,其包括:In some embodiments, when the processor 20 is configured to execute the program stored in the memory 40, it implements the power consumption control method of the wireless module 100 provided in the present disclosure, which includes:
实时接收USB外设设备104的状态数据;以及receiving the status data of the USB peripheral device 104 in real time; and
基于状态数据,经控制管脚102控制USB外设设备104的停用或使用。Based on the status data, the disabling or enabling of the USB peripheral device 104 is controlled via the control pin 102 .
在某些实施方案中,所述方法还包括:In some embodiments, the method also includes:
接收控制指令,并基于控制指令,经控制管脚102控制USB外设设备104的停用或使用;其中,控制指令包括唤醒指令和睡眠指令。Receive a control command, and based on the control command, control the deactivation or use of the USB peripheral device 104 through the control pin 102; wherein, the control command includes a wake-up command and a sleep command.
在某些实施方案中,基于状态数据,经控制管脚102控制USB外设设备104的停用或使用,包括:In some embodiments, the disabling or enabling of the USB peripheral device 104 is controlled via the control pin 102 based on status data, including:
当接收到USB外设设备104的状态数据时,此时判断USB外设设备104处于工作状态,则经控制引脚控制USB外设设备104继续使用;当预设时间内未接收到状态数据时,此时判断此USB外设设备104处于空闲状态,则经控制引脚控制USB外设设备104停用。When receiving the status data of the USB peripheral device 104, it is judged that the USB peripheral device 104 is in the working state, and then the USB peripheral device 104 is controlled to continue to use through the control pin; when the status data is not received within the preset time At this time, it is judged that the USB peripheral device 104 is in an idle state, and then the USB peripheral device 104 is controlled to be disabled through the control pin.
在某些实施方案中,经控制管脚102控制USB外设设备104的停用或使用,包括:In some embodiments, the disabling or enabling of the USB peripheral device 104 is controlled via the control pin 102, including:
基于状态数据,控制控制管脚102输出高电平信号或低电平信号,基于高电平信号或低电平信号控制USB外设设备104的停用或使用。Based on the status data, the control pin 102 is controlled to output a high-level signal or a low-level signal, and based on the high-level signal or the low-level signal, the USB peripheral device 104 is controlled to be disabled or used.
本公开实施例还提供了存储介质(计算机可读存储介质)。这里的存储介质存储有一个或者多个程序。其中,存储介质可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;存储器还可以包括上述种类的存储器的组合。The embodiment of the present disclosure also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. Wherein, the storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state disk; the memory may also include the above-mentioned types of memory combination.
当存储介质中一个或者多个程序可被一个或者多个处理器执行,以实现上述在设备侧执行的设备的功耗控制方法的步骤。When one or more programs in the storage medium can be executed by one or more processors, the steps of the above method for controlling power consumption of a device executed on the device side are realized.
所述处理器用于执行存储器中存储的控制程序,以实现以下在设备侧执行的设备的功耗控制方法的步骤。The processor is used to execute the control program stored in the memory, so as to realize the following steps of the method for controlling the power consumption of the device executed on the device side.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementation should not be considered beyond the scope of the present disclosure.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、电路、物品 或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、电路、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、电路、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, circuit, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of, or also elements inherent in, such a process, circuit, article, or device. Without further limitations, an element defined by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, circuit, article or device comprising said element.
以上所述的具体实施方式,对本公开的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本公开的具体实施方式而已,并不用于限定本公开的保护范围,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The specific implementations described above further describe the purpose, technical solutions and beneficial effects of the present disclosure in detail. It should be understood that the above descriptions are only specific implementations of the present disclosure and are not intended to limit the scope of the present disclosure Protection scope, within the spirit and principles of the present disclosure, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present disclosure.
以上所述的具体实施方式,对本公开的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本公开的具体实施方式而已,并不用于限定本公开的保护范围,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The specific implementations described above further describe the purpose, technical solutions and beneficial effects of the present disclosure in detail. It should be understood that the above descriptions are only specific implementations of the present disclosure and are not intended to limit the scope of the present disclosure Protection scope, within the spirit and principles of the present disclosure, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present disclosure.

Claims (10)

  1. 无线模组,其包括:Wireless module, which includes:
    功耗监测模块,所述功耗监测模块上设有控制管脚,所述控制管脚与USB外设设备连接,所述功耗监测模块配置为实时监测所述USB外设设备的状态数据,并基于所述状态数据,经所述控制管脚控制所述USB外设设备的停用或使用。A power consumption monitoring module, the power consumption monitoring module is provided with a control pin, the control pin is connected to a USB peripheral device, and the power consumption monitoring module is configured to monitor the state data of the USB peripheral device in real time, And based on the state data, control the disabling or using of the USB peripheral device through the control pin.
  2. 如权利要求1所述的无线模组,其中,所述功耗监测模块包括通信连接的功耗控制单元和数据监测单元,其中:The wireless module according to claim 1, wherein the power consumption monitoring module includes a communication-connected power consumption control unit and a data monitoring unit, wherein:
    数据监测单元与所述USB外设设备连接,配置为实时监测所述USB外设设备的所述状态数据;The data monitoring unit is connected to the USB peripheral device and configured to monitor the status data of the USB peripheral device in real time;
    所述功耗控制单元上设有所述控制管脚,配置为根据所述状态数据,经所述控制管脚控制所述USB外设设备的停用或使用。The power consumption control unit is provided with the control pin configured to control the deactivation or use of the USB peripheral device through the control pin according to the state data.
  3. 如权利要求1或2所述的无线模组,其中,所述功耗控制单元还配置为:The wireless module according to claim 1 or 2, wherein the power consumption control unit is further configured to:
    当预设时间内未接收到所述数据监测单元发送的所述状态数据时,则经所述控制管脚控制停用所述USB外设设备。When the status data sent by the data monitoring unit is not received within a preset time, the USB peripheral device is controlled to be disabled through the control pin.
  4. 根据权利要求2或3所述的无线模组,其中,所述功耗控制单元还配置为:The wireless module according to claim 2 or 3, wherein the power consumption control unit is further configured as:
    接收控制指令,并基于所述控制指令,经所述控制管脚控制所述USB外设设备的停用或使用;以及receiving a control command, and based on the control command, controlling the deactivation or use of the USB peripheral device via the control pin; and
    所述控制指令包括唤醒指令和睡眠指令。The control instructions include wake-up instructions and sleep instructions.
  5. 如权利要求2至4任一权利要求所述的无线模组,其中,所述功耗控制单元还配置为:The wireless module according to any one of claims 2 to 4, wherein the power consumption control unit is further configured to:
    基于所述数据监测单元发送的所述状态数据,控制所述控制管脚输出高电平信号或低电平信号,基于所述高电平信号或所述低电平信号控制USB外设设备的停用或使用。Based on the state data sent by the data monitoring unit, control the control pin to output a high-level signal or a low-level signal, and control the USB peripheral device based on the high-level signal or the low-level signal deactivate or use.
  6. 如权利要求1至5任一权利要求所述的无线模组,其中,所述控制管脚为多个,所述USB外设设备为多个,其中,每一所述USB外设设备与一所述控制管脚对应连接。The wireless module according to any one of claims 1 to 5, wherein there are multiple control pins and multiple USB peripheral devices, wherein each of the USB peripheral devices is connected to a The control pins are correspondingly connected.
  7. 如权利要求2至6中任一权利要求所述的无线模组,其中,所述数据监测单元还配置为:The wireless module according to any one of claims 2 to 6, wherein the data monitoring unit is further configured to:
    采用多线程方式分别实时监测多个所述USB外设设备的所述状态数据。The status data of multiple USB peripheral devices are respectively monitored in real time in a multi-thread manner.
  8. 无线模组的功耗控制方法,所述方法应用于如权利要求1至7中任一权利要求所述的无线模组,其包括:A method for controlling power consumption of a wireless module, said method being applied to the wireless module according to any one of claims 1 to 7, comprising:
    实时接收USB外设设备的状态数据;以及receiving status data of USB peripheral devices in real time; and
    基于所述状态数据,经控制管脚控制所述USB外设设备的停用或使用。Based on the status data, disabling or enabling of the USB peripheral device is controlled via a control pin.
  9. 如权利要求8所述的功耗控制方法,其中,所述功耗控制方法还包括:The power consumption control method according to claim 8, wherein the power consumption control method further comprises:
    接收控制指令,并基于所述控制指令,经所述控制管脚控制所述USB外设设备的停用或使用;所述控制指令包括唤醒指令和睡眠指令。receiving a control instruction, and based on the control instruction, controlling the deactivation or use of the USB peripheral device through the control pin; the control instruction includes a wake-up instruction and a sleep instruction.
  10. 电子设备,其包括:处理器和存储器,所述处理器配置为执行所述存储器中存储的功耗控制程序,以实现权利要求8或9中所述的功耗控制方法。An electronic device, comprising: a processor and a memory, the processor configured to execute a power consumption control program stored in the memory, so as to implement the power consumption control method in claim 8 or 9.
PCT/CN2022/099708 2021-11-30 2022-06-20 Wireless module, power consumption control method, and electronic device WO2023098033A1 (en)

Applications Claiming Priority (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
CN202111448103.0 2021-11-30

Publications (1)

Publication Number Publication Date
WO2023098033A1 true WO2023098033A1 (en) 2023-06-08

Family

ID=81049226

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (1)

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

Citations (5)

* 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
CN101790225A (en) * 2010-03-16 2010-07-28 华为终端有限公司 Power management method and device for on-line module
US20100275037A1 (en) * 2004-03-17 2010-10-28 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
CN104411003A (en) * 2014-11-06 2015-03-11 深圳市广和通无线通信软件有限公司 Dormancy wakeup control method and system of wireless communication equipment
CN114327020A (en) * 2021-11-30 2022-04-12 西安广和通无线通信有限公司 Wireless module, power consumption control method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7870408B2 (en) * 2007-12-12 2011-01-11 International Business Machines Corporation Universal serial bus wakeup circuit
CN109388241A (en) * 2018-09-29 2019-02-26 歌尔科技有限公司 Implementation method, device and the electronic equipment of VR equipment low-power consumption

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100275037A1 (en) * 2004-03-17 2010-10-28 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
CN101308399A (en) * 2008-06-23 2008-11-19 北京中星微电子有限公司 Universal serial bus equipment selective dormancy realization method and related device
CN101790225A (en) * 2010-03-16 2010-07-28 华为终端有限公司 Power management method and device for on-line module
CN104411003A (en) * 2014-11-06 2015-03-11 深圳市广和通无线通信软件有限公司 Dormancy wakeup control method and system of wireless communication equipment
CN114327020A (en) * 2021-11-30 2022-04-12 西安广和通无线通信有限公司 Wireless module, power consumption control method and electronic equipment

Also Published As

Publication number Publication date
CN114327020A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US10819638B2 (en) Reducing network latency during low power operation
US9710045B2 (en) Managing network wake-up commands
US8775838B2 (en) Limiting the number of unexpected wakeups in a computer system implementing a power-saving preemptive wakeup method from historical data
US8234510B2 (en) System and method for energy savings through emulation of wake on LAN in energy efficient ethernet
US10613900B2 (en) Multi-tenant monitoring
US9170632B2 (en) Providing wakeup logic to awaken an electronic device from a lower power mode
US10080193B1 (en) Power efficient wireless connectivity
US20150082063A1 (en) Baseboard management controller state transitions
US20110154475A1 (en) Modem and method for conserving power consumption of an electronic device
WO2014114194A1 (en) Method, device, and terminal for adjusting heartbeat cycle for application
WO2023098033A1 (en) Wireless module, power consumption control method, and electronic device
WO2012016463A1 (en) Method, apparatus and system for device management
US20100125726A1 (en) Thin client host wakeup method and thin client host
CN107425986A (en) A kind of method and device of POE power protection
US20170017289A1 (en) Power gated communication controller
CN111913669B (en) SSD power-down speed improving method and device, computer equipment and storage medium
CN104067597A (en) Network application proxy systems and methods
WO2019110005A1 (en) Smart power saving method for terminal, terminal, and device having memory function
TWI482009B (en) Server energy saving management system and method thereof
CN110928586B (en) APP background keep-alive method and device
WO2012126396A1 (en) Energy saving method for service board, master control board, service board, and access apparatus
US20160124485A1 (en) Computer system having an absence mode
CN113360344B (en) Server monitoring method, device, equipment and computer readable storage medium
US20110185199A1 (en) Embedded system and power saving method thereof
WO2021103893A1 (en) Wireless fidelity (wifi) chip control method and related device thereof

Legal Events

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

Ref document number: 22899853

Country of ref document: EP

Kind code of ref document: A1