[Q] Can we provide data manually to locationManager other than taking from GPS device - General Questions and Answers

HI All, I wanna find how will locationManager take data from a GPS device/GPS driver ? Can I directly provide data to location manager so that my GPS data reaches all applications. How can LocationManager pick data from GPS available, whats the link between this API and actual device/ driver.
setaltitude(), setLongitude(),..other set apis, will this apis help me in providing data to location manager?
Please provide how can i create a interface to provide GPS data to LocationManager( ) ?
Thanks and Regards -Poorna T

Related

NEED gps logger in NMEA format...

Hi guys,
I need a simple sw to install on my i-mate Jamin that log in a text file (NMEA) the gps position....
Any idea?
Fransons GPS Gate, that way you can log AND share the GPS port to other software at the same time. Or search the now for the TomTom GPS Driver for version 3 (GPS driver relase version 2,06 or 2,07) - this contains a log facility and doesn't require the main mapping application to work its a stand alone application - Mike

Accessing gps and digital compass raw data

Can anyone tell me how I access the gps and digital compass raw data?
I am currently writing an application but am unsure how to access this data from the device.
Thanks,
Michelle
Make a call to the GPS COMM port then parse the NMEA data that streams in to extract what you need, Lat, Long, heading, speed (in knotts) will all be found in the GPRMC line, if you need altitude you will need an extra line from the GPS but the accuracy of altitude is not very good to be honest - what are you scripting? - Mike

[Q] Android API for GPS location

Hi,
I have Hero H7000 GSM phone with Android 2.2.1. Some application which using GPS data show speed approx. 1,9x higher then real speed. First my idea was about some mistake in sw - behaviour looks like as twice conversion from knots (nm/h) to km/h because (km/h = 1,852x nm/h)... But problem is generic for all applications using GPS data. I was use U-Blox app. for NMEA logging, and in RAW NMEA log zero speed is correctly received. But Android API provide 1,29m/s for applications. Do you have some idea where problem is locate? And idea about how to fix it?
Thanks
SDG
ACTUALIZATION: I made NMEA log (approx. 30km by car). In raw NMEA sentences captured by "u-center" is correct speed. Maximum is around 90km/h. But all applications using Android API show twice more. Please, do you have some idea about repair of this bug?
SDG

Understanding Android GPS Architecture

