Closed bcruskie closed 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.
Should be fixed in build 66.
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.
I have confirmed as of build 70 that the "provider=gps" exception is not thrown with a gps test app.
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
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.
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