CN108124091B - Power saving method and system for network camera - Google Patents

Power saving method and system for network camera Download PDF

Info

Publication number
CN108124091B
CN108124091B CN201611063685.XA CN201611063685A CN108124091B CN 108124091 B CN108124091 B CN 108124091B CN 201611063685 A CN201611063685 A CN 201611063685A CN 108124091 B CN108124091 B CN 108124091B
Authority
CN
China
Prior art keywords
network camera
power saving
mode
dhcp server
router
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
CN201611063685.XA
Other languages
Chinese (zh)
Other versions
CN108124091A (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.)
Ambit Microsystems Shanghai Ltd
Original Assignee
Ambit Microsystems Shanghai 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 Ambit Microsystems Shanghai Ltd filed Critical Ambit Microsystems Shanghai Ltd
Priority to CN201611063685.XA priority Critical patent/CN108124091B/en
Publication of CN108124091A publication Critical patent/CN108124091A/en
Application granted granted Critical
Publication of CN108124091B publication Critical patent/CN108124091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

A network camera power saving method, the method comprising: when a network camera broadcasts and sends a discovery (discover) message to a Dynamic Host Configuration Protocol (DHCP) server, detecting the type of the DHCP server; detecting the state of the network camera; and when the network camera is in a dormant state, configuring the power saving mode of the network camera according to the type of the DHCP server. The invention also provides a power saving system of the network camera. The invention can avoid the unnecessary triggering action of the network camera by the request packet when the network camera is in the dormant state, and effectively reduces the electric quantity loss of the network camera.

Description

