buglabs / android

This is the top-level git repo for the Android on BUG 2.0 project. Refer to the start page for further details:
http://buglabs.github.com/android/
5 stars 1 forks source link

Support BUG GPS module #14

Closed kgilmer closed 13 years ago

kgilmer commented 13 years ago

Enable the BUG GPS module in android, so location aware apps can use the location service API.

kgilmer commented 13 years ago

Device support has been added but needs to be tested.

teknosalsero commented 13 years ago

I will do this (soon I hope). How can we do a dope maps app? This is the key.

kgilmer commented 13 years ago

One issue that was brought up is the ability to switch between internal/external antennas. AFAIK the external antenna is the default. Since the internal one doesn't work very well, we may never actually need to switch.

teknosalsero commented 13 years ago

Not entirely clear what this means. Is the antenna issue preventing us from doing a Google Maps thing..?

kgilmer commented 13 years ago

No, they are unrelated. Google Maps on BUG is a policy issue w/ Google, not a technical problem.

kgilmer commented 13 years ago

With external antenna, GPS seems to be getting valid data from ttyS0:

$GPGGA,230855.000,3246.2599,N,13021.8977,E,1,08,1.4,34.5,M,27.9,M,,0000*62

$GPGLL,3246.2599,N,13021.8977,E,230855.000,A*39

$GPGSA,A,3,10,04,02,07,05,08,17,13,,,,,2.5,1.4,2.1*3A

$GPGSV,3,1,11,02,68,350,31,10,58,024,28,04,54,091,34,05,51,283,31*73

$GPGSV,3,2,11,13,25,042,17,26,22,197,,07,15,095,36,17,11,161,26*78

$GPGSV,3,3,11,08,10,123,35,29,09,321,,25,02,293,*49

$GPRMC,230855.000,A,3246.2599,N,13021.8977,E,0.29,23.34,100411,,*36

$GPVTG,23.34,T,,M,0.29,N,0.5,K*58

$GPZDA,230856.000,10,04,2011,,*5B

$GPGGA,230856.000,3246.2600,N,13021.8978,E,1,08,1.4,34.4,M,27.9,M,,0000*6C

$GPGLL,3246.2600,N,13021.8978,E,230856.000,A*36

$GPGSA,A,3,10,04,02,07,05,08,17,13,,,,,2.5,1.4,2.1*3A

$GPGSV,3,1,11,02,68,350,31,10,58,024,28,04,54,091,34,05,51,283,31*73

$GPGSV,3,2,11,13,25,042,17,26,22,197,,07,15,095,36,17,11,161,26*78

$GPGSV,3,3,11,08,10,123,35,29,09,321,,25,02,293,*49

$GPRMC,230856.000,A,3246.2600,N,13021.8978,E,0.34,20.19,100411,,*39

kgilmer commented 13 years ago

GPSLocationProvider seems to be failing on start:

E/GpsLocationProvider( 1005): native_start failed in startNavigating()

kgilmer commented 13 years ago

GPS framework now seems to be getting and parsing the nmea sentences:

