AGPS and XTRA GPS _ Code Aurora Forum

download AGPS and XTRA GPS _ Code Aurora Forum

of 2

description

descarga de datos AGPS para un mejor geolocalizacion en dispositivos moviles, especialmente Android.

Transcript of AGPS and XTRA GPS _ Code Aurora Forum

  • Wed,12/14/201118:39 #1

    hadim

    Thu,12/15/201108:39 #2

    wealas

    Top

    5posts/0newLoginorregistertopostcomments Lastpost

    Top

    AGPSandXTRAGPS

    AGPSandXTRAGPSHi,

    HowcanIenableAGPSandXTRAGPS?IdidntfindanyXTRAGPSserveroninternet.HoweverIgotoneforAGPS:supl.google.com

    SoIsetthegpsipdecimalonSetAGPSConfig().ButIdontknowhowtoenablethedownload...

    Lastquestion:doyouknowanyXTRAGPSserverIcoulduse?andhowenableitwithGobiAPI?

    Cheers,

    Re:AGPSandXTRAGPSI'vebeenunabletogetXTRAtowork,maybebecauseIcan'tfindhowtosettheserverintheAPI.I'vebeenabletosettheautomaticXTRAdownloadsuccessfullybutwhenItrytoforceanXTRAdownloadIgetaweird1033error.ForagpsyoufirstneedtosetthePDSoperationmodeto1(atleastIthinkyouhaveto)usingtheSetPDSDefaultscallandthensettheagpssettings.HereisthecodeIusedthistosetittothegoogleserver:

    operation=c_ulong(1)timeout=c_byte(64)interval=c_ulong(1000)accuracy=c_ulong(5)exit=gobi.SetPDSDefaults(operation,timeout,interval,accuracy)print'SetPDSDefaultsexitcode:'+str(exit)

    pAgpsServer=c_ulong(struct.unpack('>I',struct.pack('BBBB',*map(int,'74.125.127.192'.split('.'))))[0])pAgpsPort=c_ulong(7276)exit=gobi.SetAGPSConfig(pAgpsServer,pAgpsPort)print'SetAGPSConfigexitcode:'+str(exit)

    pPdsEnabled=c_ulong(1)exit=gobi.SetPDSState(pPdsEnabled)print'SetPDSStateexitcode:'+str(exit)

    IthinkitworkedbecauseIwasseeingatleast10satellitesbeingprobed

  • hadim

    Thu,12/15/201109:13 #3

    Thu,12/15/201109:22 #4

    wealas

    Thu,01/05/201212:57 #5

    dlukas

    Top

    Top

    rightawaybutIthinkyoualsoneedtohavetheGSMconnectionactiveotherwiseI'mnotsurehowthedevicecanconnecttotheagpsservers.Re:AGPSandXTRAGPSThefunctionsrunwellbutdoesntseemstohaveanyeffectonmydevice.GPSfixstilldoesntcomeevenoutsideandwithatotallybluesky...HoweverIseesomestallites(10moreorless).AndwiththebestconditionIgot3satelittes"enabled"whichmeanswithSNR>0.

    Whendoyougetafix?numberofsatelitteswithSNRandhowmucharetheSNR?Canyouactuallyseeifdeviceisdownloadinganythingonsupl.google.com,becauseIdontseeanythinginmylog.

    Lastquestion:whatisSNR?:D

    Re:AGPSandXTRAGPSSNRsignaltonoiseratiohttp://en.wikipedia.org/wiki/Signaltonoise_ratioThat'sawaytomeasurehowusablesignalis.

    I'veneveractuallygottenafixbutIonlyplayedwiththeGPSonenightinmyhotelroomwhichdidn'thavethebestofviews.Imanagedtogetonly1satelliteenabledandlaterattemptsresultedingpsdnotlikingthedatacomingontheNMEAportsoIdidn'tseeanything.

    Idon'tthinkwe'llbeabletoseeanytraffictotheagpsserverbecauseIthinkthatwouldhappeninthedevicefirmware(thusnoinfointheOS)andIdoubttherewillbeanyinfoontheNMEAport.ButmaybeI'mwrong.

    Ialsodon'tknowifthatagpsserverisvalid.IcanconnecttotheportandIfoundpostsonlineaboutpeopleusingitbutIcan'tverifythismyselfandIdon'treallycareabouttheGPSthatmuchconsideringIhaveaphonethatworksjustfine:)Re:AGPSandXTRAGPSTheGobi3000APIareratherlimitedinwhatyoucando,andsomeofit(IE:AGPS)isjustacarryoverfrompreviousproducts,andisntsupportedonGobi3000.

    Ifyoureallywanttoplaywiththesethingsindepth,usethenewextensibleAPIwevejustreleasedhttps://www.codeaurora.org/patches/quic/gobi/Gobi/

    Fulldocumentationshouldbeshowingupshortlyondeveloper.qualcomm.com(lookforQMI_PDSPositionDeterminationService)

    Notethatwhatisandisnotsupportedvariesgreatlybetweenchips,soexpectalotoftrialanderror.IllbehappytoprovidewhathelpIcan,butImnotoneoftheGPSdevelopersforthisproject.