Power saving method and system for network camera
Technical Field
The present invention relates to a network camera, and in particular, to a power saving method and system for a network camera.
Background
More and more electronic products require network cameras to be connected. The current network camera is mainly powered by a battery, and only a small number of network cameras support the USB cable to supply power, so that the network camera powered by the battery has the problem of insufficient electric quantity. Currently, when the webcam is in the sleep state, the webcam suddenly receives a packet request or a signal to change from the sleep state to the working state. In fact, some packet requests are only for obtaining some data from the webcam, and are not for communicating with the webcam, which results in a large amount of power waste. The data acquired based on the packet request can be returned to the transmitting terminal by other means to avoid the waste of power of the network camera.
Disclosure of Invention
In view of the foregoing, there is a need for a power saving method for a network camera, which can avoid unnecessary triggering when the network camera is in a sleep state, and effectively reduce power consumption of the network camera.
In view of the above, it is further desirable to provide a power saving system for a network camera, which can avoid unnecessary triggering when the network camera is in a sleep state, and effectively reduce power consumption of the network camera.
The power saving method for the network camera provided by the embodiment of the invention comprises the following steps: when a network camera broadcasts and sends a discovery (discover) message to a Dynamic Host Configuration Protocol (DHCP) server, detecting the type of the DHCP server; detecting the state of the network camera; and when the network camera is in a dormant state, configuring the power saving mode of the network camera according to the type of the DHCP server.
The power saving system of the network camera provided by the embodiment of the invention comprises: the first detection module is used for detecting the type of a Dynamic Host Configuration Protocol (DHCP) server when the network camera broadcasts and sends a discovery (discover) message to the DHCP server; the second detection module is used for detecting the state of the network camera; and the configuration module is used for configuring the power saving mode of the network camera according to the type of the DHCP server when the network camera is in the dormant state.
Compared with the prior art, the power saving method and the power saving system for the network camera can avoid unnecessary triggering behaviors when the network camera is in a dormant state, and effectively reduce the power consumption of the network camera.
Drawings
Fig. 1 is a diagram of an operating environment of a power saving system of a network camera according to an embodiment of the invention.
Fig. 2 is a functional block diagram of a power saving system of a network camera according to a preferred embodiment of the invention.
FIG. 3 is a flowchart illustrating a power saving method for a network camera according to a preferred embodiment of the present invention.
Fig. 4 is a flowchart of a power saving method for a network camera in Router mode according to a preferred embodiment of the present invention.
FIG. 5 is a flowchart of a power saving method for a network camera in AP mode according to a preferred embodiment of the present invention.
Description of the main elements
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Network camera 1
DHCP server 2
Power saving system of network camera 10
Database with a plurality of databases 20
Memory device 30
Processor with a memory having a plurality of memory cells 40
First detection module 101
Second detection module 102
Configuration module 103
Interception module 104
Detailed Description
Fig. 1 is a diagram showing an operating environment of a power saving system of a network camera according to a preferred embodiment of the invention. The network camera power saving system 10 operates in the network camera 1. The network camera 1 further includes a database 20, a memory 30, a processor 40, and the like. The network camera 1 is connected with a DHCP server 2. The database 20 is used for storing the detected state information of the network camera 1 and the type of the DHCP server 2 connected thereto. The memory 30 is used for storing data such as program codes of the power saving system 10 of the network camera. The processor 40 is configured to execute the functional modules of the power saving system 10 of the network camera, so as to complete the present invention.
Fig. 2 is a functional block diagram of a power saving system of a network camera according to a preferred embodiment of the invention.
The power saving system 10 of the network camera includes a first detecting module 101, a second detecting module 102, a configuration module 103, and an intercepting module 104. The modules are configured to be executed by one or more processors, in this embodiment a processor 40, to complete the invention. The modules referred to in the present invention are computer program segments that perform a specific function. The memory 30 is used for storing data such as program codes of the power saving system 10 of the network camera.
The first detecting module 101 is configured to detect a type of a DHCP server 2 when the network camera 1 broadcasts a discovery (discover) packet to the DHCP server 2. In this embodiment, the network camera 1 is connected to the DHCP server 2, and broadcasts and sends a discover message to the DHCP server 2, and the first detection module 101 determines the type of the DHCP server 2 according to a packet returned by the DHCP server 2. The type of DHCP server 2 will be stored in the database 20. In this embodiment, the DHCP server 2 includes a Router (Router) and an Access Point (AP). The second detecting module 102 is configured to detect a state of the network camera 1.
In the present embodiment, the states of the network camera 1 are divided into a sleep state and an operating state. The status of the webcam will be stored in the database 20. And in the dormant state, the power consumption of the network camera is small.
The configuration module 103 is configured to configure the power saving mode of the network camera 1 according to the type of the DHCP server 2 when the network camera 1 is in the sleep state. In this embodiment, the first detecting module 101 detects the type of the DHCP server 2, and when the second detecting module 102 detects that the status of the network camera 1 is a sleep status, the configuring module 103 configures the power saving mode of the network camera 1 according to the type of the DHCP server 2.
When the first detecting module 101 detects that the DHCP server 2 is a Router (Router), the configuring module 103 configures the power saving mode of the network camera 1 to a Router mode.
When the first detecting module 101 detects that the DHCP server 2 is an Access Point (AP), the configuring module 103 configures the power saving mode of the network camera 1 to an AP mode.
The intercepting module 104 is configured to, when the power saving mode of the network camera 1 is a Router mode, intercept a DHCP packet request sent to the network camera 1 in a process of a four-way handshake protocol between the DHCP server and the network camera; and making a reply that extends the lease time. For example, a reply may be made to modify the lease time to 3 years.
When the power saving mode of the network camera 1 is Router mode, after the four-way handshake protocol between the DHCP server and the network camera is completed, the intercepting module 104 intercepts an Address Resolution Protocol (ARP) packet sent to the network camera 1; and setting a permanent ARP.
When the power saving mode of the network camera 1 is the AP mode, the interception module 104 intercepts a lease expire request sent by a root access point to the network camera 1; and making a reply to the root access point that extends the lease time. For example, a reply may be made to modify the lease time to 3 years.
When the power saving mode of the network camera 1 is the AP mode, the interception module 104 intercepts an ARP packet sent by the root access point to the network camera 1.
When the destination network protocol (IP) address of the ARP packet is the IP address of the network camera 1, the interception module 104 clears the ARP packet sent by the root access point; and sending an ARP reply to the root access point.
Based on different network architectures of Router and AP, after the configuration module 103 configures different power saving modes of the network camera 1, the interception module 104 intercepts request packets from different DHCP servers, and performs corresponding reply and setting. Therefore, when the network camera 1 is in a dormant state, unnecessary triggering action of the request packet on the network camera 1 is avoided, and the electric quantity loss of the network camera 1 is effectively reduced.
Fig. 3 is a flowchart illustrating a power saving method for a network camera according to a preferred embodiment of the invention. The power saving method for the network camera can be realized by the processor 40 executing the modules 101 to 104 shown in fig. 2.
Step S300, when the network camera 1 broadcasts and sends a discovery discover message to the DHCP server 2, the first detecting module 101 detects the type of the DHCP server 2.
In step S302, the second detecting module 102 detects the status of the network camera 1.
Step S304, the configuration module 103 configures the power saving mode of the network camera 1 according to the type of the DHCP server 2 when the network camera 1 is in the sleep state.
Fig. 4 is a flowchart of a power saving method for a network camera in Router mode according to a preferred embodiment of the present invention. The power saving method for the network camera can be realized by the processor 40 executing the modules 101 to 104 shown in fig. 2.
In step S400, the first detecting module 101 detects that the DHCP server 2 is Router.
In step S402, the configuration module 103 configures the power saving mode to a Router mode.
Step S404, the intercepting module 104 intercepts a DHCP packet request sent to the network camera 1 during a four-way handshake protocol between the DHCP server 2 and the network camera 1.
In step S406, the intercept module 104 makes a reply to extend the lease time.
Step S408, the intercepting module 104 intercepts the ARP packet sent to the network camera 1 after the four-way handshake protocol between the DHCP server 2 and the network camera 1 is completed.
In step S410, the interception module 104 sets a permanent ARP.
Fig. 5 is a flowchart illustrating a power saving method for a network camera in AP mode according to a preferred embodiment of the present invention. The power saving method for the network camera can be realized by the processor 40 executing the modules 101 to 104 shown in fig. 2.
In step S500, the first detection module 101 detects that the DHCP server 2 is an Access Point (AP) type.
In step S502, the configuration module 103 configures the power saving mode to the AP mode.
In step S504, the interception module 104 intercepts a lease expire request sent by the root access point to the network camera 1.
In step S506, the interception module 104 replies to the root access point with an extended lease time.
In step S508, the intercepting module 104 intercepts the ARP packet sent by the root access point to the network camera 1.
Step S510, when the destination network protocol (I P) address of the ARP packet is the I P address of the network camera 1, the intercepting module 104 clears the ARP packet sent by the root access point.
In step S512, the intercepting module 104 sends an ARP reply to the root access point.
By applying the method to the system, when the network camera 1 is in a dormant state, unnecessary triggering of the network camera 1 by a request packet can be avoided, and the power consumption of the network camera 1 can be effectively reduced.
It should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (6)

