CN115413004A - Device power consumption control method and device, terminal device and medium - Google Patents

Device power consumption control method and device, terminal device and medium Download PDF

Info

Publication number
CN115413004A
CN115413004A CN202211058002.7A CN202211058002A CN115413004A CN 115413004 A CN115413004 A CN 115413004A CN 202211058002 A CN202211058002 A CN 202211058002A CN 115413004 A CN115413004 A CN 115413004A
Authority
CN
China
Prior art keywords
network environment
power consumption
equipment
wearable
wearable device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211058002.7A
Other languages
Chinese (zh)
Inventor
梁宝超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202211058002.7A priority Critical patent/CN115413004A/en
Publication of CN115413004A publication Critical patent/CN115413004A/en
Pending legal-status Critical Current

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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a device for controlling equipment power consumption, terminal equipment and a computer readable storage medium, wherein the method comprises the following steps: in a preset network environment, acquiring a fixed network protocol address distributed by routing equipment, and marking the preset network environment as a trusted network environment; according to the fixed network protocol address, wireless network connection is established with mobile equipment in the trusted network environment through the routing equipment, and a Bluetooth module in the wearable equipment is closed, so that the function loss of the wearable equipment is controlled. The invention can reduce the power consumption of the equipment and improve the performance of the equipment.

Description

