[summary of the invention]
The object of this invention is to provide a kind of encryption safe reliability high, realize the Novel secrecy telephone set that complexity is low, to overcome above-mentioned the deficiencies in the prior art part, the present invention also provides the secret communicating method of this Novel secrecy telephone set.
Technical scheme of the present invention is: a kind of Novel secrecy telephone set, comprising: be arranged on control module I, phone module II and input/output module III on master control borad,
Control module I comprises DSP main control chip and a TLV320AIC23 audio coder-decoder of a TMS320C6713, the DSP main control chip of TMS320C6713 is the core of control module I, its coordination of bearing all modules is controlled and is processed, input signal is carried out to chaos encryption or deciphering, and carry out to received signal Echo Cancellation processing, audio coder-decoder carries out digital-to-analogue or analog-to-digital conversion to the signal receiving, and DSP main control chip and the TLV320AIC23 audio coder-decoder of TMS320C6713 interconnect;
Phone module II comprises digital communication modem chip and a TMS320AIC10 modulus signal conversion chip of a CPC5604, CPC5604 digital communication modem chip is isolated main control module and actual telephone line realize access and the exchange of data, TMS320AIC10 modulus signal conversion chip is changed analog signal and digital signal mutually, and CPC5604 digital communication modem chip is connected with TMS320AIC10 modulus signal conversion chip;
Input/output module III comprises serial communication interface, audio frequency input/output interface and includes the interface circuit of AT89S52 single-chip microcomputer, and serial communication interface is connected with external keyboard, and audio frequency input/output interface is connected with microphone with earphone;
The other end of the serial communication interface of input/output module III is connected with the DSP main control chip of TMS320C6713 in control module I, the other end of audio frequency input/output interface is connected with TLV320AIC23 audio coder-decoder, phone module II one end is connected with switch, the other end is connected with control module I, interface circuit is connected with the DSP main control chip of control module I, and control module I is connected with dsp bus with external power source adjuster, JTAG simulator respectively.
The invention also discloses a kind of time slot scrambling of Novel secrecy telephone set, this time slot scrambling is to utilize the above-mentioned control module I by being arranged on master control borad of the present invention, the transmission that the code phone that phone module II and input/output module III form adopts the mode of Logistic chaotic maps and a class Piecewise linear chaotic map to carry out signal to paired carrier multiplexing multiple access (PCMA) technology of data confidentiality and symmetric pattern is encrypted, the method is to comprise the signal of input/output module III input in control module I, to carry out chaos encryption, after signal modulation process, convert again the process that double-audio signal sends by phone module II to, and convert the signal receiving from phone module II to digital signal when receiving, in control module I, through Echo Cancellation, process, after chaos decode, the receiving course of finally exporting by input/output module III,
Described process of transmitting comprises: steps A 1: signal input, steps A 2: chaos encryption, steps A 3: signal modulation, steps A 4: the process of transmitted signal;
Described receiving course comprises: step B1: signal receives, step B2: Echo Cancellation is processed, step B3: chaos decode, step B4: the process of signal output.
Owing to adopting said structure and method, the present invention's a kind of Novel secrecy telephone set and secret communicating method thereof have following beneficial effect:
One. safe, function of keeping secret is reliable:
Even the present invention has adopted the system of paired carrier wave to guarantee that the not encrypted cleartext information of channel is also difficult for the technology of being intercepted and captured by third party, because the signal transmitting superposes mutually, third party monitors Anywhere home loop, what obtain is all the carrier signal of stack, therefore third party cannot separated two end signals, can not obtain the information of both call sides, and the both sides of communication are due to the signal value that has local side and preserve, can after obtaining signal, utilize the method for Echo Cancellation by the signal cancellation of returning via certain loop in the signal of receiving, the signal extracting is like this signal that the other side sends, both guaranteed effective communication, and whole process maintains complete secrecy, simultaneously, the present invention has also adopted current widely used Logistic chaotic maps and a class Piecewise linear chaotic map to carry out signal encryption and deciphering as the generator that produces chaos sequence, the method is to have applied the cryptographic system method for designing of conventional stronger cipher fail safe, and therefore chaos generator of the present invention generally all can reach good cipher round results, by the safety of the system guarantee voice signal of paired carrier wave and Echo Cancellation, the fail safe by the whole Digital Transmission communication system of assurance of the method for password, makes the present invention have higher security performance, has guaranteed the safety and reliability of transfer of data,
Two. be easy to realize:
The present invention has adopted TMS320C6713 chip as main process chip in control module I, this chip belongs to a calculated performance and controls all very strong fixed-point DSP chip of function, the encryption and decryption of whole code phone, signal modulation and Echo Cancellation all can be realized by TMS320C6713 chip, this chip is also responsible for the coordination of whole code phone and is controlled and process simultaneously, therefore adopt a DSP main control chip can complete most function, with respect to existing code phone, simple in structure; Meanwhile, the present invention utilizes the method for paired carrier wave and chaos encryption deciphering, has both guaranteed the reliable of the safety of voice signal and communication, makes this invention not need complicated algorithm just can adapt to the secrecy transmission demand of various application; The present invention also utilizes with respect to existing code phone, is easier to realize.
Three. be convenient to management, be suitable for applying:
The present invention is comprised of control module I, phone module II and tri-modules of input/output module III, control module I is responsible for the coordination of whole code phone and controls processing, signal modulation, Echo Cancellation and encrypting and decrypting, phone module II sends the signal after processing, input/output module III and outside input-output equipment are mutual, simple in structure, be easy to management and promote.
[embodiment]
Embodiment mono-:
A kind of Novel secrecy telephone set, comprise: be arranged on the control module I on master control borad (1), phone module II and input/output module III, control module I comprises the DSP main control chip of a TMS320C6713 (2) and the audio coder-decoder of a TLV320AIC23 chip (3), the DSP main control chip of TMS320C6713 (2) is the core of control module I, its coordination of bearing all modules is controlled and is processed, input signal is carried out to chaos encryption or deciphering, and carry out to received signal Echo Cancellation processing, the audio coder-decoder of TLV320AIC23 chip (3) carries out digital-to-analogue or analog-to-digital conversion to the signal receiving, the audio coder-decoder of the DSP main control chip of TMS320C6713 (2) and TLV320AIC23 chip (3) interconnects, phone module II comprises a CPC5604 (4) digital communication modem chip and a TMS320AIC10 (5) modulus signal conversion chip, CPC5604 (4) digital communication modem chip is isolated control module I and actual telephone line realize access and the exchange of data, TMS320AIC10 (5) modulus signal conversion chip is changed analog signal and digital signal mutually, and CPC5604 (4) digital communication modem chip is connected with TMS320AIC10 (5) modulus signal conversion chip, input/output module III comprises serial communication interface (6), audio frequency input/output interface (7) and includes the interface circuit (9) of AT89S52 single-chip microcomputer (8), interface circuit (9) is connected with the TMS320C6713 chip (2) of control module I, one end of the serial communication interface of input/output module III (6) is connected with LCD keyboard (11), the other end is connected with the DSP main control chip of TMS320C6713 (2) in control module I, and one end of audio frequency input/output interface (7) is connected with microphone (13) with earphone (12), the other end is connected with TLV320AIC23 (3) audio coder-decoder, phone module II one end is connected with switch (15), the other end is connected with control module I, and control module I is connected with dsp bus with external power source adjuster, JTAG simulator respectively.
In confidential phone, as the TMS320C6713 chip (2) of main process chip, be a calculated performance and control all very strong fixed-point DSP chip of function, its highest point reason speed can reach 400MIps, this characteristic can make its needs that meet native system real-time on cryptographic calculation of going up to greatest extent, this chip also provides abundant control pin and data pin, make various ancillary equipment reception control signal and carry out the mutual of data with chip easily, TMS320C6713 chip (2) mainly completes in native system to be controlled and computing function, voice signal after TLV320AIC23 chip (3) is processed is converted into digital signal and enters TMS320C6713 chip (2) and be further processed, digital signal to entered is carried out to chaos encryption and decryption here, at receiving terminal, TMS320C6713 chip (2) also adopts adaptive filter algorithm, and accepted signal is carried out to Echo Cancellation processing simultaneously, and signal will be sent to phone module II and process rear transmission after TMS320C6713 chip (2) is processed, TMS320C6713 chip (2) is except realizing above-mentioned basic function, it is also being born whole system is being coordinated to the function of controlling, in programming, realize in the process of whole system function, when off-hook and on-hook, all need to send off-hook control word and on-hook control to the interface circuit (9) of phone module II, control the execution of dislodging machine operation, during initialization modules, be all to control by TMS320C6713 chip (2) control register that writes a module, so TMS320C6713 (2) is the core of native system operation.
TLV320AIC23 (3) is a high-performance, be integrated with the stereo audio codec of analog functuion, in this device, A/D and D/A converter Digital Transmission word length can be 16,20,24 and 32, sample rate is 8 ~ 96kHz, its inside is integrated with the adjustable audio frequency input and output amplifier of gain, and the gain of input and output can be controlled easily by program; In order to make processing speed can meet the needs of streaming rate, adopted the 8kHz sampling rate that can satisfy the demands in voice call, the sampling rate that experimental results show that 8kHz can restore voice signal comparatively clearly at receiving terminal in voice call, too significantly distortion phenomenon does not occur, can meet call demand; Meanwhile, adopted the length of 16 relatively short integers, to reduce the burden of processor; The problem reducing to some extent for the intensity by signal after telephone line transmission, adopted higher gain, and by gain control in rational scope, to avoid the appearance of the excessive distortion phenomenon causing of sound, TLV320AIC23 (3) audio decoder chip is connected with outer audio equipment by the audio frequency apparatus interface of inlaying on mainboard pin, because native system needs to change gain in implementation procedure, and LINEOUT delivery outlet is not support gain-adjusted, so adopted MIC input port and PHONE delivery outlet connection device wherein, regulated gain to facilitate.
CPC5604 chip (4) is a DAA chip, by using this chip, can make DSP master control borad (1) and actual telephone line isolate and realize access and the exchange of data, CPC5604 chip (4) is with the differential signal interface of data input and data output, the present invention utilizes this function to realize ring and detects output, off-hook control inputs, and with the analog interface function of telephone line, by can find ring detection and off-hook to the detection of differential signal, control, when there is output signal, data to be exported are passed to CPC5604 chip (4), CPC5604 chip (4) is by the modulation of automatic settling signal output.
The present invention can also realize without paper facsimile function, this function shows that by an integrated numeric keypad and LCD the interface circuit (9) of controlling realizes, this interface circuit (9) is realized the mutual of data by the serial data interface on TMS320C6713 chip (2) place master control borad (1) and TMS320C6713 chip (2) and internal memory, when wherein numeric keypad is mainly realized the dialing of telephone call and word input as input equipment, double-audio signal has 16, in text communication, can for word, carry out coded representation by the form of hexadecimal code, thereby realize input and the transmission of word.There is in the present invention the numeric keypad that sends digital information, also can be extended to full-scale input keyboard, by the coding to Word message, realize the transmission to Word message, in comprising the keyboard entry function of dialing and the procedure for displaying of LCD, AT89S52 single-chip microcomputer (8) in Single Chip Microcomputer (SCM) system is controlled the data exchange process between serial ports and keyboard and liquid crystal display screen, the dialing order of dialing procedure comprises five parts, first be two initial " # " of order, and then be respectively the model selection of a byte, be used for selecting encryption mode, the number length of a byte, the number part of a plurality of bytes, check part with a byte, while sending data with dual-audio, one frame structure is fairly simple, the information sending is for direct interaction between single-chip microcomputer, the start byte that comprises two " * ", a length byte, a plurality of data bytes and a check byte, the dsp chip of TMS320C6713 only need to directly be sent to the other end by the mode of dual-audio by the information of receiving from serial ports, the other end is sent it can complete text communication process through serial ports order, during work, first from keyboard, input information waiting for transmission, this Word message is admitted to TMS320C6713 chip and processes, the other end of then communicating by letter by dial-up connection, after connection setup gets up, information waiting for transmission is sent into chaos encryption module, after digital information is encrypted, at channel, carry out PCMA transmission.The recipient of communication receives after information, carries out after Echo Cancellation, the significant digits information of extraction is sent into TMS320C6713 and carry out chaos decode and processing, and show in lcd screen.
According to the size of communicating pair transmitting power, PCMA has two kinds of basic application models: symmetric pattern and asymmetric mode, under symmetric pattern, the available signal power receiving due to communicating pair is substantially equal with interference signal (self inverse signal) power, for useful signal is carried out to reliable demodulation, both sides' receiver all needs to adopt interference cancellation algorithm that interference signal is eliminated as far as possible; On the other hand, for other receiving station in beam coverage, because the feature of two signals that receive unanimously cannot be carried out demodulation to signal, therefore compare with general FDMA system, symmetrical PCMA system has stronger anti-interception capability.Under asymmetric mode, for one end, small station, because the available signal power receiving is much larger than interfering signal power, therefore can directly to useful signal, carry out demodulation; And for main website one end, because the available signal power receiving is much smaller than interfering signal power, therefore need to adopt very effective interference cancellation algorithm that interference signal is eliminated as much as possible.Comparatively speaking, the anti-interception capability of symmetric pattern is stronger for two kinds of application models of PCMA, and the fail safe of communication is also higher, and realizes relatively simple compared with asymmetric mode.Therefore, in the present invention, selected the PCMA of symmetric pattern, as shown in Figure 5, terminal 1 transmit uplink signal A, terminal 2 transmit uplink signal B, signal A, B is used identical frequency range simultaneously, so as long as two terminals ceaselessly send information, two signal A that terminal is sent, B just can obtain the waveform A+B of stack on channel, due to what use, it is the paired carrier channel multiplex technique (PCMA) of symmetric pattern, so it is suitable obtaining the waveform of every end in overlaid waveforms on channel in amplitude, all play mutually the effect of covering preferably, the signal that terminal receives is the summation of two end signals, it any third party of this signal on channel, is all inseparable extraction, but different for two terminals, terminal 1 can draw the echo-signal A of estimation according to the characteristic of oneself transmit A and channel
1(this estimated signal A approaches downstream signal A
1), in like manner, terminal 2 can estimate to draw estimated signal B
1, therefore, terminal 1 can balance out the superposed signal receiving the signal section itself sending by the mode of calculating, thereby obtains the signal that terminal 2 is sent, and the other side's transmitted signal B can be calculated is: A+B-A
1≈ B.
The course of work:
Keyboard dialing is passed through in code phone, initiating communication connects, voice are inputted via microphone with analog signal, after A/D sampling, in the memory of TMS320C6713 chip (2), preserve, in addition, the input of memory not only can obtain by analog-to-digital voice signal, it can also be the input of keyboard, when this keyboard is responsible for faxing without paper the input of Word message and when dialing telephone number input, in memory, the data of digital form are carried out chaos encryption processing in TMS320C6713 chip (2), TMS320C6713 chip (2) is also by the echo data that passes data and receive of storing before simultaneously, to produce the filter of estimation echo waveform in Echo Cancellation process, adjust, enable to estimate accurately channel parameter as far as possible, to reach good echo elimination effect, through the data of encryption, by TLV320AIC23 (3), carry out D/A and be converted into the double-audio signal that can transmit in analog channel, and sent into phone module II, phone module II by signal loading to telephone wire, on channel, adopt paired carrier multiplexing multiple access (PCMA, hereinafter to be referred as PCMA) technology carries out the transmission of signal, realizes the transmission of signal, signal receiving course is contrary with the processing procedure of transmitting terminal, first phone module II delivers to A/D module by the signal receiving on telephone line, after sampling generating digital signal, put into the memory of TMS320C6713 chip (2), then in TMS320C6713 chip (2), use filtering algorithm, produce the echo-signal of estimating, and carry out Echo Cancellation processing by the echo-signal estimating, signal is decrypted to processing simultaneously, finally the transmission information of having recovered is exported, when carrying out character message transmission, TMS320C6713 chip (2) is controlled LCD display and is demonstrated the Word message receiving, when carrying out transmission of speech information, TMS320C6713 chip (2) sends this information to TLV320AIC23 (3) to carry out D/A and is reduced into after voice signal, from earphone output, export again.
As a kind of conversion of the embodiment of the present invention, also can on the expansion interface of TMS320C6713 chip (2), connect expansion module IV, equally also can realize object of the present invention, and other expanded functions of feasible system.
Embodiment bis-
A kind of time slot scrambling of code phone, to utilize the above-mentioned control module I by being arranged on master control borad (1) of the present invention, the code phone that phone module II and input/output module III form adopts the mode of Logistic chaotic maps and a class Piecewise linear chaotic map to carry out the transmission of signal to paired carrier multiplexing multiple access (PCMA) technology of data confidentiality and symmetric pattern, the method is to comprise the signal of input/output module III input in control module I, to carry out chaos encryption, after signal modulation process, convert again the process that double-audio signal sends by phone module II to, and convert the signal receiving from phone module II to digital signal when receiving, in control module I, through Echo Cancellation, process, after chaos decode, the receiving course of finally exporting by input/output module III,
Described process of transmitting comprises: steps A 1: signal input, steps A 2: chaos encryption, steps A 3: signal modulation, steps A 4: the process of transmitted signal;
Described receiving course comprises: step B1: signal receives, step B2: Echo Cancellation is processed, step B3: chaos decode, step B4: the process of signal output.
Wherein, the signal modulation in process of transmitting and the Echo Cancellation in described receiving course are all realized in TMS320C6713 chip, and its concrete steps are:
AS1: training process;
AS2:w value initialization;
AS3: assignment i=1;
AS4: assignment j=1;
AS5: reading out data X;
AS6: judge whether i is greater than 100, if so, jump to step aS9;
AS7: judge whether j is greater than 100, if so, jump to step aS9;
AS8:j++, returns to step aS5;
AS9: calculate estimated value;
AS10: receive data d;
AS11: error of calculation e;
AS12: adjust tap coefficient w;
AS13:i++, jumps to step aS4;
In above-mentioned steps, w is tap coefficient, i.e. the estimated value to channel circumstance, and x is the data that start to read, and d starts the data that receive, and e is the error amount of x and d, and i, j are environmental variances.
Chaos encryption in process of transmitting is realized in TMS320C6713 chip, and its concrete steps are:
BS1: by x1, the linear chaotic maps equation of a class that p1 substitution is following:
And the value obtaining is assigned to x1;
BS2: judge whether x1 is greater than 0.5, if it is generate a bit 1 and be added into key sequence, be added into key sequence otherwise generate bit 0;
BS3: whether the key sequence that judgement generates is 16, if not, jumps to bS1;
BS4: integer data are expressly carried out to XOR processing, generating ciphertext sequence with 16 key sequences that generate;
BS5: by x2, the following Logistic chaotic maps of p2 substitution equation:
x(t+1)=λ*x(t)*(1-x(t))
The value obtaining is assigned to x2, x2 is got to fractional part with x1 phase adduction and be assigned to x1;
BS6: calculate in ciphertext sequence 1 number, and be multiplied by 1/16 and add x1, the value obtaining is got fractional part and is assigned to x1, preserves key sequence to use during deciphering;
BS7: empty key sequence and jump to bS1;
Wherein, x1, p1 is the parameter for the linear chaotic maps of a class, x2, p2 is the parameter for Logistic chaotic maps
Chaos decode in receiving course is also realized in TMS320C6713 chip, and its concrete steps are:
CS1: by x1, the linear chaotic maps equation of a class that p1 substitution is following:
And the value obtaining is assigned to x1;
CS2: judge whether x1 is greater than 0.5, if it is generate a bit 1 and be added into key sequence, be added into key sequence otherwise generate bit 0;
CS3: whether the key sequence that judgement generates is 16, if not, jumps to cS1;
CS4: with 16 key sequences that generate, ciphertext integer data is carried out to XOR processing, generate expressly sequence;
CS5: by x2, the following Logistic chaotic maps of p2 substitution equation:
x(t+1)=λ*x(t)*(1-x(t))
The value obtaining is assigned to x2, x2 is got to fractional part with x1 phase adduction and be assigned to x1;
CS6: calculate in sequence expressly 1 number, and be multiplied by 1/16 and add x1, the value obtaining is got fractional part and is assigned to x1, preserves key sequence to use during deciphering;
CS7: empty key sequence and jump to cS1;
Wherein, x1, p1 is the parameter for the linear chaotic maps of a class, x2, p2 is the parameter for Logistic chaotic maps
The paired carrier wave multiple access technology (PCMA) that adopts symmetrical expression for the transmission of audio signal, its method, with embodiment mono-, repeats no more herein.
As another conversion of the embodiment of the present invention, within other conversion based in technical scheme without prejudice to the technology of the present invention object also belong to protection scope of the present invention.