CN116170900A - A control method, device and device for communication equipment - Google Patents
A control method, device and device for communication equipment Download PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/25—Maintenance of established connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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
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)
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)
| 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)
| 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 |
-
2023
- 2023-01-09 CN CN202310027253.7A patent/CN116170900A/en active Pending
Patent Citations (6)
| 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)
| 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 |