1

マイクロコントローラに sim を接続しました。rst、i/o、および clck ピンが正しく配線されている。私のボードにはハードウェア UART がありますが、半二重ではなく全二重であるため、RX/TX を一緒にジャンパしました。

これまでのところ、ISO-7816 に従って RST をトグルすると、UART バッファが SIM カードが応答する ATR でいっぱいになります。ATR を受信したら、UART を TX モードに変更し、PPS を送信します。送信後、UART を RX 専用モードに戻します。ISO-7816 に記載されている正しい形式に従っていますが、sim から確認バイトを受け取りません。確認は、私が送信した設定の繰り返しになるはずです。

4

2 に答える 2

1

I suppose your problem is of the same origin as I had with gsm modems. Sending a command you get an acknowledgement from the device, then send the next command, get ack, etc, etc. Soon or later the device hangs up.

The key is the interpretation of the acknowledgement. You may think the acknowledgement means the command is accepted AND executed. However - at least at ALL gsm modems I know - it means no more but the command was accepted and INTERPRETED - but not executed. In case of time consuming commands you send your next command during previous command is being executed. You do it because you may think acknowledgement means the command is done - but it is not true. The device may or may not buffering cumulative commands, but soon or later the device runs out of resources and hangs up.

I have no experience with device you use but the phenomena seems to be the same.

于 2013-08-29T09:18:12.457 に答える