Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 15-09-2013, 01:39   #1
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: Czech Republic
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 98
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, https://www.klubko.net
klubko is offline   Reply With Quote
Old 15-09-2013, 06:41   #2
Registered User

Join Date: May 2011
Location: Lake Ont
Posts: 8,561
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, 07:49   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
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 offline   Reply With Quote
Old 15-09-2013, 08:18   #4
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,448
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, 08:27   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
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 offline   Reply With Quote
Old 15-09-2013, 08:34   #6
Registered User

Join Date: May 2011
Location: Lake Ont
Posts: 8,561
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, 08:41   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
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 offline   Reply With Quote
Old 15-09-2013, 08:42   #8
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,546
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 offline   Reply With Quote
Old 15-09-2013, 09:11   #9
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,448
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, 11:27   #10
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
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
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 15-09-2013, 16:10   #11
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: Czech Republic
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 98
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, https://www.klubko.net
klubko is offline   Reply With Quote
Old 15-09-2013, 16:46   #12
Marine Service Provider
 
Snore's Avatar

Join Date: Jan 2011
Location: St. Petersburg, FL
Boat: Retired Delivery Capt
Posts: 3,706
Send a message via Skype™ to Snore
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..." Ishmael
Snore is offline   Reply With Quote
Old 16-09-2013, 00:33   #13
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: Czech Republic
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 98
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, https://www.klubko.net
klubko is offline   Reply With Quote
Old 07-11-2013, 12: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, 16:44   #15
Registered User
 
klubko's Avatar

Join Date: Jan 2006
Location: Czech Republic
Boat: Hallberg-Rassy 31 Monsun, 30'9"
Posts: 98
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, https://www.klubko.net
klubko is offline   Reply With Quote
Reply

Tags
cal, wind


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


Advertise Here


All times are GMT -7. The time now is 14:18.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.