Analog camera upgrade method and upgrade equipment

By finding the preset location in the analog camera and sending upgrade instructions to enter the upgrade mode, the existing analog camera upgrade method is solved, and efficient and low-cost analog camera upgrade is achieved.

CN114594966BActive Publication Date: 2025-02-11ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210100130.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2025-02-11
Estimated Expiration
2042-01-27

AI Technical Summary

Technical Problem

The existing analog camera upgrade methods are costly and difficult, and the lack of effective upgrade tools has led to major challenges for manufacturing companies.

Method used

Transmission and installation of upgrade packets are achieved by finding preset positions in the analog camera, sending upgrade instructions to the analog camera, causing it to enter upgrade mode, and sending data to the analog camera in this mode.

Benefits of technology

It realizes efficient upgrade of analog cameras without increasing costs, reducing the difficulty and cost of equipment research and development, debugging and rework.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114594966B_ABST
    Figure CN114594966B_ABST
Patent Text Reader

Abstract

The present application discloses an analog camera upgrade method and an upgrade device, the analog camera upgrade method comprising: after receiving a trigger instruction sent by a host computer, searching for a preset position in a video signal sent by the analog camera; corresponding to the preset position, sending an upgrade instruction to the analog camera to make the analog camera enter an upgrade mode, wherein after the analog camera enters the upgrade mode, corresponding to each video line in the video signal, the upgrade device can send data to the analog camera; in response to the analog camera successfully entering the upgrade mode, sending the upgrade package data sent by the host computer to the analog camera. The upgrade method provided by the present application can efficiently upgrade the analog camera without increasing the cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of analog cameras, and in particular to an analog camera upgrading method and upgrading equipment. Background Art

[0002] Analog cameras have a certain share in the security monitoring market due to their own advantages such as low price, low transformation cost, and good real-time performance. However, since the video of analog cameras is continuously transmitted through analog signals and there are many link transmission standards, they are not as flexible as IP cameras with standard link protocols in terms of camera data interaction and production automation, so analog camera manufacturers rarely have available upgrade tools.

[0003] There are three ways to upgrade analog cameras in the prior art: the first is to disassemble the device and directly upgrade the main control ISP, the second is to disassemble the device and directly replace the external program memory Flash, and the third is to upgrade online through the existing DVR. Currently, these upgrade methods have greatly increased the difficulty and cost of equipment R&D debugging, upgrading, and rework requirements, so an effective and available analog camera upgrade solution is urgently needed. Summary of the invention

[0004] The present application provides an analog camera upgrade method and upgrade device, which can efficiently upgrade the analog camera without increasing the cost.

[0005] A first aspect of an embodiment of the present application provides an analog camera upgrade method, which is executed by an upgrade device connected to the analog camera, and the method includes: after receiving a trigger instruction sent by a host computer, searching for a preset position in the video signal sent by the analog camera; corresponding to the preset position, sending an upgrade instruction to the analog camera to make the analog camera enter an upgrade mode, wherein after the analog camera enters the upgrade mode, the upgrade device can send data to the analog camera corresponding to each video line in the video signal; in response to the analog camera successfully entering the upgrade mode, sending the upgrade package data sent by the host computer to the analog camera.

[0006] A second aspect of an embodiment of the present application provides an analog camera upgrade method, which is executed by the analog camera, and the method includes: sending a video signal to a connected upgrade device; after receiving the upgrade instruction sent by the analog camera, entering an upgrade mode, wherein the upgrade device searches for a preset position in the video signal after receiving a trigger instruction sent by a host computer, and sends an upgrade instruction to the analog camera corresponding to the preset position, and after the analog camera enters the upgrade mode, the upgrade device can send data to the analog camera corresponding to each video line in the video signal; and receive upgrade package data sent by the analog camera.

[0007] A third aspect of an embodiment of the present application provides an upgrade device, which includes a processor, a memory, and a communication circuit, wherein the processor is coupled to the memory and the communication circuit, respectively, and program data is stored in the memory. The processor implements the steps in the above method by executing the program data in the memory.

[0008] A fourth aspect of an embodiment of the present application provides an analog camera, which includes a processor, a memory, and a communication circuit. The processor is coupled to the memory and the communication circuit, respectively. Program data is stored in the memory. The processor implements the steps in the above method by executing the program data in the memory.

[0009] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps in the above method.

