CN101771633B - Device and method for timed starting and closing of home gateway functional module - Google Patents

Device and method for timed starting and closing of home gateway functional module Download PDF

Info

Publication number
CN101771633B
CN101771633B CN 200910259786 CN200910259786A CN101771633B CN 101771633 B CN101771633 B CN 101771633B CN 200910259786 CN200910259786 CN 200910259786 CN 200910259786 A CN200910259786 A CN 200910259786A CN 101771633 B CN101771633 B CN 101771633B
Authority
CN
China
Prior art keywords
time
module
state
current
comparing
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
CN 200910259786
Other languages
Chinese (zh)
Other versions
CN101771633A (en
Inventor
王鹏
季圣华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN 200910259786 priority Critical patent/CN101771633B/en
Publication of CN101771633A publication Critical patent/CN101771633A/en
Application granted granted Critical
Publication of CN101771633B publication Critical patent/CN101771633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a device and a method for the timed starting and closing of a home gateway functional module, wherein the method comprises the steps: comparing current running time of system with preset timed starting and closing time points of the functional module, comparing an output result with an initial state of the functional module, and controlling the current state of the functional module according to the comparison result. The device and the method according to the invention can automatically start and close the functional module in accordance with the preset timed time points, achieving automatic and intelligent management for the home gateway.

Description

Device and method for timing switching on/off of home gateway functional module
Technical Field
The invention relates to the technical field of gateways, in particular to a device and a method for timing on/off of a home gateway functional module.
Background
As Digital Subscriber lines (xDSL), voice over IP (VoIP), and Internet Protocol Television (IPTV) become mainstream technologies, gateway access technologies are gradually upgraded. Especially, the home network technology, the home network is not only a network technology, but more importantly a service and service; the digital home network needs to be connected with a telecommunication network, even can be a part of the telecommunication network from end to end, and the home network can extend public network functions and applications to a home through a home gateway; the home network can provide integrated voice, data, multimedia, high quality audio/video, and control and management services.
The home gateway is a gateway and a bridge for the home network to be in contact with an external network, is a core device for various services and control of the home network, and has to meet the requirements of manageability, controllability and maintainability except for realizing basic network access and service bearing. Therefore, functions such as remote management, security management, and Quality of Service (QOS) are indispensable in the home gateway, and particularly, the demands for manageability and controllability are increasing day by day. A typical requirement is that the home gateway needs to make a certain functional module work in different states at different time intervals of a day, for example, when the home gateway sleeps at night, the Wireless Local Area Network (WLAN) functional module is turned off at regular time, so as to reduce the influence of radiation; if the time interval and content of the network access are based, the firewall function module is started at regular time, so as to achieve the function of limiting the network access.
However, in the prior art, the home gateway system cannot provide the time switch service of the function module, so that a user needs to manage the home gateway system through manual configuration or hardware buttons, and thus, the home gateway system cannot realize automatic and intelligent management, and the use complexity is increased.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a device and a method for turning on and off a home gateway function module at regular time, so as to realize an automatic and intelligent management function of a home gateway, and facilitate the use of a user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a device for timing switching on/off of a home gateway functional module, which comprises: a time reading comparison module and a function control module; wherein,
the time reading and comparing module is used for comparing the current time of the system with the timing opening and closing time points of the function module and sending an output result to the function control module;
the function control module is used for reading the initial state of the function module, comparing the read initial state with the output result of the time reading comparison module, and if the initial state of the function module is consistent with the output result obtained by the function control module, not changing the current state of the function module; if the initial state of the function module is inconsistent with the output result obtained by the function control module, updating the initial state by using the state corresponding to the output result, then reading the current state of the function module, comparing the updated state with the current state of the function module, if the updated state is consistent with the current state of the function module, not changing the current state of the function module, and if the updated state is inconsistent with the current state of the function module, sending a control instruction to the home gateway to change the current state of the function module.
In the above scheme, the apparatus further comprises: and the time setting storage module is used for setting and storing the values of the timing opening and closing time points of the functional module.
In the above scheme, the time reading and comparing module is further configured to read a current running time of the system.
In the above scheme, the time reading and comparing module is further configured to read values of timing on and off time points of the functional module, and compare the off time with the on time.
In the above scheme, the time reading and comparing module compares the current time of the system with the timing on and off time points of the functional module, and specifically includes:
when the closing time is less than the opening time, if the current operation time of the system is more than the closing time and less than the opening time, the time reading and comparing module outputs a FALSE output result to the function control module, which indicates that the function module is in a closing state; if the current running time of the system is less than the closing time or more than the opening time, the time reading and comparing module outputs an output result TRUE to the function control module, which indicates that the function module is in an opening state;
when the closing time is longer than the opening time, if the current operation time of the system is shorter than the opening time or longer than the closing time, the time reading and comparing module outputs an output result FALSE to the function control module; and if the current running time of the system is greater than the opening time and less than the closing time, the time reading and comparing module outputs an output result TRUE to the function control module.
The invention also provides a method for timing switching on/off of the home gateway functional module, which comprises the following steps:
comparing the current running time of the system with the preset timing opening and closing time points of the functional modules, and outputting a result;
comparing the initial state of the functional module with the output result, and if the initial state of the functional module is consistent with the output result obtained by the functional control module, not changing the current state of the functional module; if the initial state of the function module is inconsistent with the output result obtained by the function control module, updating the initial state by using the state corresponding to the output result, then reading the current state of the function module, comparing the updated state with the current state of the function module, if the updated state is consistent with the current state of the function module, not changing the current state of the function module, and if the updated state is inconsistent with the current state of the function module, sending a control instruction to the home gateway to change the current state of the function module.
In the above solution, before comparing the current running time of the system with the timed on and off time points of the functional module, the method further includes: the home gateway automatically corrects the time with a time server in the network or at the user side through a simple network time protocol, and updates the system running time.
In the foregoing solution, after the updating the system running time, before comparing the current system running time with the timed on and off time points of the functional module, the method further includes: and reading the preset values of the timing opening and closing time points of the functional module, and comparing the closing time with the opening time.
In the foregoing solution, comparing the current operating time of the system with the preset time points of the timed opening and closing of the functional module specifically includes:
when the closing time is less than the opening time, reading the current operation time of the system, and if the current operation time of the system is more than the closing time and less than the opening time, outputting an output result FALSE which indicates that the functional module is in a closing state; if the current running time of the system is less than the closing time or more than the opening time, outputting a TRUE (TRUE output result) to indicate that the functional module is in an opening state;
when the closing time is longer than the opening time, reading the current running time of the system, and if the current running time of the system is shorter than the opening time or longer than the closing time, outputting an output result FALSE; and if the current running time of the system is greater than the opening time and less than the closing time, outputting a TRUE (TRUE output result).
The device and the method for timing switching on and off the home gateway function module provided by the invention compare the current running time of the system with the preset timing on and off time points of the function module, compare the output result with the initial state of the function module, and control the current state of the function module according to the comparison result. The invention has the following advantages:
firstly, the functional module can be automatically opened and closed according to a preset timing time point, so that the automatic and intelligent management of the home gateway is realized, and the use of a user is facilitated;
secondly, when the home gateway crosses the timing Time point to perform power-off or power-on, or when the system Time is adjusted to cross the timing Time point due to Simple Network Time Protocol (SNTP), the output result will be changed, if the initial state of the function module stored in the function control module is inconsistent with the output result, the function control module will immediately send a control instruction to change the current state of the function module;
thirdly, when the user changes the current state of the functional module, the current state of the functional module can be always effective in the setting day, the current state of the functional module can not be influenced by the setting timing time point of the device, and the current state of the functional module can be changed according to the setting timing time point of the device after the next period, namely the next day, so that the setting day of the user is effective.
Drawings
Fig. 1 is a diagram of an apparatus for timing switching of a home gateway function module according to the present invention;
fig. 2 is a flow chart of a method for timing switching of a home gateway function module according to the present invention.
Detailed Description
The basic idea of the invention is: comparing the current running time of the system with the preset timing opening and closing time points of the functional module, comparing the output result with the initial state of the functional module, and controlling the current state of the functional module according to the comparison result.
The device for timing switching on and off the home gateway function module provided by the invention is embedded in a gateway system, and comprises a time reading comparison module and a function control module as shown in figure 1; wherein,
the time reading and comparing module is used for comparing the current running time of the system with the preset timing opening and closing time points of the function module and sending an output result to the function control module;
and the function control module is used for reading the initial state of the function module, comparing the read initial state with the output result of the time reading comparison module, and controlling the current state of the function module according to the comparison result.
The device also includes: and the time setting storage module is used for setting and storing the values of the timing opening and closing time points of the functional module.
And the time reading and comparing module is also used for reading the current running time of the system.
The time reading and comparing module is also used for reading the values of the timing opening and closing time points of the functional module and comparing the closing time with the opening time.
The time reading and comparing module compares the current time of the system with the timing opening and closing time points of the functional module, and specifically comprises the following steps: when the closing time is less than the opening time, if the current operation time of the system is more than the closing time and less than the opening time, the time reading and comparing module outputs a FALSE output result to the function control module, which indicates that the function module is in a closing state; if the current running time of the system is less than the closing time or more than the opening time, the time reading and comparing module outputs an output result TRUE to the function control module, which indicates that the function module is in an opening state;
when the closing time is longer than the opening time, if the current operation time of the system is shorter than the opening time or longer than the closing time, the time reading and comparing module outputs an output result FALSE to the function control module; and if the current running time of the system is greater than the opening time and less than the closing time, the time reading and comparing module outputs an output result TRUE to the function control module.
The function control module controls the current state of the function module according to the comparison result, and specifically comprises the following steps: if the initial state of the functional module is consistent with the output result obtained by the functional control module, the current state of the functional module is not changed; if the initial state of the function module is inconsistent with the output result obtained by the function control module, updating the initial state by using the state corresponding to the output result, then reading the current state of the function module, comparing the updated state with the current state of the function module, if the updated state is consistent with the current state of the function module, not changing the current state of the function module, and if the updated state is inconsistent with the current state of the function module, sending a control instruction to the home gateway to change the current state of the function module.
Based on the above device, the present invention further provides a method for timing switching on/off of a home gateway function module, as shown in fig. 2, the method includes:
step 201: configuring a home gateway, turning on a timing switch function, and setting a time point of a timing switch of a functional module;
in this step, the user configures the home gateway, which specifically includes: establishing a routing connection by the home gateway, and starting an SNTP (simple network transport protocol); and opening a timing switch function of the timing switch home gateway function module device, and setting a time point of the timing switch of the function module in the time setting storage module through the operation page.
Step 202: the home gateway automatically performs time calibration with a time server in a network or at a user side through an SNTP protocol, and updates the system operation time;
in this step, the updating of the system running time by the home gateway through the SNTP protocol is prior art and will not be described in detail here. Here, if the home gateway timing fails, the system internal time is started, the problem that the gateway works in a non-routing mode or a time server is unavailable is solved, and when the home gateway uses the system internal time, a user can set whether a device for timing switching on and off a home gateway function module is effective or not, so that the influence on the use of the user due to the difference between the system internal time and the actual running time is avoided.
Step 203: reading the value of the time point of the timing switch, and comparing whether the closing time is less than the opening time; when the closing time point is less than the opening time point, executing step 204; when the off time is greater than the on time, go to step 205; meanwhile, reading the state of the functional module and storing the state as an initial state;
here, the reading of the value of the time point of the time switch may be performed by a time reading comparison module; the reading of the state of the function module can be done by the function control module and the initial state is also stored in the function control module.
Step 204: reading the current running time of the system according to a certain time granularity, and judging whether the current running time of the system is greater than the closing time and less than the opening time; if the current running time of the system is greater than the closing time and less than the opening time, go to step 206; if the current running time of the system is less than the closing time or greater than the opening time, step 207 is entered;
in this step, the time reading and comparing module reads the current running time of the system according to a certain time granularity, and compares the relation between the current running time of the system and the opening and closing time points in real time. The time granularity is a time interval for reading the current time of the system, and the time interval can be specifically set according to actual conditions, such as reading the current running time of the system every minute.
Step 205: reading the current running time of the system according to a certain time granularity, and judging whether the current running time of the system is greater than the opening time and less than the closing time; if the current running time of the system is less than the opening time or more than the closing time, executing step 206; if the current running time of the system is greater than the opening time and less than the closing time, executing step 207;
step 206: outputting the output result FALSE, and executing step 208;
in this step, the time reading and comparing module outputs a FALSE result to the function control module, which indicates that the current function module should be in a closed state.
Step 207: outputting an output result TRUE;
in this step, the time reading and comparing module outputs the result TRUE to the function control module, which indicates that the current function module should be in an open state.
Step 208: comparing the initial state with the obtained output result, and judging whether the initial state and the obtained output result are consistent; if the two are consistent, go to step 209; if the two are not consistent, executing step 210;
step 209: the current state of the functional module is not changed; ending the current flow;
in this step, if the initial state of the function module is consistent with the output result obtained by the function control module, the current state of the function module is not changed; for example, if the initial state of the function module is off, and if the current state of the function module is manually changed to on by the user, the current state of the function module is inconsistent with the initial state of the function module, but if the output result obtained by the function control module is FALSE and consistent with the initial state, the current state of the function module is not changed, that is, the on state of the function module manually set by the user is guaranteed to be effective all the time, and the current state of the function module is not changed according to the timing time point set by the device until the next time period, that is, the next day.
Step 210: updating the initial state by using the output result, reading the current state of the functional module, and comparing the updated functional state with the current state of the functional module; if the updated functional state is consistent with the current state of the functional module, go to step 209; if the updated functional state is not consistent with the current state of the functional module, go to step 211;
step 211: sending a control instruction to the home gateway to change the current state of the functional module;
in this step, if the updated functional state is inconsistent with the current state of the functional module, the functional control module sends a control instruction to the home gateway to request to change the current state of the functional module; and the home gateway controls the opening or closing of the functional module according to the control instruction.
The device and the method can realize automatic timing opening and closing of the functional module, and when the household gateway crosses the timing time point to be powered off or powered on or the system time is adjusted to cross the timing time point due to SNTP timing, the output result of the time reading and comparing module can be changed along with the change, if the initial state of the functional module stored in the functional control module is inconsistent with the output result, the functional control module can immediately send a control instruction to change the current state of the functional module, so the timing switch function of the functional module can not be influenced; and when the user manually changes the current state of the functional module, the setting of the user can be guaranteed to be effective all the time in the same day.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (9)

1. An apparatus for timing switching of a home gateway function module, the apparatus comprising: a time reading comparison module and a function control module; wherein,
the time reading and comparing module is used for comparing the current time of the system with the timing opening and closing time points of the function module and sending an output result to the function control module;
the function control module is used for reading the initial state of the function module, comparing the read initial state with the output result of the time reading comparison module, and if the initial state of the function module is consistent with the output result obtained by the function control module, not changing the current state of the function module; if the initial state of the function module is inconsistent with the output result obtained by the function control module, updating the initial state by using the state corresponding to the output result, then reading the current state of the function module, comparing the updated state with the current state of the function module, if the updated state is consistent with the current state of the function module, not changing the current state of the function module, and if the updated state is inconsistent with the current state of the function module, sending a control instruction to the home gateway to change the current state of the function module.
2. The apparatus of claim 1, further comprising: and the time setting storage module is used for setting and storing the values of the timing opening and closing time points of the functional module.
3. The apparatus of claim 1, wherein the time reading comparison module is further configured to read a current running time of the system.
4. The device of claim 2, wherein the time reading comparison module is further configured to read values of timed on and off time points of the functional module, and compare the off time with the on time.
5. The apparatus according to claim 4, wherein the time reading comparing module compares the current time of the system with the timing on and off time points of the function module, specifically:
when the closing time is less than the opening time, if the current operation time of the system is more than the closing time and less than the opening time, the time reading and comparing module outputs a FALSE output result to the function control module, which indicates that the function module is in a closing state; if the current running time of the system is less than the closing time or more than the opening time, the time reading and comparing module outputs an output result TRUE to the function control module, which indicates that the function module is in an opening state;
when the closing time is longer than the opening time, if the current operation time of the system is shorter than the opening time or longer than the closing time, the time reading and comparing module outputs an output result FALSE to the function control module; and if the current running time of the system is greater than the opening time and less than the closing time, the time reading and comparing module outputs an output result TRUE to the function control module.
6. A method for timing switching on/off of a home gateway function module is characterized by comprising the following steps:
comparing the current running time of the system with the preset timing opening and closing time points of the functional modules, and outputting a result;
comparing the initial state of the functional module with the output result, and if the initial state of the functional module is consistent with the output result, not changing the current state of the functional module; if the initial state of the functional module is inconsistent with the output result, updating the initial state by using the output result, reading the current state of the functional module, comparing the updated state with the current state of the functional module, and if the updated state is consistent with the current state of the functional module, not changing the current state of the functional module; and if the two are not consistent, sending a control instruction to the home gateway to change the current state of the functional module.
7. The method of claim 6, wherein prior to comparing the current runtime of the system to the timed turn-on and turn-off time points of the functional modules, the method further comprises: the home gateway automatically corrects the time with a time server in the network or at the user side through a simple network time protocol, and updates the system running time.
8. The method of claim 6 or 7, wherein after updating the system runtime and before comparing the current system runtime with the timed turn-on and turn-off time points of the functional module, the method further comprises: and reading the preset values of the timing opening and closing time points of the functional module, and comparing the closing time with the opening time.
9. The method according to claim 6, wherein comparing the current running time of the system with the preset timed on and off time points of the functional module specifically comprises:
when the closing time is less than the opening time, reading the current operation time of the system, and if the current operation time of the system is more than the closing time and less than the opening time, outputting an output result FALSE which indicates that the functional module is in a closing state; if the current running time of the system is less than the closing time or more than the opening time, outputting a TRUE (TRUE output result) to indicate that the functional module is in an opening state;
when the closing time is longer than the opening time, reading the current running time of the system, and if the current running time of the system is shorter than the opening time or longer than the closing time, outputting an output result FALSE; and if the current running time of the system is greater than the opening time and less than the closing time, outputting a TRUE (TRUE output result).
CN 200910259786 2009-12-24 2009-12-24 Device and method for timed starting and closing of home gateway functional module Active CN101771633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910259786 CN101771633B (en) 2009-12-24 2009-12-24 Device and method for timed starting and closing of home gateway functional module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910259786 CN101771633B (en) 2009-12-24 2009-12-24 Device and method for timed starting and closing of home gateway functional module

Publications (2)

Publication Number Publication Date
CN101771633A CN101771633A (en) 2010-07-07
CN101771633B true CN101771633B (en) 2013-04-10

Family

ID=42504242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910259786 Active CN101771633B (en) 2009-12-24 2009-12-24 Device and method for timed starting and closing of home gateway functional module

Country Status (1)

Country Link
CN (1) CN101771633B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148774A (en) * 2010-08-26 2011-08-10 华为终端有限公司 Control method and device of home gateway
CN103188777A (en) * 2011-12-31 2013-07-03 中兴通讯股份有限公司 Device and method achieving timing switching-on and switching-off of a home gateway
CN103297333A (en) * 2013-04-10 2013-09-11 安徽海聚信息科技有限责任公司 Gateway information processor and wifi gateway control method with processor
CN105959938A (en) * 2016-06-28 2016-09-21 上海斐讯数据通信技术有限公司 Wireless switch control method and system
CN107341007B (en) * 2017-06-20 2020-08-11 深圳创维-Rgb电子有限公司 Display terminal, timing starting method thereof and computer readable storage medium
WO2019090599A1 (en) * 2017-11-09 2019-05-16 深圳传音通讯有限公司 Alarm function based control method and control device for smart device
CN112235426B (en) * 2020-12-14 2021-03-16 长沙树根互联技术有限公司 Data sampling time optimization method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905500A (en) * 2005-07-25 2007-01-31 乐金电子(天津)电器有限公司 Domestic network controlling system
KR100687235B1 (en) * 2005-09-28 2007-02-26 엘지전자 주식회사 A method for managing home network with mobile terminal
CN101053206A (en) * 2004-11-05 2007-10-10 Lg电子株式会社 Home network system
CN101166163A (en) * 2006-10-18 2008-04-23 浙江工业大学 Secure intelligent home gateway based on mobile phone remote control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101053206A (en) * 2004-11-05 2007-10-10 Lg电子株式会社 Home network system
CN1905500A (en) * 2005-07-25 2007-01-31 乐金电子(天津)电器有限公司 Domestic network controlling system
KR100687235B1 (en) * 2005-09-28 2007-02-26 엘지전자 주식회사 A method for managing home network with mobile terminal
CN101166163A (en) * 2006-10-18 2008-04-23 浙江工业大学 Secure intelligent home gateway based on mobile phone remote control

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李振华.校园自动化广播系统的设计与实现.《科技广场》.2008,(第10期), *
陈智等.中小城镇路灯控制系统.《农机化研究》.2004,(第02期), *

Also Published As

Publication number Publication date
CN101771633A (en) 2010-07-07

Similar Documents

Publication Publication Date Title
CN101771633B (en) Device and method for timed starting and closing of home gateway functional module
CN101631377B (en) Terminal dormancy method and terminal
US9872128B2 (en) Method of establishing stable Piconet and system of establishment of stable Piconet based on bluetooth
US9529412B2 (en) System for reducing energy consumption of a device and a method therefor
US20080181393A1 (en) Methods and apparatus to maintain communication services during a power failure
US20100208724A1 (en) Power Savings For Network Telephones
CN101640598A (en) Power supply system, server, power supply method, program, and storage medium
US8107619B2 (en) Method, system and apparatus for controlling a network interface device
CN109799716B (en) Scene pushing method and device and intelligent home system
CN201846351U (en) Multi-access technical home gateway
CN105425608A (en) Control method for automatically starting and closing home equipment and intelligent terminal equipment
CN101009588B (en) Method and system for configuring the distributed proxy server information
US8787395B2 (en) Method for placing in standby and waking up a residential gateway according to programmable time slots
CN103561142A (en) Method and mobile terminal for controlling alarm clock state through human eye recognition
EP3408976B1 (en) Managing network traffic in application control networks
WO2014161400A1 (en) Processing method for network search and terminal
US20110113126A1 (en) Method, device, and system for applying configuration
CN104703264A (en) Intelligent electricity-saving method of mobile terminal
WO2015180251A1 (en) Wake-on-lan method, server, and client
CN103338127A (en) Method for realizing automatic configuration update of switch and system upgrade control
CN110471300A (en) A kind of conflict coordination method and system of more intelligent scenes
CN105848260B (en) Power saving method and power saving system based on data network control
WO2023098055A1 (en) Low-power-consumption mode starting method and apparatus, storage medium, and electronic apparatus
US11522968B2 (en) Method of generating and handling of DSL-connection profiles, thereby providing an adaptation functionality of a DSL-connection
CN101207632A (en) System and method for implementing intelligent home control under architecture of soft exchanging system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant