[go: up one dir, main page]

CN116170900A - A control method, device and device for communication equipment - Google Patents

A control method, device and device for communication equipment Download PDF

Info

Publication number
CN116170900A
CN116170900A CN202310027253.7A CN202310027253A CN116170900A CN 116170900 A CN116170900 A CN 116170900A CN 202310027253 A CN202310027253 A CN 202310027253A CN 116170900 A CN116170900 A CN 116170900A
Authority
CN
China
Prior art keywords
power consumption
equipment
mode
consumption level
current
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
CN202310027253.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.)
Wuhan Gongdian Information Technology Co ltd
Original Assignee
Wuhan Gongdian Information Technology 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 Wuhan Gongdian Information Technology Co ltd filed Critical Wuhan Gongdian Information Technology Co ltd
Priority to CN202310027253.7A priority Critical patent/CN116170900A/en
Publication of CN116170900A publication Critical patent/CN116170900A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] 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
    • 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)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a control method, a device and equipment for communication equipment, wherein the method comprises the following steps: detecting the current network running state of the equipment, if the equipment network is in an idle state and lasts for a first preset duration, controlling the equipment to switch to a sleep mode, and prolonging the transceiving period of the equipment to the keep-alive heartbeat detection packet; if the equipment network is in a busy state, judging the connection mode of the equipment and other communication equipment, determining the power consumption level of the equipment, controlling the equipment to adjust to a working mode of a corresponding level according to the power consumption level, and shortening the transceiving period of the equipment to the keep-alive heartbeat detection packet. According to the invention, the device is switched to different modes according to different network operation states of the device, so that the device can be in a low power consumption state in a service idle state, and when the service is busy, the working mode of a corresponding level is set according to different busyness and time, thereby avoiding power consumption waste.

Description

