Ntag i2c plus - bidirectional communication

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

Ntag i2c plus - bidirectional communication

跳至解决方案
1,700 次查看
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,551 次查看
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,551 次查看
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,552 次查看
kaibuechler
Contributor II

Hello Kan,

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

0 项奖励
回复
1,056 次查看
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 项奖励
回复