Can somebody provide a gps test app?

354 views
Skip to first unread message

Nio

unread,
Mar 26, 2009, 7:40:58 AM3/26/09
to android-porting
Hi,

Can anybody provide a gps test app? Thanks.

My email: luoda...@gmail.com

Thanks,

Nio

Mike Lockwood

unread,
Mar 26, 2009, 10:37:24 AM3/26/09
to android...@googlegroups.com
On Thu, Mar 26, 2009 at 7:40 AM, Nio <luoda...@gmail.com> wrote:
>
> Hi,
>
> Can anybody provide a gps test app? Thanks.

I am working on a GPS test application, but it only works on cupcake.
It also uses Maps, but it should be possible to disable that so it
would work in the open source build. I am working on the logistics
for releasing the source code. I'll let you know when it is ready.

Mike

--
Mike Lockwood
Google android team

Daliang Luo

unread,
Mar 26, 2009, 10:43:25 AM3/26/09
to android...@googlegroups.com
Ok, waiting for your app.

2009/3/26 Mike Lockwood <lock...@android.com>

Cédric Berger

unread,
Mar 26, 2009, 12:39:27 PM3/26/09
to android...@googlegroups.com
>> On Thu, Mar 26, 2009 at 7:40 AM, Nio <luoda...@gmail.com> wrote:
>> >
>> > Hi,
>> >
>> > Can anybody provide a gps test app? Thanks.

have a look at these :
YGPS ( with satellites postions):
http://andappstore.com/AndroidPhoneApplications/apps/38257
GPS status : http://andappstore.com/AndroidPhoneApplications/apps/44003
GPStat : http://andappstore.com/AndroidPhoneApplications/apps/42675

Nio

unread,
Mar 26, 2009, 11:48:50 PM3/26/09
to android-porting
Thanks Cedric

On 3月27日, 上午12时39分, Cédric Berger <cedric.berge...@gmail.com> wrote:

aow

unread,
Mar 31, 2009, 10:25:13 PM3/31/09
to android-porting
good tools,thanks!

On 3月27日, 上午12时39分, Cédric Berger <cedric.berge...@gmail.com> wrote:

Mike Lockwood

unread,
Apr 14, 2009, 9:30:39 AM4/14/09
to android...@googlegroups.com
On Thu, Mar 26, 2009 at 10:37 AM, Mike Lockwood <lock...@android.com> wrote:
> On Thu, Mar 26, 2009 at 7:40 AM, Nio <luoda...@gmail.com> wrote:
>>
>> Hi,
>>
>> Can anybody provide a gps test app? Thanks.
>
> I am working on a GPS test application, but it only works on cupcake.
> It also uses Maps, but it should be possible to disable that so it
> would work in the open source build.  I am working on the logistics
> for releasing the source code.  I'll let you know when it is ready.

I just released the sources to my GPS test application at:

http://github.com/mikeandroid/gpstest/

Note that this app uses APIs that are new in cupcake, and also
requires the Google Maps library. So it might not be that useful
until phones running cupcake are available.

