Fwd: Cell_log > gsmmap

Dario Lombardo dario.lombardo at libero.it
Tue Feb 1 08:43:09 UTC 2011



On 01/31/2011 05:08 PM, Sébastien Lorquet wrote:
> I don't see a huge problem here.
>
> Why not just parse whatever message with interesting info we get?
>
> if (!strcmp("$GPGLL") {
>     // extract coordinates and update buffer
> } else if(!strcmp("$GPGGA)) {
>     // extract coordinates and update buffer
> } else if(!strcmp("$GPRMC)) {
>     // extract coordinates and update buffer
> } else if(!strcmp("$GPSuperProprietaryMessageWithAwesomePrecisionData")) {
>     // extract coordinates and update buffer
> } else {
>     // no luck with this message
>     return;
> }
>
I agree with this approach. I think that is scales well if a new device 
(even not nmea) wants to be supported.




More information about the baseband-devel mailing list