On Mar 18, 1:20 pm, "[email protected]" <[email protected]>
wrote:
> Hi,
>
> I am working on porting gps and use NXP gps module for gps position.
> It works fine, but i faced a problem that i can not report a correct
> gps status data to GpsLocationProvider.java via gps_sv_status_callback
> funtion. because in structure GpsSvStatus{
>         /** number of SVs currently visible */
>         int         num_svs;
>
>         /** Array of space vehicle info */
>         GpsSvInfo   sv_list[GPS_MAX_SVS];
>
>         /** bit mask indicating which SVs have ephemeris data */
>         uint32_t    ephemeris_mask;
>
>         /** bit mask indicating which SVs have almanac data */
>         uint32_t    almanac_mask;
>
>         /**
>          * bit mask indicating which SVs were used for
>          * computing the most recent position fix
>          */
>         uint32_t    used_in_fix_mask;}, i do not know what a value i should 
> give to
>
> ephemeris_mask,almanac_mask,used_in_fix_mask.
>
> I can get the gps data from the gps module, and bellow is my debug
> info:
> sending fix lat=22.5423 lon=113.946 altitude=-138.569 time=Wed Mar 18
> 07:32:17 2009
> D/GpsLocationProvider(  700): reportLocation lat: 22.54233323461825
> long: 113.94645713861372 timestamp: 1237361537
> D/GpsLocationProvider(  700):
> android_location_GpsLocationProvider_wait_for_event
>  Satellites in view count: 14, for used: 9
> Satellites in view 0: prn: 9 , snr: 20.000000, ele:75.000000, azi:
> 97.000000 , for fix: 1
> Satellites in view 1: prn: 21 , snr: 28.000000, ele:68.000000, azi:
> 275.000000 , for fix: 1
> Satellites in view 2: prn: 24 , snr: 22.000000, ele:52.000000, azi:
> 168.000000 , for fix: 1
> Satellites in view 3: prn: 18 , snr: 23.000000, ele:40.000000, azi:
> 331.000000 , for fix: 1
> Satellites in view 4: prn: 15 , snr: 18.000000, ele:28.000000, azi:
> 39.000000 , for fix: 1
> Satellites in view 5: prn: 26 , snr: 24.000000, ele:19.000000, azi:
> 42.000000 , for fix: 0
> Satellites in view 6: prn: 27 , snr: 22.000000, ele:16.000000, azi:
> 39.000000 , for fix: 1
> Satellites in view 7: prn: 5 , snr: 0.000000, ele:15.000000, azi:
> 159.000000 , for fix: 0
> Satellites in view 8: prn: 22 , snr: 42.000000, ele:15.000000, azi:
> 311.000000 , for fix: 1
> Satellites in view 9: prn: 12 , snr: 0.000000, ele:13.000000, azi:
> 148.000000 , for fix: 0
> Satellites in view 10: prn: 14 , snr: 43.000000, ele:13.000000, azi:
> 256.000000 , for fix: 1
> Satellites in view 11: prn: 10 , snr: 0.000000, ele:11.000000, azi:
> 104.000000 , for fix: 0
> Satellites in view 12: prn: 29 , snr: 39.000000, ele:11.000000, azi:
> 203.000000 , for fix: 1
> Satellites in view 13: prn: 30 , snr: 0.000000, ele:4.000000, azi:
> 180.000000 , for fix: 0
> D/GpsLocationProvider(  700):
> android_location_GpsLocationProvider_wait_for_event
>
> Can anyone tell me how to give a correct value to
> ephemeris_mask,almanac_mask and used_in_fix_mask that base on the
> above debug info .

Check the code for Openmoko here 
http://git.koolu.org/?p=freerunner/platform/hardware/gps.git;a=summary
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to