Windows mobile 6.5 [ Device DS3 ] GPS does not get a position - IDEs, Libraries, & Programming Tools

Hi all,
I am developing an application which will get GPS co-ordinates and save in to the database.
I tried a lot with sample GPS code and different code from the internet but in the result latitude is always 0.0 and longitude is as well as 0.0
I got device name on my screen and device state is "on"
I used a third party tool on the same device and it gets actual co-ordinate means GPS is working where i am wrong to configure GPS setting
I do n't know . please help me out
and yeah sorry for my bad English.
Thanking in anticipation

Could you specify language you use? C, C#?

i also wanto get the anser. warting .

Related

Unstable AT-command replies from GSM-radio

I'm programming on a program that uses cell broadcast messages to determine your position. (http://gknavigation.de) - It was a project at "youth research" this year.
It is based on an idea of W.Back...
Now I want to get rid of a external gsm phone at the position determination, because the new Pocket PC Phone Edition have a integrated radio functionality.
I've written a small terminal-prog. for the XDA (http://gknavigation.de/beta.htm), which let's you sent modem-command into the gsm and recieve replies.
On the XDA2 it is working well until the line "AT command interpreter ready" is displayed on the terminal. After that common AT-commands like "AT+CBC" won't work any longer, and result with an "ERROR".
The line (and the errors as result) seems to apear after a few seconds the port is open.
I think I have opened the port and initialized the shared use of the gsm serial communication well. :?
Check out that Sourcecode please:
The .DLL-file-project, which is written in C++ and opens/closes the port:
http://mcflown.net/eVC/XDAcom_func/
The visual basic project, which is for reading and writing operations, and user interface:
http://mcflown.net/eVB/XDAterm/
Greeting and sorry for the hopfully not thaaat bad englisch!
F. Wetzel[/url]
Hasn't really nobody any suggestions?
:?
Florian
Summary
Hi,
Just wanted to let you know that I will have alook and see what I can do
for you.
Have you got a break down of what you are trying to achieve
Click to expand...
Click to collapse
A summ ups are written in German, sorry!
But i will try to describe it briefly:
My prog recieves the messages of the cell broadcast channel 221 by a mobile
phone connected via any inteface. (Bluetooth, IrDA, RS-232)
In Germany this channel contents data about the position and sending
direction of the mobile (fix installed) stations. With some (or many) tricks
i'm able to determinate your own own position up to a 50 meters. (in best
case - depending on the number of installed stations)
This is drawn on a map.
The prog is running under PPC and PC, but the PC version is less
interesting, because the PPC is more portable.
Newerdays, the PPCs have a integrated GSM radio module, so that it should be
possible to recieve those CB-messages vie the internal modem.
By that the users of XDA/MDA/... in Germany would get an alternative to GPS
for navigation/orientation without buying new hardware!
Lateron this prog is perhaps compatible with Tomtom. - I'm checking how to
do it!
Greeting, and thanks in advance!
Florian
hey xda internal access
Hey man i must say i respect you , you have done great work !!!
I am currently working on xda2 as university project and i need to access internal modem of xda ... so might need ur help ... i would wanna help u too and i probly will ... just letting u know i'll try a bit on ur prob and get back to ya ...
any advice ou can give me to access the internal modem ??
great job ! talk soon
On the XDA2 it is working well until the line "AT command interpreter ready" is displayed on the terminal. After that common AT-commands like "AT+CBC" won't work any longer, and result with an "ERROR". Crying or Very sad
The line (and the errors as result) seems to apear after a few seconds the port is open.
I think I have opened the port and initialized the shared use of the gsm serial communication well. Confused
Check out that Sourcecode please:
Click to expand...
Click to collapse
after read your source, i think:
- set Sleep time between each other AT commands > 100ms for response time of GSM modem
- try to close the com port and re-open it before sending another AT-command.
- try to use only RIL port or COM2, don't open them and use them at the same time.
hey i read through the code its good but i dont see how u get "AT Interpreter Ready" in the VB app ... i looked hard !!! can anyone enlighten me ??
I guess "AT Interpreter Ready" is the answer from device.
AT Interpreter Ready is sent by device after radio resets itself. You should never see this reply.
ok - when i get "AT interpreter Ready" from my terminal it allows me to send an AT commands, so in a way i'm guessing that i should get it -
Indeed it happens when the GSM resets does anyone have more explanations on how it appears ???
i get "AT interpreter Ready", too.
Compile
Could someone compile the DLL and EXE and post them here in one zip? Would save me having to install Visual Studio !

