WO2020192520A1 - 终端测试方法、装置和终端测试系统 - Google Patents

终端测试方法、装置和终端测试系统 Download PDF

Info

Publication number
WO2020192520A1
WO2020192520A1 PCT/CN2020/079920 CN2020079920W WO2020192520A1 WO 2020192520 A1 WO2020192520 A1 WO 2020192520A1 CN 2020079920 W CN2020079920 W CN 2020079920W WO 2020192520 A1 WO2020192520 A1 WO 2020192520A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
channel
card channel
terminal
smart card
Prior art date
Application number
PCT/CN2020/079920
Other languages
English (en)
French (fr)
Inventor
宋坤贤
郑任持
陈修良
黄小宇
Original Assignee
百富计算机技术(深圳)有限公司
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 百富计算机技术(深圳)有限公司 filed Critical 百富计算机技术(深圳)有限公司
Priority to US17/769,080 priority Critical patent/US20240104313A1/en
Publication of WO2020192520A1 publication Critical patent/WO2020192520A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0095Testing the sensing arrangement, e.g. testing if a magnetic card reader, bar code reader, RFID interrogator or smart card reader functions properly

Definitions

  • This application relates to the field of testing technology, and in particular to a terminal testing method, device and terminal testing system.
  • POS Point of Sale
  • point of sale also known as point of sale
  • Users only need to insert a smart card into the POS or put it in the induction area of the POS. The payment operation can be completed.
  • the POS machine is a multifunctional terminal with functions such as support for consumption, pre-authorization, balance inquiry and transfer.
  • multiple smart cards need to be used to test the POS machine.
  • a mechanical arm is usually used to switch the smart card for the POS to read and write data.
  • the robotic arm needs to continuously insert or remove the smart card into or out of the POS machine, or move the smart card, which consumes a lot of time, resulting in low test efficiency.
  • a terminal testing method includes:
  • the target card channel corresponding to the card channel identifier is a contactless card channel, switching the connected card channel to the target card channel corresponding to the card channel identifier;
  • the response data is sent to the terminal through the second relay repeater to complete the terminal test.
  • a terminal testing device characterized in that the device includes:
  • Switch receiving module for receiving smart card switching instructions
  • An identification acquiring module configured to acquire a card channel identification from the smart card switching instruction
  • a channel switching module configured to switch the connected card channel to the target card channel corresponding to the card channel identifier when the target card channel corresponding to the card channel identifier is a contactless card channel;
  • Request receiving module for receiving data requests for terminal testing
  • a data acquisition module configured to acquire response data for the data request in the smart card to be tested in the target card channel through the first repeater
  • the data sending module is used to send the response data to the terminal through the second relay repeater to complete the terminal test.
  • a terminal testing system comprising: a terminal, a main control machine, a first repeater and a second repeater;
  • the terminal is used to send smart card switching instructions and data requests for terminal testing
  • the main control machine receives a smart card switching instruction; obtains a card channel identifier from the smart card switching instruction; when the target card channel corresponding to the card channel identifier is a contactless card channel, switch the connected card channel to all The target card channel corresponding to the card channel identification; receiving a data request for terminal testing;
  • the first relay repeater is configured to obtain response data for the data request in the smart card to be tested in the target card channel and send it to the main control machine;
  • the second relay repeater is configured to send the response data forwarded by the master control machine to the terminal to complete the terminal test.
  • a computer device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the following steps when the processor executes the computer program:
  • the target card channel corresponding to the card channel identifier is a contactless card channel, switching the connected card channel to the target card channel corresponding to the card channel identifier;
  • the response data is sent to the terminal through the second relay repeater to complete the terminal test.
  • a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
  • the target card channel corresponding to the card channel identifier is a contactless card channel, switching the connected card channel to the target card channel corresponding to the card channel identifier;
  • the response data is sent to the terminal through the second relay repeater to complete the terminal test.
  • the above terminal test method, device and terminal test system obtain the card channel identifier from the received smart card switching instruction; the card channel identifier corresponds to a card channel and each card channel has a smart card; when the card channel identifier corresponds to the target card When the channel is a contactless card channel, the connected card channel is automatically switched to the target card channel corresponding to the card channel identification.
  • the smart card can be automatically switched without moving the card, saving the time of smart card switching.
  • the data request for terminal testing is received, the response data for the data request is read from the smart card under test in the target card channel through the first repeater, and the response data is sent to the second repeater
  • the terminal realizes the data interaction between the terminal and the smart card to be tested to complete the test task. Since there is no need to insert and remove the card during the test, the test time is effectively reduced and the test efficiency is greatly improved.
  • Figure 1 is an application environment diagram of a terminal test method in an embodiment
  • Figure 2 is a schematic flowchart of a terminal testing method in an embodiment
  • FIG. 3 is a schematic flowchart of the steps of determining whether a test is being performed in an embodiment
  • FIG. 4 is a schematic flowchart of the steps of switching the connected card channel in an embodiment
  • FIG. 5 is a schematic flowchart of the steps of detecting a smart card in an embodiment
  • FIG. 6 is a schematic flowchart of the steps of obtaining response data in an embodiment
  • FIG. 7 is a schematic flowchart of the steps of switching the working state of the status indicator in an embodiment
  • Figure 8 is a structural block diagram of a terminal testing device in an embodiment
  • Figure 9 is a functional block diagram of a terminal test system in an embodiment
  • Figure 10 is a schematic diagram of a non-contact switching circuit in an embodiment
  • Figure 11 is a schematic diagram of a contact switching circuit in an embodiment
  • Figure 12 is a schematic diagram of a terminal test case in an embodiment
  • Figure 13 is an internal structure diagram of a computer device in an embodiment.
  • the terminal test method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the main control machine 102 communicates with the first repeater 104 and the second repeater 106 through a serial port.
  • the main control machine 102 can be, but is not limited to, various industrial computers, personal computers and notebook computers;
  • the first repeater can interact with a contactless smart card through NFC (near field communication);
  • second The repeater can interact with the non-contact card reading area of the terminal through NFC, and the non-contact card reading area can be an NFC card reader.
  • a terminal testing method is provided. Taking the method applied to the main control machine 102 in FIG. 1 as an example for description, the method includes the following steps:
  • Step 202 Receive a smart card switching instruction.
  • the smart card switching instruction may be an instruction instructing the main control computer to switch smart cards.
  • Smart card also known as IC (Integrated Circuit) card
  • Smart cards include contact smart cards and contactless smart cards.
  • the smart card can be a bank card
  • the bank card can be an EMV (EuropayMasterCardVisa) card that meets the EMV standard; the EMV standard is shared by the three major international bank card organizations-Europay (European Card), MasterCard (MasterCard) and Visa (Visa) Initiated the development of technical standards for the transfer of bank cards from magnetic stripe cards to smart cards.
  • EMV EuropayMasterCardVisa
  • the terminal in the terminal test system generates a smart card switching instruction, and sends the smart card switching instruction to the main control computer in the terminal test system through the network or the serial port.
  • the master control machine receives the smart card switching instruction sent by the terminal.
  • the terminal may be a POS machine, which may be a traditional POS machine or a smart POS machine; the POS machine may support a contact smart card or a contactless smart card.
  • the master computer receives the smart card switching instruction from the host computer.
  • the upper computer is used to generate smart card switching instructions and send the smart card switching instructions to the main control computer.
  • the upper computer can be a terminal, that is, a POS machine, or a third-party computer.
  • Step 204 Obtain the card channel identifier from the smart card switching instruction.
  • the card channel ID is the ID of the card channel, which can be the number of the card channel; the number of the card channel can be a combination of letters, numbers, and special symbols.
  • the cartoon channel can be a circuit structure where a smart card is placed.
  • the master computer parses the smart card switching instruction, and obtains the card channel identifier from the parsed smart card switching instruction.
  • the card channel identifier There are multiple card channels in the terminal test system, each card channel corresponds to a unique card channel identifier, and each card channel has a smart card.
  • the cartoon channel includes a contactless card channel and a contact card channel.
  • the smart card in the contactless card channel is a contactless smart card
  • the smart card in the contact card channel is a contact smart card.
  • non-contact smart cards are also called radio frequency cards. They do not need to make physical contact with the surface of the reader. They can interact with the reader through the transmission of radio waves within a certain range; contact smart cards require physical contact with the reader surface.
  • the card channel identifier is pre-stored in the master control machine, and after receiving the smart card switching instruction, the master control machine acquires a card channel identifier from the card channel identifier according to a preset card channel identifier acquisition method.
  • Step 206 When the target card channel corresponding to the card channel identifier is a contactless card channel, switch the connected card channel to the target card channel corresponding to the card channel identifier.
  • the connected card channel may be a card channel that has been connected to the main control machine.
  • the target card channel may be the card channel corresponding to the card channel identifier.
  • the card channel identifier can distinguish whether the card channel is a contactless card channel or a contact card channel, and can also uniquely characterize a certain card channel in the terminal test system.
  • the main control computer determines that the target card channel corresponding to the card channel identifier is a contactless card channel, it triggers a contactless card channel switching instruction.
  • the main control computer controls the non-contact switching circuit according to the non-contact card channel switching instruction, and switches the connected card channel to the target card channel corresponding to the card channel identifier.
  • the host controller first determines whether to switch to a contactless card channel or a contact card channel according to the card channel identification, and then switches the connected card channel to the target card channel corresponding to the card channel identification according to the card channel identification .
  • Step 208 Receive a data request for terminal testing.
  • the data request may be a request for data interaction with the smart card to be tested in the card channel.
  • the terminal After the host computer switches the connected card channel to the target card channel corresponding to the card channel identifier, the terminal generates a data request for terminal testing, and can send the generated data request to the host computer through the network or serial port.
  • the master computer receives the data request sent by the terminal.
  • the data request may be at least one of operations such as payment, pre-authorization, balance inquiry, and transfer.
  • Step 210 Obtain response data for the data request in the smart card to be tested in the target card channel through the first relay repeater.
  • the first relay repeater is a component that performs data interaction with the contactless smart card in the terminal test system.
  • the response data may be data obtained by the first relay repeater from the smart card to be tested according to the data request.
  • the smart card to be tested is a contactless smart card and is placed in the card channel corresponding to the first repeater.
  • the main control machine After receiving the data request, the main control machine sends the data request to the first repeater in the target card channel.
  • the first repeater obtains response data from the smart card to be tested, and sends the obtained response data to the main control computer.
  • the main control machine receives the response data sent by the first repeater.
  • Step 212 Send the response data to the terminal through the second relay repeater to complete the terminal test.
  • the second relay repeater is an element that performs data interaction with the terminal in the terminal test system.
  • the main control machine After obtaining the response data from the first repeater, the main control machine sends the response data to the second repeater.
  • the second relay repeater receives the response data sent by the main control machine and sends the response data to the terminal.
  • the terminal test is completed.
  • the terminal regenerates the smart card switching instruction and sends the smart card switching instruction to the main control machine to perform The next round of terminal testing.
  • the card channel identifier is obtained from the received smart card switching instruction; the card channel identifier corresponds to a card channel and each card channel has a smart card; when the target card channel corresponding to the card channel identifier is a contactless card When the channel is connected, the connected card channel is automatically switched to the target card channel corresponding to the card channel identification.
  • the automatic switching of the smart card can be realized without moving the card, saving the time of smart card switching.
  • the data request for terminal testing is received, the response data for the data request is read from the smart card under test in the target card channel through the first repeater, and the response data is sent to the second repeater
  • the terminal realizes the data interaction between the terminal and the smart card to be tested to complete the test task. Since there is no need to insert and remove the card during the test, the test time is effectively reduced and the test efficiency is greatly improved.
  • step 202 a step of determining whether a test is being performed is further included, and this step specifically includes the following steps:
  • Step 302 Determine whether the terminal is being tested through the smart card.
  • the master control machine when the master control machine receives the smart card switching instruction, it first checks the current process to determine whether the master control machine is testing the terminal through the smart card.
  • Step 304 When it is determined that the terminal is being tested through the smart card, stop the test on the terminal.
  • the command issued by the terminal or host computer has the highest priority.
  • the host computer determines that the terminal is being tested through the smart card, it triggers a test stop instruction, and stops the current test of the terminal according to the test stop instruction.
  • Step 306 After stopping the test on the terminal, obtain the card channel identifier from the smart card switching instruction.
  • the card channel identifier is obtained from the obtained smart card switching instruction.
  • the master control machine when the master control machine receives the smart card switching instruction, if the master control machine is testing the terminal through the smart card, an interrupt instruction is triggered, and the current test of the terminal is suspended according to the interrupt instruction; when the master control machine switches according to the smart card After the command completes the terminal test, return to the interrupted test.
  • step 206 specifically further includes a step of switching the connected card channel, and this step specifically includes the following steps:
  • Step 402 Query the channel switching mode corresponding to the card channel identifier in the preset channel switching list.
  • the preset channel switching list may be a list recording the channel switching modes of the connected card; the channel switching mode may be a mode in which the master control machine switches the connected card channel to the target card channel.
  • a preset channel switching list is stored in the master control machine, and the channel switching mode is recorded in the preset channel switching list.
  • the main control computer obtains the stored preset channel switching list and card channel identification, queries the acquired card channel identification in the preset channel switching list, and extracts the channel switching mode corresponding to the inquired card channel identification.
  • Step 404 Adjust the level value in the non-contact switching circuit according to the inquired channel switching mode.
  • the non-contact switching circuit may be a circuit that performs non-contact card channel switching in the terminal test system.
  • the channel switching mode may be a mode in which the master control machine adjusts the level value of the non-contact switching circuit. After the main control computer finds the channel switching mode corresponding to the card channel identification, it adjusts the level value of the control terminal of the non-contact switching circuit according to the channel switching mode.
  • Step 406 Switch the connected card channel to the target card channel corresponding to the card channel identifier according to the level value.
  • the non-contact switching circuit switches the connected card channel to the target card channel corresponding to the card channel identifier according to the adjusted level value, that is, the main control computer Establish a connection with the smart card to be tested in the target card channel.
  • different card channel identifiers correspond to different channel switching modes.
  • the channel switching mode can be the level value in the non-contact switching circuit. The channel switching mode is queried according to the card channel ID, and then the non-contact switching is adjusted according to the channel switching mode. The level value in the circuit can accurately switch the connected card channel to the target card channel corresponding to the card channel identifier, which improves the accuracy of the connected card channel switching.
  • a smart card detection step is further included, and this step specifically includes the following steps:
  • Step 502 Start the first repeater and the second repeater.
  • the relay device protocol may be a protocol used when the first relay repeater and the second relay repeater perform data transmission.
  • the first repeater and the second repeater in the terminal test system are in a power-off state when not working.
  • the master control machine completes the switch of the connected card channel, it obtains the stored relay device protocol, powers on the first relay repeater and the second relay repeater, and sends the relay device protocol to the first relay forwarder And the second repeater to activate the first repeater and the second repeater.
  • Step 504 Send a card detection instruction corresponding to the card channel identifier to the activated first repeater, so that the first repeater detects the smart card to be tested in the target card channel according to the card detection instruction.
  • the card finding instruction is an instruction instructing the first repeater to detect the smart card to be tested in the target card channel.
  • the main control machine After starting the first repeater and the second repeater, the main control machine generates a card detection instruction corresponding to the acquired card channel identifier, and sends the card detection instruction to the target corresponding to the card channel identifier The first repeater in Cartoon Road. After receiving the card finding instruction, the first relay repeater detects whether there is a smart card to be tested in the target card channel.
  • the first repeater after receiving the card detection instruction, transmits a radio frequency signal into the target card channel.
  • the smart card to be tested is a contactless smart card
  • the smart card to be tested returns the smart card identifier to the first repeater according to the radio frequency signal, that is, the first repeater detects the target card channel in the target card channel. Test smart cards.
  • Step 506 When the smart card to be tested in the target card channel is detected, a data request for terminal testing is received.
  • the master control machine when the smart card to be tested in the target card channel is detected, the master control machine generates detection success information and sends the detection success information to the terminal; the detection success information may include the smart card identification of the smart card to be tested.
  • the terminal After receiving the detection success information, the terminal generates a data request for terminal testing, and sends the data request to the main control machine.
  • the master computer receives the data request.
  • the first repeater and the second repeater are activated first, so that the terminal test can be performed normally.
  • the data request is received, ensuring terminal testing The normal progress.
  • step 210 specifically further includes a step of obtaining response data, and this step specifically includes the following steps:
  • Step 602 forward the received data request encapsulated by the relay device protocol to the first relay repeater in the target card channel; the data request is used to instruct the first relay repeater to transfer from the smart card to be tested in the target card channel Read the response data for the data request, and encapsulate the response data according to the relay device protocol.
  • the first relay repeater and the second relay repeater may use the same relay device protocol when communicating. That is, the communication data received or sent by the first repeater and the second repeater (including but not limited to smart card switching instructions, card finding instructions, data requests, response data obtained from contactless smart cards and from contact smart cards The read data) are encapsulated in accordance with the relay device protocol.
  • the master control machine forwards the received data request encapsulated by the relay device protocol to the first relay repeater in the target card channel.
  • the first relay repeater interacts with the smart card under test in the target card channel, and reads response data from the smart card under test according to the data request. After reading the response data, the first relay repeater obtains the relay device protocol, and encapsulates the response data according to the relay device protocol.
  • Step 604 Receive the encapsulated response data sent by the first relay repeater.
  • the first relay repeater After the first relay repeater encapsulates the response data according to the relay device protocol, it sends the encapsulated response data to the main control machine.
  • the master control machine receives the encapsulated response data sent by the first repeater.
  • the first repeater reads the response from the smart card to be tested in the target card channel according to the data request
  • the data is encapsulated in response to the data according to the relay device protocol, and the encapsulated response data is sent to the master computer, which improves the efficiency of data transmission.
  • the terminal testing method further includes a step of switching the working state of the status indicator, and this step specifically includes the following steps:
  • Step 702 Determine the working state of the status indicator corresponding to the non-contact smart card slot in the target card channel.
  • the status indicator light may be an indicator light that characterizes the processing progress of the smart card in the smart card slot by the main control computer.
  • the working state can be the light color state when the status indicator is working.
  • the first repeater is connected to a contactless smart card slot, and a contactless smart card is placed in the contactless smart card slot.
  • Each contactless smart card slot corresponds to a status indicator.
  • the main control computer queries the status indicator corresponding to the contactless smart card slot in the target card channel, and obtains the working status of the status indicator. At this time, the working status of the status indicator can be the initial state.
  • Step 704 When the connected card channel is switched to the target card channel corresponding to the card channel ID according to the card channel ID, the working state of the status indicator is switched to the detection state.
  • the detection status can be the working status of the status indicator when the master computer is testing the terminal through the smart card.
  • the main control machine detects that the connected card channel has been switched to the target card channel corresponding to the card channel identification according to the card channel identification
  • the working state of the status indicator is switched to the detection state, which indicates that the main control machine is passing the state indication
  • the smart card in the non-contact smart card slot corresponding to the lamp tests the terminal.
  • Step 706 When the terminal test is completed, the working state of the status indicator is switched to the test completed state.
  • the test completion status may be the working status of the status indicator when the master computer completes the terminal test through the smart card.
  • the master computer detects that the response data has been sent to the terminal through the second repeater and completes the terminal test, it switches the working state of the status indicator to the test completed state, which indicates that the master computer has passed the state
  • the smart card in the non-contact smart card slot corresponding to the indicator light completes the terminal test.
  • the master computer is equipped with a display screen, which may be an LCD (Liquid Crystal Display, liquid crystal display) display screen; the user interface (UI, User Interface) of the display screen may show the terminal test process; in the user interface There is a status indicator, and the status indicator can be an LCD light.
  • a display screen which may be an LCD (Liquid Crystal Display, liquid crystal display) display screen
  • the user interface (UI, User Interface) of the display screen may show the terminal test process
  • UI User Interface
  • the status indicator can be an LCD light.
  • the contactless smart card slot where the contactless smart card is placed and the contact smart card slot where the contactless smart card is placed have a status indicator in a one-to-one correspondence; the status indicator corresponding to the contact smart card slot is always in the initial state.
  • the status indicator corresponding to the contactless smart card slot is in the initial state, and the light color can be gray; when the card channel identification is followed, the connected card channel will be switched to the corresponding card channel identification When the target card channel, switch the working state of the status indicator to the detection state. At this time, the light color can be yellow and the status indicator flashes; when the terminal test is completed, the working state of the status indicator is switched to the test completed state. At this time, the light color can be green; when the main control machine fails to complete the terminal test, the working state of the status indicator can be switched to the test failure state, and the light color can be red at this time.
  • the working state of the status indicator is switched to the detection state; when the terminal test is completed, the working state of the status indicator is switched to
  • the test completion status that is, the processing process of the smart card by the master control computer is characterized by the working status of the status indicator, which simplifies the monitoring of the terminal detection process by the tester.
  • the connected card channel is switched to the target card channel corresponding to the card channel identifier, so that the terminal reads from the smart card to be tested in the target card channel Get the data to complete the terminal test.
  • the main control computer determines that the target card channel corresponding to the card channel identifier is a contact card channel, it queries the channel switching mode corresponding to the card channel identifier in the preset channel switching list, and adjusts the contact according to the inquired channel switching mode.
  • the level value in the switching circuit is switched to the target card channel corresponding to the card channel identifier according to the adjusted level value.
  • the contact switching circuit may be a circuit that performs contact card channel switching in the terminal test system. After the channel switching is completed, the terminal can directly interact with the smart card to be tested in the target card channel, and read data from the smart card to be tested to complete the terminal test.
  • the contact smart card slot there is a contact smart card slot in the contact card channel, the contact smart card slot is placed with a contact smart card, and the contact smart card slot provides a data interface for the placed contact smart card.
  • the connected card channel is automatically switched to the target card channel corresponding to the card channel identifier.
  • the process of switching smart cards does not need to move the smart card, saving smart card switching time.
  • the terminal can directly read data from the smart card to be tested in the target card channel to complete the terminal test without the need to insert and remove the card, which further reduces the test time and improves the test efficiency.
  • a terminal testing device 800 including: a switching receiving module 802, an identification acquiring module 804, a channel switching module 806, a request receiving module 808, a data acquiring module 810, and a data sending module.
  • Module 812 where:
  • the switching receiving module 802 is used to receive a smart card switching instruction.
  • the identification acquisition module 804 is configured to acquire the card channel identification from the smart card switching instruction.
  • the channel switching module 806 is configured to switch the connected card channel to the target card channel corresponding to the card channel identification when the target card channel corresponding to the card channel identification is a contactless card channel.
  • the request receiving module 808 is used to receive data requests for terminal testing.
  • the data acquisition module 810 is configured to acquire response data for the data request in the smart card to be tested in the target card channel through the first relay repeater.
  • the data sending module 812 is configured to send the response data to the terminal through the second relay repeater to complete the terminal test.
  • the card channel identifier is obtained from the received smart card switching instruction; the card channel identifier corresponds to a card channel and each card channel has a smart card; when the target card channel corresponding to the card channel identifier is a contactless card When the channel is connected, the connected card channel is automatically switched to the target card channel corresponding to the card channel identification.
  • the automatic switching of the smart card can be realized without moving the card, saving the time of smart card switching.
  • the data request for terminal testing is received, the response data for the data request is read from the smart card under test in the target card channel through the first repeater, and the response data is sent to the second repeater
  • the terminal realizes the data interaction between the terminal and the smart card to be tested to complete the test task. Since there is no need to insert and remove the card during the test, the test time is effectively reduced and the test efficiency is greatly improved.
  • the terminal testing device 800 further includes a contact switching module, which is used to switch the connected card channel to the target corresponding to the card channel identification when the target card channel corresponding to the card channel identification is a contact card channel Cartoon channel, so that the terminal reads data from the smart card to be tested in the target card channel to complete the terminal test.
  • a contact switching module which is used to switch the connected card channel to the target corresponding to the card channel identification when the target card channel corresponding to the card channel identification is a contact card channel Cartoon channel, so that the terminal reads data from the smart card to be tested in the target card channel to complete the terminal test.
  • the connected card channel is automatically switched to the target card channel corresponding to the card channel identifier.
  • the process of switching smart cards does not need to move the smart card, saving smart card switching time.
  • the terminal can directly read data from the smart card to be tested in the target card channel to complete the terminal test without the need to insert and remove the card, which further reduces the test time and improves the test efficiency.
  • the terminal testing device 800 further includes: a test determination module and a test stop module, wherein:
  • the test determination module is used to determine whether the terminal is being tested through the smart card.
  • the test stop module is used to stop the test of the terminal when it is determined that the terminal is being tested through the smart card.
  • the identification acquisition module is also used to acquire the card channel identification from the smart card switching instruction when the terminal test is stopped.
  • the channel switching module 806 is configured to query the channel switching mode corresponding to the card channel identifier in the preset channel switching list; adjust the level value in the non-contact switching circuit according to the queried channel switching mode; The flat value will switch the connected card channel to the target card channel corresponding to the card channel ID.
  • different card channel identifiers correspond to different channel switching modes.
  • the channel switching mode can be the level value in the non-contact switching circuit. The channel switching mode is queried according to the card channel ID, and then the non-contact switching is adjusted according to the channel switching mode. The level value in the circuit can accurately switch the connected card channel to the target card channel corresponding to the card channel identifier, which improves the accuracy of the connected card channel switching.
  • the terminal testing device 800 further includes: a relay activation module and an instruction sending module, wherein:
  • the relay activation module is used to activate the first relay repeater and the second relay repeater.
  • the instruction sending module is used to send the card detection instruction corresponding to the card channel identifier to the activated first repeater, so that the first repeater detects the smart card to be tested in the target card channel according to the card detection instruction.
  • the request receiving module is also used to receive a data request for terminal testing when the smart card to be tested in the target card channel is detected.
  • the first repeater and the second repeater are activated first, so that the terminal test can be performed normally.
  • the data request is received, ensuring terminal testing The normal progress.
  • the data acquisition module 810 is configured to forward the received data request encapsulated by the relay device protocol to the first relay repeater in the target card channel; the data request is used to indicate the first relay repeater Read the response data for the data request from the smart card under test in the target card channel, and encapsulate the response data according to the relay device protocol; receive the encapsulated response data sent by the first relay repeater.
  • the first repeater reads the response from the smart card to be tested in the target card channel according to the data request
  • the data is encapsulated in response to the data according to the relay device protocol, and the encapsulated response data is sent to the master computer, which improves the efficiency of data transmission.
  • the terminal testing device 800 further includes: a status determination module, a detection switching module, and a completion switching module, wherein:
  • the status determination module is used to determine the working status of the status indicator corresponding to the non-contact smart card slot in the target card channel.
  • the detection switching module is used to switch the working state of the status indicator to the detection state when the connected card channel is switched to the target card channel corresponding to the card channel identification according to the card channel identification.
  • the completion switching module is used to switch the working state of the status indicator to the test completion state when the terminal test is completed.
  • the working state of the status indicator is switched to the detection state; when the terminal test is completed, the working state of the status indicator is switched to
  • the test completion status that is, the processing process of the smart card by the master control computer is characterized by the working status of the status indicator, which simplifies the monitoring of the terminal detection process by the tester.
  • Each module in the above-mentioned terminal test device can be implemented in whole or in part by software, hardware and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a terminal testing system 900 is provided. Specifically, when the target card channel corresponding to the card channel identifier is a contactless card channel, refer to the terminal testing system 902 in FIG. 9 , Including: terminal, main control machine, first repeater, second repeater, communication machine and non-contact switching circuit.
  • the terminal includes a contactless card reading area and a contact card slot.
  • the contactless card reading area is used to interact with a contactless smart card
  • the contact card slot is used to insert a contact smart card and interact with a contact smart card.
  • the second repeater is placed in the non-contact card reading area of the terminal.
  • the main control machine is connected with the second repeater through the serial port 1, and is connected with the non-contact switching circuit through the serial port 2 and the GPIO interface, and the main control machine is also connected with the communication machine.
  • the contactless switching circuit is also connected to multiple card channels. Each card channel has a first repeater. Each first repeater is placed in a contactless smart card slot. Contactless smart card.
  • a non-contact switching circuit is provided. Specifically, referring to FIG. 10, the input end of the non-contact switching circuit is connected to the serial port 2 of the master computer through Tx and Rx signal lines; The output end is connected to the first repeater through Tx and Rx signal lines; the control end of the non-contact switching circuit includes four signal lines A0, A1, A2 and A3, which are connected to the GPIO interface of the master computer; A0, A1, The four signal lines A2 and A3 have up to 16 level changes, so the output end of the non-contact switching circuit can connect up to 16 first repeaters.
  • the terminal sends the generated smart card switching instruction to the second repeater, and the second repeater sends the smart card switching instruction to the master through the serial port 1 of the master.
  • the terminal can also establish a WiFi connection with the main control machine through the communication machine, and send the smart card switching instruction to the main control machine through the communication machine.
  • the master control machine obtains the card channel identification from the smart card switching instruction.
  • the target card channel corresponding to the card channel identification is a contactless card channel
  • the obtained channel switching mode adjusts the level value of the control terminal in the non-contact switching circuit; the non-contact switching circuit switches the connected card channel to the target card channel corresponding to the card channel identifier according to the level value of the control terminal.
  • the connected card channel can be a circuit structure from the output end of the contactless switching circuit to the first repeater, or it can be a circuit structure from the serial port 2 of the master computer to the first repeater.
  • the card channel is identified as N1, where N indicates that the card channel is a non-contact card channel, and 1 indicates the number 1 card channel in the non-contact card channel.
  • the host computer will switch the non-contact card channel according to the channel switching method corresponding to the card channel identification N1.
  • the contact switching circuit is set to 0 according to the level values of the control terminals A0, A1, A2, and A3.
  • the Tx and Rx signal lines of the serial port 2 of the master control machine are respectively the first in the card channel corresponding to the card channel identification N1. After the Tx and Rx signal lines of the repeater are connected, the channel switching is completed.
  • the terminal generates a data request for terminal testing, encapsulates the data request according to the relay device protocol and sends it to the second repeater; the second repeater sends the encapsulated data request to the main control machine through the serial port 1 ;
  • the host computer sends the encapsulated data request to the first repeater in the target card channel corresponding to the card channel identifier through the serial port 2; the first repeater reads the response data from the contactless smart card according to the data request,
  • the response data is encapsulated according to the relay device protocol, and the encapsulated response data is sent to the main control machine through the serial port 2.
  • the master control machine sends the encapsulated response data to the second repeater through the serial port 1; the second repeater sends the encapsulated response data to the terminal to realize the smart card in the target card channel corresponding to the terminal and the card channel identifier To complete the terminal test.
  • the terminal can regenerate the smart card switching instruction containing the card channel identifier and send it to the host computer.
  • the smart card when the smart card is a contact smart card, refer to the terminal test system 904 in FIG. 9, which includes: a terminal, a main control machine, a detection board, a contact switching circuit, and a contact smart card slot.
  • the detection board is used to insert into the contact card slot of the terminal, and the contact signal of the contact card slot can be drawn and extended to connect with the input end of the contact switching circuit.
  • the detection board can be a probe detection board;
  • the contact smart card slot provides a data interface for the smart card to be tested.
  • the Vcc, I/O, CLK and RST signal lines of the contact smart card slot are respectively connected to the Vcc, I/O, CLK and RST signal lines from the detection board.
  • the main control machine is connected with the contact switching circuit through the GPIO interface, and the main control machine is also connected with the communication machine.
  • the contact switching circuit is also connected with a plurality of contact card channels, each contact card channel has a contact smart card slot, and each contact smart card slot is placed with a contact smart card.
  • a contact switching circuit is provided. Specifically, referring to FIG. 11, the input end of the contact switching circuit is connected to the detection board through Vcc, I/O, CLK and RST signal lines; The terminal is connected to the contact smart card slot through the Vcc, I/O, CLK and RST signal lines; the control terminal of the contact switching circuit includes four signal lines A0, A1, A2 and A3, which are connected to the GPIO interface of the host computer; A0, The four signal lines A1, A2 and A3 have up to 16 level changes, so the output end of the contact switching circuit can be connected to up to 16 contact smart card slots.
  • the terminal sends a smart card switching instruction to the main control machine, and the main control machine obtains the card channel identifier from the smart card switching instruction.
  • the target card channel corresponding to the card channel identifier is a contact card channel
  • the contact switching circuit will connect the card according to the level value of the control terminal
  • the channel is switched to the target card channel corresponding to the card channel identifier.
  • the connected card channel can be the circuit structure from the output end of the contact switching circuit to the contact smart card slot, or the circuit structure from the detection board to the contact smart card slot.
  • the card channel is identified as Y1, where Y indicates that the card channel is a contact card channel, and 1 indicates the number 1 card channel in the contact card channel.
  • the host computer will contact the switching circuit according to the channel switching method corresponding to the card channel identification Y1
  • the level values of the control terminals A0, A1, A2, and A3 are all set to 0, then the Vcc, I/O, CLK, and RST signal lines of the detection board are respectively the contact smart card in the card channel corresponding to the card channel identification Y1
  • the Vcc, I/O, CLK and RST signal lines of the slot are connected, and the channel switching is completed.
  • the terminal can directly obtain data from the smart card to be tested in the contact smart card slot through the connected Vcc, I/O, CLK and RST signal lines to complete the terminal test.
  • a terminal test case is provided.
  • the case is used to house the main control machine, the contactless switching circuit and the contact switching circuit, the power adapter, the contactless smart card slot, and the contact smart card slot.
  • a USB interface is used to connect the second repeater and the detection board, and can also download application control programs and export log information recorded when the main control machine is running.
  • a computer device is provided.
  • the computer device may be a master computer, and its internal structure diagram may be as shown in FIG. 13.
  • the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer programs, and log information.
  • the computer program can be an application control program, which is used to perform the switching of the connected card channel, test the terminal and record log information; the internal memory is the operating system and the application control program in the non-volatile storage medium. Run and provide environment.
  • the network interface of the computer equipment is connected with a communication machine, and can communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a terminal test method.
  • the display screen of the computer device may be a liquid crystal display (LCD), the serial port of the computer device is used to connect the first repeater and the second repeater; the external GPIO resource cable of the computer device is used for connection
  • the main control machine and the non-contact switching circuit, the main control machine and the contact switching circuit control the switching of the connected card channels.
  • FIG. 13 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above terminal testing method.
  • the steps of the terminal test method may be the steps in the terminal test method of each of the foregoing embodiments.
  • a computer-readable storage medium which stores a computer program.
  • the processor causes the processor to execute the steps of the foregoing terminal testing method.
  • the steps of the terminal test method may be the steps in the terminal test method of each of the foregoing embodiments.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请涉及一种终端测试方法、装置和终端测试系统。所述方法包括接收智能卡切换指令;从所述智能卡切换指令中获取卡通道标识;当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;接收用于终端测试的数据请求;通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据;将所述响应数据通过第二中继转发器发送至终端从而完成终端测试。采用本方法可以实现智能卡的自动切换且无需进行插拔卡的操作,大量地减少了测试时间,大大提高了测试效率。

