Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and terminal for processing offset based on master-slave communication structure

A communication structure and terminal technology, which is applied in the field of information security and can solve problems such as inability to use

Active Publication Date: 2017-08-11
FEITIAN TECHNOLOGIES
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Traditional terminals have the ability to directly connect to the network through network cables or telephone lines, and can directly process redaction within the terminal according to whether the networking is successful and the response data from the server; but for new terminals based on the master-slave communication structure (for example, with USB For the terminal, the terminal is a passive communication device), the instructions received from the server are scattered, and the processing of one operation must be dispersed into multiple instructions for processing, so the terminal based on the master-slave communication structure cannot use the traditional The method in the terminal handles the offset

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and terminal for processing offset based on master-slave communication structure
  • A method and terminal for processing offset based on master-slave communication structure
  • A method and terminal for processing offset based on master-slave communication structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0137] Embodiment 1 of the present invention provides a method for processing offsets based on a master-slave communication structure, such as figure 1 shown, including:

[0138] Step S1: the terminal waits to receive an instruction from the server;

[0139] Step S2: The terminal judges the instruction type of the received instruction, if it is the first acquisition instruction, execute step S3, if it is the second acquisition instruction, execute step S6, if it is the first completed instruction, execute step S8, and if it is other, execute the corresponding operation, Return the operation result to the server and return to step S1;

[0140] Step S3: The terminal resets the redaction identification, clears the redaction data in the terminal, acquires the first data in the first acquisition instruction, and acquires the data in the smart card according to the first acquisition instruction;

[0141] Step S4: The terminal judges whether the data in the smart card is successful...

Embodiment 2

[0155] Embodiment 2 of the present invention provides a method for processing offsets based on a master-slave communication structure, such as figure 2 and image 3 shown, including:

[0156] Step 100: The terminal is powered on, and the instruction sequence identifier is initialized;

[0157] Specifically, the initial value of the instruction sequence identifier is 0;

[0158] Step 101: the terminal receives an instruction from the server;

[0159] Step 102: The terminal judges whether the format of the instruction is legal, and if so, executes Step 103, otherwise returns an error message to the server, and returns to Step 101;

[0160] Specifically, the terminal judges whether the category byte and the instruction code byte in the instruction are the first preset data, and if so, determines that the format of the instruction is legal; otherwise, determines that the format of the instruction is illegal;

[0161] For example, the terminal determines whether the type byte ...

Embodiment 3

[0250] Embodiment 3 of the present invention provides a terminal for processing offsets based on a master-slave communication structure, such as Figure 4 As shown, it includes: a receiving module 201, a first judging module 202, a first processing module 203, a second judging module 204, a first obtaining module 205, a sending module 206, a first generating module 207, a second generating module 208, a The third generating module 209, the fourth generating module 210, the second processing module 211 and the third judging module 212;

[0251] A receiving module 201, configured to receive instructions from the server;

[0252] The first judging module 202 is configured to judge the instruction type of the instruction received by the receiving module 201;

[0253] The first processing module 203 is configured to, when the first judging module 202 determines that the instruction type of the instruction is the first acquisition instruction, reset the redaction flag, clear the re...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a terminal for processing offset based on a master-slave communication structure. The method includes: the terminal receives an instruction; if it is the first acquisition instruction, clears the offset data, acquires the first data in the first acquisition instruction, and acquires The data in the smart card generates the first response data and returns the first response data; if it is the second acquisition instruction, then generates the offset data and the second response data, and returns the second response data; if it is the first completion instruction, then according to the first completion instruction Operate the smart card, process the correction data according to the first completion instruction and the second return data returned by the smart card, generate the third response data, and return the third response data; when the terminal receives the command to obtain the correction data, return the Redact the data. In the method of the present invention, the terminal, as a passive communication device, separately processes the redaction in a plurality of instructions contained in a complete operation, and the server can obtain the redemption data in the terminal immediately.

Description

technical field [0001] The invention relates to the field of information security, in particular to a method and terminal for processing offsets based on a master-slave communication structure. Background technique [0002] The terminal is connected to the server through the host, and has the functions of supporting consumption, pre-authorization, loading, and balance inquiry. Traditional terminals have the ability to directly connect to the network through network cables or telephone lines, and can directly process redaction within the terminal according to whether the networking is successful and the response data from the server; but for new terminals based on the master-slave communication structure (for example, with USB For the terminal, the terminal is a passive communication device), the instructions received from the server are scattered, and the processing of one operation must be dispersed into multiple instructions for processing, so the terminal based on the mas...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES