CN111107614B - Terminal device control method and device and terminal device readable storage medium - Google Patents

Terminal device control method and device and terminal device readable storage medium Download PDF

Info

Publication number
CN111107614B
CN111107614B CN201811264384.2A CN201811264384A CN111107614B CN 111107614 B CN111107614 B CN 111107614B CN 201811264384 A CN201811264384 A CN 201811264384A CN 111107614 B CN111107614 B CN 111107614B
Authority
CN
China
Prior art keywords
terminal
hotspot
state information
protocol
hardware
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.)
Active
Application number
CN201811264384.2A
Other languages
Chinese (zh)
Other versions
CN111107614A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201811264384.2A priority Critical patent/CN111107614B/en
Priority to PCT/CN2019/113079 priority patent/WO2020083346A1/en
Publication of CN111107614A publication Critical patent/CN111107614A/en
Application granted granted Critical
Publication of CN111107614B publication Critical patent/CN111107614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a terminal equipment control method, which comprises the following steps: monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to a Wi-Fi wireless fidelity hotspot of a first terminal; calling a preset hardware configuration file of a first terminal, and determining a matching parameter value of a protocol transmitting power calibration parameter of the first terminal, wherein the matching parameter value is matched with the hardware state information, the request service state information and the flow condition information; and configuring the protocol transmission power calibration parameter to the corresponding matching parameter value so as to adjust the current of the Wi-Fi module of the first terminal. The invention also discloses a terminal equipment control device and a readable storage medium of the terminal equipment. The invention reduces the power consumption of the terminal equipment after the Wi-Fi hotspot is started.

Description

