A method and device for keeping a network protocol camera alive
By combining the star flash module and WiFi module in smart IPC devices, the low power consumption and efficient data transmission characteristics of star flash technology are solved, and the problems of high power consumption and susceptibility to interference in traditional WiFi technology are achieved, achieving low power consumption and high efficiency Data transmission extends the battery life of the device and ensures real-time connectivity.
Patent Information
- Application Number
- CN202410725801.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Traditional WiFi technology consumes high power and is susceptible to interference in smart IPC devices, resulting in shortening battery life. The existing low-power alternative technology lacks data transmission rate, coverage range and anti-interference capability, making it difficult to meet stable and reliable wireless communications. need.
The combination of the star flash module and the WiFi module is used to transmit low-power signal in the keep-alive state through the star flash module, and the channel encoding and modulation method of the star flash technology is used to improve the anti-interference ability, and switch to WiFi in the video acquisition state. The module performs high-speed data transmission, and combines a passive infrared sensor to determine the transmission mode to achieve low power consumption and efficient data transmission.
It significantly reduces the power consumption of network protocol cameras, improves the anti-interference characteristics of data transmission, extends battery life, and ensures real-time connectivity of equipment and real-time data transmission.
Smart Images

Figure CN118301469B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of data transmission, and in particular, relates to a method and device for keeping a network protocol camera alive. Background Art
[0002] How to effectively extend the battery life of smart IPC (Internet Protocol Camera) devices and keep them online is an important technical challenge during their continuous operation. Traditional WiFi-based IPC devices usually consume more power when they are online. In complex environments, the system loses heartbeat keep-alive packets due to interference, resulting in retransmission, which increases power consumption. This is a critical issue for battery-powered devices.
[0003] With the widespread application of smart devices, the demand for stable, reliable and low-power wireless communication technology is growing. In this context, traditional WiFi technology has gradually revealed its limitations due to its high power consumption and susceptibility to interference in complex electromagnetic environments. Existing solutions include low-power Bluetooth (BLE), low-power WiFi variants (such as WiFiHaLow), and various low-power wide area network technologies (LPWAN), such as LoRa and NB-IoT. Although these technologies have solved the power consumption problem to a certain extent, they are still insufficient in terms of data transmission rate, coverage, and anti-interference ability. For example, the keep-alive power consumption of WiFi and 4G LTE is not low enough, the coverage range of low-power Bluetooth is very small, WiFi Halow has certain advantages in coverage distance but the rate is low, and the antenna requirements for small low-power devices are high, and Lora and NB-Iot devices are limited because the transmission rate is too low to carry some user-defined applications. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a network protocol camera keep-alive method and device, which aims to improve the energy efficiency of IPC equipment, extend battery life, and ensure real-time connectivity of the equipment.
[0005] The first aspect of the present application is a method for keeping a network protocol camera alive, which mainly includes:
[0006] Step S1, obtaining the current network protocol camera status, wherein the network protocol camera status includes a keep-alive status and a video acquisition status;
[0007] Step S2, when the network protocol camera is in a keep-alive state, the keep-alive signal is sent to a router that also has a Star Flash module through the Star Flash module installed on the network protocol camera, and then transmitted to the server after being transparently transmitted to the WiFi module by the router. When the network protocol camera is in a video acquisition state, the acquired video is sent to the server through the WiFi module installed on the network protocol camera.
[0008] Preferably, step S1 further comprises:
[0009] Step S11, determining whether there is a moving object;
[0010] Step S12: When there is a moving object, video acquisition is performed, and it is determined that the current network protocol camera is in a video acquisition state; otherwise, it is determined that the current network protocol camera is in a keep-alive state.
[0011] Preferably, in step S11, whether there is a moving object is determined by a passive infrared sensor PIR.
[0012] Preferably, step S2 further comprises:
[0013] When the network protocol camera is in the keep-alive state, the Star Flash module receives the device inspection instruction and the keep-alive response signal forwarded by the router.
[0014] In a second aspect of the present application, a network protocol camera keep-alive device mainly includes:
[0015] A camera status determination module is used to obtain the current network protocol camera status, wherein the network protocol camera status includes a keep-alive status and a video acquisition status;
[0016] The switching module is used to send a keep-alive signal to a router that also has a Star Flash module through the Star Flash module installed on the network protocol camera when the network protocol camera is in a keep-alive state, and then transmit it to the server after being transparently transmitted to the WiFi module by the router. When the network protocol camera is in a video acquisition state, the acquired video is sent to the server through the WiFi module installed on the network protocol camera.
[0017] Preferably, the camera state determination module includes:
[0018] A moving object recognition unit, used to determine whether there is a moving object;
[0019] The camera state determination unit is used to perform video acquisition when there is a moving object and determine that the current network protocol camera is in a video acquisition state, otherwise determine that the current network protocol camera is in a keep-alive state.
[0020] Preferably, the moving object identification unit includes a passive infrared sensor PIR, and determines whether a moving object exists by using the passive infrared sensor PIR.
[0021] Preferably, the switching module includes:
[0022] The data receiving unit is used to receive the device inspection instruction and the keep-alive response signal forwarded by the router through the Star Flash module when the network protocol camera is in the keep-alive state.
[0023] In a third aspect of the present application, a network protocol camera comprises a processor, a memory, a star flash module, a WiFi module, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a network protocol camera keep-alive method as described in any one of the above items.
[0024] A fourth aspect of the present application is a readable storage medium, wherein the readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the network protocol camera keep-alive method as described above.
[0025] The present application reduces the power consumption of the network protocol camera and improves the anti-interference characteristics of the data transmission of the network protocol camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flow chart of a preferred embodiment of the network protocol camera keep-alive method of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the implementation of this application clearer, the technical scheme in the implementation of this application will be described in more detail in combination with the drawings in the implementation of this application. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described implementation is a part of the implementation of this application, not all of the implementations. The implementation described below with reference to the drawings is exemplary and is intended to be used to explain this application, and cannot be understood as a limitation on this application. Based on the implementation in this application, all other implementations obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. The implementation of this application is described in detail below in combination with the drawings.
[0028] According to a first aspect of the present application, a network protocol camera keep-alive method, such as Figure 1 As shown, it mainly includes:
[0029] Step S1, obtaining the current network protocol camera status, wherein the network protocol camera status includes a keep-alive status and a video acquisition status;
[0030] Step S2, when the network protocol camera is in a keep-alive state, the keep-alive signal is sent to a router that also has a Star Flash module through the Star Flash module installed on the network protocol camera, and then transmitted to the server after being transparently transmitted to the WiFi module by the router. When the network protocol camera is in a video acquisition state, the acquired video is sent to the server through the WiFi module installed on the network protocol camera.
[0031] This application installs a star flash module and a WiFi module on the network camera at the same time, wherein the star flash module is mainly responsible for the low-power keep-alive signal transmission, and the WiFi module is responsible for the transmission of high-speed data, such as video and picture data. These two modules can be switched in different situations to achieve different communication needs. In the daily operation of the device, the smart network camera mainly maintains the connection with the router or control center that also has the star flash module through the star flash module (binding at both ends). Due to the low-power design of the star flash technology, the device can work for a long time in this mode, and maintain low power consumption when data is not frequently transmitted. Here it mainly refers to the device regularly sending a keep-alive signal to the server through the star flash module to confirm that the device is online and working normally. When the smart network camera needs to transmit image or video data, the program determines that it is the moment when the data transmission demand increases, and instructs the system to switch from the star flash module to the WiFi module. After the WiFi module is started, the device performs high-speed data transmission through the WiFi connection, such as transmitting a video stream. After the transmission is completed, the device can automatically switch back to the star flash mode to reduce power consumption according to the set logic and mechanism, or when there is no further data transmission demand.
[0032] It should be noted that the Star Flash module mainly uses Star Flash technology for data transmission. Star Flash technology improves the signal error correction capability by adopting advanced channel coding technology, such as polar codes, and HARQ retransmission mechanism. Combined with a modulation method with higher spectrum efficiency, Star Flash can effectively maintain stable transmission quality in environments with weak signals or strong interference and increase the probability of successful transmission by reducing the number of retransmissions. In contrast, traditional WiFi is more susceptible to interference in complex environments due to the lack of sufficiently strong channel coding and modulation technology support. Star Flash technology supports discontinuous transmission (DRX) mechanism, which allows the device to enter low power mode or sleep state when it does not need to receive or send data, thereby significantly reducing the average power consumption of the device. And by adopting an ultra-short wireless frame structure, Star Flash technology can reduce the required transmission time when transmitting the same amount of data, so that there is more time for the device to remain in a low power state. It even supports fine resource scheduling in the time and frequency domains, which means that it can dynamically adjust resource allocation according to the actual needs of the business, avoid unnecessary waste of resources, and thus reduce power consumption.
[0033] It is understandable that the router connected to the network protocol camera also needs to install the StarFlash module. The general working principle is to use the StarFlash modules at both ends to keep alive and transmit data at a low rate (usually less than 5Mbps). Then in the router, the data is transparently transmitted to WiFi, and WiFi is connected to Ethernet and the server for network transmission.
[0034] As described above, the present application determines when to use the Star Flash module or the WiFi module based on the data transmission requirements. Generally speaking, when there are images or videos that need to be transmitted, the transmission rate requirement must be high, and the fence reduces the power consumption of the camera. At present, an event-triggered recording mechanism is usually adopted, that is, the camera is usually in a sleep state, and the system-level chip SoC records at a lower frame rate. When a person or object passes by the camera, it is detected by the sensor, and the SoC is awakened to start recording at a normal frame rate. After the recording is completed, the sleep state is restored. Based on this, the present application defines the camera sleep state as a keep-alive state. In this state, the camera only needs to transmit a heartbeat keep-alive signal to the server to maintain the connection with the server. After the SoC is awakened, it enters the video acquisition state, which requires high-speed data transmission. For example, in some optional embodiments, step S1 further includes:
[0035] Step S11, determining whether there is a moving object;
[0036] Step S12: When there is a moving object, video acquisition is performed, and it is determined that the current network protocol camera is in a video acquisition state; otherwise, it is determined that the current network protocol camera is in a keep-alive state.
[0037] In some optional implementations, in step S11, whether there is a moving object is determined by a passive infrared sensor PIR.
[0038] Through the above embodiments, the present application uses a passive infrared sensor PIR to determine whether the camera needs to perform video acquisition, thereby determining which mode to enable for data transmission.
[0039] In some optional implementations, step S2 further includes:
[0040] When the network protocol camera is in the keep-alive state, the Star Flash module receives the device inspection instruction and the keep-alive response signal forwarded by the router.
[0041] It can be understood that through the Star Flash module, in addition to sending heartbeat keep-alive signals, the camera and the router or server can also transmit lightweight control commands, such as camera angle adjustment, calibration, camera self-test and other instructions.
[0042] In some optional implementations, step S2 further includes:
[0043] When the network protocol camera is in the video acquisition state, the real-time request state of the server is determined. When the server has a real-time request, it immediately switches from the transmission mode based on the Star Flash module to the transmission mode based on the WiFi module, or maintains the transmission mode based on the WiFi module. When the server does not have a real-time request, it switches between the two transmission modes at a set time interval. When the network protocol camera enables the Star Flash module, the video data collected by the network protocol camera is temporarily stored in the memory of the network protocol camera. When the network protocol camera enables the WiFi module, the video data temporarily stored in the memory is transmitted externally based on the WiFi module.
[0044] In this embodiment, the real-time request status of the server is usually configured on the server or the monitoring terminal to characterize different monitoring scenarios. For example, the server or the monitoring terminal requires real-time monitoring of the monitored area through a large monitoring screen, which is used in monitoring places such as banks and shopping malls. At this time, the real-time request signal is sent to the network protocol camera. When the network protocol camera is shooting, it will send the collected video to the server through the WiFi module in real time. On the contrary, if the server or the monitoring terminal does not have high requirements for the real-time performance of video monitoring, it is used in monitoring places such as communities and roads. At this time, the user can set it not to require real-time transmission of the monitoring screen. When the network protocol camera is shooting, it can temporarily store part of the video data and continue to transmit the keep-alive signal through the star flash module. After the memory stores a certain amount of data, it will switch to data transmission through the WiFi module. Repeating this process can further reduce the transmission power.
[0045] It should also be noted that the set time interval is usually related to the storage capacity, video frame, video size, etc. of the memory. For example, if the memory can store 5 minutes of video data, the time interval is usually set to 4 minutes, that is, after starting the camera, the data collected by the camera in the previous 4 minutes is first stored in the memory. After 4 minutes, if the camera is still collecting video, the WiFi module is started for data transmission. The transmission rate of the WiFi module is relatively fast. Usually, the 4-minute time interval is sufficient to send the video data stored in the memory and the currently collected video data to the server together, and so on to reduce energy consumption. Of course, if the memory is storing data, the pedestrian leaves the camera and the camera stops recording, then the data in the memory can continue to be transmitted based on the low-speed transmission nature of the Star Flash module without enabling the WiFi module. In addition, during the interval call between the Star Flash module and the WiFi module, if the server re-initiates a real-time request, it will immediately switch from the transmission mode based on the Star Flash module to the transmission mode based on the WiFi module, or continue to maintain the transmission mode based on the WiFi module.
[0046] Through the above method, the real-time requirement of video transmission can be guaranteed and the power consumption can be reduced to the greatest extent.
[0047] In a second aspect of the present application, a network protocol camera keep-alive device corresponding to the above method mainly includes:
[0048] A camera status determination module is used to obtain the current network protocol camera status, wherein the network protocol camera status includes a keep-alive status and a video acquisition status;
[0049] The switching module is used to send a keep-alive signal to a router that also has a Star Flash module through the Star Flash module installed on the network protocol camera when the network protocol camera is in a keep-alive state, and then transmit it to the server after being transparently transmitted to the WiFi module by the router. When the network protocol camera is in a video acquisition state, the acquired video is sent to the server through the WiFi module installed on the network protocol camera.
[0050] In some optional implementations, the camera state determination module includes:
[0051] A moving object recognition unit, used to determine whether there is a moving object;
[0052] The camera state determination unit is used to perform video acquisition when there is a moving object and determine that the current network protocol camera is in a video acquisition state, otherwise determine that the current network protocol camera is in a keep-alive state.
[0053] In some optional implementations, the moving object identification unit includes a passive infrared sensor PIR, and determines whether a moving object exists through the passive infrared sensor PIR.
[0054] In some optional implementations, the switching module includes:
[0055] The data receiving unit is used to receive the device inspection instruction and the keep-alive response signal forwarded by the router through the Star Flash module when the network protocol camera is in the keep-alive state.
[0056] In a third aspect of the present application, a network protocol camera comprises a processor, a memory, a star flash module, a WiFi module, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a network protocol camera keep-alive method as described in any one of the above items.
[0057] In a fourth aspect of the present application, a readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the above-mentioned network protocol camera keep-alive method. The computer-readable storage medium may be included in the device described in the above-mentioned embodiment; or it may exist independently without being assembled into the device. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by the device, the data is processed according to the above-mentioned method.
[0058] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0059] The modules or units involved in the embodiments described in this application may be implemented by software or hardware. The modules or units described may also be set in a processor, and the names of these modules or units do not constitute limitations on the modules or units themselves in some cases.
[0060] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A network protocol camera keep alive method, characterized in that: include: Step S1, obtaining the current network protocol camera status, wherein the network protocol camera status includes a keep-alive status and a video acquisition status; Step S2, when the network protocol camera is in a keep-alive state, the star flash module installed on the network protocol camera sends a keep-alive signal to a router that also has a star flash module, and the router transmits the signal to the server after transparently transmitting the signal to the WiFi module. When the network protocol camera is in a video acquisition state, the WiFi module installed on the network protocol camera sends the acquired video to the server. Among them, when the network protocol camera is in a video acquisition state, the real-time request state of the server is determined. When the server has a real-time request, it immediately switches from a transmission mode based on the star flash module to a transmission mode based on the WiFi module, or maintains a transmission mode based on the WiFi module. When the server does not have a real-time request, it switches between the two transmission modes at a set time interval. When the network protocol camera enables the star flash module, the video data collected by the network protocol camera is temporarily stored in the memory of the network protocol camera. When the network protocol camera enables the WiFi module, the video data temporarily stored in the memory is transmitted externally based on the WiFi module. If the pedestrian leaves the camera while the memory is storing data and the camera stops recording, the data in the memory continues to be transmitted based on the Star Flash module.
2. The method for keeping a network protocol camera alive as claimed in claim 1, characterized in that: Step S1 further comprises: Step S11, determining whether there is a moving object; Step S12: When there is a moving object, video acquisition is performed, and it is determined that the current network protocol camera is in a video acquisition state; otherwise, it is determined that the current network protocol camera is in a keep-alive state.
3. The method for keeping a network protocol camera alive as claimed in claim 2, characterized in that: In step S11, a passive infrared sensor PIR is used to determine whether there is a moving object.
4. The method for keeping a network protocol camera alive as claimed in claim 1, characterized in that: Step S2 further comprises: When the network protocol camera is in the keep-alive state, the Star Flash module receives the device inspection instruction and the keep-alive response signal forwarded by the router.
5. A network protocol camera keep-alive device, characterized in that: include: A camera status determination module is used to obtain the current network protocol camera status, wherein the network protocol camera status includes a keep-alive status and a video acquisition status; The switching module is used for sending a keep-alive signal to a router having the same star flash module through the star flash module installed on the network protocol camera when the network protocol camera is in a keep-alive state, and then transmitting the signal to the server after being transparently transmitted to the WiFi module by the router; when the network protocol camera is in a video acquisition state, sending the acquired video to the server through the WiFi module installed on the network protocol camera; Among them, when the network protocol camera is in a video acquisition state, the real-time request state of the server is determined. When the server has a real-time request, it immediately switches from a transmission mode based on the star flash module to a transmission mode based on the WiFi module, or maintains a transmission mode based on the WiFi module. When the server does not have a real-time request, it switches between the two transmission modes at a set time interval. When the network protocol camera enables the star flash module, the video data collected by the network protocol camera is temporarily stored in the memory of the network protocol camera. When the network protocol camera enables the WiFi module, the video data temporarily stored in the memory is transmitted externally based on the WiFi module. If the pedestrian leaves the camera while the memory is storing data and the camera stops recording, the data in the memory continues to be transmitted based on the Star Flash module.
6. The network protocol camera keep-alive device as claimed in claim 5, characterized in that: The camera state determination module comprises: A moving object recognition unit, used to determine whether there is a moving object; The camera state determination unit is used to perform video acquisition when there is a moving object and determine that the current network protocol camera is in a video acquisition state, otherwise determine that the current network protocol camera is in a keep-alive state.
7. The network protocol camera keep-alive device as claimed in claim 6, characterized in that: The moving object identification unit includes a passive infrared sensor PIR, and determines whether a moving object exists through the passive infrared sensor PIR.
8. The network protocol camera keep-alive device as claimed in claim 5, characterized in that: The switching module comprises: The data receiving unit is used to receive the device inspection instruction and the keep-alive response signal forwarded by the router through the Star Flash module when the network protocol camera is in the keep-alive state.
