XDA mini exec to GPS device dev - Windows Mobile Development and Hacking General

Hi all,
I am for Uni looking into using a GPS device (just a receiver) to pass your location to a PDA and with some work on some software on the device do some calculations and useful stuff re where you have gone, how fast etc. But the app on the PDA must be custom written
All i need from the GPS device is location (in longitude+latitude?) and this would be queried about every second.
a) how easy is it to get such an output from a receiver without a lot of premade software overhead?
b) just how accurate can GPS be? i read about 10m but down to 2/3m with WAAS?
c) anyone know of any good documentation on using GPS output for a PDA app?
d) any advice on good GPS devices that can do just this but as accurately as poss. i hear about the ability to get down to a few inches but this isnt publically available? (maybe wrong there)
any help or pointers would be very, very much appreciated.
Andy

Most GPS units send navigation data using the NMEA 0183 protocol, which is text-based (and thus easily parsable). Since you mention the XDA mini exec, I assume you're looking at Bluetooth GPS units -- these units will look like a COM port to the XDA, so you can use standard serial comms code to receive the NMEA data.
If you look around the net (e.g. google, sourceforge.net) you should be able to find a number of Windows applications that do what you want. Most of them will have been written for big Windows, but should be easily portable to the XDA platform.

Related

Navi using GSM Cell ID Info

Hi people,
Everyone is so excited with GPS navi solution, I was wondering if there is currently a software that allows basic navi using the Cell ID Broadcaseted from our current GSM network. I know that it may not be as accurate as a GPS navi system but it should be more that enough to tell the navi software to load the correct map and allow one to see what is around your area.
Well there are other advantages over GPS:
- Able to use the navi system undergound where GPS signal is not reachable. Eg, basement carpar, underground highways, etc. You will be able to use it whenever there is GSM coverage!
- No expensive GPS hardware required. The idealised situation is that the PDA is able to pair a bluetooth enabled handphone and the phone will feed the navi software with the current cell ID. If one have a XDA, that would be even better! You can then use your blue connection for your BT headset!
I have come across this software called Agis Navfone. Too bad it runs on Symbian Phones only... Does anyone out there have any ideal? If not, why not we can start some development in this direction? I'm a hobbist programmer, maybe someone can point to some info that shows me how to extract CellID in PocketPC. There's another what is to programme a virtual GPS device which will actually convert the CellID of the current network at translate it to something which most navi software will understand. THanks.
http://www.navizon.com/

GPS development forum?

Hi all,
At Uni im looking to create a Automotive Data logger, incorporating GPS and using WM PDAs as some of the interface.
I wonder if anyone knows of a GPS forum or a piece of SW to simulate the car and thus output location data to the input of a GPS emulator instead of me driving round tirelessly to demonstrate the logging SW.
Any thoughts?
Cheers in advance
The GPS data is basically just a one way feed of serial strings. NMEA data. Just capture a load of data from a GPS and feed it back through for testing.

GPS on Hermes without receiver. Possible?

Hi guys n girls,
I'm kinda new here and I have a question I've been dying to ask since I got hold of my HTC hermes. I'm currently using Vodafone's version of HTC Hermes, which is the V1605.
Is it possible for HTC Hermes to use GPS navigation without an external GPS receiver such as a bluetooth device? I learnt that HTC Hermes has no GPS chipset so it will definitely need a receiver, but I'm just curious and I wanna confirm. Thanks
Afaik, it got a GPS Chipset but no antenna
http://forum.xda-developers.com/showthread.php?t=292466
http://forum.xda-developers.com/showthread.php?t=291181
thanks for the clarification.
so, it will need a receiver to act like an antenna?
I'm not sure if you search for GPS or looked at the Wiki on the Hermes but its been covered a few times. The only thing you can really do is get a bluetooth GPS receiver or something along those lines.
Read and Search
http://wiki.xda-developers.com/index.php?pagename=Hermes_GPS_FAQ
I use a Holox bt-321 GPS receiver, works fine!
I was going to link to an ebay auction for one but its possibly the ONLY day when there isnt an auction for one!
I bought here from a user a Holux M-1000. Works fine and without any problems.
Give Navizon a go - > http://www.navizon.com/
its a virtual GPS for phones without GPS, Goes on Phone Cell info and Wifi AP Signals, you have to use wifi but it does pinpoint where you are better with wifi on
also out puts the data via a com port so you can use Satnav an other GPS enabled apps with it
Garmin GPS 10
I'm using an older Garmin GPS 10 that I purchased a few years ago, but it stills works great. It is rechargeable and the battery seems to last forever. I also using the Beta version of Garmin's Mobile XT, which gives my 8525 the same look and feel as "modern" GPS-only devices.
Some of the cool "toys" the software uses is:
2-D or 3-D map view
PeerPoints (sending GPS coords via SMS or MMS)
Local gas prices near you
Real time traffice
Weather
POIs ( you can have up to 4,000 waypoints/favorites/locations)
Voice prompts
Hotels.com info
etc.
Of course, some of the features depends on whether or not you have a data plan or WiFi access. I also like it because it is very small, works via bluetooth and is very accurate. I also use BeelineGPS because I also like to Geocache.
http://www.geocaching.com/
P.S. The current version of my GPS is the Garmin Mobile 10 for PDAs/Laptops
im using a "54 channel Holox" (Fake Holux) but i havent seen a quicker connecting device

