Author Topic: How to change SERIAL_BUFFER_SIZE for digix?  (Read 2976 times)

sdc

  • Newbie
  • *
  • Posts: 3
How to change SERIAL_BUFFER_SIZE for digix?
« on: May 08, 2014, 07:22:46 am »
So I'm reading in a NMEA string and its cutting me off at 63 chars. I tried changing HardwareSerial.h in /avr/cores/arduino to be
Code: [Select]
#if (RAMEND < 1000)
  #define SERIAL_BUFFER_SIZE 64
#else
  #define SERIAL_BUFFER_SIZE 128
#endif


but it made no difference.   Anyone have any ideas on how to change the serial buffer size for the digix?

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: How to change SERIAL_BUFFER_SIZE for digix?
« Reply #1 on: May 12, 2014, 09:40:59 pm »
There must be something else in play here - the wifi module uses serial and has hundreds of characters - my guess is the buffer on the GPS side is running out before the DigiX receives it - or something similar. What baud is the GPS at?

kd7eir

  • Newbie
  • *
  • Posts: 17
Re: How to change SERIAL_BUFFER_SIZE for digix?
« Reply #2 on: May 21, 2014, 10:43:20 am »
What GPS are you using?  Have you researched it to see if there are any known issues on that side?