From fb9e53b245226222053974b0e0382e01b6ddd45f Mon Sep 17 00:00:00 2001 From: Frederik Juul Date: Fri, 8 Mar 2013 11:52:51 +0100 Subject: [PATCH 1/2] Changed LSB of Bluetoothbuffer length to BULK_MAXPKTSIZE-11 rather than 64 --- SPP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPP.cpp b/SPP.cpp index 5d026a15..8a4daf8e 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -308,7 +308,7 @@ void SPP::ACLData(uint8_t* l2capinbuf) { rfcommbuf[3] = 0xE0; // Pre difined for Bluetooth, see 5.5.3 of TS 07.10 Adaption for RFCOMM rfcommbuf[4] = 0x00; // Priority rfcommbuf[5] = 0x00; // Timer - rfcommbuf[6] = 0x40; // Max Fram Size LSB - we will just set this to 64 + rfcommbuf[6] = BULK_MAXPKTSIZE-11; // Max Fram Size LSB - set to the size of received data (53) rfcommbuf[7] = 0x00; // Max Fram Size MSB rfcommbuf[8] = 0x00; // MaxRatransm. rfcommbuf[9] = 0x00; // Number of Frames From 5735a0d740ec567a3d41f6876fc93ff582eaa552 Mon Sep 17 00:00:00 2001 From: Frederik Juul Date: Fri, 15 Mar 2013 11:57:33 +0100 Subject: [PATCH 2/2] Changed LSB of buffer size to BULK_MAXPKTSIZE-14 --- SPP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPP.cpp b/SPP.cpp index 8a4daf8e..960c514e 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -308,7 +308,7 @@ void SPP::ACLData(uint8_t* l2capinbuf) { rfcommbuf[3] = 0xE0; // Pre difined for Bluetooth, see 5.5.3 of TS 07.10 Adaption for RFCOMM rfcommbuf[4] = 0x00; // Priority rfcommbuf[5] = 0x00; // Timer - rfcommbuf[6] = BULK_MAXPKTSIZE-11; // Max Fram Size LSB - set to the size of received data (53) + rfcommbuf[6] = BULK_MAXPKTSIZE-14; // Max Fram Size LSB - set to the size of received data (53) rfcommbuf[7] = 0x00; // Max Fram Size MSB rfcommbuf[8] = 0x00; // MaxRatransm. rfcommbuf[9] = 0x00; // Number of Frames