CN113517987B - Dormancy method, dormancy device, gateway device and storage medium - Google Patents

Dormancy method, dormancy device, gateway device and storage medium Download PDF

Info

Publication number
CN113517987B
CN113517987B CN202110758872.4A CN202110758872A CN113517987B CN 113517987 B CN113517987 B CN 113517987B CN 202110758872 A CN202110758872 A CN 202110758872A CN 113517987 B CN113517987 B CN 113517987B
Authority
CN
China
Prior art keywords
message
time
sleep
mode
entering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110758872.4A
Other languages
Chinese (zh)
Other versions
CN113517987A (en
Inventor
向波
董浩
朱余浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN202110758872.4A priority Critical patent/CN113517987B/en
Publication of CN113517987A publication Critical patent/CN113517987A/en
Application granted granted Critical
Publication of CN113517987B publication Critical patent/CN113517987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • 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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application is applicable to the field of Internet of things and provides a dormancy method, a dormancy device, gateway equipment and a storage medium. The sleep method includes instructing the gateway device to enter a sleep mode upon detection of a terminate session message. Entering sleep mode includes entering a low power mode, whereby the power consumption of the gateway device may be reduced. The method comprises the steps of entering a dormant mode, setting a connection message processing function to be in a registration state, generating a message for establishing connection when detecting that data to be transmitted exist, triggering the connection message processing function to exit the dormant mode according to the message for establishing connection, and further not affecting normal communication of gateway equipment when the gateway equipment is in the dormant mode.

Description

Dormancy method, dormancy device, gateway device and storage medium
Technical Field
The application belongs to the field of Internet of things, and particularly relates to a dormancy method, a dormancy device, gateway equipment and a storage medium.
Background
With the development of communication technology, the internet of things is increasingly used. In the internet of things, gateway devices are connectors between different intelligent devices, and the communication quality of a gateway determines the overall quality of other intelligent devices in communication with the gateway devices. In the practical application process, the long-term use of the gateway equipment can increase the energy consumption of the gateway equipment and influence the communication quality.
Disclosure of Invention
In view of this, the embodiments of the present application provide a dormancy method, a dormancy apparatus, a gateway device, and a storage medium, which can reduce the energy consumption of the gateway device without affecting normal communication.
A first aspect of an embodiment of the present application provides a dormancy method, applied to a gateway device, including:
if a message for terminating the session is detected, indicating the gateway equipment to enter a sleep mode, wherein entering the sleep mode comprises entering a low-power mode, and setting a connection message processing function to be in a registration state;
and if the data to be transmitted is detected, generating a message for establishing connection, triggering the connection message processing function to exit the sleep mode according to the message for establishing connection.
In one possible implementation manner, before the message for terminating the session is detected and indicates the gateway device to enter the sleep mode, the method further includes:
if the first message is detected to be in accordance with the point-to-point protocol on the Ethernet and is in accordance with the first format, determining that the first message is a session termination message.
In one possible implementation, the method further includes:
and counting the time for entering the sleep mode, and determining the restarting time according to the time for entering the sleep mode.
In one possible implementation manner, the determining the restart time according to the time of entering the sleep mode includes:
and determining the restarting time according to the set restarting period and the time for entering the sleep mode.
In one possible implementation manner, the determining the restart time according to the time of entering the sleep mode includes:
and determining the time with the longest dormancy time according to the time for entering the dormancy mode and the time for exiting the dormancy mode in the preset time period, and determining the restarting time according to the time with the longest dormancy time.
In one possible implementation manner, after the determining the restart time according to the time of entering the sleep mode, the method further includes:
and restarting the gateway equipment if the gateway equipment is detected to be in the dormant mode at the restarting time.
In one possible implementation, the method further includes:
and at the restarting time, if the gateway equipment is detected not to be in the dormant mode and the restarting identification does not exist, setting the restarting identification.
A second aspect of an embodiment of the present application provides a sleep device, including:
the gateway device comprises a dormant module, a message processing module and a message processing module, wherein the dormant module is used for indicating the gateway device to enter a dormant mode if detecting a message for terminating a session, the entering the dormant mode comprises entering a low-power consumption mode, and setting a connection message processing function to be in a registration state;
and the detection module is used for generating a message for establishing connection if the data to be transmitted are detected, triggering the connection message processing function to exit the sleep mode according to the message for establishing connection.
A third aspect of the embodiments of the present application provides a gateway device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the dormancy method according to the first aspect described above when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the sleep method as described in the first aspect above.
A fifth aspect of embodiments of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the sleep method according to any one of the first aspects above.
Compared with the prior art, the embodiment of the application has the beneficial effects that: upon detecting the terminate session message, the gateway device is instructed to enter a sleep mode. Entering sleep mode includes entering a low power mode, whereby the power consumption of the gateway device may be reduced. The method comprises the steps of entering a dormant mode, setting a connection message processing function to be in a registration state, generating a message for establishing connection when detecting that data to be transmitted exist, triggering the connection message processing function to exit the dormant mode according to the message for establishing connection, and further not affecting normal communication of gateway equipment when the gateway equipment is in the dormant mode.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flow chart of an implementation of a sleep method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a sleep management module provided in an embodiment of the present application;
FIG. 3 is a flow chart of a sleep method according to an embodiment of the present application;
FIG. 4 is a flowchart of a reboot method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a sleep device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a gateway device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to illustrate the technical solutions described in the present application, the following description is made by specific examples.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
In the existing internet of things, the energy consumption of gateway equipment can be increased when the gateway equipment is used for a long time, and the communication quality is affected. To this end, the present application provides a sleep method that instructs a gateway device to enter a sleep mode when a terminating session message is detected. Entering the sleep mode comprises entering a low-power consumption mode, setting a connection message processing function as a registration state, generating a connection establishment message when detecting that data to be transmitted exist, triggering the connection message processing function to exit the sleep mode according to the connection establishment message. Therefore, the energy consumption of the gateway equipment can be reduced, and the gateway equipment can exit from the sleep mode when data transmission is required, so that the normal communication of the gateway equipment is not affected.
The following is an exemplary description of the sleep method provided in the present application.
Referring to fig. 1, a sleep method provided in an embodiment of the present application includes:
s101: and if the message for terminating the session is detected, indicating the gateway equipment to enter a dormant mode, wherein entering the dormant mode comprises entering a low-power mode, and setting a connection message processing function into a registration state.
The message for terminating the session refers to a message for terminating a Point-to-Point protocol (PPPoE) session on ethernet. Entering the low power mode refers to turning off all functions unrelated to PPPoE, such as turning off TR069, an information service block, a Digital Living NETWORK ALLIANCE (DLNA), an access control list (Access Control Lists, ACL), port forwarding, and the like, and adjusting related chips such as a main chip, a portal chip, a wireless chip, and the like to the low power mode. The connection message handling function is used to handle messages that establish a connection. The gateway device may also include other message processing functions, such as a message processing function for responding to user operations on controls, and a message processing function for responding to messages such as power, network status, etc., which upon entering sleep mode may indicate that the other message function is in a logged off state.
In an embodiment, entering the sleep mode includes logging off other message processing functions not related to receiving the message for establishing the connection, so that the connection message processing function is in a registration state, and only the message for establishing the connection can be processed, other messages are not processed, and energy consumption of the gateway device is saved while normal communication of the gateway device is maintained.
In an embodiment, entering the sleep mode includes setting the wake-up message handling function to a registration state in addition to setting the connection message handling function to the registration state, where the wake-up message handling function is configured to receive a wake-up instruction, and instruct the gateway device to exit the sleep mode according to the wake-up instruction, so that a wake-up operation of the user can be responded in time. The wake-up instruction may be an operation of touching the control by the user, or may be a wake-up instruction sent by other electronic devices.
In one embodiment, the gateway device includes a PPPoE module and a sleep management module. The PPPoE module is used for carrying out PPPoE session with other electronic equipment. As shown in fig. 2, the sleep management module includes a message receiving module 21, a function control module 22, a chip control module 23, and a message control module 24. The message receiving module 21 is configured to receive a session termination message sent by the PPPoE module, and after receiving the session termination message, the message receiving module 21 sends the session termination message to the function control module 22. The function control module 22 closes the functions of TR069, information service block, DLNA, ACL, port forwarding, etc. after determining that the received message is a message for terminating the session, and after the closing is successful, sends the message for terminating the session to the chip control module 23, and after determining that the received message is a message for terminating the session, the chip control module 23 adjusts the main chip, the network port chip, and the wireless chip into a low power mode, and after the adjustment is successful, sends the message for terminating the session to the message control module 24. After the message control module 24 determines that the received message is a message to terminate the session, it logs off other message processing functions not associated with receiving a message to establish a connection.
In an embodiment, after receiving the first message, the gateway device detects the first message, and if it is detected that the first message conforms to a point-to-point protocol on the ethernet and the first message conforms to the first format, determines that the first message is a session termination message, so as to avoid the gateway device from making an erroneous response. The first format is a preset format consistent with a message for terminating the session, for example, a format including a PADT message. Illustratively, the message receiving module 21 includes a PPPoE message processing function, which is configured to detect the first message, and if the first message is detected as being sent by the PPPoE module, the PPPoE protocol is met, and if the first message is consistent with the first format, the session message is terminated by the first message. After determining that the first message is a message for terminating the session, the message receiving module 21 sends the message for terminating the session to the function control module 22, otherwise, the message is not sent, and the gateway device still maintains a normal running state.
In one possible implementation, when the gateway device does not have data to be transmitted, the PPPoE link is in an idle state, and when the PPPoE link is in the idle state for a set period of time, the gateway device terminates the PPPoE session and generates a message to terminate the session.
S102: and if the data to be transmitted is detected, generating a message for establishing connection, triggering the connection message processing function to exit the sleep mode according to the message for establishing connection.
Specifically, when the PPPoE module of the gateway device detects that data to be transmitted exists, a PPPoE call is initiated, and a PPPoE session is established with the electronic device corresponding to the data to be transmitted, so as to transmit the data to be transmitted, and meanwhile, a message for establishing connection is generated. The connection message processing function in the message receiving module 21 exits the sleep mode after receiving a message to establish a connection. Illustratively, the message receiving module 21 detects a received message, and after detecting a message to establish a connection, triggers the connection message handling function to send the message to establish a connection to the function control module 22. After determining that the received message is a message for establishing a connection, the function control module 22 opens functions such as TR069, information service block, DLNA, ACL, port forwarding, and the like, and after successful opening, sends the message for establishing a connection to the chip control module 23. The chip control module 23 closes the low power modes of the main chip, the network port chip and the wireless chip after determining that the received message is a message for establishing connection, and sends the message for establishing connection to the message control module 24 after the closing is successful. The message control module 24 re-registers all message processing functions that were de-registered in sleep mode after receiving a message to establish a connection.
In the sleep method provided in an embodiment of the present application, as shown in fig. 3, after an intelligent sleep instruction is obtained, an intelligent sleep mode is entered. In the intelligent sleep mode, PPPoE message processing functions are first registered with the message receiving module. The PPPoE message processing function comprises a connection message processing function and a disconnection message processing function, wherein the connection message processing function is used for receiving a message for establishing connection, triggering corresponding operation according to the message for establishing connection, the disconnection message processing function is used for receiving a message for terminating a session, and triggering corresponding operation according to the message for terminating the session. After receiving the message sent by the PPPoE module, the message receiving module firstly judges the type of the message according to the format of the message, if the format of the message is a first format, the message is a message for terminating the session, and if the format of the message is a second format, the message is a message for establishing connection. If the message is the message for terminating the session, triggering the disconnected message processing function to send the message for terminating the session to the function control module.
The function control module closes all functions irrelevant to PPPoE, and sends a message for terminating the session to the chip control module after closing is successful. The chip control module adjusts the relevant chip into a low power consumption mode, and sends the message of terminating the session to the message control module after the adjustment is successful, the message control module cancels other message processing functions irrelevant to the message of receiving the connection establishment, and monitors the message of establishing the connection. If the message is a message for establishing connection, triggering a connection message processing function to send the message for establishing connection to a function control module. The function control module starts all the functions closed in the sleep mode, and sends a message for establishing connection to the chip control module after the start is successful. The chip control module closes the low power consumption mode of the related chip, and sends the message for establishing connection to the message control module after closing is successful, the message control module re-registers all message processing functions logged off in the sleep mode, and the gateway equipment enters the normal operation mode.
In the above embodiment, the gateway device is instructed to enter the sleep mode when the terminating session message is detected. Entering sleep mode includes entering a low power mode, whereby the power consumption of the gateway device may be reduced. The method comprises the steps of entering a dormant mode, setting a connection message processing function to be in a registration state, generating a message for establishing connection when detecting that data to be transmitted exist, triggering the connection message processing function to exit the dormant mode according to the message for establishing connection, and further not affecting normal communication of gateway equipment when the gateway equipment is in the dormant mode.
In an embodiment, the gateway device counts the time of entering the sleep mode each time, and determines the restart time according to the time of entering the sleep mode, so that the gateway device restarts in the sleep mode to clear the cache, prevent the gateway device from having too high temperature, and improve the internet surfing speed.
In one possible implementation, the gateway device determines the restart time according to a set restart period and a time to enter the sleep mode. Specifically, the gateway device counts the time of entering the sleep mode with the maximum probability according to the time of entering the sleep mode each time, and determines the restarting time of each restarting period by combining with the restarting period, and restarts the gateway device when the restarting time is reached. The restart period may be set by default or set by a user. Preferably, the time of exiting the sleep mode can be counted at the same time to obtain the sleep time period with the highest probability, and the restarting period is combined to determine the restarting time, so that the gateway equipment is prevented from being restarted when the sleep time is shorter, and the normal use of the gateway equipment is prevented from being influenced. For example, counting the time of each entry into sleep mode and the time of exit from sleep mode within one month yields the highest probability of sleep time period of 0:00-5:00 per day. If the restart period is 7 days, the gateway device is restarted between 0:00 and 5:00 of the 7 th day after the last restart, which may be a designated time or any time within the time period, so as to avoid restarting when the gateway device is normally used.
In other embodiments, the restart period may also be determined by the gateway device according to the usage of the gateway device. For example, the gateway device records the session time each time, counts the session frequency, if the session frequency in the current time period is higher, sets a shorter restart period, and clears the cache in time. If the session frequency in the current time period is higher, a longer restarting period is set so as to reduce the energy consumption of the gateway equipment.
In one possible implementation manner, the gateway device determines a period with the longest sleep duration according to the time for entering the sleep mode and the time for exiting the sleep mode in a preset period, and determines a restart time according to the period with the longest sleep duration, so as to avoid restarting the device when the gateway device is normally used. For example, it is counted that the gateway device enters the sleep mode at 13:00 noon every day, exits the sleep mode at 14:00, enters the sleep mode at 0:00 every day, and exits the sleep mode at 5:00, the longest sleep period is a period between 0:00-5:00 a day, and the restart time is selected between 0:00-5:00 a day. The restart may be performed at the start time of the period of the longest sleep period, or at any time of the period of the longest sleep period.
In an embodiment, when the restart time is reached, the gateway device first detects the current operation mode, and if the current operation mode is the sleep mode, restarts the gateway device. If the current working mode is the normal operation mode, maintaining the normal operation of the gateway equipment, and not restarting. Preferably, at the restart time, if the gateway device is in the normal operation mode, determining whether a restart identifier exists, if the restart identifier does not exist, setting the restart identifier, and if the restart identifier is detected to exist when the gateway device enters the sleep mode next time, restarting the gateway device. If the restart identifier exists, which means that the gateway device does not restart successfully when the last time reaches the restart time, the restart identifier is reserved, and if the restart identifier is detected to exist when the gateway device enters the sleep mode next time, the gateway device is restarted, so that long-time operation of the gateway device caused by missing the sleep time can be prevented. The restart identifier may be an identifier such as a letter Y or a number 1.
In an embodiment, when the restart period is reached, if the gateway device is in the sleep mode, the last start time of the gateway device is obtained, and if the time interval between the last start time and the current time is smaller than the restart period, the gateway device is not restarted, so that the problem of unstable system caused by frequent switching on and off can be prevented.
In an embodiment, after the restart time is determined, the time for entering the sleep mode and the time for exiting the sleep mode are counted again according to a preset period to redetermine the restart time, so that the set restart time accords with the use habit of a user, and the user experience is improved.
In an embodiment, in a process of restarting the gateway device, if it is detected that there is data to be transmitted, after the restart is ended, a PPPoE call is initiated, and a PPPoE session is established with an electronic device corresponding to the data to be transmitted, so as to transmit the data to be transmitted.
In other possible implementation manners, if the gateway device receives the instruction of automatic upgrade, after determining the period with the longest sleep time and the restart time, if it detects that a system upgrade task exists, the gateway device performs system upgrade when the current period is in the period with the longest sleep time and the current period is not the restart time, so that normal use of the gateway device is not affected, and the system upgrade is automatically completed.
In the restart method provided in an embodiment of the present application, as shown in fig. 4, after an intelligent restart instruction is detected, an intelligent restart mode is entered. In the intelligent restart mode, it is first determined whether a restart marker is present. And if the restart identification does not exist, registering a dormant message processing function, wherein the dormant message processing function is used for receiving a message for entering the dormant mode and a message for exiting the dormant mode so as to determine the time for entering the dormant mode and the time for exiting the dormant mode. The gateway device counts each sleep period according to the time of entering the sleep mode and the time of exiting the sleep mode each time, and then determines the date and time point of restarting according to each sleep period and the set restarting period. And after the date and time point of restarting is reached, judging the current working mode of the gateway equipment, and if the current working mode is the dormant mode, clearing a restarting identifier and restarting the gateway equipment. If the current working mode is a normal operation mode, judging whether a restarting identifier exists or not, if the restarting identifier does not exist, setting the restarting identifier, restarting the gateway equipment when the next time enters the sleep mode, if the restarting identifier exists, reserving the restarting identifier, and restarting the gateway equipment when the next time enters the sleep mode. After entering the intelligent restarting mode, if the restarting identifier exists, directly entering the judging step of the current working mode of the gateway equipment.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the sleep method described in the above embodiments, fig. 5 shows a block diagram of the sleep device provided in the embodiment of the present application, and for convenience of explanation, only the portion related to the embodiment of the present application is shown.
As shown in fig. 5, the sleep device includes,
a sleep module 51, configured to instruct the gateway device to enter a sleep mode if a message for terminating a session is detected, where entering the sleep mode includes entering a low power mode, and setting a connection message processing function to a registration state;
and the detection module 52 is configured to generate a connection establishment message if it is detected that there is data to be transmitted, trigger the connection message processing function to exit the sleep mode according to the connection establishment message.
In one possible implementation, the sleep module 51 is further configured to:
if the first message is detected to be in accordance with the point-to-point protocol on the Ethernet and is in accordance with the first format, determining that the first message is a session termination message.
In one possible implementation, the dormancy apparatus further includes a restart module configured to:
and counting the time for entering the sleep mode, and determining the restarting time according to the time for entering the sleep mode.
In one possible implementation, the restart module is further configured to:
and determining the restarting time according to the set restarting period and the time for entering the sleep mode.
In one possible implementation, the restart module is further configured to:
and determining the time with the longest dormancy time according to the time for entering the dormancy mode and the time for exiting the dormancy mode in the preset time period, and determining the restarting time according to the time with the longest dormancy time.
In one possible implementation, the restart module is further configured to:
and restarting the gateway equipment if the gateway equipment is detected to be in the dormant mode at the restarting time.
In one possible implementation, the restart module is further configured to:
and at the restarting time, if the gateway equipment is detected not to be in the dormant mode and the restarting identification does not exist, setting the restarting identification.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Fig. 6 is a schematic structural diagram of a gateway device according to an embodiment of the present application. As shown in fig. 6, the gateway apparatus of this embodiment includes: a processor 11, a memory 12, and a computer program 13 stored in the memory 12 and executable on the processor 11. The processor 11, when executing the computer program 13, implements the steps in the above-described control method embodiment of the gateway device, for example steps S101 to S102 shown in fig. 1. Alternatively, the processor 11 may implement the functions of the modules/units in the above-described device embodiments when executing the computer program 13, such as the functions of the sleep module 51 to the detection module 52 shown in fig. 5.
By way of example, the computer program 13 may be divided into one or more modules/units, which are stored in the memory 12 and executed by the processor 11 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 13 in the terminal device.
It will be appreciated by those skilled in the art that fig. 6 is merely an example of a gateway device and is not meant to be limiting, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the gateway device may also include input-output devices, network access devices, buses, etc.
The processor 11 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 12 may be an internal storage unit of the gateway device, such as a hard disk or a memory of the gateway device. The memory 12 may also be an external storage device of the gateway device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the gateway device. Further, the memory 12 may also include both an internal storage unit and an external storage device of the gateway device. The memory 12 is used for storing the computer program as well as other programs and data required by the gateway device. The memory 12 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A sleep method applied to a gateway device, comprising:
if a message for terminating the session is detected, indicating the gateway equipment to enter a sleep mode, wherein entering the sleep mode comprises entering a low-power mode, and setting a connection message processing function to be in a registration state;
if the data to be transmitted are detected, generating a message for establishing connection, triggering the connection message processing function to exit the sleep mode according to the message for establishing connection;
the method comprises the steps of entering a sleep mode, logging off other message processing functions which are not related to receiving messages for establishing connection, setting a wake-up message processing function to a registration state, wherein the wake-up message processing function is used for receiving a wake-up instruction, and indicating gateway equipment to exit the sleep mode according to the wake-up instruction.
2. The sleep method as set forth in claim 1, wherein before the message instructing the gateway device to enter sleep mode if a termination of a session is detected, the method further comprises:
if the first message is detected to be in accordance with the point-to-point protocol on the Ethernet and is in accordance with the first format, determining that the first message is a session termination message.
3. The sleep method as set forth in claim 1, wherein the method further comprises:
and counting the time for entering the sleep mode, and determining the restarting time according to the time for entering the sleep mode.
4. The sleep method as set forth in claim 3, wherein said determining a restart time based on said time to enter sleep mode comprises:
and determining the restarting time according to the set restarting period and the time for entering the sleep mode.
5. The sleep method as set forth in claim 3, wherein said determining a restart time based on said time to enter sleep mode comprises:
and determining the time with the longest dormancy time according to the time for entering the dormancy mode and the time for exiting the dormancy mode in the preset time period, and determining the restarting time according to the time with the longest dormancy time.
6. The sleep method as set forth in any one of claims 3 to 5, wherein after the determining a restart time according to the time of entering the sleep mode, the method further comprises:
and restarting the gateway equipment if the gateway equipment is detected to be in the dormant mode at the restarting time.
7. The sleep method as set forth in claim 6, wherein the method further comprises:
and at the restarting time, if the gateway equipment is detected not to be in the dormant mode and the restarting identification does not exist, setting the restarting identification.
8. A sleep device for use in a gateway apparatus, comprising:
the gateway device comprises a dormant module, a message processing module and a message processing module, wherein the dormant module is used for indicating the gateway device to enter a dormant mode if detecting a message for terminating a session, the entering the dormant mode comprises entering a low-power consumption mode, and setting a connection message processing function to be in a registration state; the method comprises the steps that a gateway device enters a sleep mode, wherein the method comprises the steps of entering the sleep mode, logging off other message processing functions which are not related to receiving messages for establishing connection, setting a wake-up message processing function to be in a registration state, receiving a wake-up instruction by the wake-up message processing function, and indicating the gateway device to exit the sleep mode according to the wake-up instruction;
and the detection module is used for generating a message for establishing connection if the data to be transmitted are detected, triggering the connection message processing function to exit the sleep mode according to the message for establishing connection.
9. Gateway device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the dormancy method according to any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the sleep method according to any one of claims 1 to 7.
CN202110758872.4A 2021-07-05 2021-07-05 Dormancy method, dormancy device, gateway device and storage medium Active CN113517987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110758872.4A CN113517987B (en) 2021-07-05 2021-07-05 Dormancy method, dormancy device, gateway device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110758872.4A CN113517987B (en) 2021-07-05 2021-07-05 Dormancy method, dormancy device, gateway device and storage medium

Publications (2)

Publication Number Publication Date
CN113517987A CN113517987A (en) 2021-10-19
CN113517987B true CN113517987B (en) 2023-07-14

Family

ID=78066328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110758872.4A Active CN113517987B (en) 2021-07-05 2021-07-05 Dormancy method, dormancy device, gateway device and storage medium

Country Status (1)

Country Link
CN (1) CN113517987B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384265A (en) * 2013-05-23 2013-11-06 上海斐讯数据通信技术有限公司 Method and system for realizing application layer of GVRP
CN105991342A (en) * 2015-03-23 2016-10-05 杭州迪普科技有限公司 Business processing method of distributed equipment, business processing device of distributed equipment and distributed equipment
CN110519160A (en) * 2019-08-15 2019-11-29 深圳市丰润达科技有限公司 Things-internet gateway multimode communication means, device and computer readable storage medium
CN112953727A (en) * 2021-03-02 2021-06-11 西安电子科技大学 Internet of things-oriented equipment anonymous identity authentication method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2621127B1 (en) * 2011-12-09 2017-02-22 Huawei Technologies Co., Ltd. Method for achieving low power consumption of data exchange equipment and apparatus thereof, and data exchange equipment
RU2595524C2 (en) * 2014-09-29 2016-08-27 Общество С Ограниченной Ответственностью "Яндекс" Device and method for processing content of web resource in browser
US9794883B1 (en) * 2014-12-23 2017-10-17 Roku, Inc. Wireless streaming system with low power mode and associated remote control
CN106851797A (en) * 2016-12-16 2017-06-13 上海斐讯数据通信技术有限公司 Can wireless awakening router, wireless wake-up system and router wireless awakening method
CN107172633A (en) * 2017-06-09 2017-09-15 上海斐讯数据通信技术有限公司 The condition control method and wireless router of a kind of router
CN112399211B (en) * 2019-08-14 2023-10-24 青岛海信宽带多媒体技术有限公司 Operation method and fusion gateway
CN110784408A (en) * 2019-11-12 2020-02-11 上海应用技术大学 Router control method
CN111404819B (en) * 2020-03-30 2022-05-27 北京经纬恒润科技股份有限公司 Network control method and system based on routing function
CN112491628A (en) * 2020-12-08 2021-03-12 深圳市一正技术有限公司 Efficient and convenient network information configuration method for router
CN112834020B (en) * 2020-12-31 2022-10-14 重庆国际复合材料股份有限公司 Low-power-consumption data acquisition system and method for tray

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384265A (en) * 2013-05-23 2013-11-06 上海斐讯数据通信技术有限公司 Method and system for realizing application layer of GVRP
CN105991342A (en) * 2015-03-23 2016-10-05 杭州迪普科技有限公司 Business processing method of distributed equipment, business processing device of distributed equipment and distributed equipment
CN110519160A (en) * 2019-08-15 2019-11-29 深圳市丰润达科技有限公司 Things-internet gateway multimode communication means, device and computer readable storage medium
CN112953727A (en) * 2021-03-02 2021-06-11 西安电子科技大学 Internet of things-oriented equipment anonymous identity authentication method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Quan Yuan ; Runtong Zhang ; Fuzhi Chu ; Wei Dai.ECIS, an Energy Conservation and Interconnection Scheme between WSN and Internet Based on the 6LoWPAN. 2013 16th International Conference on Network-Based Information Systems.2013,全文. *
一种基于ARM的嵌入式网关系统设计与实现;徐敏;;现代电子技术(第12期);全文 *
基于LoRa的低功耗广域物联网系统设计研究;王一波;中国优秀硕士论文电子期刊网;全文 *

Also Published As

Publication number Publication date
CN113517987A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
US20150121100A1 (en) Method For Acting as Service Agent, Modem, and Terminal
US7721126B2 (en) Communication apparatus and method with physical address filter for power-saving control state
US9875196B2 (en) Method and system for buffer state based low power operation in a MoCA network
KR20080007237A (en) Conveying a content delivery schedule to mobile terminals
CN110602771B (en) Power consumption control method and device and vehicle networking terminal
EP3418892B1 (en) Method and device for managing and controlling broadcast, and terminal
CN101622587A (en) Be used to wake up the centralized service of computing equipment
CN105122930A (en) Method and apparatus for setting up/releasing radio resource control connection between evolved node b and user equipment in communication system
EP3110210B1 (en) Data processing apparatus and method
US10945207B2 (en) Beacon signal processing system and filtering method of reducing wake-up frequency
CN106658686B (en) Data forwarding method and access device
CN112752319A (en) Network switching method, device, terminal and storage medium
JP2009182956A (en) Network connection control method and terminal
CN113517987B (en) Dormancy method, dormancy device, gateway device and storage medium
US10772041B2 (en) Beacon signal processing system
EP2854430B1 (en) Method and device for processing abnormality of application proxy client terminal
CN113840388B (en) Communication method and communication equipment for coexistence of Zigbee and Wifi
US9639137B2 (en) Control method and electronic device
EP3563519B1 (en) Technologies for a local network power management protocol
EP3496468B1 (en) Network entity for creating a transmission session via a network system, roaming firewall, network system, method and computer program product
CN112968783A (en) Low-power-consumption processing method and device based on transmitted data
CN114024784B (en) Communication device control method, communication device, and computer storage medium
JP4352904B2 (en) Print server and print server power saving control program
CN117880941A (en) Test method, terminal device and computer readable storage medium
CN113794992B (en) Wireless broadcasting method, device, terminal equipment and storage medium

Legal Events

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