Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
GpsPort
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools
View previous topic :: View next topic  
Author Message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Wed Apr 16, 2008 11:06 pm    Post subject: GpsPort Reply with quote

This is a companion application for WM devices. It redirects COM port to TCP socket. This way TrekBuddy can access internal GPS where Java does not support serial port access (eg. Esmertec Jbed). TrekBuddy uses localhost (127.0.0.1) connection to read the NMEA data.

Issues:
    - it may attempt to establish GPRS connection, although it is not needed. No data are transfered, and such connection can be killed. 2009-01-27: It is Jbed who is trying to establish internet connection, it may attempt to establish WiFi/GPRS/... (according to preferences) connection.


Current version: 0.36
Sources (working copy): http://svn.trekbuddy.net/viewvc/trekbuddy/apps/gpsport/trunk/



GpsPortSP.exe
 Description:
GpsPort for Smartphones

Download
 Filename:  GpsPortSP.exe
 Filesize:  33.5 KB
 Downloaded:  1680 Time(s)


GpsPortPPC.exe
 Description:
GpsPort for PocketPCs

Download
 Filename:  GpsPortPPC.exe
 Filesize:  33 KB
 Downloaded:  2778 Time(s)



Last edited by kruch on Tue Jan 27, 2009 3:29 pm; edited 15 times in total
Back to top
View user's profile Send private message
domi



Joined: 30 Jul 2007
Posts: 10

PostPosted: Thu Apr 17, 2008 7:47 am    Post subject: Reply with quote

Hi,

I've tested version 0.3 on MDA vario3 (HTC Kaiser).

TB tries to establish a GPRS/UMTS connection as before. Confused


So, which changes did you do?

domi
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Thu Apr 17, 2008 8:24 am    Post subject: Reply with quote

domi wrote:
TB tries to establish a GPRS/UMTS connection as before. Confused


Previous version did not? I changed the code a bit... I rollbacked some parts and uploaded new version. I also attached source, so that anyone can have a look.
I do not understand why it tries to open any GPRS connection... Sad
Back to top
View user's profile Send private message
domi



Joined: 30 Jul 2007
Posts: 10

PostPosted: Thu Apr 17, 2008 12:18 pm    Post subject: Reply with quote

Hi,

thanks so far. Also I dont know why this happens. Maybe there is a registry key issue. Some time ago I detected a problem like this as I connected a USB device to my HTC. I hope I find a solution to this problem. Crying or Very sad

domi
Back to top
View user's profile Send private message
belrei



Joined: 18 Apr 2008
Posts: 12

PostPosted: Fri Apr 18, 2008 1:21 pm    Post subject: Smartphone version? Reply with quote

This tool really rocks! Many thanks, Kruch!
Finally it's possible to use Trekbuddy with Esmertec Jbed in fullscreen, which was not possible with IBM J9.
Do you plan to release a smartphone version? Using GpsPort on devices without touchscreen is a bit cumbersome.

Best wishes
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Sat Apr 26, 2008 8:28 am    Post subject: Reply with quote

Done, see initial post.
Still did not figure out how to avoid connecting which it does not need Sad
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4955

PostPosted: Mon Apr 28, 2008 8:13 pm    Post subject: Reply with quote

Very nice !! Works on HTC Touch Cruise with internal GPS

domi wrote:
Hi,

I've tested version 0.3 on MDA vario3 (HTC Kaiser).

TB tries to establish a GPRS/UMTS connection as before. Confused


So, which changes did you do?

domi


Maybe because it tries to connect to 127.0.0.1 This is not an internet connection but maybe the phone gets fooled into opening GPRS.

Manolis
Back to top
View user's profile Send private message Visit poster's website
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Fri May 02, 2008 9:36 am    Post subject: Reply with quote

Yes, fooled...
However franson's GpsGate got it solved somehow Embarassed
Back to top
View user's profile Send private message
e2demerzel



Joined: 12 Feb 2008
Posts: 7

PostPosted: Sat May 03, 2008 3:26 pm    Post subject: Reply with quote

Hi,

I'm trying to get TrekBuddy (0.9.78 ) to work with JBEd (20071119.3.1) and GpsPort (0.33) on a S730 with a Holux Slim 263 GPS. Everything works fine and fast(!) except GpsPort gives the message "Open Failed:2". Any idea?

(Trekbuddy with J9 and the same GPS (COM5, baudrate 2400) runs ok, but no fulle screen and slow.)

Eto
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Mon May 05, 2008 10:56 am    Post subject: Reply with quote

Hmmm, error code 2 means "File Not Found".

COM5 is an outgoing COM port created for your BT GPS?
Back to top
View user's profile Send private message
e2demerzel



Joined: 12 Feb 2008
Posts: 7

PostPosted: Mon May 05, 2008 12:16 pm    Post subject: Reply with quote

Yes, COM5 is an outgoing port (not secure). I tried COM7 in GPSport but cannot create an outgoing port on COM7.

I also used MortScript to read from COM5 for test and that works:
port="COM5:"
timeout="5000"
baudrate="2400"
length="100"
SetComInfo(port, timeout, baudrate)
data = ReadFile(port, 100)
message(data)

which gives for example: $GPGGA,121006.000,5149.6873,N,00425.5144,E,1,08,1.3,-12.6,M,47.2,M,,0000*4F.....

Eto
Back to top
View user's profile Send private message
temptrekbuddy



Joined: 27 Nov 2006
Posts: 193
Location: Poland

PostPosted: Mon May 05, 2008 12:47 pm    Post subject: Reply with quote

Could somebody post a link to the Esmertec JBed on which TB works. I'm using a non-touchscreen WM5 phone
_________________
Automatic Free 2GB backup -> Mozy; with this link 256MB extra.
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Mon May 05, 2008 12:52 pm    Post subject: Reply with quote

e2demerzel wrote:
Yes, COM5 is an outgoing port (not secure).


I added a check for the correct port to be opened. Uploaded v0.34.

Can you help temptrekbuddy to find a Jbed for Smartphone? I found this (http://www.ipmart-forum.com/showthread.php?t=241166) -looks good, but cannot confirm myself it works...
Back to top
View user's profile Send private message
e2demerzel



Joined: 12 Feb 2008
Posts: 7

PostPosted: Mon May 05, 2008 2:36 pm    Post subject: Reply with quote

Version 0.34 gives the message "Open (:) failed:2"

I'm using JRebeiro_EsmertecJbed_20071119.3.1 at the bottum of page http://forum.ppcgeeks.com/showthread.php?t=17616

I tried JBed3dMod_HeapSizeFix_12.02.2008_WM6 from http://www.ipmart-forum.com/showthread.php?t=241166 and that one gives the same result.

Eto
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Mon May 05, 2008 3:05 pm    Post subject: Reply with quote

Here we are... port is not retrieved from dropdown list, otherwise we would see something like

"Open (COM5:) failed:2"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group