Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 15-09-2013, 02:39   #1
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: aboard, Borneo
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 97
Technical: windows 8 tablet location server

Hi,
I got myself win8 tablet and would like to use OpenCPN on it. I tried the Localizer, which sometimes works, sometimes not.
I was thinking about writing an http server in c# that would interface the Geolocation API. Would this approach be a sensible solution? I am not very well versed in c++ and I am currently on a very slow connection, which does help.
I assume that opencpn is just sending http request to the server, when using the network connection?
Thanks for any pointers.
__________________

__________________
Petr & Jana
s/y Janna, http://www.klubko.net
klubko is offline   Reply With Quote
Old 15-09-2013, 07:41   #2
Registered User

Join Date: May 2011
Location: Toronto
Boat: Sandpiper 565
Posts: 2,943
Re: Technical: windows 8 tablet location server

I'm not 100% understanding what you propose to do. Does your tablet have a built-in GPS receiver, and if not, are you looking for a solution to providing that position info from elsewhere, like from another computer with GPS data, over wifi?

I'm familiar with gpsd on Linux, and there's apparently a way to run it on a Windows box.
__________________

__________________
Lake-Effect is offline   Reply With Quote
Old 15-09-2013, 08:49   #3
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Technical: windows 8 tablet location server

Petr...
HTTP is not used at all. The data source is a simple TCP or UDP server outputting text NMEA stream. OpenCPN connects to it as a client and reads the text.
What you would have to do is query the Windows LocationAPI, produce a valid NMEA sentence and send it out (Look for example at A very basic TCP server written in C# - CodeProject)
I have done some experiments writing a plugin to provide the location from this API directly to OpenCPN, but no usable result so far - the COM object refuses to even be instantiated in an application using WxWidgets.

Pavel
__________________
nohal is online now   Reply With Quote
Old 15-09-2013, 09:18   #4
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Technical: windows 8 tablet location server

Meaning tablet Win8 GPS *NOT* available on COM?

If not available on a COM, then how does it manifest on the hardware side?

b.
__________________
barnakiel is offline   Reply With Quote
Old 15-09-2013, 09:27   #5
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Technical: windows 8 tablet location server

b...
The funny part of this is that the GPS chips in the Win8 devices are exactly the same as everywhere else - sending out NMEA over serial connection. The problem is that in the OS they are not accessible as hardware device at all - the only way to get the information is a COM API (not COM port) called Windows Location API. That's why no "normal" navigation SW works with them. Not even MS's own mapping applications were working with this "new invention" until recently.

Pavel
__________________
nohal is online now   Reply With Quote
Old 15-09-2013, 09:34   #6
Registered User

Join Date: May 2011
Location: Toronto
Boat: Sandpiper 565
Posts: 2,943
Re: Technical: windows 8 tablet location server

Quote:
Originally Posted by nohal View Post
b...
The funny part of this is that the GPS chips in the Win8 devices are exactly the same as everywhere else - sending out NMEA over serial connection. The problem is that in the OS they are not accessible as hardware device at all - the only way to get the information is a COM API (not COM port) called Windows Location API. That's why no "normal" navigation SW works with them. Not even MS's own mapping applications were working with this "new invention" until recently.

Pavel
So a simple hand-rolled server in C# (dot-NET) should be able to get the GPS data via the Windows Location API, and make it available on port 2947, just like gpsd, yes?
__________________
Lake-Effect is offline   Reply With Quote
Old 15-09-2013, 09:41   #7
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Technical: windows 8 tablet location server

Yes, true. You just have to create the NMEA sentences from the objects you get from the API.

Pavel
__________________
nohal is online now   Reply With Quote
Old 15-09-2013, 09:42   #8
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: Technical: windows 8 tablet location server

... and BTW MicroSoft never has learned to handle virtual COM ports all the years since MS-DOS.
But you can buy ($15) this for Win8 tablets: Centrafuse Inc. - Centrafuse Loclaizer
__________________
CarCode is online now   Reply With Quote
Old 15-09-2013, 10:11   #9
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Technical: windows 8 tablet location server

Will Microsoft ever stop their silly games? Esp. that every time they send a low ball, they lose.

;-)

b.
__________________
barnakiel is offline   Reply With Quote
Old 15-09-2013, 12:27   #10
Nearly an old salt
 
goboatingnow's Avatar

Cruisers Forum Supporter

Join Date: Jun 2009
Posts: 13,649
Images: 3
Quote:
Originally Posted by barnakiel View Post
Will Microsoft ever stop their silly games? Esp. that every time they send a low ball, they lose.

;-)

b.
Don't worry they'll be a footnote within 5 years

Dave
__________________
Check out my new blog on smart boat technology, networking and gadgets for the connected sailor! - http://smartboats.tumblr.com
goboatingnow is offline   Reply With Quote
Old 15-09-2013, 17:10   #11
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: aboard, Borneo
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 97
Re: Technical: windows 8 tablet location server

Thanks all for the input.
@Pavel, that's what I had in mind. Seemed easier than writing a plugin (due to my poor knowledge of c++).
I suppose I can give it a shot.
Cheers
Petr
__________________
Petr & Jana
s/y Janna, http://www.klubko.net
klubko is offline   Reply With Quote
Old 15-09-2013, 17:46   #12
Registered User
 
Snore's Avatar

Join Date: Jan 2011
Location: www.USCGMaster.com
Boat: Tartan 33
Posts: 1,881
At work I am having some guys testing some HP tablets and getting a GPS puck to interface with ESRI Mobile Maps- a GIS product. I am 99% sure we got the puck to talk to the ESRI product.

Based on that, if the only thing you want to get onto the tablet is location, the GPS antenna and software may be the most cost and energy efficient way to go.
__________________
"Whenever...it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off- then, I account it high time to get to sea..." Ismael ---- NEW website! www.USCGMaster.com
Snore is offline   Reply With Quote
Old 16-09-2013, 01:33   #13
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: aboard, Borneo
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 97
Re: Technical: windows 8 tablet location server

Yeah, I suppose GPS puck might be better, but I can't get it where I am now and besides, this was a matter of few hours of typing.
Seems to be working, more or less. Comments most welcome!
https://bitbucket.org/petrsimon/geolocationtcp
__________________
Petr & Jana
s/y Janna, http://www.klubko.net
klubko is offline   Reply With Quote
Old 07-11-2013, 13:25   #14
Registered User

Join Date: Nov 2011
Posts: 24
Re: Technical: windows 8 tablet location server

hi, the exe seems to work great ! makes me happy, but the coordinates seem to be wrong on my Lenovo tab 2 with win8 pro, 32 bit.

it shows me in the UK in stead of the Netherlands. is this something I can solve somehow?

kind regards, and keepmup the great work !
Andrew
__________________
ehlen000 is offline   Reply With Quote
Old 07-11-2013, 17:44   #15
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: aboard, Borneo
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 97
Re: Technical: windows 8 tablet location server

not sure really. are you using only gps? if your wifi is on on the location can be quite off, but should stay within a country, i think. also you might need to get outdoors or give it a time. i had mixed results at the beginning, but in few minutes theresult settled reasonably
__________________

__________________
Petr & Jana
s/y Janna, http://www.klubko.net
klubko is offline   Reply With Quote
Reply

Tags
cal, wind

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 03:53.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.