<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GPS buffer size ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71611/gps-buffer-size</link><description>Dear Members ? 
 What&amp;#39;s the best size for GPS Rxbuffer from UART with speed 9600 baud ? 
 I&amp;#39;m using Neo 6M GPS module, 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Feb 2021 08:00:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71611/gps-buffer-size" /><item><title>RE: GPS buffer size ?</title><link>https://devzone.nordicsemi.com/thread/294539?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 08:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec49bec-a012-4308-b4b4-54a13f3a4d9f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;none of this is UART related. How do you initialize your UART, and how do you handle the incoming UART bytes? Do you use an event handler, or do you use a blocking UART rx function? If so, which one?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS buffer size ?</title><link>https://devzone.nordicsemi.com/thread/294504?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 00:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e6528d-320e-48ff-acd0-ee3b750aaee0</guid><dc:creator>RixtronixLAB</dc:creator><description>&lt;p&gt;currently I&amp;#39;m using 256 bytes,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the callback,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(GPS.rxIndex &amp;lt; sizeof(GPS.rxBuffer)-2)
	{
	
		GPS.rxBuffer[GPS.rxIndex] = GPS.rxTmp; //originally
		 
		GPS.rxIndex++;
		memcpy((void *)line_buffer_GPS, GPS.rxBuffer, GPS.rxIndex); 
	
			
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I try using memcpy to keep the buffer for processing,&lt;/p&gt;
&lt;p&gt;I got &amp;quot;null&amp;quot; all the time&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;str=strstr((char*)line_buffer_GPS,&amp;quot;$GPGGA,&amp;quot;);&lt;/p&gt;
&lt;p&gt;or&lt;br /&gt;==&amp;gt; always gone (empty buffer / astable ) str=strstr((char*)GPS.rxBuffer,&amp;quot;$GPGGA,&amp;quot;); &lt;/p&gt;
&lt;p&gt;?? any ideas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS buffer size ?</title><link>https://devzone.nordicsemi.com/thread/294412?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 14:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf7fd24-a634-4961-861f-1bf0dea5367c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am not sure I understand your setup. Are you using 512 or 256 bytes buffer? And what is the GPS module spitting out? How is it truncated? How did you set up your UART?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPS buffer size ?</title><link>https://devzone.nordicsemi.com/thread/294297?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 01:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3058d1df-bddb-45f3-a6d2-020e942f1c33</guid><dc:creator>RixtronixLAB</dc:creator><description>&lt;p&gt;Data from GPS :&lt;/p&gt;
&lt;p&gt;$GPGSV,3,2,11,13,38,221,22,14,78,058,23,15,04,228,,17,10,025,*7E&lt;br /&gt;&lt;br /&gt;$A,151045.00,3207.99912,S,11559.30940,E,1,04,7.21,10.1,M,-30.6,M,,*56&lt;br /&gt;&lt;br /&gt;$GPGSA,A,2,30,07,05,13,,,,,,,,,7.28,7.21,1.00*08&lt;br /&gt;&lt;br /&gt;$GPGSV,3,1,11,05,47,269,25,07,24,119,23,08,10,130,,09,14,058,177775,47,269,25,07&lt;br /&gt;,24,119,24,08,10,130,,09,14,058,16*74&lt;br /&gt;&lt;br /&gt;$GPGSV,3,2,11,13,38,221,21,14,78,058,23,15,04,228,,17,10,025,*7D&lt;br /&gt;&lt;br /&gt;$GPGSV,3,3,11,19,00,009,,28,72,016,16,30,55,148,22*49&lt;br /&gt;&lt;br /&gt;$GPGLL,3207.99923,S,11559.30946,E,151050.00,A,A*7B&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I reckon it&amp;#39;s 512 bytes for buffer, but it&amp;#39;s truncated when I transmitted to UART0 in I used 512 bytes buffer,&lt;/p&gt;
&lt;p&gt;currently I used 256 bytes,&lt;/p&gt;
&lt;p&gt;How can I increse it to 512 bytes without truncating it ? thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>