Reading the Cell ID (not displaying cell messages)

Can anyone point me in the right direction for a bit of code to read the current CellID from a windows mobile phone? (Hermes - but I'd like to make it work on all phones if possible and release it here)
I'm trying to reimplement an application that I had on my Symbian phone that was incredibly useful and for it to work I need to read the Cell ID..
When I search I find a few app's that do it and display the info.. but that's not really what i need.. I just need to read the Cell ID itself into my code. (none of the apps i've found that do it have sources unfortunately)
TIA, Sam
You can use RIL_Initialize. .. and RIL_GetCellTowerInfo.. This is an asyncronus call .. so you'll need to implement a callback/ handler for this..
It's worth to be noted.. that i believe RIL is a restriced API .. so you'll either need to unlock your phone.. or add a trusted certificate that you sign your dll/exe with..

test my softs for HTC devices

Hello,
I develop a module GPS under pocket pc to display sentences NMEA.
The objective is to validate my module for the devices HTC
or it can have bug...
This soft is very simple.
Select COM GPS and RATE GPS your device and press TEST.
the soft open port COM serial and read data.
if the sentences NMEA display it's OK !
else i would like to understand why...
If you want to do a test on your device, thanks please tell me the result
(device, port com, rate , and test ok or not) !
link cab file :
http://rapidshare.com/files/89376324/GPS.CAB.html
??? can anyone ?
Downloading now. Give me a few minutes.
Doesn't seem to work on my XV6800.
I installed to main memory.
I tried with Google Maps on and locked to 6 satellites and with it off. I was set to Com 4 and a baud of 4800. No NMEA shown and lock = no. Left on until the device turned itself off.
My devices GPS need a prime for other software to work (TomTom, etc) but works great with Google Maps.
Another little thing you might think to fix. The text in the selection boxes is huge. Need to move down a few font sizes.
Let me know if I can do anything else.
thanks blazingwolf !
My soft test is ok for HTC touch cruise (Polaris)
But the problem is also P3300 Artemis...
I believe that we must activate some things for Qualcomm chip GPS..
( I do not documentation and web site Qualcomm Link is not valid ->
http://www.cdmatech.com/download_library/pdf/gpsone.pdf )
GPS is as silent under my soft ->
- Sent a command on the link serial GPS to activate the chip ???
or specific sentence NMEA for activate sends sentences NMEA from GPS ???
- or the chip GPS uses a protocol other than NMEA ???
I am looking...
83stef said:
thanks blazingwolf !
My soft test is ok for HTC touch cruise (Polaris)
But the problem is also P3300 Artemis...
I believe that we must activate some things for Qualcomm chip GPS..
( I do not documentation and web site Qualcomm Link is not valid ->
http://www.cdmatech.com/download_library/pdf/gpsone.pdf )
GPS is as silent under my soft ->
- Sent a command on the link serial GPS to activate the chip ???
or specific sentence NMEA for activate sends sentences NMEA from GPS ???
- or the chip GPS uses a protocol other than NMEA ???
I am looking...
Click to expand...
Click to collapse
Hi, i have a HTC Artemis
(T-Mobile MDACIII) i can test the software on mine if u like, but i can only download the cab from these forums, so if u could upload it to here, i'll give it a go
Max Filesize attach for ZIP 8Mo
I can not attach my ZIP FILE has this post sorry
its more than 8mb!!!
yes lol
I do not use the framework microsoft.
fair enough. i'll try and download it this evening, see if it works on my Artemis.

CellID & Rxlev & GPS

The program updated. free to use ...
Hi all, I write a simple program for Telecom. Engineeger:
1) It can show CellID, Rxlev & LAC
2) base on the database (txt file), show cell site info.
3) GPS function
4) Open log file to record
The Log file format in :
Latidute,Longitude,CurrentTime,CellID,Rxlev
And you need to copy the files 2G.txt,3G.txt & site.txt to the root directory.
the text file at the main program directory ( eg. program file\fieldtestv1.2\).
Note:
Only test at my HTC P3600i phone, not sure for others ...
And sorry for my poor english ..
New Version ,It's surprised,But My PPC(model:O2 atom Life) Cell Id is Error。
Picture :
I have this error on my "Tornado" smartphone (WM 6.1).Why ?
By default, the program will read the files "2G.txt", "3G.txt", "site.txt" & "SiteNo.txt" when startup. so if you missing one of file , it will show the error message. you should create the 4 txt file to the root directory.
If you are a telecom engineer, you may entry the field data to each txt file or just create a empty file, it should be work !!!
that's a brilliant program.
btw what's the file format for the SiteNo.txt and is there a way to change the frequency of the log file to every minute or 30 seconds.
It would be great if you could do the site info match using the cellid ( CI ) and LAC. due to certain telco would recycle the cellid due to the 65536 limit.
Few more suggestion for the Log file.
1. Log file can be saved to storage card
2. BCCH info from the cells not from the txt file included in the log file
3. Logging frequency i.e 10 secs , 30 secs , 1 minute
4. LAC included in the log file
It is actually 8 to 10 db more when compared with an actual test tools.
bravo it's a good program.
Almost works, it crashes when i hit start or update, on my 8525 with ATT Wm6, files attached.
How do you read CELL ID ?
It is in the registry? where ?
could you show some code how to get cellid? which serial port to be opened?
On My HTC9000 PPC, I couldn't open COM2, No Com ports could be send AT
Cmd successfully
Some source code here ...
public static CELLINFO GetCellTowerInfo()
{
IntPtr res = IntPtr.Zero;
res = RIL_GetCellTowerInfo(hRil);
if ((System.Int32)res > 0)
{
rilCmd.CmdId = (System.Int32)res;
rilCmd.CmdType = RIL_CMD_TYPE.CELLTOWERINFO;
......................
.......................
if (!RIL.isInitialized)
RIL.Initialize();
RIL.CELLINFO CID = RIL.GetCellTowerInfo();
I have just started using this program as I am a telecommunications engineer.
I have emailed Frank for assistance and he has been most helpful.
The TXT files must be placed in the / directory - ie the "My Device" directory.
I have also noticed that if I use 2G or 3G mode on my phone, the program only looks in the 2G.txt file.
Try on my Hermes, on 3G band it shows only Cell ID, other failed, on 2G it shows MCC-MNC, Cell ID and LAC, but not signal level neither SC? Just reporting
Unsure why this is not receiving signal level, but the program does not yet have the functionality to extract BCCH/PSC.
All this program tries to match is the CellID - you need to have the BCCH/PSC in 2G.txt or 3G.txt
I am currently speaking with the developer to see if he wants some assistance to work on this program (i can test) - I am using a Touch Diamond
Thanks!
Dear Frank8080,
Thank you for your cellid sample program. I download and try it. This program run into my cht9100 very fine. I need one program to get cellid on wm6. Can you email your source code to me ? Thank you very much!
Does it work on wm2003 for my 818?
It does NOT work on O2 Atom, windows mobile 6 ...
hmmm... It crashed in my atom wm5.0.
Thanks for the bug reporting:
1) For the program can't read 2G or 3G txt, due to the program read the txt file base on the MNC(Network Code), so it seens that I need to add a setup page to fix the problem.
2) For can't decode the signal level (erwinpiero), I have tested on Dopod 838 Pro, it works ok. But I don't know why it's not work on your 838Pro.
3)For BCCH/PSC decoding, I still try ....
I am a mobile engineer in HongKong and the program just developed for my team use to perform the field measurement of the daily operation, so the most of function just base on the needs of my job. So if any other information you need, you may email to me, I will try to add the extra function to the program.
Hi frank, Top program, well done!! it's running on my TyTN II fine.
Could you post up some examples of how the 4 txt files should be built and a "few" examples of the info they should contain.
Also I see you're using RIL ... does your program update the CellID etc whilst the phone is "In Call". I have used CellTrack before and once "in call" the phone never updates apart from the RX level.
Thanks!!
Phil
Hi,
I haven't tried this sw, but I will do it soon (as soon as I have a PDA).
Just wondering if is possible to select what variables should be on the log (e.g.: active set, the cells that are being measured)...
thanks