D/gps ( 1010): nmea_reader_parse: fix mask is 142739488 D/gps ( 1010): gps fd event end D/gps ( 1010): gps thread received 1 events D/gps ( 1010): gps fd event end D/gps ( 1010): gps thread received 1 events D/gps ( 1010): Received: '$GPGSV,3,1,11,15,66,329,25,27,64,171,35,09,43,191,38,21,43,298,26_79 D/gps ( 1010): ' D/gps ( 1010): Found 20 tokens D/gps ( 1010): 0: 'GPGSV' D/gps ( 1010): 1: '3' D/gps ( 1010): 2: '1' D/gps ( 1010): 3: '11' D/gps ( 1010): 4: '15' D/gps ( 1010): 5: '66' D/gps ( 1010): 6: '329' D/gps ( 1010): 7: '25' D/gps ( 1010): 8: '27' D/gps ( 1010): 9: '64' D/gps ( 1010): 10: '171' D/gps ( 1010): 11: '35' D/gps ( 1010): 12: '09' D/gps ( 1010): 13: '43' D/gps ( 1010): 14: '191' D/gps ( 1010): 15: '38' D/gps ( 1010): 16: '21' D/gps ( 1010): 17: '43' D/gps ( 1010): 18: '298' D/gps ( 1010): 19: '26' D/gps ( 1010): nmea_reader_parse: GSV message with total satellites 11 D/gps ( 1010): gps fd event end D/gps ( 1010): gps thread received 1 events D/gps ( 1010): Received: '$GPGSV,3,2,11,26,43,037,,05,35,101,39,18,17,305,20,29,07,227,_76 D/gps ( 1010): ' D/gps ( 1010): Found 19 tokens D/gps ( 1010): 0: 'GPGSV' D/gps ( 1010): 1: '3' D/gps ( 1010): 2: '2' D/gps ( 1010): 3: '11' D/gps ( 1010): 4: '26' D/gps ( 1010): 5: '43' D/gps ( 1010): 6: '037' D/gps ( 1010): 7: '' D/gps ( 1010): 8: '05' D/gps ( 1010): 9: '35' D/gps ( 1010): 10: '101' D/gps ( 1010): 11: '39' D/gps ( 1010): 12: '18' D/gps ( 1010): 13: '17' D/gps ( 1010): 14: '305' D/gps ( 1010): 15: '20' D/gps ( 1010): 16: '29' D/gps ( 1010): 17: '07' D/gps ( 1010): 18: '227' D/gps ( 1010): nmea_reader_parse: GSV message with total satellites 11 D/gps ( 1010): gps fd event end D/gps ( 1010): gps thread received 1 events D/gps ( 1010): gps fd event end D/gps ( 1010): gps thread received 1 events D/gps ( 1010): Received: '$GPGSV,3,3,11,28,07,063,16,08,03,033,,02,00,156,_4D D/gps ( 1010): ' D/gps ( 1010): Found 15 tokens D/gps ( 1010): 0: 'GPGSV' D/gps ( 1010): 1: '3' D/gps ( 1010): 2: '3' D/gps ( 1010): 3: '11' D/gps ( 1010): 4: '28' D/gps ( 1010): 5: '07' D/gps ( 1010): 6: '063' D/gps ( 1010): 7: '16' D/gps ( 1010): 8: '08' D/gps ( 1010): 9: '03' D/gps ( 1010): 10: '033' D/gps ( 1010): 11: '' D/gps ( 1010): 12: '02' D/gps ( 1010): 13: '00' D/gps ( 1010): 14: '156' D/gps ( 1010): nmea_reader_parse: GSV message with total satellites 11 D/gps ( 1010): gps fd event end D/gps ( 1010): gps thread received 1 events D/gps ( 1010): Received: '$GPRMC,030238.000,A,3246.2654,N,13021.9006,E,0.16,103.58,110411,,_0D D/gps ( 1010): ' D/gps ( 1010): Found 11 tokens D/gps ( 1010): 0: 'GPRMC' D/gps ( 1010): 1: '030238.000' D/gps ( 1010): 2: 'A' D/gps ( 1010): 3: '3246.2654' D/gps ( 1010): 4: 'N' D/gps ( 1010): 5: '13021.9006' D/gps ( 1010): 6: 'E' D/gps ( 1010): 7: '0.16' D/gps ( 1010): 8: '103.58' D/gps ( 1010): 9: '110411' D/gps ( 1010): 10: '' D/gps ( 1010): gps fd event end D/gps ( 1010): gps thread received 1 events D/gps ( 1010): Received: '$GPVTG,103.58,T,,M,0.16,N,0.3,K*6B D/gps ( 1010): '

bcruskie commented 13 years ago

Verified this in build 89. Verified fix data was valid on ttyS0. GPS Test apps worked with valid gps data from the GPS Provider interface. Closing