|
|
Comments and Discussions
|
|
 |

|
did all that was done in the tutorial but I get that all readings are 0 the problem and work on WM 6.5 (Motorola MC75)
|
|
|
|

|
I/O Exception. ComPort open
|
|
|
|

|
Hey Leonardo,
Just wanted to thank you for posting this up here. One thing I noticed when I was using your code myself is that it doesn't take into account NS or WE hemisphere information. I live in the US and was getting images that were shifted backwards on the Y axis. I got it working tonight and wanted to share with anyone who has had the same issue.
Inside the draw() function you will find a section looking like this.
xTo = (m_points[i].X - m_points[0].X) / m_scale + m_center.X;
xFrom = (m_points[i - 1].X - m_points[0].X) / m_scale + m_center.X;
yTo = (m_points[i].Y - m_points[0].Y) / m_scale + m_center.Y;
yFrom = (m_points[i - 1].Y - m_points[0].Y) / m_scale + m_center.Y;
//---------------------------------------------------------------
//Insert this section and you should see the pitch invert to be
//viewed correctly in North America.
//---------------------------------------------------------------
yTo = ((m_center.Y - yTo) * 2) + yTo;
yFrom = ((m_center.Y - yFrom) * 2) + yFrom;
//---------------------------------------------------------------
m_g.DrawLine(m_linePen, (int)xTo, (int)yTo, (int)xFrom, (int)yFrom);
m_g.DrawEllipse(m_pointPen, new Rectangle((int)xFrom - 2, (int)yFrom - 2, 4, 4));
I'll see if there are any changes that need to be made for different hemispheres and apply a fix for them on a later post. (I'm not sure if it will need it).
If anyone is interested, I also have a GGA parser up and running. Just give a shout out.
Thanks for all your work on this Leo,
Seph
|
|
|
|

|
Hi,
sorry but I come back only now from my holiday.
Thank you very because you are right.
But, now I haven't time to modify code and test code.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
hi there, I've noticed that you are useing a random generator if the application is in demo mode, but I don't really get it why you are doing r.NextDouble()*10-1 for four times for seconds and 2 times for prime. I've read that r.nextDouble returns a value between 0.0 and 1.0 , but I couldn't find anywhere any more details, like, how many figures after 0. there are , do you get only 0.1,0.2 ...1.0 or you get something like 0,123456. Also it seems that the generator doesn't limit the value of number of seconds that can be generated to maximum 60.
Thanks , and have a nice day
|
|
|
|

|
Honestly, I don't remember, I wrote the application 3 years ago.
Thank you to you!
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
I'm trying to make this application work with the FakeGPS tool but it seems that the emulator can't see the COM, when I pres RUN it gives an Exception:COM5 doesn't exist .I've installed FakeGPS on the emulator, installed the settings program and I tried to set the program or the harware port for COM5 and it still doesn't work. Did you ever used this tool, and if yes how did you do it to work.
thanks mate,
|
|
|
|

|
Can you tell me the device that you are using?
Because i didn't test this application on winmobile 6.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
well ,it's not a real device, I use the emulator with Win Mobile 5 an the software installed on the emulator it's called FakeGPS, it's supposed to be installed on the device you are working with so that you can work indoors where there's no signal for GPS.
So the problem is that the emulator doesn't see the COM5 .
you answer cam so quickly, thanks
|
|
|
|

|
Uhmm... this is strange it should work.
Can you try to open that on a new COM?
Another method could be to use that software http://au.geocities.com/emulatortools/GPSEmulator.html and map the real computer COM to the emulator COM port.
np, bye
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Can I attach the multiple GPS devices with a single Pocket PC Device? If yes then please explain me the COM Port settings for it.
Thanks.
|
|
|
|
|

|
Hi, im trying to run this in Windows Mobile 6 with a Asus P526 (gps integrated), but crashes with this exception:
---> m_readed = m_serialPort1.ReadLine();
in System.IO.Ports.SerialPort.ThrowIfClosed()
in System.IO.Ports.SerialPort.ReadTo()
in System.IO.Ports.SerialPort.ReadLine()
in GpsTracer.reader.methodTh()
System.IO.IOException was unhandled
Message="IOException"
StackTrace:
in System.IO.Ports.SerialStream.WinIOError()
in System.IO.Ports.SerialStream..ctor()
in System.IO.Ports.SerialPort.Open()
in GpsTracer.reader.methodTh()
Should i configure the integrated gps with some specific data?
Thanks in advance...
|
|
|
|

|
Hi,
Try to use the Windows Mobile 6 application GPSSettings.exe
[^]
Good luck with the GPS intermediate driver!
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Windows Mobile 6, in this case, already has "GPSSettings.exe" integrated (this PDA has GPS integrated). I solve the COM Port problem, and now it turns on the GPS antenna, but dont return any location neither draw it. Is something missing?
|
|
|
|

