Summary of the invention
The technical problem to be solved in the present invention provides a kind of compatibility test method of subscriber identification module tool kit card, test job can be transferred on the computer and be finished, and makes and tests more efficient quick.The present invention also will provide a kind of realization system for carrying out said process.
In order to solve the problems of the technologies described above, the invention provides a kind of compatibility test method of subscriber identification module tool kit card, may further comprise the steps:
(a) set up an analogue system, comprise intelligent card read/write device, subscriber identification module tool kit card to be tested, be mounted with standard agreement storehouse and analogue mobile phone terminal and network communication functional module at the certain characteristics protocol library of different mobile phone terminals;
(b) after initialization was finished between described analogue mobile phone terminal and the SIM card to be tested, the tester operated the subscriber identification module tool kit menu, and record is carried out in operation, and operational order is sent to described SIM card to be tested, receives the data that it returns;
(c) described analogue mobile phone terminal uses currently used protocol library, analyzes return data and judges whether to relate to network operation, if do not relate to, the content that record returns is returned step (b) and waited for next operation; If relate to,, carry out next step to described network communication module transmit operation instruction;
(d) described network communication module is finished associative operation, and the result is turned back to described analogue mobile phone terminal, and described analogue mobile phone terminal writes down and beam back SIM card to be tested to the content of returning;
(e) tester continues operation, and up to the test of finishing once complete business, described analogue mobile phone terminal writes down all operations process of this time test and the content of returning by the same manner;
(f) select the new features protocol storehouse that will use when Pretesting for use, the operation note of manual testing's process is imported described analogue mobile phone terminal and is reset automatically with the first time, and write down the content of returning, finish of the compatibility test of described SIM card to be tested with this corresponding mobile phone terminal in features protocol storehouse;
(g) select the features protocol storehouse that to test successively,, finish of the compatibility test of described SIM card to be tested to each mobile phone terminal according to the record of testing playback and test result with quadrat method.
Further, above-mentioned compatibility test method can have following characteristics: the record to described operation is realized by macro-instruction.
Further, above-mentioned compatibility test method can have following characteristics: described first time is to select to use the standard agreement storehouse during manual testing.
Further, above-mentioned compatibility test method can have following characteristics: described analogue mobile phone terminal also shows on screen the result of operation each time.
Further, above-mentioned compatibility test method can have following characteristics: the result that described network communication module is returned comprises: MT calls out, calls out connection, calls out a kind of or combination in any in disconnection, location status, secondary short message and the positional information.
Further, above-mentioned compatibility test method can have following characteristics: the tester carries out the relevant operation of aerial download technology, after described analogue mobile phone terminal is received the corresponding operating instruction of described SIM card to be tested, judge whether to be in real network operation earlier, if, operational order is sent to the network communication module, otherwise directly give the aerial Download Server of simulation, organize return data according to predetermined protocol by this server.
The compatibility test system of a kind of subscriber identification module tool kit card provided by the invention, comprise intelligent card read/write device, insert the subscriber identification module tool kit card to be tested of this intelligent card read/write device, it is characterized in that, also comprise the analogue mobile phone terminal that is connected with intelligent card read/write device, and can with the network communication functional module of this analogue mobile phone terminal interactive communication, wherein:
Described analogue mobile phone terminal is used to realize simulation, the record to the subscriber identification module tool kit business operation and reset automatically, operational order is handed down to described SIM card to be tested, receive and the record return results, and the instruction that will wherein relate to network operation submits to described network communication module, receives, writes down its result who returns and be issued to described SIM card to be tested;
The operational order relevant with network operation that described network communication functional module is used for sending according to analogue mobile phone terminal finished corresponding network operation, and the result of the monitor event that takes place is returned to described analogue mobile phone terminal.
Further, above-mentioned compatibility test system can have following characteristics: described analogue mobile phone terminal further comprises protocal analysis processing unit, instruction manipulation unit, communication interface unit, protocol library, test trace and playback unit and test result record cell, wherein:
Described protocal analysis processing unit, the standard agreement storehouse or the features protocol storehouse that are used for the invocation protocol storehouse, is the instruction that described SIM card to be tested can be discerned with user's operation by protocol translation, whether compliant is analyzed to data that described SIM card to be tested is returned, and processing be converted into this analogue mobile phone terminal can the recognition data structure;
Described instruction manipulation unit is used for after the user has carried out once effectively operation, and the instruction that the invocation protocol analysis and processing unit can be discerned user's operation for the STK card according to protocol translation issues;
Described communication interface unit is used to realize the bi-directional of information between this analogue mobile phone terminal and described SIM card to be tested, the network communication module;
Described protocol library has comprised the protocol library of standard and the individual features protocol library of the constructional difference of described subscriber identification module tool kit card agreement being set up according to each mobile phone terminal;
Described test trace and playback unit are used for and will set up the macro-instruction set of user's operation, and utilize these test records to reset, and previous operation is re-executed automatically;
Described test result record cell is used for obtaining and write down the content that each operation is returned the test from the protocal analysis processing unit.
Further, above-mentioned compatibility test system can have following characteristics: described analogue mobile phone terminal also comprises features protocol storehouse selected cell, can be set to select protocol library according to the order of sequence, also can be set to from a plurality of features protocol storehouse, select the features protocol storehouse that to use when Pretesting by the tester by system.
Further, above-mentioned compatibility test system can have following characteristics: described analogue mobile phone terminal also comprises the instruction display unit, be used to provide operation required graphical interfaces, after receiving the data that the protocal analysis processing unit processes, on screen, show the information that described SIM card to be tested is returned.
Further, above-mentioned compatibility test system can have following characteristics: described communication interface unit comprises the PC/SC interface that is connected with described intelligent card read/write device, and the Inter-Process Communication interface that is connected with described network communication module.
Further, above-mentioned compatibility test system can have following characteristics: also comprise the aerial Download Server of simulation and embedded data monitoring module in described analogue mobile phone terminal, described data monitoring module is used for after finding that the relevant instruction of aerial down operation is arranged, judge whether to be in real network operation, if, instruction is sent to the network communication module, otherwise directly give the aerial Download Server of simulation; The aerial Download Server of described simulation is used for organizing downlink data according to predetermined protocol after receiving corresponding request, returns to described analogue mobile phone terminal.
As from the foregoing, the invention provides the automation solution of STK/UTK card compatibility test, traditional test job that utilizes mobile phone terminal to carry out transferred on the computer finish, reduced degree of dependence, make test more efficient faster the real handset terminal.
Embodiment
As shown in Figure 1, be the functional block diagram of embodiment of the invention STK card compatibility test macro.This system by intelligent card read/write device, insert this intelligent card read/write device SIM card to be tested, use analogue mobile phone terminal (realizing) that the PC/SC interface is connected with intelligent card read/write device and the network communication functional module that can communicate by letter with analogue mobile phone terminal to form with software.
Analogue mobile phone terminal further comprises protocal analysis processing unit, STK instruction display unit, STK instruction manipulation unit, PC/SC interface, Inter-Process Communication interface, protocol library, test trace and playback unit and test result record cell.Wherein:
The protocal analysis processing unit, the standard or the features protocol storehouse that are used for the invocation protocol storehouse, is that the APDU instruction that described SIM card to be tested can be discerned is handed down to the STK card with user's operation by protocol translation, whether compliant is analyzed also to be used for data that the STK card is returned, and can the recognition data structure process conversion according to its purpose according to analogue mobile phone terminal.This unit also can further be subdivided into: standard agreement interpretation of result subelement is used for carrying out analyzing and processing according to the agreement of standard GSM11.14; And features protocol processing subelement, be used for carrying out personalisation process according to the features protocol storehouse of each mobile phone terminal.It is noted that when handled instruction analysis in the invocation protocol storehouse, the standard agreement storehouse must be used, and the features protocol storehouse is optionally, and calls at every turn and can only select one.
STK instructs display unit, and the graphical interfaces that provides operation required is provided, and shows the information of STK card return data after receiving the data that the protocal analysis processing unit processes on screen.
STK instruction manipulation unit is used for after the user has carried out once effectively operation, and the APDU instruction that the invocation protocol analysis and processing unit can be discerned user's operation for the STK card according to protocol translation is handed down to SIM card to be tested.
The PC/SC interface is used for realizing the communication between the SIM card to be tested of analogue mobile phone terminal and intelligent card read/write device.
The Inter-Process Communication interface is used for carrying out the bi-directional of information by the communication between process with the network communication module, concrete is on computers with the network communication module in the network interaction module carry out communication.
Protocol library, the GSM11.14 protocol library of standard and the features protocol storehouses of the constructional difference of STK card agreement being set up according to each mobile phone terminal (as the mobile phone terminal of Motorola, Nokia, Siemens or the like different model) have been comprised at GSM11.14, the particularity of mobile phone terminal aspect STK is imitated in these features protocol storehouses fully, such as: input, order support etc.The Partial Feature storehouse can be set up according to the experience of test process accumulation in the features protocol storehouse, goes the Partial Feature of testing mobile phone terminal again by the program of special use, improves feature database; Perhaps set up cooperation, common foundation, maintenance features protocol library with mobile phone terminal manufacturer.
Test trace and playback unit are used for and will set up the macro-instruction set of user's operation, and can utilize these test records to reset, and previous operation is re-executed automatically.
The test result record cell is used for obtaining and write down each result data of operating the test from the protocal analysis processing unit.
As shown in Figure 3, the network interaction module that the network communication functional module is further realized by software, the mobile phone terminal that is inserted with the SIM card of special COS (CPU card operation system) are formed, the operational order relevant with network operation (as breathing out, sending short messages) that is used for according to analogue mobile phone terminal finished corresponding network operation, and the monitor event result (as incoming call, receipts note) who takes place is returned to analogue mobile phone terminal.Wherein:
The network interaction module comprises that mainly Inter-Process Communication interface, AT instruction send receiving element, information translation unit and information query unit.Wherein:
Described Inter-Process Communication interface is used for realizing by the communication between process the bi-directional of network interaction module and simulated operation intermodule information.
The information organization that AT instruction transmission receiving element is used for that the data structure that the simulated operation module is sent is comprised is the AT instruction, adds the upstream message formation; Finish and mobile phone between the transmission and the reception of AT instruction, and will be converted into the APDU form from the AT instruction that mobile phone receives, the formation of adding downstream message.This unit internal maintenance the uplink and downlink directions two the cover message queues, need carry out certain coordination with the transmission of between network operation module and simulated operation module, carrying out data.In the present embodiment, the AT instruction interaction between network interaction module and the mobile phone realizes that by wired mode interface is USB interface or serial data interface commonly used, in fact also can be by interfaces such as infrared rays.
The information translation unit is used for being responsible for the simulated operation module is interested and the unsupported information of standard A T instruction (wishing to obtain the secondary short message that mobile phone receives as the Simulation execution module) becomes standard A T instruction according to standard A T code conversion, make it is to have received a discernible AT instruction for mobile phone, and the expansion AT instruction that is used for mobile phone is returned is decoded.
Information query unit is used for sending the AT instruction to mobile phone termly, the information that state that the inquiry mobile phone is current and the SIM card of special COS receive.
The SIM card of special COS has increased information temporary storage unit, AT instruction codec unit and instruction monitoring unit on the basis of the SIM card unit of standard, wherein:
The information that the event-monitoring that the information temporary storage unit is used for that mobile phone is sent is notified is carried out record, is temporarily stored in the incident buffer area of SIM card, waits for the inquiry of network interaction module.
AT instruction codec unit is used for the information of buffer area is encoded, and makes it the structure of conformance with standard AT instruction, and the AT instruction that is used for expansion that information translation unit coding is obtained is decoded.In this way, for mobile phone the return results of the AT instruction of a standard with original some information of not discerned on the SIM card by standard A T instruction.
Usually, employing is carried out new coding to ADN on the SIM card and SMS, why the content of ADN and SMS being carried out new coding mainly is that their effect is more special, the function that couple ADN and SMS operation are arranged in the AT instruction, the AT instruction that sends downwards by computer is for example read ADN and finally can be delivered on the SIM card like this, and the information that SIM card will be blocked buffer memory returns to mobile phone according to specific coding as the result that reads of ADN.It thinks it is an ADN for mobile phone, so again content is sent back to computer.
The instruction monitoring unit, the instruction that is used for all are issued SIM card is monitored, and after finding that the incident that need return the STK artificial card is arranged, they is deposited in the incident buffer area; When finding that the network interaction module is inquired about the information of current SIM card by the AT instruction, the call instruction codec unit; When the APDU instruction that issues does not belong to above-mentioned situation, change the normal handling flow process over to.
The workflow of introducing the network communication functional module below earlier is introduced.When operation relates to network function when (as calling out, receive and dispatch note, download etc.), analogue mobile phone terminal by the communication between process with information informing network interactive module, the network interaction module passes to mobile phone by AT instruction again, by mobile phone (in be inserted with special COS SIM card) information is sent on GSM or other communication networks.Set up between the SIM card of special COS and the mobile phone note, the monitoring of incidents such as speech, in case there is corresponding event to take place, as incoming call, receive note or data download etc., mobile phone can be notified the SIM card of the special COS in the mobile phone immediately, the SIM card of special COS is carried out buffer memory to information, after the AT instruction of receiving the inquiry that the network interaction module regularly sends, with the information via in the buffer area according to the call format of AT repeat-back encode the AT of expansion (can be understood as instruction), then information is sent to the network interaction module, the information that the network interaction module obtains also sends back analogue mobile phone terminal by the communication between process.
Particularly, behind mobile phone power-on, the SIM card of special COS receives mobile phone and sends and return Terminal Profile after the Terminal Profile instruction of getting off and reply, propose then to comprise the incident that needs the information used from now on (as MT call out, call out connect, call out disconnections, location status etc.) request of proposition event-monitoring, mobile phone returns event-monitoring foundation and replys, and finishes initialization; Simultaneously, the SIM card of this special COS resetting power on after, in card, open up an incident buffer area, the incident that is used for mobile phone is issued is carried out buffer memory, because the network interaction module can not guarantee immediately this incident to be taken away after incident is downloaded;
On up direction, after the network interaction module is received the operational order that relates to network, it is joined the upstream message formation of network interaction module, carry out code conversion in case of necessity, wait for suitable opportunity and call that the AT instruction sends to mobile phone (being inserted with SIM card), the SIM card of mobile phone and special COS is finished function corresponding by normal flow, as sending note, calling out or the like;
On down direction:
A, mobile phone after having corresponding monitor event (call out, call out connection, call out disconnection, location status, secondary short message, positional information or the like as MT) can notify SIM card when taking place get up this chain of events buffer memory;
B, regularly by the response of AT instruction inquiry monitoring mobile phone incident, mobile phone is converted to the SIM card that is handed down to special COS after APDU instructs to the network interaction module;
C, after SIM card is received inquiry AT instruction, in the incident buffer area, search, if have, then with incident by the requirement of the AT repeat-back form packing of encoding, return data is given mobile phone, makes data behind the coding think the response of AT instruction that previous transmission is got off to mobile phone, and mobile phone sends to the network interaction module by inquiry AT repeat-back again;
D, the return results that the network interaction module is instructed AT is reduced to the APDU instruction, and (this conversion also can be finished by the unit of simulated operation module, effect is equal to), add the downstream message formation, send to analogue mobile phone terminal on suitable opportunity by the communication interface between process.
The flow process of embodiment of the invention STK card compatibility method of testing may further comprise the steps (specific operation process of introducing the network communication functional module in this step no longer in detail):
Step 1, set up an analogue system, by intelligent card read/write device, insert this intelligent card read/write device SIM card to be tested, use analogue mobile phone terminal that the PC/SC interface is connected with intelligent card read/write device and the network communication functional module that can communicate by letter with analogue mobile phone terminal, in the protocol library of analogue mobile phone terminal, articulate the GSM11.14 protocol library and the certain characteristics protocol library of standard;
Step 2, finish the initialization of STK menu between analogue mobile phone terminal and the STK card to be measured, wait for that the tester operates the STK menu on the screen, after the operation, write down the button operation of this simulation in the macro-instruction mode, operational order is sent to the STK card and receives the data that it returns;
Step 3, analogue mobile phone terminal are called the standard agreement storehouse, analyze the data that the STK card returns, update displayed, and judge whether to relate to network operation, if do not relate to, the result that record returns returns step 2 and waits for next operation; If relate to, send associative operation information to the network communication module, carry out next step;
Step 4, after the network communication module is finished associative operation, with the result of operation or the external event of monitoring (as, MT calls out, call out connect, call out disconnection, location status, secondary short message and positional information etc.) turn back to analogue mobile phone terminal, analogue mobile phone terminal shows on screen, information reverting is become the discernible APDU instruction of STK card, write down and be sent back to the STK card;
Step 5, the tester continues operation, and up to the test of finishing a complete business of STK card, analogue mobile phone terminal is noted all operating process and the result who returns by the same manner, finishes primary manually-operated test process;
Step 6, (can sort in the features protocol storehouse that system selects a test to use, select according to the order of sequence), the operation note of manual testing's process is input in the analogue mobile phone terminal and resets automatically with the first time, and the content that turns back to analogue mobile phone terminal carried out record, finish compatibility test to the STK card mobile phone terminal corresponding with this features protocol storehouse;
Step 7 is selected the features protocol storehouse that need test successively, according to testing the record of playback and test result with quadrat method, thereby finishes the compatibility test of this STK card to each mobile phone terminal.
The operating process of the embodiment of the invention is described with the application example of a test below.Suppose that SIM card to be tested is the M-ZONE card, its simple and easy menu structure comprises call business as shown in Figure 2, short message on-demand service, OTA (aerial download technology) business etc.In addition, Chinese-English Dictionary requires the user to import Chinese character, may have compatibility issue here for different mobile phone terminals.For example: NOKIA3330 does not support input in Chinese in the STK menu.
Be ready to analogue mobile phone terminal and network communication module, test card is put into intelligent card read/write device and determined to have connected network, after the test beginning, by manually carrying out the first pass operation, the mobile phone terminal model of analogue mobile phone terminal is selected " standard ", promptly use standard agreement interpretation of result unit, utilize all functions on the test card, carry out following operation:
1) select " Chinese-English Dictionary " business, input " hello " sends message search, the STK card sends and sends the note instruction, tell mobile phone terminal after analogue mobile phone terminal is received, mobile phone terminal returns event result after finishing and sending note, is shown and is write down corresponding returned content by analogue mobile phone terminal;
If network side has returned note, mobile phone terminal receives that the notice analogue mobile phone terminal is fetched note after the note, is shown and is write down corresponding returned content by analogue mobile phone terminal;
2) select " weather forecast " business, input " 010 " sends message search, and this process is similar suddenly to previous step, writes down corresponding returned content by analogue mobile phone terminal;
3) select " menu management ", utilize the deletion menu option, will " weather forecast " professional deletion, information that this operation is returned by analogue mobile phone terminal record STK card and the information of deleting to OTA server transmission menu;
4) select " menu management ", utilize the download menu option, " weather forecast " business is downloaded.The up process of this step with send short messages identically, whether down direction has return results by analogue mobile phone terminal to network communication module inquiry, if find data retrieval and show and record, inquires about if do not find then continues;
5) select IP telephone service, import a strange land telephone number, carry out call operation.The STK card sends call instruction, tells mobile phone terminal after analogue mobile phone terminal is received, after mobile phone terminal is finished calling, event result is returned, and is shown and is write down corresponding returned content by analogue mobile phone terminal.
More than 5 step operations finished calling, the transmitting-receiving note, OTA downloads the first pass test job of three links relevant with network operation.
Then, test record is imported analogue mobile phone terminal, select mobile phone terminal model " NOKIA3330 ", promptly except that using standard agreement interpretation of result unit, also use personalized protocol processing unit, use automatic operation (playback) function of analogue mobile phone terminal this moment.
At first, can select " Chinese-English Dictionary " business automatically, input " hello ", after determining, owing to used the feature database of NOKIA3330, and this mobile phone terminal do not support input in Chinese, and this moment, analogue mobile phone terminal can report an error, this business can't be finished on this mobile phone terminal, and analogue mobile phone terminal can carry out record with the result.Follow-up operation is identical with manual operation for the first time, just automatically performs.
Like this, only need manually carry out a complete operation, analogue mobile phone terminal just can carry out replay operations fully in the same way according to test record on different mobile phone terminals.Need carry out the compatibility test of 50 mobile phone terminals such as you, analogue mobile phone terminal just can be according to mobile phone terminal feature database that has contained and the operation of your first pass, automatically finish the compatibility test of these 50 mobile phone terminals, and the outcome record of compatibility is got off.
In sum, the invention provides the automation solution of STK card compatibility test, traditional test job that utilizes mobile phone terminal to carry out is transferred on the computer finished, reduced degree of dependence, make test more efficient faster the real handset terminal.System and method of the present invention also is applicable to the compatibility test of the UTK card that uses at cdma system fully, and the functional module of use is identical.
For over-the-air function, the analogue system of embodiment is to adopt real network operation, but also can adopt the virtual network operation or select a kind of from dual mode according to configuration.Under the situation that can select real net or empty net, can be in analogue mobile phone terminal an embedded data monitoring module, after finding that the relevant data of OTA operation are arranged, judge whether to be in real network operation, if operational order is sent to the network communication module by the embodiment flow process; If the OTA server of simulation is then directly given in the virtual network operation, the OTA server is organized downlink data according to predetermined protocol after receiving corresponding request, sends to analogue mobile phone terminal.
In addition, also can increase a features protocol storehouse selected cell at analogue mobile phone terminal, can be set to select protocol library according to the order of sequence, also can be set to from a plurality of features protocol storehouse, select the features protocol storehouse that to use when Pretesting, have more flexibility like this by the tester by system.