Serial.PortOpen error

hsandy

Member
Licensed User
I have written an app using the gps and serial2 libraries and it has been working well on a WM5 AT&T 8525 (HTC Hermes) with a bluetooth GPS. I recently got a WM6 Samsung SGH-I617 (Blackjack II) Smartphone. This device contains an internal GPS. I use the same ConnectGPS sub as in GPS4PPC. The app encounters an error every time it tries to do the serial.PortOpen in the ConnectGPS sub when trying to use the internal GPS. With an external bluetooth GPS it works fine on the SGH-I617 but I would prefer to use the built-in GPS. The Microsoft GPS Intermediate Driver exposes a comm port interface for use with legacy apps and I have that set for com4 for the internal GPS. This is working fine in some other apps I have loaded such as Google maps and GPSTest but doesn't seem to work with Basic4PPC applications.

It appears that what is needed is a .dll wrapper to interface to gpsapi.dll the application interface to the GPS Intermediate Driver but I don't have the tools to make a dll.
 

hsandy

Member
Licensed User

hsandy

Member
Licensed User
I picked up a copy of Visual Studio 2005 Standard on eBay and did an interface library for the Microsoft GPS Intermediate Driver. I will upload it if anyone is interested. I can verify that VS2005 Standard can build .dll's for CF 2.0.
 

Agrartec

Member
Licensed User
Hi hsandy,
do you think its possible that your library could help with our problem using the internal GPS on HTC-devices without using GPSGate?

Could you please post a sample-prog here so that I don`t have to try out for hours? That would be a big favour since several people are already searching for a better solution to use the internal GPS with B4ppc.

By the way: Is it also possible to use UTM-data with your library?
 

hsandy

Member
Licensed User
Hi hsandy,
do you think its possible that your library could help with our problem using the internal GPS on HTC-devices without using GPSGate?

Could you please post a sample-prog here so that I don`t have to try out for hours? That would be a big favour since several people are already searching for a better solution to use the internal GPS with B4ppc.

By the way: Is it also possible to use UTM-data with your library?

The library is in the Additional Libraries subforum. I don't have a sample program but I will see what I can do....As for UTM-data, no, the library as written only has latitude and longitude properties. Are the HTC devices touch-screen or non-touch-screen?
 

Agrartec

Member
Licensed User
The HTC-devices are with touchscreen. I hope that doesn`t matter, it should be the same WindowsMobile driver. But at Windows...you never know.
I took a look at your gpsidtest.sbp, but there were no code. :confused:
 

Pascal

Member
Licensed User
Longtime User
You have perhaps found a solution?
(Other than use third-party software gpsgate or downgrade FW)

Error read GPS data inside: Out of Memory
(I am available as a beta tester)

Thanks
Hello
 

hsandy

Member
Licensed User
You have perhaps found a solution?
(Other than use third-party software gpsgate or downgrade FW)

Error read GPS data inside: Out of Memory
(I am available as a beta tester)

Thanks
Hello

If you have WM5 or WM6 on your device and internal GPS hardware, you might try using the GPSInt library and sample program I uploaded to the Additional Libraries forum.
 
Top