SIM Power Supply
Vsim is the power supply to the SIM card.
During the activation/deactivation process, Vsim output is automatically controlled.
The on/off Vsim can also is controlled by directly programming the sim_ctl0(power_on bit[7]).
Protocol Mode
In normal case, the SIM card was in Prot_mode 0.
---ack/nack (Prot_mode 1)
In this case, the process flow of simcard control as:
1. Send command to SIM card
2. Receive Ack/nack from SIM card (not must)
3. Send data to SIM card (not must)
4. Receive Ack/nack from SIM card (not must)
5. Receive data from SIM card
Note: The item 2/3/4 is not must all, but it must have one of them, and it must need one ack/nack.
The commands satisfy the rule are:select, verify, change, seek, enable, disable, increase, unlock, terminal response.
@@ ACK only when send data
@@ NACK only when send data
@@ Ack/nack when send data
@@ ACK when receive data
In this case, there is no data need to send but just command. The received data should followed the ACK signal.
The commands satisfy the rules are:status, read binary, read record, get response and fetch.
@@ No Ack/nack (Prot_mode 2)
In this case, there is no data need to send but just command.
The received data has a no ACK signal but just some NULL signals
The commands satisfy the rules are as:invalidte, rehabilitate
@@ Protocol State machine
Sim card--002