Control method, device and equipment for communication equipment
Technical Field
The present invention belongs to the field of communication technology, and in particular, relates to a control method, device and equipment for a communication device.
Background
With the continued popularity and proliferation of communication devices, more and more end users are using communication devices. Communication devices come in many forms, such as routers, switches, modems, wireless APs, wireless bridges, wireless network cards, etc.; among them, with the rapid development of wireless networks, wireless networks are becoming more and more popular in various industries.
In the prior art, the communication scheme among the communication devices brings convenience for various industries and simultaneously brings non-negligible problems: the power consumption of the device is large. For example, in order to save the resource occupation of connection establishment and connection closure in multiple communications, long connections are often used, and if new data needs to be transmitted between two communication devices or applications, the connection is directly multiplexed without establishing a new connection. In order to continuously monitor whether a long connection is available, both communication parties detect whether the long connection is normal by transmitting a detection packet, but periodically transmitting the long connection also increases power consumption of the communication device in an idle state, resulting in resource waste.
Disclosure of Invention
The invention aims to provide a control method, a device and equipment for communication equipment, which are used for solving the technical problem of high equipment power consumption in the prior art.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a first aspect provides a control method for a communication device, the method comprising:
after the current communication equipment enters a power saving mode for operation, detecting the current network operation state of the equipment, if the equipment network is in an idle state and lasts for a first preset duration, switching the control equipment from the power saving mode to a dormant mode, and simultaneously prolonging the receiving and transmitting period of a keep-alive heartbeat detection packet by the equipment, wherein the keep-alive heartbeat detection packet is used for detecting the availability of long connection of the equipment;
if the equipment network is in a busy state, further judging the connection mode of the equipment and other communication equipment, determining the power consumption level of the equipment according to the connection mode, controlling the equipment to adjust the power saving mode to a working mode of a corresponding level according to the power consumption level, and shortening the transceiving period of the equipment to the keep-alive heartbeat detection packet.
In one possible design, detecting a current network operating state of a device includes:
the control equipment transmits an interaction data packet to any other communication equipment based on a TP/TCP protocol, wherein the interaction data comprises a network state detection signal and/or an equipment call signal;
and the control equipment receives response signals returned by any other communication equipment to the interactive data packet, and judges the current network operation state according to the time difference between the receiving time of the response signals and the sending time of the interactive data packet.
In one possible design, determining the current network operation state according to the time difference between the receiving time of the response signal and the sending time of the interactive data packet includes:
if the time difference between the receiving time of the response signal and the sending time of the interactive data packet is larger than a preset time interval, the current network is judged to be in a busy state, otherwise, the current network is judged to be in an idle state.
In one possible design, the method is applied to a communication device including a kernel layer and an application layer, and the control device is switched from a power saving mode to a sleep mode, including:
the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol so as to control each functional module in the application layer to be switched from a power saving mode to a sleep mode; the dormant signal is packaged in a binary data format and is sent in a character stream form.
In one possible design, the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol, including:
the kernel layer of the control device performs object serialization on the dormant signal packaged in the binary data format, and sends the serialized dormant signal to the application layer in a character stream mode.
In one possible design, further determining a connection mode of the device and other communication devices, and determining a power consumption level of the device according to the connection mode includes:
if other communication equipment connected with the current equipment only supports to establish connection with the current equipment in a passive mode, determining the power consumption level of the current equipment as a first power consumption level;
if the other communication equipment connected with the current equipment only supports to establish connection with the current equipment in an active mode, determining the power consumption level of the current equipment as a second power consumption level;
wherein the device power consumption of the first power consumption level is greater than the device power consumption of the second power consumption level.
In one possible design, the method further determines a connection mode of the device and other communication devices, determines a power consumption level of the device according to the connection mode, and further includes:
if other communication equipment connected with the current equipment supports to establish connection with the current equipment in an active mode or a passive mode, further judging the duration of the busy state of the equipment network;
if the equipment network is in a busy state for a second preset time period, determining that the power consumption level of the equipment is a third power consumption level; if the equipment network is in a busy state for a third preset duration, determining that the power consumption level of the equipment is a fourth power consumption level; the third preset duration is smaller than the second preset duration.
In one possible design, the power saving mode of the control device is adjusted to the operation mode of the corresponding level according to the power consumption level, including:
when the power consumption level is the first power consumption level, controlling the current equipment to be adjusted to a working mode of the first level from a power saving mode;
when the power consumption level is the second power consumption level, controlling the current equipment to be adjusted to a working mode of the second level by the power saving equipment;
wherein the device power in the first level of operation mode is greater than the device power in the second level of operation mode.
A second aspect provides a control device for a communication apparatus, the device comprising:
the first control module is used for detecting the current network running state of the equipment after the current communication equipment enters the power saving mode to run, if the equipment network is in an idle state and lasts for a first preset duration, the control equipment is switched to a sleep mode from the power saving mode, and meanwhile, the transceiving period of the equipment for the keep-alive heartbeat detection packet is prolonged, wherein the keep-alive heartbeat detection packet is used for detecting the availability of long connection of the equipment;
and the second control module is used for further judging the connection mode of the equipment and other communication equipment if the equipment network is in a busy state, determining the power consumption level of the equipment according to the connection mode, controlling the equipment to be adjusted to a working mode of a corresponding level from a power saving mode according to the power consumption level, and shortening the transceiving period of the equipment to the keep-alive heartbeat detection packet.
In one possible design, the first control module is specifically configured to, when detecting a current network operation state of the device:
the control equipment transmits an interaction data packet to any other communication equipment based on a TP/TCP protocol, wherein the interaction data comprises a network state detection signal and/or an equipment call signal;
and the control equipment receives response signals returned by any other communication equipment to the interactive data packet, and judges the current network operation state according to the time difference between the receiving time of the response signals and the sending time of the interactive data packet.
In one possible design, when determining the current network operation state according to the time difference between the receiving time of the response signal and the sending time of the interaction data packet, the first control module is specifically configured to:
if the time difference between the receiving time of the response signal and the sending time of the interactive data packet is larger than a preset time interval, the current network is judged to be in a busy state, otherwise, the current network is judged to be in an idle state.
In one possible design, the apparatus is applied to a communication device including a kernel layer and an application layer, and when the control device is switched from a power saving mode to a sleep mode, the first control module is specifically configured to:
the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol so as to control each functional module in the application layer to be switched from a power saving mode to a sleep mode; the dormant signal is packaged in a binary data format and is sent in a character stream form.
In one possible design, when the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol, the first control module is specifically configured to:
the kernel layer of the control device performs object serialization on the dormant signal packaged in the binary data format, and sends the serialized dormant signal to the application layer in a character stream mode.
In one possible design, when further judging the connection mode of the device and other communication devices, and determining the power consumption level of the device according to the connection mode, the second control module is specifically configured to:
if other communication equipment connected with the current equipment only supports to establish connection with the current equipment in a passive mode, determining the power consumption level of the current equipment as a first power consumption level;
if the other communication equipment connected with the current equipment only supports to establish connection with the current equipment in an active mode, determining the power consumption level of the current equipment as a second power consumption level;
wherein the device power consumption of the first power consumption level is greater than the device power consumption of the second power consumption level.
In one possible design, when further judging the connection mode of the device and other communication devices, and determining the power consumption level of the device according to the connection mode, the first control module is further specifically configured to:
if other communication equipment connected with the current equipment supports to establish connection with the current equipment in an active mode or a passive mode, further judging the duration of the busy state of the equipment network;
if the equipment network is in a busy state for a second preset time period, determining that the power consumption level of the equipment is a third power consumption level; if the equipment network is in a busy state for a third preset duration, determining that the power consumption level of the equipment is a fourth power consumption level; the third preset duration is smaller than the second preset duration.
In one possible design, when the power saving mode of the control device is adjusted to the operation mode of the corresponding level according to the power consumption level, the second control module is specifically configured to:
when the power consumption level is the first power consumption level, controlling the current equipment to be adjusted to a working mode of the first level from a power saving mode;
when the power consumption level is the second power consumption level, controlling the current equipment to be adjusted to a working mode of the second level by the power saving equipment;
wherein the device power in the first level of operation mode is greater than the device power in the second level of operation mode.
In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver in communication with each other in sequence, wherein the memory is adapted to store a computer program and the transceiver is adapted to receive and send messages, and the processor is adapted to read the computer program and to execute the control method for a communication device as described in any one of the possible designs of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon which, when executed on a computer, perform a control method for a communication device as described in any one of the possible designs of the first aspect.
In a fifth aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the control method for a communication device as described in any one of the possible designs of the first aspect.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, after the current communication equipment enters the power saving mode for operation, the equipment is controlled to be switched to different modes according to different network operation states of the equipment, so that the equipment can be in a low-power consumption state under the condition of ensuring that the service is idle, and when the service is busy, the working mode of a corresponding grade is set according to different busyness and time, and the waste of power consumption is avoided; the keep-alive heartbeat detection packet of the equipment is prolonged in the network idle state, so that the sending frequency of the detection packet in the idle state is reduced, and the power consumption is further reduced; the keep-alive heartbeat detection packet of the equipment is shortened in a network busy state, so that the continuous availability of long connection is ensured, and the stability of data transmission is further ensured.
Drawings
Fig. 1 is a flowchart of a control method for a communication device in an embodiment of the present application;
fig. 2 is a block diagram of a control device for a communication device in the embodiment of the present application;
fig. 3 is a block diagram of a computer device in an embodiment of the present application.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly described below with reference to the accompanying drawings and the description of the embodiments or the prior art, and it is obvious that the following description of the structure of the drawings is only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art. It should be noted that the description of these examples is for aiding in understanding the present invention, but is not intended to limit the present invention.
Examples
In the overall power consumption of the communication device, the power consumption ratio of each functional module may be different, and when some functional modules are used, the overall power consumption of the device can be reduced by powering off the module, however, when the module needs to be operated again, the module needs to be powered on first, then initialized, connected with a network and the like, and in addition, data processing time delay exists in the starting process of the module, so that the starting operation process of the module is complicated and time-consuming.
In order to solve the above problems, the embodiments of the present application provide a control method, an apparatus, and a device for a communication device, where after a current communication device enters a power saving mode to operate, the control device is switched to different modes according to different network operation states of the device, so that in a service idle state, the device can be in a low power consumption state, and when the service is busy, a working mode of a corresponding level is set according to different busyness and time, so as to avoid wasting power consumption.
The control method for the communication device provided in the embodiment of the present application will be described in detail below.
As shown in fig. 1, a flowchart of a control method for a communication device according to an embodiment of the present application is provided, where the control method for a communication device includes, but is not limited to, steps S1 to S2:
step S1, detecting the current network operation state of equipment after the current communication equipment enters a power saving mode operation, and if the equipment network is in an idle state and lasts for a first preset time period, switching the equipment from the power saving mode to a dormant mode, and simultaneously prolonging the transceiving period of a keep-alive heartbeat detection packet by the equipment, wherein the keep-alive heartbeat detection packet is used for detecting the availability of long connection of the equipment;
it should be noted that, in the embodiments of the present application, the communication device may be various, including but not limited to a router, a switch, a Modem, a wireless AP, a wireless network bridge, a wireless network card, and other relay communication devices, or may be a server device, or may be an intelligent terminal, for example, a smart phone, or may be a system in which the server device and the relay communication device are combined, which is not described herein again, but is not limited specifically. Wherein, when the system is a system combining a server device and a relay communication device, each functional module included in the system includes a functional module provided on the server and a functional module provided on the relay communication device.
It should be noted that, because the communication device does not respond to the downlink service of other communication devices in the power saving mode, including the service of transmitting the control instruction to the kernel layer of the communication device, although the power saving mode is opened, the communication device cannot be continuously maintained in the power saving mode, and the mode is required to be switched according to the network running state of the communication device so as to adapt to the actual application requirement of the communication device, thereby not only fully utilizing the advantage of the power saving mode, but also ensuring that the communication device can timely receive and respond to the downlink service of other communication devices, and further reducing the power consumption of the communication device. In particular, the status information of the communication device may be used to indicate whether there is currently any other communication device that needs to interact with the communication device at the end. For example, when the state information of the communication device indicates that other communication devices need to perform information interaction with the communication device, the communication device may receive downlink service, and further indicates that the communication device needs to be actively triggered to perform mode switching.
In step S1, detecting a current network operation state of the device includes:
(1) The control equipment transmits an interaction data packet to any other communication equipment based on a TP/TCP protocol, wherein the interaction data comprises a network state detection signal and/or an equipment call signal; the TCP/IP protocol has the advantages of maturity, openness and the like, can be applied to the communication of various communication devices, and replaces the communication of the traditional mainstream serial communication automation system;
(2) And the control equipment receives response signals returned by any other communication equipment to the interactive data packet, and judges the current network operation state according to the time difference between the receiving time of the response signals and the sending time of the interactive data packet.
Preferably, the determining the current network operation state according to the time difference between the receiving time of the response signal and the sending time of the interactive data packet includes:
if the time difference between the receiving time of the response signal and the sending time of the interactive data packet is larger than a preset time interval, the current network is judged to be in a busy state, otherwise, the current network is judged to be in an idle state.
Specifically, the control device sends an interactive data packet to any other communication device based on the TP/TCP protocol, receives response signals to the interactive data packet returned by any other communication device, judges the current network operation state according to the time difference between the receiving time of the response signals and the sending time of the interactive data packet, and judges that the current network is in a busy state if the time difference between the receiving time of the response signals and the sending time of the interactive data packet is larger than a preset time interval, otherwise, judges that the current network is in an idle state. The network state detection signal is utilized to detect the current network operation state, so that the detection and the keep-alive detection of the network operation state can be integrated into one instruction, the keep-alive detection is carried out, the detection of the current network operation state is carried out, and the instruction processing in the dormant state is reduced, thereby being beneficial to reducing the power consumption; and sending a device call signal to the base station accessed by the communication device, receiving a device call signal response message from the base station, judging the current network operation state according to the time interval between the sent device call signal and the received device call signal response message, and judging that the network is busy if the time interval is larger than a set time threshold value, otherwise, judging that the network is idle.
In a specific embodiment, the method is applied to a communication device including a kernel layer and an application layer, and the control device is switched from a power saving mode to a sleep mode, and includes:
the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol so as to control each functional module in the application layer to be switched from a power saving mode to a sleep mode; the dormant signal is packaged in a binary data format and is sent in a character stream form.
Preferably, the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol, including:
the kernel layer of the control device performs object serialization on the dormant signal packaged in the binary data format, and sends the serialized dormant signal to the application layer in a character stream mode.
Based on the above disclosure, the sleep signal is packaged in binary data format, so that the sleep signal can be stored in the database in the form of binary byte codes, and the sleep parameter can be directly called in the database when the sleep parameter is called next time, thereby being convenient for quickly generating the sleep signal; and in the process of transmitting the sleep signal, the data can be directly transmitted into the network through simple conversion. When the sleep signal is transmitted, the input/output streams commonly used in Java language, i.e. byte stream and character stream, are adopted in this embodiment, and data can be conveniently transmitted between the kernel layer and the application layer through the byte stream and the character stream. However, before data transmission, it is cumbersome to implement because it is necessary to package the transmitted data according to defined rules before transmission and analyze the acquired data rules when receiving the data. If object serialization and object streaming are used to solve complex data transfer problems, the data packing and analysis process can be simplified. In order to reduce the pressure on communication channels, information storage and computing equipment as much as possible, and to improve the real-time performance of the system, the information data types used in the unified communication protocol system use binary data formats, and the generated binary data formats provide preconditions for instruction streams. In addition, in order to permanently store the byte sequence of the sleep signal on the hard disk and transmit the byte sequence of the sleep signal over the network, the generated byte sequence is written into a target output stream, i.e., an application layer, through Java, thereby improving data transmission efficiency.
And S2, if the equipment network is in a busy state, further judging the connection mode of the equipment and other communication equipment, determining the power consumption level of the equipment according to the connection mode, controlling the equipment to adjust the power saving mode to a working mode of a corresponding level according to the power consumption level, and shortening the transceiving period of the equipment to the keep-alive heartbeat detection packet.
In a specific embodiment, further determining a connection mode of the device and other communication devices, and determining a power consumption level of the device according to the connection mode includes:
(1) If other communication equipment connected with the current equipment only supports to establish connection with the current equipment in a passive mode, determining the power consumption level of the current equipment as a first power consumption level;
it should be noted that, in this embodiment, the passive connection refers to broadcasting a transmission message in the network by each communication device (including the current device), and after receiving the messages of the plurality of communication devices, the other communication terminals self-select the communication device with the best signal strength, for example, and send a connection request message to the selected communication device, and the selected communication device sends a connection request response message to the requesting communication device, so as to establish a communication connection between the two communication devices. The current communication device consumes a larger power, defined as a first power consumption level, because it is a connection or communication message actively initiated by the current device.
(2) If the other communication equipment connected with the current equipment only supports to establish connection with the current equipment in an active mode, determining the power consumption level of the current equipment as a second power consumption level; wherein the device power consumption of the first power consumption level is greater than the device power consumption of the second power consumption level.
It should be noted that, the active connection in this embodiment refers to broadcasting, by other communication devices, a Probe request message in a network, after receiving the Probe request message, the current device returns a Probe request response message to other communication devices, if the current device is selected by the other communication devices, the other communication devices send an identity verification request message to the current device, the current device sends an identity verification request response message to the other communication devices, the other communication devices send an association request message to the current terminal, and the current device sends an association request response message to the other communication devices, thereby establishing a connection. Since the current terminal device establishes a connection with other terminal devices in a passive response, the power consumption is smaller and is defined as a second power consumption level.
Preferably, the method further determines a connection mode of the device and other communication devices, determines a power consumption level of the device according to the connection mode, and further includes:
(1) If other communication equipment connected with the current equipment supports to establish connection with the current equipment in an active mode or a passive mode, further judging the duration of the busy state of the equipment network;
(2) If the equipment network is in a busy state for a second preset time period, determining that the power consumption level of the equipment is a third power consumption level; (3) If the equipment network is in a busy state for a third preset duration, determining that the power consumption level of the equipment is a fourth power consumption level; the third preset duration is smaller than the second preset duration, and the third power consumption level is larger than the fourth power consumption level.
It should be noted that, because the device network may not be continuously busy all the time, different power consumption levels may be set according to the duration of the busy state, so that different working modes are correspondingly set, so as to further set the working state of the communication device according to the actual requirement, and improve the applicability of the device.
In a specific embodiment, the power saving mode of the control device is adjusted to the working mode of the corresponding level according to the power consumption level, and the control device comprises:
(1) When the power consumption level is the first power consumption level, controlling the current equipment to be adjusted to a working mode of the first level from a power saving mode;
(2) When the power consumption level is the second power consumption level, controlling the current equipment to be adjusted to a working mode of the second level by the power saving equipment;
wherein the device power in the first level of operation mode is greater than the device power in the second level of operation mode.
Based on the above disclosure, in the embodiment of the present application, after the current communication device enters the power saving mode, according to different network operation states of the device, the device is controlled to switch to different modes, so that in a service idle state, the device can be in a low power consumption state, and when the service is busy, a working mode of a corresponding level is set according to different busy degrees and time, so that power consumption waste is avoided; the keep-alive heartbeat detection packet of the equipment is prolonged in the network idle state, so that the sending frequency of the detection packet in the idle state is reduced, and the power consumption is further reduced; the keep-alive heartbeat detection packet of the equipment is shortened in a network busy state, so that the continuous availability of long connection is ensured, and the stability of data transmission is further ensured.
A second aspect provides a control device for a communication apparatus, the device comprising:
the first control module is used for detecting the current network running state of the equipment after the current communication equipment enters the power saving mode to run, if the equipment network is in an idle state and lasts for a first preset duration, the control equipment is switched to a sleep mode from the power saving mode, and meanwhile, the transceiving period of the equipment for the keep-alive heartbeat detection packet is prolonged, wherein the keep-alive heartbeat detection packet is used for detecting the availability of long connection of the equipment;
and the second control module is used for further judging the connection mode of the equipment and other communication equipment if the equipment network is in a busy state, determining the power consumption level of the equipment according to the connection mode, controlling the equipment to be adjusted to a working mode of a corresponding level from a power saving mode according to the power consumption level, and shortening the transceiving period of the equipment to the keep-alive heartbeat detection packet.
In one possible design, the first control module is specifically configured to, when detecting a current network operation state of the device:
the control equipment transmits an interaction data packet to any other communication equipment based on a TP/TCP protocol, wherein the interaction data comprises a network state detection signal and/or an equipment call signal;
and the control equipment receives response signals returned by any other communication equipment to the interactive data packet, and judges the current network operation state according to the time difference between the receiving time of the response signals and the sending time of the interactive data packet.
In one possible design, when determining the current network operation state according to the time difference between the receiving time of the response signal and the sending time of the interaction data packet, the first control module is specifically configured to:
if the time difference between the receiving time of the response signal and the sending time of the interactive data packet is larger than a preset time interval, the current network is judged to be in a busy state, otherwise, the current network is judged to be in an idle state.
In one possible design, the apparatus is applied to a communication device including a kernel layer and an application layer, and when the control device is switched from a power saving mode to a sleep mode, the first control module is specifically configured to:
the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol so as to control each functional module in the application layer to be switched from a power saving mode to a sleep mode; the dormant signal is packaged in a binary data format and is sent in a character stream form.
In one possible design, when the kernel layer of the control device sends a sleep signal to the application layer based on the IP/TCP protocol, the first control module is specifically configured to:
the kernel layer of the control device performs object serialization on the dormant signal packaged in the binary data format, and sends the serialized dormant signal to the application layer in a character stream mode.
In one possible design, when further judging the connection mode of the device and other communication devices, and determining the power consumption level of the device according to the connection mode, the second control module is specifically configured to:
if other communication equipment connected with the current equipment only supports to establish connection with the current equipment in a passive mode, determining the power consumption level of the current equipment as a first power consumption level;
if the other communication equipment connected with the current equipment only supports to establish connection with the current equipment in an active mode, determining the power consumption level of the current equipment as a second power consumption level;
wherein the device power consumption of the first power consumption level is greater than the device power consumption of the second power consumption level.
In one possible design, when further judging the connection mode of the device and other communication devices, and determining the power consumption level of the device according to the connection mode, the first control module is further specifically configured to:
if other communication equipment connected with the current equipment supports to establish connection with the current equipment in an active mode or a passive mode, further judging the duration of the busy state of the equipment network;
if the equipment network is in a busy state for a second preset time period, determining that the power consumption level of the equipment is a third power consumption level; if the equipment network is in a busy state for a third preset duration, determining that the power consumption level of the equipment is a fourth power consumption level; the third preset duration is smaller than the second preset duration.
In one possible design, when the power saving mode of the control device is adjusted to the operation mode of the corresponding level according to the power consumption level, the second control module is specifically configured to:
when the power consumption level is the first power consumption level, controlling the current equipment to be adjusted to a working mode of the first level from a power saving mode;
when the power consumption level is the second power consumption level, controlling the current equipment to be adjusted to a working mode of the second level by the power saving equipment;
wherein the device power in the first level of operation mode is greater than the device power in the second level of operation mode.
The working process, working details and technical effects of the foregoing apparatus provided in the second aspect of the present embodiment may be referred to as the method described in the foregoing first aspect or any one of the possible designs of the first aspect, which are not described herein again.
In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver in communication with each other in sequence, wherein the memory is adapted to store a computer program and the transceiver is adapted to receive and send messages, and the processor is adapted to read the computer program and to execute the control method for a communication device as described in any one of the possible designs of the first aspect.
By way of specific example, the Memory may include, but is not limited to, random-Access Memory (RAM), read-Only Memory (ROM), flash Memory (Flash Memory), first-in first-out Memory (First Input First Output, FIFO), and/or first-in last-out Memory (First Input Last Output, FILO), etc.; the processor may not be limited to use with a microprocessor of the STM32F105 family; the transceiver may be, but is not limited to, a WiFi (wireless fidelity) wireless transceiver, a bluetooth wireless transceiver, a GPRS (General Packet Radio Service, general packet radio service technology) wireless transceiver, and/or a ZigBee (ZigBee protocol, low power local area network protocol based on the ieee802.15.4 standard), etc. In addition, the computer device may include, but is not limited to, a power module, a display screen, and other necessary components.
The working process, working details and technical effects of the foregoing computer device provided in the third aspect of the present embodiment may be referred to the above first aspect or any one of the possible designs of the first aspect, which are not described herein.
In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon which, when executed on a computer, perform a control method for a communication device as described in any one of the possible designs of the first aspect.
The computer readable storage medium refers to a carrier for storing data, and may include, but is not limited to, a floppy disk, an optical disk, a hard disk, a flash Memory, and/or a Memory Stick (Memory Stick), etc., where the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
The working process, working details and technical effects of the foregoing computer readable storage medium provided in the fourth aspect of the present embodiment may refer to the method as described in the foregoing first aspect or any one of the possible designs of the first aspect, which are not repeated herein.
In a fifth aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the control method for a communication device as described in any one of the possible designs of the first aspect.
The working process, working details and technical effects of the foregoing computer program product containing instructions provided in the fifth aspect of the present embodiment may be referred to as the method described in the foregoing first aspect or any one of the possible designs of the first aspect, which are not repeated herein.
Finally, it should be noted that: the foregoing description is only of the preferred embodiments of the invention and is not intended to limit the scope of the invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1.一种通信设备用控制方法,其特征在于,所述方法包括:1. A control method for communication equipment, characterized in that the method comprises: 在当前通信设备进入省电模式运行后,检测设备的当前网络运行状态,若设备网络处于空闲状态且持续了第一预设时长,则控制设备由省电模式切换至休眠模式,同时将设备对保活心跳探测包的收发周期进行延长,其中,所述保活心跳探测包用于检测设备长连接的可用性;After the current communication device enters the power-saving mode, the current network operation status of the device is detected. If the network of the device is idle for the first preset time, the device is controlled to switch from the power-saving mode to the sleep mode, and the device is connected to the sleep mode at the same time. The sending and receiving cycle of the keep-alive heartbeat detection packet is extended, wherein the keep-alive heartbeat detection packet is used to detect the availability of the long connection of the device; 若设备网络处于繁忙状态,则进一步判断设备与其他通信设备的连接方式,根据连接方式确定设备的功耗等级,并根据功耗等级控制设备由省电模式调整至对应等级的工作模式,同时将设备对保活心跳探测包的收发周期进行缩短。If the device network is in a busy state, further judge the connection mode between the device and other communication devices, determine the power consumption level of the device according to the connection mode, and control the device from the power saving mode to the corresponding level of working mode according to the power consumption level. The device shortens the sending and receiving cycle of keep-alive heartbeat detection packets. 2.根据权利要求1所述的通信设备用控制方法,其特征在于,检测设备的当前网络运行状态,包括:2. The control method for communication equipment according to claim 1, wherein the detection of the current network operation status of the equipment comprises: 控制设备基于TP/TCP协议向其他任一通信设备发送交互数据包,其中,所述交互数据包括网络状态探测信号和/或设备呼叫信号;The control device sends an interaction data packet to any other communication device based on the TP/TCP protocol, wherein the interaction data includes a network status detection signal and/or a device call signal; 控制设备接收其他任一通信设备返回的对所述交互数据包的响应信号,并根据所述响应信号的接收时间与所述交互数据包的发送时间之间的时间差,判断当前网络运行状态。The control device receives a response signal to the interaction data packet returned by any other communication device, and judges the current network operation status according to the time difference between the time of receiving the response signal and the time of sending the interaction data packet. 3.根据权利要求2所述的通信设备用控制方法,其特征在于,根据所述响应信号的接收时间与所述交互数据包的发送时间之间的时间差,判断当前网络运行状态,包括:3. The control method for communication equipment according to claim 2, wherein the current network operation status is judged according to the time difference between the receiving time of the response signal and the sending time of the interaction data packet, including: 若所述响应信号的接收时间与所述交互数据包的发送时间之间的时间差大于预设的时间间隔,则判定当前网络处于繁忙状态,否则判定当前网络处于空闲状态。If the time difference between the receiving time of the response signal and the sending time of the interaction data packet is greater than a preset time interval, it is determined that the current network is in a busy state; otherwise, it is determined that the current network is in an idle state. 4.根据权利要求1所述的通信设备用控制方法,其特征在于,所述方法应用于包含内核层和应用层的通信设备,控制设备由省电模式切换至休眠模式,包括:4. The method for controlling a communication device according to claim 1, wherein the method is applied to a communication device including a kernel layer and an application layer, and the control device is switched from a power-saving mode to a sleep mode, comprising: 控制设备的内核层基于IP/TCP协议向应用层发送休眠信号,以便控制应用层中的各功能模块由省电模式切换至休眠模式;其中,所述休眠信号采用二进制数据格式进行封装,并以字符流形式进行发送。The kernel layer of the control device sends a dormancy signal to the application layer based on the IP/TCP protocol, so as to control each functional module in the application layer to switch from the power saving mode to the dormancy mode; wherein, the dormancy signal is encapsulated in a binary data format and is represented by Send as a stream of characters. 5.根据权利要求4所述的通信设备用控制方法,其特征在于,控制设备的内核层基于IP/TCP协议向应用层发送休眠信号,包括:5. The control method for communication equipment according to claim 4, wherein the kernel layer of the control equipment sends a dormancy signal to the application layer based on the IP/TCP protocol, comprising: 控制设备的内核层将二进制数据格式封装的休眠信号进行对象序列化,并将序列化的休眠信号以字符流形式发送至应用层。The kernel layer of the control device performs object serialization on the dormancy signal encapsulated in the binary data format, and sends the serialized dormancy signal to the application layer in the form of a character stream. 6.根据权利要求1所述的通信设备用控制方法,其特征在于,进一步判断设备与其他通信设备的连接方式,根据连接方式确定设备的功耗等级,包括:6. The control method for communication equipment according to claim 1, characterized in that, further judging the connection mode between the equipment and other communication equipment, and determining the power consumption level of the equipment according to the connection mode, including: 若与当前设备连接的其他通信设备仅支持以被动方式与当前设备建立连接,则确定当前设备的功耗等级为第一功耗等级;If other communication devices connected to the current device only support establishing a connection with the current device in a passive manner, determine that the power consumption level of the current device is the first power consumption level; 若与当前设备连接的其他通信设备仅支持以主动方式与当前设备建立连接,则确定当前设备的功耗等级为第二功耗等级;If other communication devices connected to the current device only support establishing a connection with the current device in an active manner, determine that the power consumption level of the current device is the second power consumption level; 其中,第一功耗等级的设备功耗大于第二功耗等级的设备功耗。Wherein, the power consumption of devices at the first power consumption level is greater than the power consumption of devices at the second power consumption level. 7.根据权利要求6所述的通信设备用控制方法,其特征在于,进一步判断设备与其他通信设备的连接方式,根据连接方式确定设备的功耗等级,还包括:7. The control method for communication equipment according to claim 6, characterized in that, further judging the connection mode between the equipment and other communication equipment, and determining the power consumption level of the equipment according to the connection mode, further comprising: 若与当前设备连接的其他通信设备支持以主动方式或被动方式与当前设备建立连接,则进一步判断设备网络处于繁忙状态的持续时长;If other communication devices connected to the current device support establishing a connection with the current device in an active or passive manner, further determine the duration of the busy state of the device network; 若设备网络处于繁忙状态持续了第二预设时长,则确定设备的功耗等级为第三功耗等级;若设备网络处于繁忙状态持续了第三预设时长,则确定设备的功耗等级为第四功耗等级;其中,所述第三预设时长小于所述第二预设时长。If the device network is in a busy state for a second preset duration, determine that the power consumption level of the device is the third power consumption level; if the device network is in a busy state for a third preset duration, then determine that the power consumption level of the device is A fourth power consumption level; wherein, the third preset duration is shorter than the second preset duration. 8.根据权利要求7所述的通信设备用控制方法,其特征在于,根据功耗等级控制设备由省电模式调整至对应等级的工作模式,包括:8. The control method for communication equipment according to claim 7, characterized in that, according to the power consumption level, the control equipment is adjusted from the power saving mode to the working mode of the corresponding level, including: 当功耗等级为第一功耗等级时,控制当前设备由省电模式调整至第一等级的工作模式;When the power consumption level is the first power consumption level, control the current device to adjust from the power saving mode to the first level working mode; 当功耗等级为第二功耗等级时,控制当前设备由省电设备调整至第二等级的工作模式;When the power consumption level is the second power consumption level, control the current device to adjust from the power saving device to the working mode of the second level; 其中,第一等级的工作模式下的设备功率大于第二等级模式下的设备功率。Wherein, the device power in the first-level working mode is greater than that in the second-level mode. 9.一种通信设备用控制装置,其特征在于,所述装置包括:9. A control device for communication equipment, characterized in that the device comprises: 第一控制模块,用于在当前通信设备进入省电模式运行后,检测设备的当前网络运行状态,若设备网络处于空闲状态且持续了第一预设时长,则控制设备由省电模式切换至休眠模式,同时将设备对保活心跳探测包的收发周期进行延长,其中,所述保活心跳探测包用于检测设备长连接的可用性;The first control module is used to detect the current network operation state of the device after the current communication device enters the power saving mode, and if the device network is in an idle state and lasts for a first preset time, the control device switches from the power saving mode to Dormant mode, and at the same time extend the sending and receiving cycle of the device to the keep-alive heartbeat detection packet, wherein the keep-alive heartbeat detection packet is used to detect the availability of the long connection of the device; 第二控制模块,用于若设备网络处于繁忙状态,则进一步判断设备与其他通信设备的连接方式,根据连接方式确定设备的功耗等级,并根据功耗等级控制设备由省电模式调整至对应等级的工作模式,同时将设备对保活心跳探测包的收发周期进行缩短。The second control module is used to further determine the connection mode between the device and other communication devices if the network of the device is in a busy state, determine the power consumption level of the device according to the connection mode, and control the device to adjust from the power saving mode to the corresponding mode according to the power consumption level. Level working mode, and at the same time shorten the sending and receiving cycle of the device to the keep-alive heartbeat detection packet. 10.一种计算机设备,其特征在于,包括依次通信相连的存储器、处理器和收发器,其中,所述存储器用于存储计算机程序,所述收发器用于收发消息,所述处理器用于读取所述计算机程序,执行如权利要求1-8任意一项所述的通信设备用控制方法。10. A computer device, characterized in that it includes a memory, a processor, and a transceiver connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read The computer program executes the communication device control method according to any one of claims 1-8.
CN202310027253.7A 2023-01-09 2023-01-09 A control method, device and device for communication equipment Pending CN116170900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310027253.7A CN116170900A (en) 2023-01-09 2023-01-09 A control method, device and device for communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310027253.7A CN116170900A (en) 2023-01-09 2023-01-09 A control method, device and device for communication equipment

