Ntag i2c plus - bidirectional communication

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

Ntag i2c plus - bidirectional communication

跳至解决方案
1,165 次查看
kaibuechler
Contributor II

Hello,

I'm doing a bidirectional communication between a android phone and a microcontroller in the following sequence:

  1. the phone writes data to sram
  2. the micrcontroller reads the data from the phone
  3. microcontroller writes data to the sram
  4. phone reads the data from the microcontroller
  5. start all over again (read write is always done to the same addresses)

The Problem I see is, that the data written at step 3. is only successfull for the first cylce. The i2c write is alright, but the phone does not read the new data, it always reads the values from the first cycle

I quess my seassion Register configuration does not match for the 2nd cylce, has someone a idea here?

标记 (2)
0 项奖励
1 解答
1,016 次查看
kaibuechler
Contributor II

Hello Kan,

I found the solution. You always need to disable the put-through mode before changeing the transfer direction.

在原帖中查看解决方案

0 项奖励
3 回复数
1,016 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Kai,

Could you provide more details regarding this issue? Like data log between the phone and micro controller.

Thanks for your patience!


Have a great day,
Kan

0 项奖励
1,017 次查看
kaibuechler
Contributor II

Hello Kan,

I found the solution. You always need to disable the put-through mode before changeing the transfer direction.

0 项奖励
521 次查看
Jimmywder03
Contributor III

Hello kaibuechler ,

I saw that you find the solution, can you attach the project to see how you did it, becuase i would like to do the same.

it will be very helpfull for me

thanks for all

 

标记 (1)
0 项奖励