Description

终端测试方法、装置和终端测试系统 技术领域
本申请涉及测试技术领域,特别是涉及一种终端测试方法、装置和终端测试系统。
背景技术
随着互联网技术的不断发展,越来越多的商家采用POS(Point of Sale,销售点,又名销售终端)机来进行费用收取,用户只需将智能卡插入POS或放在POS的感应区便可完成支付操作。
POS机是一种多功能终端,具有支持消费、预授权、余额查询和转账等功能。在POS机研发过程中,需要使用多张智能卡对POS机进行测试。在传统的POS机测试方案中,测试过程中进行卡片切换时通常采用机械臂切换智能卡以供POS进行数据的读写。然而,机械臂在切换智能卡的过程中,需要不断地将智能卡插入或拔出POS机,或者移动智能卡,耗费大量时间,导致测试效率较低。
技术问题
基于此,有必要针对上述技术问题,提供一种能够提高测试效率的终端测试方法、装置和终端测试系统。
技术解决方案
一种终端测试方法,所述方法包括:
接收智能卡切换指令;
从所述智能卡切换指令中获取卡通道标识;
当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;
接收用于终端测试的数据请求;
通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据;
将所述响应数据通过第二中继转发器发送至终端从而完成终端测试。
一种终端测试装置,其特征在于,所述装置包括:
切换接收模块,用于接收智能卡切换指令;
标识获取模块,用于从所述智能卡切换指令中获取卡通道标识;
通道切换模块,用于当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;
请求接收模块,用于接收用于终端测试的数据请求;
数据获取模块,用于通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据;
数据发送模块,用于将所述响应数据通过第二中继转发器发送至终端从而完成终端测试。
一种终端测试系统,所述系统包括:终端、主控机、第一中继转发器和第二中继转发器;
所述终端,用于发送智能卡切换指令和用于终端测试的数据请求;
所述主控机,接收智能卡切换指令;从所述智能卡切换指令中获取卡通道标识;当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;接收用于终端测试的数据请求;
所述第一中继转发器,用于获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据并发送至所述主控机;
所述第二中继转发器,用于将由所述主控机转发的所述响应数据发送至终端从而完成终端测试。
一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
接收智能卡切换指令;
从所述智能卡切换指令中获取卡通道标识;
当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;
接收用于终端测试的数据请求;
通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据;
将所述响应数据通过第二中继转发器发送至终端从而完成终端测试。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
接收智能卡切换指令;
从所述智能卡切换指令中获取卡通道标识;
当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;
接收用于终端测试的数据请求;
通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据;
将所述响应数据通过第二中继转发器发送至终端从而完成终端测试。
有益效果
上述终端测试方法、装置和终端测试系统,从接收到的智能卡切换指令中获取卡通道标识;卡通道标识对应于一个卡通道且每个卡通道中存在一张智能卡;当卡通道标识对应的目标卡通道为非接触式卡通道时,自动将已连接卡通道切换至卡通道标识对应的目标卡通道,在切换智能卡时无需移卡便可实现智能卡的自动切换,节省智能卡切换的时间。切换完成后,接收用于终端测试的数据请求,通过第一中继转发器从目标卡通道内的待测智能卡读取针对数据请求的响应数据,再通过第二中继转发器将响应数据发送至终端,实现终端与待测智能卡之间的数据交互从而完成测试任务,由于测试过程中无需进行插拔卡的操作,从而有效地减少了测试时间,大大提高了测试效率。
附图说明
图1为一个实施例中终端测试方法的应用环境图;
图2为一个实施例中终端测试方法的流程示意图;
图3为一个实施例中确定是否正在进行测试的步骤的流程示意图;
图4为一个实施例中切换已连接卡通道的步骤的流程示意图;
图5为一个实施例中检测智能卡的步骤的流程示意图;
图6为一个实施例中获取响应数据的步骤的流程示意图;
图7为一个实施例中切换状态指示灯工作状态的步骤的流程示意图;
图8为一个实施例中终端测试装置的结构框图;
图9为一个实施例中终端测试系统的功能框图;
图10为一个实施例中非接触切换电路的示意图;
图11为一个实施例中接触切换电路的示意图;
图12为一个实施例中终端测试机箱的示意图;
图13为一个实施例中计算机设备的内部结构图。
本发明的实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的终端测试方法,可以应用于如图1所示的应用环境中。其中,主控机102通过串口与第一中继转发器104和第二中继转发器106进行通信。其中,主控机102可以但不限于是各种工业计算机、个人计算机和笔记本电脑;第一中继转发器可以通过NFC(near field communication,近场通信)与非接触式智能卡进行交互;第二中继转发器可以通过NFC与终端的非接触读卡区域进行交互,非接触读卡区域可以是NFC读卡器。
在一个实施例中,如图2所示,提供了一种终端测试方法,以该方法应用于图1中的主控机102为例进行说明,包括以下步骤:
步骤202,接收智能卡切换指令。
其中,智能卡切换指令可以是指示主控机切换智能卡的指令。智能卡(Smart card)又称IC(Integrated Circuit,集成电路)卡,是将微电子芯片嵌入卡基中得到的卡片。智能卡包括接触式智能卡和非接触式智能卡。智能卡可以是银行卡,银行卡可以是符合EMV标准的EMV(EuropayMasterCardVisa)卡;EMV标准是由国际三大银行卡组织--Europay(欧陆卡)、MasterCard(万事达卡)和Visa(维萨)共同发起制定的银行卡从磁条卡向智能卡转移的技术标准。
具体地,终端测试系统中的终端生成智能卡切换指令,通过网络或串口将智能卡切换指令发送至终端测试系统中的主控机。主控机接收终端发送的智能卡切换指令。
在一个实施例中,终端可以是POS机,POS机可以是传统POS机,还可以是智能POS机;POS机可以支持接触式智能卡,也可以支持非接触式智能卡。
在一个实施例中,主控机从上位机接收智能卡切换指令。上位机用于生成智能卡切换指令并将智能卡切换指令发送至主控机。上位机可以是终端,即POS机,还可以是第三方计算机。
步骤204,从智能卡切换指令中获取卡通道标识。
其中,卡通道标识是卡通道的标识,可以是卡通道的编号;卡通道的编号可以是字母、数字、特殊符号等结合的字符串。卡通道可以是放置有智能卡的电路结构。
具体地,主控机对智能卡切换指令进行解析,从解析后的智能卡切换指令中获取卡通道标识。终端测试系统中存在多个卡通道,每个卡通道对应有唯一的卡通道标识,且每个卡通道中存在一张智能卡。
卡通道包括非接触式卡通道和接触式卡通道,非接触式卡通道中的智能卡为非接触式智能卡,接触式卡通道中的智能卡为接触式智能卡。其中,非接触式智能卡又称射频卡,无需与读写器表面发生物理接触,在一定范围内通过无线电波的传递与读卡器实现数据交互;接触式智能卡是需要与读卡器表面发生物理接触才可以与读卡器进行数据交互的智能卡。
在一个实施例中,主控机中预存有卡通道标识,主控机接收到智能卡切换指令后,根据预设的卡通道标识获取方式,从卡通道标识中获取一个卡通道标识。
步骤206,当卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至卡通道标识对应的目标卡通道。
其中,已连接卡通道可以是已经与主控机相连接的卡通道。目标卡通道可以是与卡通道标识所对应的卡通道。
具体地,卡通道标识可以区分卡通道为非接触式卡通道还是接触式卡通道,还可以唯一表征终端测试系统中的某个卡通道。当主控机确定卡通道标识对应的目标卡通道为非接触式卡通道时,触发非接触式卡通道切换指令。主控机根据非接触式卡通道切换指令,控制非接触切换电路,将已连接卡通道切换至卡通道标识对应的目标卡通道。
在一个实施例中,主控机首先根据卡通道标识确定需要切换至非接触式卡通道还是接触式卡通道,再根据卡通道标识,将已连接卡通道切换至卡通道标识对应的目标卡通道。
步骤208,接收用于终端测试的数据请求。
其中,数据请求可以是与卡通道内待测智能卡进行数据交互的请求。
具体地,主控机将已连接卡通道切换至卡通道标识对应的目标卡通道后,终端生成用于终端测试的数据请求,并可以通过网络或串口将生成的数据请求发送至主控机。主控机接收终端发送的数据请求。
在一个实施例中,数据请求可以是支付、预授权、余额查询和转账等操作中的至少一种。
步骤210,通过第一中继转发器获取目标卡通道内的待测智能卡中针对数据请求的响应数据。
其中,第一中继转发器是终端测试系统中,与非接触式智能卡进行数据交互的元件。响应数据可以是第一中继转发器根据数据请求从待测智能卡中获取的数据。
具体地,非接触式卡通道中存在第一中继转发器,待测智能卡为非接触式智能卡且放置于第一中继转发器对应的卡通道中。主控机接收到数据请求后,将数据请求发送至目标卡通道中的第一中继转发器。第一中继转发器根据数据请求,从待测智能卡中获取响应数据,并将获取到的响应数据发送至主控机。主控机接收第一中继转发器发送的响应数据。
步骤212,将响应数据通过第二中继转发器发送至终端从而完成终端测试。
其中,第二中继转发器是终端测试系统中,与终端进行数据交互的元件。
具体地,主控机从第一中继转发器获取到响应数据后,将响应数据发送至第二中继转发器。第二中继转发器接收主控机发送的响应数据,并将响应数据发送至终端,当终端接收到响应数据后,完成终端测试。
在一个实施例中,当主控机通过第二中继转发器将响应数据发送至终端从而完成本轮终端测试后,终端重新生成智能卡切换指令并将智能卡切换指令发送至主控机,以进行下一轮终端测试。
本实施例中,从接收到的智能卡切换指令中获取卡通道标识;卡通道标识对应于一个卡通道且每个卡通道中存在一张智能卡;当卡通道标识对应的目标卡通道为非接触式卡通道时,自动将已连接卡通道切换至卡通道标识对应的目标卡通道,在切换智能卡时无需移卡便可实现智能卡的自动切换,节省智能卡切换的时间。切换完成后,接收用于终端测试的数据请求,通过第一中继转发器从目标卡通道内的待测智能卡读取针对数据请求的响应数据,再通过第二中继转发器将响应数据发送至终端,实现终端与待测智能卡之间的数据交互从而完成测试任务,由于测试过程中无需进行插拔卡的操作,从而有效地减少了测试时间,大大提高了测试效率。
如图3所示,在一个实施例中,步骤202之后还包括确定是否正在进行测试的步骤,该步骤具体包括如下步骤:
步骤302,确定是否正在通过智能卡对终端进行测试。
具体地,当主控机接收到智能卡切换指令后,首先检查当前进行的进程,以确定主控机是否正在通过智能卡对终端进行测试。
步骤304,当确定正在通过智能卡对终端进行测试时,停止对终端的测试。
具体地,终端或上位机下达的指令具有最高优先级。当主控机确定正在通过智能卡对终端进行测试时,触发测试停止指令,根据测试停止指令停止当前进行的对终端的测试。
步骤306,当停止对终端的测试后,从智能卡切换指令中获取卡通道标识。
具体地,当主控机停止当前进行的对终端的测试后,从获取到的智能卡切换指令中获取卡通道标识。
在一个实施例中,当主控机接收到智能卡切换指令时,主控机若正在通过智能卡对终端进行测试,触发中断指令,根据中断指令暂停当前对终端的测试;当主控机根据智能卡切换指令完成终端测试后,返回中断的测试。
本实施例中,接收到智能卡切换指令后,若正在对终端进行测试,则停止当前进行的测试,执行智能卡切换指令,避免了迟缓,保证了测试效率。
如图4所示,在一个实施例中,步骤206具体还包括切换已连接卡通道的步骤,该步骤具体包括如下步骤:
步骤402,在预设通道切换列表中查询与卡通道标识对应的通道切换方式。
其中,预设通道切换列表可以是记录已连接卡通道切换方式的列表;通道切换方式可以是主控机将已连接卡通道切换至目标卡通道的方式。
具体地,主控机中存储有预设通道切换列表,预设通道切换列表中记录有通道切换方式。主控机获取存储的预设通道切换列表和卡通道标识,在预设通道切换列表中查询获取的卡通道标识,提取与查询到的卡通道标识对应的通道切换方式。
步骤404,根据查询到的通道切换方式调整非接触切换电路中的电平值。
其中,非接触切换电路可以是终端测试系统中执行非接触式卡通道切换的电路。
具体地,通道切换方式可以是主控机调整非接触切换电路电平值的方式。主控机查询到与卡通道标识对应的通道切换方式后,根据通道切换方式调整非接触切换电路控制端的电平值。
步骤406,根据电平值将与已连接卡通道切换至卡通道标识对应的目标卡通道。
具体地,主控机调整非接触切换电路中的电平值后,非接触切换电路根据调整后的电平值,将已连接卡通道切换至卡通道标识对应的目标卡通道,即主控机与目标卡通道内的待测智能卡建立连接。
本实施例中,不同的卡通道标识对应于不同的通道切换方式,通道切换方式可以是非接触切换电路中的电平值,根据卡通道标识查询通道切换方式,再根据通道切换方式调整非接触切换电路中的电平值,可以准确地将已连接卡通道切换至卡通道标识对应的目标卡通道,提高了已连接卡通道切换的准确性。
如图5所示,在一个实施例中,步骤206之后还包括检测智能卡的步骤,该步骤具体包括如下步骤:
步骤502,启动第一中继转发器和第二中继转发器。
其中,中继设备协议可以是第一中继转发器和第二中继转发器进行数据传输时使用的协议。
具体地,终端测试系统中的第一中继转发器和第二中继转发器在不工作时处于下电状态。主控机完成已连接卡通道的切换后,获取存储的中继设备协议,给第一中继转发器和第二中继转发器上电,并将中继设备协议发送至第一中继转发器和第二中继转发器,以启动第一中继转发器和第二中继转发器。
步骤504,向启动后的第一中继转发器发送与卡通道标识对应的寻卡指令,以使第一中继转发器根据寻卡指令检测目标卡通道内的待测智能卡。
其中,寻卡指令是指示第一中继转发器检测目标卡通道内待测智能卡的指令。
具体地,主控机启动第一中继转发器和第二中继转发器之后,生成与获取到的卡通道标识对应的寻卡指令,并将寻卡指令发送至卡通道标识所对应的目标卡通道内的第一中继转发器。第一中继转发器接收到寻卡指令后,检测目标卡通道中是否存在待测智能卡。
在一个实施例中,第一中继转发器接收到寻卡指令后,向目标卡通道内发射射频信号。当目标卡通道内存在待测智能卡且待测智能卡为非接触式智能卡时,待测智能卡根据射频信号向第一中继转发器返回智能卡标识,即第一中继转发器检测到目标卡通道内的待测智能卡。
步骤506,当检测到目标卡通道内的待测智能卡时,接收用于终端测试的数据请求。
具体地,当检测到目标卡通道内的待测智能卡时,主控机生成检测成功信息,并将检测成功信息发送至终端;检测成功信息中可以包括待测智能卡的智能卡标识。终端接收到检测成功信息后,生成用于终端测试的数据请求,并将数据请求发送至主控机。主控机接收数据请求。
本实施例中,先启动第一中继转发器和第二中继转发器,使终端测试得以正常进行。向启动后的第一中继转发器发送与卡通道标识对应的寻卡指令,以检测目标卡通道内是否存在待测智能卡,当检测到待测智能卡存在时,才接收数据请求,保证了终端测试的正常进行。
如图6所示,在一个实施例中,步骤210具体还包括获取响应数据的步骤,该步骤具体包括如下步骤:
步骤602,将所接收的由中继设备协议封装的数据请求转发至目标卡通道内的第一中继转发器;数据请求,用于指示第一中继转发器从目标卡通道内的待测智能卡中读取针对数据请求的响应数据,并将响应数据按照中继设备协议进行封装。
具体地,第一中继转发器和第二中继转发器在通信时可以采用相同的中继设备协议。即第一中继转发器和第二中继转发器接收或发送的通信数据(包括但不限于智能卡切换指令、寻卡指令、数据请求、从非接触式智能卡获取的响应数据和从接触式智能卡读取到的数据)均按照中继设备协议进行封装。
主控机将接收到的由中继设备协议封装的数据请求转发至目标卡通道内的第一中继转发器。第一中继转发器与目标卡通道内的待测智能卡进行交互,根据数据请求从待测智能卡读取响应数据。第一中继转发器读取到响应数据后,获取中继设备协议,根据中继设备协议对响应数据进行封装。
步骤604,接收由第一中继转发器发送的经过封装的响应数据。
具体地,第一中继转发器根据中继设备协议对响应数据进行封装后,将封装后的响应数据发送至主控机。主控机接收第一中继转发器发送的经过封装的响应数据。
本实施例中,将经过中继设备协议封装的数据请求发送至目标卡通道内的第一中继转发器后,由第一中继转发器根据数据请求从目标卡通道内的待测智能卡读取响应数据并根据中继设备协议对响应数据进行封装,将封装后的响应数据发送至主控机,提高了数据传输的效率。
如图7所示,在一个实施例中,终端测试方法还包括切换状态指示灯工作状态的步骤,该步骤具体包括如下步骤:
步骤702,确定与目标卡通道内非接触式智能卡槽对应的状态指示灯的工作状态。
其中,状态指示灯可以是表征主控机对智能卡槽内智能卡处理进程的指示灯。工作状态可以是状态指示灯工作时的灯光颜色状态。
具体地,卡通道内存在第一中继转发器,第一中继转发器与非接触式智能卡槽连接,非接触式智能卡槽中放置有非接触式智能卡。每个非接触式智能卡槽对应一个状态指示灯。主控机查询目标卡通道内非接触式智能卡槽对应的状态指示灯,获取状态指示灯的工作状态,此时状态指示灯的工作状态可以是初始状态。
步骤704,当按照卡通道标识将已连接卡通道切换至卡通道标识对应的目标卡通道时,将状态指示灯的工作状态切换为检测状态。
其中,检测状态可以是主控机正在通过智能卡对终端进行测试时,状态指示灯的工作状态。
具体地,当主控机检测到已连接卡通道已按照卡通道标识切换至卡通道标识对应的目标卡通道时,将状态指示灯的工作状态切换为检测状态,表征主控机正在通过状态指示灯对应的非接触式智能卡槽中的智能卡对终端进行测试。
步骤706,当完成终端测试时,将状态指示灯的工作状态切换为测试完成状态。
其中,测试完成状态可以是主控机通过智能卡完成终端测试时,状态指示灯的工作状态。
具体地,当主控机检测到已将响应数据通过第二中继转发器发送至终端并完成对终端测试后,将状态指示灯的工作状态切换为测试完成状态,表征主控机已通过状态指示灯对应的非接触式智能卡槽中的智能卡完成对终端的测试。
在一个实施例中,主控机配置有显示屏,显示屏可以是LCD(Liquid Crystal Display,液晶显示器)显示屏;显示屏的用户界面(UI,User Interface)可以展示终端测试过程;用户界面中存在状态指示灯,状态指示灯可以是LCD灯。
在一个实施例中,放置非接触式智能卡的非接触式智能卡槽和放置接触式智能卡的接触式智能卡槽均一一对应有状态指示灯;接触式智能卡槽对应的状态指示灯一直处于初始状态。
举例说明,当主控机启动上电后,非接触式智能卡槽对应的状态指示灯处于初始状态,灯光颜色可以是灰色;当按照卡通道标识将与已连接卡通道切换至卡通道标识对应的目标卡通道时,将状态指示灯的工作状态切换为检测状态,此时灯光颜色可以是黄色且状态指示灯进行闪烁;当完成终端测试时,将状态指示灯的工作状态切换为测试完成状态,此时灯光颜色可以是绿色;当主控机未能完成终端测试时,可以将状态指示灯的工作状态切换为测试失败状态,此时灯光颜色可以是红色。
本实施例中,当将已连接卡通道切换至卡通道标识对应的目标卡通道时,将状态指示灯的工作状态切换为检测状态;当完成终端测试时,将状态指示灯的工作状态切换为测试完成状态,即通过状态指示灯的工作状态表征主控机对智能卡的处理进程,简化了测试人员对终端检测过程的监测。
在一个实施例中,当卡通道标识对应的目标卡通道为接触式卡通道时,将已连接卡通道切换至卡通道标识对应的目标卡通道,以使终端从目标卡通道内的待测智能卡读取数据从而完成终端测试。
具体地,当主控机确定卡通道标识对应的目标卡通道为接触式卡通道时,在预设通道切换列表中查询与卡通道标识对应的通道切换方式,根据查询到的通道切换方式调整接触切换电路中的电平值,根据调整后的电平值将与已连接卡通道切换至卡通道标识对应的目标卡通道。接触切换电路可以是终端测试系统中执行接触式卡通道切换的电路。通道切换完成后,终端可以直接与目标卡通道内的待测智能卡进行交互,从待测智能卡读取数据从而完成终端测试。
在一个实施例中,接触式卡通道中存在接触式智能卡槽,接触式智能卡槽放置有接触式智能卡,接触式智能卡槽为放置的接触式智能卡提供数据接口。
本实施例中,当卡通道标识对应的目标卡通道为接触式卡通道时,自动将已连接卡通道切换至卡通道标识对应的目标卡通道,切换智能卡的过程无需移动智能卡,节省了智能卡切换时间。切换完成后,终端可以直接从目标卡通道内的待测智能卡读取数据从而完成终端测试,无需进行插拔卡的操作,进一步减少了测试时间,提高了测试效率。
应该理解的是,虽然图2-7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-7中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一个实施例中,如图8所示,提供了一种终端测试装置800,包括:切换接收模块802、标识获取模块804、通道切换模块806、请求接收模块808、数据获取模块810和数据发送模块812,其中:
切换接收模块802,用于接收智能卡切换指令。
标识获取模块804,用于从智能卡切换指令中获取卡通道标识。
通道切换模块806,用于当卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至卡通道标识对应的目标卡通道。
请求接收模块808,用于接收用于终端测试的数据请求。
数据获取模块810,用于通过第一中继转发器获取目标卡通道内的待测智能卡中针对数据请求的响应数据。
数据发送模块812,用于将响应数据通过第二中继转发器发送至终端从而完成终端测试。
本实施例中,从接收到的智能卡切换指令中获取卡通道标识;卡通道标识对应于一个卡通道且每个卡通道中存在一张智能卡;当卡通道标识对应的目标卡通道为非接触式卡通道时,自动将已连接卡通道切换至卡通道标识对应的目标卡通道,在切换智能卡时无需移卡便可实现智能卡的自动切换,节省智能卡切换的时间。切换完成后,接收用于终端测试的数据请求,通过第一中继转发器从目标卡通道内的待测智能卡读取针对数据请求的响应数据,再通过第二中继转发器将响应数据发送至终端,实现终端与待测智能卡之间的数据交互从而完成测试任务,由于测试过程中无需进行插拔卡的操作,从而有效地减少了测试时间,大大提高了测试效率。
在一个实施例中,终端测试装置800还包括接触切换模块,接触切换模块用于当卡通道标识对应的目标卡通道为接触式卡通道时,将已连接卡通道切换至卡通道标识对应的目标卡通道,以使终端从目标卡通道内的待测智能卡读取数据从而完成终端测试。
本实施例中,当卡通道标识对应的目标卡通道为接触式卡通道时,自动将已连接卡通道切换至卡通道标识对应的目标卡通道,切换智能卡的过程无需移动智能卡,节省了智能卡切换时间。切换完成后,终端可以直接从目标卡通道内的待测智能卡读取数据从而完成终端测试,无需进行插拔卡的操作,进一步减少了测试时间,提高了测试效率。
在一个实施例中,终端测试装置800还包括:测试确定模块和测试停止模块,其中:
测试确定模块,用于确定是否正在通过智能卡对终端进行测试。
测试停止模块,用于当确定正在通过智能卡对终端进行测试时,停止对终端的测试。
标识获取模块还用于当停止对终端的测试后,从智能卡切换指令中获取卡通道标识。
本实施例中,接收到智能卡切换指令后,若正在对终端进行测试,则停止当前进行的测试,执行智能卡切换指令,避免了迟缓,保证了测试效率。
在一个实施例中,通道切换模块806用于在预设通道切换列表中查询与卡通道标识对应的通道切换方式;根据查询到的通道切换方式调整非接触切换电路中的电平值;根据电平值将与已连接卡通道切换至卡通道标识对应的目标卡通道。
本实施例中,不同的卡通道标识对应于不同的通道切换方式,通道切换方式可以是非接触切换电路中的电平值,根据卡通道标识查询通道切换方式,再根据通道切换方式调整非接触切换电路中的电平值,可以准确地将已连接卡通道切换至卡通道标识对应的目标卡通道,提高了已连接卡通道切换的准确性。
在一个实施例中,终端测试装置800还包括:中继启动模块和指令发送模块,其中:
中继启动模块,用于启动第一中继转发器和第二中继转发器。
指令发送模块,用于向启动后的第一中继转发器发送与卡通道标识对应的寻卡指令,以使第一中继转发器根据寻卡指令检测目标卡通道内的待测智能卡。
请求接收模块还用于当检测到目标卡通道内的待测智能卡时,接收用于终端测试的数据请求。
本实施例中,先启动第一中继转发器和第二中继转发器,使终端测试得以正常进行。向启动后的第一中继转发器发送与卡通道标识对应的寻卡指令,以检测目标卡通道内是否存在待测智能卡,当检测到待测智能卡存在时,才接收数据请求,保证了终端测试的正常进行。
在一个实施例中,数据获取模块810用于将所接收的由中继设备协议封装的数据请求转发至目标卡通道内的第一中继转发器;数据请求,用于指示第一中继转发器从目标卡通道内的待测智能卡中读取针对数据请求的响应数据,并将响应数据按照中继设备协议进行封装;接收由第一中继转发器发送的经过封装的响应数据。
本实施例中,将经过中继设备协议封装的数据请求发送至目标卡通道内的第一中继转发器后,由第一中继转发器根据数据请求从目标卡通道内的待测智能卡读取响应数据并根据中继设备协议对响应数据进行封装,将封装后的响应数据发送至主控机,提高了数据传输的效率。
在一个实施例中,终端测试装置800还包括:状态确定模块、检测切换模块和完成切换模块,其中:
状态确定模块,用于确定与目标卡通道内非接触式智能卡槽对应的状态指示灯的工作状态。
检测切换模块,用于当按照卡通道标识将已连接卡通道切换至卡通道标识对应的目标卡通道时,将状态指示灯的工作状态切换为检测状态。
完成切换模块,用于当完成终端测试时,将状态指示灯的工作状态切换为测试完成状态。
本实施例中,当将已连接卡通道切换至卡通道标识对应的目标卡通道时,将状态指示灯的工作状态切换为检测状态;当完成终端测试时,将状态指示灯的工作状态切换为测试完成状态,即通过状态指示灯的工作状态表征主控机对智能卡的处理进程,简化了测试人员对终端检测过程的监测。
关于终端测试装置的具体限定可以参见上文中对于终端测试方法的限定,在此不再赘述。上述终端测试装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,如图9所示,提供了一种终端测试系统900,具体地,当卡通道标识对应的目标卡通道为非接触式卡通道时时,参照图9中的终端测试系统902,包括:终端、主控机、第一中继转发器、第二中继转发器、通信机和非接触切换电路。
其中,终端包括非接触读卡区域和接触式插卡卡槽,非接触读卡区域用于与非接触式智能卡进行交互,接触式插卡卡槽用于插入接触式智能卡并与接触式智能卡进行交互。第二中继转发器放置在终端的非接触读卡区域。主控机通过串口1与第二中继转发器连接,通过串口2和GPIO接口与非接触切换电路连接,主控机还与通信机相连接。非接触切换电路还与多个卡通道相连接,每个卡通道中有一个第一中继转发器,每个第一中继转发器放置有非接触式智能卡槽,非接触式智能卡槽中放置有非接触式智能卡。
在一个实施例中,如图10所示,提供了一种非接触切换电路,具体地,参照图10,非接触切换电路的输入端通过Tx和Rx信号线连接至主控机的串口2;输出端通过Tx和Rx信号线连接至第一中继转发器;非接触切换电路的控制端包括A0、A1、A2和A3四根信号线,连接至主控机的GPIO接口;A0、A1、A2和A3四根信号线最多有16种电平变化,故非接触切换电路的输出端最多可以连接16个第一中继转发器。
具体地,请同时按照图9和图10,终端将生成的智能卡切换指令发送至第二中继转发器,第二中继转发器通过主控机的串口1将智能卡切换指令发送至主控机;此外,终端还可以通过通信机与主控机建立WiFi连接,将智能卡切换指令通过通信机发送至主控机。
主控机从智能卡切换指令中获取卡通道标识,当卡通道标识对应的目标卡通道为非接触式卡通道时,在预设通道切换列表中查询与卡通道标识对应的通道切换方式,根据查询到的通道切换方式调整非接触切换电路中控制端的电平值;非接触切换电路根据控制端的电平值将已连接卡通道切换至卡通道标识对应的目标卡通道。已连接卡通道可以是从非接触切换电路的输出端至第一中继转发器之间的电路结构,也可以是从主控机的串口2至第一中继转发器之间的电路结构。比如,卡通道标识为N1,其中N表示卡通道为非接触式卡通道,1表示非接触式卡通道中的1号卡通道,主控机根据与卡通道标识N1对应的通道切换方式,将非接触切换电路根据控制端A0、A1、A2和A3的电平值均置为0,则此时主控机串口2的Tx和Rx信号线分别与卡通道标识N1对应的卡通道内的第一中继转发器的Tx和Rx信号线连通,通道切换完毕。
终端生成用于终端测试的数据请求,根据中继设备协议对数据请求进行封装并发送至第二中继转发器;第二中继转发器通过串口1将封装后的数据请求发送至主控机;主控机通过串口2将封装后的数据请求发送至卡通道标识对应的目标卡通道内的第一中继转发器;第一中继转发器根据数据请求从非接触式智能卡读取响应数据,按照中继设备协议将响应数据进行封装,并通过串口2将封装后的响应数据发送至主控机。
主控机通过串口1将经过封装的响应数据发送至第二中继转发器;第二中继转发器将经过封装的响应数据发送至终端,实现终端与卡通道标识对应的目标卡通道内的智能卡的交互,完成终端测试。
在一次测试完成后,终端可以重新生成包含卡通道标识的智能卡切换指令,并发送至主控机。
在另一个实施例中,当智能卡为接触式智能卡时,参照图9中的终端测试系统904,包括:终端、主控机、探测板、接触切换电路和接触式智能卡槽。
其中,探测板用于插入终端的接触式插卡卡槽,可以将接触式插卡卡槽的触点信号引出并延长至与接触切换电路的输入端连接,探测板可以是probe探测板;当待测智能卡为接触式智能卡时,接触式智能卡槽为待测智能卡提供数据接口。接触式智能卡槽的Vcc、I/O、CLK和RST信号线分别于探测板引出的Vcc、I/O、CLK和RST信号线连接。主控机通过GPIO接口与接触切换电路连接,主控机还与通信机相连接。接触切换电路还与多个接触式卡通道相连接,每个接触式卡通道中存在一个接触式智能卡槽,每个接触式智能卡槽放置有接触式智能卡。
在一个实施例中,如图11所示,提供了一种接触切换电路,具体地,参照图11,接触切换电路的输入端通过Vcc、I/O、CLK和RST信号线连接探测板;输出端通过Vcc、I/O、CLK和RST信号线连接至接触式智能卡槽;接触切换电路的控制端包括A0、A1、A2和A3四根信号线,连接至主控机的GPIO接口;A0、A1、A2和A3四根信号线最多有16种电平变化,故接触切换电路的输出端最多可以连接16个接触式智能卡槽。
具体地,请同时按照图9和图11,终端向主控机发送智能卡切换指令,主控机从智能卡切换指令中获取卡通道标识,当卡通道标识对应的目标卡通道为接触式卡通道时,在预设通道切换列表中查询与卡通道标识对应的通道切换方式,根据查询到的通道切换方式调整接触切换电路中控制端的电平值;接触切换电路根据控制端的电平值将已连接卡通道切换至卡通道标识对应的目标卡通道。已连接卡通道可以是从接触切换电路的输出端至接触式智能卡槽之间的电路结构,也可以是从探测板至接触式智能卡槽之间的电路结构。比如,卡通道标识为Y1,其中Y表示卡通道为接触式卡通道,1表示接触式卡通道中的1号卡通道,主控机根据与卡通道标识Y1对应的通道切换方式,将接触切换电路中控制端A0、A1、A2和A3的电平值均置为0,则此时探测板的Vcc、I/O、CLK和RST信号线分别与卡通道标识Y1对应的卡通道内的接触式智能卡槽的Vcc、I/O、CLK和RST信号线连通,通道切换完毕。
终端可以通过连接的Vcc、I/O、CLK和RST信号线,直接从接触式智能卡槽内的待测智能卡获取数据从而完成终端测试。
在一个实施例中,如图12所示,提供了一种终端测试机箱,机箱用于放置主控机、非接触切换电路和接触切换电路、电源适配器、非接触式智能卡槽、接触式智能卡槽和USB接口;其中USB接口用于连接第二中继转发器和探测板,还可以下载应用控制程序和导出主控机运行时记录的日志信息。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是主控机,其内部结构图可以如图13所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和日志信息。计算机程序可以是应用控制程序,该应用控制程序用于执行已连接卡通道的切换、对终端进行测试和记录日志信息;该内存储器为非易失性存储介质中的操作系统和应用控制程序的运行提供环境。该计算机设备的网络接口连接有通信机,可以与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种终端测试方法。该计算机设备的显示屏可以是液晶显示屏(LCD),该计算机设备的串口用于连接第一中继转发器和第二中继转发器;该计算机设备的外扩GPIO资源排线用于连接主控机和非接触切换电路、主控机和接触切换电路,对已连接卡通道的切换进行控制。
本领域技术人员可以理解,图13中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,计算机程序被处理器执行时,使得处理器执行上述终端测试方法的步骤。此处终端测试方法的步骤可以是上述各个实施例的终端测试方法中的步骤。
在一个实施例中,提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时,使得处理器执行上述终端测试方法的步骤。此处终端测试方法的步骤可以是上述各个实施例的终端测试方法中的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (12)

  1. 一种终端测试方法,所述方法包括:
    接收智能卡切换指令;
    从所述智能卡切换指令中获取卡通道标识;
    当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;
    接收用于终端测试的数据请求;
    通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据;
    将所述响应数据通过第二中继转发器发送至终端从而完成终端测试。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述卡通道标识对应的目标卡通道为接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道,以使终端从所述目标卡通道内的待测智能卡读取数据从而完成终端测试。
  3. 根据权利要求1所述的方法,其特征在于,所述接收智能卡切换指令之后,还包括:
    确定是否正在通过智能卡对终端进行测试;
    当确定正在通过智能卡对所述终端进行测试时,停止对所述终端的测试;
    当停止对所述终端的测试后,执行所述从所述智能卡切换指令中获取卡通道标识的步骤。
  4. 根据权利要求1所述的方法,其特征在于,所述将已连接卡通道切换至所述卡通道标识对应的目标卡通道包括:
    在预设通道切换列表中查询与所述卡通道标识对应的通道切换方式;
    根据查询到的所述通道切换方式调整非接触切换电路中的电平值;
    根据所述电平值将已连接卡通道切换至所述卡通道标识对应的目标卡通道。
  5. 根据权利要求1所述的方法,其特征在于,所述将已连接卡通道切换至所述卡通道标识对应的目标卡通道之后,还包括:
    启动所述第一中继转发器和所述第二中继转发器;
    向启动后的第一中继转发器发送与所述卡通道标识对应的寻卡指令,以使所述第一中继转发器根据所述寻卡指令检测所述目标卡通道内的待测智能卡;
    当检测到所述目标卡通道内的待测智能卡时,执行所述接收用于终端测试的数据请求的步骤。
  6. 根据权利要求5所述的方法,其特征在于,所述通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据包括:
    将所接收的由所述中继设备协议封装的数据请求转发至所述目标卡通道内的第一中继转发器;所述数据请求,用于指示所述第一中继转发器从所述目标卡通道内的待测智能卡中读取针对所述数据请求的响应数据,并将所述响应数据按照所述中继设备协议进行封装;
    接收由所述第一中继转发器发送的经过封装的响应数据。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    确定与所述目标卡通道内非接触式智能卡槽对应的状态指示灯的工作状态;
    当按照所述卡通道标识将已连接卡通道切换至所述卡通道标识对应的目标卡通道时,将所述状态指示灯的工作状态切换为检测状态;
    当完成终端测试时,将所述状态指示灯的工作状态切换为测试完成状态。
  8. 一种终端测试装置,其特征在于,所述装置包括:
    切换接收模块,用于接收智能卡切换指令;
    标识获取模块,用于从所述智能卡切换指令中获取卡通道标识;
    通道切换模块,用于当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;
    请求接收模块,用于接收用于终端测试的数据请求;
    数据获取模块,用于通过第一中继转发器获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据;
    数据发送模块,用于将所述响应数据通过第二中继转发器发送至终端从而完成终端测试。
  9. 一种终端测试系统,其特征在于,所述系统包括:终端、主控机、第一中继转发器和第二中继转发器;
    所述终端,用于发送智能卡切换指令和用于终端测试的数据请求;
    所述主控机,接收智能卡切换指令;从所述智能卡切换指令中获取卡通道标识;当所述卡通道标识对应的目标卡通道为非接触式卡通道时,将已连接卡通道切换至所述卡通道标识对应的目标卡通道;接收用于终端测试的数据请求;
    所述第一中继转发器,用于获取所述目标卡通道内的待测智能卡中针对所述数据请求的响应数据并发送至所述主控机;
    所述第二中继转发器,用于将由所述主控机转发的所述响应数据发送至终端从而完成终端测试。
  10. 根据权利要求9所述的系统,其特征在于,所述系统还包括:接触式智能卡槽;
    所述接触式智能卡槽,用于当所述待测智能卡为接触式智能卡时,为所述待测智能卡提供数据接口;
    所述主控机还用于将已连接卡通道切换至所述卡通道标识对应的目标卡通道;
    所述终端还用于从所述目标卡通道内的待测智能卡读取数据从而完成终端测试。
  11. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。
  12. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。