Terminal device control method and device and terminal device readable storage medium
Technical Field
The present invention relates to the field of terminal device communication technologies, and in particular, to a terminal device control method and apparatus, and a terminal device readable storage medium.
Background
Wi-Fi (Wireless Fidelity) hotspot is a technology for converting GPRS (general packet radio service) and 3G/4G signals received by terminal equipment such as a smart phone, a PAD (PAD computer) and the like into Wi-Fi signals to be sent out, and the terminal equipment has an AP (Access Point) function and can be used as the Wi-Fi hotspot to construct a Wi-Fi network and provide network services for other equipment. Only, after the terminal device starts the Wi-Fi hotspot function, power consumption is high, the terminal device runs more slowly, internal resources are occupied, and power consumption of the terminal device is high.
Disclosure of Invention
The invention mainly aims to provide a terminal device control method and device and a terminal device readable storage medium, and aims to solve the problem that in the prior art, power consumption is large after a Wi-Fi hotspot is opened by a terminal device.
In order to achieve the above object, the present invention provides a terminal device control method, including the steps of:
monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to a Wi-Fi wireless fidelity hotspot of a first terminal;
calling a preset hardware configuration file of a first terminal, and determining a matching parameter value of a protocol transmitting power calibration parameter of the first terminal, wherein the matching parameter value is matched with the hardware state information, the request service state information and the flow condition information;
and configuring the protocol transmission power calibration parameter to the corresponding matching parameter value so as to adjust the current of the Wi-Fi module of the first terminal.
Optionally, the protocol transmission power calibration parameter includes a protocol type parameter, a transmission power parameter, and a transmission level calibration parameter, and parameter values corresponding to the transmission power parameter and the transmission level calibration parameter are respectively multidimensional arrays.
Optionally, before the step of monitoring hardware state information, service request state information, and traffic condition information of a second terminal accessing to the Wi-Fi wifi hotspot of the first terminal, the method further includes:
when the mode selection operation of a Wi-Fi hotspot creator is received, displaying a preset data traffic mode selection interface so that a user can execute the mode selection operation based on the data traffic mode selection interface; wherein the Wi-Fi hotspot creator mode selection operation is performed by a user based on a preset Wi-Fi hotspot setting interface;
and when the mode selection operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
Optionally, when the mode selection operation is received, configuring the protocol transmission power calibration parameter according to the selected data traffic mode and the hardware index of the first terminal, and the creating the Wi-Fi hotspot includes:
when the mode selection operation is received, displaying a Wi-Fi hotspot creating interface containing the selected data traffic mode, so that a user can execute confirmation operation based on the Wi-Fi hotspot creating interface;
and when the confirmation operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
Optionally, after the step of configuring the protocol transmit power calibration parameter according to the selected data traffic mode and the hardware index of the first terminal when the mode selection operation is received, and creating the Wi-Fi hotspot, the method further includes:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring hardware state information of the first terminal and receiving state information of the second terminal;
and configuring the protocol transmitting power calibration parameter according to the selected data flow mode, the hardware state information of the first terminal and the receiving state information of the second terminal.
Optionally, before the step of monitoring hardware state information, service request state information, and traffic condition information of a second terminal accessing to the Wi-Fi wifi hotspot of the first terminal, the method further includes:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring the request rate and the receiving state information of the second terminal, and predicting the flow to be consumed;
and configuring the protocol transmitting power calibration parameter according to the request rate, the receiving state information and the flow to be consumed.
Optionally, after the step of configuring the protocol transmit power calibration parameter to the corresponding matching parameter value, the method further includes:
counting consumed flow corresponding to the second terminal;
and when the consumed flow reaches a preset threshold value, starting an alarm mode, controlling to disconnect the Wi-Fi hotspot connection of the second terminal, closing the Wi-Fi hotspot, and storing the current parameter value of the protocol transmitting power calibration parameter.
Optionally, after the step of closing the Wi-Fi hotspot, the method further includes:
and when the Wi-Fi hotspot resetting operation is received, replacing the current parameter value of the protocol transmitting power calibration parameter with a preset initial value.
Optionally, before the step of monitoring hardware state information, service request state information, and traffic condition information of a second terminal accessing to the Wi-Fi wifi hotspot of the first terminal, the method further includes:
and when the fact that a second terminal is accessed to the Wi-Fi hotspot is not detected within the preset time length, closing the Wi-Fi hotspot and outputting prompt information.
In addition, in order to achieve the above object, the present invention further provides a terminal device control apparatus, including:
the monitoring module is used for monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to the Wi-Fi wireless fidelity hotspot of the first terminal;
the processing module is used for calling a preset hardware configuration file of the first terminal and determining a matching parameter value of a protocol transmitting power calibration parameter of the first terminal, wherein the matching parameter value is matched with the hardware state information, the request service state information and the flow condition information;
and the configuration module is used for configuring the protocol transmitting power calibration parameter to the corresponding matching parameter value so as to adjust the current of the Wi-Fi module of the first terminal.
Further, to achieve the above object, the present invention also provides a terminal device readable storage medium having stored thereon a terminal device control program which, when executed by a processor, realizes the steps of the terminal device control method as described above.
According to the technical scheme, the hardware state information, the service request state information and the flow state information of the second terminal accessed to the Wi-Fi hotspot of the first terminal are monitored, the preset hardware configuration file is called, the matching parameter value of the protocol transmitting power calibration parameter matched with the hardware state information, the service request state information and the flow state information is determined, and the protocol transmitting power calibration parameter in the hardware configuration file is configured to be the corresponding matching parameter value to adjust the current of the Wi-Fi module of the first terminal, so that the current is prevented from being too high, and the power consumption of the Wi-Fi hotspot after being started is reduced.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a terminal device control method according to the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a terminal device control method according to the present invention;
fig. 4 is a flowchart illustrating a terminal device control method according to a third embodiment of the present invention;
fig. 5 is a functional block diagram of an embodiment of the terminal device control apparatus of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: the method comprises the steps of monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to a Wi-Fi hotspot of a first terminal, calling a preset hardware configuration file, determining matching parameter values of protocol transmitting power calibration parameters of the second terminal, which are matched with the hardware state information, the service request state information and the flow condition information, configuring the protocol transmitting power calibration parameters in the hardware configuration file into corresponding matching parameter values, and adjusting the current of a Wi-Fi module of the first terminal, so that the current is prevented from being too high, and the power consumption of the Wi-Fi hotspot after being started is reduced. By the technical scheme of the embodiment of the invention, the problem of large power consumption after the terminal equipment opens the Wi-Fi hotspot is solved.
The embodiment of the invention provides terminal equipment.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, the terminal device may include: a processor 1001, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not intended to be limiting of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a terminal device control program.
In the present invention, the terminal device calls a terminal device control program stored in the memory 1005 by the processor 1001, and performs the following operations:
monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to a Wi-Fi wireless fidelity hotspot of a first terminal;
calling a preset hardware configuration file of a first terminal, and determining a matching parameter value of a protocol transmitting power calibration parameter of the first terminal, wherein the matching parameter value is matched with the hardware state information, the request service state information and the flow condition information;
and configuring the protocol transmission power calibration parameter to the corresponding matching parameter value so as to adjust the current of the Wi-Fi module of the first terminal.
Further, the processor 1001 may call the terminal device control program stored in the memory 1005, and also perform the following operations:
when the mode selection operation of a Wi-Fi hotspot creator is received, displaying a preset data traffic mode selection interface so that a user can execute the mode selection operation based on the data traffic mode selection interface; wherein the Wi-Fi hotspot creator mode selection operation is performed by a user based on a preset Wi-Fi hotspot setting interface;
and when the mode selection operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
Further, the processor 1001 may call the terminal device control program stored in the memory 1005, and also perform the following operations:
when the mode selection operation is received, displaying a Wi-Fi hotspot creating interface containing the selected data traffic mode, so that a user can execute confirmation operation based on the Wi-Fi hotspot creating interface;
and when the confirmation operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
Further, the processor 1001 may call the terminal device control program stored in the memory 1005, and also perform the following operations:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring hardware state information of the first terminal and receiving state information of the second terminal;
and configuring the protocol transmitting power calibration parameter according to the selected data flow mode, the hardware state information of the first terminal and the receiving state information of the second terminal.
Further, the processor 1001 may call the terminal device control program stored in the memory 1005, and also perform the following operations:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring the request rate and the receiving state information of the second terminal, and predicting the flow to be consumed;
and configuring the protocol transmitting power calibration parameter according to the request rate, the receiving state information and the flow to be consumed.
Further, the processor 1001 may call the terminal device control program stored in the memory 1005, and also perform the following operations:
counting consumed flow corresponding to the second terminal;
and when the consumed flow reaches a preset threshold value, starting an alarm mode, controlling to disconnect the Wi-Fi hotspot connection of the second terminal, closing the Wi-Fi hotspot, and storing the current parameter value of the protocol transmitting power calibration parameter.
Further, the processor 1001 may call the terminal device control program stored in the memory 1005, and also perform the following operations:
and when the Wi-Fi hotspot resetting operation is received, replacing the current parameter value of the protocol transmitting power calibration parameter with a preset initial value.
Further, the processor 1001 may call the terminal device control program stored in the memory 1005, and also perform the following operations:
and when the fact that a second terminal is accessed to the Wi-Fi hotspot is not detected within the preset time length, closing the Wi-Fi hotspot and outputting prompt information.
According to the scheme, the hardware state information, the service request state information and the flow state information of the second terminal accessing the Wi-Fi hotspot of the first terminal are monitored, the preset hardware configuration file is called, the matching parameter value of the protocol transmitting power calibration parameter matched with the hardware state information, the service request state information and the flow state information is determined, and the protocol transmitting power calibration parameter in the hardware configuration file is configured to be the corresponding matching parameter value to adjust the current of the Wi-Fi module of the first terminal, so that the current is prevented from being too high, and the power consumption of the Wi-Fi hotspot after being started is reduced.
Based on the hardware structure, the embodiment of the terminal equipment control method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a terminal device control method according to a first embodiment of the present invention.
In a first embodiment, the terminal device control method includes the steps of:
step S10, monitoring hardware state information, service request state information and flow state information of a second terminal accessed to the Wi-Fi hotspot of the first terminal;
step S20, a preset hardware configuration file of the first terminal is called, and matching parameter values of protocol transmitting power calibration parameters of the first terminal, the hardware state information, the request service state information and the traffic condition information are determined;
step S30, configuring the protocol transmission power calibration parameter as the corresponding matching parameter value, so as to adjust the current of the first terminal Wi-Fi module.
Wireless Local Area Networks (WLANs) utilize Radio Frequency (RF) technology to replace a Local Area network formed by old twisted-pair copper wires with electromagnetic waves for communication connection in the air, so that the WLAN can utilize a simple access structure to allow users to penetrate through the WLAN, thereby achieving the effects of information portability and convenience in walking and descending, and utilizing the RF technology to transmit data, and realizing a clear network without network wires and distance limitations. In practical application, the access mode of the WLAN is very simple, taking home WLAN as an example, only one wireless access device is needed, one terminal device with wireless function, such as a computer, a smart phone, a PAD (tablet computer) and the like, and a terminal device without wireless function only needs to externally insert one wireless network card; the Wireless technology used in the Wireless technology is Wi-Fi (Wireless Fidelity), which is a technology that allows an electronic device to connect to a Wireless local area network, and usually uses 2.4G UHF (ultra High Frequency) or 5G SHF (Super High Frequency) ISM (Industrial Scientific Medical) radio Frequency band.
In brief, Wi-Fi is a technology that can connect terminal devices to each other wirelessly, and Wi-Fi communication must be completed by two modules cooperating together: (1) a router, also commonly referred to as a server, primarily functions to provide Wi-Fi signals; (2) hardware, which is also commonly referred to as a client, can represent both a terminal device and a hardware device, data senders of two communication parties, the essence of Wi-Fi communication is that a server is responsible for forwarding message data of the client, and the server is mainly a wireless access point, commonly referred to as an AP.
The AP is referred to as Access Point, and is generally translated into a "wireless Access Point" or "bridge," which is mainly used as a bridge between a wireless station and a wired lan in a Media Access Control (MAC) and, with the AP, the wireless station can be connected to the network quickly and easily. The devices acting as the AP can be fixed routers, mobile wireless routers and various terminal devices, and the Wi-Fi hot spot refers to a transmitting point of the device acting as the AP for providing Wi-Fi access to the internet for a user or a wireless network exit point capable of providing access to the internet.
At present, a Wi-Fi hotspot provided by terminal equipment such as a smart phone and a PAD (PAD application program) is a technology for converting a GPRS (general packet radio service), a 3G (third generation) or a 4G (fourth generation) signal received by the terminal equipment into a Wi-Fi signal to be sent out, and as long as the terminal equipment has a wireless AP (access point) function, the Wi-Fi hotspot can be used as the Wi-Fi hotspot to construct a Wi-Fi network and provide network services for other equipment. For example, when a user goes out and wants to connect a network with a notebook computer or connects a network with a mobile terminal device which can be used without a cellular network, the user needs to access the network to surf the internet, the method for accessing the network currently comprises a wired connection mode, a public hotspot wireless connection mode and a personal device hotspot wireless connection mode, the providers of the first two methods are third parties, the security and the convenience of the networks are not good, particularly, if the user does not surf the internet in the environment with the first two connection modes and surfs the internet urgently, the third connection mode is easy to realize, and meanwhile, if the user uses the personal terminal which surfs the internet through a cellular data mode to serve as a Wi-Fi hotspot to connect the personal terminal to the wireless network, the security and the convenience of the network are improved.
The relation between the current consumed by the Wi-Fi system transmitting power of the terminal equipment and the power is very large, under the same IEEE 802.11 protocol, the higher the transmitting power is, the larger the current is, the larger the power consumption is, and the current of the whole machine is also large; meanwhile, under the same transmitting power, the higher the rate is in the IEEE 802.11 protocol, the smaller the current is, the smaller the power consumption is, and the smaller the current of the whole machine is. However, so far, whatever circuit system is used by the terminal device, the transmission system and the transmission power of the Wi-Fi function are all in one-to-one correspondence and have uniqueness, and the power parameters and the power modes cannot be freely switched, so that the terminal device is maintained in a high-load working state when not consuming many resources, and the internal current of the terminal device is always in a high state, and the power consumption is high.
In order to reduce the power consumption of the terminal equipment after the Wi-Fi hotspot is opened, the terminal equipment control method is suitable for the terminal equipment in the embodiment, and by adopting the terminal equipment control method, after the Wi-Fi hotspot is opened, the protocol transmitting power calibration parameter in the hardware configuration file of the terminal equipment is configured, so that the current of a Wi-Fi module of the terminal equipment is adjusted, and the overhigh power consumption of the terminal equipment caused by overlarge current is avoided.
For convenience of description, the terminal device serving as the Wi-Fi hotspot, that is, the terminal device serving as the server, is referred to as a first terminal, and the terminal device accessing the Wi-Fi hotspot, that is, the terminal device serving as the client, is referred to as a second terminal.
In this embodiment, the power consumption is reduced by reducing the current after the first terminal opens the Wi-Fi hotspot, and the current contributing to opening the Wi-Fi hotspot is mainly a hardware entity transmitting module, and relates to a relevant configuration and relevant matching software part in a hardware configuration file, and is classified according to the category of software hardware, and divided into four modules, the modules formed as a whole are collectively called a Wi-Fi hotspot setting system, and the four modules include:
the first module is a hardware entity transmitting and receiving module, the hardware circuit part mainly adopts various hardware circuit schemes for realizing Wi-Fi functions in the market, the scheme is very mature, the scheme is not the focus point of the invention, and the scheme is only one of the modules essential for forming the whole large system, so the detailed description is omitted.
The second module is a Wi-Fi hardware configuration file module, the hardware configuration file module is one of the modules indispensable for forming the whole large system, and the hardware configuration files in various hardware circuit schemes for realizing Wi-Fi functions in the general market have different description modes regardless of situation or content size, but have the following main parameter contents: country code, RSSI adjusting parameter, non-signaling power calibration parameter, signaling calibration parameter, support protocol parameter, transmission grade calibration parameter and other parameters of driving hardware.
In the prior art, related parameters in a hardware configuration file are in one-to-one correspondence and are unique fixed values, which cannot be changed or modified at any time, and only designers can modify the related development software, but in this embodiment, protocol transmit power calibration parameters in the hardware configuration file are modifiable, where the protocol transmit power calibration parameters include but are not limited to protocol type parameters, transmit power parameters, and transmit level calibration parameters, the protocol type parameters, the transmit power parameters, and the transmit level calibration parameters are in one-to-one correspondence, and parameter values corresponding to the transmit power parameters and the transmit level calibration parameters are respectively a set of arrays. For example, parameter 1 is a protocol type, specifically a protocol type and a protocol rate, parameter 2 is a transmission power size, and is matched with parameter 1, and parameter 3 is a transmission level calibration, and its main function is to determine which level the circuit is configured at, and what amplification level the circuit is configured at, and the three parameters are in one-to-one correspondence, but parameter 2 is not a unique fixed value, but is a multidimensional array. Optionally, the sorting rule of the number array is an interval unit, for example, the unit corresponds to an actually output power value of 1dBm, the number of the head and the number of the tail of the number array are set by a designer according to product requirements, and the design form of the parameter 2 can be flexibly adjusted and optimized according to relevant judgment at any time, so that the purposes of reducing the internal emission current, releasing part of resources and reducing the power consumption of the first terminal are achieved; the parameter 3 is also a group of arrays, and is flexibly adjusted and optimized according to relevant judgment at any time, so that the purposes of reducing the internal emission current and releasing partial resources to reduce the power consumption of the first terminal are achieved.
In this embodiment, a hardware configuration file of a first terminal is configured in advance, where the configuration file includes four parts, power setting of a Wi-Fi chip in a WLAN, protocol mode setting of the Wi-Fi chip in the WLAN, received RSSI parameter setting of the Wi-Fi chip in the WLAN, and other settings of the Wi-Fi chip in the WLAN; the power setting of the Wi-Fi chip in the WLAN and the protocol mode setting of the Wi-Fi chip in the WLAN mainly adjust the transmitting system and the transmitting power of the Wi-Fi chip in the WLAN.
No matter any one platform, the emission system and the emission power of the Wi-Fi chip in the WLAN are in one-to-one correspondence, according to a related protocol, the more complicated the emission system of the Wi-Fi chip in the WLAN is, the higher the related protocol rate is, and the lower the emission power configuration is, so that other test indexes can meet related requirements; meanwhile, the transmitting power configured by the Wi-Fi chip transmitting system in the WLAN is invariable and unique. In the embodiment, the transmission power configured for the Wi-Fi chip transmission system in the WLAN is not unique, and optionally configured in an array mode, and the transmission level is adjusted according to the call requirement, and the corresponding parameter value is extracted and corresponds to the Wi-Fi chip transmission system configuration in the WLAN, so that the transmission power configuration in each corresponding transmission system can be selectable.
The third module is an evaluation and inspection module, which comprises two parts:
the hardware side index analysis system part is used for analyzing and judging hardware indexes of a first terminal and a second terminal, wherein the hardware indexes comprise Error rate (BER), Error Vector Magnitude (EVM), receiving sensitivity, throughput rate and the like, reference standard tables are related to index threshold related documents in 3GPP and IEEE 802.11 protocols and the like, the standard tables are stored in corresponding positions in advance, when the hardware side index analysis system part is started, the standard tables are directly called to be analyzed and judged, and meanwhile, analysis and judgment results are reported to a software upper layer.
The second is a software side bottom layer analysis system part, which mainly plays the role of analyzing and judging the related indexes reported by the second terminal and the request application types, wherein the indexes comprise receiving sensitivity, throughput rate, bit error rate, request state and the like, the request application types mainly comprise types needing network interaction, such as large data flow uploading, large data volume downloading, small data volume uploading and the like, the reference standard table is about index threshold related documents and the like in 3GPP and IEEE 802.11 protocols, the standard table is stored in a corresponding position in advance, the request application mainly analyzes what operation conditions are mainly carried out by equipment accessing the network, whether operations with higher resources need to be kept for a long time or not, and the related indexes are judged to be directly called for analysis and judgment when the bottom layer analysis system of the software side is started, the analysis and judgment of the application request is started by a priority table or a module written by research personnel according to the resource use condition, and the analysis and judgment results of the two parts are reported to the upper layer of the software.
And finally, combining the analysis and judgment results of the two systems to determine whether to start the fourth module to work.
The fourth module is a hotspot setting optimization module, the module is divided into two parts according to an implementation mode, an automatic setting part and a manual setting part, the manual setting part is divided into two combinations, the first combination is a parameter optimization setting combination, and the second combination is a Wi-Fi hotspot setting application program APP preinstalled in the first terminal. The automatic setting part is used for adjusting protocol transmitting power calibration parameters in a hardware configuration file in the second module in real time according to a judgment result of the third module after the Wi-Fi hotspot is opened, configuring a hardware circuit part in the first module and keeping the protocol transmitting power calibration parameters in the hardware configuration file; the manual setting part is responsible for manually configuring the Wi-Fi hotspots by setting the APP through the Wi-Fi hotspots preinstalled in the first terminal according to the actual situation that the users use the Wi-Fi hotspots, opening the Wi-Fi hotspots after configuration is completed, adjusting protocol transmitting power calibration parameters in a hardware configuration file in the second module according to the judgment result of the third module, configuring a hardware circuit part in the first module, and keeping the protocol transmitting power calibration parameters in the hardware configuration file.
The following are specific steps of the method for implementing terminal device control in this embodiment:
step S10, monitoring hardware state information, service request state information and flow state information of a second terminal accessed to the Wi-Fi hotspot of the first terminal;
after the second terminal accesses the Wi-Fi hotspot of the first terminal, in order to avoid overhigh power consumption of the terminal equipment, the first terminal monitors hardware state information, request service state information and flow state information of the second terminal. For example, monitoring hardware indicators of the second terminal, such as the reception sensitivity, the throughput rate, and the error rate, and obtaining a request application type corresponding to the second terminal according to service information included in an access request of the second terminal.
Step S20, a preset hardware configuration file of the first terminal is called, and a matching parameter value of the protocol transmission power calibration parameter matching the hardware state information, the request service state information, and the traffic condition information is determined.
And then, the first terminal calls a preset hardware configuration file of the first terminal according to the hardware state information, the service request state information and the flow condition information corresponding to the second terminal, and analyzes and determines a matching parameter value of a protocol transmitting power calibration parameter in the hardware configuration file, which is currently matched with the hardware state information, the service request state information and the flow condition information.
For example, when the second terminal changes due to the change of the receiving state, or requests a rate decrease and/or a flow rate increase of the used application, or the hardware environment conditions of the first terminal and the second terminal change, the transmission power configuration in the corresponding transmission system is optimized in the hardware configuration file, and the current corresponding matching parameter value of the protocol transmission power calibration parameter in the hardware configuration file is analyzed and determined.
Step S30, configuring the protocol transmission power calibration parameter as the corresponding matching parameter value, so as to adjust the current of the first terminal Wi-Fi module.
After determining the matching parameter value corresponding to the protocol transmission power calibration parameter in the hardware configuration file, the first terminal performs optimal configuration on the protocol transmission power calibration parameter according to the matching parameter value corresponding to the protocol transmission power calibration parameter, for example, parameter values of the protocol transmission power calibration parameter and the transmission level calibration parameter are reduced.
The protocol transmitting power calibration parameters are optimally configured, and a hardware circuit part in the first module is configured, so that the current of the Wi-Fi module of the first terminal is adjusted, and the phenomenon that the power consumption is large due to overhigh current is avoided.
Optionally, after the protocol transmit power calibration parameter in the hardware configuration file is optimally configured, the protocol transmit power calibration parameter in the hardware configuration file is kept as the optimally configured parameter value.
Compared with the prior art, the method of the embodiment has the following advantages:
1. the consumption speed of the flow is reduced, so that the flow and the time used by a Wi-Fi hotspot of a first terminal connected to the network can be controlled;
2. because the current is prevented from being overhigh, the heating of the battery is within a controllable range, the aging is reduced, the times of charging and discharging are reduced, the service life of the battery is prolonged, and the replacement speed of the first terminal is reduced;
3. during the Wi-Fi hot spot opening period, although the human body is radiated by too close distance, the Wi-Fi hot spot opening period is not similar to the previous hot spot mechanism, so that the radiation to the human body is reduced, and a user can use the Wi-Fi hot spot safely;
4. the application of the baseband part of the first terminal is reduced, so that the utilization of the first terminal resource is reduced, part of processing resources are released, and the running speed of the first terminal is improved;
5. the power consumption of a relevant chip in the mobile terminal equipment is reduced, the risk coefficient of long-time high-power emission of the chip is reduced, the probability of chip damage is further reduced, and the normal use of the relevant functions of the terminal equipment is ensured.
According to the scheme provided by the embodiment, the hardware state information, the service request state information and the flow state information of the second terminal accessing the Wi-Fi hotspot of the first terminal are monitored, the preset hardware configuration file is called, the matching parameter value of the protocol transmitting power calibration parameter matched with the hardware state information, the service request state information and the flow state information is determined, and the protocol transmitting power calibration parameter in the hardware configuration file is configured to be the corresponding matching parameter value to adjust the current of the Wi-Fi module of the first terminal, so that the current is prevented from being too high, and the power consumption of the Wi-Fi hotspot after being started is reduced.
Further, a second embodiment of the terminal device control method according to the present invention is provided based on the first embodiment, and in this embodiment, the configuration of the Wi-Fi hotspot is specifically described, which mainly includes two configuration modes, namely, an automatic setting mode and a manual setting mode, where the automatic setting mode adopts automatic adjustment of the relevant configuration of the Wi-Fi hotspot according to the hardware state and the overall power consumption of the first terminal; the manual setting is carried out on the basis of the user side, when the user configures the Wi-Fi hotspot parameters of the first terminal, the state of the Wi-Fi hotspot can be automatically selected and established according to the situation of using the Wi-Fi hotspot, and good man-machine interaction can be completed; the following description is made in order.
For the manual setting mode, as shown in fig. 3, before the step S10, the method further includes:
step S40, when receiving a Wi-Fi hotspot creator mode selection operation, displaying a preset data traffic mode selection interface for a user to execute the mode selection operation based on the data traffic mode selection interface; wherein the Wi-Fi hotspot creator mode selection operation is performed by a user based on a preset Wi-Fi hotspot setting interface;
step S50, when the mode selection operation is received, configuring the protocol transmit power calibration parameter according to the selected data traffic mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
In the method, Wi-Fi hotspot setting is performed through a user on the basis of a preset Wi-Fi hotspot setting interface. Optionally, the first terminal installs a corresponding Wi-Fi hotspot setting application program APP in advance, and after the APP is opened by a user, the user enters a first-level menu and displays a preset Wi-Fi hotspot setting interface. Two options are arranged on the preset Wi-Fi hotspot setting interface, the first option is a Wi-Fi hotspot creator mode, namely the first terminal is an AP, the second option is a Wi-Fi hotspot connector mode, namely the first terminal is connected with other Wi-Fi hotspots and does not create the Wi-Fi hotspots per se. When a user selects a first option, namely a Wi-Fi hotspot creator mode, and receives a Wi-Fi hotspot creator mode selection operation based on a preset Wi-Fi hotspot setting interface, switching to enter a second-level menu, displaying a preset data traffic mode selection interface, and displaying a plurality of data traffic modes for the user to select on the data traffic mode selection interface. For example, the data traffic mode includes a large data traffic mode for network usage (e.g., movie watching download, system software update, super-large network game, etc.), a medium data traffic mode for network usage (e.g., small APP update, short video downloading watch, medium network game, etc.), and a small data traffic mode for network usage (e.g., text chat software, web browsing, mini game, etc.).
Based on the data traffic mode selection interface, the user can select the corresponding data traffic mode according to the specific situation that the second terminal accessing the Wi-Fi hotspot uses the network. And when mode selection operation based on the data traffic mode selection interface executed by a user is received, configuring protocol transmitting power calibration parameters in a hardware configuration file according to the selected data traffic mode and hardware indexes of the first terminal, and creating a Wi-Fi hotspot. Optionally, a protocol type and a transmitting power corresponding to the minimum power consumption are selected to generate a Wi-Fi hotspot, so that other devices such as a second terminal and the like can access the Wi-Fi hotspot.
Optionally, the user may also input related upper layer information such as a name and a password of the Wi-Fi hotspot based on a preset Wi-Fi hotspot setting interface, and the first terminal configures the protocol transmission power calibration parameter in the hardware configuration file according to the selected manually set related parameters such as the data traffic pattern, the name and the password of the Wi-Fi hotspot and the hardware index of the first terminal, so as to create the Wi-Fi hotspot.
Optionally, the user may also set traffic limits and traffic reminders based on a preset Wi-Fi hotspot setting interface.
Optionally, the step S50 includes:
step a, when the mode selection operation is received, displaying a Wi-Fi hotspot creating interface containing the selected data traffic mode, so that a user can execute confirmation operation based on the Wi-Fi hotspot creating interface;
and b, when the confirmation operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
Optionally, in order to further improve the interaction experience of the user, when a mode selection operation based on the data traffic mode selection interface is received, a Wi-Fi hotspot creation interface containing the selected data traffic mode is displayed, so that the user can confirm whether to create a Wi-Fi hotspot based on the Wi-Fi hotspot creation interface. And if so, executing corresponding confirmation operation by the user based on the Wi-Fi hotspot creating interface, and configuring the protocol transmitting power calibration parameter in the hardware configuration file by the first terminal according to the selected data flow mode and the hardware index of the first terminal when receiving the confirmation operation executed by the user based on the Wi-Fi hotspot creating interface to create the Wi-Fi hotspot. On the contrary, if the user executes the corresponding cancellation operation based on the Wi-Fi hotspot creating interface, the first terminal ends the Wi-Fi hotspot creating operation when receiving the cancellation operation executed by the user based on the Wi-Fi hotspot creating interface.
For example, after receiving a mode selection operation based on a data traffic mode selection interface, switching to enter a third-level menu, displaying a Wi-Fi hotspot creation interface containing a selected data traffic mode, wherein the Wi-Fi hotspot creation interface is further provided with a Wi-Fi hotspot generation button besides displaying a data traffic mode selected by a user, when the user confirms creation of a Wi-Fi hotspot and clicks the button, and when receiving the clicking operation, the first terminal configures protocol emission power calibration parameters in a hardware configuration file according to relevant parameters (such as the data traffic mode, the Wi-Fi hotspot name, a password and the like) manually set by the user and hardware indexes of the first terminal, and creates the Wi-Fi hotspot. And then, keeping the protocol transmission power calibration parameter in the hardware configuration file as the currently configured parameter value.
Further, after the step S50, the method further includes:
step c, when detecting that the second terminal accesses the Wi-Fi hotspot, acquiring hardware state information of the first terminal and receiving state information of the second terminal;
and d, configuring the protocol transmitting power calibration parameter according to the selected data flow mode, the hardware state information of the first terminal and the receiving state information of the second terminal.
Optionally, after the first terminal creates the Wi-Fi hotspot, when it is detected that the second terminal accesses the Wi-Fi hotspot, acquiring current hardware state information of the first terminal and current receiving state information of the second terminal, and optimally configuring the protocol transmitting power calibration parameter in the hardware configuration file according to the data traffic mode selected by the user, the acquired hardware state information of the first terminal and the acquired receiving state information of the second terminal. Optionally, after the configuration is completed, the protocol transmit power calibration parameter in the hardware configuration file is maintained as the parameter value of the current optimized configuration.
For example, the first terminal matches and groups the protocol transmission power calibration parameters in the hardware configuration file in the data traffic mode according to the manually set related parameters, then judges the receiving state of the second terminal and the state of the first terminal, finally starts the transmission power configuration in the hardware configuration file in the optimized corresponding transmission mode, performs the optimized configuration on the protocol transmission power calibration parameters, and keeps the protocol transmission power calibration parameters in the hardware configuration file as the parameter values of the current optimized configuration.
It should be noted that, in the manual setting mode, in addition to the Wi-Fi hotspot setting APP mode described above, other modes may also be adopted, for example, the mode is directly entered into a UI (User Interface) set by the system, so as to complete the related functions of the manual setting mode, and is not limited to the Wi-Fi hotspot setting APP mode.
And for the automatic setting mode, opening an interface for setting the Wi-Fi hotspot in the interface setting of the first terminal, finishing setting relevant upper-layer information such as the name and the password of the Wi-Fi hotspot, and simultaneously setting flow limit and flow prompt. And the first terminal starts the transmission power configuration in the initial transmission mode in advance in the hardware configuration file according to the judgment of the transmission and reception state of the first terminal, configures the protocol transmission power calibration parameter in the hardware configuration file, and starts the Wi-Fi hotspot function of the first terminal.
Optionally, before the step S10, the method further includes:
step e, when detecting that the second terminal accesses the Wi-Fi hotspot, acquiring the request rate and the receiving state information of the second terminal, and predicting the flow to be consumed;
and f, configuring the protocol transmitting power calibration parameter according to the request rate, the receiving state information and the flow to be consumed.
In the method, after the first terminal starts the Wi-Fi hotspot, when the second terminal is detected to access the Wi-Fi hotspot, the request rate and the receiving state information of the second terminal are obtained, the flow to be consumed of the second terminal is predicted, and the protocol transmitting power calibration parameter in the configuration file is optimally configured according to the request rate, the receiving state information and the flow to be consumed of the second terminal. Optionally, after the configuration is completed, the protocol transmit power calibration parameter in the hardware configuration file is maintained as the parameter value of the current optimized configuration.
The automatic setting mode and the manual setting mode can complement each other, so that the Wi-Fi physical transmitting power of the first terminal is dynamically configured, the current of the first terminal during working can be dynamically adjusted, the resource of the first terminal is optimized and used, the probability of reducing the high-current working of the first terminal is achieved, and the effect of reducing the power consumption of the first terminal is achieved.
Further, before the step S10, the method further includes:
and g, when the fact that a second terminal is accessed to the Wi-Fi hotspot is not detected within the preset time length, closing the Wi-Fi hotspot, and outputting prompt information.
In order to further improve user experience, after the first terminal starts the Wi-Fi hotspot, in order to avoid resource waste, if no second terminal accesses the Wi-Fi hotspot, the Wi-Fi hotspot is closed. Specifically, a corresponding preset time duration is preset, and if the Wi-Fi hotspot of the first terminal accessed by the second terminal is not detected within the preset time duration, the Wi-Fi hotspot of the first terminal is closed. And further, outputting corresponding prompt information to remind the user that the Wi-Fi hotspot is closed.
According to the scheme provided by the embodiment, for Wi-Fi hotspot configuration, a user can select an automatic setting mode or a manual setting mode according to the requirement of the user, and then the Wi-Fi hotspot of the first terminal is configured according to the adopted setting mode, and the protocol transmitting power calibration parameter in the hardware configuration file is optimally configured, so that the effect of reducing the power consumption of the first terminal is achieved, and the interaction experience of the user is improved.
Further, a third embodiment of the terminal device control method according to the present invention is proposed based on the first embodiment or the second embodiment, and in this embodiment, as shown in fig. 4, after step S30, the method further includes:
step S60, counting the consumed flow corresponding to the second terminal;
and step S70, when the consumed flow reaches a preset threshold value, starting an alarm mode, controlling to disconnect the Wi-Fi hotspot connection of the second terminal, closing the Wi-Fi hotspot, and storing the current parameter value of the protocol transmitting power calibration parameter.
In this embodiment, in order to avoid unlimited consumption of the traffic by the second terminal, a preset threshold corresponding to the traffic is preset, and the preset threshold may be flexibly set according to an actual situation, which is not limited in this embodiment. And in the process that the second terminal accesses the Wi-Fi hotspot, the first terminal counts the consumed flow corresponding to the second terminal. And when the counted consumed flow reaches a preset threshold value, namely reaches a set flow limit, starting an alarm mode, controlling to disconnect the Wi-Fi hotspot connection of the second terminal, closing the Wi-Fi hotspot of the first terminal, and storing the current parameter value of the protocol transmitting power calibration parameter in the hardware configuration file of the first terminal.
Optionally, in addition to the above operations, the first terminal hides the Wi-Fi hotspot and sets the Wi-Fi hotspot invisible to the second terminal, so that the Wi-Fi hotspot is invisible.
Optionally, after the alarm mode is started, displaying corresponding alarm prompt information on a current display interface of the first terminal.
Optionally, in addition to starting the alarm mode when the counted consumed traffic reaches the preset threshold, when the first terminal is in a state of a lowest rate protocol and a maximum transmission power for a long time, the alarm mode is also started, the Wi-Fi hotspot connection of the second terminal is controlled to be disconnected, the Wi-Fi hotspot of the first terminal is closed, and a current parameter value of a protocol transmission power calibration parameter in a hardware configuration file of the first terminal is stored.
Further, after the step S70, the method further includes:
and h, replacing the current parameter value of the protocol transmitting power calibration parameter with a preset initial value when the Wi-Fi hotspot resetting operation is received.
Further, after the Wi-Fi hotspot of the first terminal is closed, if the user wants to access the Wi-Fi hotspot of the first terminal again, the user executes corresponding Wi-Fi hotspot resetting operation, and when the Wi-Fi hotspot resetting operation is received, the current parameter value of the protocol transmitting power calibration parameter in the hardware configuration file is replaced by a preset initial value. For example, for the automatic setting mode, resetting a Wi-Fi hotspot of the first terminal, or entering a system dialing interface, inputting a specially designed password to unlock and clear related data, and restoring the protocol transmitting power calibration parameter to a preset initial value; and for the manual setting mode, entering a Wi-Fi hotspot setting APP interface of the first terminal, unlocking and emptying related data, and restoring the protocol transmitting power calibration parameter to a preset initial value.
In the following, the terminal device control method of the present invention is described by taking an example in which a mobile phone a serves as a server to provide a Wi-Fi hotspot, and a mobile phone B serves as a client to access the Wi-Fi hotspot:
aiming at the situation of automatically setting Wi-Fi hotspot configuration, setting and setting the Wi-Fi hotspot of a mobile phone A, waiting for a mobile phone B to be connected with the Wi-Fi hotspot of the mobile phone A, starting to chat by using a network after the mobile phone B is successfully connected, starting a Wi-Fi hotspot performance optimization system by the mobile phone A, not needing to be fast according to the request rate of the mobile phone B, simultaneously having less flow of used application, simultaneously having the transmitting states of the two mobile phones meeting hardware indexes, having good receiving states of the two mobile phones, maintaining the received signals at about-25 dBm, always keeping the signal strength of the mobile phone B at a full state, monitoring that the hotspot parameters of the mobile phone A are in an 802.11B 11Mbps mode under an 802.11 protocol, having the power of 17dBm, analyzing and judging a conclusion according to corresponding optimization standards and indexes, needing to reduce the mode and reduce the power at the same time, the method has the advantages that the chip current in the mobile phone A is reduced, partial resources are released, the power consumption of the mobile phone A is reduced, the transmitting power configuration in the corresponding transmitting mode in the hardware configuration file is optimized, the hotspot parameter of the mobile phone A is changed into an 802.11b 11Mbps mode under an IEEE 802.11 protocol, the power is 10dBm, the protocol transmitting power calibration parameter optimized and configured in the hardware configuration file is kept, and meanwhile, the flow condition used by the connection equipment is counted.
When the mobile phone B stops chatting, large software starts to be downloaded, the flow of the used application rises at the moment, the relative position of the used application and the mobile phone A is kept consistent with the previous position, the mobile phone A monitors that the flow condition of the hotspot of the mobile phone B rises suddenly, the flow of the used application rises, the mobile phone A starts the transmitting power configuration in the corresponding transmitting system optimized in the hardware configuration file again at the moment, the hotspot parameter of the mobile phone A is changed into an 802.11g54Mbps mode under an IEEE 802.11 protocol, the power is 15dBm, the protocol transmitting power calibration parameter optimized and configured in the hardware configuration file is kept, and meanwhile, the flow condition used by the connection equipment is counted. After a period of time, the use flow of the mobile phone B is found to reach a threshold, the system software of the mobile phone A starts an alarm mode, the mobile phone B is forced to disconnect the Wi-Fi hotspot connection, and the Wi-Fi hotspot of the mobile phone B is hidden, so that the Wi-Fi hotspot is invisible.
If the user wants to continue downloading because the software of the mobile phone B is not downloaded, the user inputs a Wi-Fi hotspot unlocking code on a keyboard of the mobile phone A, the system automatically sets the Wi-Fi hotspot to be visible, the previous state that the Wi-Fi hotspot unlocking code is in an 802.11g54Mbps mode under an IEEE 802.11 protocol and the power is 15dBm is kept, the mobile phone B is re-accessed to the Wi-Fi hotspot of the mobile phone A, and the execution condition of the working flow of the Wi-Fi hotspot performance optimization system is as described above and is not repeated.
Aiming at the situation of manual setting of Wi-Fi hotspot configuration, a user opens a Wi-Fi hotspot configuration APP of a mobile phone A and starts to set Wi-Fi hotspots, as a mobile phone B starts to use chatting application, the user judges that too much traffic does not exist, the user self selects a hotspot creator mode-a network data traffic small mode, the mobile phone A starts to create hotspots after the selection is completed, the mobile phone B is connected with the hotspots created by the mobile phone A, the mobile phone A starts to optimize the transmitting power configuration in a corresponding transmitting mode in a hardware configuration file at the moment, the hotspot parameters are changed into an 802.11B 11Mbps mode under an IEEE 802.11 protocol, the power is 10dBm, the protocol transmitting power calibration parameters optimally configured in the hardware configuration file are kept, and meanwhile, the traffic situation used by the connection equipment is counted.
When a user downloads software by using a B mobile phone, the flow of the used application rises at the moment, the relative position of the used application and the A mobile phone is kept consistent with the previous relative position, the A mobile phone monitors that the flow of the B mobile phone application rises quickly, the user is prompted to change Wi-Fi hotspot configuration on an interface, the user switches a hotspot configuration mode, the mode is changed into a network use data flow large mode, a reconfiguration hotspot option is clicked, the A mobile phone starts the emission power configuration in a hardware configuration file to optimize the corresponding emission system, the hotspot parameters are changed into an 802.11g54Mbps mode under an 802.11 protocol, the power is 15dBm, the protocol emission power calibration parameters optimally configured in the hardware configuration file are kept, and meanwhile, the flow condition used by the connection equipment is counted. After a period of time, the use flow of the mobile phone B is found to reach a threshold, the system software of the mobile phone A starts an alarm mode, the mobile phone B is forced to disconnect the Wi-Fi hotspot connection, and the Wi-Fi hotspot of the mobile phone B is hidden, so that the Wi-Fi hotspot is invisible. Optionally, the Wi-Fi hotspot setting APP option is in a gray state at the same time.
If the software of the mobile phone B is not downloaded completely, the user wants to continue downloading, the user activates the Wi-Fi hotspot setting APP option on the mobile phone A, related data is unlocked and emptied, the Wi-Fi hotspot is set to be visible manually, the user needs to select the Wi-Fi hotspot setting APP again, after the selection is completed, the mobile phone A keeps the previous 802.11g54Mbps mode under the IEEE 802.11 protocol according to the hardware configuration file, the power is in the state of 15dBm, the mobile phone B accesses the Wi-Fi hotspot of the mobile phone A again, and the working flow execution condition of the Wi-Fi hotspot performance optimization system is as described above and is not repeated.
No matter an automatic setting mode or a manual setting mode is adopted, the final purpose is to reduce the current of the Wi-Fi module, so that the power consumption of the terminal equipment is reduced, the purpose of saving power is achieved, and the service life of the terminal equipment is prolonged.
According to the scheme provided by the embodiment, the consumed flow corresponding to the second terminal is counted, and when the consumed flow corresponding to the second terminal reaches the preset threshold value, the alarm mode is started, the Wi-Fi hotspot connection of the second terminal is controlled to be disconnected, and the Wi-Fi hotspot of the first terminal is closed, so that the phenomenon that the flow consumption is too large is avoided, and the user experience is further improved.
The invention further provides a terminal device control apparatus, as shown in fig. 5, fig. 5 is a schematic diagram of functional modules of an embodiment of the terminal device control apparatus of the invention.
In this embodiment, the terminal device control apparatus includes:
the monitoring module 10 is configured to monitor hardware state information, service request state information, and traffic condition information of a second terminal accessing a Wi-Fi wifi hotspot of the first terminal;
a processing module 20, configured to invoke a preset hardware configuration file of the first terminal, and determine a matching parameter value of a protocol transmission power calibration parameter of the first terminal, where the matching parameter value matches the hardware state information, the request service state information, and the traffic condition information;
a configuration module 30, configured to configure the protocol transmission power calibration parameter as the corresponding matching parameter value, so as to adjust the current of the first terminal Wi-Fi module.
Optionally, the terminal device control apparatus further includes:
the display module displays a preset data traffic mode selection interface when receiving Wi-Fi hotspot creator mode selection operation, so that a user can execute mode selection operation based on the data traffic mode selection interface; wherein the Wi-Fi hotspot creator mode selection operation is performed by a user based on a preset Wi-Fi hotspot setting interface;
and the setting module is used for configuring the protocol transmitting power calibration parameters according to the selected data flow mode and the hardware index of the first terminal and creating the Wi-Fi hotspot when receiving the mode selection operation.
Optionally, the setting module includes:
the display unit is used for displaying a Wi-Fi hotspot creating interface containing the selected data traffic mode when the mode selection operation is received, so that a user can execute confirmation operation based on the Wi-Fi hotspot creating interface;
and the setting unit is used for configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal and creating the Wi-Fi hotspot when the confirmation operation is received.
Optionally, the terminal device control apparatus further includes:
the first acquisition module is used for acquiring hardware state information of the first terminal and receiving state information of the second terminal when the fact that the second terminal is accessed to the Wi-Fi hotspot is detected;
the configuration module 30 is further configured to configure the protocol transmit power calibration parameter according to the selected data traffic pattern, and the hardware status information of the first terminal and the receiving status information of the second terminal.
Optionally, the terminal device control apparatus further includes:
the second acquisition module is used for acquiring the request rate and the receiving state information of the second terminal when detecting that the second terminal is accessed to the Wi-Fi hotspot, and predicting the flow to be consumed;
the configuration module 30 is further configured to configure the protocol transmission power calibration parameter according to the request rate, the receiving status information, and the traffic to be consumed.
Optionally, the terminal device control apparatus further includes:
the statistical module is used for counting the consumed flow corresponding to the second terminal;
the processing module 20 is further configured to start an alarm mode when the consumed traffic reaches a preset threshold, control to disconnect the Wi-Fi hotspot connection of the second terminal, close the Wi-Fi hotspot, and store the current parameter value of the protocol transmission power calibration parameter.
Optionally, the configuration module 30 is further configured to:
and when the Wi-Fi hotspot resetting operation is received, replacing the current parameter value of the protocol transmitting power calibration parameter with a preset initial value.
Optionally, the processing module 20 is further configured to:
and when the fact that a second terminal is accessed to the Wi-Fi hotspot is not detected within the preset time length, closing the Wi-Fi hotspot and outputting prompt information.
The specific implementation of the terminal device control apparatus of the present invention is substantially the same as the embodiments of the terminal device control method described above, and is not described herein again.
According to the scheme, the hardware state information, the service request state information and the flow state information of the second terminal accessing the Wi-Fi hotspot of the first terminal are monitored, the preset hardware configuration file is called, the matching parameter value of the protocol transmitting power calibration parameter matched with the hardware state information, the service request state information and the flow state information is determined, and the protocol transmitting power calibration parameter in the hardware configuration file is configured to be the corresponding matching parameter value to adjust the current of the Wi-Fi module of the first terminal, so that the current is prevented from being too high, and the power consumption of the Wi-Fi hotspot after being started is reduced.
The present invention also provides a terminal device readable storage medium having stored thereon a terminal device control program executable by one or more processors for:
monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to a Wi-Fi wireless fidelity hotspot of a first terminal;
calling a preset hardware configuration file of a first terminal, and determining a matching parameter value of a protocol transmitting power calibration parameter of the first terminal, wherein the matching parameter value is matched with the hardware state information, the request service state information and the flow condition information;
and configuring the protocol transmission power calibration parameter to the corresponding matching parameter value so as to adjust the current of the Wi-Fi module of the first terminal.
Further, the terminal device control program, when executed by the processor, further implements the following operations:
when the mode selection operation of a Wi-Fi hotspot creator is received, displaying a preset data traffic mode selection interface so that a user can execute the mode selection operation based on the data traffic mode selection interface; wherein the Wi-Fi hotspot creator mode selection operation is performed by a user based on a preset Wi-Fi hotspot setting interface;
and when the mode selection operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
Further, the terminal device control program, when executed by the processor, further implements the following operations:
when the mode selection operation is received, displaying a Wi-Fi hotspot creating interface containing the selected data traffic mode, so that a user can execute confirmation operation based on the Wi-Fi hotspot creating interface;
and when the confirmation operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
Further, the terminal device control program, when executed by the processor, further implements the following operations:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring hardware state information of the first terminal and receiving state information of the second terminal;
and configuring the protocol transmitting power calibration parameter according to the selected data flow mode, the hardware state information of the first terminal and the receiving state information of the second terminal.
Further, the terminal device control program, when executed by the processor, further implements the following operations:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring the request rate and the receiving state information of the second terminal, and predicting the flow to be consumed;
and configuring the protocol transmitting power calibration parameter according to the request rate, the receiving state information and the flow to be consumed.
Further, the terminal device control program, when executed by the processor, further implements the following operations:
counting consumed flow corresponding to the second terminal;
and when the consumed flow reaches a preset threshold value, starting an alarm mode, controlling to disconnect the Wi-Fi hotspot connection of the second terminal, closing the Wi-Fi hotspot, and storing the current parameter value of the protocol transmitting power calibration parameter.
Further, the terminal device control program, when executed by the processor, further implements the following operations:
and when the Wi-Fi hotspot resetting operation is received, replacing the current parameter value of the protocol transmitting power calibration parameter with a preset initial value.
Further, the terminal device control program, when executed by the processor, further implements the following operations:
and when the fact that a second terminal is accessed to the Wi-Fi hotspot is not detected within the preset time length, closing the Wi-Fi hotspot and outputting prompt information.
The specific implementation of the readable storage medium of the terminal device of the present invention is substantially the same as the embodiments of the control method of the terminal device, and is not described herein again.
According to the scheme, the hardware state information, the service request state information and the flow state information of the second terminal accessing the Wi-Fi hotspot of the first terminal are monitored, the preset hardware configuration file is called, the matching parameter value of the protocol transmitting power calibration parameter matched with the hardware state information, the service request state information and the flow state information is determined, and the protocol transmitting power calibration parameter in the hardware configuration file is configured to be the corresponding matching parameter value to adjust the current of the Wi-Fi module of the first terminal, so that the current is prevented from being too high, and the power consumption of the Wi-Fi hotspot after being started is reduced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of software products, which are stored in a storage medium (e.g., ROM/RAM, memory card) as described above, and include instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (11)

