CN107360362B - Portable network video camera and wireless router operation method - Google Patents

Portable network video camera and wireless router operation method Download PDF

Info

Publication number
CN107360362B
CN107360362B CN201710458869.4A CN201710458869A CN107360362B CN 107360362 B CN107360362 B CN 107360362B CN 201710458869 A CN201710458869 A CN 201710458869A CN 107360362 B CN107360362 B CN 107360362B
Authority
CN
China
Prior art keywords
data
wireless router
server
caching
wifi module
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
CN201710458869.4A
Other languages
Chinese (zh)
Other versions
CN107360362A (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 Gongtong Electronics Co Ltd
Original Assignee
Shenzhen Gongtong 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 Gongtong Electronics Co Ltd filed Critical Shenzhen Gongtong Electronics Co Ltd
Priority to CN201710458869.4A priority Critical patent/CN107360362B/en
Publication of CN107360362A publication Critical patent/CN107360362A/en
Application granted granted Critical
Publication of CN107360362B publication Critical patent/CN107360362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/28Discontinuous transmission [DTX]; Discontinuous reception [DRX]
    • 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

Abstract

The present invention relates to a kind of portable network video camera and wireless router operation methods, the working method of WIFI module in a power-save mode in portable network video camera includes: whether judgement and the connection of wireless router disconnect, if so, being reconnected with wireless router;Otherwise, heartbeat message is sent to server by wireless router;Later, the data from server are received when listening to the Beacon message of the wireless router every the time of DTIM value, and judging that server sends data according to the content of the Beacon message.Therefore, above-mentioned WIFI module is in a power-save mode, after judgement is disconnected with wireless router, it can actively be initiated the connection to wireless router, without waking up IPC main module, it can reduce the power consumption of portable network video camera in a power-save mode, and then the standby time of portable network video camera in a power-save mode can be improved.

Description

Portable network video camera and wireless router operation method
Technical field
The present invention relates to web camera technical fields, more particularly to a kind of portable network video camera and wireless routing Device operation method.
Background technique
Web camera (IP Camera) can convert the image into the data packet based on TCP/IP network standard, thus The image of shooting is set to be transferred directly on remote server by Ethernet interface or WIFI wireless interface, so that user terminal Equipment can be monitored remotely by network attached server.
Portable network video camera is grown up on the basis of ordinary network camera, is filled by built-in Battery is powered.For portable network video camera, how to reduce power consumption is crucial problem.In order to reduce power consumption, it passes The portable network video camera of system will not carry out always video recording work, but the most of the time is in battery saving mode, only uses Family triggering just will do it of short duration work relevant to audio-video, after hours and can switch to battery saving mode, therefore power saving mould Standby time under formula determines the total operating time of portable network video camera to a certain extent.Therefore, how to improve Standby time under portable network video camera battery saving mode is a problem to be solved.
Summary of the invention
Based on this, it is necessary to for how improving asking for standby time under portable network video camera battery saving mode Topic provides a kind of portable network video camera and wireless router operation method.
A kind of portable network video camera operation method, applied to the portable net including WIFI module and IPC main module Network video camera;After the IPC main module sends data to server, configures the WIFI module and enter battery saving mode;Institute Stating working method of the WIFI module under the battery saving mode includes:
Judge whether the connection with wireless router disconnects, if so, being reconnected with the wireless router, and passes through The wireless router sends heartbeat message to the server;Otherwise, it is sent out by the wireless router to the server Send heartbeat message;
The Beacon message of the wireless router is listened to every the time of DTIM value, and according to the Beacon message Content judges to receive the data from server when server sends data.
In one of the embodiments, before sending heartbeat message to the server by the wireless router, The working method further include:
Obtain the eartbeat interval after extending;
Meanwhile heartbeat message is sent to the server by the wireless router are as follows: send heartbeat away from the last time When the time of message reaches the eartbeat interval after the extension, the heart is sent to the server by the wireless router Jump message.
In one of the embodiments, in the Beacon message for listening to the wireless router every the time of DTIM value, And when judging that server sends data according to the content of the Beacon message before data of the reception from server, the work Make method further include:
Obtain the DTIM value after increasing;
Also, the Beacon message of the wireless router is listened to every the time of DTIM value, and according to the Beacon The content of message judges to receive the data from server when server sends data are as follows:
The time of DTIM value after the increase listens to the Beacon message of the wireless router, and according to described The content of Beacon message judges to receive the data from server when server sends data.
Judge whether the connection with wireless router disconnects in one of the embodiments, are as follows:
By continuously listening to whether the Beacon message judgement and the connection of wireless router disconnect.
A kind of wireless router operation method cooperates with the portable network video camera operation method and runs, the side Method includes:
It receives the data from server and is placed in caching;
Judge whether the data capacity in the caching reaches given threshold, if so, the data in the caching are led to It crosses WIFI module described in Beacon message notifying and receives data;Otherwise, it continues to execute and receives the data from server and placement Step in caching.
Judge whether the data capacity in the caching reaches given threshold in one of the embodiments, if so, will Data in the caching receive data by WIFI module described in Beacon message notifying;Otherwise, reception is continued to execute to come from The data of server and be placed in caching in step include:
Judge whether the data capacity in the caching reaches given threshold, if so, the data in the caching are led to It crosses Beacon message and is sent to the WIFI module;Otherwise, judge whether cache-time is more than setting time threshold value, if then will Data in the caching receive data by WIFI module described in Beacon message notifying, otherwise continue to execute reception from clothes The data of business device and the step being placed in caching.
In one of the embodiments, before judging whether the data capacity in the caching reaches given threshold, institute State wireless router operation method further include:
Obtain the interval Beacon after extending;
Also, the data in the caching are received into data by WIFI module described in Beacon message notifying are as follows:
Data in the caching are passed through described in Beacon message notifying according to the interval Beacon after the extension WIFI module receives data.
The data from server are received in one of the embodiments, and are placed in caching includes:
Receive the data from server;
Judge whether the data are multicast message or broadcasting packet, if so, not being placed in the data described slow In depositing;Otherwise, the data are placed in the caching.
In one of the embodiments, before judging whether the data capacity in the caching reaches given threshold, institute State method further include:
Obtain the given threshold after increasing;
Also, the step of whether data capacity in the caching reaches given threshold judged are as follows: judge in the caching Data capacity whether reach the given threshold after the increase.
In one of the embodiments, before judging whether cache-time be more than setting time threshold value, the method is also Include:
Obtain the setting time threshold value after extending;
Also, judge whether cache-time is more than setting time threshold value are as follows:
Judge whether cache-time is more than setting time threshold value after the extension.
WIFI mould in above-mentioned portable network video camera and wireless router operation method, in portable network video camera The working method of block in a power-save mode includes: whether judgement and the connection of wireless router disconnect, if so, and wireless routing Device reconnects;Otherwise, heartbeat message is sent to server by wireless router;Later, it is listened to every the time of DTIM value The Beacon message of wireless router, and judge to receive when server transmission data from service according to the content of Beacon message The data of device.Therefore, above-mentioned WIFI module in a power-save mode, when judgement with wireless router disconnect after, can actively to Wireless router initiates the connection, and without waking up IPC main module, can reduce portable network video camera in a power-save mode Power consumption, and then the standby time of portable network video camera in a power-save mode can be improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with The attached drawing of other embodiments is obtained according to these attached drawings.
Fig. 1 is the flow chart for the portable network video camera operation method that an embodiment provides;
Fig. 2 is the portable network video camera that the portable network video camera operation method of Fig. 1 illustrated embodiment is related to One of embodiment network connection topological diagram;
Fig. 3 is the specific block diagram of one of which of the portable network video camera of embodiment illustrated in fig. 2;
Fig. 4 is one of work flow diagram of the portable network video camera of embodiment illustrated in fig. 3;
Fig. 5 is that IPC main module configures WIFI module in the workflow of the portable network video camera of embodiment illustrated in fig. 4 Into one of specific flow chart of battery saving mode;
Fig. 6 is the process of one of embodiment of the portable network video camera operation method of Fig. 1 illustrated embodiment Figure;
Fig. 7 is the flow chart of another embodiment of the portable network video camera operation method of Fig. 1 illustrated embodiment;
Fig. 8 is the flow chart of another embodiment of the portable network video camera operation method of Fig. 1 illustrated embodiment;
Fig. 9 is the flow chart for the wireless router operation method that another embodiment provides;
Figure 10 is the flow chart of one of embodiment of the wireless router operation method of Fig. 9 illustrated embodiment;
Figure 11 is the flow chart of another embodiment of the wireless router operation method of Fig. 9 illustrated embodiment;
Figure 12 is one of embodiment of the step S210 of the wireless router operation method of Fig. 9 illustrated embodiment Flow chart.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing Give presently preferred embodiments of the present invention.But the invention can be realized in many different forms, however it is not limited to this paper institute The embodiment of description.On the contrary, purpose of providing these embodiments is keeps the understanding to the disclosure more thorough Comprehensively.
Unless otherwise defined, the skill of all technical and scientific terms used herein and the technical field for belonging to invention The normally understood meaning of art personnel is identical.It is specific that description is intended merely in the term used in the description of invention herein The purpose of embodiment, it is not intended that the limitation present invention.Term as used herein "and/or" includes one or more relevant institutes Any and all combinations of list of items.
One embodiment provides a kind of web camera operation method, is applied to portable network video camera (IP Camera) 100, please refer to Fig. 2.Portable network video camera 100 accesses network thus and server by wireless router 200 300 keep connection, and then relevant audio, video data can be forwarded to user equipment by server 300.
Referring to FIG. 3, portable network video camera 100 includes IPC main module 110, WIFI (Wireless-Fidelity) Module 120, power consumption control module 130, PIR (Passive Infrared, passive infrared technology) module 140, power management mould Block 150 and battery 160.Wherein, IPC main module 110 is main control module, for carrying out audio-video recording and data processing, and will Data that treated are sent to server 300 by network.In addition, IPC main module 110 is notified that power consumption after hours Its work of control module 130 is completed, so that power consumption control module 130, which controls portable network video camera 100, enters power saving mould Formula.WIFI module 120 is the wireless transport module based on adopting wireless fidelity technology, and portable network video camera 100 can be made to pass through WIFI is connect with wireless router 200.PIR module 140 incudes the movement of human body for detecting the infrared ray of human body radiation, Trigger signal is issued to power consumption control module 130 after sensing human motion.Power management module 150 is in power consumption control module (such as cutting or conducting) battery 160 be can control under 130 control to the power supply circuit of each module.Power consumption control module 130 It is switched over for controlling portable network video camera 100 under operating mode and battery saving mode.Specifically, power consumption control module 130 can be single-chip microcontroller.
The working principle of portable network video camera 100 when power consumption control module 130 receives referring to FIG. 4, come from After the trigger signal of WIFI module 120 or PIR module 140, into normal operating conditions, and controls IPC main module 110 and start just Often operation, meanwhile, WIFI module 120 also switches to normal operating mode, that is, is normally carried out data transmit-receive work (wherein, such as Fruit is the case where WIFI module 120 triggers, then after WIFI module 120 receives the wake-up message from server 300, WIFI Module 120 can voluntarily switch to normal mode of operation;The case where triggering if it is PIR module 140, then can be by IPC main mould Block 110 switches to normal mode of operation to control WIFI module 120), in addition, other modules also enter normal mode of operation;Such as Fruit IPC main module 110 sends data and finishes, then configures WIFI module 120 into battery saving mode, and notify power consumption control module 130 its worked and finished, later, power consumption control module 130 then powers off IPC main module 110, and controls other modules and start Low-power consumption is out of service, and last power consumption control module 130 itself can also enter low power consumpting state, finally, entire portable net Network video camera 100 enters battery saving mode.
Wherein, power consumption control module 130 does not execute instruction after it enters low power consumpting state if it is single-chip microcontroller, is System clock also stops working, the only good GPIO of relevant configuration (General Purpose Input Output universal input/defeated Pin out) pin after receiving the trigger signal could wake up single-chip microcontroller.After WIFI module 120 enters battery saving mode, WIFI Module 120 is only replied to the heartbeat message that server 300 sends heartbeat message and receives server 300.Wherein, heartbeat report is sent Text is online for indicating, and can receive wake up message instruction at any time.
In addition, IPC main module 110 configure WIFI module 120 enter battery saving mode, specifically can by ioctl interface come It is configured, one of concrete implementation mode please refers to Fig. 5.Firstly, IPC main module 110 sends first to server 300 A heartbeat message, wherein heartbeat message such as TCP (Transmission Control Protocol, transmission control protocol) heart Jump message or UDP (User Datagram Protocol, User Datagram Protocol) heartbeat message.Later, IPC main module 110 Complete heartbeat message format (such as: being grabbed by pcap technology) is grabbed, it is hereby achieved that complete heartbeat message Format.Complete heartbeat message format is for example including MAC (Media Access Control, media access control) address, IP (Internet Protocol Address, Internet protocol) address, other content for meeting Transmission Control Protocol or udp protocol etc.. Then, the relevant parameter of heartbeat is sent to WIFI module 120 by IPC main module 110, and is configured WIFI module 120 and initially entered Battery saving mode.Wherein, the relevant parameter of heartbeat for example, the interval of heartbeat, the heartbeat timeout time, heartbeat timeout number, DTIM (Delivery Traffic Indication Message) value, format, the complete heartbeat message format for waking up message Deng.
When portable network video camera 100 is in battery saving mode, power consumption specifically includes that 1. bottom electric currents, i.e. portable net The average minimum current of the maintenance battery saving mode of network video camera 100;The power consumption of the transmitting-receiving message of 2.WIFI module 120.Wherein, bottom electric current It is very low, it is the lowest power consumption electric current for maintaining portable network video camera 100 to be in battery saving mode.Therefore present embodiment mentions The portable network video camera operation method of confession is intended to optimize the power consumption that WIFI module 120 under battery saving mode receives and dispatches message, with drop Low ensemble average power consumption, concrete principle are as follows.Referring to FIG. 1, the working method of WIFI module 120 in a power-save mode include with Lower content.
Step S110, judges whether the connection with wireless router 200 disconnects, if so, thening follow the steps S120, otherwise holds Row step S140.
In the step, WIFI module 120 can specifically be judged by listening to the Beacon message of wireless router 200 with Whether the connection of wireless router 200 disconnects.Wherein, wireless router 200 continues according to the interval Beacon of setting to aerial It sends Beacon message and represents WIFI module 120 and nothing if WIFI module 120 can continuously receive Beacon message Line router 200 is in connection status, otherwise represents connection and disconnects.It is understood that WIFI module 120 can also pass through it His mode judges whether disconnect with wireless router 200.
Step S120 is reconnected with wireless router 200, executes step S140 later.
If the judgement of WIFI module 120 is disconnected with wireless router 200, tradition actively is utilized according to WIFI agreement WIFI connection type initiate the connection request to wireless router 200.After wireless router 200 receives connection request, together Sample restores to connect according to WIFI agreement using traditional WIFI connection type and WIFI module 120.Therefore, in present embodiment, After the discovery of WIFI module 120 is disconnected with wireless router 200, connection can be established with wireless router 200 automatically, without Wake up IPC module 110.
Step S140 sends heartbeat message to server 300 by wireless router 200.
In the step, the information that WIFI module 120 is configured according to IPC main module 110 before is according to corresponding heartbeat link Heartbeat message is sent to server 300.Further, if WIFI module 120 and wireless router 200 restore after connecting, Still it is communicated using original heartbeat link.
Step S160 listens to the Beacon message of wireless router 200 every the time of DTIM value, and is reported according to Beacon The content of text judges to receive the data from server 300 when server 300 sends data.
Wherein, after wireless router 200 receives the data from server 300, pass through Beacon message notifying WIFI Module 120 receives data.Beacon message includes a data dial gauge TIM (Traffic Indication Map), and TIM refers to The bright data from server 300 for currently whether having caching.For WIFI module 120, in this case it is not apparent that when without route Data from server 300 can be received by device 200, therefore, WIFI module 120 can be with the time of every one DTIM value of suspend mode Just wake up afterwards and listen to whether have the Beacon message from wireless router 200, according to listen to Beacon message as a result, determine Whether the data of wireless router 200 are received.
In conclusion above-mentioned WIFI module 120 is in a power-save mode, after judgement is disconnected with wireless router 200, It can actively be initiated the connection to wireless router 200, without waking up IPC main module 110, power consumption can be saved, can reduce just When taking the power consumption under 100 mode of formula web camera, and then standby under 100 mode of portable network video camera can be improved It is long.
In one of the embodiments, before above-mentioned steps S140, the work of above-mentioned WIFI module 120 in a power-save mode Further include the following contents as method, please refers to Fig. 6.
Step S130 obtains the eartbeat interval after extending.
Meanwhile step S140 is step S141, i.e., after reaching above-mentioned extension away from the last time for sending heartbeat message Eartbeat interval when, by wireless router 200 to server 300 send heartbeat message.
Wherein, eartbeat interval refers to the adjacent time interval sent between heartbeat message twice of WIFI module 120.Also, Further extended in the present embodiment eartbeat interval (such as compared with the eartbeat interval that traditional WIFI module uses, this implementation Example extends eartbeat interval) so that the frequency that WIFI module 120 sends heartbeat message reduces, thereby reduce WIFI mould Power consumption under 120 battery saving mode of block.For example, original WIFI module 120 is to send a heartbeat message every 25s, answered in satisfaction Under conditions of requiring, eartbeat interval can be increased into 35s.
In other embodiments, step S130 can also be executed before step S110.
In one of the embodiments, before above-mentioned steps S160, the work of above-mentioned WIFI module 120 in a power-save mode Further include the following contents as method, please refers to Fig. 7.
Step 150, the DTIM value after increasing is obtained.
Meanwhile above-mentioned steps S160 is step S161, the DTIM value after increase listens to wireless router 200 Beacon message, and judged to receive the number from server 300 when the transmission data of server 300 according to the content of Beacon message According to.
Therefore, the present embodiment increase DTIM value (such as compared with the DTIM value that traditional WIFI module uses, this implementation Example increases DTIM value).DTIM value is bigger, and the time for representing each suspend mode of WIFI module 120 is longer, so as to further drop Power consumption under low 120 battery saving mode of WIFI module.For example, if original DTIM value between 100ms between 600ms when, this DTIM value can be increased into 3000ms in embodiment.
In addition, the improved procedure of DTIM value is not limited to above situation, such as can also be modified in wireless router 200, And after the completion of modification, wireless router 200 sends the DTIM value after increasing to WIFI module 120 by Beacon message, So that WIFI module 120 can be run according to the DTIM value after increase.
It should be noted that in other embodiments, step S150 can also be held before step S140 or step S110 Row.
One of tool of the working method of above-mentioned WIFI module 120 in a power-save mode in one of the embodiments, Body method includes the following contents, please refers to Fig. 8.
Step S110, judges whether the connection with wireless router 200 disconnects, if so, thening follow the steps S121, otherwise holds Row step S130.
Step S121 establishes connection with the trial of wireless router 200, executes step S122 later.
In the step, WIFI module 120 can send connection request to wireless router 200, to attempt to establish connection.
Whether otherwise successful connection, executes if so, executing step S130 for step S122, judgement and wireless router 200 Step S123.
If after wireless router 200 receives connection request, utilizing traditional WIFI connection also according to WIFI agreement Mode and WIFI module 120 are restored to connect.WIFI module 120 can be by listening to Beacon message to determine whether connecting into Function, if it is possible to normally receive Beacon message and then represent successful connection, otherwise, represent connection failure.
Step S123, by first timer timing, after first timer timing time arrives, with wireless router 200 It reconnects.
In the step, still it can actively be initiated the connection to wireless router 200 using the concrete mode of step S121.
Step S130 obtains the eartbeat interval after extending.
Step S141 passes through when reaching the eartbeat interval after above-mentioned extension away from the last time for sending heartbeat message Wireless router 200 sends heartbeat message to server 300.
Second timer, the real-time heart of calculation server 300 is arranged according to the heartbeat timeout time of configuration in step S142 Jump expired times.
Wherein, the heartbeat timeout time is the heartbeat parameter configured by IPC main module 110.It has been executed from step S141 Finish and start, timing is started by the temporal information that second timer is sent, is not still received after having served as the heartbeat timeout time When the reply of server 300, then real-time heartbeat timeout number is denoted as 1, after having spent second heartbeat timeout time, still not had When having the reply for receiving server 300, real-time heartbeat timeout number is denoted as 2, is successively added up.
Step S150 obtains the DTIM value after increasing.
Step S1611, the DTIM value after increase listen to the Beacon message of wireless router 200.
Step S1612 judges whether the data for receiving server 300, if so, step S141 is continued to execute, otherwise, Execute step S1613.
Wherein, the data of server 300 are for example to the reply of heartbeat message.WIFI module 120 can be by listening to Beacon message judges whether server 300 is replied.
Step S163 judges whether the heartbeat timeout number more than configuration, if so, executing step S1614, otherwise, continues Execute step S141.
Wherein, the heartbeat timeout number of configuration is the heartbeat parameter configured by IPC main module 110.Such as: if matched The heartbeat timeout number set is 10, then if server 300 is not still extensive after it have passed through 10 above-mentioned heartbeat timeout times When multiple (real-time heartbeat timeout number reaches 10), then it is assumed that be more than the heartbeat timeout number of configuration.
It should be noted that in other embodiments, the heartbeat timeout number of configuration may be infinity, at this moment, WIFI module 120 can always try to send heartbeat message to server 300, whether have response but regardless of server 300.
Step S1614, notice IPC main module 110 re-establish heartbeat connection.
The step, which refers to, wakes up IPC main module 110, also, re-executes each step shown in fig. 5 by IPC main module 110 Suddenly.
Another embodiment provides a kind of wireless router operation method, takes the photograph with the portable network of above embodiment The cooperation operation of camera operation method.The wireless router operation method is executed by the wireless router 200 in above embodiment, And it is executed after WIFI module 120 enters battery saving mode.The wireless router operation method that present embodiment provides equally is pair The optimization of the power consumption in a power-save mode of WIFI module 120, including the following contents, please refer to Fig. 9.
Step S210 receives the data from server 300 and is placed in caching.
Wherein, the data from server 300 are, for example, the response message for waking up message or heartbeat message.
Step S230, judges whether the data capacity in caching reaches given threshold, if so, executing step S240, otherwise Continue to execute step S210.
Data in caching are received data by Beacon message notifying WIFI module 120 by step S240.
As long as after traditional wireless router receives the data of server 300, passing through Beacon message notifying WIFI Client.And in present embodiment, it is not to notify WIFI module immediately after wireless router 200 receives data cached 120, but the caching that adds up together with the data to come one by one later, and after buffer memory capacity reaches given threshold, will just it delay It deposits interior all data and WIFI module 120 is sent to by Beacon message, i.e., in present embodiment, Beacon message is not One interval Beacon of every mistake is just sent once, but may be have passed through several intervals Beacon and just be sent a Beacon report Text, such as traditional wireless router 200 send a Beacon message every 100ms (i.e. being divided into 100ms between Beacon), and It is not fixed for sending the time of Beacon message in present embodiment every time, it may be possible to cross 200ms and (cross 2 The interval Beacon) Beacon message is just sent, or crossed 300ms (having crossed 3 intervals Beacon) and just sent Beacon report Text, in short, data cached ought only reach given threshold just sends Beacon message.
Therefore, present embodiment optimizes wireless router 200, can cache more data, reduces portable The WIFI module 120 of formula web camera 100 receives the frequency of data in a power-save mode, and then can reduce portable network Power consumption under 100 battery saving mode of video camera.
Above-mentioned wireless router operation method is before step S230 in one of the embodiments, further include: obtains and increases Given threshold after big.Also, step S230 are as follows: judge whether the data capacity in caching reaches the given threshold after increasing, If so, executing step S240, step S210 is otherwise continued to execute.Therefore, the present embodiment enables wireless router 200 to support It is more data cached, to further decrease the frequency that WIFI module 120 receives data in a power-save mode.
One of concrete methods of realizing of above-mentioned wireless router operation method is as follows in one of the embodiments, Please refer to Figure 10.
Above-mentioned steps S230 is to judge whether the data capacity in caching reaches given threshold, if so, executing step S240, it is no to then follow the steps S250.
Step S250 judges whether cache-time is more than setting time threshold value, if so, thening follow the steps S240, is otherwise held Row continues to execute step S210.
Wherein, cache-time referred to from the last time for sending the timing of Beacon start of heading and undergoing altogether.Setting time Threshold value, which is equivalent to, defines that can at most pass through several intervals Beacon just send Beacon message.The step refers to, even if slow It deposits capacity and has not been reached yet given threshold, but if cache-time is longer, and be more than setting time threshold value, will just it delay All data deposited are sent to WIFI module 120, and in other words, the adjacent time sent between Beacon message twice cannot be too It is long, data are not sent to WIFI module 120 to avoid because of the long period, and influence the normal operation of WIFI module 120.
It further, can also include: the setting time threshold value obtained after extending before step S250.Also, step S250 are as follows: judge cache-time whether be more than extend after setting time threshold value, if so, execute step S240, otherwise execute step Rapid S250.Therefore, the present embodiment enables wireless router 200 to cache the longer time, to further decrease WIFI module 120 receive the frequency of data in a power-save mode.
It further include following before step S230 in one of the embodiments, in above-mentioned wireless router operation method Step please refers to Figure 11.
Step S220 obtains the interval Beacon after extending.
Also, step S240 is step S241, and the data in caching are passed through according to the interval Beacon after extension Beacon message is sent to WIFI module 120.
Wherein, the interval Beacon refer to conventional wireless router it is adjacent twice send Beacon message between time between Every in other words, traditional wireless router just sends a Beacon message every the interval Beacon.In the present embodiment, quite In the sending cycle for extending Beacon message.Data in caching are reported according to the interval Beacon after extension by Beacon Text is sent to WIFI module 120, in other words, may just send one behind the interval Beacon after several extensions in the present embodiment Secondary Beacon message, for example, traditional wireless router 200 sends a Beacon message, and this implementation every 100ms 100ms is not only extended for 300ms (being divided into 300ms between the Beacon after extending) in mode, but also sends Beacon every time The time of message is not fixed, it may be possible to cross 600ms (interval Beacon after having crossed 2 extensions) and just send Beacon message, or crossed 900ms (interval Beacon after having crossed 3 extensions) and just sent Beacon message, as long as slow The capacity of deposit data is more than given threshold.
It can be seen that being just to send a Beacon report behind the interval Beacon after have passed through several extensions in the present embodiment Text, to further reduced the frequency of Beacon message transmission.Since WIFI module 120 can periodically listen to Beacon report Text, therefore, the frequency that Beacon message is sent reduce, so that it may the frequency that WIFI module 120 receives Beacon message is reduced, To reduce the power consumption of WIFI module 120 in a power-save mode.
It should be noted that in other embodiments, being also possible to only extend the interval Beacon, to reduce Beacon report The frequency that text is sent.
Above-mentioned steps S210 specifically includes the following contents in one of the embodiments, please refers to Figure 12.
Step S211 receives the data from server 300.
Step S212 judges whether above-mentioned data are multicast message or broadcasting packet, if so, step S213 is executed, otherwise, Execute step S214.
Wherein, if so, referring to that above-mentioned data are multicast message or broadcasting packet.Otherwise, refer to above-mentioned data neither group Casting text is not again broadcasting packet.
Above-mentioned data are not placed in caching by step S213.
Wherein, above-mentioned data are not placed in caching, above-mentioned data will not be sent to WIFI module after representative 120.Further, step S213 is specifically as follows: above-mentioned data not being placed in caching, while judging that above-mentioned data are ARP (Address Resolution Protocol, address resolution protocol) request or DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) request when, responded.Wherein, if it is ARP request, nothing Line router 200 can for example send corresponding MAC Address.If it is DHCP request, then wireless router 200 can be without Response, neglects the request.
Above-mentioned data are placed in caching by step S214.
Multicast message and broadcasting packet are all the data unrelated with WIFI module 120.Therefore, in the present embodiment, no route The data filtering unrelated with WIFI module 120 is fallen by device 200, to avoid some unrelated data being sent to WIFI module 120, it may make WIFI module 120 in a power-save mode without frequently receiving data, to further decrease power consumption.
Further, some broadcast of wireless router 200, the application service of multicast, such as UPNP can also be closed (Universal Plug and Play), IGMP (Internet Group Management Protocol), thus further Simplify the application of router.
It should be noted that the flow diagram of Fig. 1, Fig. 4 to the method that Figure 12 is the embodiment of the present invention.It should be understood that It is, although each step in the flow chart of Fig. 1, Fig. 4 to Figure 12 successively shows that these steps are simultaneously according to the instruction of arrow It is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, the execution of these steps is not There is stringent sequence limitation, can execute in the other order.Moreover, at least part step of Fig. 1, Fig. 4 into Figure 12 It may include that perhaps these sub-steps of multiple stages or stage have been executed in synchronization to multiple sub-steps At, but can execute at different times, execution sequence, which is also not necessarily, successively to be carried out, but can with other steps or The sub-step or at least part in stage of other steps of person execute in turn or alternately.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of portable network video camera operation method, applied to the portable network including WIFI module and IPC main module Video camera;After the IPC main module sends data to server, configures the WIFI module and enter battery saving mode, power consumption Control module powers off the IPC main module;Working method of the WIFI module under the battery saving mode include:
Judge whether the connection with wireless router disconnects, if so, reconnecting with the wireless router, and by described Wireless router sends heartbeat message to the server;Otherwise, the heart is sent to the server by the wireless router Jump message;
The Beacon message of the wireless router is listened to every the time of DTIM value, and according to the content of the Beacon message Judge to receive the data from server when server sends data;
Wherein, it after the WIFI module discovery is disconnected with the wireless router, can be built automatically with the wireless router Vertical connection, without waking up the IPC module, the Beacon message includes a data dial gauge TIM, and the TIM, which is indicated, to be worked as The preceding data from the server for whether having caching.
2. portable network video camera operation method according to claim 1, which is characterized in that passing through the no route Before sending heartbeat message to the server from device, the working method further include:
Obtain the eartbeat interval after extending;
Meanwhile heartbeat message is sent to the server by the wireless router are as follows: send heartbeat message away from the last time Time when reaching the eartbeat interval after the extension, the heartbeat report is sent to the server by the wireless router Text;
Wherein, the eartbeat interval refers to the adjacent time interval sent between heartbeat message twice of the WIFI module.
3. portable network video camera operation method according to claim 1, which is characterized in that every DTIM value when Between listen to the Beacon message of the wireless router, and judge that server sends data according to the content of the Beacon message When receive the data from server before, the working method further include:
Obtain the DTIM value after increasing;
Also, the Beacon message of the wireless router is listened to every the time of DTIM value, and according to the Beacon message Content judge server send data when receive the data from server are as follows:
The time of DTIM value after the increase listens to the Beacon message of the wireless router, and according to described The content of Beacon message judges to receive the data from server when server sends data.
4. existing according to claim 1 to portable network video camera operation method, feature described in any one of 3 claims In whether judgement and the connection of wireless router disconnect are as follows:
By continuously listening to whether the Beacon message judgement and the connection of wireless router disconnect.
5. a kind of wireless router operation method, takes the photograph with portable network described in any one of claims 1 to 4 claim The cooperation operation of camera operation method, which comprises
It receives the data from server and is placed in caching;
Judge whether the data capacity in the caching reaches given threshold, if so, the data in the caching are passed through WIFI module described in Beacon message notifying receives data;Otherwise, it continues to execute and receives the data from server and be placed in Step in caching.
6. wireless router operation method according to claim 5, which is characterized in that judge that the data in the caching are held Whether amount reaches given threshold, if so, the data in the caching are connect by WIFI module described in Beacon message notifying Receive data;Otherwise, it continues to execute to receive the data from server and be placed in the step in caching and includes:
Judge whether the data capacity in the caching reaches given threshold, if so, the data in the caching are passed through Beacon message is sent to the WIFI module;Otherwise, judge whether cache-time is more than setting time threshold value, if then by institute The data stated in caching receive data by WIFI module described in Beacon message notifying, otherwise continue to execute reception from service The data of device and the step being placed in caching.
7. wireless router operation method according to claim 5, which is characterized in that judging the data in the caching Before whether capacity reaches given threshold, the wireless router operation method further include:
Obtain the interval Beacon after extending;
Also, the data in the caching are received into data by WIFI module described in Beacon message notifying are as follows:
Data in the caching are passed through into WIFI mould described in Beacon message notifying according to the interval Beacon after the extension Block receives data.
8. wireless router operation method according to claim 5, which is characterized in that receive the data from server simultaneously It is placed in caching and includes:
Receive the data from server;
Judge whether the data are multicast message or broadcasting packet, if so, the data are not placed in the caching; Otherwise, the data are placed in the caching.
9. wireless router operation method according to claim 5, which is characterized in that judging the data in the caching Before whether capacity reaches given threshold, the method also includes:
Obtain the given threshold after increasing;
Also, the step of whether data capacity in the caching reaches given threshold judged are as follows: judge the number in the caching Whether reach the given threshold after the increase according to capacity.
10. wireless router operation method according to claim 6, which is characterized in that judging whether cache-time surpasses It crosses before setting time threshold value, the method also includes:
Obtain the setting time threshold value after extending;
Also, judge whether cache-time is more than setting time threshold value are as follows:
Judge whether cache-time is more than setting time threshold value after the extension.
CN201710458869.4A 2017-06-16 2017-06-16 Portable network video camera and wireless router operation method Active CN107360362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710458869.4A CN107360362B (en) 2017-06-16 2017-06-16 Portable network video camera and wireless router operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710458869.4A CN107360362B (en) 2017-06-16 2017-06-16 Portable network video camera and wireless router operation method

