Firmware data transmission method and device and digital monitoring systemTechnical Field
The invention relates to the technical field of security protection, in particular to a firmware data transmission method and device and a digital monitoring system.
Background
With the development of security technology, the application of digital monitoring systems is more and more extensive, and the digital monitoring systems are favored by many users with good video effect and real-time performance. When firmware in some devices of the digital monitoring system needs to be upgraded, it can be implemented by some dedicated physical channel, such as uart (Universal Asynchronous Receiver/Transmitter). During actual upgrade, data required for firmware upgrade may be transmitted to a corresponding device through the dedicated physical channel, and stored in a Central Processing Unit (CPU) of the device, so as to update firmware data and complete firmware upgrade. Generally, the bandwidth of the physical channel is small, accordingly, the data transmission efficiency is low, and the firmware upgrade takes a very long time, so the upgrade maintenance of the firmware is very difficult. It can be seen that, for the existing digital monitoring system, the difficulty of firmware upgrade maintenance is a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention aims to provide a firmware data transmission method, a firmware data transmission device and a digital monitoring system, so as to solve the problem that firmware in the existing digital monitoring system is difficult to upgrade and maintain.
In one aspect, an embodiment of the present invention provides a firmware data transmission method, which is applied to a first device in a digital monitoring system, where the first device is connected to a second device in the digital monitoring system through a video data transmission channel, and the method includes the following steps:
acquiring firmware data, wherein the firmware data comprises data required by upgrading of the firmware of the second device;
and sending the firmware data to the second equipment through the video data transmission channel so that the second equipment can upgrade the firmware according to the firmware data.
Further, in the above-mentioned method,
before the sending the firmware data to the second device through the video data transmission channel, the method further includes:
writing the firmware data to a video data storage area of the first device;
the sending the firmware data to the second device through the video data transmission channel includes:
and sending the firmware data in the video data storage area to the second device through the video data transmission channel.
Further, in the above method, before the sending the firmware data in the video data storage area to the second device through the video data transmission channel, the method further includes:
performing digital serial interface SDI serialization on firmware data in the video data storage area;
the sending the firmware data in the video data storage area to the second device through the video data transmission channel includes:
and sending the firmware data subjected to SDI serialization in the video data storage area to the second equipment through the video data transmission channel.
Further, in the above method, before writing the firmware data into the video data storage area of the first device, the method further includes:
performing a sum operation on data in the firmware data to obtain an operation result, and taking the operation result as check data;
adding the verification data to the firmware data;
the writing the firmware data to the video data storage area of the first device includes:
writing the firmware data added with the verification data into a video data storage area of the first device.
Further, in the above method, the video data storage area stores therein line blanking data and field blanking data, wherein,
the sending the firmware data in the video data storage area to the second device through the video data transmission channel so that the second device upgrades the firmware according to the firmware data includes:
generating a video data packet containing the firmware data in the video data storage area using the line blanking data and the field blanking data in the video data storage area;
and sending the video data packet to the second device through the video data transmission channel, so that the second device extracts the firmware data from the video data packet and upgrades the firmware according to the firmware data.
On the other hand, an embodiment of the present invention further provides a firmware data transmission apparatus, which is applied to a first device in a digital monitoring system, where the first device is connected to a second device in the digital monitoring system through a video data transmission channel, and the method includes the following steps:
the first firmware data obtaining module is used for obtaining firmware data, wherein the firmware data comprises data required by upgrading of firmware of the second device;
and the video data sending module is used for sending the firmware data to the second equipment through the video data transmission channel so that the second equipment can upgrade the firmware according to the firmware data.
Further, the above apparatus further comprises: a write module; wherein,
the writing module is used for writing the firmware data into a video data storage area of the first device;
the video data sending module is specifically configured to send the firmware data in the video data storage area to the second device through the video data transmission channel.
Further, the above apparatus further comprises: a digital serial interface SDI serialization module; wherein,
the SDI serialization module is used for carrying out digital serial interface SDI serialization on the firmware data in the video data storage area;
the video data sending module is specifically configured to send the firmware data after SDI serialization in the video data storage area to the second device through the video data transmission channel.
Further, the above apparatus further comprises: the verification data acquisition module and the verification data adding module; wherein,
the verification data obtaining module is used for carrying out sum operation on data in the firmware data to obtain an operation result, and the operation result is used as verification data;
the verification data adding module is used for adding the verification data into the firmware data;
the writing module is specifically configured to write the firmware data added with the verification data into a video data storage area of the first device.
Further, in the above apparatus, the video data storage area stores therein line blanking data and field blanking data, wherein,
the video data transmission module comprises:
a video data packet generating module for generating a video data packet containing the firmware data in the video data storage area by using the line blanking data and the field blanking data in the video data storage area;
and the video data packet sending module is used for sending the video data packet to the second equipment through the video data transmission channel so that the second equipment extracts the firmware data from the video data packet and upgrades the firmware according to the firmware data.
In another aspect, an embodiment of the present invention further provides a firmware data transmission method, applied to a second device in a digital monitoring system, where the second device is connected to a first device in the digital monitoring system through a video data transmission channel, and the method includes the following steps:
obtaining firmware data sent by the first device through the video data transmission channel, wherein the firmware data comprises data required by firmware upgrade in the second device, and the firmware data is sent by the first device after the firmware data is obtained;
and upgrading the firmware according to the firmware data.
Further, in the above method, the firmware data is sent by the first device after the firmware data is obtained and written into the video data storage area.
Further, in the above method, the firmware data is data serialized by the digital serial interface SDI, wherein,
before upgrading the firmware according to the firmware data, the method further includes:
performing SDI deserialization on the obtained firmware data;
the upgrading the firmware according to the firmware data includes:
and upgrading the firmware according to the firmware data after the SDI is deserialized.
Further, in the above method, the firmware data includes: verifying data, wherein before upgrading the firmware according to the firmware data, the method further comprises:
performing a sum operation on the rest data except the verification data in the obtained firmware data to obtain an operation result;
and judging whether the obtained firmware data is accurate according to whether the operation result is the same as the check data in the read firmware data, and if so, executing the firmware upgrading according to the firmware data.
In another aspect, an embodiment of the present invention further provides a firmware data transmission apparatus, applied to a second device in a digital monitoring system, where the second device is connected to a first device in the digital monitoring system through a video data transmission channel, and the apparatus includes:
a second firmware data obtaining module, configured to obtain firmware data sent by the first device through the video data transmission channel, where the firmware data includes data required for firmware upgrade in the second device, and the firmware data is sent by the first device after the firmware data is obtained;
and the upgrading module is used for upgrading the firmware according to the firmware data.
Further, in the above apparatus, the firmware data is sent by the first device after the firmware data is obtained and written into the video data storage area.
Further, in the above apparatus, the firmware data is data serialized by a digital serial interface SDI, wherein the apparatus further includes: a digital serial interface SDI deserializing module; wherein,
the SDI deserializing module is used for performing SDI deserializing on the obtained firmware data;
the upgrading module is specifically used for upgrading the firmware according to the firmware data after the SDI is deserialized.
Further, in the above apparatus, the firmware data includes: verifying the data, the apparatus further comprising:
the operation result obtaining module is used for carrying out sum operation on the rest data except the verification data in the obtained firmware data to obtain an operation result;
and the judging module is used for judging whether the obtained firmware data is accurate according to whether the operation result is the same as the read verification data in the firmware data, and upgrading the firmware according to the firmware data if the obtained firmware data is accurate.
In another aspect, an embodiment of the present invention further provides a digital monitoring system, including: a first device and a second device; wherein,
the first equipment is connected with the second equipment through a video data transmission channel;
the first device is used for obtaining firmware data and sending the firmware data to the second device through the video data transmission channel, wherein the firmware data comprises data required by upgrading of the firmware of the second device;
the second device is used for upgrading the firmware according to the received firmware data.
The embodiment of the invention provides a firmware data transmission method, a firmware data transmission device and a digital monitoring system. The method can be applied to first equipment in a digital monitoring system, the first equipment is connected with second equipment in the digital monitoring system through a video data transmission channel, and the method comprises the following steps: acquiring firmware data, wherein the firmware data comprises data required by upgrading of the firmware of the second device; and sending the firmware data to the second equipment through the video data transmission channel so that the second equipment can upgrade the firmware according to the firmware data. It can be seen that, in the embodiment of the present invention, the firmware in the second device is upgraded without a dedicated physical channel for transmitting firmware data, and directly through a video data transmission channel between the first device and the second device, which is originally used for transmitting video data, without additional wiring, so that the upgrade operation is very convenient to implement, and the upgrade cost is also reduced. In addition, because the bandwidth of the video data transmission channel can generally reach 1.5Gbps, which is much larger than the bandwidth of a physical channel for transmitting firmware data in the prior art, compared with the prior art, the time for transmitting the firmware data in the invention is greatly shortened, the transmission efficiency of the firmware data is greatly improved, and correspondingly, the time spent on firmware upgrade is also correspondingly shortened, thereby greatly simplifying the upgrade maintenance of the firmware.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a firmware data transmission method applied to a first device according to an embodiment of the present invention;
FIG. 2 is a block diagram of data in a video output buffer of a first device before filling in firmware data according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the data in the video output buffer of the first device after filling the firmware data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an upgrade to a display via a DVR;
fig. 5 is a block diagram of a firmware data transmission apparatus applied to a first device according to an embodiment of the present invention;
fig. 6 is a flowchart of a firmware data transmission method applied to a second device according to an embodiment of the present invention;
fig. 7 is a block diagram of a firmware data transmission apparatus applied to a second device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a digital monitoring system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides two firmware data transmission methods, two firmware data transmission devices and a digital monitoring system, wherein one method and device are applied to first equipment, and the other method and device are applied to second equipment.
Wherein the first device and the second device may be connected via a video data transmission channel. In this embodiment, the first device may be a backend device in a digital monitoring system, the second device may be a frontend device in the digital monitoring system, and the video data transmission channel may be a coaxial cable for transmitting video data, for example, a Composite Video Broadcast Signal (CVBS) channel. Generally, the transmission bandwidth of the coaxial cable for transmitting video data is very large, that is, the bandwidth of the video data transmission channel is very large, which is much larger than the bandwidth of the physical channel used for transmitting firmware data in the prior art, and the transmission distance of the coaxial cable is also very long, which can reach hundreds of meters. Video data is transmitted unidirectionally within the video data transmission channel, the video data typically being transmitted by a first device to a second device. In a specific implementation, the first device may be a DVR (Digital Video Recorder) or a Video integration platform, and the second device may be a Video display device such as a display screen or a display matrix, so that Video data is generally transmitted from the DVR or the Video integration platform to the Video display device, but is not transmitted from the Video display device to the DVR or the Video integration platform.
First, a firmware data transfer method applied to the first device will be described.
Referring to fig. 1, a flowchart of a firmware data transmission method according to an embodiment of the present invention is shown. The method can be applied to first equipment in a digital monitoring system, and the first equipment is connected with second equipment in the digital monitoring system through a video data transmission channel. As shown in fig. 1, the method comprises the steps of:
step S101, reading firmware data, where the firmware data includes data required for upgrading the firmware of the second device.
The first device can be internally provided with a CPU and a first video processing module which are integrated together, and the first video processing module has a video processing function. Specifically, the first device may read the firmware data into a cache of a CPU therein.
Step S102, the firmware data is sent to the second device through the video data transmission channel, so that the second device upgrades the firmware according to the firmware data.
When the video processing device is specifically implemented, the second device can be internally provided with a CPU, a second video processing module and a storage unit, the CPU and the second video processing module are integrated together, the storage unit is connected with the CPU, and the second video processing module has a video processing function. The second device can receive the firmware data by a frame or a field of a CPU in the second device, and then write the firmware data into the storage unit on line, so that the firmware data replaces the original firmware data in the storage unit, thereby completing the updating of the fixed data and completing the upgrading of the firmware corresponding to the firmware data.
It can be seen that, in the embodiment of the present invention, the firmware in the second device is upgraded without a dedicated physical channel for transmitting firmware data, and directly through a video data transmission channel between the first device and the second device, which is originally used for transmitting video data, without additional wiring, so that the upgrade operation is very convenient to implement, and the upgrade cost is also reduced. In addition, because the bandwidth of the video data transmission channel can generally reach 1.5Gbps, which is much larger than the bandwidth of a physical channel for transmitting firmware data in the prior art, compared with the prior art, the time for transmitting the firmware data in the invention is greatly shortened, the transmission efficiency of the firmware data is greatly improved, and correspondingly, the time spent on firmware upgrade is also correspondingly shortened, thereby greatly simplifying the upgrade maintenance of the firmware.
In this embodiment, before sending the firmware data to the second device through the video data transmission channel, the method may further include:
the firmware data is written to a video data storage area of the first device.
At this time, the sending of the firmware data to the second device through the video data transmission channel includes:
and sending the firmware data in the video data storage area to the second equipment through the video data transmission channel. In this embodiment, the first video processing module may have a video output buffer therein, and the video output buffer has a video data storage area therein, which is generally used by default to store video data. After obtaining the firmware data, the first device may read the firmware data into a cache of a CPU therein, and then the firmware data in the cache of the CPU may be written into a video data storage area in a frame or a field, before the firmware data is written into the area, the video data storage area has some invalid data, after the firmware data is written into the area, the firmware data replaces the originally invalid data, and since the video data storage area is usually used by default to store the video data, if other kinds of data are filled into the area, other kinds of data are also defaulted as the video data. Therefore, after the firmware data is filled in the area, the firmware data is defaulted to be the video data, that is, the firmware data is successfully disguised as the video data, so that the firmware data disguised as the video data in the video data storage area can be smoothly transmitted in the video data transmission channel and finally sent to the second device, so that the second device can be upgraded according to the firmware data.
It should be noted that, the video data storage area may further store line blanking data and field blanking data, and at this time, the firmware data in the video data storage area is sent to the second device through the video data transmission channel, so that the second device upgrades the firmware according to the firmware data, including:
generating a video data packet containing firmware data in the video data storage area by using line blanking data and field blanking data in the video data storage area;
and sending the video data packet to the second equipment through the video data transmission channel so that the second equipment extracts the firmware data from the video data packet and upgrades the firmware according to the firmware data.
Specifically, before writing the firmware data into the video data storage area, as shown in fig. 2, the video data storage area has a line blanking data area having line blanking data, a field blanking data area having field blanking data, and an active line data area being some invalid data. The line blanking data and the field blanking data have data for synchronization and timing. As shown in fig. 3, after the firmware data is written into the active line data area, the firmware data will replace the originally invalid data to implement disguise of the firmware data, and the line blanking data, the field blanking data and the firmware data will generate a video data packet, which will be output from the video output buffer, and then the video data packet can be sent to the second device through the video data transmission channel, and during the whole sending process, the data for synchronization and timing in the line blanking data and the field blanking data can ensure smooth transmission of the video data packet in the video data transmission channel. For the second device, the CPU inside the second device may receive the video data packet in one frame or one field, extract the firmware data disguised as video data from the video data, and simultaneously abandon the blanking data and the field blanking data, and finally write the firmware data into the storage unit on line, so that the firmware data replaces the original firmware data in the storage unit, thus completing the update of the fixed data, and completing the update of the firmware corresponding to the firmware data.
Further, in the above embodiment, before sending the firmware data in the video data storage area to the second device through the video data transmission channel, the method may further include:
carrying out digital serial interface SDI serialization on firmware data in a video data storage area;
sending the firmware data in the video data storage area to the second device through the video data transmission channel, comprising:
and sending the firmware data subjected to SDI serialization in the video data storage area to the second equipment through a video data transmission channel.
In this embodiment, the firmware data in the video data storage area is usually output from the video output buffer through a parallel output interface, where the output firmware data is parallel data, and the data transmitted in the video data transmission channel needs to be serial data, so that the firmware data needs to be SDI serialized before being input into the video data transmission channel. Wherein, the SDI serialization process can be realized by an SDI serializer. When the SDI serializer is specifically implemented, the SDI serializer can be an SDI serializing chip, the SDI serializing chip can be integrated in first equipment, after firmware data are input from an SDI input port of the SDI serializing chip, the SDI serializing chip can convert parallel firmware data into serial digital signals, time synchronization signals are inserted into the digital signals according to the SDI signal standard, the digital signals are output from an SDI output port of the SDI serializing chip, the SDI serializing process of the firmware data is completed, and then the firmware data after the SDI serializing is sent to second equipment through a video data transmission channel.
It should be noted that, besides being integrated in the first device, the SDI serialization chip may also be located at an end of the video data transmission channel close to the first device, so that the first device outputs parallel firmware data first, and then the firmware data is transmitted through the video data transmission channel after the SDI serialization chip completes SDI serialization.
Because first equipment passes through video data transmission channel and transmits the digital signal for the second equipment is serial, the second equipment can't directly upgrade the second equipment according to this digital signal, if need upgrade the firmware, then need carry out SDI deserialize to this digital signal earlier. Wherein, the SDI deserializing process can be realized by an SDI deserializer. In a specific implementation, the SDI deserializer may be an SDI deserializer chip, and the SDI deserializer chip may be integrated in the second device. For the second device, after the received digital signal is input from the SDI input port of the SDI deserializer, the SDI deserializer chip may convert the serial digital signal into a parallel digital signal, strip the time synchronization signal from the parallel digital signal, finally obtain firmware data, and output the firmware data from the SDI output port of the SDI deserializer chip, thereby completing the SDI deserializing process.
If the first device only sends the firmware data in the video data storage area to the second device, the data obtained after the SDI deserialization only has the firmware data, and the second device can upgrade the firmware by directly reading the data and writing the data into the storage unit. If the first equipment sends the video data packet consisting of the line blanking data, the field blanking data and the firmware data to the second equipment, the line blanking data, the field blanking data and the firmware data are simultaneously contained in the data obtained after the SDI deserialization, at this time, the second equipment only extracts the firmware data, abandons the line blanking data and the field blanking data at the same time, and finally upgrades the firmware according to the firmware data.
It should be noted that, in addition to being integrated in the second device, the SDI deserializer chip may also be located at the end of the video data transmission channel close to the second device, so that the serial data signal output by the video data transmission channel will pass through the SDI deserializer chip to complete the SDI deserializing process, and then be transmitted to the second device.
It should be noted that the first device may be a DVR or a video integrated platform, or may be another SDI signal decoding apparatus, the second device may be a video display apparatus, or may be another SDI signal encoding apparatus, and the first device and the second device may be specifically any one of the digital monitoring systems, which may be determined according to actual situations, which is not limited in this embodiment.
In the above embodiment, the firmware data obtained by the second device is not necessarily accurate, so that the accuracy of the firmware data obtained by the second device needs to be checked.
To determine the accuracy of the firmware data obtained by the second device, the firmware data may be summed. Specifically, before writing the firmware data to the video data storage area of the first device, the method may further include:
performing a sum operation on data in the firmware data to obtain an operation result, and taking the operation result as verification data;
adding verification data to the firmware data;
writing firmware data to a video data storage area of a first device, comprising:
the firmware data added with the verification data is written to a video data storage area of the first device.
The specific implementation of the sum check is described in detail below.
If the firmware data includes 4 data, which are 1, 2, 3, and 4, the four data may be summed to obtain 10, which is the verification data. This verification data is then added to the original firmware data, which will include five data. Then, the five data are received by the second device sequentially through the SDI serialization, transmission and SDI deserialization processes, the second device may perform a sum operation on the first four data of the five received data to obtain an operation result, and then compare the operation result with the fifth data, for example, 10, obtained by the second device, if the two are the same, it may be determined that the firmware data obtained by the second device is very accurate, and then the firmware may be updated according to the data, and if the two are different, it may be determined that the firmware data obtained by the second device is not accurate, at this time, the firmware data may be transmitted from the first device to the second device again until the firmware is updated by the accurate firmware data obtained by the second device.
It should be noted that, besides the verification of the accuracy of the firmware data by the sum check, the verification may be performed by parity check or other methods known to those skilled in the art, and the specific verification method may be determined according to actual situations, which is not limited in this embodiment.
The following describes a specific implementation process of the embodiment of the present invention in detail by taking a case where the hard disk recorder 1 (i.e., DVR) upgrades the firmware in the display 2 as an example, with reference to fig. 4.
As shown in fig. 4, the hard disk recorder 1 may have a CPU1 (not shown in the figure) and an SDI serializing chip 3, and a first video processing module may be integrated within the CPU 1. The display 2 may have a CPU2 and SDI deserializer chip 4, and a second video processing module may be integrated within the CPU 2. Wherein VPORT1 is an interface of the hard disk recorder 1. The SDI serialization chip 3 may be a serialization chip with a model GV7600, and the SDI deserialization chip 4 may be a deserialization chip with a model GV7601, however, the chips of the SDI serialization chip 3 and the SDI deserialization chip 4 are not limited thereto, and may be specifically determined according to actual situations, which is not limited in this embodiment. As shown in fig. 4, the CPU1 may first read data required for firmware upgrade in the display 2, then write the firmware data into the video output buffer in the first video processing module frame by frame, and then output the firmware data from the output port of the buffer frame by frame in parallel, where the output data includes a video data packet composed of line blanking data, field blanking data, and firmware data, and the data in the video data packet is parallel data. Then, the parallel firmware data is converted into serial digital signals through the SDI serialization chip 3, and time synchronization signals are inserted into the digital signals according to the SDI signal standard, so that the SDI serialization of the data is completed. Then the data after SDI serialization is sent to a CPU2 through a CVBS channel, then an SDI deserializing chip 4 converts serial digital signals into parallel digital signals and strips off time synchronization signals, then line blanking data and field blanking data in a video data packet after SDI deserialization are abandoned, only firmware data in the video data packet are extracted, and the firmware data are written into a NAND fLASh (one of fLASh memories) externally hung on the CPU, so that the written firmware data replace original firmware data, the updating of the firmware data is completed, and the upgrading of the firmware is finally completed.
In summary, the firmware data transmission method provided by the embodiment of the invention reduces the cost of firmware upgrade and greatly shortens the time required by firmware upgrade.
Next, a firmware data transmission device applied to the first device will be described.
Referring to fig. 5, a block diagram of a firmware data transmission apparatus according to an embodiment of the present invention is shown. The device can be applied to first equipment in a digital monitoring system, and the first equipment is connected with second equipment in the digital monitoring system through a video data transmission channel. As shown in fig. 5, the apparatus includes:
a first firmware data obtaining module 51, configured to obtain firmware data, where the firmware data includes data required for upgrading a firmware of a second device;
and the video data sending module 52 is configured to send the firmware data to the second device through the video data transmission channel, so that the second device upgrades the firmware according to the firmware data.
The specific implementation process of the apparatus may refer to the specific implementation process in the above method embodiment, and is not described herein again.
Since the firmware data transmission method applied to the first device has the technical effects, the device based on the method also has corresponding technical effects.
Further, the above apparatus further comprises: a write module; wherein,
the writing module is used for writing the firmware data into a video data storage area of the first device;
the video data sending module is specifically configured to send the firmware data in the video data storage area to the second device through the video data transmission channel.
Further, the above apparatus further comprises: a digital serial interface SDI serialization module; wherein,
the SDI serialization module is used for carrying out digital serial interface SDI serialization on firmware data in the video data storage area;
the video data sending module is specifically configured to send the firmware data subjected to SDI serialization in the video data storage area to the second device through the video data transmission channel.
Further, the above apparatus further comprises: the verification data acquisition module and the verification data adding module; wherein,
the verification data obtaining module is used for carrying out sum operation on data in the firmware data to obtain an operation result, and the operation result is used as verification data;
the verification data adding module is used for adding verification data into the firmware data;
the writing module is specifically configured to write the firmware data added with the verification data into a video data storage area of the first device.
Further, in the above apparatus, the video data storage area stores therein line blanking data and field blanking data, wherein,
the video data transmission module includes:
the video data packet generating module is used for generating a video data packet containing firmware data in the video data storage area by utilizing line blanking data and field blanking data in the video data storage area;
and the video data packet sending module is used for sending the video data packet to the second equipment through the video data transmission channel so that the second equipment extracts the firmware data from the video data packet and upgrades the firmware according to the firmware data. In summary, the firmware data transmission device provided by the embodiment of the invention reduces the cost of firmware upgrade and greatly shortens the time required by firmware upgrade.
Next, a firmware data transfer method applied to the second device will be described.
Referring to fig. 6, a flowchart of a firmware data transmission method according to an embodiment of the present invention is shown. The method can be applied to second equipment in the digital monitoring system, and the second equipment is connected with the first equipment in the digital monitoring system through a video data transmission channel. As shown in fig. 6, the method includes the steps of:
step S601, obtaining firmware data sent by a first device through a video data transmission channel, wherein the firmware data comprises data required by firmware upgrade in a second device, and the firmware data is sent by the first device after the firmware data is obtained;
step S602, upgrading the firmware according to the firmware data.
It can be seen that, in the embodiment of the present invention, the firmware in the second device is upgraded without being implemented through a dedicated physical channel for transmitting firmware data, and the firmware data is directly transmitted through the video data transmission channel, so the firmware data transmission method provided by the embodiment of the present invention greatly reduces the cost of firmware upgrade, and greatly shortens the time required for firmware upgrade.
In this embodiment, the firmware data is sent by the first device after the firmware data is obtained and written into the video data storage area. Thus, the firmware data is successfully disguised as video data after being written in the video data storage area of the first device, so that the firmware data can be smoothly transmitted in the video data transmission channel.
Further, in the above method, the firmware data is data serialized by the digital serial interface SDI, wherein,
before upgrading the firmware according to the firmware data, the method further comprises:
performing SDI deserialization on the obtained firmware data;
upgrading the firmware according to the firmware data, comprising:
and upgrading the firmware according to the firmware data after the SDI is deserialized.
Further, in the above method, the firmware data includes: verifying data, and before upgrading the firmware according to the firmware data, the method further comprises the following steps:
performing a sum operation on the rest data except the verification data in the obtained firmware data to obtain an operation result;
and judging whether the obtained firmware data is accurate according to whether the operation result is the same as the read verification data in the firmware data, and if so, executing upgrading of the firmware according to the firmware data.
In summary, the firmware data transmission device provided by the embodiment of the invention reduces the cost of firmware upgrade and greatly shortens the time required by firmware upgrade.
The following describes a firmware data transmission apparatus applied to the second device.
Referring to fig. 7, a block diagram of a firmware data transmission apparatus according to an embodiment of the present invention is shown. The device can be applied to second equipment in the digital monitoring system, and the second equipment is connected with the first equipment in the digital monitoring system through a video data transmission channel. As shown in fig. 7, the apparatus includes:
a second firmware data obtaining module 71, configured to obtain firmware data sent by the first device through the video data transmission channel, where the firmware data includes data required for firmware upgrade in the second device, and the firmware data is sent by the first device after the firmware data is obtained; and the upgrading module 72 is used for upgrading the firmware according to the firmware data.
Since the firmware data transmission method applied to the second device has the above-mentioned effects, the device based on the method also has corresponding technical effects, which are not described herein again.
Further, the apparatus above, the firmware data is sent by the first device after obtaining the firmware data and writing the firmware data to the video data storage area.
Further, in the above apparatus, the firmware data is data serialized by the digital serial interface SDI, wherein the apparatus further includes: a digital serial interface SDI deserializing module; the SDI deserializing module is used for performing SDI deserializing on the obtained firmware data;
the upgrading module is specifically used for upgrading the firmware according to the firmware data after the SDI is deserialized.
Further, in the above apparatus, the firmware data includes: verifying the data, the apparatus further comprising:
the operation result obtaining module is used for carrying out sum operation on the rest data except the verification data in the obtained firmware data to obtain an operation result;
and the judging module is used for judging whether the obtained firmware data is accurate according to whether the operation result is the same as the read check data in the firmware data, and upgrading the firmware according to the firmware data if the obtained firmware data is accurate. In summary, the firmware data transmission device provided by the embodiment of the invention reduces the cost of firmware upgrade and greatly shortens the time required by firmware upgrade.
Finally, the digital monitoring system provided by the embodiment of the invention is explained.
Referring to fig. 8, a schematic structural diagram of a digital monitoring system according to an embodiment of the present invention is shown. As shown in fig. 8, the digital monitoring system includes: a first device 81 and a second device 83. Wherein the first device 81 is connected to the second device 83 via a video data transmission channel 82. The first device 81 is configured to obtain firmware data, and send the firmware data to the second device 83 through the video data transmission channel 82, where the firmware data includes data required for upgrading the firmware of the second device 83. The second device 83 is configured to upgrade firmware according to the received firmware data.
It can be seen that, in the embodiment of the present invention, the firmware in the second device 83 is upgraded without being implemented through a dedicated physical channel for transmitting firmware data, and the firmware data is directly transmitted through the video data transmission channel 82, so that for the digital monitoring system provided in the embodiment of the present invention, the upgrade cost of the firmware in the second device 83 is greatly reduced, and the time required for upgrading the firmware is also greatly shortened.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.