Plz see the Attached GPS Architecture diagram 1st before reading below Article:
Location Services using GPS in Android consist of following Architectural Components
1) GPS Chip
2) GPS Driver
3) GL Engine
4) Android Framework
5) User Applications
Now Lets Understand each
GPS Chip: Radio Frequency Receiver that directly communicates with GPS Satellites
GPS Driver: GPS Driver System Software that uses Low level API’s to Communicate with the GPS chip, at the system level it may consist of a single or multiple files located at /System/Lib/hw/ Or /Vendor/Lib/hw/ files names usually starts with Prefix GPS and Postfix So (i.e gps.default.so or gps.aries.so e.t.c) depending upon the Android version and Smartphone Platform.
GL Engine: Actually the heart of this overall system.
At System level it consist of files at Path /system/bin with names like glgps or gpsd (Platform Specific)
It works using the Configuration Parameters which consist of .xml and .conf files (i.e glconfig.xml, gps.xml, Jupiter.xml, gpsconfig.xml and gps.conf, secgps.conf e.t.c). The Physical Location and names of files again depends upon Android version and Platform, but they are mostly at (/system/etc , /system/etc/gps , /vendor/etc/, /data/gps e.t.c), depending upon the Configuration and Platform, it takes initial Location Information from Cell Towers, then it take it read NVRAM , it is most important as here it store assistance data from GPS Lock, and it may also use xtra data.
NVRAM information is mostly location at /data/gps in a file with .sto ext (i.e gldata.sto) and xtra data files (lto.dat, xtra.bin, epo.dat e.t.c Platform dependent),
Using all this information Gl Engine instruct / Assist the GPS Driver, mostly Gl Engine is able to Detect multiple GPS satellites for which it is GPS driver is Programmed, but to Lock it need some extra information (Timing, Alm. / Emp.e.t.c) which it could either download from GPS satellites (Standalone Mode: very slow speed bits/sec.) or it could use internet to access SUPL/NTP servers (MS Based/MS Assisted Fast speed MB/sec.)
After all this activity, it saves all the data in NVRAM for future use.
Android Location Services : It consist of Android Framework Classes like Location Manager that Provide services to the use applications using the GL Engine.
User Applications: Location services Applications like Google Maps, Sygic, Navigon , TomTom e.t.c.
Keeping all this information in mind now lets see how the GPS Faster Fix Solutions in Market do.
Faster Fix Solutions like GPS Status & Tool Box, GPS Test, GPS Doctor e.t.c mostly handle two things.
1) Download XTRA Data (lto.dat , xtra.bin , epo.dat, gldata.sto e.t.c)
2) Modify GPS.conf (Root Required)
But this not always works.
Devices uses Google as Supl Server but most devices are unable to use it due to invalid/expired certificates and Google servers rejects the Assistance requests in such scenario Users should use SUPL.NOKIA.COM:7275 , which although slow (but something is better then nothing)
If something is wrong with GL Engine or GPS Driver, it may need Re flashing but a little could be done if GPS Chip Reception is Low or Problem is at Hardware Level, some time need soldering skills for hardware alteration (Risky)
http://forum.xda-developers.com/showthread.php?t=1318892
The Other Configuration Parameter which users could modify is xml Configuration file( Take Backup 1st) at Least a Programmer could get Debug Log to understand where things are going wrong, using below parameters.
cLogEnabled="true" acLogDirectory="/sdcard/gps" and LogPriMask, LogFacMask and also DEBUG_LEVEL (gps.conf)
Hope everyone could easily improves their GPS Performance using this guide for any platform.
Wow, thank you, this is very useful!
Neat! Thanks!
hi
can you please explain the extensive location settings from google maps ... i searched google's help and i'm still confused.
for eg, what is the difference between "report from this device" and "enable location history"?
i guess they generate the trafic info using the data from our phones ... how?
thanx!
Happy Holidays! and Happy New Year!
jean2323 said:
hi
can you please explain the extensive location settings from google maps ... i searched google's help and i'm still confused.
for eg, what is the difference between "report from this device" and "enable location history"?
i guess they generate the trafic info using the data from our phones ... how?
thanx!
Happy Holidays! and Happy New Year!
Click to expand...
Click to collapse
'report from this device' is used in latitude. latitude allows you to share your location with your 'friends'. 'enable location history' is for you only and keeps a record of everywhere you go. or at least thats my understanding of it. hope this helps
Thanks for this "sort of" schematic! Keep on making some new schematics! :cyclops:
Dude i dint think ill tamper with gps in my life but the info you provided is just to simple and cool. thanks
mbbauk said:
Dude i dint think ill tamper with gps in my life but the info you provided is just to simple and cool. thanks
Click to expand...
Click to collapse
I agree. I've always enjoyed learning about gps starting from my Garmin iQue days. After suffering with the Captivate and that horrible gps it's nice to have a phone with fantastic gps and the ability to truly use it. Good stuff here!
Sent from my SG Note i317 via XDA Premium...I eat apples, not use them.
Hi
Speaking about GPS, is there any onchip limitation regarding the speed or location that it should grab GPS signal ?
Someone told me that it may not be possible to make it work in a plane because of US rules and security.. or around some sensitive FBI or Governments buildings (that may have signal killers) ?
Thanks
ak074 said:
'report from this device' is used in latitude. latitude allows you to share your location with your 'friends'. 'enable location history' is for you only and keeps a record of everywhere you go. or at least thats my understanding of it. hope this helps
Click to expand...
Click to collapse
first ... with both disabled ... maps and search still search your location .. which is strange ...
second ... if i enable location history, but not report from the device ... there is no history ! or i don't know where to find it ... cause, indeed it's not in latitute ... you can select "report from the device" without selecting history ... not sure if anything happens ...
Happy New Year!
wow mind blowing and extensive work to understand all this about global positioning system ...
Simple question to OP
Can the Broadcom chipset XTRA file- lto2.dat be used for Qualcomm chipset XTRA file - xtra.bin ? and vice versa?
Thank you.
popcorn1122 said:
Simple question to OP
Can the Broadcom chipset XTRA file- lto2.dat be used for Qualcomm chipset XTRA file - xtra.bin ? and vice versa?
Click to expand...
Click to collapse
To My Understanding and Experience "NO",
putting lto2.dat file in a Qualcomm Android Phone do not improve Time To First Fix (TTFF), did'nt experimented BroadCom.
also contents of both files seems different, MediaTek processors uses EPO files instead, but it is astonishing that lto2.dat do improve their TTFF.
But no technical document to prove these experimentation .
US past policy do restrict the use of GPS above certain altitude (to deny military use of GPS), but cell phones still acquire navigation using GlONASS in Planes.
Can anyone tell me which files are responsible for GPS? I used TitaniumBackup and I suspect that I deleted these files by mistake because now I do not receive a signal outside the building
Lollipop 5.0.1 GT-I9505

Fake gps for delivery

know anyone if I can use any fake gps app with out detect it for the delivery app? I work on Wolt and I want in busy time to have my gps loc in center thx
Anyone?
Try the ones listed / described here:
Top 10 Android App to fake GPS Location for Android in 2023 [Updated]
Fake GPS location apps for android can help you show a fake location to anyone, and lets you stay anonymous from the predators.
mobilespy.io

Categories

Resources