|
try to that, and tell to me on wich problem.
http://www.codeproject.com/KB/mobile/WMEnumComPorts.aspx[^]
To solve that i have to test on a win mo 6 (i don't have yet..) or an emulated device.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
I have used Intermediate driver for GPS Parsing but my application migrated from Windows mobile 5.0 to Windows CE 5.0. so i am getting error PInvoke DLL ‘gpsapi.dll’ error.
is there intermediate driver present for Windows CE 5.0? or any diffrent dll or library
|
|
|
|

|
Hi, wich device are you using?
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Roper Mobile having Windows CE 5.0
|
|
|
|
|

|
Does this work for VB? Awesome job!
|
|
|
|

|
Yes, why not?
Thank you
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
hi
can i run this project on windows mobile6 ?
|
|
|
|

|
i don't know exactly.
I'm sure that win mo 6 include the GPS support, so you don't have to code nothing to communicate win the gps device.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Hello,
Any idea on using RMS on windows mobile phones?
Thank you.
|
|
|
|

|
Send to me more details about that.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Hello,
I would like to know how you would implement the code using a bluetooth enabled GPS receiver and a windows mobile ce pda
thanks
|
|
|
|

|
Hi,
to do that it's need to use the Bluetooth serial service exposed from your bluetooth GPS receiver.
I also suggest to refactor some peace of code, it's a 06 project and i don't have time to upgrade to 08 tecnhologies.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|
|

|
Can this also been done using the intermediate driver? I just want to record NMEA data into a text file, so i can use it in FAKEGPS (windows mobile 6 SDK), but I prefer using the intermediate driver if possible.
|
|
|
|

|
Yes i think that it can be done it as easy.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Thank you for posting this excellent example.
I wanted to ask you if there are any restrictions on
using this code. I would like to use it in a project
that I am building at work.
Ed Spencer
|
|
|
|

|
No software licensing is needed.
It's free, in any case for if you need assistance please visit www.giuneco.it
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
THANKS!!!!
gpsTracer->PDA->quick.pe.kr->map
|
|
|
|

|
To you
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
thx ...
but return value string is $GPGGA , not $GPGGC in my gps
|
|
|
|

|
Wow
it's a $GPGGA - Global Positioning System Fix Data
This mean that you are using a new GPS, i coded that application 2 years ago or more
bye!
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
hi there, 1st i would like to thank you for you effort.
What i did here is:
i connected Majellan sporTrak Gps to com5.
i can read data from gps normally using hyperterminal.
now the problem is,after i deploy your application to the Pocket Pc 2003 SE Emulator, and exactly when i click RUN/STOP from the menu i get this error:
"An unexpected error has occured in DeviceApplication2.exe. Select Quit and then restart this program.or Select Details for more information"
here are the details of the error:
IOException
at System.IO.Ports.SerialStream.WinIOError()
at System.IO.Ports.SerialStream.CheckResult()
at System.IO.Ports.SerialStream.get_BytesToRead()
at System.IO.Ports.SerialPort.ReadTo()
at System.IO.Ports.SerialPort.ReadLine()
at GpsTracer.reader.methodTh()
Any help is apreciated, thanks in advance for your time
|
|
|
|

|
Can you verify the protocol of your GPS device?
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
hi there,
i beleive the protocol used by my gps is NMEA,
is that is not the answer you're looking for, can you please tell me
how can i exactly find out the protocol ?
here is a log of my gps received messages via serial port com5:
$GPGSV,3,1,12,15,48,2
$GPGSV,
$GPGSV,3,2,12,12,37,284,,29,35,197,,04,25,123,,28,17,066,*7F
$GPGSV,3,3,12,02,15,157,,05,10,273,,08,01,124,,18,-2,277,*67
$PMGNST,01.10,3,F,822,11.2,-02424,20*5F
$GPGSV,3,1,12,09,47,321,36,15,45,219,,17,44,047,,26,41,201,*7F
$GPGSV,3,2,12,12,37,284,,29,35,197,,04,25,123,,28,17,066,*7F
$GPGSV,3,3,12,02,15,157,,05,10,273,,08,01,124,,18,-2,277,*67
$PMGNST,01.10,3,F,838,11.4,-02424,20*52
$GPGSV,3,1,12,09,47,321,36,15,45,219,,17,44,047,,26,41,201,*7F
$GPGSV,3,2,12,12,37,284,,29,35,197,,04,25,123,,28,17,066,*7
$GPGSV,3,3,12,02,15,157,,05,10,273,,08,01,124,,18,-2,277,*67
$PMGNST,01.10,3,F,838,11.4,-02424,20*52
If you need further info, please let me know.
Thanks again
|
|
|
|

|
hi again, its NMEA V2.1 GSA
|
|
|
|

|
So you need to upgrade sources to this new protocol.
If you want post here a text file with data that you are receiving from your GPS device.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
can u tell me how to insert a picture of map into the code as a background of the screen??
|
|
|
|

|
I think that you have to study a solution before start to customize that project.
If you need a map as "backgroud" you will encounter a lot of alignments problems.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Could someone please try and convert this to vb.net as i am not a C# Dev and im bound down by projects.
Domino.VBcoder
|
|
|
|

|
I do not have a GPS, I am simulating the data entry with an ASCII terminal. I can connect to my pocket PC with GpsTracer and the BlueTooth link work. It seems that the data never arrived. What is the data rate to set in my terminal?
|
|
|
|

|
I think that 9600 baud rate will be quite sufficient.
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
Hello Salvatore,
Thanks for the reply. I found out that the setup IS 9600 bauds.
Still cannot transfert data. Port opens fine and connect. I arrive to:
m_readed = m_serialPort1.ReadLine();
but from here I never get any data when I send them from HyperTerminal. I test the connection and the data transfers using another terminal on my mobile.
Works with terminals but does not work with your example. Any clue?
|
|
|
|

|
Do you start the GPS?
Leonardo Salvatore
Msn:leonardosalvatore@hotmail.com
Email:Leonardosalvatore@giuneco.it
WebSite:www.giuneco.it
|
|
|
|

|
No.
I am not using a GPS. I am trying to transfer ASCII data from my PC using Hyperterminal. The connection works because I can test it from Hyperterminal and Zterm which is running on the PDA.
Now I try the same transfer of data using your GPS tracer and I can connect but cannot transfer any ASCII data.
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
A simple GPS tracer developed for Windows Mobile 2005 on Compact Framework 2.0 SDK
| Type | Article |
| Licence | CPOL |
| First Posted | 9 Aug 2006 |
| Views | 194,757 |
| Downloads | 1,971 |
| Bookmarked | 196 times |
|
|