1. A power saving method for a network camera, the method comprising:
when a network camera broadcasts and sends a discovery (discover) message to a Dynamic Host Configuration Protocol (DHCP) server, detecting the type of the DHCP server;
detecting the state of the network camera;
when the network camera is in a dormant state, configuring a power saving mode of the network camera according to the type of the DHCP server, wherein the type of the DHCP server comprises a Router (Router) and an Access Point (AP), and the power saving mode of the network camera comprises a Router mode and an AP mode:
when the type of the DHCP server is the Router, the power saving mode of the network camera is switched to the Router mode, a DHCP packet request sent to the network camera is intercepted in the process of a handshake protocol between the DHCP server and the network camera, and a Router makes a reply for prolonging lease time; and
and when the type of the DHCP server is the AP, the power saving mode of the network camera is switched to the AP mode, a lease expiration request sent to the network camera by a root access point is intercepted, and the access point replies to the root access point by prolonging lease time.
2. The power saving method for a network camera according to claim 1, wherein when the power saving mode of the network camera is the Router mode, the method further comprises:
intercepting an Address Resolution Protocol (ARP) packet sent to the network camera after the handshaking protocol between the DHCP server and the network camera is completed;
setting a permanent ARP; and
and clearing the ARP packet sent to the network camera.
3. The power saving method of a network camera according to claim 1, wherein when the power saving mode of the network camera is the AP mode, the method further comprises:
intercepting an ARP packet sent to the network camera by the root access point;
when a destination network protocol (IP) address of the ARP packet is an IP address of the network camera,
clearing the ARP packet sent by the root access point; and
and sending an ARP reply to the root access point.
4. A power saving system for a network camera, the system comprising:
the first detection module is used for detecting the type of a Dynamic Host Configuration Protocol (DHCP) server when the network camera broadcasts and sends a discovery (discover) message to the DHCP server;
the second detection module is used for detecting the state of the network camera; and
a configuration module, configured to configure a power saving mode of the network camera according to a type of the DHCP server when the network camera is in a dormant state, where the type of the DHCP server includes a Router (Router) and an Access Point (AP), the power saving mode of the network camera includes a Router mode and an AP mode, the power saving mode of the network camera is switched to the Router mode when the type of the DHCP server is the Router, and the power saving mode of the network camera is switched to the AP mode when the type of the DHCP server is the AP;
and the intercepting module is used for intercepting a DHCP packet request sent to the network camera and making a reply for prolonging lease time in the process of a handshake protocol between the DHCP server and the network camera when the power saving mode of the network camera is a Router mode, and intercepting a lease expiration request sent to the network camera by a root access point and making a reply for prolonging the lease time to the root access point when the power saving mode is an AP mode.
5. The power saving system of claim 4, wherein the intercepting module is further configured to:
when the power saving mode of the network camera is Router mode, the network camera is used for intercepting an Address Resolution Protocol (ARP) packet sent to the network camera after the handshaking protocol between the DHCP server and the network camera is completed;
setting a permanent ARP; and
and clearing the ARP packet sent to the network camera.
6. The power saving system of claim 4, wherein the intercepting module is further configured to:
intercepting an ARP packet sent to the network camera by the root access point when the power saving mode of the network camera is an AP mode;
when the destination network protocol (IP) address of the ARP packet is the IP address of the network camera, clearing the ARP packet sent by the root access point; and
and sending an ARP reply to the root access point.
CN201611063685.XA 2016-11-28 2016-11-28 Power saving method and system for network camera Active CN108124091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611063685.XA CN108124091B (en) 2016-11-28 2016-11-28 Power saving method and system for network camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611063685.XA CN108124091B (en) 2016-11-28 2016-11-28 Power saving method and system for network camera

