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

GPS Module inserted in slot 2: GPS Driver doesn't appear to load during boot up #25

Closed bcruskie closed 13 years ago

bcruskie commented 13 years ago

Here is the output from my serial console. GPS module is inserted into slot 2. You can see where the EEPROM is found and read for LCD and GPS but then you only see the LCD driver load.

http://pastebin.me/1a05c599123ef181510442d7c50d99a5

kgilmer commented 13 years ago

The serial port associated w/ GPS in slot 2 is ttyS0. It looks like there may be a parsing issue. I'll have to take a closer look.

kgilmer commented 13 years ago

Should be fixed in build 66.

bcruskie commented 13 years ago

I'm running build 67. When I cat /dev/ttyS0 in minicom I'm getting a ton of $PTTK,ERROR,108*7A messages along with a $GPGGA & $GPGLL string every once and a while. I can't seem to figure out how to write the output to file. I get a permission denied when trying it in a adb shell. I will email you a screenshot.

kgilmer commented 13 years ago

I have confirmed as of build 70 that the "provider=gps" exception is not thrown with a gps test app.

kgilmer commented 13 years ago

The serial port requires some initialization. The BUG Linux release uses the 'stty' program to set the serial port. I've added busybox to the BUG Android release and added the proper command in init.rc to set the serial port. I now see on the serial line after boot:

$GPVTG,,T,,M,,N,,K*4E

$GPGGA,000105.063,,,,,0,00,,,M,0.0,M,,0000*57

$GPGLL,,,,,000105.063,V*19

$GPGSA,A,1,,,,,,,,,,,,,,,*1E

$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7C

$GPGSV,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76

$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78

$GPRMC,000105.063,V,,,,,,,291006,,*22

$GPVTG,,T,,M,,N,,K*4E

$GPGGA,000106.065,,,,,0,00,,,M,0.0,M,,0000*52

$GPGLL,,,,,000106.065,V*1C

$GPGSA,A,1,,,,,,,,,,,,,,,*1E

$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7C

$GPGSV,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76

$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78

$GPRMC,000106.065,V,,,,,,,291006,,*27

$GPVTG,,T,,M,,N,,K*4E

$GPGGA,000107.074,,,,,0,00,,,M,0.0,M,,0000*53

$GPGLL,,,,,000107.074,V*1D

$GPGSA,A,1,,,,,,,,,,,,,,,*1E

$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7C

$GPGSV,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76

$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78

$GPRMC,000107.074,V,,,,,,,291006,,*26

$GPVTG,,T,,M,,N,,K*4E

kgilmer commented 13 years ago

I'm able to now get valid NMEA data from the GPS serial port after the stty fix. Putting all details in issue #14, and closing this one.

https://github.com/buglabs/android/issues/14