Publications (2)

Publication Number Publication Date
CN107360362A CN107360362A (en) 2017-11-17
CN107360362B true CN107360362B (en) 2019-11-29

Family

ID=60272850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710458869.4A Active CN107360362B (en) 2017-06-16 2017-06-16 Portable network video camera and wireless router operation method

Country Status (1)

Country Link
CN (1) CN107360362B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270770B (en) * 2017-12-21 2021-08-13 深圳市芯睿视科技有限公司 Low-power consumption equipment, keep-alive server, message pushing method and system
CN108200346A (en) * 2018-01-23 2018-06-22 杭州矩视科技有限公司 Web camera control method, device, web camera and storage medium
CN111355685A (en) * 2018-12-21 2020-06-30 杭州登虹科技有限公司 Double-chain keep-alive scheme for low-power-consumption product
CN109640305B (en) * 2018-12-27 2022-04-22 维沃移动通信有限公司 Audio and video acquisition method, Bluetooth device and terminal device
CN111491129A (en) * 2019-01-29 2020-08-04 深圳市共进电子股份有限公司 Network monitoring system, router operation method and device and router
CN110365895A (en) * 2019-06-03 2019-10-22 浙江大华技术股份有限公司 Photographic device adjusting method, system, readable storage medium storing program for executing and equipment
CN112987904B (en) * 2019-12-18 2022-11-11 成都鼎桥通信技术有限公司 Heartbeat control method and device
CN111193912A (en) * 2020-01-15 2020-05-22 珠海安联锐视科技股份有限公司 Low-power-consumption battery camera set system
CN111556555A (en) * 2020-04-29 2020-08-18 杭州涂鸦信息技术有限公司 Low-power-consumption keep-alive method and system for network camera and gateway
CN114222062A (en) * 2021-12-13 2022-03-22 杭州萤石软件有限公司 Stream taking method, low-power-consumption battery equipment, client, stream taking system and equipment
CN114302058B (en) * 2021-12-27 2023-05-16 浙江大华技术股份有限公司 Method and device for improving camera wake-up accuracy and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471992A (en) * 2007-12-24 2009-07-01 联想(北京)有限公司 Mobile terminal and method for sending business information to mobile terminal through network
CN102036349A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Method for maintaining connection of terminal and network server, terminal and network server
CN102984791A (en) * 2012-12-11 2013-03-20 清华大学 Energy-saving method for wireless sensor node
CN104125077A (en) * 2014-07-28 2014-10-29 深圳市双赢伟业科技股份有限公司 Communication method and equipment for network terminal equipment
CN105357483A (en) * 2015-11-17 2016-02-24 深圳市共进电子股份有限公司 Low power consumption network camera system and portable low power consumption IP camera
CN105872391A (en) * 2016-06-15 2016-08-17 华为技术有限公司 Control method, control device and control system for IP (Internet Protocol) Camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471992A (en) * 2007-12-24 2009-07-01 联想(北京)有限公司 Mobile terminal and method for sending business information to mobile terminal through network
CN102036349A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Method for maintaining connection of terminal and network server, terminal and network server
CN102984791A (en) * 2012-12-11 2013-03-20 清华大学 Energy-saving method for wireless sensor node
CN104125077A (en) * 2014-07-28 2014-10-29 深圳市双赢伟业科技股份有限公司 Communication method and equipment for network terminal equipment
CN105357483A (en) * 2015-11-17 2016-02-24 深圳市共进电子股份有限公司 Low power consumption network camera system and portable low power consumption IP camera
CN105872391A (en) * 2016-06-15 2016-08-17 华为技术有限公司 Control method, control device and control system for IP (Internet Protocol) Camera