Publications (2)

Publication Number Publication Date
CN108124091A CN108124091A (en) 2018-06-05
CN108124091B true CN108124091B (en) 2020-08-14

Family

ID=62224895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611063685.XA Active CN108124091B (en) 2016-11-28 2016-11-28 Power saving method and system for network camera

Country Status (1)

Country Link
CN (1) CN108124091B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873679A (en) * 2009-04-23 2010-10-27 瑞昱半导体股份有限公司 Methods and apparatuses of network system with power saving functions
CN102421171A (en) * 2010-09-28 2012-04-18 国基电子(上海)有限公司 Mobile station, access point and method of saving electricity for mobile station
CN105656846A (en) * 2014-11-12 2016-06-08 宏碁股份有限公司 Remote connection keeping method, electronic device and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008064270A2 (en) * 2006-11-20 2008-05-29 Micropower Appliance Wireless network camera systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873679A (en) * 2009-04-23 2010-10-27 瑞昱半导体股份有限公司 Methods and apparatuses of network system with power saving functions
CN102421171A (en) * 2010-09-28 2012-04-18 国基电子(上海)有限公司 Mobile station, access point and method of saving electricity for mobile station
CN105656846A (en) * 2014-11-12 2016-06-08 宏碁股份有限公司 Remote connection keeping method, electronic device and server

Also Published As

Publication number Publication date
CN108124091A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
US20100174808A1 (en) Network presence offloads to network interface
CN108924274B (en) Domain name system DNS processing method and device, storage medium and electronic equipment
EP3148286A1 (en) System, method and apparatus for data communication
CN103475751A (en) Method and device for IP address switch
US11855894B2 (en) Control system, server, terminal device, control device, communication control method, and recording medium
CN106507414B (en) Message forwarding method and device
WO2007143833A1 (en) System and method for handling address resolution protocol requests
US20130332586A1 (en) Providing ipv6 connectivity through shared external interfaces on electronic devices
CN105188056A (en) Method and device for connecting WiFi (Wireless Fidelity) equipment with access point
CN104168140A (en) VTEP abnormal condition processing method and device
EP3883203A1 (en) Ipv6 address configuration method and router device
TWI492577B (en) Server and service mode setting method
CN108124091B (en) Power saving method and system for network camera
US20200162419A1 (en) Address assignment method and related device
CN102413179A (en) Automatic power-on or wake-up machine and power-on or wake-up method thereof
CN108712513B (en) Network address setting method and device, terminal equipment and storage medium
US20230262026A1 (en) Data transmission system and method for edge computing and computer readable medium thereof
JP7081257B2 (en) Information processing equipment and information processing programs
EP3068112B1 (en) System and method for mac address acquisition
CN113473493A (en) Communication method and device
CN106713525B (en) Method, device and system for configuring communication parameters
US10362153B2 (en) Method and apparatus to provide direct access to one or more sensors from an internet protocol network
CN115643268A (en) Method, device and system for realizing local area network master-slave computer communication protocol
WO2019057167A1 (en) Method for obtaining ip address, device, and mobile terminal
WO2017219777A1 (en) Packet processing method and device

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