yelomo / java-android-beam-api

Automatically exported from code.google.com/p/java-android-beam-api
0 stars 0 forks source link

Big message problem #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I have a problem with this code. When I want to receive a large message (bigger 
than 11kBytes). If my message is bigger than this, the phone return an "Receive 
not ready" Frame (RNR) and the next frame is a Frame Reject (FRMR). For the 
details of this frames, see LLCPdoc on NFC forum.

I'm using a Acer S500 4.1.2 and an Xperia Sola 4.0.4

Have you got a solution ?

Ty

Christophe

Original issue reported on code.google.com by chrip...@gmail.com on 26 Apr 2013 at 6:54

GoogleCodeExporter commented 9 years ago
A little more information, 

For My RNR frame, the phone is return me 0x13 0xA0 0x0B
so DSAP = 0x04, PTYPE = 0x0E ( = RNR), SSAP = 0x20

for the sequence, I have 0x0B = 0000 1011 --> N(R) = 1011

For the next frame (FRMR) I have : 0x12 0x20 0x1C 0xC7 0x7B 0x6B 
so DSAP = 0x04, PTYPE = 0x08 (FRMR), SSAP  0x20
0x1C = 00011100 --> W,I,R = 0 and S = 1 --> sequence error so I think when I 
receive the RNR, I must do something but I don't know what...
0xC7 = sequence number
0x7B = Vs (current value of send state variable) = C / Vr (current value of 
receive state variable) = B
0x6B = idem but fr ack

Original comment by chrip...@gmail.com on 26 Apr 2013 at 7:56

GoogleCodeExporter commented 9 years ago
Sry for the late reply, do you use the tagged Version? NFC_0.1.0_FINAL
There where some changes regarding a similar issue in the trunk.

Original comment by wilkooley on 3 Sep 2013 at 7:25