[0010] The beneficial effect is that the upgrade device of the present application searches for a preset position in the video signal sent by the analog camera, and sends an upgrade instruction to the analog camera corresponding to the preset position, so that the analog camera enters the upgrade mode, and after the analog camera enters the upgrade mode, the upgrade device can send data to the analog camera corresponding to each video line in the video signal, so that after the analog camera successfully enters the upgrade mode, the upgrade package data can be sent to the analog camera, thereby completing the upgrade of the analog camera. The entire method does not require any improvement to the analog camera, and can efficiently upgrade the analog camera without increasing the cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0012] Figure 1 It is a structural diagram of an implementation method of an upgrade system of the present application;

[0013] Figure 2 is a schematic diagram of extracting forward data from a video signal;

[0014] Figure 3 This is a schematic diagram of the workflow of the host computer in an implementation method of the analog camera upgrade method of the present application;

[0015] Figure 4 This is a schematic diagram of the workflow of upgrading a device in an implementation manner of an analog camera upgrade method of the present application;

[0016] Figure 5 It is a schematic diagram of signals on various data interaction interfaces between the processing unit and the control unit of the simulated camera in normal mode;

[0017] Figure 6 yes Figure 5 Schematic diagram of partial signal amplification in FIG.

[0018] Figure 7 is a schematic diagram of a preset register in an upgrade device in one embodiment of the present application;

[0019] Figure 8 It is a schematic diagram of signals on various data interaction interfaces between the processing unit and the control unit in the upgrade mode of the simulated camera;

[0020] Fig. 9 yes Figure 8 Schematic diagram of partial signal amplification in FIG.

[0021] Fig.10 This is a schematic diagram of part of the working process of the control unit in an implementation method of the analog camera upgrade method of the present application;

[0022] Fig.11 This is a schematic diagram of the workflow of the control unit acquiring forward data in an implementation manner of the analog camera upgrade method of the present application;

[0023] Fig.12 It is a flowchart of another implementation method of the analog camera upgrade method of the present application;

[0024] Fig.13 It is a structural schematic diagram of an implementation method of an upgrading device of the present application;

[0025] Fig.14 It is a structural schematic diagram of another implementation method of the upgrading device of the present application;

[0026] Fig.15It is a structural schematic diagram of an implementation method of the analog camera of the present application;

[0027] Fig.16 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] In order to upgrade the analog camera, the present application sets an upgrade device connected to the analog camera, and the upgrade device can be an independent electronic product or integrated in other electronic products. At the same time, the upgrade device can also communicate with the host computer.

[0030] At the same time, the interactive data sent by the analog camera is called forward data, and the interactive data received by the analog camera is called reverse data. The signal and data of this application are two different concepts. The scope of the signal is larger than that of the data. Specifically, the forward data can be extracted from the video signal sent by the analog camera to the upgrade device. At the same time, in addition to the forward data, the video signal also has synchronization information for positioning the video signal. For details, please refer to the following.

[0031] At the same time, this application does not need to improve the structure of the analog camera. Figure 1 In the analog camera 100, the link composed of the buffer unit (Buffer) and the resistor R3 outputs a normal video signal (specifically an analog video signal), and the coupling circuit, the first receiving unit 110, the resistor R1 and the resistor R2 form a reverse data extraction link, which outputs a signal S1 to the main control. The target of the upgrade of the analog camera 100 in this application is the Flash storage unit. The upgrade method of this application uses the reverse data extraction link in the analog camera 100.

[0032] Continue reading Figure 1 The analog camera 100 and the upgrade device 200 are connected through a video transmission line. After receiving the video signal sent by the analog camera 100, the capacitor C1 and the video clamping unit 210 in the upgrade device 200 clamp the video signal and output the clamped video signal. The process of clamping belongs to the prior art and will not be described in detail here.

[0033] The positioning unit 220 is used to process the video signal sent by the analog camera 100 and output the signal S3 so that the processing unit 240 can locate the video signal. The second receiving unit 230 is used to extract the forward data on the video signal sent by the analog camera 100 and output the signal S2. The functions of the processing unit 240 include: locating the video signal, sending the byte data to be sent according to the protocol encoding, and decoding the forward data according to the protocol encoding after receiving the signal S2; the control unit 250 is the controller of the upgrade process, which interacts with the host computer 300 through the USB interface and obtains the upgrade package data, and sends the upgrade package data to the analog camera 100.

[0034] The control unit 250 is also connected to a human-machine input / output (display) unit, a storage unit, etc. Figure 1 .

[0035] The method in which the first receiving unit 110 in the analog camera 100 extracts reverse data from the video signal and the method in which the second receiving unit 230 in the upgrade device 200 extracts forward data from the video signal are the same. Figure 2 The extraction of forward data from a video signal is schematically illustrated.

