# US 12,118,423 B2 · Method, apparatus, and system for testing terminal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,118,423 B2
- Document ID: US12118423B2
- Status: Granted
- Kind: B2
- Application number: 17/769,080
- Filed: 2020-03-18
- Published: 2024-03-28
- Granted: 2024-10-15
- Earliest claimed: 2019-03-27
- Assignees: Shenzhen Zolon Technology Co., Ltd.
- Applicants: Shenzhen Zolon Technology Co., Ltd.
- Inventors: Kunxian Song; Renchi Zheng; Xiuliang Chen; Xiaoyu Huang
- Web page: https://patentgrep.com/patent/US12118423B2

## CPC

- G06K 7/0095: {Testing the sensing arrangement, e.g. testing if a magnetic card reader, bar code reader, RFID interrogator or smart card reader functions properly (testing of electrical circuits G01R31/28)}
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS

## Abstract

A method, an apparatus, and a system for testing a terminal. The method includes: receiving a smart card switching instruction; acquiring a card channel identifier from the smart card switching instruction; switching a connected-card channel to a 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; receiving a data request for a terminal test; acquiring, through a first relay repeater, response data in response to the data request, from a smart card to be tested within the target card channel; and sending, through a second relay repeater, the response data to the terminal whereby accomplishing the terminal test.

## Claims

### Claim 1

A method for testing a terminal, being applied to a master controller, the terminal being provided with a plurality of card channels, with each of the plurality of card channels having a card channel identifier, which is a unique identifier for each of the plurality of card channels; and the plurality of card channels comprising: contactless card channels configured to accommodate contactless cards, respectively, and contact card channels configured to accommodate contact cards, respectively; and
the method comprising:
receiving, by the master controller, a smart card switching instruction sent from the terminal;
acquiring, by the master controller, a card channel identifier from the smart card switching instruction;
determining, by the master controller, according to the card channel identifier whether a contactless card channel or a contact card channel is to be switched to, and switching, by the master controller, according to the card channel identifier, a connected-card channel to a target card channel corresponding to the card channel identifier, wherein the connected-card channel is a card channel that is being connected with the master controller currently, and the target card channel is a card channel that is to be connected with the master controller;
receiving, by the master controller, a data request for a terminal test sent from the terminal;
acquiring, by the master controller, through a first relay repeater, response data in response to the data request, from a smart card to be tested within the target card channel; and
sending, by the master controller, through a second relay repeater, the response data to the terminal whereby accomplishing the terminal test.

### Claim 2 (depends on 1)

The method according to claim 1, after receiving the smart card switching instruction, the method further comprising:
determining whether the terminal is currently being tested through a smart card;
stopping a current test performed on the terminal when it is determined that the terminal is currently being tested via the smart card; and
executing the step of acquiring the card channel identifier from the smart card switching instruction after the current test on the terminal is stopped.

### Claim 3 (depends on 1)

The method according to claim 1, wherein said switching the connected-card channel to the target card channel corresponding to the card channel identifier comprises:
searching, in a preset channel switching list, for a channel switching mode corresponding to the card channel identifier;
adjusting an electric level value of a contactless switching circuit or a contact switching circuit according to the channel switching mode that is searched out; and
switching the connected-card channel to the target cart channel corresponding to the card channel identifier according to the electric level value.

### Claim 4 (depends on 1)

The method according to claim 1, after said switching the connected-card channel to the target card channel corresponding to the card channel identifier, the method further comprising:
starting the first relay repeater and the second relay repeater;
sending a card searching instruction corresponding to the card channel identifier to the first relay repeat after being started, whereby allowing the first relay repeater to detect a smart cart to be tested within the target card channel according to the card searching instruction; and
performing the step of receiving the data request for terminal test when the smart card to be tested within the target card channel is detected.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the acquiring, through the first relay repeater, of response data in response to the data request, from the smart card to be tested within the target card channel comprises:
receiving a data request encapsulated by a relay device protocol, and forwarding the data request to the first relay repeater within the target card channel; wherein the data request is configured for instructing the first relay repeater to read the response data in response to the data request, from the smart card to be tested within the target card channel, and encapsulating the response data according to the relay device protocol; and
receiving the response data capsulated and sent by the first relay repeater.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
determining a working state of a state indicator lamp corresponding to a contactless smart card slot within the target card channel;
switching the working state of the state indicator lamp to a test state, when the connected-card channel is switched, according to the card channel identifier, to the target card channel corresponding to the card channel identifier; and
switching the working state of the state indicator lamp to a test completion state, when the terminal test is accomplished.

### Claim 7

