首页 > 其他 > 详细

Sim Card--002

时间:2015-12-18 16:24:53      阅读:150      评论:0      收藏:0      [点我收藏+]

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 of VSIM can also be controlled by directly programming the SIM_CTL0(Power_On bit[7]).

Protocol Mode

In normal case, the sim card is 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 are not must all, but it must has 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 are 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 are no data need to send but just command.

The received data has no ACK signal but just some NULL signals

The commands satisfy the rules are as : invalidte, rehabilitate

技术分享

@@ Protocol State Machine

技术分享

Sim Card--002

原文:http://www.cnblogs.com/dongyanxia1000/p/5057031.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!