[0036] Specifically, the second receiving unit 230 in this embodiment includes a second comparator 231, the in-phase end of the second comparator 231 is connected to the output end of the video clamping unit 210, and is used to receive the video signal. After receiving the video signal, the second comparator 231 compares the voltage of the video signal with the input voltage vref2 of the inverting end. If the voltage of the video signal is greater than vref2, the second comparator 231 outputs a high level, otherwise it outputs a low level. Finally, the second comparator 231 outputs a digital signal S2, and then the processing unit 240 extracts the high-level signal in the digital signal S2 to obtain forward data.

[0037] It should be noted that, in other embodiments, the second comparator 231 may also receive the video signal at the inverting end and input the voltage vref2 at the non-inverting end. Correspondingly, after receiving the digital signal S2, the processing unit 240 extracts the low-level signal in the digital signal S2 to obtain the forward data.

[0038] In this embodiment, no RAM is added to the control unit 250, and only the RAM of the control unit 250 is used as a data cache. Therefore, during the upgrade process, the host computer 300 divides the upgrade package data into multiple sub-upgrade data according to the preset size, and then the host computer 300 sends one sub-upgrade package data to the upgrade device 200 each time. In an application scenario, the preset size is 64kByte. It should be noted that in other embodiments, RAM can also be added to the control unit 250, so that the host computer 300 can send the upgrade package data to the control unit 250 at one time.

[0039] In order to ensure the safety performance during the entire upgrade process, after each time the upgrade device 200 sends the sub-upgrade package data to the analog camera 100, it needs to request the host computer 300 to send the next sub-upgrade package data after the analog camera 100 verifies the sub-upgrade package data.

[0040] See also Figure 3 During the upgrade process, the control process of the host computer 300 includes:

[0041] S100: Initialization reset.

[0042] S101: Determine whether the user inputs an instruction to connect to the upgrade device 200.

[0043] If the user inputs, step S102 is executed, otherwise step S101 is repeated.

[0044] S102: Establishing a connection with the upgrading device 200 and prompting the user on the display interface.

[0045] After the user inputs an instruction to connect to the upgrade device 200 , the host computer 300 establishes a connection with the upgrade device 200 , and informs the user after the connection is successful.

[0046] S103: Determine whether the user triggers an upgrade.

[0047] After the user triggers the upgrade, step S104 is executed, otherwise step S103 is repeated.

[0048] Specifically, when the user wants to upgrade the analog camera 100, an upgrade instruction is triggered.

[0049] S104: Acquire the analog camera 100 information and the upgrade package data selected by the user through the upgrade device 200.

[0050] Specifically, after the user triggers the upgrade instruction, the host computer 300 obtains the information of the analog camera 100 and the upgrade package data selected by the user through the upgrade device 200 .

[0051] S105: Determine whether the analog camera 100 matches the upgrade package data.

[0052] If there is no match, execute step S106; if there is a match, execute step S107.

[0053] S106: Prompt corresponding error information.

[0054] After executing step S106, execute step S100.

[0055] Specifically, if the analog camera 100 does not match the upgrade package data, the user may be prompted to reselect the upgrade package data.

[0056] S107: The host computer 300 controls the analog camera 100 to enter the upgrade mode through the upgrade device 200.

[0057] Specifically, if the information of the analog camera 100 matches the upgrade package data, the host computer 300 controls the upgrade device 200 to send an upgrade instruction to the analog camera 100 to control the analog camera 100 to enter the upgrade mode.

[0058] S108: Determine whether the analog camera 100 enters the upgrade mode.

[0059] If not entered, execute step S106, if entered, execute step S109.

[0060] S109: Divide the upgrade package data into a plurality of sub-upgrade package data, and add a verification code to each sub-upgrade package data.

[0061] Specifically, after the analog camera 100 successfully enters the upgrade mode, the upper computer 300 divides the upgrade package data into multiple sub-upgrade package data according to a preset size, and adds a verification code to each sub-upgrade package data, so that the analog camera 100 can verify the sub-upgrade package data through the verification code after receiving the sub-upgrade package data.

[0062] S110: Send the Nth sub-upgrade package data.

[0063] S111: Determine whether the analog camera 100 passes the verification of the Nth sub-upgrade package data.

[0064] If it passes, execute step S112; if it fails, execute step S115.

[0065] Specifically, after sending the sub-upgrade package data each time, wait for the analog camera 100 to verify the sub-upgrade package data.

[0066] S112: Determine whether all sub-upgrade package data has been sent.