GPSTest can be built using the new android 1.5 preview SDK that was
released yesterday (see
http://android-developers.blogspot.com/2009/04/getting-ready-for-android-15.html).
Prior to this SDK, there was no easy way to build GPSTest outside of
Google's internal cupcake source tree.

deepak singal

unread,
May 14, 2009, 8:21:16 AM5/14/09
to android-porting

Hi Cedric,

I am working on EVM-3530 board with externel GPS Device.
Now I want to test if it is working.
I'm connected GPS device on UART port and after android booting its
showing below log messages.


D/libhardware( 642): GPS hardware on this device start
D/LocationManagerService( 642): Found dir /data/location/gps
D/LocationManagerService( 642): name = gps
D/GpsLocationProvider( 642): enable
D/gps_celestial( 642): gps will read from /dev/ttyS2
D/gps_celestial( 642): gps state initialized
D/GpsLocationProvider( 642): GpsNetworkThread start
D/gps_celestial( 642): gps thread running
D/GpsLocationProvider( 642): GpsEventThread starting
D/GpsLocationProvider( 642): NetworkThread starting
D/GpsLocationProvider( 642): NetworkThread wait for network


/***************gps.c log*******************************/

D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): Received: '$GPGLL,8960.0000,N,00000.0000,E,
000157.006,V,N*43
D/gps_celestial( 643): '
D/gps_celestial( 643): Found 8 tokens
D/gps_celestial( 643): 0: 'GPGLL'
D/gps_celestial( 643): 1: '8960.0000'
D/gps_celestial( 643): 2: 'N'
D/gps_celestial( 643): 3: '00000.0000'
D/gps_celestial( 643): 4: 'E'
D/gps_celestial( 643): 5: '000157.006'
D/gps_celestial( 643): 6: 'V'
D/gps_celestial( 643): 7: 'N'
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): Received: '$GPRMC,000157.006,V,8960.0000,N,
00000.0000,E,0.000,0.00,060180,,,N*4B
D/gps_celestial( 643): '
D/gps_celestial( 643): Found 13 tokens
D/gps_celestial( 643): 0: 'GPRMC'
D/gps_celestial( 643): 1: '000157.006'
D/gps_celestial( 643): 2: 'V'
D/gps_celestial( 643): 3: '8960.0000'
D/gps_celestial( 643): 4: 'N'
D/gps_celestial( 643): 5: '00000.0000'
D/gps_celestial( 643): 6: 'E'
D/gps_celestial( 643): 7: '0.000'
D/gps_celestial( 643): 8: '0.00'
D/gps_celestial( 643): 9: '060180'
D/gps_celestial( 643): 10: ''
D/gps_celestial( 643): 11: ''
D/gps_celestial( 643): 12: 'N'
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): Received: '$GPVTG,0.00,T,,M,0.000,N,
0.000,K,N*32
D/gps_celestial( 643): '
D/gps_celestial( 643): Found 10 tokens
D/gps_celestial( 643): 0: 'GPVTG'
D/gps_celestial( 643): 1: '0.00'
D/gps_celestial( 643): 2: 'T'
D/gps_celestial( 643): 3: ''
D/gps_celestial( 643): 4: 'M'
D/gps_celestial( 643): 5: '0.000'
D/gps_celestial( 643): 6: 'N'
D/gps_celestial( 643): 7: '0.000'
D/gps_celestial( 643): 8: 'K'
D/gps_celestial( 643): 9: 'N'
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): gps fd event end
D/gps_celestial( 643): gps thread received 1 events
D/gps_celestial( 643): Received: '$GPGGA,000158.006,8960.0000,N,
00000.0000,E,0,0,,137.0,M,13.0,M,,*49
D/gps_celestial( 643): '
D/gps_celestial( 643): Found 14 tokens
D/gps_celestial( 643): 0: 'GPGGA'
D/gps_celestial( 643): 1: '000158.006'
D/gps_celestial( 643): 2: '8960.0000'
D/gps_celestial( 643): 3: 'N'
D/gps_celestial( 643): 4: '00000.0000'
D/gps_celestial( 643): 5: 'E'
D/gps_celestial( 643): 6: '0'
D/gps_celestial( 643): 7: '0'
D/gps_celestial( 643): 8: ''
D/gps_celestial( 643): 9: '137.0'
D/gps_celestial( 643): 10: 'M'
D/gps_celestial( 643): 11: '13.0'
D/gps_celestial( 643): 12: 'M'
D/gps_celestial( 643): 13: ''
D/gps_celestial( 643): gps fd event end
/*****************gps.c log************************************/

/************ GPS Disable ****************************/
# D/GpsLocationProvider( 642): disable
D/GpsLocationProvider( 642): GpsEventThread exiting
D/gps_celestial( 642): gps send quit command
D/gps_celestial( 642): gps waiting for command thread to stop
D/gps_celestial( 642): gps thread received 1 events
D/gps_celestial( 642): gps control fd event
D/gps_celestial( 642): gps thread quitting on demand
D/gps_celestial( 642): gps deinit complete

/*********** GPS disable ******************************/

