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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


