[Q] visual c# GPS application using OGL library - Windows Mobile Software Development

Hi!
I am triing to make a Windows Mobile gps application that is able to determine the current position and writes it on a form. Iam using the OGL open source GPS library.
My device is a trimble geo xh 2005. When i deploy my project on it, and try to connect to the receiver it keeps throwing an error: "An error has occured connecting to the receiver(error code5)" .
I've attached my project.
Maybe my gps setting are incorrect, i dont know. Just in case: GPS software port: 3; GPS hardware port:8 Baud rate: 9600 and Manage GPS automatically checkbox is set.
The above error appears giving port 3 in the application. If i choose port 8 it tells me that the port is already in use.
I cant figure out what am i doing wrong:-(
The GPS settings or something in the code?
Any help would be appreciated!

Never mind!
I have solved it, I was using the wrong port as i suspected

Related

Where is the GPS API gateway in 1.13.53 WWE of JasJar

The GPS API gateway in I-Mate latest ROM (1.13.53 WWE) seems be missing.
If you search in JasJars help under the term GPS, you will be directed to [settings/system/GPS/etc.) but the latest JJ ROM does not seem to have it there, unless I'm missing something.
As result, I can pair a BT GPS, outbound it to P4, inbound to P8, but these ports can not be detectable by a GPS software who does not recognize these virtual ports.
Any advice ?
============
Saar
Registry Editor
In HKEY_LOCAL_MACHINE\ControlPanel\GPS Settings
Delete the DWORD marked "hide"
The add a DWORD called "Group" and give it the value of "2" (dec)
Soft reset
You will find the GPS icon in Settings/Connections
GPS Applet back from the dark
Thank you tekflow.
Works, now I'll see if Destinator works as well...
=====
Saar
Something looks wrong with the BT GPS connection on the IMate JJ, latest ROM.
- After revealed the hidden GPS applet, thx. to Tekflow !! (why hide it, maybe cause it doesn't work ?)
- Paired 2 different BT GPS devices (RT RBT1000/GS BT-338) to JJ
- Chosen as Outbound Port - Com 4/Inbound Port Com 8 (not that otherwise possible)
- On GPS Applet set common virtual GPS port to Com 9
- Nav S/W (tried 2 different) actually DOES NOT recognize either BT GPS
On the IPaq 27xx, with a Beta WM5 and Widcom excellent and user friendly BT stack, all works like a charm..
Or maybe I am doing something wrong.
Pls help..
Thx.,
Saar
Hi Saar,
I read about this quite a lot looking to find a solution for the problem. It looks like the Destinator cannot see the required COM port in the list. Even when activating the GPS API with the registry it doesn't help.
For destinator there is a solution, for NavNGo I couldn't find one so if you know something I'll be happy to hear.
What you need to do is to open the file destinator.ini with HEX editor and manually change the COM port to the one you need (same one you created when you paired the device I guess it is 8)
and then it will work.
You can find further info here:
http://www.mtekk.com.au/forums/viewtopic.php?t=7600&postdays=0&postorder=asc&start=10
Is DestinatorPN looking fine on your device ? When I tried the menu was all messed up, maybe because of the VGA ?
I could only work with ver 3.0.75
by the way, I wonder why you don't post a question in pocketpcfreak you prefer writing in english more than your own language?
Sagi
Just been playing with this myself, connected my BT receiver to COM:8 and share this using COM:0, TomTom V5 sees both ports but only manages to talk to the GPS receiver on the physical port ie COM:8 not the virtual port COM:0.
Also can anyone explain why most of the COM port are unavailable when pairing BT devices.
And whats QCT Data Interface & RIL Port ? ?
Thanks
Destnator PN and WM5
Hi Sagi,
Thx. a bunch. Tried it to the letter with DPN..had a moment of hope, but it was a short one. Unfortunately.
I'm hanging out here, as I doubt if anybody could answer it on the local forums...you see... I'm usually the Q/A master..so if I don't know...well, you see my point...
Anyway, the problem with the "spread" menus has been fixed.. Destinator PN "X" menus look smooth on the JJ (it's a beta of the next version to come soon). I have inside sources..
However I've used a large part of my box of tricks to make DPN work on WM5, with MS GPS API, and BT Stack, but nada...:-(
Of course we could dig deeper into this, but I assumed somebody may already'd have a clue. That's why we're here for, no ?
Again, thank you,
===========
Saar
No problems.
In the mean time you can use 3.0.75 it works fine with the tricks mentioned above.
When you have a perfect solution I'll be the first to try it. I like "Nehama" much better than TT5.
If you need another beta tester for the new ver on the JJ just let me know
Sagi
Thx. again.
In fact hex editing the ini fili causes the software to behave just as in your mail..... less actually connecting the GPS. I guess it's a starting point, I'll pass the info to our RD.
Regds.,
=========
Saar
im having the same problem
Hi Saar!
im having the same problem with Jasjar + navNgo using BT-338
for some reason the program cannot find the gps .
i tried contacting the guys at GPS&more to get support but still no luck.
Maybe you got more luck than me and can help me?
I've just tested with PocketStreets 2005 and that works allright with Jasjar and Globalsat BT-338 after unhiding the GPS in the controlpanel. I set the com port to 8.
Hoooowever... I have serious problems with getting the correct coordinates when using the wm5 gpsapi.dll (gpssample in wm5 sdk). The same sample works 100% with a wm5 qtek 2020 and wm5 qtek 9090.
Anyone noticed anything similar? Or know of a gps app that uses wm5 gpsapi?
/Cheers
JasJar GPS API
David K:
No solution yet, tried also with RBT1000 BT GPS. Outbound Port: Com4, GPS Program Port: Com 9. Same behaviour.
To further focus on the problem, we've uninstalled Destinator and installed a straightforward GPS monitoring App. (Vito Navigator 2). Auto scanning detects Port 9, but does not detect a GPS signal on this port, either from GS-BT338 or RT RBT1000. This excludes the possibility of a problem with D or NG apps.
This also seems to be a hint for a ROM/Hardware problem. I hope it ain't. We're also investigating with HW manufacturer. I'll update if resolved.
===============
Saar
This is very similar to TomTom, it can see the GPS COM port, but no data is received....
Maybe this is the eason why its been disabled ?
What I don't understand. seems as some JasJars do GPS OK while some other don't..
============
Saar
TOMTOM
Actually I use TOMTOM now (5.1)
The software can see all COM ports and it works great with my BT GPS set to COM8 (it does not need the GPS API at all and I can disable it)
Version 5 had same problems as D or NNG and couldn't see the port. the new BT GPS cab file that came with new version solved this problem.
I still believe that it is a D and NNG software issue that can be fixed
I'll be happy to hear any updated from the HW manufacturer when you have them.
SaarAvigour;
Do you have access to an EMTAC BTGPS? I have this working.
You'll need to know the paring key to get this working for the Bluetooth GPS.
I believe you'll only need to setup an Outgoing COM port, I used 8
Microsoft Pocket Streets can be set to COM 8 and it should work.
Only after the GPS has a fix will the second port work, I set this up to COM 6 Pocket Streets can work with either COM 8 or COM 6.
Note that I had to delete the Incoming port I setup to get this to work.
Hope this helps some.
1) Start (menu) | Settings | System (tab) | Bluetooth (icon) |
2) Check Turn on Bluetooth | on Mode Tab
3 Tap Devices (tab)
4 Tap New Partnership...
5 Tap name of found Bluetooth GPS device to select, then next
6 Enter 0000 as the passkey (four zeros) for the Belkin F8T051, 0183 for the EMTAC | tap next
7 You can rename the device on this screen only | Check Serial port | Tap Finish
8 Tap COM Ports
9 Tap New Outgoing Port
10 Select Bluetooth GPS from List of Devices | Tap Next
11 Select COM Port, try 0, 5, 6, or 8 | Tap Finish
Thx. Dah54,
Been abroad, seen your posting only now. I have a GlobalSat BT 308, but the principle is simillar. I got it all working with Destinator.
thx.,
=====
Saar
Destinator on JASJAR
Hi Saar,
Since lots of people are trying to get it work, and tried to help you, it will be nice of you tel explain how you got it work for all other users who are still struggling ??
gps
By all means, thought I did...sorry
Pair your GPS
Start/Settings/Connections/BT
Set GPS Serial Outbound Port to Com 8 (Com 4 possible, but was not detected by some specifically tested SatNav apps.)
Unhide your GPS Control Panel (still a mistery why some OEMs decided to hide it, and others not to)
Use a Registry Editor
Go to HKEY_LOCAL_MACHINE/ControlPanel/GPS Settings
Unhide the GPS Control Panel by modifying from (1) to (0)
Confirm by exiting and saving (OK button)
Your GPS Control panel will feature now, in its all grace, in Settings/System
There's another modification suggested,that will put the pannel under Settings/connections, but why change the original setup
Set your GPS Virtual Port
Start/Settings/System/GPS
Leave Hardware as ("None")
Set Programs to Com 8
Save and Exit (OK)
Soft Reset
Probably a reason to lots of failures. Suspectedly, the GPS control panel makes changes to registry. No SR, and changes are non active.
Works for me with various SatNav apps. Here, case closed....
Saar

Can't use GPSTuner....

anyone able to use GPSTuner successfully?
http://www.gpstuner.com/overview.htm
I have installed MapkingG10... and works very well. Howver having problem with GPSTuner...as it will hang my pda when i start the GPS. I have set the PORT manually already.
same here.
Other progs find the GPS.
Only GPSTuner hang on.
What is the solution for that?
Same here.
Now using BeeLine GPS and Navigator II.
There are already topics in the Board of the GPS Tuner Website. The Program also only kills the PDA when it establishes the connection to the GPS Module. I can use the Program very well as long as it hast not initiated the GPS Receiver. As soon as i set the Port manually to the GPS receiver, the device freezes. If set to automatic search-mode, the Program freezes during startup, probably becaus it tries to use the GPS Module at once. When i searched there, there was no solution yet.... We have to be patient
Download a program called GPSgate (http://franson.com/index.asp? - Shareware version available) and use that to setup a virtual GPS com port on COM5. Then delete the gpstuner.ini file and select COM5 instead of COM4 when GPS Tuner is started. All worked fine for me with my XDA orbit.
Looks like GPS Tuner can't share the GPS as well as other programs but GPSgate gets over this until the developer can sort out his code.
Cheers,
Neil
w0mbat said:
...Then delete the gpstuner.ini file and select COM5 instead of COM4 when GPS Tuner is started.
Click to expand...
Click to collapse
Haven't tried that, will do in the next days. I only tried GPS Gate creating a virtual COM Port and then selecting this Port in GPSTuner, there was the freeze again
Merry christmas
it works !!
Many THANKS !! it really made my day !! Merry Christmas !!
w0mbat said:
Download a program called GPSgate (http://franson.com/index.asp? - Shareware version available) and use that to setup a virtual GPS com port on COM5. Then delete the gpstuner.ini file and select COM5 instead of COM4 when GPS Tuner is started. All worked fine for me with my XDA orbit.
Looks like GPS Tuner can't share the GPS as well as other programs but GPSgate gets over this until the developer can sort out his code.
Cheers,
Neil
Click to expand...
Click to collapse
The GPS Tuner site recommends a similar work round using JAL Port Splitter
"I have P3300 PDA (with integrated GPS). When I launch GPS Tuner, I am asked to automatically configure GPS Settings. After a few seconds the screen freeze and I have to soft reset my Pcket PC
Seems that the .NET Compact Framework's serial port reader is not fully compatible with P3300 device. There is a workaround for this problem. Please download the free JAL Port Splitter application and install it to your PDA. Before starting GPS Tuner, please start Port Splitter and set your input GPS port (write manually COM4 into the box) and an output virtual port (for example COM5). Then start GPS Tuner and set your GPS port same as Port Splitter's virual port."
GPS Turner
You have to install the software GPSGate in order fir GPS Tuner to work. The reasons are explained on the GPS Tuner web site...
BEline GPS works perfectly...
please anyone tell me where could I download the installation and key for Jal port splitter
Thanks

How to Programm the GPS?

Hello,
does anybody know how to programm the GPS Modul?
I tried to change GGA to 1.
Can somebody help me?
Have a look here ...
www.franson.com They sell a module which you can easily program to with visual basic. They demo programs work without a modification. With Visual Studio you can start programming in a hour or so, after having had a look at the samples.
I think meer wants to adjust the SIRF-III-Chipset, which is used in the Orbit.
Most tools "Sirfdemo" etc. wont work on the Orbit. :-(
I'm searching for a tool which can toggle SN (Static Navigation) off on this device.
Hi,
I tried almost everything to program the internal GPS receiver of my P3300, but did not succeed :-(
First, I tried to get direct access to the hardware GPS port (COM 3), but failed to open this by any way. Eventually, I even sent my device into the Boot-Loader mode, redirected the GPS receiver to the USB port by using the GPSRouting command and connected via USB the SirfDemo 3.81 program. Results were very strange:
Using GPSRouting without a parameter gave me binary output data which SirfDemo was not able to handle.
Starting the the receiver at 57600 baud (by using the command "GPSRouting 57600" gave me NMEA output, which SirfDemo was partly able to handle. Some messages appeared correctly in the debug window, but most output of the GPS receiver resulted in SirfDemo in error messages. Really stranges!
I DID NOT FIND ANY WAY TO SWITCH TO SIRF MODE, which is necessary to program the internal sirfIII chipset.
I finally gave up and hope that one day HTC will surprise us with a nice tool to enable/disable Static Navigation and SBAS mode.
GeenZ
Have you tried using COM4 which is where the actual GPS receiver can be found? - Mike
mikealder said:
Have you tried using COM4 which is where the actual GPS receiver can be found? - Mike
Click to expand...
Click to collapse
Of course, trying to use COM4 was my first attempt.
However, COM4 is the output port of the MS GPS Intermediate Driver (GID). This is a software com port, which seems to be not the best implementation of a virtual comport splitter. There are a couple of programs out there, which have serious problems with the GID port, but do work with other (better) virtual comport splitter such as GPSGate.
Anyway, trying to program the internal GPS via the GID port did not work at all. That's why I was next trying to get direct access to the hardware GPS port (COM3), which did not work either, before I bravely sent my device into boot loader mode (unfortunately with also no success)...
Any other hints or suggestion are still highly appreciated.
GeenZ
Can i disable Static Navigation on XDA Orbit?
Any news about this?
do we have to give up any hope !? :'(
Please read my thread
Explains it, i could post some code to get you up and running, but what language are u working?
Slovek said:
but what language are u working?
Click to expand...
Click to collapse
thanks but just trying right now to understand how to get rid of this infamous GPSID !
Anyone knows how to turn off static navigation now? A programmer gave me a tool which perhaps can turn off static navigation on the p3300. But I'm afraid of testing it.
Minipli said:
Anyone knows how to turn off static navigation now? A programmer gave me a tool which perhaps can turn off static navigation on the p3300. But I'm afraid of testing it.
Click to expand...
Click to collapse
are you talking about spGPSView ?!
The name of the tool is SirfTech. What about spGPSview? Can you disable SN with it?
Minipli said:
Can you disable SN with it?
Click to expand...
Click to collapse
Yes, Moreover, this prog. seems to be more "accessible" than SirfTech !
Are you serious? You can really disable static navigation on htc p3300 (artemis) with spGPSview? I often read that it wouldn't be possible....
Minipli said:
Are you serious? You can really disable static navigation on htc p3300 (artemis) with spGPSview? I often read that it wouldn't be possible....
Click to expand...
Click to collapse
the question should be : is it effective or not ? but it can be changed !
What port do you set?
Ward said:
What port do you set?
Click to expand...
Click to collapse
com4 but the gpsid implementation of Orange is different from the HTC one as they are selling the M650 with their own navigation soft...
I have an XDA Orbit, so...
I've had no luck connecting to the GPS hardware with or without the MS Software splitter. Although other applications such as Beeline and iGo work fine.
spGPSview doesn't work with htc p3300/ xda orbit ....

what does the GDP port acutally do?

Found in Settings, System, External GPS, Programs
I know that it says that this is the port that GPS data communicates with software wanting GPS data but how does that actually differ to COM9 which communicates the GPS Data.
I know it sounds like a strange question, but please read it twice and it will make more sense.
Thanks
This is the MS virtual GPS driver port that interface with the actual physical on-chip GPS port COM9. This basically functions like gpsgate such that multiple GPS app can open that GDP port simultaneously.
thanks ww2250,
that was a very clear explanation. I had heard that these newer handsets could do what Fransons GPS Gate could do!
It does give you the option to set it as a COM port or just nominate a GDP port. How do you know which one to use?
And is it best set to none (aswell as disabling 'manage my connections automatically') if only 1 application needs access to the gps data?
thanks.
If you are just using one app at a time, i.e. no simultaneous opening of any GPS port, these settings shouldn't concern you. It will work regardless of what you set in the GPS applet if you use COM9 directly.
I do plan on running multiple applications at the same time.
Infact,whilst I am running TomTom Navigator 6, I am trying to run in the background a datalogging program, called GpsDIS by E Gerlach.
So whilst 2 apps are needing the NMEA data, what should I set the GDP port to?
(on a related separate note, does WM6 have vb runtime built in, or does it have to be installed?)
thanks
Then you just choose GDP1 as the virtual port and COM9 as the physical port in the GPS applet. In your GPS app, use GDP1.
There are some old stuborn apps that just refuse to use ports other than COMX, however.

WM6 and TomTom Navigator 5

Hi,
I just upgraded my Hermes / Vario II to the German TMobile WM6 version.
Most things work fine, including my BT338 GPS Mouse with various navigation applications.
Except for TTN5: TTN5 will recognise the GPS application COM port assigned by the GPS control panel but it fails with establishing the bluetooth connection to the receiver.
By experimentaiton I found a workaround to this:
- I send TTN5 into background
- I start any other application capable to open COM ports, e.g. a terminal emulator
- I open the GPS application COM port by this application and as soon as it gets GPS data I close the aplication
- I get TTN5 back into foreground and unbeleavable, it now recognises the GPC port and works as should.
I have appended a little TTY terminal application which is capable for doing this.
It is really a disgrace for TomTom beeing unable to implement a simple call to CreateFile for opening a simple COM port within their GPS driver code...
Regards, Gerd

Categories

Resources