View previous topic :: View next topic |
Author |
Message |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Wed Apr 16, 2008 11:06 pm Post subject: GpsPort |
|
|
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/
Description: |
|
Download |
Filename: |
GpsPortSP.exe |
Filesize: |
33.5 KB |
Downloaded: |
1680 Time(s) |
Description: |
|
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 |
|
 |
domi
Joined: 30 Jul 2007 Posts: 10
|
Posted: Thu Apr 17, 2008 7:47 am Post subject: |
|
|
Hi,
I've tested version 0.3 on MDA vario3 (HTC Kaiser).
TB tries to establish a GPRS/UMTS connection as before.
So, which changes did you do?
domi
|
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Thu Apr 17, 2008 8:24 am Post subject: |
|
|
domi wrote: |
TB tries to establish a GPRS/UMTS connection as before. |
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...
|
|
Back to top |
|
 |
domi
Joined: 30 Jul 2007 Posts: 10
|
Posted: Thu Apr 17, 2008 12:18 pm Post subject: |
|
|
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.
domi
|
|
Back to top |
|
 |
belrei
Joined: 18 Apr 2008 Posts: 12
|
Posted: Fri Apr 18, 2008 1:21 pm Post subject: Smartphone version? |
|
|
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 |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Sat Apr 26, 2008 8:28 am Post subject: |
|
|
Done, see initial post.
Still did not figure out how to avoid connecting which it does not need
|
|
Back to top |
|
 |
guest
Joined: 08 Oct 2006 Posts: 5035
|
Posted: Mon Apr 28, 2008 8:13 pm Post subject: |
|
|
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.
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 |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Fri May 02, 2008 9:36 am Post subject: |
|
|
Yes, fooled...
However franson's GpsGate got it solved somehow
|
|
Back to top |
|
 |
e2demerzel
Joined: 12 Feb 2008 Posts: 7
|
Posted: Sat May 03, 2008 3:26 pm Post subject: |
|
|
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 |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Mon May 05, 2008 10:56 am Post subject: |
|
|
Hmmm, error code 2 means "File Not Found".
COM5 is an outgoing COM port created for your BT GPS?
|
|
Back to top |
|
 |
e2demerzel
Joined: 12 Feb 2008 Posts: 7
|
Posted: Mon May 05, 2008 12:16 pm Post subject: |
|
|
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 |
|
 |
temptrekbuddy
Joined: 27 Nov 2006 Posts: 193 Location: Poland
|
Posted: Mon May 05, 2008 12:47 pm Post subject: |
|
|
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 |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Mon May 05, 2008 12:52 pm Post subject: |
|
|
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 |
|
 |
e2demerzel
Joined: 12 Feb 2008 Posts: 7
|
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Mon May 05, 2008 3:05 pm Post subject: |
|
|
Here we are... port is not retrieved from dropdown list, otherwise we would see something like
"Open (COM5:) failed:2"
|
|
Back to top |
|
 |
|