1. A terminal device control method is characterized by comprising the following steps:
monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to a Wi-Fi wireless fidelity hotspot of a first terminal;
calling a preset hardware configuration file of a first terminal, and determining a matching parameter value of a protocol transmitting power calibration parameter of the first terminal, wherein the matching parameter value is matched with the hardware state information, the request service state information and the flow condition information;
and configuring the protocol transmission power calibration parameter to the corresponding matching parameter value so as to adjust the current of the Wi-Fi module of the first terminal.
2. The terminal device control method according to claim 1, wherein the protocol transmission power calibration parameters include a protocol type parameter, a transmission power parameter, and a transmission class calibration parameter, and parameter values corresponding to the transmission power parameter and the transmission class calibration parameter are multidimensional arrays, respectively.
3. The method for controlling terminal equipment according to claim 1, wherein before the step of monitoring hardware status information, request service status information, and traffic status information of the second terminal accessing the Wi-Fi wifi hotspot of the first terminal, the method further comprises:
when the mode selection operation of a Wi-Fi hotspot creator is received, displaying a preset data traffic mode selection interface so that a user can execute the mode selection operation based on the data traffic mode selection interface; wherein the Wi-Fi hotspot creator mode selection operation is performed by a user based on a preset Wi-Fi hotspot setting interface;
and when the mode selection operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
4. The method as claimed in claim 3, wherein the step of configuring the protocol transmit power calibration parameters according to the selected data traffic pattern and the hardware index of the first terminal upon receiving the mode selection operation, and creating the Wi-Fi hotspot comprises:
when the mode selection operation is received, displaying a Wi-Fi hotspot creating interface containing the selected data traffic mode, so that a user can execute confirmation operation based on the Wi-Fi hotspot creating interface;
and when the confirmation operation is received, configuring the protocol transmitting power calibration parameter according to the selected data flow mode and the hardware index of the first terminal, and creating the Wi-Fi hotspot.
5. The method for controlling terminal equipment according to claim 3, wherein after the step of configuring the protocol transmit power calibration parameter according to the selected data traffic pattern and the hardware index of the first terminal and creating the Wi-Fi hotspot when receiving the mode selection operation, the method further comprises:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring hardware state information of the first terminal and receiving state information of the second terminal;
and configuring the protocol transmitting power calibration parameter according to the selected data flow mode, the hardware state information of the first terminal and the receiving state information of the second terminal.
6. The method for controlling terminal equipment according to claim 1, wherein before the step of monitoring hardware status information, request service status information, and traffic status information of the second terminal accessing the Wi-Fi wifi hotspot of the first terminal, the method further comprises:
when the fact that the second terminal accesses the Wi-Fi hotspot is detected, acquiring the request rate and the receiving state information of the second terminal, and predicting the flow to be consumed;
and configuring the protocol transmitting power calibration parameter according to the request rate, the receiving state information and the flow to be consumed.
7. The terminal device control method of claim 1, wherein the step of configuring the protocol transmit power calibration parameter to the corresponding matching parameter value further comprises:
counting consumed flow corresponding to the second terminal;
and when the consumed flow reaches a preset threshold value, starting an alarm mode, controlling to disconnect the Wi-Fi hotspot connection of the second terminal, closing the Wi-Fi hotspot, and storing the current parameter value of the protocol transmitting power calibration parameter.
8. The terminal device control method of claim 7, wherein after the step of turning off the Wi-Fi hotspot, further comprising:
and when the Wi-Fi hotspot resetting operation is received, replacing the current parameter value of the protocol transmitting power calibration parameter with a preset initial value.
9. The terminal device control method according to any one of claims 1 to 8, wherein the step of monitoring hardware status information, request service status information, and traffic status information of the second terminal accessing the Wi-Fi wifi hotspot of the first terminal is preceded by the step of:
and when the fact that a second terminal is accessed to the Wi-Fi hotspot is not detected within the preset time length, closing the Wi-Fi hotspot and outputting prompt information.
10. A terminal device control apparatus, characterized in that the terminal device control apparatus comprises:
the monitoring module is used for monitoring hardware state information, service request state information and flow condition information of a second terminal accessed to the Wi-Fi wireless fidelity hotspot of the first terminal;
the processing module is used for calling a preset hardware configuration file of the first terminal and determining a matching parameter value of a protocol transmitting power calibration parameter of the first terminal, wherein the matching parameter value is matched with the hardware state information, the request service state information and the flow condition information;
and the configuration module is used for configuring the protocol transmitting power calibration parameter to the corresponding matching parameter value so as to adjust the current of the Wi-Fi module of the first terminal.
11. A terminal device readable storage medium, characterized in that the terminal device readable storage medium has stored thereon a terminal device control program that, when executed by a processor, implements the steps of the terminal device control method according to any one of claims 1 to 9.
CN201811264384.2A 2018-10-26 2018-10-26 Terminal device control method and device and terminal device readable storage medium Active CN111107614B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811264384.2A CN111107614B (en) 2018-10-26 2018-10-26 Terminal device control method and device and terminal device readable storage medium
PCT/CN2019/113079 WO2020083346A1 (en) 2018-10-26 2019-10-24 Method and apparatus for controlling terminal device, and terminal device readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811264384.2A CN111107614B (en) 2018-10-26 2018-10-26 Terminal device control method and device and terminal device readable storage medium

