Skip to content

Commit 22622e7

Browse files
committed
Create local copy of BluetoothSerial library to expand RS buffer size. Fix for issue 23.
1 parent 201183f commit 22622e7

File tree

4 files changed

+947
-4
lines changed

4 files changed

+947
-4
lines changed

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ float battChangeRate = 0.0;
183183

184184
//Hardware serial and BT buffers
185185
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
186-
#include "BluetoothSerial.h"
186+
#include "src/BluetoothSerial/BluetoothSerial.h"
187187
BluetoothSerial SerialBT;
188188
#include "esp_bt.h" //Core access is needed for BT stop. See customBTstop() for more info.
189189
#include "esp_gap_bt_api.h" //Needed for setting of pin. See issue: https://github.com/sparkfun/SparkFun_RTK_Surveyor/issues/5
@@ -195,8 +195,8 @@ HardwareSerial serialGNSS(2);
195195
#define TXD2 17
196196

197197
#define SERIAL_SIZE_RX 4096 //Reduced from 16384 to make room for WiFi/NTRIP server capabilities
198-
uint8_t rBuffer[SERIAL_SIZE_RX]; //Buffer for reading F9P
199-
uint8_t wBuffer[SERIAL_SIZE_RX]; //Buffer for writing to F9P
198+
uint8_t rBuffer[SERIAL_SIZE_RX]; //Buffer for reading from F9P to SPP
199+
uint8_t wBuffer[SERIAL_SIZE_RX]; //Buffer for writing from incoming SPP to F9P
200200
TaskHandle_t F9PSerialReadTaskHandle = NULL; //Store handles so that we can kill them if user goes into WiFi NTRIP Server mode
201201
TaskHandle_t F9PSerialWriteTaskHandle = NULL; //Store handles so that we can kill them if user goes into WiFi NTRIP Server mode
202202

Firmware/RTK_Surveyor/Tasks.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void F9PSerialWriteTask(void *e)
1414
{
1515
if (inTestMode == false)
1616
{
17-
//Pass bytes tp GNSS receiver
17+
//Pass bytes to GNSS receiver
1818
auto s = SerialBT.readBytes(wBuffer, SERIAL_SIZE_RX);
1919
serialGNSS.write(wBuffer, s);
2020
}

0 commit comments

Comments
 (0)