Publications (1)

Publication Number Publication Date
CN116170900A true CN116170900A (en) 2023-05-26

Family

ID=86412620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310027253.7A Pending CN116170900A (en) 2023-01-09 2023-01-09 A control method, device and device for communication equipment

Country Status (1)

Country Link
CN (1) CN116170900A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119155339A (en) * 2024-09-12 2024-12-17 北京奇艺世纪科技有限公司 Connection keep-alive method and device
CN120583496A (en) * 2025-07-30 2025-09-02 浙江华樽科技有限公司 Communication terminal and low power consumption control method and system thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090239574A1 (en) * 2008-03-18 2009-09-24 Hussain Farooq S Power management for multimode wireless communication device
CN107272872A (en) * 2017-05-31 2017-10-20 广东欧珀移动通信有限公司 Electricity-saving control method and Related product
CN107526425A (en) * 2016-06-21 2017-12-29 北京搜狗科技发展有限公司 A kind of electricity saving method, device and electronic equipment
CN109803360A (en) * 2019-02-13 2019-05-24 Oppo广东移动通信有限公司 WiFi sleep control method and device, electronic equipment and storage medium
CN110505679A (en) * 2019-08-15 2019-11-26 Oppo广东移动通信有限公司 Power consumption control method and device of communication terminal and storage medium
CN113993195A (en) * 2021-10-22 2022-01-28 杭州研极微电子有限公司 Method and device for reducing power consumption of communication equipment in dormant state

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090239574A1 (en) * 2008-03-18 2009-09-24 Hussain Farooq S Power management for multimode wireless communication device
CN107526425A (en) * 2016-06-21 2017-12-29 北京搜狗科技发展有限公司 A kind of electricity saving method, device and electronic equipment
CN107272872A (en) * 2017-05-31 2017-10-20 广东欧珀移动通信有限公司 Electricity-saving control method and Related product
CN109803360A (en) * 2019-02-13 2019-05-24 Oppo广东移动通信有限公司 WiFi sleep control method and device, electronic equipment and storage medium
CN110505679A (en) * 2019-08-15 2019-11-26 Oppo广东移动通信有限公司 Power consumption control method and device of communication terminal and storage medium
CN113993195A (en) * 2021-10-22 2022-01-28 杭州研极微电子有限公司 Method and device for reducing power consumption of communication equipment in dormant state

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119155339A (en) * 2024-09-12 2024-12-17 北京奇艺世纪科技有限公司 Connection keep-alive method and device
CN119155339B (en) * 2024-09-12 2025-11-21 北京奇艺世纪科技有限公司 Connection keep-alive method and device
CN120583496A (en) * 2025-07-30 2025-09-02 浙江华樽科技有限公司 Communication terminal and low power consumption control method and system thereof

