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

Method and device for testing encryption unit Download PDF

Info

Publication number
CN101873622A
CN101873622A CN 201010215341 CN201010215341A CN101873622A CN 101873622 A CN101873622 A CN 101873622A CN 201010215341 CN201010215341 CN 201010215341 CN 201010215341 A CN201010215341 A CN 201010215341A CN 101873622 A CN101873622 A CN 101873622A
Authority
CN
China
Prior art keywords
terminal
test
port
ciphering unit
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.)
Granted
Application number
CN 201010215341
Other languages
Chinese (zh)
Other versions
CN101873622B (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, equipment vendor needs the ciphering unit of mobile phone is tested 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 by computer and portable terminal, and the computer that is mounted with testing software comprises first port and second port; Portable terminal comprises communication port and encrypts port; On physical connection, the encryption port of portable terminal is connected by serial port data line with first port of computer, and communication port is connected by 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 by 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 by communication port 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 by its communication port, and send test data by communication port to encrypting port, and this test data can be one group of character string sequence that the software of testing software and terminal to be measured pre-defines.
Step 106, encrypt port the test data that receives first port by computer is sent to testing software.
Step 107, testing software send a reply data by first port of computer to encrypting port, and these answer data can be the character string sequences that pre-defines between the software of testing software and terminal to be measured.
The answer data that step 108, encryption port will receive send to communication port.
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 by communication port to serial ports.
Step 110, serial ports send to testing software with the notification message that receives second port by computer.
Adopt the prior art testing encryption unit, though can realize the test of ciphering unit to a certain extent, because it realizes by 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 of terminal to be tested; Another frock data wire is used to connect second port of computer and the communication port of terminal to be tested; Therefore, it is more that the frock data wire that prior art needs is used, cost height, inconvenient operation.
(2) in test process, portable terminal and ciphering unit need to carry out the outside alternately with computer respectively, and terminal to be measured also needs to carry out inside alternately with ciphering unit; 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 complexity cause test crash easily and cause and resurvey, thereby influence testing efficiency.
During (3) at the multi-platform multi-mode mobile terminal of test, need repeat the signaling process of above-mentioned testing encryption unit, therefore, the ciphering unit of 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 invention provides a kind of method and device of testing encryption unit, to simplify testing process, improve testing efficiency, reduce 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 described instruction, this encrypts the receiving terminal and the transmitting terminal short circuit of port, described 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 at each terminal platform, terminal to be measured is determined from described 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;
Terminal to be measured is determined the test result that ciphering unit is tested according to operation result, and feeds back described test result.
A kind of device of testing encryption unit comprises:
Receiver module is used to receive the instruction that is used to characterize the encryption port of opening ciphering unit, and according to described instruction, opens the encryption port of ciphering unit, and described 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 at each terminal platform, and terminal to be measured is determined from described 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 described test module operation, and feeds back described test result.
A kind of portable terminal, comprise: central processor CPU, the communication port that is connected with central processing unit, ciphering unit and be arranged on the encryption port of described ciphering unit, the transmitting terminal of described encryption port and receiving terminal short circuit, described ciphering unit comprises that at least one encrypted circuit and encrypted circuit are corresponding one by one with terminal platform, wherein:
Communication port is used to receive the instruction that is used to characterize the encryption port of opening ciphering unit, and according to described 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 described communication port receives test initiation command, at each terminal platform, from described 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 by moving this operation code of testing oneself to encrypting port; And determine 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 described central processing unit transmission, send a reply data to described 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 described instruction, open the encryption port of ciphering unit, this encrypts the transmitting terminal and the receiving terminal short circuit of port, and described 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 at each terminal platform, terminal to be measured is determined from described 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; Terminal to be measured is determined test result according to operation result, and feeds back described test result.Adopt technical solution 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 is at each terminal platform, only need can realize the test of encrypted circuit at local runtime the test oneself operation code corresponding with the ciphering unit of this terminal platform, thereby realize test to ciphering unit, do not need to realize the test of ciphering unit by 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 and need take long time delay, the raising testing efficiency; In addition, because having realized terminal to be measured tests ciphering unit in this locality, therefore, do not need to be connected between the encryption port of terminal to be measured and the equipment that is mounted with testing software, compared with prior art reduced terminal to be measured and be mounted with frock data wire between the equipment of testing software by 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 described instruction, opens the encryption port of ciphering unit, and described 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 at each terminal platform, terminal to be measured is determined from described 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; Terminal to be measured is determined test result according to operation result, and feeds back described test result.Adopt technical solution 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 does not need to realize the test of ciphering unit by communicating by letter repeatedly with the equipment that is mounted with testing software, thereby has simplified 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, do not need to be connected between the encryption port of terminal to be measured and the equipment that is mounted with testing software by the frock data wire, compared with prior art reduced terminal to be measured and be mounted with frock data wire between the equipment of testing software, reduced cost.
Below in conjunction with Figure of description technical solution of the present invention is described in detail.
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 communication port, and wherein: encrypt the transmitting terminal and the receiving terminal short circuit of port, communication port is connected by 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 following several terminal platform at least 2 kinds as terminal to be measured: the QSC6010 of high pass, QSC6020, QSC1100, QSC6085, the SC8800S of spreadtrum, SC8800H, a plurality of terminal platforms such as PXA270P, XA310 with the horse Weir, terminal to be measured comprises at least two kinds in following several communication pattern: communication patterns such as CDMA, TD, GSM, the ciphering unit of this terminal to be measured comprises a plurality of encrypted circuits, and 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 by encrypting the devices communicating at port and communication port, 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 described instruction, open the encryption port of ciphering unit, this encrypts the receiving terminal and the transmitting terminal short circuit of port, ciphering unit comprises at least one encrypted circuit, and encrypted circuit is corresponding one by one with terminal platform.
Step 202, terminal acceptance test enabled instruction to be measured, and at 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.
Step 203, terminal to be measured are determined the test result that ciphering unit is tested according to operation result, 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 by its place sends.Terminal to be measured is opened the encryption port of ciphering unit by communication port.
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 described 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 this locality, 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, terminal to be measured is determined test result according to operation result, specifically comprises:
When terminal to be measured is unit/terminal platform monotype, (terminal to be measured sends first test data by communication port 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 sends first test data by communication port to encrypted circuit, and can receive non-second test data from encrypting port), then test result is a test crash.
When described 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 as 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 determine 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 to work under the situation of the power supply of programmable power supply; When adopting programmable power supply to 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 by 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, chip 14PIN connector among this Fig. 4, the circuit that MAX3232 and DB9 are connected to form is used for the level conversion between coordinate conversion computer and the portable terminal, 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 for concrete annexation as shown in Figure 4, do not repeat them here.
Referring to Fig. 3, be the signaling process figure of testing encryption unit in the embodiment of the invention, this signaling process is at the portable terminal of unit/terminal platform monotype, and this signaling process comprises step:
Step 301, testing software send to serial ports by 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 by 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 by communication port to encrypting port by moving this operation code of testing oneself.
In this step, portable terminal moves the operation code of testing oneself of encrypted circuit correspondence by the central processing unit of inside.
Transmission data in this step can be one group of character string sequences that the software of testing software and terminal to be measured pre-defines.
The test data that step 304, encryption port receive sends a reply data by encrypting port to communication port through after the encrypted circuit.
Answer data in this step can be one group of character string sequences that the software of testing software and terminal to be measured pre-defines.
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 by communication port 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: by 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 determine encrypted circuit is tested successfully, otherwise determine the encrypted circuit test crash if identical.
Step 306, serial ports are transmitted to testing software with the test crash/successful notification message that receives.
At the multimodal portable terminal of multiple terminals platform, all need execution in step 303~304 at each terminal platform, when step 305, determine test result to ciphering unit according to the test result of the encrypted circuit of each terminal platform correspondence.
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 to testing mobile terminal ciphering unit in the embodiment of the invention is described in more detail below.
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, wherein: application layer, be used for realizing testing software choosing to 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 commands for controlling of the logic control of finishing 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 provide DC power supply etc. for portable terminal.
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 communication port of controlling terminal to be measured is opened the encryption port of the ciphering unit of this terminal to be measured.
Step 606, testing software send test initiation command by 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; Terminal to be measured is determined the test result that ciphering unit is tested according to operation result, 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 preserve this data file on the Local or Remote database server.
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 described instruction, opens the encryption port of ciphering unit, and described 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 at each terminal platform, and terminal to be measured is determined from described 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 described 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 described 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 described 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, determine to test successfully;
When described 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, determines 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 communication port 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:
Communication port 82 is used to receive the instruction that characterizes the encryption port 84 of opening ciphering unit 83, and according to described 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 communication port 82 receives test initiation command, at 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 by moving this operation code of testing oneself to encrypting port 84; And determine 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 determined 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 described 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,, determine that then operation result is successfully, otherwise determine 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 does not need to realize the test of ciphering unit by communicating by letter repeatedly with the equipment that is mounted with testing software, thereby has simplified the flow process of testing encryption unit, avoided communicating between the terminal and need take long time delay, the raising testing efficiency; And technical solution 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, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, 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 described instruction, this encrypts the receiving terminal and the transmitting terminal short circuit of port, described 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 at each terminal platform, terminal to be measured is determined from described 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;
Terminal to be measured is determined the test result that ciphering unit is tested according to operation result, and feeds back described test result.
2. the method for claim 1 is characterized in that, the corresponding operation code of testing oneself of the encrypted circuit that described 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 described operation code of testing oneself that terminal operating to be measured is determined.
3. the method for claim 1 is characterized in that, terminal to be measured is determined the test result that ciphering unit is tested according to operation result, specifically comprises:
When described 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, determine ciphering unit is tested success;
When described terminal to be tested is multiple terminals platform multi-mode,, determine 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, described terminal feedback test result to be measured is specially:
Described 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 is used to receive the instruction that is used to characterize the encryption port of opening ciphering unit, and according to described instruction, opens the encryption port of ciphering unit, and described 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 at each terminal platform, and terminal to be measured is determined from described 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 described test module operation, and feeds back described 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 described 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 described operation code of testing oneself determined of operation.
7. device as claimed in claim 5 is characterized in that, described test result feedback module is determined test result according to operation result, has particular application as:
When described terminal to be measured is a unit/terminal platform monotype, and the testing oneself during the operation code success of the encrypted circuit of described test module operation unit/terminal platform, determine ciphering unit is tested success;
When described terminal to be tested is a multiple terminals platform multi-mode, and the described test module operation code of testing oneself that moves the encrypted circuit of a plurality of terminal platforms all moves when successful, determines ciphering unit is tested success.
8. device as claimed in claim 7 is characterized in that, described 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 communication port that is connected with central processing unit, ciphering unit and be arranged on the encryption port of described ciphering unit, the transmitting terminal of described encryption port and receiving terminal short circuit, described ciphering unit comprises that at least one encrypted circuit and encrypted circuit are corresponding one by one with terminal platform, wherein:
Communication port is used to receive the instruction that is used to characterize the encryption port of opening ciphering unit, and according to described 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 described communication port receives test initiation command, at each terminal platform, from described 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 by moving this operation code of testing oneself to encrypting port; And determine 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 described central processing unit transmission, send a reply data to described central processing unit.
10. portable terminal as claimed in claim 9 is characterized in that, described central processing unit is determined 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 described expected data is used to characterize encrypted circuit;
Whether the answer data of judging described encryption port feedback are identical with the expected data of obtaining, if identical, determine that then operation result is successfully, otherwise determine 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 true CN101873622A (en) 2010-10-27
CN101873622B 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)

