Hello Mario.
Thanks for the answer. I checked all the tips mentioned above, but the error was in tml.c. That's my fault. This is fixed. But now I can observe the following behavior.
Here is a description of the experiment.
I have two devices. One of them does not have NDEF for transmission. Let's call it as Client. Another device has NDEF for transmission. I suggest to call it Server. So when I try to establish a connection, I have several bad connections, and then I have one correct connection. Here is an example of logs for both devices:
-----------------------------------------------
<info> app: Server started.
<info> app: WAITING FOR DEVICE DISCOVERY
<info> app: - P2P TARGET MODE: Activated from remote Initiator
<info> app: PEER LOST
<info> app: WAITING FOR DEVICE DISCOVERY
<info> app: - P2P TARGET MODE: Remote Target activated
<info> app: PEER LOST
<info> app: WAITING FOR DEVICE DISCOVERY
<info> app: - P2P TARGET MODE: Activated from remote Initiator
<info> app: --- NDEF Record sent
-----------------------------------------------
<info> app: Client started.
<info> app: WAITING FOR DEVICE DISCOVERY
<info> app: - P2P INITIATOR MODE: Remote Target activated
<info> app: PEER LOST
<info> app: WAITING FOR DEVICE DISCOVERY
<info> app: - P2P INITIATOR MODE: Activated from remote Initiator
<info> app: PEER LOST
<info> app: WAITING FOR DEVICE DISCOVERY
<info> app: - P2P INITIATOR MODE: Remote Target activated
<info> app: --- NDEF record received:
-----------------------------------------------
As you can see before successfully connecting, I have some bad connections. Their number varies from 0 to 5. What could be the reason for this behavior? What should I pay attention to? What additional information should I present to you in order to successfully solve the problem?
Thank you in advance!
Regards,
Alex.