PCT/CN2020/079920 2019-03-27 2020-03-18 终端测试方法、装置和终端测试系统 WO2020192520A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/769,080 US20240104313A1 (en) 2019-03-27 2020-03-18 Method, apparatus, and system for testing terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910238115.7 2019-03-27
CN201910238115.7A CN110069952B (zh) 2019-03-27 2019-03-27 终端测试方法、装置和终端测试系统

Publications (1)

Publication Number Publication Date
WO2020192520A1 true WO2020192520A1 (zh) 2020-10-01

Family

ID=67366672

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079920 WO2020192520A1 (zh) 2019-03-27 2020-03-18 终端测试方法、装置和终端测试系统

Country Status (3)

Country Link
US (1) US20240104313A1 (zh)
CN (1) CN110069952B (zh)
WO (1) WO2020192520A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069952B (zh) * 2019-03-27 2021-07-13 百富计算机技术(深圳)有限公司 终端测试方法、装置和终端测试系统
CN110569933A (zh) * 2019-09-02 2019-12-13 深圳市优克联新技术有限公司 一种智能卡管理装置及方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651713A (zh) * 2009-09-18 2010-02-17 北京握奇数据系统有限公司 一种智能卡网络数据传输方法及装置
CN106547691A (zh) * 2016-10-31 2017-03-29 福建联迪商用设备有限公司 一种运行于pc端的pos终端测试方法及系统
WO2019103919A1 (en) * 2017-11-22 2019-05-31 Walmart Apollo, Llc Test card for automated retail financial transaction system
CN110069952A (zh) * 2019-03-27 2019-07-30 百富计算机技术(深圳)有限公司 终端测试方法、装置和终端测试系统

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100643611B1 (ko) * 2003-08-05 2006-11-10 삼성전자주식회사 콤비형 스마트 카드 시험장치 및 방법
FR2859559B1 (fr) * 2003-09-10 2005-12-09 Ascom Monetel Lecteur de carte sans contact
US7154259B2 (en) * 2003-10-23 2006-12-26 Formfactor, Inc. Isolation buffers with controlled equal time delays
ATE475894T1 (de) * 2004-02-06 2010-08-15 Acquirer Systems Res Ltd Testsystem
JP2009003587A (ja) * 2007-06-20 2009-01-08 Fujitsu Ltd 試験装置、試験カード、試験システム
US8626591B2 (en) * 2007-08-30 2014-01-07 Mastercard International Incorporated Methods, systems, and computer program products for storing usual order preference data for recurrent orders
WO2009048618A1 (en) * 2007-10-11 2009-04-16 Veraconnex, Llc Probe card test apparatus and method
TW201236434A (en) * 2011-02-18 2012-09-01 Hon Hai Prec Ind Co Ltd System and method of automatically testing a mobile phone
WO2012142324A2 (en) * 2011-04-12 2012-10-18 Visa International Service Association Contactless test system
CN102760089A (zh) * 2011-04-28 2012-10-31 鸿富锦精密工业(深圳)有限公司 主板诊断卡
CN102999096B (zh) * 2011-09-14 2016-03-30 中山市云创知识产权服务有限公司 计算机
TWM433036U (en) * 2012-03-14 2012-07-01 Uniform Ind Corp Magnetic decoding chip testing device
US9697452B2 (en) * 2012-07-24 2017-07-04 On Track Innovations Ltd. Adapter for personal electronic devices and methods of use thereof
CN104216761B (zh) * 2013-06-04 2017-11-03 中国银联股份有限公司 一种在能够运行两种操作系统的装置中使用共享设备的方法
JP6216680B2 (ja) * 2014-04-18 2017-10-18 日本電産サンキョー株式会社 カードリーダおよびカードリーダの制御方法
ES2787215T3 (es) * 2015-07-23 2020-10-15 Legic Identsystems Ag Dispositivo de comunicación móvil soportado por un sistema informático basado en la nube
US20180157870A1 (en) * 2016-12-06 2018-06-07 Thomson Licensing Apparatus and Method of Reducing Movement of an Insertable Device During Temperature Cycles
CN106934310B (zh) * 2017-02-24 2019-09-13 飞天诚信科技股份有限公司 一种测试智能卡的方法及读卡器
US10755056B2 (en) * 2017-03-02 2020-08-25 Walmart Apollo, Llc Systems and methods for testing smart card operation
CN107172577B (zh) * 2017-06-09 2023-09-12 深圳达闼科技控股有限公司 终端、用户识别模块卡发行方法及计算机可读存储介质
CN207817887U (zh) * 2018-01-11 2018-09-04 深圳怡化电脑股份有限公司 一种读卡器卡头装置、读卡器及金融自助设备
CN108563968B (zh) * 2018-03-26 2020-06-02 百富计算机技术(深圳)有限公司 一种读卡方法、支付终端及终端设备
US10846490B1 (en) * 2019-07-08 2020-11-24 Taco Bell Corp. Electronic card reader testing system
US11429799B1 (en) * 2021-04-06 2022-08-30 Turing Video Proximity card reader testbed
US20240029525A1 (en) * 2022-07-22 2024-01-25 Ahold Delhaize Licensing Sàrl Systems and methods for testing point-of-sale devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651713A (zh) * 2009-09-18 2010-02-17 北京握奇数据系统有限公司 一种智能卡网络数据传输方法及装置
CN106547691A (zh) * 2016-10-31 2017-03-29 福建联迪商用设备有限公司 一种运行于pc端的pos终端测试方法及系统
WO2019103919A1 (en) * 2017-11-22 2019-05-31 Walmart Apollo, Llc Test card for automated retail financial transaction system
CN110069952A (zh) * 2019-03-27 2019-07-30 百富计算机技术(深圳)有限公司 终端测试方法、装置和终端测试系统

