A kind of DVR video monitoring software enciphering method and realization circuit
[technical field]
The present invention relates to technical field of video monitoring, relate in particular to a kind of encryption method of DVR video monitoring software and realize circuit.
[background technology]
Video monitoring system mainly is made up of front end camera part, hop, control section, demonstration and record four most of institutes.System makes administrative staff can observe front end in the control room and takes precautions against all personnel's active situation and record in the zone, for security system provides dynamic image data.
The DVR digital monitor system that is born along with the fast development of The present computer technology, multimedia technology, network technology and digital image compression technology, be to be the multimedia monitoring of core with the computer, given computer administrative power, as long as in the place of need monitoring the video camera of some is installed as required, can be in the real-time monitor cell of control centre on duty personnel activity's situation of each position, and it is recorded preserves.For the investigation after the incident generation provides the firsthand information.Along with the digitlization of the whole society, the quickening of networked paces, the traditional analog supervisory control system will be by the digitlization of a new generation, and networked multimedia administration supervisory control system replaces, and the DVR digital monitor system has vast market.
Yet, the existing market pirate phenomenon is rather serious, though popular cipher mode is a lot, the encryption technology that each developer adopts is all similar, method is single, and a lot of especially now IC companies of deciphering provide convenience for some illegal operators crack encryption specially.Therefore adopt traditional cipher mode just to be easy to be cracked, make developer's DVR video monitoring software newly developed be easy to be subjected to pirate infringement.
[summary of the invention]
The technical problem to be solved in the present invention provides a kind of DVR video monitoring software enciphering method that is difficult for cracking.The present invention also will provide a kind of circuit that can realize this DVR video monitoring software enciphering method.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is that a kind of DVR video monitoring software enciphering method comprises following characteristics:
The supporting use of a.DVR video monitoring software and video frequency collection card, the enciphered message of matching used video frequency collection card must meet DVR monitoring software enciphered message authentication requesting;
The enciphered message of b. different video frequency collection cards has nothing in common with each other;
When the c.DVR video monitoring system starts the DVR video monitoring software, at first start DVR video monitoring software encrypted authentication program;
D. the encrypted authentication program is obtained enciphered message and is verified from video frequency collection card, passes through as checking, just enters the main program of DVR video monitoring software; As verifying not by then withdrawing from DVR video monitoring software program.
Above-described DVR video monitoring software enciphering method, described enciphered message comprises DVR video monitoring software developer's information and serial number, described serial number is to be not less than 10000 numeral, and the DVR video monitoring software of different covers and the serial number of video frequency collection card have nothing in common with each other.Last of described serial number is used for the type of identification video capture card; Enciphered message in the described video frequency collection card is kept in the single-chip microcomputer of video frequency collection card.
Above-described DVR video monitoring software enciphering method, when comprising 2 or 2 above video frequency collection cards in the system, the enciphered message that the encrypted authentication program reads out from first integrated circuit board and the enciphered message of other video frequency collection cards compare, illegally withdraw from DVR video monitoring software program if any identical just being considered as.
A kind of DVR video monitoring software encrypted circuit, comprise video capture processor and single-chip microcomputer, described video capture processor is connected with main frame by pci bus, and the GPIO mouth by video capture processor is connected with single-chip microcomputer, realizes the exchanges data between main frame CPU and the single-chip microcomputer; Described single-chip microcomputer is preserved the enciphered message that meets the requirement of main frame DVR video monitoring software, and operation encrypted authentication subprogram.
Wherein, described video capture processor adopts the SAA7130 integrated circuit (IC) chip, is connected with host CPU by pci bus, and the PGIO mouth that passes through of SAA7130 integrated circuit (IC) chip is connected with single-chip microcomputer.Described single-chip microcomputer is the STC12C2052 integrated circuit (IC) chip.
Characteristics of the present invention: DVR video monitoring software and video frequency collection card need supporting use, and the enciphered message of different video frequency collection cards has nothing in common with each other.Compare with existing encryption technology, enciphered message is difficult for cracking, and developer's DVR video monitoring software newly developed can be avoided pirate infringement.
[description of drawings]
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Fig. 1 is the flow chart of DVR video monitoring software enciphering method embodiment of the present invention.
Fig. 2 is a DVR video monitoring software encrypted circuit embodiment theory diagram of the present invention.
The winding diagram of Fig. 3 DVR video monitoring software of the present invention encrypted circuit embodiment video capture processor SAA7130.
Fig. 4 is the winding diagram that DVR video monitoring software encrypted circuit embodiment of the present invention looks single-chip microcomputer STC12C205.
Fig. 5 is a DVR video monitoring software enciphering method embodiment Single Chip Microcomputer (SCM) program flow chart of the present invention.
[embodiment]
In DVR video monitoring software enciphering method embodiment of the present invention shown in Figure 1, DVR video monitoring software and video frequency collection card need supporting use, video frequency collection card has the enciphered message that meets the requirement of DVR monitoring software, and the enciphered message in the video frequency collection card is kept in the single-chip microcomputer of video frequency collection card.The enciphered message of different video frequency collection cards has nothing in common with each other; Enciphered message comprises DVR video monitoring software developer's title and less than 10000 Digital Pipelined number, the serial number of different video frequency collection cards has nothing in common with each other.Last of serial number is used for the type of identification video capture card.When the DVR video monitoring system starts the DVR video monitoring software, at first start DVR video monitoring software encrypted authentication program.The encrypted authentication program is obtained enciphered message and is verified from video frequency collection card, pass through as checking, just enters the main program of DVR video monitoring software; As verifying not by then withdrawing from DVR video monitoring software program.
As shown in Figure 2, DVR video monitoring software encrypted circuit of the present invention comprises video capture processor and single-chip microcomputer.Video capture processor adopts the SAA7130 integrated circuit (IC) chip, and single-chip microcomputer is the STC12C2052 integrated circuit (IC) chip.Video capture processor adopts SAA7130 by being connected of pci bus and main frame CPU, and is connected the exchanges data between realization main frame CPU and the STC12C2052 integrated circuit (IC) chip with the STC12C2052 integrated circuit (IC) chip by the PGIO mouth.In the STC12C2052 integrated circuit (IC) chip, preserve the enciphered message that meets the requirement of main frame DVR video monitoring software, and operation encrypted authentication subprogram.
The structure of DVR video monitoring software encrypted circuit embodiment of the present invention and operation principle such as Fig. 3 are to shown in Figure 5.Present embodiment adopts the STC single-chip microcomputer to communicate with main frame via GPIO mouth, the pci bus of video capture processor.
DVR video monitoring software encrypted circuit embodiment of the present invention realizes that principle is as follows: start the DVR video monitoring software on the main frame, at first the DVR video monitoring software calls the encrypting and authenticating program, GPIO mouth by pci bus read-write SAA7130, the STC12C2052 single-chip microcomputer is in the external interrupt wait routine always simultaneously, in case the external interrupt triggering signal of being come by the GPIO oral instructions triggers, just enter the encrypting and authenticating interrupt routine, carry out the integrated circuit board verification process by data interaction between single-chip microcomputer and the PC, if authentication is passed through, just can normally start DVR software, otherwise just prompting " integrated circuit board initialization failure " just causes starting the failure of DVR software this moment.
Single-chip microcomputer STC12C2052 interface definition is as follows:
As low 1 of data, the handshake of conduct and PC when restarting judged whether to start T0 when P3.0----encrypted
As low 2 of data, being used to when restarting receive the high level that PC comes when P3.1----encrypts, is timer T0 again
When P3.2----encrypts as the external interrupt input port
When encrypting, P3.3----hangs down 3 as data
When encrypting, P3.4----hangs down 4 as data
P3.5----is used to judge whether the startup deadlock to restart program, and (be 0, program is restarted in startup; Be 1, be in the encryption stage, wait for external interrupt always)
Single-chip microcomputer STC12C2052 interface is as follows with the annexation of the GPIO mouth of video capture processor:
RST---GPIO9 P3.0---GPIO10 P3.1--GPIO11
P3.2---GPIO15?P3.3---GPIO14 P3.4--GPIO13
P3.5---GPIO12
Flowchart text shown in Figure 5 is as follows: at first main frame start, be that single-chip microcomputer powers on, program enters initialization module, give register RO (enciphered data read-write time number register) assignment this moment, be that single-chip microcomputer sends the how many times data to main frame, and send data at every turn is 4bit, start external interrupt then, if fruit starts the DVR video monitoring software, main frame just sends an external interrupt signal to single-chip microcomputer, trigger the external interrupt service routine, i.e. encrypted authentication program, this moment, main frame obtained enciphered data from the corresponding position of single-chip microcomputer, verify then, if checking OK then normally enters the DVR video monitoring software, otherwise prompting " failure of initialization capture card ".Need to prove that the data of preserving in the single-chip microcomputer are not unique, and if the data consistent that single-chip microcomputer is preserved on same 2 cards or the card more than 2, also can be considered as illegally, can not normally start the DVR video monitoring software equally.Judge to encrypt and identically to be considered as illegal integrated circuit board and to realize that principle is, the DVR video monitoring software will read first information in the integrated circuit board single-chip microcomputer and preserve in the temporary register, this information is compared together with the enciphered message that next integrated circuit board reads out, if identical just being considered as illegally.