[Q] BT Serial Port SPP (rfcomm) maybe someday?

I can't post this in development because I an still a nobody ...
Would it be possible to add in rfcomm for Bluetooth SPP serial port? The Nook would make a great tablet for telescope mount control over BT. You can't do it with the iPad due to the security around the BT stacks. It would also allow NEMA GPS modules to be read for different applications.
I'm running CM7 7.0.2 and this isn't yet available.
Just a dream?
Not sure if this is what you're talking about, but you can send the GPS data to the Nook form a GPS device like a Cell phone or GPS receiver. I use a stand alone GPS receiver and sometimes my Droid cell phone to send my location to the Nook to use CoPilot and Google Maps on the Nook. That's at least half of what you're talking about right?
Calla969 said:
Not sure if this is what you're talking about, but you can send the GPS data to the Nook form a GPS device like a Cell phone or GPS receiver. I use a stand alone GPS receiver and sometimes my Droid cell phone to send my location to the Nook to use CoPilot and Google Maps on the Nook. That's at least half of what you're talking about right?
Click to expand...
Click to collapse
Hmm, you got me pondering...
I got out my trusty Garmin GPS 10 and I can pair but it's not connected. That could be for a couple of reasons (the Nook only connects on demand maybe.) But if what you are saying is correct, maybe it does support SPP since it uses a comm port for the GPS.
But, when I connected from my notebook and checked the services, SPP wasn't one of them (just OPEX and AD2P.) I will keep playing but I half expect that part of the SPP stack requirements are missing.
On the plus side, if the GPS will work too, that is a second plus since it's nice to be able to ask the GPS for the specific time and location during the telescope setup (it matters.)
I'll look for an app in the Market that might read an external GPS devices and show the location. I notice most apps are for reading the phone GPS (which we don't have.)
Thanks!
Android does not support SPP, but there are multiple apps in the market which do, Bluetooth GPS Provider is the one which I prefer as it works very well and just works no matter what.
Thanks folks,
I fired up the Garmin GPS 10 and it works using Bluetooth GPS. That means an application can add in the SPP. That is perfect and gives us hope!
I really appreciate the responses!
Awats said:
Thanks folks,
I fired up the Garmin GPS 10 and it works using Bluetooth GPS. That means an application can add in the SPP. That is perfect and gives us hope!
I really appreciate the responses!
Click to expand...
Click to collapse
Yes, apps can directly talk with a Blutooth GPS. There are a handful which do this, or again, Bluetooth GPS Provider will provide the BT GPS to every app that asks for GPS.
This isn't only about GPS. GPS is just one aspect. I want to communicate with any serial device over BT. My understanding from reading it that rfcomm and the applications can supply that function.
What I did notice last night is that even without an application that supplies rfcomm, the Nook would still discover the devices unlike the iPad. I could pair to pretty much anything I wanted but it wouldn't connect. That's normal from my perspective.
At least I know it can be made to work.
khaytsus said:
Android does not support SPP...
Click to expand...
Click to collapse
Well, the XOOM does at least. Not sure whether it was Motorola's or Google's doing though. I use a Bluetooth to Serial adapter from Roving Networks quite successfully with it. I'm unaware of any other devices that do it.
I agree that native Android doesn't support SPP but the rfcomm library does and if it's linked into the application, SPP works.
Now if I can only find a way to use VNC to control my PPC from the Nook without going through a remote server (maybe via adhoc or BT ...)
Any device at API level 5 (2.0) or above may support BluetoothSocket, RFCOMM and therefore SPP unless the OEM did something to screw it up.

Android GPS module

