Ntag i2c plus - bidirectional communication

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Ntag i2c plus - bidirectional communication

ソリューションへジャンプ
1,532件の閲覧回数
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,383件の閲覧回数
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,383件の閲覧回数
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,384件の閲覧回数
kaibuechler
Contributor II

Hello Kan,

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

0 件の賞賛
返信
888件の閲覧回数
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 件の賞賛
返信