CN101873622B - Method and device for testing encryption unit - Google Patents

Method and device for testing encryption unit Download PDF

Info

Publication number
CN101873622B
CN101873622B CN201010215341A CN201010215341A CN101873622B CN 101873622 B CN101873622 B CN 101873622B CN 201010215341 A CN201010215341 A CN 201010215341A CN 201010215341 A CN201010215341 A CN 201010215341A CN 101873622 B CN101873622 B CN 101873622B
Authority
CN
China
Prior art keywords
terminal
test
ciphering unit
port
encrypted circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010215341A
Other languages
Chinese (zh)
Other versions
CN101873622A (en
Inventor
邱保锦
张洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201010215341A priority Critical patent/CN101873622B/en
Publication of CN101873622A publication Critical patent/CN101873622A/en
Application granted granted Critical
Publication of CN101873622B publication Critical patent/CN101873622B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a device for testing an encryption unit, which are used for simplifying the testing procedure and enhancing the testing efficiency. The method comprises the following steps of: receiving an instruction used for characterizing an instruction for opening an encryption port of the encryption unit by a terminal to be tested and opening the encryption port of the encryption unit according to the instruction, wherein a receiving end and a transmitting end of the encryption port are short-circuited, the encryption unit comprises at least one encryption circuit, and the encryption circuits are in one-to-one correspondence with terminal platforms; when receiving a test starting instruction by the terminal to be tested, determining the encryption circuits corresponding to the terminal platforms for the test of this time from the encryption unit by the terminal to be tested aiming at each terminal platform and running the corresponding self-testing running codes of the determined encryption circuits; and determining a testing result of testing the encryption unit by the terminal to be tested according to a running result and feeding back the testing result. By adopting the technical scheme, the testing procedure is simplified, and the testing efficiency is enhanced.

Description

A kind of method of testing encryption unit and device
Technical field
The present invention relates to the testing of equipment field, relate in particular to the method and the device of ciphering unit in a kind of testing mobile terminal.
Background technology
At present; For improving communications of Mobile Terminals safety; The portable terminal that uses in the special industry all is provided with ciphering unit; Comparatively commonly used is to be provided with ciphering unit at mobile phone, and equipment vendor need test the ciphering unit of mobile phone in process of production, to guarantee the stability and the reliability of ciphering unit circuit performance.
At present, the testing mobile phone ciphering unit, main mode is: load testing software at computer, testing software carries out information interaction through computer and portable terminal, and the computer that is mounted with testing software comprises first port and second port; Portable terminal comprises COM1 and encrypts port; On physical connection, the encryption port of portable terminal is connected through serial port data line with first port of computer, and COM1 is connected through serial port data line with second port of computer.
Referring to Fig. 1, be the signaling process figure that in the prior art ciphering unit of portable terminal is tested, this signaling process figure comprises step:
Step 101, testing software send the instruction of the encryption port of opening portable terminal to the serial ports of serial port data line through second port of computer.
The instruction that step 102, serial ports will receive is transmitted to the communications of Mobile Terminals port.
Step 103, portable terminal send commanded response through COM1 to serial ports.
Step 104, serial ports are transmitted to second port of computer with the commanded response that receives, so that commanded response is sent to testing software.
Step 105, portable terminal are opened the encryption port through its COM1, and send test data through COM1 to encrypting port, and this test data can be one group of character string sequence that the software at testing software and terminal to be measured defines in advance.
Step 106, encrypt port first port of the test data that receives through computer sent to testing software.
Step 107, testing software send a reply data through first port of computer to encrypting port, and these answer data can be the character string sequences that defines in advance between the software at testing software and terminal to be measured.
The answer data that step 108, encryption port will receive send to COM1.
Step 109, portable terminal judge according to the answer data that receive whether the circuit of ciphering unit goes wrong, and send test crash or the successful notification message of test through COM1 to serial ports.
Step 110, serial ports send to testing software with second port of the notification message that receives through computer.
Adopt the prior art testing encryption unit, though can realize the test of ciphering unit to a certain extent, because it realizes through communicating by letter between ciphering unit and the computer, also there is following technological deficiency:
(1) test fixture of prior art needs two frock data wires, and wherein, a frock data wire is used to connect first port of computer and the encryption port at terminal to be tested; Another frock data wire is used to connect second port of computer and the COM1 at terminal to be tested; Therefore, it is more that the frock data wire that prior art needs is used, and cost is high, inconvenient operation.
(2) in test process, portable terminal and ciphering unit need to carry out the outside alternately with computer respectively, and inside also need be carried out alternately with ciphering unit in terminal to be measured; Testing process is comparatively complicated, and the interactive step that relates to is more because the time delay of information interaction is bigger between the equipment, and flow process too complicacy cause test crash easily and cause and resurvey, thereby influence testing efficiency.
During (3) to the multi-platform multi-mode mobile terminal of test; Need repeat the signaling process of above-mentioned testing encryption unit; Therefore, the ciphering unit at multi-mode terminal to be measured is tested information interaction and the testing procedure that needs between more equipment, the time delay of consumption is bigger.
Summary of the invention
The present invention provides a kind of method and device of testing encryption unit, to simplify testing process, improves testing efficiency, reduces the test time delay.
A kind of method of testing encryption unit comprises:
Terminal to be measured receives the instruction that is used to characterize the encryption port of opening ciphering unit; And, open the encryption port of ciphering unit according to said instruction, this encrypts the receiving terminal and the transmitting terminal short circuit of port; Said ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform;
Terminal to be measured is when receiving test initiation command, and to each terminal platform, terminal to be measured is determined from said ciphering unit and the corresponding encrypted circuit of the terminal platform of this time test, and moves the corresponding operation code of determining of testing oneself of encrypted circuit;
The test result that ciphering unit is tested is determined according to operation result in terminal to be measured, and feeds back said test result.
A kind of device of testing encryption unit comprises:
Receiver module; Be used to receive the instruction that is used to characterize the encryption port of opening ciphering unit; And, open the encryption port of ciphering unit according to said instruction, this encrypts the receiving terminal and the transmitting terminal short circuit of port; Said ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform; And, be used for when receiving test initiation command, starting test module;
Test module is used for to each terminal platform, and terminal to be measured is determined from said ciphering unit and the corresponding encrypted circuit of the terminal platform of this time test, and moves the corresponding operation code of determining of testing oneself of encrypted circuit;
The test result feedback module is used for determining the test result that ciphering unit is tested according to the operation result of said test module operation, and feeds back said test result.
A kind of portable terminal; Comprise: central processor CPU, the COM1 that is connected with central processing unit, ciphering unit and be arranged on the encryption port of said ciphering unit; The transmitting terminal of said encryption port and receiving terminal short circuit; Said ciphering unit comprises that at least one encrypted circuit and encrypted circuit are corresponding one by one with terminal platform, wherein:
COM1 is used to receive the instruction that is used to characterize the encryption port of opening ciphering unit, and according to said instruction, opens the encryption port of ciphering unit; Be used for the acceptance test enabled instruction; And be used to feed back the test result that ciphering unit is tested;
Central processing unit; Be used for when said COM1 receives test initiation command; To each terminal platform; From said ciphering unit, determine and the corresponding encrypted circuit of the terminal platform of this time test, and move the corresponding operation code of determining of testing oneself of encrypted circuit, send test data to encrypting port through moving this operation code of testing oneself; And confirm operation result according to encrypting the answer data that port returns, determine test result according to operation result again to ciphering unit;
Encrypt port, when being used to receive the test data of said central processing unit transmission, send a reply data to said central processing unit.
In the embodiment of the invention; During test, terminal to be measured receives the instruction that is used to characterize the encryption port of opening ciphering unit, and according to said instruction; Open the encryption port of ciphering unit; This encrypts the transmitting terminal and the receiving terminal short circuit of port, and said ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform; Terminal to be measured is when receiving test initiation command, and to each terminal platform, terminal to be measured is determined from said ciphering unit and the corresponding encrypted circuit of the terminal platform of this time test, and moves the corresponding operation code of determining of testing oneself of encrypted circuit; Test result is determined according to operation result in terminal to be measured, and feeds back said test result.Adopt technical scheme of the present invention, carried out short circuit owing to will encrypt the receiving terminal and the transmitting terminal of port, therefore; In test process; Portable terminal only need can be realized the test of encrypted circuit at local runtime the test oneself operation code corresponding with the ciphering unit of this terminal platform to each terminal platform, thereby realizes the test to ciphering unit; Need not realize the test of ciphering unit through communicating by letter repeatedly with the equipment that is mounted with testing software; Thereby simplified the flow process of testing encryption unit, avoided communicating between the equipment time delay that need take, improved testing efficiency than long; In addition; Because having realized terminal to be measured tests ciphering unit in this locality; Therefore; Need not be connected between the encryption port at terminal to be measured and the equipment that is mounted with testing software, compared with prior art reduce terminal to be measured and be mounted with the frock data wire between the equipment of testing software through the frock data wire.
Description of drawings
Fig. 1 is the signaling process figure of the ciphering unit of testing mobile terminal in the prior art;
Fig. 2 is the method flow diagram of the ciphering unit of testing mobile terminal in the embodiment of the invention;
Fig. 3 is the signaling diagram of testing mobile terminal ciphering unit in the embodiment of the invention;
Fig. 4 is the annexation figure of the serial port data line that is used to connect computer and portable terminal in the embodiment of the invention;
Fig. 5 is the system block diagram of test platform in the embodiment of the invention;
Fig. 6 is based on the method flow diagram of test platform testing mobile terminal ciphering unit shown in Figure 5 in the embodiment of the invention;
Fig. 7 is the structural representation of the device of testing encryption unit in the embodiment of the invention;
Fig. 8 is the structural representation of portable terminal in the embodiment of the invention.
Embodiment
In prior art; The flow process that the ciphering unit of portable terminal is tested is complicated, testing efficiency is lower and the bigger problem of test time delay; The embodiment of the invention provides a kind of method of testing encryption unit, and this method is mainly: with the receiving terminal and the transmitting terminal short circuit of the encryption port of ciphering unit; During test, terminal to be measured receives and is used to characterize the instruction of the encryption port of opening ciphering unit, and according to said instruction, opens the encryption port of ciphering unit, and said ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding with terminal platform; Terminal to be measured is when receiving test initiation command, and to each terminal platform, terminal to be measured is determined from said ciphering unit and the corresponding encrypted circuit of the terminal platform of this time test, and moves the corresponding operation code of determining of testing oneself of encrypted circuit; Test result is determined according to operation result in terminal to be measured, and feeds back said test result.Adopt technical scheme of the present invention, carried out short circuit owing to will encrypt the receiving terminal and the transmitting terminal of port, therefore; In test process; The portable terminal ciphering unit of only need testing oneself in this locality gets final product, and need not realize the test of ciphering unit through communicating by letter repeatedly with the equipment that is mounted with testing software, thereby simplify the flow process of testing encryption unit; Avoided communicating between the equipment and need take long time delay, the raising testing efficiency; In addition; Because terminal to be measured can be tested ciphering unit in this locality; Therefore; Need not be connected between the encryption port at terminal to be measured and the equipment that is mounted with testing software, compared with prior art reduce terminal to be measured and be mounted with the frock data wire between the equipment of testing software, reduce cost through the frock data wire.
Below in conjunction with Figure of description technical scheme of the present invention is carried out detailed description.
In the embodiment of the invention, testing software is installed on computers, and this computer comprises first port and second port; Portable terminal to be tested (follow-up usefulness terminal to be measured is represented) comprises encrypts port and COM1, and wherein: encrypt the transmitting terminal and the receiving terminal short circuit of port, COM1 is connected through serial port data line with second port of computer.Terminal to be tested can be that unit/terminal platform monotype also can be a multiple terminals platform multi-mode.When terminal to be tested is multiple terminals platform multi-mode; Comprise in the following several kinds of terminal platforms at least 2 kinds like terminal to be measured: the QSC6010 of high pass, QSC6020, QSC1100, QSC6085; The SC8800S of spreadtrum, SC8800H; With a plurality of terminal platforms such as the PXA270P of horse Weir, XA310; Terminal to be measured comprises at least two kinds in the following several kinds of communication patterns: communication patterns such as CDMA, TD, GSM, and the ciphering unit at this terminal to be measured comprises a plurality of encrypted circuits, these a plurality of encrypted circuits are corresponding one by one with a plurality of terminal platforms; When terminal to be tested was unit/terminal platform monotype, ciphering unit comprised one and the corresponding encrypted circuit of this terminal platform; Ciphering unit is through encrypting the devices communicating at port and COM1, testing software place.
Testing software in the embodiment of the invention is not limited in loading on computers, can also be loaded on other the equipment, and those skilled in the art are to be understood that.
Referring to Fig. 2, be the method flow diagram of testing encryption unit in the embodiment of the invention, this flow process comprises step:
Step 201, terminal to be measured receive the instruction that is used to characterize the encryption port of opening ciphering unit; And according to said instruction; Open the encryption port of ciphering unit; This encrypts the receiving terminal and the transmitting terminal short circuit of port, and ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform.
Step 202, terminal to be measured acceptance test enabled instruction, and to each terminal platform, from ciphering unit, determine and the corresponding encrypted circuit of the terminal platform of this time test, and move the corresponding operation code of determining of testing oneself of encrypted circuit.
The test result that ciphering unit is tested is determined according to operation result in step 203, terminal to be measured, and the feedback test result.
In the above-mentioned steps 201, the instruction that is used to characterize the encryption port of opening ciphering unit that terminal to be measured receives is for second port of the computer of testing software through its place sends.The encryption port of ciphering unit is opened at terminal to be measured through COM1.
In the above-mentioned steps 202, the test initiation command that terminal to be measured receives is that second port of the testing software computer that passes through its place sends.
In the above-mentioned steps 202; The corresponding operation code of testing oneself of the encrypted circuit that terminal operating to be measured is determined; Specifically comprise: terminal to be measured from predefined encrypted circuit and the corresponding relation between the operation code of testing oneself, the corresponding operation code of testing oneself of the encrypted circuit that obtains and determine; The said operation code of testing oneself that terminal operating to be measured is determined.Corresponding relation in the embodiment of the invention both can be stored in terminal to be measured, also can be stored on other the equipment, as long as terminal to be measured can get access to.
In the above-mentioned steps 203, test result is determined according to operation result in terminal to be measured, specifically comprises:
When terminal to be measured is unit/terminal platform monotype; (terminal to be measured is sent first test data through COM1 to encrypted circuit when the operation code of testing oneself of the encrypted circuit of this unit/terminal platform moves successfully; And can receive second test data from encrypting port; This second test data is predefined and the corresponding data of first test data), then test result is for to test successfully; If during operation unsuccessful (be that terminal to be measured is sent first test data through COM1 to encrypted circuit, and can receive non-second test data from encrypting port), then test result is a test crash.
When said terminal to be tested was multiple terminals platform multi-mode, when the operation code of testing oneself of the encrypted circuit of these a plurality of terminal platforms all moves when successful, then test result was for to test successfully; Otherwise test result is a test crash.The CDMA, the TD dual-mode terminal that comprise following 3 kinds of terminal platform: QSC6085, SC8800S and PXA310 like this terminal to be measured; Ciphering unit is being carried out in the test process; Need test QSC6085 successively and arrive the encrypted circuit of encrypting between the port to the encrypted circuit and the PXA310 that encrypt between the port to the encrypted circuit, the SC8800S that encrypt between the port; Have only these 3 circuit are all tested when successful; Could confirm ciphering unit is tested successfully, otherwise to the ciphering unit test crash.
Alternatively, also comprise step after the above-mentioned process step 203:
Testing software generates data file, and this data file is kept on the database server of Local or Remote according to the test result of second port reception of computer.
Preferably, the portable terminal in the embodiment of the invention both can be worked under the situation of conventional dc power supply power supply, also can be under the situation of the power supply of programmable power supply, to work; When adopting programmable power supply to supply power, also comprise step before the step 201 of above-mentioned flow process to portable terminal:
Testing software carries out power initialization when starting, and the second port controlling DC power supply of the computer through its place provides direct voltage to terminal to be measured.
In the applied environment of reality; For better realizing the level conversion between computer and the terminal to be measured; So that realize the serial communication between computer and the terminal to be measured; The annexation figure of serial port data line as shown in Figure 4 is provided in the embodiment of the invention; The circuit that chip 14PIN connector, MAX3232 and DB9 among this Fig. 4 is connected to form is used for the level conversion between coordinate conversion computer and the portable terminal, and to satisfy the serial communication between this computer and the portable terminal, the annexation of the serial port data line in the embodiment of the invention is identical with the annexation of serial port data line of the prior art; As shown in Figure 4 as for concrete annexation, repeat no more at this.
Referring to Fig. 3, be the signaling process figure of testing encryption unit in the embodiment of the invention, this signaling process is to the portable terminal of unit/terminal platform monotype, and this signaling process comprises step:
Step 301, testing software send to serial ports through computer port and open the instruction that portable terminal is encrypted port.
The instruction that step 302, serial ports will receive sends to the mobile terminal software system through the communications of Mobile Terminals port.
Step 303, running of mobile terminal and the current corresponding operation code of testing oneself of encrypted circuit that needs the terminal platform of test to send test data through COM1 to encrypting port through moving this operation code of testing oneself.
In this step, portable terminal moves the corresponding operation code of testing oneself of encrypted circuit through the central processing unit of inside.
Transmission data in this step can be one group of character string sequences that the software at testing software and terminal to be measured defines in advance.
The test data that step 304, encryption port receive sends a reply data through encrypting port to COM1 through after the encrypted circuit.
Answer data in this step can be one group of character string sequences that the software at testing software and terminal to be measured defines in advance.
Whether step 305, portable terminal are judged the encrypted circuit test successful according to the answer data that receive, and send test crash/successful notification message through COM1 to serial ports.
In the embodiment of the invention, can preestablish the corresponding relation of each test data and expected data at portable terminal, it is normal that this expected data is used to characterize encrypted circuit.Portable terminal is judged whether success of encrypted circuit test, is specifically comprised: through central processing unit from the corresponding relation of predefined test data and expected data, the corresponding expected data of the test data of obtaining and sending; Judge whether the answer data of encrypting the port feedback are identical with the expected data of obtaining,, then confirm encrypted circuit is tested successfully, otherwise confirm the encrypted circuit test crash if identical.
Step 306, serial ports are transmitted to testing software with the test crash that receives/successful notification message.
To the multimodal portable terminal of multiple terminals platform, all need execution in step 303~304 to each terminal platform, when step 305, confirm test result to ciphering unit according to the test result of the corresponding encrypted circuit of each terminal platform.
Preferably, the method for testing that the embodiment of the invention provides can be applicable to HTS (Hisense Test Stand, Hisense's test platform) test platform, but is not limited in the HTS test platform, can also be applied to other test platform.
Method in the face of testing mobile terminal ciphering unit in the embodiment of the invention is described in more detail down.
Referring to Fig. 5; Be the system block diagram of in the embodiment of the invention portable terminal ciphering unit being tested; This system comprises application layer, test service key-course and Drive Layer, and wherein: application layer is used for realizing testing software choosing test macro; The setting of input, and to the setting of the preserving type and the storing path of file form; The test service key-course is used to realize the test assignment of each functional module, comprises the commands for controlling of the logic control of accomplishing the test assignment sword and switching, test terminal etc.; Drive Layer is used to realize that the serial ports control of portable terminal, driving DC power supply are that portable terminal provides DC power supply etc.
Referring to Fig. 6, be the method flow of testing encryption unit in the embodiment of the invention, this flow process comprises step:
The testing software of step 601, startup test platform.
Step 602, testing software load the test sequence file of ciphering unit.
Step 603, testing software carry out the DC power supply initialization, execution in step 604 when the initialization success, and during the initialization failure, execution in step 609.
Step 604, testing software carry out the function in the dynamic base.
Step 605, testing software pass through the computer at its place, and the COM1 of controlling terminal to be measured is opened the encryption port of the ciphering unit at this terminal to be measured.
Step 606, testing software send test initiation command through the computer at its place to terminal to be measured.
Step 607, terminal pins to be measured are determined the test oneself operation code corresponding with this terminal platform to each terminal platform from ciphering unit, and move the operation code of determining of testing oneself; The test result that ciphering unit is tested is determined according to operation result in terminal to be measured, and test result is fed back to the computer at testing software place.
Step 608, testing software show the test result that computer receives, and generate data file according to this test result, and on the Local or Remote database server, preserve this data file.
Step 609, end testing process.
Based on the identical design of said method flow process, the embodiment of the invention also provides a kind of device of testing encryption unit.
Referring to Fig. 7, be the structural representation of the device of testing encryption unit in the embodiment of the invention, this device comprises:
Receiver module 71 is used to receive the instruction that is used to characterize the encryption port of opening ciphering unit, and according to said instruction, opens the encryption port of ciphering unit, and said ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform; And, be used for when receiving test initiation command, starting test module 72;
Test module 72 is used for to each terminal platform, and terminal to be measured is determined from said ciphering unit and the corresponding encrypted circuit of the terminal platform of this time test, and moves the corresponding operation code of determining of testing oneself of encrypted circuit;
Test result feedback module 73 is used for determining test result according to the operation result of test module 72 operations, and feeds back said test result.
The corresponding operation code of testing oneself of the encrypted circuit that test module 72 is determined has particular application as:
From predefined encrypted circuit and the corresponding relation between the operation code of testing oneself, the corresponding operation code of testing oneself of the encrypted circuit that obtains and determine, and the said operation code of testing oneself determined of operation.
Test result feedback module 73 is determined test result according to operation result, has particular application as:
When said terminal to be measured is a unit/terminal platform monotype, and the testing oneself during the operation code success of the encrypted circuit of test module 72 operation unit/terminal platforms, confirm to test successfully;
When said terminal to be tested is a multiple terminals platform multi-mode, and the operation code of testing oneself of the encrypted circuit of a plurality of terminal platforms of test module 72 operations all moves when successful, confirms to test successfully.
Test result feedback module 73 feedback test results have particular application as: feedback sequence, the assigned address of this sequence is provided with the sign that characterizes successfully or fail.
The embodiment of the invention also provides a kind of portable terminal.
Referring to Fig. 8; Structural representation for portable terminal in the embodiment of the invention; This portable terminal comprises: central processing unit 81, the COM1 82 that is connected with central processing unit 81, ciphering unit 83 and be arranged on the encryption port 84 of ciphering unit 83; Encrypt the transmitting terminal and the receiving terminal short circuit of port 84, ciphering unit 83 comprises that at least one encrypted circuit and encrypted circuit are corresponding one by one with terminal platform, wherein:
COM1 82 is used to receive the instruction that characterizes the encryption port 84 of opening ciphering unit 83, and according to said instruction, opens the encryption port 84 of ciphering unit 83; Be used for the acceptance test enabled instruction; And be used to feed back the test result that ciphering unit 83 is tested;
Central processing unit 81; Be used for when COM1 82 receives test initiation command; To each terminal platform; From ciphering unit 83, determine and the corresponding encrypted circuit of the terminal platform of this time test, and move the corresponding operation code of determining of testing oneself of encrypted circuit, send test datas to encrypting port 84 through moving this operation code of testing oneself; And confirm operation result according to encrypting the answer data that port 84 returns, determine test result according to operation result again to ciphering unit 83;
Encrypt port 84, when being used to receive the test data of central processing unit 81 transmissions, send a reply data to central processing unit 81.
Central processing unit 81 is confirmed operation result according to replying data, specifically comprises:
From the corresponding relation of predefined test data and expected data, obtain the corresponding expected data of test data that this central processing unit 81 sends, it is normal that said expected data is used to characterize encrypted circuit;
Judge whether the answer data of encrypting port 84 feedbacks are identical with the expected data of obtaining,, confirm that then operation result is successfully, otherwise confirm that operation result is failure if identical.
In the embodiment of the invention, carried out short circuit owing to will encrypt the receiving terminal and the transmitting terminal of port, therefore; In test process; The portable terminal ciphering unit of only need testing oneself in this locality gets final product, and need not realize the test of ciphering unit through communicating by letter repeatedly with the equipment that is mounted with testing software, thereby simplify the flow process of testing encryption unit; Avoided communicating between the terminal and need take long time delay, the raising testing efficiency; And technical scheme of the present invention is not only applicable to the portable terminal of single platform monotype, and also applicable to multi-platform multimodal portable terminal, therefore, versatility and practicality are stronger, and be simple in structure, is easy to realize.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the method for a testing encryption unit is characterized in that, comprising:
Terminal to be measured receives the instruction that is used to characterize the encryption port of opening ciphering unit; And, open the encryption port of ciphering unit according to said instruction, this encrypts the receiving terminal and the transmitting terminal short circuit of port; Said ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform;
Terminal to be measured is when receiving test initiation command, and to each terminal platform, terminal to be measured is determined from said ciphering unit and the corresponding encrypted circuit of the terminal platform of this time test, and moves the corresponding operation code of determining of testing oneself of encrypted circuit;
The test result that ciphering unit is tested is determined according to operation result in terminal to be measured, and feeds back said test result.
2. the method for claim 1 is characterized in that, the corresponding operation code of testing oneself of the encrypted circuit that said terminal operating to be measured is determined specifically comprises:
Terminal to be measured from predefined encrypted circuit and the corresponding relation between the operation code of testing oneself, the corresponding operation code of testing oneself of the encrypted circuit that obtains and determine;
The said operation code of testing oneself that terminal operating to be measured is determined.
3. the method for claim 1 is characterized in that, the test result that ciphering unit is tested is determined according to operation result in terminal to be measured, specifically comprises:
When said terminal to be measured is unit/terminal platform monotype, when the operation code of testing oneself of the encrypted circuit of this unit/terminal platform moves successfully, confirm ciphering unit is tested success;
When said terminal to be tested is multiple terminals platform multi-mode,, confirm ciphering unit is tested success when the operation code of testing oneself of the encrypted circuit of these a plurality of terminal platforms all moves when successful.
4. method as claimed in claim 3 is characterized in that, said terminal feedback test result to be measured is specially:
Said terminal feedback sequence to be measured, the assigned address of this sequence is provided with the sign that characterizes successfully or fail.
5. the device of a testing encryption unit is characterized in that, comprising:
Receiver module; Be used to receive the instruction that is used to characterize the encryption port of opening ciphering unit; And, open the encryption port of ciphering unit according to said instruction, this encrypts the receiving terminal and the transmitting terminal short circuit of port; Said ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform; And, be used for when receiving test initiation command, starting test module;
Test module is used for to each terminal platform, and terminal to be measured is determined from said ciphering unit and the corresponding encrypted circuit of the terminal platform of this time test, and moves the corresponding operation code of determining of testing oneself of encrypted circuit;
The test result feedback module is used for determining the test result that ciphering unit is tested according to the operation result of said test module operation, and feeds back said test result.
6. device as claimed in claim 5 is characterized in that, the corresponding operation code of testing oneself of the encrypted circuit that said test module is determined has particular application as:
From predefined encrypted circuit and the corresponding relation between the operation code of testing oneself, the corresponding operation code of testing oneself of the encrypted circuit that obtains and determine, and the said operation code of testing oneself determined of operation.
7. device as claimed in claim 5 is characterized in that, said test result feedback module is determined test result according to operation result, has particular application as:
When said terminal to be measured is a unit/terminal platform monotype, and the testing oneself during the operation code success of the encrypted circuit of said test module operation unit/terminal platform, confirm ciphering unit is tested success;
When said terminal to be tested is a multiple terminals platform multi-mode, and the said test module operation code of testing oneself that moves the encrypted circuit of a plurality of terminal platforms all moves when successful, confirms ciphering unit is tested success.
8. device as claimed in claim 7 is characterized in that, said test result feedback module feedback test result, and have particular application as: feedback sequence, the assigned address of this sequence is provided with the sign that characterizes successfully or fail.
9. portable terminal; It is characterized in that; Comprise: central processor CPU, the COM1 that is connected with central processing unit, ciphering unit and be arranged on the encryption port of said ciphering unit; The transmitting terminal of said encryption port and receiving terminal short circuit, said ciphering unit comprise that at least one encrypted circuit and encrypted circuit are corresponding one by one with terminal platform, wherein:
COM1 is used to receive the instruction that is used to characterize the encryption port of opening ciphering unit, and according to said instruction, opens the encryption port of ciphering unit; Be used for the acceptance test enabled instruction; And be used to feed back the test result that ciphering unit is tested;
Central processing unit; Be used for when said COM1 receives test initiation command; To each terminal platform; From said ciphering unit, determine and the corresponding encrypted circuit of the terminal platform of this time test, and move the corresponding operation code of determining of testing oneself of encrypted circuit, send test data to encrypting port through moving this operation code of testing oneself; And confirm operation result according to encrypting the answer data that port returns, determine test result according to operation result again to ciphering unit;
Encrypt port, when being used to receive the test data of said central processing unit transmission, send a reply data to said central processing unit.
10. portable terminal as claimed in claim 9 is characterized in that, said central processing unit is confirmed operation result according to replying data, specifically comprises:
From the corresponding relation of predefined test data and expected data, obtain the corresponding expected data of test data that this central processing unit sends, it is normal that said expected data is used to characterize encrypted circuit;
Whether the answer data of judging said encryption port feedback are identical with the expected data of obtaining, if identical, confirm that then operation result is successfully, otherwise confirm that operation result is failure.
CN201010215341A 2010-06-29 2010-06-29 Method and device for testing encryption unit Expired - Fee Related CN101873622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010215341A CN101873622B (en) 2010-06-29 2010-06-29 Method and device for testing encryption unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010215341A CN101873622B (en) 2010-06-29 2010-06-29 Method and device for testing encryption unit

Publications (2)

Publication Number Publication Date
CN101873622A CN101873622A (en) 2010-10-27
CN101873622B true CN101873622B (en) 2012-10-10

Family

ID=42998231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010215341A Expired - Fee Related CN101873622B (en) 2010-06-29 2010-06-29 Method and device for testing encryption unit

Country Status (1)

Country Link
CN (1) CN101873622B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052061A (en) * 2012-12-17 2013-04-17 上海邮电设计咨询研究院有限公司 Machine to machine communication module with safety function
CN104794052B (en) * 2015-04-01 2018-01-19 努比亚技术有限公司 The method and device of encryption display test
CN107483177B (en) * 2017-07-07 2020-10-23 苏州浪潮智能科技有限公司 Method and system for verifying authenticity of encrypted data of encryption equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI106834B (en) * 1998-06-03 2001-04-12 Nokia Mobile Phones Ltd Method and arrangement for testing the functionality of the data channels in a radio device
JP4093669B2 (en) * 1999-02-23 2008-06-04 富士通株式会社 Subscriber testing system
JP3602984B2 (en) * 1999-07-09 2004-12-15 富士通株式会社 Memory device
US6385739B1 (en) * 1999-07-19 2002-05-07 Tivo Inc. Self-test electronic assembly and test system
CN100473084C (en) * 2004-06-15 2009-03-25 联想(北京)有限公司 Testing system and method for mobile telephones
CN100375059C (en) * 2005-05-13 2008-03-12 中兴通讯股份有限公司 Automatic testing system of person digital aid cell phone function and method thereof
CN100589587C (en) * 2007-01-30 2010-02-10 中兴通讯股份有限公司 Automatic test system for handset single-plate and its method
KR101448122B1 (en) * 2007-11-07 2014-10-07 삼성전자 주식회사 Management device for rights management of time based digital rights management and method thereof
CN101500255B (en) * 2008-02-03 2010-10-20 中国移动通信集团公司 Mobile terminal test method and system
CN201360353Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Test system of mobile terminals
CN101478449B (en) * 2009-01-22 2011-02-02 凌阳科技股份有限公司 Protocol automatic test method and system thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张毅等.TD-SCDMA信令测试软件设计方案.《重庆邮电学院学报》.2003,第15卷(第1期), *
曹宇琼等.WCDMA终端互操作性测试.《现代电信科技》.2009,(第11期), *
苏新平.无线网卡加密模块自动化测试的研究与实现.《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》.2009,(第4期), *

Also Published As

Publication number Publication date
CN101873622A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
CN103037538B (en) Data transmission method and mobile terminal
CN108040329B (en) The load and its management method of eSIM module and its subscription data
CN105430108A (en) Test environment accessing method and proxy server
CN103716906A (en) Apparatus and method for controling power in a short-range communication device
CN101873622B (en) Method and device for testing encryption unit
CN104732323A (en) Maintenance management system of elevating apparatus
CN104348697A (en) Video communication information processing method, device and system
CN105591672A (en) NFC-based communication method and device
US9491166B2 (en) Apparatus and method for authenticating smart card
CN108833443A (en) A kind of method for message transmission and system, computer equipment
CN105120458A (en) Wireless connection method, device and system
CN1591336B (en) Method for simulating computer keyboard or mouse operation
CN106856585A (en) Set up the method and device of short-distance wireless passage
CN104239175A (en) Debugging system, debugging method and debugging device for chip
CN106850554B (en) Method and device for dual-system directional connection
CN105072082A (en) Method and device for transmitting verification code
KR20200019860A (en) Data Instruction Methods and Related Products
CN108540516B (en) Running state information acquisition method, control terminal, network equipment and system
CN107294704A (en) The generation method of password, the execution method of password and terminal
CN106211032A (en) The pairing of bluetooth SIM and the method for digital signature process is realized based on STK
CN103716374A (en) Method for sharing files and server
CN107505929B (en) Configuration method and device of vehicle controller and vehicle
JP6924176B2 (en) Mobile terminal test equipment, mobile terminal test system and NSA test method
CN109975624B (en) Test system and test method
CN103685249B (en) A kind of register the method for application, terminal and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121010

Termination date: 20200629