/************ GPS enable ******************************/
#
# D/GpsLocationProvider( 642): enable
D/gps_celestial( 642): gps will read from /dev/ttyS2
D/gps_celestial( 642): gps thread running
D/gps_celestial( 642): gps state initialized
D/GpsLocationProvider( 642): GpsEventThread starting
D/GpsLocationProvider( 642): NetworkThread wait for network
/*************** GPS enable **********************/

I am trying to use a below free app (Gps Stats):
GPStat : http://andappstore.com/AndroidPhoneApplications/apps/42675
Above application show below msgs:

# D/LocationManager( 791): Constructor: service =
android.location.ILocationManager$Stub$Proxy@43493930
D/LocationManagerService( 642): _requestLocationUpdates: listener =
android.os.BinderProxy@435c9600
D/GpsLocationProvider( 642): setMinTime 1000
D/gps_celestial( 642): celestial_gps_set_fix_frequency: called
D/gps_celestial( 642): gps fix frquency set to 1 secs
D/gps_celestial( 642): gps fix frquency set to 1 secs
D/gps_celestial( 642): celestial_gps_start: called
D/gps_celestial( 642): gps thread received 1 events
D/gps_celestial( 642): gps control fd event
D/gps_celestial( 642): gps thread starting location_cb=0xad345ead
D/gps_celestial( 642): gps sent to device: $PUBX,40,GGA,1,1,1,0*5b
D/gps_celestial( 642): gps sent to device: $PUBX,40,GLL,1,1,1,0*5d
D/gps_celestial( 642): gps sent to device: $PUBX,40,ZDA,1,1,1,0*45
D/gps_celestial( 642): gps sent to device: $PUBX,40,VTG,1,1,1,0*5f
D/gps_celestial( 642): gps sent to device: $PUBX,40,GSA,1,1,1,0*4f
D/gps_celestial( 642): gps sent to device: $PUBX,40,GSV,1,1,1,0*58
D/gps_celestial( 642): gps sent to device: $PUBX,40,RMC,1,1,1,0*46
D/gps_celestial( 642): gps dev start initiated
D/gps_celestial( 642): gps status callback: 0x1
D/gps_celestial( 642): gps entered timer thread
D/gps_celestial( 642): gps timer exp
D/gps_celestial( 642): gps timer exp
D/gps_celestial( 642): gps timer exp


D/dalvikvm( 798): GC freed 1866 objects / 126096 bytes in 68ms
D/LocationManager( 791): removeUpdates: listener =
com.android.gmonix.gpstat.GpStat$7@43480d80
D/LocationManagerService( 642): _removeUpdates: listener =
android.os.BinderProxy@435c9600
D/gps_celestial( 642): celestial_gps_stop: called
D/gps_celestial( 642): gps thread received 1 events
D/gps_celestial( 642): gps control fd event
D/gps_celestial( 642): gps thread stopping
D/gps_celestial( 642): gps sent to device: $PUBX,40,GGA,10,10,10,0*6b
D/gps_celestial( 642): gps sent to device: $PUBX,40,GLL,10,10,10,0*6d
D/gps_celestial( 642): gps sent to device: $PUBX,40,ZDA,10,10,10,0*75
D/gps_celestial( 642): gps sent to device: $PUBX,40,VTG,10,10,10,0*6f
D/gps_celestial( 642): gps sent to device: $PUBX,40,GSA,10,10,10,0*7f
D/gps_celestial( 642): gps sent to device: $PUBX,40,GSV,10,10,10,0*68
D/gps_celestial( 642): gps sent to device: $PUBX,40,RMC,10,10,10,0*76
D/gps_celestial( 642): gps dev stop initiated
D/gps_celestial( 642): gps timer thread destroyed
D/gps_celestial( 642): gps status callback: 0x2

I/NotificationService( 642): enqueueToast
pkg=com.android.gmonix.gpstat
callback=android.app.ITransientNotification$Stub$1

But nothing update on the application Gps Stats screen means its
showing :
Satellite(s) : 0
Heure Gps : 00:00:00
Altitude : 0 meter(s)
Latitude : 0
Longitude : 0
Vitesse : 0 km/h

Any thing wrong with my GPS hal code???
I am using android 1.0 source code.
Any help will be highly appreciated.


Thanks & Regards
Deepak
Reply all
Reply to author
Forward
0 new messages