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 23-05-2022, 20:52   #1
Registered User

Join Date: May 2022
Posts: 53
Is OpenCPN a client/server app ? Multiple clients ?

I'm trying to figure out if OpenCPN has a client/server architecture underlying it.

If not, how does one run multiple instances of openCPN on a boat ? Let's say we have a dual helm monohull with a chart table down below and we want OpenCPN running at each location. How does one set that up ?
AboutTime1 is offline   Reply With Quote
Old 24-05-2022, 02:23   #2
Registered User
 
StuM's Avatar

Cruisers Forum Supporter

Join Date: Nov 2013
Location: Port Moresby,Papua New Guinea
Boat: FP Belize Maestro 43 and OPBs
Posts: 12,891
Re: Is OpenCPN a client/server app ? Multiple clients ?

Something like TightVNC?
https://www.tightvnc.com/


Run it at the chart table and mirror it to a device at the steering station (can be a an Android tablet with Remote Ripple (same URL as above)).
StuM is offline   Reply With Quote
Old 24-05-2022, 10:33   #3
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,318
Re: Is OpenCPN a client/server app ? Multiple clients ?

Or another concept. Not better. Just another for your choice.
One OCPN PC at the "chart table" with all wire/wire less connections from different devices. Make one output to network UDP. (Address 192.168.x.x port 10112 (Yes, actually .x.x))
One cheap "old time" 12 V router also down there.
Then you can connect as many OCPN PC/Android you want and use the network UDP source and see all data connected to the first one. (Address 0.0.0.0 port 10112)
But for this you've to have charts for all PC/Androids. To use VNC one chart set for the first PC is enough.
Hakan is offline   Reply With Quote
Old 24-05-2022, 11:50   #4
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,436
Re: Is OpenCPN a client/server app ? Multiple clients ?

it was an idea i had a while ago but it is never implemented. You for now, simply run two instances of opencpn and route data as needed. For example linking both opencpn via a tcp connection, or linking both to a signalk server. Potentially have a gps on each one for redundancy is good anyway. Unfortunately, routes/waypoints/tracks are not linked.

you can use vnc which is clunky and only one instance is run.

avnav can do this though which has a completely different software architecture.
seandepagnier is offline   Reply With Quote
Old 24-05-2022, 12:13   #5
Registered User

Join Date: May 2022
Posts: 53
Re: Is OpenCPN a client/server app ? Multiple clients ?

Quote:
Originally Posted by seandepagnier View Post
avnav can do this though which has a completely different software architecture.
That is exactly how I would have designed a multiple client nav system.

Thanks for sharing the link.
AboutTime1 is offline   Reply With Quote
Old 24-05-2022, 12:24   #6
Registered User

Join Date: Sep 2011
Location: Montreal
Boat: Fountaine Pajot / Venezia 42
Posts: 147
Re: Is OpenCPN a client/server app ? Multiple clients ?

VNC protocol is probably easier to deal with if you are a windows user.
However, if you are running OpenCPN on Linux, chances are that you know what X11 is. You can than send the DISPLAY to where you want and run multiple instances of OpenCPN on one computer. This would work as long as you have an IP network running in your boat.
Another possibility would be a hardware one: HDMI splitter. Your monitor on the chart table will be copied to the one at the helm. In my opinion, this is the simplest solution.
scargo is offline   Reply With Quote
Old 24-05-2022, 12:36   #7
Registered User

Join Date: May 2022
Posts: 53
Re: Is OpenCPN a client/server app ? Multiple clients ?

Quote:
Originally Posted by scargo View Post
VNC protocol is probably easier to deal with if you are a windows user.
However, if you are running OpenCPN on Linux, chances are that you know what X11 is. You can than send the DISPLAY to where you want and run multiple instances of OpenCPN on one computer. This would work as long as you have an IP network running in your boat.
Another possibility would be a hardware one: HDMI splitter. Your monitor on the chart table will be copied to the one at the helm. In my opinion, this is the simplest solution.

VNC sucks for this sort of use case. As does the HDMI splitter and redirecting X11 output.
AboutTime1 is offline   Reply With Quote
Old 24-05-2022, 12:38   #8
Moderator

Join Date: May 2014
Boat: Shuttleworth Advantage
Posts: 2,574
Images: 3
Re: Is OpenCPN a client/server app ? Multiple clients ?

Why not just run three monitors. Control by touch screen or air mouse.
Tupaia is offline   Reply With Quote
Old 24-05-2022, 13:35   #9
Registered User

Join Date: Jul 2018
Location: SF Bay Area
Boat: Other people's boats
Posts: 1,143
Re: Is OpenCPN a client/server app ? Multiple clients ?

Depends a bit on how you want it to function. I prefer redundancy, and dislike having someone at one station changing the display on the others. E.g. if I'm working on a chart or radar down below, it shouldn't mess with the helmsman's display and vice versa. Of course, I'm also paranoid and consider VNC to add an unnecessary link of dubious reliability.

