Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Serial.PortOpen error


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008, 06:55 PM
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default Serial.PortOpen error

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.
Reply With Quote
  #2 (permalink)  
Old 03-28-2008, 04:52 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,183
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Have you found this http://www.modaco.com/content/Smartp...GPS-ACTIVATED/
Reply With Quote
  #3 (permalink)  
Old 03-28-2008, 05:28 PM
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default

Quote:
Originally Posted by agraham View Post
Yes, thanks for the reply. That is a registry hack that hard-codes the com port exposed by the GPSID to com4. A Microsoft utility that allows other com ports to be specified is here:

http://www.modaco.com/index.php?act=...=post&id=23385

however, I get the serial.portopen error no matter which port is specified.
Reply With Quote
  #4 (permalink)  
Old 04-03-2008, 07:07 PM
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default

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.
Reply With Quote
  #5 (permalink)  
Old 04-04-2008, 04:19 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,572
Default

It will be great you load it in the Additional libraries subforum.
Reply With Quote
  #6 (permalink)  
Old 04-04-2008, 02:56 PM
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default

Quote:
Originally Posted by Erel View Post
It will be great you load it in the Additional libraries subforum.
I will package it up and upload it there.
Reply With Quote
  #7 (permalink)  
Old 04-06-2008, 10:02 AM
Junior Member
 
Join Date: May 2007
Posts: 33
Default

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?
Reply With Quote
  #8 (permalink)  
Old 04-06-2008, 11:20 PM
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default

Quote:
Originally Posted by Agrartec View Post
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?
Reply With Quote
  #9 (permalink)  
Old 04-07-2008, 08:33 PM
Junior Member
 
Join Date: May 2007
Posts: 33
Default

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.
Reply With Quote
  #10 (permalink)  
Old 04-10-2008, 09:09 AM
Newbie
 
Join Date: May 2007
Location: Italy
Posts: 2
Default

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
__________________
PDA : HTC P3300
WM5 - Basic4PPC 6.01 - FW 2 SP2 2.0.7045
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Serial. ("before loop" error) jesb4ppc Questions & Help Needed 3 02-15-2008 05:41 PM
serial compiling Cor Questions & Help Needed 4 01-18-2008 01:10 PM
serial Cor Questions & Help Needed 1 01-18-2008 12:49 PM
serial i/o Softselect Questions & Help Needed 1 07-24-2007 01:48 PM
Serial Number Cableguy Questions & Help Needed 4 05-05-2007 07:06 AM


All times are GMT. The time now is 03:38 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0