imx6ul sim module transmit card command error?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx6ul sim module transmit card command error?

1,295 次查看
kevinliu
Contributor I

hello everyone,when the card response I received, i immediately send a new command to card, but i find the third byte of command is always error.

The last command and new command is about 100us. If i add the time to 200us, the command is sent success. I don't know the driver have problem

or the sim module hardware have problem.Have you encountered this problem?

0 项奖励
回复
1 回复

1,030 次查看
Yuri
NXP Employee
NXP Employee

Hello,

Please look at my comments below.

1.
  Section 44.4 (Initialization/Application Information) of i.MX6 UL RM

(Rev. 1, 04/2016) provides detailed information how to configure and program the SIM.

2.

  Is Your SIM module I/O interface two-wired or one-wire ?

In the last case some pauses between transfers are reasonable.

3.

  Is it possible to checkthe basic function of the SIM module with the

application mxc_sim_test.out ?

See the following example:

/unit_tests/mxc_sim_test.out

atr[0]= 0x3b atr[1]= 0x68 atr[2]= 0x0 atr[3]= 0x0 atr[4]= 0x0 atr[5]= 0x73 atr[6]= 0xc8

atr[7]= 0x40 atr[8]= 0x0 atr[9]= 0x0 atr[10]= 0x90 atr[11]= 0x0

rx[0] = 0x6e rx[1] = 0x0

rx[0] = 0x6d rx[1] = 0x0

rx[0] = 0x6e rx[1] = 0x0

4.

You may use the mxc_sim_test as an example.

The directory below is the directory of the SIM test application source code.

<Yocto_BuildDir>/linux_test/linuxtest_fsl/linux-test/test/mxc_sim_test

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复