[0067] If the sending is completed, execute step S113; if the sending is not completed, execute step S114.

[0068] S113: The upgrade is successful.

[0069] S114: Increment the value N of the packet sending counter by one.

[0070] After executing step S114, execute step S110.

[0071] S115: Increase the value M of the retransmission counter by one.

[0072] S116: Determine whether M exceeds a threshold.

[0073] If it exceeds, execute step S106, if it does not exceed, execute step S110.

[0074] Specifically, if the analog camera 100 fails to pass the verification of the sub-upgrade package data, the host computer 300 resends the sub-upgrade package data. However, if the number of resending exceeds a threshold, the sub-upgrade package data is no longer sent, but an error message is prompted.

[0075] Among them, the analog camera 100 will verify the sub-upgrade package data every time it receives the sub-upgrade package data, and then the upgrade device 200 can determine whether the analog camera 100 passes the verification of the sub-upgrade package data based on the forward data sent by the analog camera 100.

[0076] It should be noted that, in other implementations, the analog camera 100 may not verify the sub-upgrade package data each time after receiving the sub-upgrade package data.

[0077] See also Figure 4 In this embodiment, the process performed by the upgrade device 200 includes:

[0078] S210: After receiving the trigger instruction sent by the host computer 300, searching for a preset position in the video signal sent by the analog camera 100.

[0079] Specifically, corresponding to the preset position in the video signal, the upgrade device 200 can send an interaction instruction to the analog camera 100. For example, the upgrade device 200 can send an interaction instruction to the analog camera 100 at the 10th video line to the 15th video line preset in each frame image.

[0080] Therefore, after receiving the trigger instruction sent by the host computer 300, the upgrade device 200 searches for the preset position in the video signal sent by the analog camera 100, and sends the upgrade instruction to the analog camera 100 corresponding to the preset position.

[0081] In this embodiment, the process of searching the preset position in the video signal sent by the analog camera 100 in step S210 includes:

[0082] (a1) extracting a synchronization header signal from a video signal, wherein the synchronization header signal includes a first pulse signal and a second pulse signal with different pulse widths, the first pulse signal corresponds one-to-one to a video line of an image in the video signal, and a second pulse signal is provided between the first pulse signals corresponding to two adjacent frames of the image in the video signal.

[0083] (b1) Determine a preset position according to positions of the first pulse signal and the second pulse signal in the synchronization header signal.

[0084] Specifically, in this embodiment, the positioning unit 220 is used to extract the synchronization header signal S3. The positioning unit 220 includes a first comparator 221, the inverting end of the first comparator 221 is connected to the output end of the video clamping unit 210, and is used to receive the video signal. Figure 2 and Figure 5 After receiving the video signal, the first comparator 221 compares the voltage of the video signal with the input voltage vref3 at the in-phase end. If the voltage of the video signal is greater than vref3, the first comparator 221 outputs a low level, otherwise it outputs a high level. Finally, the first comparator 221 outputs a synchronization header signal S3.