Publications (2)

Publication Number Publication Date
CN111107614A CN111107614A (en) 2020-05-05
CN111107614B true CN111107614B (en) 2022-03-04

Family

ID=70330294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811264384.2A Active CN111107614B (en) 2018-10-26 2018-10-26 Terminal device control method and device and terminal device readable storage medium

Country Status (2)

Country Link
CN (1) CN111107614B (en)
WO (1) WO2020083346A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11570674B1 (en) 2021-04-01 2023-01-31 T-Mobile Usa, Inc. Dynamic management of telecommunication services at user equipment
CN114173401A (en) * 2021-11-30 2022-03-11 Oppo广东移动通信有限公司 Equipment control method and related product
CN114302399B (en) * 2021-12-15 2023-12-29 奇安信科技集团股份有限公司 Control method and device for WIFI sharing hot spot and storage medium
CN117271610B (en) * 2023-11-17 2024-03-12 深圳曼顿科技有限公司 Device state management method, device, terminal device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769900A (en) * 2011-05-05 2012-11-07 中兴通讯股份有限公司 Mobile terminal and method for realizing power consumption control of same
CN105392162A (en) * 2015-10-28 2016-03-09 广东欧珀移动通信有限公司 Method and device of WiFi power dynamic adjustment and mobile terminal
CN105830525A (en) * 2013-10-11 2016-08-03 索尼公司 Devices and methods for protocol mode switching
CN107580359A (en) * 2017-09-29 2018-01-12 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer-readable recording medium
CN108307359A (en) * 2016-08-29 2018-07-20 深圳市中兴微电子技术有限公司 A kind of method, terminal and system that hot spot is shared

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2341738B1 (en) * 2009-12-29 2017-03-29 Lg Electronics Inc. Mobile terminal with Wi-Fi module operating in a power saving mode and providing an AP function and a method for controlling said terminal
US10051516B2 (en) * 2015-01-15 2018-08-14 Qualcomm Incorporated Wi-Fi compatible channel access
CN107371219B (en) * 2016-05-13 2020-08-25 华为终端有限公司 WiFi configuration method, WiFi mobile terminal and WiFi equipment
WO2018096561A1 (en) * 2016-11-22 2018-05-31 Srinivas Gudipudi System and method for delivering wi-fi and internet of things (iot) based applications through an integrated service delivery platform
US10757735B2 (en) * 2017-03-02 2020-08-25 Cable Television Laboratories, Inc Systems and methods for Wi-Fi latency reduction in DOCSIS backhaul

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769900A (en) * 2011-05-05 2012-11-07 中兴通讯股份有限公司 Mobile terminal and method for realizing power consumption control of same
CN105830525A (en) * 2013-10-11 2016-08-03 索尼公司 Devices and methods for protocol mode switching
CN105392162A (en) * 2015-10-28 2016-03-09 广东欧珀移动通信有限公司 Method and device of WiFi power dynamic adjustment and mobile terminal
CN108307359A (en) * 2016-08-29 2018-07-20 深圳市中兴微电子技术有限公司 A kind of method, terminal and system that hot spot is shared
CN107580359A (en) * 2017-09-29 2018-01-12 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
WO2020083346A1 (en) 2020-04-30
CN111107614A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN111107614B (en) Terminal device control method and device and terminal device readable storage medium
US11611951B2 (en) Device contexts, operational modes, and policy driven enhancements for paging in advanced networks
US8750931B2 (en) Apparatus and method for automatic SIM card selection according to network environment in dual mode
US10045284B2 (en) Traffic control method and apparatus
EP3506518B1 (en) Antenna allocation method, terminal apparatus, and antenna circuit
CN110073638A (en) A kind of data transmission method, terminal and access network elements
EP3678331A1 (en) Data analysis method and data analysis device
CN109151950B (en) Access control method, network equipment and terminal equipment
CN114731577A (en) Method, system and device for determining strategy
CN106937337A (en) The method and user equipment of a kind of cell switching control
CN105636138A (en) Network switching method, network switching device and terminal
CN107222937B (en) Data transmission method, device and terminal
CN112566224A (en) Data transmission control method, terminal and storage medium
CN106550484A (en) A kind of straight-through call communication method and terminal
CN105379349B (en) A kind of flow control methods, device
CN108601063B (en) Personal hotspot realization method and related product
CN108353449A (en) Stand-by period enhancing in wireless communication system
EP4192182A1 (en) Access control method and apparatus, and terminal and network device
CN111988867B (en) Communication method with limited radio resource control and terminal equipment
CN106686577B (en) A kind of information processing method, terminal device and computer readable storage medium
WO2023185850A1 (en) Ursp rule optimization methods and apparatuses, terminal, network side device and medium
WO2023151585A1 (en) Terminal target surface capability reporting and acquiring methods, terminal, and network device
WO2023025015A1 (en) Random access resource selection and configuration methods, apparatus, terminal, and network side device
CN108566649B (en) Network segment management method of personal hotspot and related products
WO2023061453A1 (en) Capability change method, terminal, and network-side device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant