Parsing GPS (GPGGA) leads to a strange behavior
<p>I am not sure how to explain this.
I get the GPS data only every few times. Okay i see that I don't have fix GPS, maybe because the receiver is near the window. After some times I get an error. Is it because I ask every second, should I ask only every 2,3 seconds? </p>

<p>And this is the console output. xxxx.xxxx is my latitude and yyyyy.yyyy is my longitude. </p>

<pre><code>$GPGGA,07222,,,,,,,,,,,,, 
$GPGGA,072226.000,xxxx.x,,,,,,,,,,,,     
$GPGGA,072227.000,xxxx.xxxx,N,yyyyy.,,,,,,,,,, 
$GPGGA,072228.000,xxxx.xxxx,N,yyyyy.yyyy,E,0,02,,,,,,, 
$GPGGA,072229.000,xxxx.xxxx,N,yyyyy.yyyy,E,0,02,99.0,290.85,,,,, 
$GPGGA,072230.000,xxxx.xxxx,N,yyyyy.yyyy,E,0,02,99.0,290.85,M,48.0,M,*5, 
$GPGGA,072231.000,xxxx.xxxx,N,yyyyy.yyyy,E,0,02,99.0,290.85,M,48.0,M,*50, 
$GPGGA,072232.000,xxxx.xxxx,N,yyyyy.yyyy,E,0,02,99.0,290.85,M,48.0,M,*53,     
$GPGGA,07223,,,,,,,,,,,,, 
$GPGGA,07223,,,,,,,,,,,,, 
$GPGGA,07223,,,,,,,,,,,,, 
$GPGGA,07223,,,,,,,,,,,,, 
Error reading GPS from /dev/ttyO4!
</code></pre>