[0085] Continue reading Figure 5 , the synchronization header signal S3 includes three types of pulse signals of different widths, wherein the pulse signal of medium width is defined as the first pulse signal, the widest pulse signal is defined as the second pulse signal, and the narrowest pulse signal is defined as the third pulse signal. The first pulse signal may also be called a line synchronization header signal, which corresponds one-to-one to the video lines of the image in the video signal, that is, there are as many first pulse signals corresponding to each frame of the image as there are video lines in each frame of the video signal; a second pulse signal is provided between the first pulse signals corresponding to two adjacent frames of the image in the video signal, wherein the number of second pulse signals between the first pulse signals corresponding to two adjacent frames of the image may be one or more (e.g. Figure 5 As shown, Figure 5 It is understood that the second pulse signal provided between the first pulse signals corresponding to two adjacent frames of images corresponds to the same frame of image, wherein one or more continuous second pulse signals appearing between the first pulse signals corresponding to two adjacent frames of image in the video signal can be referred to as a group of frame synchronization header signals. The synchronization header signal S3 can be extracted from any video signal sent by the analog camera 100, and the difference is only in the width and number of the three pulse signals.

[0086] According to the first pulse signal and the second pulse signal in the synchronization header signal S3, the preset position can be found. For example, the 10th video line to the 15th video line in each frame image are preset. The upgrade device 200 can send an interactive instruction to the analog camera 100, and then the two adjacent frames of images can be distinguished by the frame synchronization header signal, and then the 10th video line to the 15th video line in a frame image can be determined by counting the first pulse signal.

[0087] The preset position matches the property of the analog camera 100. Analog cameras 100 with different properties have different corresponding preset positions. In this embodiment, before step S210, the property of the analog camera 100 can be determined according to the video signal sent by the analog camera 100, and finally the preset position matching it is determined according to the property.

[0088] The properties of the analog camera 100 may include a video frame rate and a resolution. The video frame rate of the analog camera 100 may be determined based on the time interval between the first and second pulse signals corresponding to two adjacent frames of the video signal in the synchronization header signal S3 (i.e., the time interval between the first and second pulse signals in two adjacent sets of frame synchronization header signals), and the resolution of the analog camera 100 may be determined based on the number of first pulse signals included in each frame of the synchronization header signal S3. For example, it is determined that the video frame rate of the analog camera 100 is 25fps and the resolution is 720P. After the properties of the analog camera 100 are determined, the properties of the analog camera 100 may be saved in a register in the processing unit 240. For details, see below.

[0089] In other implementations, the properties of the analog camera 100 may also include only the video frame rate or resolution, or the preset position may also be determined according to the user's input, that is, the user inputs the properties of the analog camera 100 together when inputting the trigger instruction.

[0090] S220: corresponding to the preset position, sending an upgrade instruction to the analog camera 100 to make the analog camera 100 enter the upgrade mode, wherein after the analog camera 100 enters the upgrade mode, corresponding to each video line in the video signal, the upgrade device 200 can send data to the analog camera 100.

[0091] Specifically, after finding the preset position in step S210, the upgrade device 200 sends an upgrade instruction to the analog camera 100 at the preset position to control the analog camera 100 to enter the upgrade mode. After the analog camera 100 enters the upgrade mode, the upgrade device 200 can send data to the analog camera 100 at any video line in the video signal.

[0092] In this embodiment, the analog camera 100 has two modes, namely, a normal mode and an upgrade mode. In the normal mode, the analog camera 100 normally captures images and outputs corresponding video signals. At this time, most of the channel bandwidth is used to transmit image information, and only a small amount of bandwidth is left for data interaction. In the upgrade mode, the analog camera 100 no longer captures images. At this time, in order to make the channel have enough bandwidth for data interaction, the analog camera 100 outputs a completely black image without color. According to the principle of analog video modulation transmission, the completely black image only carries synchronization information, has no image brightness and color information, and occupies very little bandwidth.

[0093] S230 : In response to the analog camera 100 successfully entering the upgrade mode, the upgrade package data sent by the host computer 300 is sent to the analog camera 100 .

[0094] In the normal mode, the upgrade device 200 can send data to the analog camera 100 only at a preset position, while in the upgrade mode, the upgrade device 200 can send data to the analog camera 100 at any video line of the image.

[0095] It can be seen from the above content that the present application can complete the upgrade of the analog camera 100 without improving the analog camera 100.

[0096] In this embodiment, the control unit 250 uses an MCU (Microcontroller Unit). Since general MCUs have poor real-time performance and long instruction time, and video line positioning is frequent, the interactive data baud rate is relatively high and it is not a universal protocol (there is generally no suitable codec module inside the MCU), the general MCU is not suitable for realizing the positioning function. Therefore, the processing unit 240 in this embodiment uses a CPLD (Complex Programmable logic device).

[0097] In this embodiment, combined with Figure 1 The data interaction interface between CPLD and MCU includes two groups: 1. INT interrupt signal + UART; 2. Vedio_BLK + Busy + Trigger + Data [7: 0]. The first group is used by MCU to read and write CPLD registers, and the second group of interfaces is used by MCU to transfer the upgrade package to CPLD. Among them, the interaction registers preset by CPLD are as follows Figure 7 shown.

[0098] Specifically, combined Figure 5 and Figure 6, the processing unit 240 outputs a signal Vedio_BLK to the control unit 250 through the data interaction interface Vedio_BLK to inform the control unit 250 of the location where the reverse data can be sent, wherein when the signal Vedio_BLK is a high level signal, the control unit 250 can send the reverse data to the processing unit 240. For example, in combination Figure 5 , Figure 6 , Figure 8 as well as Fig. 9 In normal mode, the signal Vedio_BLK is a high level signal only in the 10th to 15th lines of the video signal. When entering the upgrade mode, the signal Vedio_BLK is a high level signal starting from the 10th line.

[0099] The processing unit 240 outputs a signal Busy to the control unit 250 through the data interaction interface Busy to inform the control unit 250 whether it is in an idle state, wherein only when the signal Busy is at a low level, the processing unit 240 can collect the data sent by the control unit 250, and when the signal Busy is at a high level, the processing unit 240 is busy sending data.

[0100] When the data interaction interface Trigger output signal Trigger (first control signal) of the control unit 250 is at a rising edge, the processing unit 240 samples and stores the data stored on the Data[7:0] pin and prepares to send it out as data to be sent. Figure 5 and Figure 6 It can be seen that the signal Trigger will have a rising edge only when Vedio_BLK is at a high level.

[0101] in, Figure 6 In the figure, t1 indicates that when the signal Trigger is rising, the signal Busy will not be a high-level signal immediately, because it is a synchronous logic and needs to be delayed by several clocks. At the same time, tsu indicates the data setup time of the signal Trigger triggering the sampling Data, and thd indicates the data hold time of the signal Trigger triggering the sampling Data.

[0102] in Figure 5 and Figure 6 The display shows the output signal of each interactive data interface when the analog camera 100 is in normal mode, and the output signal of each interactive data interface when the analog camera 100 enters the upgrade mode. Figure 8 and Fig. 9 shown.

[0103] from Figure 8 and Fig. 9It can be seen that after the analog camera 100 enters the upgrade mode, the upgrade device 200 can send multiple bytes of data to the analog camera 100 corresponding to each video line. In this embodiment, the upgrade device 200 can send 5 bytes of data to the analog camera 100 corresponding to each video line, that is, Fig. 9 B1, B2, B3, B4 and B5 shown.

[0104] It can be understood that, corresponding to each video line, 5 bytes of data are sent, and corresponding to each video line, the signal Trigger (first control signal) includes 5 rising edges corresponding to each video line, that is, includes 5 pulse signals.

[0105] From the above comparison, it can be seen that the main difference between the upgrade mode and the normal mode is the number of byte data sent by each video line, and in the upgrade mode, basically each video line can send byte data.

[0106] Combine the following Fig.10 , the working process of the control unit 250 is introduced:

[0107] After connecting with the analog camera 100, determine whether the video signal is locked, specifically whether bit3 in the event register is 1. After confirming that bit3 in the event register is 1 and the connection with the host computer 300 is successful, after receiving the trigger instruction sent by the host computer 300, if Vedio_BLK is detected as a rising edge, an upgrade instruction is sent to the analog camera 100.

[0108] After sending the upgrade instruction to the analog camera 100, if the analog camera 100 fails to enter the upgrade mode successfully, the control unit 250 sends the upgrade instruction again. However, after resending the upgrade instruction, if the analog camera 100 still cannot enter the upgrade mode within the preset time, the control unit 250 reports the abnormality to the host computer 300.

[0109] After the analog camera 100 successfully enters the upgrade mode, if the upgrade is not completed, the control unit 250 receives the sub-upgrade package data sent by the lower computer, and sends data to the analog camera 100 when Vedio_BLK is a rising edge. In the process of sending data, the control unit 250 sends several bytes of data (5 in this embodiment) corresponding to each video line.

[0110] After each sub-upgrade package data is sent, the control unit 250 waits for the data interaction interface INT of the processing unit 240 to generate an interrupt, and after the data interaction interface INT generates an interrupt, reads the saved forward data, and then determines whether the analog camera 100 passes the verification of the sub-upgrade package data. The process of reading the forward data and the mechanism of the data interaction interface INT generating an interrupt can be seen below. In the process of waiting for INT to generate an interrupt, if the time waiting for INT to generate an interrupt exceeds the duration threshold, it can also be directly determined that the analog camera 100 has a power outage, and at this time, feedback is given to the host computer 300 to exit the upgrade process.

[0111] If the analog camera 100 passes the verification of the sub-upgrade package data, it feeds back the verification result to the host computer 300 and requests the host computer 300 to send the next sub-upgrade package data.

[0112] If the analog camera 100 fails to verify the sub-upgrade package data, the result of failure of verification is fed back to the host computer 300, and the host computer 300 is requested to resend the sub-upgrade package data just sent.

[0113] Among them combined Figure 7 as well as Fig.11 When the data exchange interface INT generates an interrupt, the control unit 250 reads bit[7:4] of the event register in the processing unit 240 through the data exchange interface UART. If bit[7]=1, it means that the forward data reception is completed, then read bit[6:4] to obtain the number of forward data, and after obtaining the number of forward data, read the latest corresponding number of forward data from the forward data reception buffer (FIFO) according to the number. Figure 7 It can be seen that each time the latest corresponding number of forward data is read from the forward data receiving buffer (FIFO), bit[7] and bit[6:4] automatically become zero.

[0114] The following describes the workflow of the processing unit 240:

[0115] After receiving the signal S3 output by the positioning unit, the processing unit 240 first determines the video frame rate and resolution of the analog camera 100 according to the first pulse signal and the second pulse signal, and compares the "resolution@video frame rate" with the resolution of the analog camera 100. Figure 5 The value of the signal identification register in the signal identification register is updated, and bit3 in the event register is set to 1.

[0116] When the processing unit 240 detects that the signal S2 output by the second receiving unit 230 is a pulse signal, it performs sampling encoding, extracts the forward data, and puts the forward data into the "forward data receiving buffer" in sequence. After the pulse signal stops for more than the preset time, the number of forward data is stored in bit [6:4] of the "event register" and an interrupt signal is output through the UART.

[0117] When the processing unit 240 detects a rising edge on the interactive interface Trigger, it samples the data stored in the data interactive interface Data[7:0] as the data to be sent, and sets the signal Busy to a high-level signal. At the same time, it obtains the properties of the analog camera 100 according to the video frame rate stored in the "signal identification register", determines the reverse data transmission protocol, and then the superposition unit 260 superimposes the stored data to be sent on the video signal according to the protocol. Finally, the upgrade device 200 sends the superimposed video signal to the analog camera 100 through the video transmission line. After the data is sent, the processing unit 240 pulls down the Busy signal to complete the sending of one byte of data.

[0118] It can be understood that after receiving the sub-upgrade package data sent by the host computer 300, the control unit 250 sends each byte data in the sub-upgrade package data to the data interaction interface Data[7:0] in sequence.

[0119] See also Fig.12 , Fig.12 : is a flow chart of another embodiment of the analog camera upgrade method of the present application. In this embodiment, the analog camera upgrade method includes:

[0120] S310: Sending a video signal to the connected upgrade device.

[0121] S320: After receiving the upgrade instruction sent by the analog camera, enter the upgrade mode, wherein the upgrade device searches for a preset position in the video signal after receiving the trigger instruction sent by the host computer, and sends an upgrade instruction to the analog camera corresponding to the preset position, and after the analog camera enters the upgrade mode, the upgrade device can send data to the analog camera corresponding to each video line in the video signal.

[0122] S330: Receive the upgrade package data sent by the analog camera.

[0123] The method in this embodiment is executed by an analog camera. The specific method process can refer to the method steps executed by the analog camera in the above embodiment, which will not be described in detail here.

[0124] In one embodiment, in order to ensure that the channel has enough bandwidth for data interaction, after entering the upgrade mode, the analog camera sends a completely black image to the upgrade device. Specifically, according to the analog video modulation transmission distance, the completely black image only carries synchronization information, no image brightness and color information, and occupies very little bandwidth.

[0125] See also Fig.13 , Fig.13 1 is a schematic diagram of the structure of an embodiment of the upgrade device of the present application. The upgrade device 200 includes a processor 610, a memory 620 and a communication circuit 630, the processor 610 is coupled to the memory 620 and the communication circuit 630 respectively, the memory 620 stores program data, and the processor 610 implements the steps in any of the above-mentioned implementation methods by executing the program data in the memory 620, wherein the detailed steps can be referred to the above-mentioned implementation, and will not be repeated here.

[0126] See also Fig.14 , Fig.14 2 is a schematic diagram of another embodiment of the upgrade device of the present application. The upgrade device 200 includes a processing unit 310 .

[0127] The processing unit 310 is used to: after receiving a trigger instruction sent by the host computer, search for a preset position in the video signal sent by the analog camera, and send an upgrade instruction to the analog camera corresponding to the preset position to make the analog camera enter the upgrade mode, wherein after the analog camera enters the upgrade mode, the upgrade device can send data to the analog camera corresponding to each video line in the video signal; and in response to the analog camera successfully entering the upgrade mode, send the upgrade package data sent by the host computer to the analog camera.

[0128] The upgrading device 200 executes the steps of the analog camera upgrading method in any of the above-mentioned embodiments when working. The detailed steps can be found in the above-mentioned embodiments and will not be described in detail here.

[0129] See also Fig.15 , Fig.15 4 is a schematic diagram of the structure of an embodiment of an analog camera of the present application. The analog camera 400 includes a processor 410, a memory 420 and a communication circuit 430. The processor 410 is coupled to the memory 420 and the communication circuit 430 respectively. The memory 420 stores program data. The processor 410 implements the steps in any of the above-mentioned implementation methods by executing the program data in the memory 420. The detailed steps can be referred to the above-mentioned implementations and will not be repeated here.

[0130] See also Fig.16 , Fig.16The computer-readable storage medium 500 stores a computer program 510, which can be executed by a processor to implement the steps in any of the above methods.

[0131] The computer-readable storage medium 500 may specifically be a device that can store the computer program 510, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the computer program 510. The server may send the stored computer program 510 to other devices for execution, or may execute the stored computer program 510 by itself.

[0132] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for upgrading an analog camera, characterized in that: The method is performed by an upgrade device connected to the analog camera, and the method includes: After receiving the trigger instruction sent by the host computer, searching for a preset position in the video signal sent by the analog camera; Corresponding to the preset position, sending an upgrade instruction to the analog camera to enable the analog camera to enter an upgrade mode, wherein after the analog camera enters the upgrade mode, corresponding to each video line in the video signal, the upgrade device can send data to the analog camera; In response to the analog camera successfully entering the upgrade mode, sending the upgrade package data sent by the host computer to the analog camera; Wherein, after receiving the trigger instruction sent by the host computer and before searching for the preset position in the video signal sent by the analog camera, it also includes: Determining the properties of the analog camera according to the video signal sent by the analog camera; Determining the preset position according to the properties of the simulated camera; Wherein, at least one of the resolution and video frame rate of the analog camera; The step of determining the attribute of the analog camera according to the video signal sent by the analog camera comprises: Extracting a synchronization header signal from the video signal, wherein the synchronization header signal includes a first pulse signal and a second pulse signal with different pulse widths, the first pulse signal corresponds to a video line of an image in the video signal one by one, and the second pulse signal is provided between the first pulse signals corresponding to two adjacent frames of images in the video signal; Determining the resolution of the analog camera according to the number of first pulse signals corresponding to each frame of the image in the synchronization header signal; Alternatively, the video frame rate of the analog camera is determined according to the time interval between the first second pulse signals corresponding to two adjacent frames of images in the video signal in the synchronization header signal.

2. The method according to claim 1, characterized in that The step of searching for a preset position in the video signal sent by the analog camera comprises: Extracting a synchronization header signal from the video signal, wherein the synchronization header signal includes a first pulse signal and a second pulse signal with different pulse widths, the first pulse signal corresponds to a video line of an image in the video signal one by one, and the second pulse signal is provided between the first pulse signals corresponding to two adjacent frames of images in the video signal; The preset position is determined according to the positions of the first pulse signal and the second pulse signal in the synchronization header signal.

3. The method according to claim 2, characterized in that The method further comprises: The video signal is input into a first preset input terminal of a first comparator to obtain the synchronization header signal.

4. The method according to claim 1, characterized in that: The step of sending the upgrade package data sent by the host computer to the analog camera includes: Receiving a plurality of sub-upgrade package data of a preset size included in the upgrade package data sent sequentially by the host computer; Sending a plurality of sub-upgrade package data to the analog camera in sequence.

5. The method according to claim 4, characterized in that The method further comprises: Each time after sending the sub-upgrade package data to the analog camera, reading the forward data in the pre-saved video signal; Determining, according to the forward data, whether the analog camera passes the verification of the sub-upgrade package data; In response to passing, requesting the host computer to send the next sub-upgrade package data; In response to failure, feedback is given to the host computer to request the host computer to resend the sub-upgrade package data.

6. The method according to claim 5, characterized in that The method further comprises: Inputting the video signal into a second input terminal of a second comparator; The forward data is extracted from the digital signal output by the second comparator, and the forward data is stored.

7. The method according to claim 4, characterized in that The upgrading device comprises a control unit, a processing unit and a superposition unit; After the analog camera enters the upgrade mode, the first control signal output by the control unit includes a plurality of pulse signals corresponding to each video line in the video signal; Each time the processing unit detects the pulse signal in the first control signal, it collects the data to be sent stored on the preset end, and controls the superimposing unit to superimpose the data to be sent on the video signal according to the data transmission protocol corresponding to the analog camera, and then the upgrading device sends the superimposed video signal to the analog camera, thereby completing the sending of one byte of data; After receiving the sub-upgrade package data sent by the host computer, the control unit sends each byte data in the sub-upgrade package data to the preset end of the processing unit in sequence.

8. An upgrade device, characterized in that: The upgrade device includes a processor, a memory and a communication circuit, the processor is coupled to the memory and the communication circuit respectively, the memory stores program data, and the processor implements the steps in the method as described in any one of claims 1-7 by executing the program data in the memory.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps in the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for upgrading video camera

    CN105704445A

  • Intelligent display and control system

    CN109445331A