Thus I'd prefer separate systems that are able to synchronize data between them, such that if I create routes, add chart notes, etc on one system they are cascaded to the others.

This can get costly if you have to pay for charts though. Which reminds me, the last boat I was on had three B&G plotters, as I believe all can use a single chart card regardless of which of them has it inserted. This, along with data synchronization, would be useful for OpenCPN.
requiem is offline   Reply With Quote
Old 24-05-2022, 13:41   #10
Registered User

Join Date: May 2022
Posts: 53
Re: Is OpenCPN a client/server app ? Multiple clients ?

Quote:
Originally Posted by StuM View Post
Something like TightVNC?
https://www.tightvnc.com/


Run it at the chart table and mirror it to a device at the steering station (can be a an Android tablet with Remote Ripple (same URL as above)).

This is why multi client applications should be designed with a true client server architecture.
AboutTime1 is offline   Reply With Quote
Old 24-05-2022, 22:34   #11
Registered User
 
AKA-None's Avatar

Join Date: Oct 2013
Location: Lake City MN
Boat: C&C 27 Mk III
Posts: 2,647
Re: Is OpenCPN a client/server app ? Multiple clients ?

Sorry I’m confused
Do you want mirrored displays or multiple independent displays
This has nothing to do with client server
Client server means you have a backend engine and a UI plus an app layer. Sometimes the UI and app layer are run on the same system but both can be considered client server just depends on how many tiers there are and if can be run independently (irrespective of where they are running)
__________________
Special knowledge can be a terrible disadvantage if it leads you too far along a path that you cannot explain anymore.
Frank Herbert 'Dune'
AKA-None is offline   Reply With Quote
Old 24-05-2022, 22:36   #12
Registered User
 
AKA-None's Avatar

Join Date: Oct 2013
Location: Lake City MN
Boat: C&C 27 Mk III
Posts: 2,647
Re: Is OpenCPN a client/server app ? Multiple clients ?

Quote:
Originally Posted by AboutTime1 View Post
This is why multi client applications should be designed with a true client server architecture.


Hmmm so mainframe apps don’t count as a multi user system? I assume that most people say client when they mean user or vs a vers
__________________
Special knowledge can be a terrible disadvantage if it leads you too far along a path that you cannot explain anymore.
Frank Herbert 'Dune'
AKA-None is offline   Reply With Quote
Old 24-05-2022, 22:45   #13
Registered User

Join Date: May 2022
Posts: 53
Re: Is OpenCPN a client/server app ? Multiple clients ?

Quote:
Originally Posted by AKA-None View Post
Sorry I’m confused
Do you want mirrored displays or multiple independent displays
Multiple independent displays.

Quote:
This has nothing to do with client server
Client server means you have a backend engine and a UI plus an app layer.
Or a browser as the app layer.

Quote:
Sometimes the UI and app layer are run on the same system but both can be considered client server just depends on how many tiers there are and if can be run independently (irrespective of where they are running)
Client-server is when there is a backend resource that provides services and data to multiple independent clients, just as the name implies.
AboutTime1 is offline   Reply With Quote
Old 24-05-2022, 22:48   #14
Registered User

Join Date: May 2022
Posts: 53
Re: Is OpenCPN a client/server app ? Multiple clients ?

Quote:
Originally Posted by AKA-None View Post
Hmmm so mainframe apps don’t count as a multi user system? I assume that most people say client when they mean user or vs a vers
Mainframe refers to hardware. These days most users are actually clients. If you log in on a terminal or using something like ssh you are a user. If you connect with a browser, you are a client.

I mean client.
AboutTime1 is offline   Reply With Quote
Old 25-05-2022, 01:22   #15
Moderator

Join Date: May 2014
Boat: Shuttleworth Advantage
Posts: 2,574
Images: 3
Re: Is OpenCPN a client/server app ? Multiple clients ?

Quote:
Originally Posted by AboutTime1 View Post
This is why multi client applications should be designed with a true client server architecture.

A couple of questions


How big is your boat?

How many navigators do you have on your boat?


Multiple operators of independent navigation systems that are properly integrated with an autopilot for example could result in disastrous consequences.


Just confused as to what your intended usage will be.
Tupaia is offline   Reply With Quote
Reply

Tags
enc, opencpn


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to have a client-server configuration? ptolomeoo OpenCPN 7 10-10-2019 16:25
Multiple propane devices, multiple solenoids? jpendoley Plumbing Systems and Fixtures 18 03-04-2017 20:18
Server Errors on the Server Errors thread Tom Stormcrowe Forum Tech Support & Site Help 11 24-08-2012 06:51
Multiple Batteries, Multiple Banks, Single Charger dakno Electrical: Batteries, Generators & Solar 3 06-06-2010 10:45

Advertise Here


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


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.