Also Published As

Publication number Publication date
CN110069952A (zh) 2019-07-30
US20240104313A1 (en) 2024-03-28
CN110069952B (zh) 2021-07-13

Similar Documents

Publication Publication Date Title
US20210357903A1 (en) Systems and methods for providing near field communications
US8862790B2 (en) Method for identifying version type of windows operating system on a host by a USB device
JP2004280817A (ja) セカンダリーコミュニケーションポートを使用してデバッグ及びソフトウエア開発を行うべく形態特定可能なスマートカード
WO2020192520A1 (zh) 终端测试方法、装置和终端测试系统
SG173004A1 (en) Portable mobile communication device and method of controlling near field communication
US7823133B2 (en) Smart card device and method for debug and software development
US9350831B2 (en) System and method for enabling a dual-wire protocol
CA2898203C (en) Detection of a transactional device
US9978056B2 (en) Smart card having multiple payment instruments
US10552826B2 (en) Selecting an application on a card
WO2022099563A1 (zh) 用于nfc卡模拟模式的选卡方法、芯片、终端和存储介质
CN110082671B (zh) 模拟测试方法、系统、装置、集线器和存储介质
KR101265574B1 (ko) 태그기능을 구비한 rf 카드 장치 및 그 제어방법
CN102255999B (zh) 终端与智能卡之间的通信协议确定方法以及扩展卡
US9160422B2 (en) Data capturing method of NFC protocol and NFC electronic device using the same
US9838831B2 (en) Mobile proximity coupling device with display
EP3236393B1 (en) Control of an external interface on a card
CN113591500B (zh) 一种nfc芯片读写次数自动检测方法及装置
CN107862224B (zh) 一种ic卡读写器的测试设备及其测试方法
US9838087B2 (en) Mobile proximity coupling device
WO2023050900A1 (zh) 数据处理方法、系统、终端和计算机可读存储介质
JP2010067107A (ja) 情報記憶媒体用リーダライタ
CN113794523A (zh) 近场通信设备的测试方法、设备及存储介质
EP3086272A1 (en) Selecting an application on a card
TWM479493U (zh) 無線記憶卡測試裝置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20778778

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 17769080

Country of ref document: US

122 Ep: pct application non-entry in european phase

Ref document number: 20778778

Country of ref document: EP

Kind code of ref document: A1