Cited By (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
CN104794052A (en) * 2015-04-01 2015-07-22 努比亚技术有限公司 Encryption display testing method and device
CN107483177A (en) * 2017-07-07 2017-12-15 郑州云海信息技术有限公司 A kind of method and system for verifying encryption device encryption data authenticity

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999063764A2 (en) * 1998-06-03 1999-12-09 Nokia Mobile Phones Ltd. Method and system for testing data channel functionality in a radio apparatus
US6738455B1 (en) * 1999-02-23 2004-05-18 Fujitsu Limited Apparatus and method for testing subscriber lines and equipment
EP1203294B1 (en) * 1999-07-19 2005-03-09 Tivo, Inc. Self-test electronic assembly and test system
CN1713658A (en) * 2004-06-15 2005-12-28 联想(北京)有限公司 Testing system and method for mobile telephones
US7076667B1 (en) * 1999-07-09 2006-07-11 Fujitsu Limited Storage device having secure test process
CN1862508A (en) * 2005-05-13 2006-11-15 中兴通讯股份有限公司 Automatic testing system of person digital aid cell phone function and method thereof
CN101009853A (en) * 2007-01-30 2007-08-01 中兴通讯股份有限公司 Automatic test system for handset single-plate and its method
US20090119217A1 (en) * 2007-11-07 2009-05-07 Samsung Electronics Co. Ltd. Digital rights management method and apparatus of mobile terminal
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN201360353Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Test system of mobile terminals

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999063764A2 (en) * 1998-06-03 1999-12-09 Nokia Mobile Phones Ltd. Method and system for testing data channel functionality in a radio apparatus
US6738455B1 (en) * 1999-02-23 2004-05-18 Fujitsu Limited Apparatus and method for testing subscriber lines and equipment
US7076667B1 (en) * 1999-07-09 2006-07-11 Fujitsu Limited Storage device having secure test process
EP1203294B1 (en) * 1999-07-19 2005-03-09 Tivo, Inc. Self-test electronic assembly and test system
CN1713658A (en) * 2004-06-15 2005-12-28 联想(北京)有限公司 Testing system and method for mobile telephones
CN1862508A (en) * 2005-05-13 2006-11-15 中兴通讯股份有限公司 Automatic testing system of person digital aid cell phone function and method thereof
CN101009853A (en) * 2007-01-30 2007-08-01 中兴通讯股份有限公司 Automatic test system for handset single-plate and its method
US20090119217A1 (en) * 2007-11-07 2009-05-07 Samsung Electronics Co. Ltd. Digital rights management method and apparatus of mobile terminal
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN201360353Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Test system of mobile terminals
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof

Non-Patent Citations (3)

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

Cited By (4)

* 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
CN104794052A (en) * 2015-04-01 2015-07-22 努比亚技术有限公司 Encryption display testing method and device
CN104794052B (en) * 2015-04-01 2018-01-19 努比亚技术有限公司 The method and device of encryption display test
CN107483177A (en) * 2017-07-07 2017-12-15 郑州云海信息技术有限公司 A kind of method and system for verifying encryption device encryption data authenticity

Also Published As

Publication number Publication date
CN101873622B (en) 2012-10-10

Similar Documents

Publication Publication Date Title
CN103037538B (en) Data transmission method and mobile terminal
EP2717632A2 (en) Apparatus and method for controling power in a short-range communication device
CN108040329A (en) The loading of eSIM modules and its subscription data and its management method
CN102917095A (en) Method and device for testing terminal based on Android
CN105430108A (en) Test environment accessing method and proxy server
JP4336822B2 (en) Network device test system and network device test method
CN105827600A (en) Method and apparatus for logging in client
CN101873622B (en) Method and device for testing encryption unit
CN105828369A (en) Mobile terminal testing apparatus and scenario information setting method
US9491166B2 (en) Apparatus and method for authenticating smart card
CN1591336B (en) Method for simulating computer keyboard or mouse operation
CN106856585A (en) Set up the method and device of short-distance wireless passage
CN108833443A (en) A kind of method for message transmission and system, computer equipment
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
CN107505929B (en) Configuration method and device of vehicle controller and vehicle
US20200169335A1 (en) Mobile terminal testing device, mobile terminal testing system, and testing method of nsa
CN109975624B (en) Test system and test method
CN103376369A (en) Test method and test apparatus of communication load
CN105472125A (en) Information processing method and electronic device
CN102791015A (en) Base station device, wireless communication system and method
CN101221607B (en) Mobile memory device and its authentication and information downloading method
CN107302538B (en) Sub-equipment encryption method and device for data received by AP (Access Point) of Internet of things
CN105095005A (en) Fault starting method and device

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

Granted publication date: 20121010

Termination date: 20200629

CF01 Termination of patent right due to non-payment of annual fee