A system for testing a terminal, comprising: a terminal, a master controller, a first repeater, and a second repeater;
the terminal being provided with a plurality of card channels, with each of the plurality of card channels having a card channel identifier, which is a unique identifier for each of the plurality of card channels; and the plurality of card channels comprising: contactless card channels configured to accommodate contactless cards, respectively, and contact card channels configured to accommodate contact cards, respectively;
wherein
the terminal is configured for:
sending a smart card switching instruction and a data request for terminal test;
the master controller is configured for:
receiving the smart card switching instruction;
acquiring a card channel identifier from the smart card switching instruction;
determining according to the card channel identifier whether a contactless card channel or a contact card channel is to be switched to, and switching according to the card channel identifier a connected-card channel to a target card channel corresponding to the card channel identifier, wherein the connected-card channel is a card channel that is being connected with the master controller currently, and the target card channel is a card channel that is to be connected with the master controller; and
receiving a data request for a terminal test;
the first relay repeater is configured for:
acquiring response data in response to the data request, from a smart card to be tested within the target card channel, and sending the response data to the master controller; and
the second relay repeater is configured for:
sending the response data forwarded by the master controller to the terminal whereby accomplishing the terminal test.

### Claim 8 (depends on 7)

The system according to claim 7, further comprising: a contact smart card slot;
wherein
the contact smart card slot is configured for: providing a data interface for the smart card to be tested when the contact smart card slot is a contact smart card;
the master controller is further configured for switching the connected-card channel to a target card channel corresponding to the card channel identifier; and
the terminal is further configured for reading data from a smart card to be tested within the target card channel, whereby accomplishing the terminal test.

### Claim 9

A computer device, comprising:
a memory;
a processor; and
a computer program, stored by the memory and running on the processor, and configured for implementing a method for testing a terminal, when being executed by the processor;
wherein
the method is applied to a master controller;
the terminal is provided with a plurality of card channels, with each of the plurality of card channels having a card channel identifier, which is a unique identifier for each of the plurality of card channels; and the plurality of card channels comprises: contactless card channels configured to accommodate contactless cards, respectively, and contact card channels configured to accommodate contact cards, respectively;
the method comprises:
receiving, by the master controller, a smart card switching instruction sent from the terminal;
acquiring, by the master controller, a card channel identifier from the smart card switching instruction;
determining, by the master controller, according to the card channel identifier whether a contactless card channel or a contact card channel is to be switched to, and switching, by the master controller, according to the card channel identifier, a connected-card channel to a target card channel corresponding to the card channel identifier, wherein the connected-card channel is a card channel that is being connected with the master controller currently, and the target card channel is a card channel that is to be connected with the master controller;
receiving, by the master controller, a data request for a terminal test sent from the terminal;
acquiring, by the master controller, through a first relay repeater, response data in response to the data request, from a smart card to be tested within the target card channel; and
sending, by the master controller, through a second relay repeater, the response data to the terminal whereby accomplishing the terminal test.

### Claim 10 (depends on 9)

The computer device according to claim 9, wherein after receiving the smart card switching instruction, the method further comprises:
determining whether the terminal is currently being tested through a smart card;
stopping a current test performed on the terminal when it is determined that the terminal is currently being tested via the smart card; and
executing the step of acquiring the card channel identifier from the smart card switching instruction after the current test on the terminal is stopped.

### Claim 11 (depends on 9)

The computer device according to claim 9, wherein said switching a connected-card channel to a target card channel corresponding to the card channel identifier comprises:
searching, in a preset channel switching list, for a channel switching mode corresponding to the card channel identifier;
adjusting an electric level value of a contactless switching circuit or a contact switching circuit according to the channel switching mode that is searched out; and
switching the connected-card channel to the target cart channel corresponding to the card channel identifier according to the electric level value.

### Claim 12 (depends on 9)

The computer device according to claim 9, wherein after said switching the connected-card channel to the target card channel corresponding to the card channel identifier, the method further comprises:
starting the first relay repeater and the second relay repeater;
sending a card searching instruction corresponding to the card channel identifier to the first relay repeat after being started, whereby allowing the first relay repeater to detect a smart cart to be tested within the target card channel according to the card searching instruction; and
performing the step of receiving the data request for terminal test when the smart card to be tested within the target card channel is detected.

### Claim 13 (depends on 12)

The computer device according to claim 12, wherein the acquiring, through the first relay repeater, of response data in response to the data request, from the smart card to be tested within the target card channel comprises:
receiving a data request encapsulated by a relay device protocol, and forwarding the data request to the first relay repeater within the target card channel; wherein the data request is configured for instructing the first relay repeater to read the response data in response to the data request, from the smart card to be tested within the target card channel, and encapsulating the response data according to the relay device protocol; and
receiving the response data capsulated and sent by the first relay repeater.

### Claim 14 (depends on 9)

The computer device according to claim 9, wherein the method further comprises:
determining a working state of a state indicator lamp corresponding to a contactless smart card slot within the target card channel;
switching the working state of the state indicator lamp to a test state, when the connected-card channel is switched, according to the card channel identifier, to the target card channel corresponding to the card channel identifier; and
switching the working state of the state indicator lamp to a test completion state, when the terminal test is accomplished.