Similar Documents

Publication Publication Date Title
CN113438719B (en) Energy-saving method and device and readable storage medium
CN1327717C (en) Mobile communication system, method, mobile terminals and base stations
JP2015228654A (en) Power saving using data fetch time, data end instruction, and more data affirmative acknowledgement
CN116170900A (en) A control method, device and device for communication equipment
CN109743717B (en) Data processing method and device, terminal equipment and storage medium
CN114828168B (en) Method and device for monitoring wireless link, wireless terminal and storage medium
WO2018001281A1 (en) Transition method and device for transmission mode
WO2023030449A1 (en) Communication method and apparatus
CN118647072A (en) Energy-saving network system information transmission method and device
US8804541B2 (en) Method for managing mobile radio resources for package receiving enhancement
CN101534517A (en) Method, system and device for measuring receiving channel power
CN106658686A (en) Data forwarding method and access device
KR20190129219A (en) Method And Apparatus for Providing Power Saving Optimization
CN117356162A (en) Reduce latency and save power in sidechain communications
CN109673044A (en) Communication control method, chip, the gateway apparatus of chip
CN118509956A (en) Working state conversion method and device, terminal and network side equipment
CN111416682B (en) Data transmission method and communication equipment
CN111372301A (en) Mobile communication terminal and mobile communication terminal communication technology selection method
CN119364558B (en) A method for establishing a wireless connection, an access point (AP), a standby point (STA), and a wireless communication system.
WO2025231740A1 (en) Ttlm negotiation method, communication device, and communication system
CN113840356B (en) Control method and device for wireless access equipment and wireless access equipment
Yang Modeling and Optimizing the 5G RRC State Machine to Reduce Terminal Energy Consumption
WO2025222387A1 (en) Power saving negotiation methods, communication devices and communication system
CN120584524A (en) Equipment power saving management method, communication equipment and communication system
WO2025010739A1 (en) Data frame transmission method, station device, access point device, and communication system

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