Also Published As

Publication number Publication date
CN107360362A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN107360362B (en) Portable network video camera and wireless router operation method
EP3609135B1 (en) Ip camera control method, apparatus, and system
US11265814B2 (en) Implementation method of low power consumption internet of things based on proxy apparatus
JP5010553B2 (en) Wireless device
US7133398B2 (en) System and method for asynchronous communications employing direct and indirect access protocols
US8369797B2 (en) Communication apparatus and communication method, and computer program therefor
US9198217B2 (en) Method for maintaining connection between terminal and network server, terminal and network server
CN110167043B (en) Equipment control method and device, Internet of things system, electronic equipment and storage medium
GB2506367A (en) Transmitting data between VVi-Fi RTM stations without them being fully connected to a Wi-Fi network
CN109474975A (en) A kind of method and terminal, platform of internet of things of networking
WO2016106730A1 (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
CN107204999B (en) Method and device for realizing heartbeat
JP7113979B2 (en) Signal repeater device capable of operating in low-power repeater mode of operation
AU2005266065A1 (en) System and method for providing UPnP announcements convergence
CN107534941A (en) The system of communication on network
Wu et al. Named data networking enabled power saving mode design for WLAN
CN103118387B (en) A kind of thin AP redundancy connection control method of active-standby mode
Suarez et al. Increasing ZigBee network lifetime with X-MAC
CN111935517A (en) Awakening method and device of intelligent set top box, electronic equipment and storage medium
CN111556555A (en) Low-power-consumption keep-alive method and system for network camera and gateway
CN110475321B (en) Power-saving optimization method and device for wireless local area network (AP)
CN114157559A (en) Network processing method, network processing system, electronic device, and storage medium
CN112616176B (en) Wake-up method and device and control method and device of equipment
Kamyabpour et al. A hierarchy energy driven architecture for wireless sensor networks
WO2009037624A2 (en) Multiple connection wireless interface

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