Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Official Updates
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Official Updates Updates to official libraries could be found here.
This forum is only available to licensed users.

New GPSDriver library

Reply
 
LinkBack Thread Tools Display Modes
  #81 (permalink)  
Old 11-27-2008, 05:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Sorry, I meant GetGPSData.
__________________
Basic4android documentation
Reply With Quote
  #82 (permalink)  
Old 11-27-2008, 05:57 PM
Junior Member
 
Join Date: Jul 2008
Posts: 46
Default

It fails when execute

Sub Timer1_Tick
gps.GetDeviceData ' It fails
If gps.GetGpsData(6000) = True Then Displaygps
End Sub

With the GPS Settings.exe
Program port: none
Hardware port: COM4
Port Baud Rate:9600
Manage automatically: checked

Last edited by 2220 : 11-27-2008 at 06:00 PM.
Reply With Quote
  #83 (permalink)  
Old 11-27-2008, 06:00 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This line retrieves information about the GPS Intermediate driver.
You can remove this line and see if GetGPSData works and returns a valid position.
Error number 87 is: Wrong parameters.
However the parameters sent are correct and work with other devices.
__________________
Basic4android documentation
Reply With Quote
  #84 (permalink)  
Old 11-27-2008, 06:03 PM
Junior Member
 
Join Date: Jul 2008
Posts: 46
Default

I removed the line 'gps.GetDeviceData and returns an erro like ' _main_timer1_tick'

Error getting position
Error number : 87
Reply With Quote
  #85 (permalink)  
Old 11-27-2008, 06:38 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There is a problem with the GPS Intermediate driver. Maybe it is not configured correctly.
__________________
Basic4android documentation
Reply With Quote
  #86 (permalink)  
Old 11-27-2008, 06:44 PM
Junior Member
 
Join Date: Jul 2008
Posts: 46
Default

How I must configure the GPS Driver?

I used the GPS Settings.

Tell me the configuration.
The HTC GPS port is COM4

I've just downloaded the GPSDriverdemo from Agraham and when opens the connection has the same error, but when I enter NMEA option and I press 'Open', I can see the NMEA sentences in the textbox. So data is sent.

I'm getting crazy with HTC devices, but everybody have HTC devices.

Joan

Last edited by 2220 : 11-27-2008 at 08:00 PM.
Reply With Quote
  #87 (permalink)  
Old 11-27-2008, 09:30 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by 2220 View Post
With the GPS Settings.exe
Program port: none
Hardware port: COM4
Port Baud Rate:9600
Manage automatically: checked
If these really are the settings for your internal GPS they look wrong. On my HTC Diamond they are

Program port: COM4
Hardware port: none
Port Baud Rate:4800
Manage automatically: checked
Reply With Quote
  #88 (permalink)  
Old 11-28-2008, 09:10 AM
Junior Member
 
Join Date: Jul 2008
Posts: 46
Default

Andrew you are right, but with this config I have the same error in the GPSDriverDemo you posted.

When I press 'Open', it appears _main_timer1_tick Error getting position, Error number 87

My ppc app. works mainly with Diamond model and I have a lot of problems with internal GPS. I resolved with GPS Plex, but with the new library you developed, I exclude the GPS Plex app. from installation from the customer.

Joan
Reply With Quote
  #89 (permalink)  
Old 11-28-2008, 03:19 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by 2220 View Post
but with this config I have the same error in the GPSDriverDemo you posted.
I haven't posted a GPSDriverDemo that works with the official GPSDriver library. If you are using the one at post #36 in this thread http://www.basic4ppc.com/forum/addit...html#post18166 then it won't work. I said in that post that it is NOT a beta of the official library, it was only a demonstrator. The official GPSDriver library has different methods and properties to that demonstrator library.
Reply With Quote
  #90 (permalink)  
Old 11-28-2008, 04:10 PM
Junior Member
 
Join Date: Jul 2008
Posts: 46
Default

That's right, but other HTC users tested and was ok.

Anyway, thank you for all.
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM


All times are GMT. The time now is 01:33 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0