Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Port & Baud GPS settings for TytnII


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2007, 10:57 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default Port & Baud GPS settings for TytnII

I cant get any of the GPS progs to work, which Port setting would it be on my TytnII?
For example GPS4PPC gives me the option to connect to port 4 or 7 - Ive tried both but it says 'A native exception has occurred ....'
Reply With Quote
  #2 (permalink)  
Old 11-16-2007, 11:02 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

Are you using the WM6.0 version of GPS4PPC?
WM6.0 devices include .Net CF 2.0 in ROM (unlike older devices).
You should use Serial2 library instead of SerialDevice/SerialDesktop.
Reply With Quote
  #3 (permalink)  
Old 11-16-2007, 11:59 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

how do I find out which version of GPS4PPC I have? I took it from this site?
my Tytn is WM6

Also how do I change that Serial library thing- do I have to copy another library across? Can u run me thro what I have to do?
Thanks so much
Reply With Quote
  #4 (permalink)  
Old 11-16-2007, 12:23 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

You can download GPS4PPC WM6.0 here: http://www.basic4ppc.com/files/GPS4PPC.zip
Install the WM6.0 setup.
The GPS tutorial covers the steps required to add the libraries: GPS application - Part I
Reply With Quote
  #5 (permalink)  
Old 11-16-2007, 12:26 PM
Basic4ppc Veteran
 
Join Date: May 2007
Posts: 210
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

The attached application will detect the port and baud rate.
I also attach the serial2 and the GPS dlls
Attached Files
File Type: zip Autodet2.zip (9.9 KB, 40 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 11-16-2007, 05:18 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Derez, Thanks for the app, I ran it and got anError ay sub timer1_tick line 88 If Serial.InBufferCount>0 then gps. .....
Error TargetInvocationEception
??
Just before that it briefly showed port 3 baud 2400 - does that sound right?

Also when the dll was copied across I cant actually see it in the directory. Do these librarys go invisible when they r on the storage card??
Reply With Quote
  #7 (permalink)  
Old 11-16-2007, 05:51 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Erel - Thanks, the exe you supplied has installed the GPS4PPC program fine on my PDA - and it works
Q1) What is the second box on the GPS function which lists (Wgs84,Wgs72 .... Britain36 ...)??

Q2)I still cant get the sorce code version to run without that error.
Can you just explain again about that Serial2 library. Is that something that ur team have written or is it a Microsoft thing?

Q3)When I copied it across it seemed to vanish from the folder I put it in??? Where are dll stored?

Last edited by colin9876 : 11-16-2007 at 06:28 PM.
Reply With Quote
  #8 (permalink)  
Old 11-17-2007, 04:58 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

This is the datums list.
See the second part of the GPS tutorial: GPS application - Part II

You should remove SerialDesktop and SerialDevice from the Components table and add Serial2.

The file explorer on the device hides dll files, you should tap and hold on an empty space and choose Show All Files.

Serial2 is part of Basic4ppc. You can find it in Basic4ppc libraries folder.
Reply With Quote
  #9 (permalink)  
Old 11-17-2007, 11:21 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Great - it works now - its really clever that Basic4PPC can access GPS. Im just going to look up what Datums are on google lol!

Just out of interest, so WM6 needs a different Serial library than WM5?? Why is that - I didnt realise WM5 & WM6 were that different?

Last edited by colin9876 : 11-17-2007 at 11:27 AM.
Reply With Quote
  #10 (permalink)  
Old 11-17-2007, 11:54 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

.Net CF 2.0 works with Serial2.dll while .Net CF 1.0 works with SerialDevice.
SerialDevice is the only library which is not supported by .Net CF 2.0.

WM6.0 devices are preinstalled with .Net CF 2.0. Older devices are preinstalled with .Net CF 1.0.
Unless you are targeting very old devices (Pocket PC 2002), I recommend you to use Serial2 and install .Net CF 2.0 if required.
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
USB-port jongkoenp Questions & Help Needed 5 11-09-2008 07:55 PM
Save program settings ( file or registry ?) TWELVE Questions & Help Needed 7 05-11-2008 07:12 PM
ftp port dciple Questions & Help Needed 4 04-13-2008 04:39 PM
Settings for User's selected 'theme' willisgt Questions & Help Needed 2 02-21-2008 05:06 PM
Regional Settings: Error loading program. Exception mtse Bug Reports 0 05-24-2007 02:40 AM


All times are GMT. The time now is 07:10 PM.


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