Disclosure of Invention
The embodiment of the application provides a low-power-consumption keep-alive method and a low-power-consumption keep-alive system for a network camera and a gateway, which are used for reducing energy loss of keep-alive between the network camera and the gateway in the prior art.
A first aspect of an embodiment of the present application provides a network camera and a gateway low-power keep-alive method, which is applied to a network camera, and includes:
the network camera is matched with a Bluetooth module B of the gateway through a Bluetooth module A;
the network camera keeps alive with the Bluetooth module B of the gateway through the Bluetooth module A.
Optionally, the pairing the webcam with the bluetooth module B of the gateway through the bluetooth module a includes:
the network camera broadcasts a pairing request to the outside through the Bluetooth module A;
the network camera receives a pairing response sent by the gateway through the Bluetooth module B;
the network camera performs key negotiation with the gateway according to the pairing response;
and the network camera and the gateway carry out encryption communication according to the negotiated secret key.
Optionally, after the webcam is paired with the bluetooth module B of the gateway through the bluetooth module a, the method further includes:
the network camera sends distribution network information to the gateway, so that the gateway registers the network camera with the distribution network information to a server, and forwards registration reply information of the server to the network camera;
and the network camera determines whether the network camera is connected to the server according to the registration reply information.
Optionally, the keeping alive of the webcam with the bluetooth module B of the gateway through the bluetooth module a includes:
the network camera continuously broadcasts a connection request to the outside through the Bluetooth module A;
the network camera receives a connection response sent by the paired gateway through the Bluetooth module B, and connects the gateway;
and the network camera starts a low-power keep-alive mode.
Optionally, the network camera turning on the low-power keep-alive mode includes:
the network camera reduces the time interval of keep-alive communication with the gateway and sends the time interval to the gateway;
and the network camera carries out keep-alive communication with the gateway according to the time interval.
Optionally, the network camera further includes a WiFi module a, and after the network camera is paired with a bluetooth module B of the gateway through the bluetooth module a, the method further includes:
the network camera receives a wake-up packet sent by a Bluetooth module B of the gateway through the Bluetooth module A;
the network camera starts the WiFi module A according to the awakening packet;
and the network camera establishes communication with a WiFi module B of the gateway through the WiFi module A.
A second aspect of the embodiments of the present application provides another network camera and gateway low-power keep-alive method, which is applied to a gateway, and includes:
the gateway is paired with a Bluetooth module A of the network camera through a Bluetooth module B;
the gateway keeps alive with the Bluetooth module A of the network camera through the Bluetooth module B.
Optionally, the pairing the gateway with the bluetooth module a of the network camera through the bluetooth module B includes:
the gateway receives a pairing request broadcast by the Bluetooth module A of the network camera through the Bluetooth module B;
the gateway replies a pairing response according to the pairing request and performs key negotiation with the network camera;
and the gateway and the network camera carry out encrypted communication according to the negotiated secret key.
Optionally, after the gateway is paired with the bluetooth module a of the network camera through the bluetooth module B, the method further includes:
the gateway receives the distribution network information sent by the network camera;
the gateway registers the network camera with the distribution network information to a server;
the gateway receives registration reply information of the server to the network camera;
and the gateway forwards the registration reply information to the network camera so that the network camera determines whether the network camera is connected to the server according to the registration reply information.
Optionally, the keeping alive of the gateway and the bluetooth module a of the network camera through the bluetooth module B includes:
the gateway receives a connection request broadcasted by the network camera;
the gateway detects whether the network cameras are paired according to the connection request;
if the gateway determines that the network camera is the paired network camera, the gateway is directly connected with the network camera;
and the gateway responds to and enters a low-power keep-alive mode of the network camera.
Optionally, the gateway responding to and entering the low-power keep-alive mode of the network camera includes:
the gateway receives a time interval of sending reduced keep-alive communication by the network camera;
and the gateway performs keep-alive communication with the network camera according to the time interval.
Optionally, the gateway further includes a WiFi module B, and after the gateway pairs with the bluetooth module a of the network camera through the bluetooth module B, the method further includes:
the gateway sends a wake-up packet to a Bluetooth module A of the network camera through the Bluetooth module B;
and the gateway establishes communication with a WiFi module A of the network camera through the WiFi module B according to the awakening packet.
A third aspect of the embodiments of the present application provides a network camera and gateway low-power keep-alive system, which is applied to a network camera, and includes:
the Bluetooth module A is used for pairing with the Bluetooth module B of the gateway;
the Bluetooth module A is also used for keeping alive with the Bluetooth module B.
Optionally, when the bluetooth module a is paired with the bluetooth module B, the bluetooth module a is specifically configured to:
broadcasting a pairing request outwards;
receiving a pairing response sent by the Bluetooth module B;
carrying out key negotiation with the Bluetooth module B according to the pairing response;
and carrying out encrypted communication with the Bluetooth module B according to the negotiated secret key.
Optionally, the system further comprises:
the Bluetooth module A is also used for sending distribution network information to the gateway, so that the gateway registers the network camera with the distribution network information to a server and forwards registration reply information of the server to the network camera;
a determining unit, configured to determine whether the server is connected according to the registration reply information.
Optionally, when the bluetooth module a keeps alive with the bluetooth module B, the bluetooth module a is specifically configured to:
continuously broadcasting the connection request outwards;
receiving a connection response sent by the paired gateway through the Bluetooth module B, and connecting the paired gateway to the gateway;
and starting a low-power keep-alive mode.
Optionally, the bluetooth module a is specifically configured to, when the low power keep-alive mode is turned on:
reducing the time interval of keep-alive communication with the gateway and sending the time interval to the gateway;
keep-alive communication is conducted with the gateway according to the time interval.
Optionally, the system further includes a WiFi module a, and the system further includes:
the Bluetooth module A is also used for receiving the awakening packet sent by the Bluetooth module B;
the wake-up unit is used for starting the WiFi module A according to the wake-up packet;
and the WiFi module A is used for establishing communication with the WiFi module B of the gateway.
A fourth aspect of the embodiments of the present application provides a network camera and gateway low power consumption keep-alive system, which is applied to a gateway, and includes:
the Bluetooth module B is used for pairing with the Bluetooth module A of the network camera;
the Bluetooth module B is also used for keeping alive with the Bluetooth module A.
Optionally, when the bluetooth module B is paired with the bluetooth module a, the bluetooth module B is specifically configured to:
receiving a pairing request broadcast by the Bluetooth module A;
replying a pairing response according to the pairing request, and performing key negotiation with the Bluetooth module A;
and carrying out encrypted communication with the Bluetooth module A according to the negotiated secret key.
Optionally, after the gateway bluetooth module B is paired with the webcam bluetooth module a, the method further includes:
the Bluetooth module B is also used for receiving the distribution network information sent by the Bluetooth module A;
the registration unit is used for registering the network camera with the distribution network information to a server so that the server registers the distribution network information of the network camera to obtain registration reply information and sends the registration reply information to the gateway;
the bluetooth module B is further configured to forward the registration reply information to the network camera, so that the network camera determines whether the network camera is connected to the server according to the registration reply information.
Optionally, when the bluetooth module B keeps alive with the bluetooth module a, the bluetooth module B is specifically configured to:
receiving a connection request broadcasted by the Bluetooth module A;
detecting whether the Bluetooth module A is paired or not according to the connection request;
if the Bluetooth module A is determined to be paired, directly connecting the Bluetooth module A;
responding and entering a low-power keep-alive mode of the Bluetooth module A.
Optionally, when the bluetooth module B responds and enters the low power keep-alive mode of the bluetooth module a, the bluetooth module B is specifically configured to:
receiving a time interval for the Bluetooth module A to send reduced keep-alive communications;
and performing keep-alive communication with the Bluetooth module A according to the time interval.
Optionally, the system further includes a WiFi module B, the system further includes:
the Bluetooth module B is also used for sending a wake-up packet to the Bluetooth module A;
and the WiFi module B is used for establishing communication with the WiFi module A according to the awakening packet.
A fifth aspect of an embodiment of the present application provides a network camera, including:
the device comprises a processor, a memory, a bus, a camera assembly, a Bluetooth module A, WiFi and a module A;
the processor is connected with the memory, the camera shooting assembly, the Bluetooth module A and the WiFi module A through a bus;
the processor performs the method of any of the preceding first aspects.
A sixth aspect of the embodiments of the present application provides a gateway, including:
processor, memory, bus, bluetooth module B, WiFi module B;
the processor is connected with the memory, the Bluetooth module B and the WiFi module B through a bus;
the processor performs the method of any of the preceding second aspects.
A seventh aspect of embodiments of the present application provides a computer storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the method according to any one of the first or second aspects.
An eighth aspect of embodiments of the present application is a computer program product, which, when executed on a computer, causes the computer to perform the method according to any one of the first or second aspects.
According to the technical scheme, the embodiment of the application has the following advantages:
in the technical scheme of the application, the Bluetooth module A is configured in the network camera and the Bluetooth module B is configured in the gateway, so that the keep-alive between the network camera and the gateway can be carried out through the Bluetooth module A and the Bluetooth module B, compared with the prior art that the WiFi module is used for keeping alive, the technical scheme of the application overcomes the thinking inertia of people, the keep-alive is carried out by introducing the communication using the Bluetooth module, because the power consumption of the Bluetooth module is much lower than that of the WiFi module, particularly for the network camera with a battery, the reduction of the battery consumption is very important for improving the endurance capacity, the communication between the WiFi module is consumed at the milliampere level, and the communication between the Bluetooth modules is consumed at the microampere level, therefore, the use of the Bluetooth module for keep-alive communication is more electric energy-saving compared with the WiFi module for keep-alive communication, the energy loss of keeping alive between the network camera and the gateway in the prior art can be reduced.
Detailed Description
The embodiment of the application provides a low-power-consumption keep-alive method and a low-power-consumption keep-alive system for a network camera and a gateway, which are used for reducing energy loss of keep-alive between the network camera and the gateway in the prior art.
It should be noted that, the present application is mainly directed to an improvement of a current technical solution for performing keep-alive communication between a network camera and a gateway by using a WiFi module. In brief, the bluetooth module a is configured for the network camera and the bluetooth module B is configured for the gateway on the original basis, and the communication between the bluetooth module a and the bluetooth module B is limited as follows, so that the energy loss of keeping alive between the network camera and the gateway in the prior art can be effectively reduced.
Referring to fig. 1, an embodiment of a network camera in a network camera and gateway low power keep-alive system according to the present application includes:
101. the network camera is paired with the Bluetooth module B of the gateway through the Bluetooth module A.
The keep-alive communication between the network camera and the gateway is carried out by using the Bluetooth module, the Bluetooth module A is a device which is configured in the network camera and used for carrying out the keep-alive communication with the gateway, and the Bluetooth module B is a device which is configured in the gateway and used for carrying out the keep-alive communication with the network camera. Firstly, the bluetooth module a of the network camera and the bluetooth module B of the corresponding gateway need to be paired, so that the identity of the network camera and the gateway can be checked, and the correctness of the communication objects of the bluetooth module a of the network camera and the bluetooth module B of the gateway can be ensured.
102. The network camera keeps alive with the Bluetooth module B of the gateway through the Bluetooth module A.
After the network camera and the gateway are paired through their respective bluetooth modules instep 101, it should be noted that when the network camera is not performing the image capturing operation, that is, when no video data stream flows between the network camera and the gateway, the gateway needs to perform data interaction (heartbeat packet) with the network camera for a certain time interval to determine that the network camera is in the standby state, that is, keep alive. At this time, the bluetooth module a of the network camera and the bluetooth module B of the gateway can be selected to perform keep-alive communication.
In the technical scheme of the application, the Bluetooth module A is configured in the network camera and the Bluetooth module B is configured in the gateway, so that the keep-alive between the network camera and the gateway can be carried out through the Bluetooth module A and the Bluetooth module B, compared with the prior art that the WiFi module is used for keeping alive, the technical scheme of the application overcomes the thinking inertia of people, the keep-alive is carried out by introducing the communication using the Bluetooth module, because the power consumption of the Bluetooth module is much lower than that of the WiFi module, particularly for the network camera with a battery, the reduction of the battery consumption is very important for improving the endurance capacity, the communication between the WiFi module is consumed at the milliampere level, and the communication between the Bluetooth modules is consumed at the microampere level, therefore, the use of the Bluetooth module for keep-alive communication is more electric energy-saving compared with the WiFi module for keep-alive communication, the energy loss of keeping alive between the network camera and the gateway in the prior art can be reduced.
Referring to fig. 2, another embodiment of a low-power keep-alive method for a network camera and a gateway according to the present application includes:
201. the network camera broadcasts a pairing request outwards.
When the network camera with the bluetooth module a starts to be used, firstly, the network camera needs to be paired with the gateway which is correspondingly connected, the pairing process generally includes the steps of starting the bluetooth module a of the network camera and starting the bluetooth module B of the gateway, and enabling the bluetooth module a and the bluetooth module B to be arranged in a mutual signal transmission range, and then the network camera broadcasts a pairing request outwards through the bluetooth module a, so that the gateway bluetooth module B in the signal range can retrieve a signal of the pairing request.
202. And the gateway replies a pairing response according to the pairing request.
After the gateway bluetooth module B retrieves the network camera of the pairing request in step 201, it may select to allow the network camera to connect through the bluetooth module B, or may select not to allow the network camera to connect through the bluetooth module B, for example, when the gateway bluetooth is already connected with other devices, the pairing request with the network camera may be rejected, which is not limited herein. After the gateway allows the Bluetooth module A of the network camera to be paired and connected, the gateway can reply a corresponding pairing response to the Bluetooth module A of the network camera through the Bluetooth module B, and then the network camera and the gateway are paired and connected.
203. And the gateway and the network camera carry out key negotiation.
After the gateway and the webcam are connected to each other through the bluetooth module in step 202, in order to ensure the communication security between the bluetooth module, key negotiation is performed between the gateway and the webcam, in this process, communication between the gateway and the webcam is encrypted through a certain algorithm, and the gateway and the webcam each have a corresponding decryption key. Therefore, the communication between the gateway and the network camera is not easy to crack, and the network attack and illegal control are reduced.
204. And the network camera sends the distribution network information to the gateway.
After step 203, the communication between the network camera and the gateway can be performed through encryption, and at this time, the network camera can send its own distribution network information to the gateway, where the distribution network information mainly includes information such as a physical address and a model parameter of the network camera, and the distribution network information is used to forward the information to the server for registering the network camera in the server.
205. And the gateway forwards the distribution network information of the network camera to the server.
Because the network camera is not directly connected with the server, the network distribution information needs to be forwarded to the server through the gateway.
206. And the server forms registration reply information according to the distribution network information.
The server is used for storing and managing various information of the network camera, after the distribution network information of the network camera is obtained, the registration verification is completed in the server according to the distribution network information, and registration reply information is formed, wherein the registration reply information comprises registration success or registration failure. The network camera successfully registered in the server can enjoy the remote data storage and remote control services of the server.
207. The server sends the registration reply message to the gateway.
After forming the registration reply information in step 206, the server may forward the registration reply information providing gateway formed according to the distribution network information of the network camera to the network camera so that the network camera knows whether the registration is successful.
208. The gateway forwards the registration reply information of the server to the network camera.
209. And the network camera determines whether the connection with the server is successful according to the registration reply information.
The network camera can determine whether the registration is successful according to the registration reply information, if the network camera is successfully registered in the server, the network camera can accept a control instruction from the server, and the data of the network camera can be stored in the server.
210. The network camera starts a low-power keep-alive mode.
It is understood that when the network camera is in the standby mode, that is, the server has no control command for the network camera, and the network camera has no image capturing task to execute, the network camera enters the standby mode for energy saving. In the mode, the WiFi module is not started between the gateway and the network camera to transmit the video data stream, and the network camera and the gateway are kept alive only by the transmission of heartbeat packets by the Bluetooth module. It can be understood that, the network camera does not receive the shooting instruction within a certain time, and then can automatically enter the low-power-consumption keep-alive mode of the network camera and the gateway, and the process mainly comprises the following steps:
(1) the network camera continuously broadcasts the connection request outwards through the Bluetooth module A, and the step of continuously broadcasting the connection request outwards through the Bluetooth module A is to consider that the network camera and the gateway are in pairing in advance, and the network camera needs to be reconnected aiming at the condition that the network camera is off-line and is not connected with the Bluetooth module B of the gateway; if connected, this step may be omitted.
(2) The gateway can search whether the network cameras need to be connected through the Bluetooth module B at regular time, at the moment, a connection request broadcasted by the network cameras can be searched, the gateway detects whether the network cameras are matched according to the connection request, and if yes, the network cameras are directly connected; if not, the user is guided to carry out the pairing verification and the registration with the server.
(3) The low power consumption mode of the network camera mainly comprises the steps of closing high energy consumption functional modules of the network camera, such as a camera shooting component and a WiFi module A, only keeping the Bluetooth module A and the gateway to transmit heartbeat packets, and further reducing the transmission time interval of keep-alive communication heartbeat packets, so that the transmission time interval is as long as possible, the communication frequency between the network camera and the gateway is reduced on the premise of keeping standby communication, and the purpose of keeping the network camera and the gateway alive with lower power consumption is achieved.
211. And the network camera sends the low-power keep-alive mode information to the gateway.
Since the low-power keep-alive mode needs to be performed between the network camera and the gateway, the network camera needs to send the low-power keep-alive mode information to the gateway, for example, the changed transfer time interval of the keep-alive communication heartbeat packet, so that the gateway knows how to perform, and the offline of the network camera is not misjudged.
212. The gateway responds to the low power keep-alive mode.
And after receiving the low-power keep-alive mode information, the gateway responds to the low-power keep-alive mode of the network camera, such as executing a transfer time interval of a new keep-alive communication heartbeat packet and the like.
213. The server receives a control request for the network camera.
It will be understood that the server may receive a control request for controlling and managing the webcam from the application software APP of the smart device. It should be noted that the server may transmit some relevant data of the network camera to a designated intelligent terminal, such as a mobile phone, or a computer, and the intelligent terminal may view the relevant data of the network camera through a specific application software APP and remotely control the network camera through the application software APP. When the intelligent terminal remotely controls the network camera through the software application APP, the server receives a control request for the network camera.
214. The server sends a control request for the network camera to the gateway.
Since the server is not directly connected to the network camera, the control request needs to be forwarded to the corresponding network camera through the gateway.
215. The gateway determines the webcam status.
After the gateway receives the control request for the network cameras, the state of the corresponding network camera needs to be determined, that is, the gateway needs to know whether the corresponding network camera is online or not, because the gateway can only control the online network camera, the online network camera is that the network camera and the gateway are kept in a communication state and are not offline. The gateway is one of keep-alive participating devices of the network camera, and the gateway stores the latest communication information with the network camera, so that the communication time between the latest communication time and the network camera can be known by inquiring the communication record with the network camera, if the communication time between the latest communication time and the network camera does not exceed the preset time interval, the state of the network camera can be determined to be on-line, and otherwise, the network camera is determined not to be on-line.
216. The gateway sends a connection request or a wake-up packet to the network camera.
If the network camera is not on-line, the server sends a connection control instruction to enable the gateway to try to actively search and connect the corresponding network camera, if the connection is successful, a normal working state is carried out, the control request of the step 213 is responded, and if the network camera is not connected, information that the network camera is off-line is returned; if the network camera is on-line and in a working state, directly transmitting a control instruction received by the server to enable the network camera to work according to the operation instruction, and responding to the control request of the step 213; if the webcam is online and in the standby state, a preset webcam wake-up packet may be selected and called, where the wake-up packet is used to activate the webcam from the standby state to turn to the working state, and respond to the control request of step 213.
217. The network camera enters a normal working state.
The network camera enters a working state, namely, the WiFi module A of the network camera is started according to the connection request or the wake-up packet, so that the WiFi module A and the WiFi module B of the gateway are connected and communicated. Further, the gateway may transmit information such as a signal frequency band and a connection password of the WiFi module B to the bluetooth module a of the network camera through the paired bluetooth module B in the wake-up packet or the connection request, so that the WiFi module a of the network camera may be quickly connected with the WiFi module B of the gateway.
In the technical scheme of the application, the Bluetooth module A is configured in the network camera and the Bluetooth module B is configured in the gateway, so that the keep-alive between the network camera and the gateway can be carried out through the Bluetooth module A and the Bluetooth module B, compared with the prior art that the WiFi module is used for keeping alive, the technical scheme of the application overcomes the thinking inertia of people, the keep-alive is carried out by introducing the communication using the Bluetooth module, because the power consumption of the Bluetooth module is much lower than that of the WiFi module, particularly for the network camera with a battery, the reduction of the battery consumption is very important for improving the endurance capacity, the communication between the WiFi module is consumed at the milliampere level, and the communication between the Bluetooth modules is consumed at the microampere level, therefore, the use of the Bluetooth module for keep-alive communication is more electric energy-saving compared with the WiFi module for keep-alive communication, the energy loss of keep-alive between the network camera and the gateway in the prior art can be reduced, and on the basis, if the long range mode based on the Bluetooth is adopted, the network camera and the gateway can be kept alive at a longer distance.
In the above description of the embodiments of the network camera and the gateway low-power keep-alive method of the present application, the following description describes a system of the network camera and the gateway low-power keep-alive method of the present application, please refer to fig. 3, and a network camera and gateway low-power keep-alive system is applied to the network camera, and includes:
the Bluetooth module A301 is used for pairing with a Bluetooth module B of the gateway;
the bluetooth module a301 is further configured to keep alive with the bluetooth module B.
Optionally, when the bluetooth module a301 is paired with the bluetooth module B, the bluetooth module a is specifically configured to:
broadcasting a pairing request outwards;
receiving a pairing response sent by the Bluetooth module B;
carrying out key negotiation with the Bluetooth module B according to the pairing response;
and carrying out encrypted communication with the Bluetooth module B according to the negotiated secret key.
Optionally, the system further comprises:
the bluetooth module a301 is further configured to send distribution network information to the gateway, so that the gateway registers the network camera with the distribution network information to a server, and forwards registration reply information of the server to the network camera;
a determiningunit 302, configured to determine whether the server is connected according to the registration reply information.
Optionally, when the bluetooth module a301 keeps alive with the bluetooth module B, the bluetooth module a301 is specifically configured to:
continuously broadcasting the connection request outwards;
receiving a connection response sent by the paired gateway through the Bluetooth module B, and connecting the paired gateway to the gateway;
and starting a low-power keep-alive mode.
Optionally, when the bluetooth module a301 starts the low power keep-alive mode, it is specifically configured to:
reducing the time interval of keep-alive communication with the gateway and sending the time interval to the gateway;
keep-alive communication is conducted with the gateway according to the time interval.
Optionally, the system further includes a WiFi module a, and the system further includes:
the bluetooth module a301 is further configured to receive a wake-up packet sent by the bluetooth module B;
awakeup unit 303 unit, configured to start the WiFi module a according to the wakeup packet;
the WiFi module a304 is configured to establish communication with the WiFi module B of the gateway.
In this embodiment, a network camera and gateway low-power keep-alive system is applied to a network camera, and operations performed by the network camera are similar to those performed by the network camera in fig. 1 or fig. 2, which are not described herein again.
In the technical scheme of the application, the Bluetooth module A301 is configured in the network camera and the Bluetooth module B is configured in the gateway, so that the keep-alive between the network camera and the gateway can be carried out through the Bluetooth module A301 and the Bluetooth module B, compared with the prior art that the WiFi module is used for keeping alive, the technical scheme of the application overcomes the thinking inertia of people, the keep-alive is carried out by introducing the communication using the Bluetooth module, because the power consumption of the Bluetooth module is much lower than that of the WiFi module, especially for the network camera with a battery, the reduction of the consumption of the battery is very important for improving the endurance, the communication between the WiFi module is consumed at the milliampere level, and the communication between the Bluetooth module is consumed at the microampere level, therefore, the use of the Bluetooth module for keep-alive communication is more electric energy-saving compared with the WiFi module for keep-alive communication, the energy loss of keeping alive between the network camera and the gateway in the prior art can be reduced.
Referring to fig. 4, a low power consumption keep-alive system for a network camera and a gateway, applied to the gateway, includes:
the Bluetooth module B401 is used for pairing with the Bluetooth module A of the network camera;
the bluetooth module B401 is further configured to keep alive with the bluetooth module a.
Optionally, when the bluetooth module B401 is paired with the bluetooth module a, it is specifically configured to:
receiving a pairing request broadcast by the Bluetooth module A;
replying a pairing response according to the pairing request, and performing key negotiation with the Bluetooth module A;
and carrying out encrypted communication with the Bluetooth module A according to the negotiated secret key.
Optionally, after the gateway bluetooth module B401 is paired with the webcam bluetooth module a, the method further includes:
the bluetooth module B401 is further configured to receive distribution network information sent by the bluetooth module a;
a registeringunit 402, configured to register the network camera with the distribution network information, so that the server registers the distribution network information of the network camera to obtain registration reply information, and sends the registration reply information to the gateway;
the bluetooth module B401 is further configured to forward the registration reply information to the network camera, so that the network camera determines whether the network camera is connected to the server according to the registration reply information.
Optionally, when the bluetooth module B401 keeps alive with the bluetooth module a, it is specifically configured to:
receiving a connection request broadcasted by the Bluetooth module A;
detecting whether the Bluetooth module A is paired or not according to the connection request;
if the Bluetooth module A is determined to be paired, directly connecting the Bluetooth module A;
responding and entering a low-power keep-alive mode of the Bluetooth module A.
Optionally, when the bluetooth module B401 responds and enters the low power keep-alive mode of the bluetooth module a, it is specifically configured to:
receiving a time interval for the Bluetooth module A to send reduced keep-alive communications;
and performing keep-alive communication with the Bluetooth module A according to the time interval.
Optionally, the system further includes a WiFi module B, the system further includes:
the bluetooth module B401 is further configured to send a wakeup packet to the bluetooth module a;
the WiFi module B403 is configured to establish communication with the WiFi module a according to the wake-up packet.
In this embodiment, a low-power keep-alive system for a network camera and a gateway is applied to the gateway, and the operation performed is similar to the operation performed by the gateway in fig. 1 or fig. 2, which is not described herein again.
In the technical scheme of the application, the Bluetooth module A301 is configured in the network camera and the Bluetooth module B is configured in the gateway, so that the keep-alive between the network camera and the gateway can be carried out through the Bluetooth module A301 and the Bluetooth module B, compared with the prior art that the WiFi module is used for keeping alive, the technical scheme of the application overcomes the thinking inertia of people, the keep-alive is carried out by introducing the communication using the Bluetooth module, because the power consumption of the Bluetooth module is much lower than that of the WiFi module, especially for the network camera with a battery, the reduction of the consumption of the battery is very important for improving the endurance, the communication between the WiFi module is consumed at the milliampere level, and the communication between the Bluetooth module is consumed at the microampere level, therefore, the use of the Bluetooth module for keep-alive communication is more electric energy-saving compared with the WiFi module for keep-alive communication, the energy loss of keep-alive between the network camera and the gateway in the prior art can be reduced, and on the basis, if the long range mode based on the Bluetooth is adopted, the network camera and the gateway can be kept alive at a longer distance.
Another embodiment of the network camera and the gateway low-power keep-alive system applied to the network camera is described below, with reference to fig. 5, which specifically includes:
the webcam and gateway low power keep-alive system 500 may include one or more processors (CPUs) 501 and amemory 505, where one or more applications or data are stored in thememory 505.Memory 505 may be volatile storage or persistent storage, among others. The program stored inmemory 505 may include one or more modules, each of which may include a series of instruction operations for a webcam and gateway low power keep alive system. The webcam and gateway low power keep-alive system 500 may further include one or more bluetooth modules a503, one or more WiFi modules a504, one ormore batteries 502, one ormore camera components 506, one or more operating systems, such as Andriod, Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. The processor 501 of the network camera and gateway low-power keep-alive system 500 may perform all or part of the operations performed by the network camera in the foregoing embodiments shown in fig. 1 or fig. 2, and details are not repeated here.
The following describes another embodiment of applying the network camera and the gateway low-power keep-alive system to the gateway, with reference to fig. 6, which specifically includes:
the webcam and gateway low power keep-alive system 600 may include one or more processors (CPUs) 601 and amemory 605, where thememory 605 stores one or more applications or data. Thememory 605 may be volatile storage or persistent storage, among other things. The program stored inmemory 605 may include one or more modules, each of which may include a series of instructional operations on the webcam and gateway low power keep-alive system. The webcam and gateway low power keep-alive system 600 may further include one or more bluetooth modules B603, one or more WiFi modules B604, one ormore power supplies 602, one or more camera components 606, one or more operating systems, such as Andriod, Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Theprocessor 601 of the network camera and gateway low-power keep-alive system 500 may perform all or part of the operations performed by the gateway in the embodiments shown in fig. 1 or fig. 2, which is not described herein again in detail.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other media capable of storing program codes.