Hi,
I am student from the Ruhr-university of Bochum, Germany, and I am working on my master thesis which is dealing with anti spoofing techniques for GPS. I already recognized, that I need to modify the Android GPS subsystem in order to be able to go on with my work as planned. So, I need more information about the GPS modules in the android devices (better: detailed information about one particular module). My aim is to get more GPS properties from the module than currently is given to the Android OS. In fact, I need to get information about the gps signals, like phase, signal strength, etc.
Can anybody help me with this? Where can I find information about any GPS module or is there any known project or hack which is able to get the signal properties?
best regards,
Tordred
I Think you are looking for this:
http://developer.android.com/guide/topics/location/strategies.html
http://developer.android.com/reference/android/location/LocationManager.html
http://developer.android.com/reference/android/location/GpsStatus.html
http://developer.android.com/reference/android/location/GpsSatellite.html
No, sorry. I am not looking for location related stuff. It is not the location I am interested in, it is the GPS signal itself. And this stuff is not supported by the original android implementation.
You can only get as much info as the GPS module is putting out.
The two protocols are NMEA-0183 and SiRF Binary protocol (if applicable).
Renate NST said:
You can only get as much info as the GPS module is putting out.
The two protocols are NMEA-0183 and SiRF Binary protocol (if applicable).
Click to expand...
Click to collapse
Thanks for your answer, I just took a deeper look on the SiRF protocol and it seems to be possible to get the data I need with this protocol. I saw that the Galaxy S2 has built in the SiRFStar IV chip. Does anybody know something about this chip? Is it a "uncut" chip in the Galaxy S2 and is it perhaps possible to "talk" to it using the protocol?
I don't do much with SiRF Binary; on a PC I use it to select the WAAS satellite.
Give it a try, just switch out of NMEA-0183 using the $PSRF100,0 message.
Renate NST said:
I don't do much with SiRF Binary; on a PC I use it to select the WAAS satellite.
Give it a try, just switch out of NMEA-0183 using the $PSRF100,0 message.
Click to expand...
Click to collapse
Now I have a Galaxy Nexus, which has also built in the sirfstarIV gps chip. I am trying to switch out of NMEA, but I am not very familiar with linux ans serial ports. I am trying to send the switch message via terminal to the gps chip, but it seems not be successful.
I already know, that the serial port is the ttyO0, as mentioned in the sirfgps.conf file. I tried to configure it with "setserial" and "stty" and I tried to send a message with "echo", but there is no response.
Can somebody explain to me how I use the serial port correctly?
First try to get the NMEA-0183 working.
The default spec baud is 4800.
You should be able to connect to the GPS chip and without issuing any commands receive NMEA sentences.
Hmm. For built-in chips you have to probably power it up somehow.
It seems the ttyO0 is not the serial port of the gps chip but the serial port of the kernel... I am getting an output using the microcom command, but I can not read it. I tried several baud rates, but it is always unreadable.
Sound like a cool project, but we cannot help you unless you specify exactly what device/model you are using. Its a Nexus I9250 or SGS2 I9100 ??? Is it branded by some other operator etc? Sometimes the best thing is to open the damn thing and see what's inside. (But the Nexus has been in some tear-downs/take-aparts, google it!)
Also have a look at:
"Accessing uart on Galaxy Nexus i9250"
Then you'll need the Service Manual with the schematics to figure out how the GPS is wired. On the I9100 its wired to the modem (BP/CP) and on the I9250 its wired to both AP and to the MUX... (You've got some reading to do...)
But you should be able to find the correct port from dmesg, logcat and the various *.rc scripts...
I tried to get a i9100 because of the sirf gps chip, but I got a i9250 with the ICS 4.04 Stock Rom, which has the same chip built in. I rooted the device using the NexusTool and installed busybox on it.
I have already read several threads to get an orientation how to get access to the serial ports and how to deal with the gps chip:
- [MOD/SETTINGS TWEAK] SiRF GPS on SGS2
- [A][SGS2][Serial] How to talk to the Modem with AT commands
- Accessing uart on Galaxy Nexus i9250
- The all-in-one Galaxy S2 Hack Pack
In order to get an output(or some kind of action in the gps chip) I wrote an app, which is trying to get a gps fix in an background service. So my phone is always trying to get a fix. When I now look into the dmesg or logcat output, there is no hint on gps. I read about those .rc scripts, but i can not find them on my device.
In the /vendor/sirfgps.conf I found the lines ...
Code:
UART_DRIVER = /dev/ttyO0
UART_BAUD_RATE = 2
...where 2 stands for 460800 Baud. I tried to connect to this port using the command
Code:
microcom -s 460800 /dev/ttyO0
with a terminal emulator app, but the output was not readable. I tried several other baud rates, but it is always unreadable.
What do you mean with "...the output was not readable.."??
Do you get anything? Can you post it.
If you get "something", then, you're either:
- using the wrong UART port
- the wrong baudrate, parity, stop bit settings etc.
- receiving data in some unknown format, possibly encrypted.
Please, post (on Pastie) your dmesg output (as it appears) immediately after bootup. And possibly a full debug logcat using the "Logcat Extereme" App, when turning on and off GPS.
Also you should not use apps for trying to read this data, as your app runs in VM which doesn't have full root FS access, regardless of SU. You first try getting data from a terminal session either from phone side (adb) or from PC (Realterm etc.) side.
Is this true?
Hello, i'm new here.
I'm wondering is it true that my Galaxy young gps module are :
1. Broadcom BC2075 (AGPS support chip)
2. Broadcom BC4751 (GPS receiver)
i'm using ES file exprorer on my rooted system and find glconfig2075.xml and glconfig4751.xml. in /etc/gps/ system folder. Nothing found in my cheap prerooted with no gps support tablet.
If this is true then there is some relief that it is kinda easy to find what my gps are in situ, rather than look out in the cloud via google.
It's still hazy to me, why is it that the same hardware but a software change from 10 minutes up to 5 seconds to receive satellite. Anywhere.
Android GPS Module
Renate NST said:
I don't do much with SiRF Binary; on a PC I use it to select the WAAS satellite.
Give it a try, just switch out of NMEA-0183 using the $PSRF100,0 message.
Click to expand...
Click to collapse
Hello
My Android phone those not have a GPS module on it and i need to install and GPS TEST
is there any APP that can help or do i need to get another phone am using a Techno W2

Categories

Resources