Can someone support the USB GPS

Though Iconia has gps inside, but I don't think it can receive the satellites faster than the usb gps. I've got one for my laptop and works fine. But the notebook is too heavy, so can someone to let the pad support the usb gps?
Specifiction:
Model Nr:BU-353
development information:http://www.usglobalsat.com/forum/index.php?PHPSESSID=ja5juv3c1rc9d7npsoi4f9lvq3&topic=3408.0
use BlueGPS4Droid if you dont like the internal gps function.
that has been used for ages on tablets without gps.
Dexter_nlb said:
use BlueGPS4Droid if you dont like the internal gps function.
that has been used for ages on tablets without gps.
Click to expand...
Click to collapse
But I want usb GPS not a bluetooth one.
liu2002 said:
But I want usb GPS not a bluetooth one.
Click to expand...
Click to collapse
i dont think any android software support it, at least something i seen..
earthmate-lt40
I would love to use my earthmate USB GPS as well.its super fast lock with precision accuracy on my notebook.in the thread mentioned by Dexter there is possible solution if you know some programing.but no talk there about the earthmate one.there are alot of people interested in a module for this a Dec could make some moneyi do think hint hint
Giggles
erica_renee said:
I would love to use my earthmate USB GPS as well.its super fast lock with precision accuracy on my notebook.in the thread mentioned by Dexter there is possible solution if you know some programing.but no talk there about the earthmate one.there are alot of people interested in a module for this a Dec could make some moneyi do think hint hint
Giggles
Click to expand...
Click to collapse
important is: can you find regular linux support for it? then we can probably use it here too. otherwise not, so if you search and find references to it..
post it, and i can look at your links for linux support if such exists..
source
http://cateee.net/lkddb/web-lkddb/USB_SERIAL_CYPRESS_M8.html
not sure if this will help bilut I think its what you are asking for
Have you tried the fix in this thread here?
http://forum.xda-developers.com/showthread.php?t=1103585&highlight=gps+fix
yes that works withbthe internal gps.
Yes I have done that and it does help with the internal GPS.but I would like to get my GPS USB reciever to work.it locks quick and can be put on top my van.
Does anybody run the code:
Code:
su root
stty -F /dev/ttyUSB0 ispeed 4800 && cat < /dev/ttyUSB0
I ran it and it works like gps status in windows. GPS can get the data but how to let the system to know these data.
I drive with my tablet and gps all the time and it works great!
I mean how fast do you need it to be?
Dexter_nlb said:
use BlueGPS4Droid if you dont like the internal gps function.
that has been used for ages on tablets without gps.
Click to expand...
Click to collapse
Hem, finally vindication for not having thrown out my Pharos USB GPS receiver with its Bluetooth cradle for my old WinMo phone
liu2002 said:
Does anybody run the code:
Code:
su root
stty -F /dev/ttyUSB0 ispeed 4800 && cat < /dev/ttyUSB0
I ran it and it works like gps status in windows. GPS can get the data but how to let the system to know these data.
Click to expand...
Click to collapse
Can do a
Code:
hexdump -c /dev/ttyUSB0
and show us what kind of data you have
I suppose standard NMEA sentences (GGA / RMC / ...). In that case we can perhaps do something...
If you could also do a
Code:
stty -a -F /dev/ttyUSB0
it would also give us more informations
herbert1 said:
Can do a
Code:
hexdump -c /dev/ttyUSB0
and show us what kind of data you have
I suppose standard NMEA sentences (GGA / RMC / ...). In that case we can perhaps do something...
If you could also do a
Code:
stty -a -F /dev/ttyUSB0
it would also give us more informations
Click to expand...
Click to collapse
I am sorry that I thought my thread had been abandoned. So I didn't see your reply. Now I use galaxy 1.05 and I try to run the code you give to me. However this rom can not recogize my gps, the acer original rom (HB3.0 can). So I can not test the code. Or I should PM M-dj to add the support for the PL2303(usb to serial) and this can let the pad to find my gps.
Here is a quick and dirty adapted version of BlueGPS4droid in order to read NMEA data from a file/device.
Instead of giving the name of a bluetooth device you have to give the path of a file.
Don't know if it will work: since I don't have any usb Gps, I cannot test.
However it's working with plain files, so I hope it will also work with /dev/ttyUSB0.
You should be able to see on the logcat if it recognizes NMEA sentences or not.
If you can post a copy of the logcat it could be useful for me.
If it's working, I will put the code in a new repository (forked from BlueGps4Droid), clean the code, re-inject other languages and advanced functionalities we have inblueGPS4droid, etc.
How to use it :
0) plug the GPS usb device
1) allow GPS use, if possible (don't know if you can)
2) enable mock locations in "Settings/Applications/Development/Allow mock locations" (It's important !)
3) start UsbGps
4) choose a NMEA device (device path: ako /dev/ttyUSB0 - it has to be readable ! )
5) eventually activate "auto-enable location provider" in "location provider options" (useful if you cannot enable "Use GPS satellites" option (in step 1)
6) start the service using the start checkbox
7) look if something happens in the logcat...
Do you have an android phone? ShareGPS from the market will turn your phone into a Bluetooth GPS device, then use the aformentioned BlueGPS4Droid to connect to the phone for its GPS. Also ensure you have enabled Mock Locations on your tablet, and set up a internet share from your phone if the tablet doesn't have it itself.
I used this on a trip recently and it works great. My Inc2 shared its GPS and Internet link with the Iconia. I really like the ability to use the Inc2's superior GPS through the tablet with its 10 inch screen. We all know the Iconia has a lower than Subpar GPS implementation.
I looked around for a way to use the LT40 from Delorme on the Iconia and couldn't find anything good.
herbert1 said:
Here is a quick and dirty adapted version of BlueGPS4droid in order to read NMEA data from a file/device.
Instead of giving the name of a bluetooth device you have to give the path of a file.
Don't know if it will work: since I don't have any usb Gps, I cannot test.
However it's working with plain files, so I hope it will also work with /dev/ttyUSB0.
You should be able to see on the logcat if it recognizes NMEA sentences or not.
If you can post a copy of the logcat it could be useful for me.
If it's working, I will put the code in a new repository (forked from BlueGps4Droid), clean the code, re-inject other languages and advanced functionalities we have inblueGPS4droid, etc.
How to use it :
0) plug the GPS usb device
1) allow GPS use, if possible (don't know if you can)
2) enable mock locations in "Settings/Applications/Development/Allow mock locations" (It's important !)
3) start UsbGps
4) choose a NMEA device (device path: ako /dev/ttyUSB0 - it has to be readable ! )
5) eventually activate "auto-enable location provider" in "location provider options" (useful if you cannot enable "Use GPS satellites" option (in step 1)
6) start the service using the start checkbox
7) look if something happens in the logcat...
Click to expand...
Click to collapse
According your steps, gps running, but it seemed not get the data. No gps searching notification icon flashed and in the log data I don't see any thing. The information in my pm is not correct. I use the wrong device folder. But changed back to \dev\ttyUSB0, I can connect but no data.
Nova5 said:
Do you have an android phone? ShareGPS from the market will turn your phone into a Bluetooth GPS device, then use the aformentioned BlueGPS4Droid to connect to the phone for its GPS. Also ensure you have enabled Mock Locations on your tablet, and set up a internet share from your phone if the tablet doesn't have it itself.
I used this on a trip recently and it works great. My Inc2 shared its GPS and Internet link with the Iconia. I really like the ability to use the Inc2's superior GPS through the tablet with its 10 inch screen. We all know the Iconia has a lower than Subpar GPS implementation.
I looked around for a way to use the LT40 from Delorme on the Iconia and couldn't find anything good.
Click to expand...
Click to collapse
I beg to differ.my Ionia gets GPS connection under 7 seconds.try this it worked for me
http://forum.xda-developers.com/showthread.php?p=17668407
Sent from my A500 using xda premium
I support it!
liu2002 said:
According your steps, gps running, but it seemed not get the data. No gps searching notification icon flashed and in the log data I don't see any thing. The information in my pm is not correct. I use the wrong device folder. But changed back to \dev\ttyUSB0, I can connect but no data.
Click to expand...
Click to collapse
I don't have any usb GPS, so I cannot test anything myself! If you want something I will need a little more informations.
So here are some little things you can do to provide more details.
First you can verify if you receive something from your usb GPS:
Connect your android device to you computer and open a command shell on your android device using
Code:
adb shell
Then you can use
Code:
hexdump -c /dev/ttyUSB0
to display what the gps is sending (replace /dev/ttyUSB0 with your usb gps dev). You should see standard nmea sentences...
If you don't see valid nmea sentences you can use
Code:
stty -a -F /dev/ttyUSB0
to obtain more informations on your dev.
You can also verify read/write access rights of the device
Code:
ls -l /dev/ttyUSB0
We need at least read access. If we don't then you will need to root the android device in order to be able to change the access rights on the dev.
If the hexdump command works well then you can run usbGps and use the
Code:
logcat
command to obtain more informations on what happens in the the usbGps app (it would help me a lot!).
Also if usbGps doesn't work it should display a notification (not very useful but it can help a little).
Herbert
PS: the name of the device should really be something like /dev/ttyUSB0 with "/" not "\", so if you try to use "\dev\ttyUSB0" as your device name il will not work and it's normal.

Categories

Resources