Device power consumption control method and device, terminal device and medium
Technical Field
The present invention relates to the field of artificial intelligence technologies, and in particular, to a method and an apparatus for controlling power consumption of a device, a terminal device, and a computer-readable storage medium.
Background
With the rapid development of artificial intelligence, smart watches provide more and more comprehensive functions for users, such as bluetooth communication, wiFi (wireless local area network technology) communication, motion recognition, health detection, and the like.
But along with intelligent wrist-watch function increase, the peripheral hardware module that each function corresponds is just more, and every peripheral hardware module all can be power consumptive, and under the limited circumstances of battery, more and more peripheral hardware modules can greatly influence the consumption of intelligent wrist-watch, for example, can integrate wifi module and bluetooth module on the intelligent wrist-watch usually, wifi module and bluetooth module all belong to wireless module, and its power consumptive proportion is great, leads to the stand-by time of intelligent wrist-watch to be shortened greatly.
Disclosure of Invention
The invention mainly aims to provide a method and a device for controlling the power consumption of equipment, terminal equipment and a computer readable storage medium, and aims to reduce the power consumption of the equipment performance and improve the equipment performance.
In order to achieve the above object, the present invention provides a device power consumption control method, which is applied to a device power consumption control system, and the optimization system includes: wearable device, mobile device and routing device, the optimization method includes:
in a preset network environment, acquiring a fixed network protocol address distributed by routing equipment, and marking the preset network environment as a trusted network environment;
and according to the fixed network protocol address, establishing wireless network connection with the mobile equipment in the trusted network environment through the routing equipment, and closing a Bluetooth module in the wearable equipment so as to control the function loss of the wearable equipment.
Optionally, the fixed network protocol includes: the step of obtaining a fixed network protocol address assigned by the routing device comprises:
obtaining the first fixed network protocol address assigned by the routing device to the wearable device and the second fixed network protocol address assigned to the mobile device.
Optionally, the step of establishing, by the routing device according to the fixed network protocol address, a wireless network connection with a mobile device in the trusted network environment includes:
searching for the mobile equipment in the trusted network environment according to the second fixed network protocol address;
upon a successful lookup, connecting with a mobile device in the trusted network environment based on the first fixed network protocol address and the second fixed network protocol address.
Optionally, after the turning off the bluetooth module in the wearable device, the method further includes:
when the wearable device is in other environment except the trusted network environment, starting a Bluetooth module in the wearable device;
and establishing Bluetooth connection with the mobile equipment according to the Bluetooth module.
Optionally, before the step of marking the preset network environment as a trusted network environment, the method further includes:
receiving a network marking instruction triggered by a user;
the step of marking the predetermined network environment as a trusted network environment comprises:
and marking the preset network environment as a trusted network environment according to the network marking instruction.
Optionally, the device power consumption control method includes:
in a preset network environment, distributing corresponding fixed network protocol addresses for the wearable equipment and the mobile equipment;
and respectively sending the fixed network protocol to the wearable device and the mobile device, so that the wearable device marks the preset network environment as a trusted network environment, establishes wireless network connection with the mobile device, and closes a Bluetooth module in the wearable device.
Optionally, before the step of determining the fixed network protocol addresses of the wearable device and the mobile device in the preset network environment, the method further includes:
and acquiring address acquisition instructions triggered respectively based on the wearable device and the mobile device, so as to allocate corresponding fixed network protocol addresses to the wearable device and the mobile device based on the address acquisition instructions.
In order to achieve the above object, the present invention further provides an apparatus power consumption control device, including:
the system comprises an acquisition module, a routing module and a verification module, wherein the acquisition module is used for acquiring a fixed network protocol address distributed by routing equipment in a preset network environment and marking the preset network environment as a trusted network environment;
the control module is used for establishing wireless network connection with the mobile equipment in the trusted network environment through the routing equipment according to the fixed network protocol address and closing a Bluetooth module in the wearable equipment so as to control the function loss of the wearable equipment;
the distribution module is used for distributing corresponding fixed network protocol addresses to the wearable device and the mobile device in a preset network environment;
and the sending module is used for sending the fixed network protocol to the wearable device and the mobile device respectively so that the wearable device can mark the preset network environment as a trusted network environment, establish wireless network connection with the mobile device and close the Bluetooth module in the wearable device.
The functional modules of the device power consumption control device of the invention respectively realize the steps of the device power consumption control method when in operation.
To achieve the above object, the present invention further provides a terminal device, which includes a memory, a processor, and a device power consumption control program stored on the memory and executable on the processor, and when executed by the processor, the terminal device implements the steps of the device power consumption control method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a device power consumption control program which, when executed by a processor, implements the steps of the device power consumption control method as described above.
To achieve the above object, the present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the device power consumption control method as described above.
The invention provides a device power consumption control method, a device, a terminal device, a computer readable storage medium and a computer program product, which are characterized in that a fixed network protocol address distributed by a routing device is obtained in a preset network environment, and the preset network environment is marked as a trusted network environment; and according to the fixed network protocol address, establishing wireless network connection with the mobile equipment in the trusted network environment through the routing equipment, and closing a Bluetooth module in the wearable equipment so as to control the function loss of the wearable equipment.
Compared with the mode that all the external modules in the wearable device are opened in the prior art, in the invention, when the wearable device and the mobile device are in the preset network environment for the first time, the corresponding fixed network protocol addresses can be allocated to the wearable device and the mobile device, on the basis, the wearable device establishes wireless network connection with the mobile device according to the fixed network protocol addresses, and simultaneously closes the Bluetooth module of the wearable device. Therefore, the method and the device can close the Bluetooth module in the wearable device when the device is in a trusted network environment, so that the wearable device and the mobile device can directly communicate in a wireless network connection mode, power consumption of the wearable device is optimized, and standby time of the wearable device is prolonged.
On the basis, the invention further improves the effective utilization rate of the wearable equipment battery, prolongs the service life of the battery and improves the user experience.
Drawings
Fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a first flowchart illustrating a power consumption control method according to an embodiment of the present invention;
fig. 3 is a first schematic diagram of device communication according to an embodiment of the device power consumption control method of the present invention;
fig. 4 is a second schematic diagram of device communication according to an embodiment of the device power consumption control method of the present invention;
FIG. 5 is a second flowchart of an apparatus power consumption control method according to an embodiment of the present invention;
fig. 6 is a third schematic diagram of device communication according to an embodiment of the device power consumption control method of the present invention;
fig. 7 is a fourth schematic diagram illustrating device communication according to an embodiment of the device power consumption control method of the invention;
FIG. 8 is a third flowchart of an apparatus power consumption control method according to an embodiment of the present invention;
fig. 9 is a schematic diagram of functional modules of an apparatus power consumption control device according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described 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 do not limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The wearable device of the embodiment of the invention can be a watch, a bracelet, a ring and the like, the mobile device can be a locator, a mobile phone, a tablet personal computer and the like, and the terminal device can be the wearable device or the mobile device such as a smart phone and the like, and can also be a computer, a server, a network device and the like.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (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 described previously.
Those skilled in the art will appreciate that the device architecture shown in fig. 1 does not constitute a limitation of the device power consumption control device and may include more or fewer components than those shown, or some components in combination, 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 operation, a network communication module, a user interface module, and a device power consumption control program. The operations are programs that manage and control the hardware and software resources of the device, support the operation of the device power consumption control programs, and other software or programs. In the device shown in fig. 1, the user interface 1003 is mainly used for data communication with a client; the network interface 1004 is mainly used for establishing communication connection with a server; and the processor 1001 may be configured to call the device power consumption control program stored in the memory 1005 and perform the following operations:
in a preset network environment, acquiring a fixed network protocol address distributed by routing equipment, and marking the preset network environment as a trusted network environment;
according to the fixed network protocol address, wireless network connection with the mobile equipment in the trusted network environment is established through the routing equipment, and a Bluetooth module in the wearable equipment is closed, so that the function loss of the wearable equipment is controlled.
Further, the fixed network protocol includes: the first fixed network protocol address and the second fixed network protocol address, the processor 1001 may be configured to call a device power consumption control program stored in the memory 1005, and perform the following operations:
a first fixed network protocol address assigned by a routing device to a wearable device and a second fixed network protocol address assigned to a mobile device are obtained.
Further, the processor 1001 may be configured to call a device power consumption control program stored in the memory 1005, and perform the following operations:
searching for the mobile equipment in the trusted network environment according to the second fixed network protocol address;
upon a successful lookup, a connection is made with a mobile device in the trusted network environment based on the first fixed network protocol address and the second fixed network protocol address.
Further, after turning off the bluetooth module in the wearable device, the processor 1001 may be configured to call the device power consumption control program stored in the memory 1005, and perform the following operations:
when the wearable device is in other environments except the trusted network environment, starting a Bluetooth module in the wearable device;
and establishing Bluetooth connection with the mobile equipment according to the Bluetooth module.
Further, prior to the step of marking the pre-set network environment as a trusted network environment, the processor 1001 may be configured to invoke a device power consumption control program stored in the memory 1005 and perform the following operations:
receiving a network marking instruction triggered by a user;
the processor 1001 may be configured to call a device power consumption control program stored in the memory 1005 and perform the following operations:
and marking the preset network environment as a trusted network environment according to the network marking instruction.
Further, the processor 1001 may be configured to call a device power consumption control program stored in the memory 1005, and perform the following operations:
in a preset network environment, distributing corresponding fixed network protocol addresses for the wearable equipment and the mobile equipment;
and respectively sending the fixed network protocol to the wearable device and the mobile device so that the wearable device marks the preset network environment as a trusted network environment, establishes a wireless network connection with the mobile device and closes a Bluetooth module in the wearable device.
Further, prior to the step of determining the fixed network protocol addresses of the wearable device and the mobile device in the preset network environment, the processor 1001 may be configured to call a device power consumption control program stored in the memory 1005 and perform the following operations:
and acquiring address acquisition instructions triggered respectively based on the wearable device and the mobile device, and allocating corresponding fixed network protocol addresses to the wearable device and the mobile device based on the address acquisition instructions.
Referring to fig. 2, fig. 2 is a flowchart illustrating a power consumption control method of the device according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein.
Current wearable equipment has carried multiple peripheral equipment module in order to realize more comprehensive function, for example, health detection, motion discernment, real-time location and radio communication etc. in wearable equipment, for example bluetooth module and wiFi module for radio communication, and the peripheral equipment module in the wearable equipment is more, and its equipment consumption is big more.
In a communication link structure of a conventional wearable device (such as a smart watch), as shown in fig. 3, the smart watch establishes a bluetooth link with a mobile device (such as a mobile phone) through a bluetooth module, and then data interaction between the smart watch and the mobile phone is realized through the bluetooth link. In addition, the smart watch and the routing device establish a WiFi link, and then transmit a large amount of data, such as sports data, through the WiFi link. In this kind of communication link structure, the wiFi module and the bluetooth module of intelligence wrist-watch all need keep operating condition at any time, and wiFi mould and bluetooth module are as communication module, and its power consumptive all is very fast, leads to the power consumptive very fast of intelligence wrist-watch and standby time length.
Therefore, in order to reduce the power consumption of the wearable device and further prolong the standby time of the wearable device, the embodiment provides the device power consumption control method, and in a preset scene (for example, a trusted network environment), the WiFi module is used for replacing the bluetooth module to perform data communication, and the bluetooth module is closed, so that the power consumption of the wearable device can be greatly reduced.
Specifically, the device power consumption control method in this embodiment is applied to a device power consumption control system, and the device power consumption control system includes: wearable equipment, mobile device and routing equipment, wherein, wearable equipment and mobile device can enough carry out bluetooth communication through the bluetooth module, also can utilize routing equipment, carry out wireless network communication through the wiFi module.
The device power consumption control method in this embodiment is applied to a wearable device, and specifically includes the following steps:
step S10, in a preset network environment, acquiring a fixed network protocol address distributed by a routing device, and marking the preset network environment as a trusted network environment;
it should be noted that, in this embodiment, an application scenario of the device power consumption control method is provided, in the application scenario, the wearable device and the mobile device are in the same preset network environment, and the preset network environment is built by the routing device. When the wearable device and the mobile device are in the preset network environment for the first time (at least one of the wearable device and the mobile device is in the preset network environment for the first time), corresponding fixed network protocol (IP) addresses can be respectively allocated to the wearable device and the mobile device through the routing device.
On this basis, the wearable device acquires the fixed network protocol address allocated by the routing device, and marks the preset network environment as a trusted network environment, so that when the wearable device and the mobile device are in the trusted network environment next time, the routing device does not need to allocate fixed IP addresses to the wearable device and the mobile device, but continues to use the fixed IP addresses acquired when the wearable device and the mobile device are in the trusted network environment for the first time.
And S20, establishing wireless network connection with the mobile equipment in the trusted network environment through the routing equipment according to the fixed network protocol address, and closing a Bluetooth module in the wearable equipment so as to control the function loss of the wearable equipment.
The wearable device receives the fixed network IP address distributed by the routing device, and after the preset network environment is marked as a trusted network environment, wireless network (WiFi) connection with the mobile device in the trusted network environment can be established through the routing device according to the fixed IP address, at the moment, wireless communication is carried out between the wearable device and the mobile device through the WiFi connection, bluetooth communication is not needed to be carried out through Bluetooth modules in the wearable device and the mobile device, on the basis, the Bluetooth module in the wearable device can be closed, function loss of the wearable device is controlled, power consumption of the wearable device is reduced, and standby time of the wearable device is prolonged.
In this embodiment, when the wearable device and the mobile device are in the preset network environment for the first time, the routing device may allocate corresponding fixed network protocol (IP) addresses to the wearable device and the mobile device, respectively, and mark the current preset network environment as a trusted network environment. Furthermore, a wireless network connection between the wearable device and the routing device in the trusted network environment can be further established according to the fixed IP address and through the routing device, and the bluetooth module in the wearable device is closed.
Compared with the mode that all external modules in the wearable device are opened in the prior art, in the invention, when the wearable device and the mobile device are in a preset network environment for the first time, corresponding fixed IP addresses can be allocated to the wearable device and the mobile device, on the basis, when the wearable device and the mobile device are in the preset network environment again, wiFi connection between the wearable device and the mobile device can be directly established, data transmission is carried out in a WiFi mode, and the Bluetooth module of the wearable device is closed. Therefore, the invention can close the Bluetooth module of the equipment when the equipment is in the trusted network environment, so that the wearable equipment and the terminal equipment can directly communicate in a WiFi mode, the power consumption of the wearable equipment is optimized, the standby time of the wearable equipment is prolonged, the effective utilization rate of the battery of the wearable equipment is further improved, the service life of the battery is prolonged, and meanwhile, the user experience is improved.
Further, based on the first embodiment of the device power consumption control method of the present invention, a second embodiment of the device power consumption control method of the present invention is proposed.
In this embodiment, the step S10 of acquiring the fixed network protocol address allocated by the routing device may include:
step S101, acquiring the first fixed network protocol address distributed by the routing device to the wearable device and the second fixed network protocol address distributed to the mobile device.
It should be noted that, in this embodiment, if the wearable device and the mobile device are both in a certain preset network environment for the first time, the routing device needs to construct a WiFi connection with the wearable device and a WiFi connection with the mobile device in advance, so that both the wearable device and the mobile device can perform communication and data transmission with the routing device.
On this basis, as shown in fig. 4, the routing device will assign a fixed IP address to the wearable device and the mobile device respectively, where both the wearable device and the mobile device have their corresponding fixed IP addresses, for example, the fixed IP address corresponding to the wearable device may be a first fixed IP address, and the fixed IP address corresponding to the mobile device may be a second fixed IP address. At this time, the wearable device acquires a first fixed IP address allocated to the wearable device by the routing device and acquires a second fixed IP address allocated to the mobile device.
In another embodiment, the wearable device needs to store the first fixed IP address, and at the same time, the mobile device also stores the second fixed IP address, so that the fixed IP addresses of the other party are stored in both the wearable device and the mobile device, and when the wearable device and the mobile device enter the environment marked as the trusted network again, the wearable device and the mobile device can directly perform WiFi connection based on the fixed IP addresses.
Further, the aforementioned step S20 of establishing a wireless network connection with the mobile device in the trusted network environment through the routing device according to the fixed network protocol address may include:
step S201, according to the second fixed network protocol address, searching for the mobile equipment in the trusted network environment;
step S202, when the search is successful, based on the first fixed network protocol address and the second fixed network protocol address, connecting with the mobile device in the trusted network environment.
It should be noted that, in this embodiment, after corresponding fixed IP addresses are allocated to the wearable device and the mobile device, and the preset network environment that enters for the first time is marked as a trusted network environment, if the wearable device and the mobile device enter the trusted network environment again, the terminal device directly establishes a wireless network connection between the wearable device and the mobile device according to the fixed IP addresses.
Specifically, for example, as shown in fig. 5, when the wearable device and the mobile device are in the marked trusted network environment again, and the wearable device detects the trusted network environment, the wearable device will first connect to the network, and then the wearable device will search for the mobile device corresponding to the second fixed IP address in the trusted network environment according to the second fixed IP address that is stored in advance, and if the search is successful, establish a WiFi connection with the searched mobile device according to the first fixed IP address and the second fixed IP address.
In addition, wearable equipment still will close its bluetooth module, only opens the wiFi module in the wearable equipment to realize wearable equipment and mobile device's wiFi communication, and reduce wearable equipment power consumption.
At this time, as shown in fig. 6, the wearable device and the mobile device are in a trusted network environment, and the bluetooth module in the wearable device can be kept turned off, and the notification-type messages interacted by the bluetooth module before can now be transmitted through the WiFi link. Therefore, the transmission of the message is not influenced, and the effects of reducing power consumption and optimizing standby time can be achieved.
Further, after "turning off the bluetooth module in the wearable device" in step S20, the method may further include:
step S30, when the wearable device is in other environment except the trusted network environment, starting a Bluetooth module in the wearable device;
and S40, establishing Bluetooth connection with the mobile equipment according to the Bluetooth module.
If the wearable device is in an environment other than the trusted network environment, the bluetooth module in the wearable device is restarted, as shown in fig. 7, and then the bluetooth module is utilized to establish a bluetooth connection between the wearable device and the mobile device, so as to perform bluetooth communication.
In an embodiment, if at least one of the wearable device and the mobile device is in an environment other than the trusted network environment, the terminal device executes the operation "in the preset network environment again, acquires the fixed network protocol address allocated by the routing device, and marks the preset network environment as the trusted network environment; according to the fixed network protocol address, wireless network connection with the mobile equipment in the trusted network environment is established through the routing equipment, and a Bluetooth module in the wearable equipment is closed, so that the function loss of the wearable equipment is controlled.
Further, before the step S10 of marking the preset network environment as a trusted network environment, the method may further include:
step S50, receiving a network marking instruction triggered by a user;
further, the step S10 may include:
and step S102, according to the network marking instruction, marking the preset network environment as a trusted network environment.
If the wearable device and the mobile device are both in a certain preset network environment for the first time, the user can trigger the network marking instruction through the wearable device, and after receiving the network marking instruction, the wearable device can mark the current preset network environment as a trusted network environment according to the network marking instruction. Thus, if the wearable device and the mobile device are in the trusted network environment again, the Bluetooth module in the wearable device can be directly closed, and then communication is performed in a WiFi mode.
In an embodiment, the user may also trigger the network tagging instruction through the mobile device, and the mobile device tags the current preset network environment as the trusted network environment after receiving the network tagging instruction.
In this embodiment, if the wearable device and the mobile device are both in a certain preset network environment for the first time, the user may trigger the network tagging instruction through the wearable device, and after receiving the network tagging instruction, the wearable device may tag the current preset network environment as a trusted network environment according to the network tagging instruction. When the wearable device and the mobile device are in the marked trusted network environment again, the wearable device is connected to the network, and then the wearable device searches for the mobile device (such as a mobile phone) corresponding to the second fixed IP address in the trusted network environment according to the second fixed IP address stored in advance, if the mobile device is successfully searched, the terminal device establishes WiFi connection between the wearable device and the searched mobile device according to the first fixed IP address and the second fixed IP address. If the terminal device detects that at least one of the wearable device and the mobile device is in other network environments except the trusted network environment, the Bluetooth module in the wearable device is restarted.
According to the invention, when the wearable device and the mobile device enter a certain preset network environment for the first time, the fixed IP addresses are distributed to the wearable device and the mobile device through the routing device, so that the WiFi connection is directly carried out when the wearable device and the mobile device enter the preset network environment again, and the Bluetooth communication is not needed any more. Therefore, the invention can communicate only in a WiFi mode in a trusted network environment without starting a Bluetooth module for Bluetooth communication, thereby avoiding starting unnecessary external modules, reducing the functional loss of the wearable equipment, prolonging the standby time of the battery of the wearable equipment, and improving the data transmission efficiency and further improving the user experience by adopting the WiFi mode for communication.
Further, a third embodiment of the device power consumption control method according to the present invention is proposed based on the first embodiment and the second embodiment of the device power consumption control method according to the present invention, and the device power consumption control method in this embodiment is applied to a routing device.
As shown in fig. 8, the method for controlling power consumption of a device in this embodiment specifically includes the following steps:
step S60, distributing corresponding fixed network protocol addresses to the wearable device and the mobile device in a preset network environment;
step S70, the fixed network protocol is respectively sent to the wearable device and the mobile device, so that the wearable device marks the preset network environment as a trusted network environment, establishes wireless network connection with the mobile device, and closes a Bluetooth module in the wearable device.
The routing device allocates corresponding fixed network protocol (IP) addresses (a first fixed IP address allocated to the wearable device and a second fixed IP address allocated to the mobile device) to the wearable device and the mobile device, respectively. And then, the routing device sends the first fixed IP address and the second fixed IP address to the wearable device and the mobile device respectively, so that the wearable device marks a preset network environment as a trusted network environment, establishes wireless network connection with the mobile device, and closes a Bluetooth module in the wearable device.
Further, before the step S60 of assigning corresponding fixed network protocol addresses to the wearable device and the mobile device in a preset network environment, the method may further include:
step S80, address obtaining instructions triggered respectively based on the wearable device and the mobile device are obtained, and corresponding fixed network protocol addresses are distributed to the wearable device and the mobile device based on the address obtaining instructions.
When the wearable device and the mobile device are in a certain preset network environment for the first time, both the wearable device and the mobile device will send corresponding address obtaining instructions (including a first address sending instruction and a second address sending instruction) to the routing device, for example, the wearable device sends the first address obtaining instruction to the routing device, and both the mobile device will send the second address sending instruction to the routing device. And after receiving the first address sending instruction and the second address sending instruction, the routing equipment allocates a first fixed IP address to the wearable equipment according to the first address sending instruction, and allocates a second fixed IP address to the mobile equipment according to the second address sending instruction.
In this embodiment, when wearable equipment is in the trusted network environment, the bluetooth module of equipment is closed for wearable equipment and terminal equipment directly communicate with the wiFi mode through routing equipment, have optimized wearable equipment's consumption, and it is long when the standby of wearable equipment is prolonged, and then, have promoted the effective utilization of wearable equipment battery, and have prolonged the battery life, simultaneously, have promoted user experience.
In addition, an embodiment of the present invention further provides an apparatus power consumption control device, and referring to fig. 9, the apparatus power consumption control device includes:
an obtaining module 10, configured to obtain, in a preset network environment, a fixed network protocol address allocated by a routing device, and mark the preset network environment as a trusted network environment;
a control module 20, configured to establish a wireless network connection with a mobile device in the trusted network environment through the routing device according to the fixed network protocol address, and close a bluetooth module in the wearable device, so as to control a loss of function of the wearable device;
the distribution module 30 is configured to distribute corresponding fixed network protocol addresses to the wearable device and the mobile device in a preset network environment;
a sending module 40, configured to send the fixed network protocol to the wearable device and the mobile device, respectively, so that the wearable device marks the preset network environment as a trusted network environment, establishes a wireless network connection with the mobile device, and closes a bluetooth module in the wearable device.
Further, the fixed network protocol comprises: a first fixed network protocol address and a second fixed network protocol address, and the obtaining module 10 includes:
an address obtaining unit, configured to obtain the first fixed network protocol address allocated by the routing device to the wearable device and the second fixed network protocol address allocated to the mobile device.
Further, the control module 20 includes:
a searching unit, configured to search for a mobile device in the trusted network environment according to the second fixed network protocol address;
and the connection construction unit is used for connecting the mobile equipment in the trusted network environment based on the first fixed network protocol address and the second fixed network protocol address when the search is successful.
Further, the device power consumption control apparatus further includes:
the Bluetooth starting module is used for starting a Bluetooth module in the wearable equipment when the wearable equipment is in other environments except the trusted network environment;
and the Bluetooth connection establishing module is used for establishing Bluetooth connection with the mobile equipment according to the Bluetooth module.
Further, the device power consumption control apparatus further includes:
the instruction receiving module is used for receiving a network marking instruction triggered by a user;
the acquisition module includes:
and the marking unit is used for marking the preset network environment as a trusted network environment according to the network marking instruction.
Further, the device power consumption control apparatus further includes:
and the address acquisition instruction acquisition module is used for acquiring address acquisition instructions triggered respectively on the basis of the wearable device and the mobile device, so as to allocate corresponding fixed network protocol addresses to the wearable device and the mobile device on the basis of the address acquisition instructions.
The specific implementation of the power consumption control system of the device of the present invention is basically the same as the embodiments of the power consumption control method of the device, and is not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a device power consumption control program, and the device power consumption control program, when executed by a processor, implements the steps of the device power consumption control method as described below.
The embodiments of the device power consumption control device and the computer-readable storage medium of the present invention can refer to the embodiments of the device power consumption control method of the present invention, and are not described herein again.
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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention may be essentially or partially embodied in the form of a software product, where the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (such as a smart phone, a tablet computer, a server, a network device, etc.) to execute the method 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 (10)

1. A device power consumption control method is applied to a wearable device, and comprises the following steps:
in a preset network environment, acquiring a fixed network protocol address distributed by routing equipment, and marking the preset network environment as a trusted network environment;
and according to the fixed network protocol address, establishing wireless network connection with the mobile equipment in the trusted network environment through the routing equipment, and closing a Bluetooth module in the wearable equipment so as to control the function loss of the wearable equipment.
2. The device power consumption control method of claim 1, wherein the fixed network protocol comprises: the step of obtaining a fixed network protocol address assigned by the routing device comprises:
obtaining the first fixed network protocol address assigned by the routing device to the wearable device and the second fixed network protocol address assigned to the mobile device.
3. The device power consumption control method of claim 2, wherein the step of establishing a wireless network connection with a mobile device in the trusted network environment via the routing device according to the fixed network protocol address comprises:
searching for the mobile equipment in the trusted network environment according to the second fixed network protocol address;
and when the search is successful, performing wireless network connection with the mobile equipment based on the first fixed network protocol address and the second fixed network protocol address.
4. The device power consumption control method of claim 1, further comprising, after the shutting down the bluetooth module in the wearable device:
when the wearable device is in other environment except the trusted network environment, starting a Bluetooth module in the wearable device;
and establishing Bluetooth connection with the mobile equipment according to the Bluetooth module.
5. The device power consumption control method of claim 1, further comprising, prior to the step of marking the preset network environment as a trusted network environment:
receiving a network marking instruction triggered by a user;
the step of marking the predetermined network environment as a trusted network environment comprises:
and marking the preset network environment as a trusted network environment according to the network marking instruction.
6. A device power consumption control method is applied to a routing device, and comprises the following steps:
respectively allocating corresponding fixed network protocol addresses to the wearable device and the mobile device in a preset network environment;
and respectively sending the fixed network protocol to the wearable device and the mobile device, so that the wearable device marks the preset network environment as a trusted network environment, establishes wireless network connection with the mobile device, and closes a Bluetooth module in the wearable device.
7. The device power consumption control method of claim 6, further comprising, prior to the step of assigning corresponding fixed network protocol addresses to the wearable device and the mobile device, respectively, in the preset network environment:
and acquiring address acquisition instructions triggered respectively based on the wearable device and the mobile device, so as to respectively allocate corresponding fixed network protocol addresses to the wearable device and the mobile device based on the address acquisition instructions.
8. An apparatus power consumption control apparatus, characterized in that the apparatus power consumption control apparatus comprises:
the system comprises an acquisition module, a routing module and a verification module, wherein the acquisition module is used for acquiring a fixed network protocol address distributed by routing equipment in a preset network environment and marking the preset network environment as a trusted network environment;
the control module is used for establishing wireless network connection with mobile equipment in the trusted network environment through the routing equipment according to the fixed network protocol address and closing a Bluetooth module in the wearable equipment so as to control the function loss of the wearable equipment;
the distribution module is used for distributing corresponding fixed network protocol addresses to the wearable equipment and the mobile equipment in a preset network environment;
and the sending module is used for sending the fixed network protocol to the wearable device and the mobile device respectively so that the wearable device can mark the preset network environment as a trusted network environment, establish wireless network connection with the mobile device and close the Bluetooth module in the wearable device.
9. A terminal device characterized by comprising a memory, a processor, and a base device power consumption control program stored on the memory and executable on the processor, the device power consumption control program when executed by the processor implementing the steps of the device power consumption control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a device power consumption control program is stored thereon, which when executed by a processor, implements the steps of the device power consumption control method according to any one of claims 1 to 7.
CN202211058002.7A 2022-08-30 2022-08-30 Device power consumption control method and device, terminal device and medium Pending CN115413004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211058002.7A CN115413004A (en) 2022-08-30 2022-08-30 Device power consumption control method and device, terminal device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211058002.7A CN115413004A (en) 2022-08-30 2022-08-30 Device power consumption control method and device, terminal device and medium

Publications (1)

Publication Number Publication Date
CN115413004A true CN115413004A (en) 2022-11-29

Family

ID=84163046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211058002.7A Pending CN115413004A (en) 2022-08-30 2022-08-30 Device power consumption control method and device, terminal device and medium

Country Status (1)

Country Link
CN (1) CN115413004A (en)

Similar Documents

Publication Publication Date Title
US8700931B2 (en) Method and system for managing power of a mobile device
CN112152926B (en) Method and device for managing network slices of application
EP1316901A2 (en) Content distribution system, description data distribution apparatus, content location management apparatus, data conversion apparatus, reception terminal apparatus, and content distribution method
CN111107176B (en) Data transmission method and device, computer equipment and storage medium
WO2019024754A1 (en) Page loading method, device, and system
JP2019537356A (en) Method of updating location area of user terminal, access network entity, user terminal and core network entity
JPH0895911A (en) Method and apparatus for efficient distribution of processing between computer apparatus for movement and host computer
CN109996260B (en) Configuration system, client device, embedded device configuration method and storage medium
CN108781473B (en) Method and equipment for sharing files among different terminals
CN101616132A (en) A kind of data capture method and device thereof and system
CN106688243B (en) Device-to-device content providing method
CN112256451A (en) Timing service message generation method and device, electronic equipment and storage medium
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN114064055B (en) System theme configuration method and electronic equipment
US20040192354A1 (en) Image processing server
WO2023246757A1 (en) Computing power service method and apparatus, and terminal
CN115550354A (en) Data processing method and device and computer readable storage medium
CN114616899A (en) Terminal control apparatus and method
CN115413004A (en) Device power consumption control method and device, terminal device and medium
CN114138895A (en) Data synchronization method and device for multiple data sources, computer equipment and storage medium
KR102341626B1 (en) Apparatus and method for transmitting timing of traffic in a electronic device
KR100458204B1 (en) A system and method for changing parameter of mobile station, using data push and mobile station
CN114416212A (en) Mobile terminal application program data resource processing method and device
CN115209393A (en) Data transmission method, system, electronic device and storage medium
CN115714785A (en) Method and equipment for determining computing power resource

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