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 03-08-2015, 08:42   #151
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN for Android Beta test 4.1.718

Peter...
The Net segment you're using is working well for me to transfer between Windows and Linus PCs.
Have you checked that your net, wifi etc, really use the 192.168...... segment? Check an IP address on one, or several, of your equipment.
Håkan
Hakan is offline   Reply With Quote
Old 03-08-2015, 08:58   #152
ejs
Registered User

Join Date: Mar 2013
Location: From San Francisco
Boat: Leopard 48
Posts: 175
Re: OpenCPN for Android Beta test 4.1.718

Peter,

I also use that type of config to get data to OpeCPN, I think you need to check your IP addresses, the 0.0.0.0 doesn't look right to me for input as that number is usually non-routable and used for errors etc.

Eric
ejs is offline   Reply With Quote
Old 03-08-2015, 13:59   #153
Registered User

Join Date: Oct 2012
Location: Gulf Harbour, New Zealand
Boat: Farr Phase 4, 12.8m
Posts: 1,160
Re: OpenCPN for Android Beta test 4.1.718

Peter, Eric is correct, 0.0.0.0 is not a valid address. Networking 101...


So, first, find out what address your Wifi is using. - the subnet (first 3 groups of numbers between the dots. eg 192.168.0.x Forget the X for now. In windows you can use ipconfig /all from a command prompt to get this info.


Then, if you want the transmitted data to be available to all the devices on that subnet, you want to use the broadcast address for that subnet - so change the last set of numbers in your OPCN setup to .255 - so in the case above 192.168.0.255 - in your case ?.?.?.255 depending on your subnet.


You can use this address for both send and receive, and on multiple devices. It is a broadcast address that will send to/receive from any device on that subnet.
If you have multiple NICs on a PC this is how you tell OCPN which NIC and Subnet to use. :-)
Good Luck
__________________
Matt Paulin
Neptune's Gear is offline   Reply With Quote
Old 03-08-2015, 14:27   #154
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OpenCPN for Android Beta test 4.1.718

Quote:
Originally Posted by Neptune's Gear View Post
In windows you can use ipconfig /all from a command prompt to get this info.

And in linux, you can use from a terminal:
Code:
ifconfig eth0
if you have more than 1 network card, to show info for these cards, increase the number after eth, like eth1 eth2 etc

Code:
ifconfig eth1
,,,,
/P
petter5 is offline   Reply With Quote
Old 03-08-2015, 14:49   #155
ejs
Registered User

Join Date: Mar 2013
Location: From San Francisco
Boat: Leopard 48
Posts: 175
Re: OpenCPN for Android Beta test 4.1.718

Peter, Neptune,

Peter is using UDP so I don't think using the broadcast address 255 is a requirement. My system uses 10.0.0.1 (1 may be another special address, but I don't think so) Is there an advantage to using the 255 broadcast address when using UDP?

Eric
ejs is offline   Reply With Quote
Old 03-08-2015, 15:18   #156
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OpenCPN for Android Beta test 4.1.718

Quote:
These little devices do not have the raw horsepower of a modern x86 machine. They don't have the RAM capacity, they run many many background tasks/threads which cannot be eliminated, and their bulk storage (sdcard) is not particularly fast. OCPN has to share these limited resources with everything else that is running on the device.
Two apps downloadable from Google Play, 'Advanced Task Killer' and 'App Quarantine' are very effective at controlling tasks that self launch and 'run in the background'.

Highly recommended!
Wrong is offline   Reply With Quote
Old 03-08-2015, 16:40   #157
Registered User

Join Date: Aug 2010
Location: San Diego
Boat: Club sailor...Victory 21, Ensign 25, Catalina 25, Lagoon 380, Catalina 290
Posts: 27
Re: OpenCPN for Android Beta test 4.1.718

Quote:
Originally Posted by Wrong View Post
....from Google Play, 'Advanced Task Killer' and 'App Quarantine' are very effective at controlling tasks that self launch and 'run in the background'.
Sounds like the Android equivalent to Windows' Task Manager ?

If so, this would be a quick way to check for unwanted apps taking up CPU cycles and would keep the Android 'focused' on O-A tasks.

I'll check it out, thanks.
__________________
ATT Model LG-V410
Android Version 4.4.2
Kernel 3.4.0+
RSkillings is offline   Reply With Quote
Old 03-08-2015, 22:56   #158
Registered User
 
Peter McNamara's Avatar

Join Date: Jan 2014
Location: Port Adelaide
Boat: Farr 38
Posts: 40
Re: OpenCPN for Android Beta test 4.1.718

Eric, Matt and Hakan


I have only cloned the UDP config already recommended by yourself Hakan (and Dave from memory), in another thread started by me on this forum. The setup already works as demonstrated between the 2 Windows 7 Notebooks, so today I have experimented with turning off firewalls and security apps on both peers in case that was the cause. No luck. I am now wondering if this is a permissions issue regarding the network devices used by the WiFi since I have not gone to the trouble of "rooting" either Android device so the user that has installed the OpenCPN app may not have read/write access to the necessary WiFi devices within the OS?


Other comments are:


The install on the Lollipop HTC One appears unstable particularly when accessing the network setup screens. The HTC app does not appear to be able to access the internal GPS. I have read other threads regarding security features implemented in Android 5.0 that may be the cause.
Peter McNamara is offline   Reply With Quote
Old 03-08-2015, 23:33   #159
Registered User

Join Date: Oct 2012
Location: Gulf Harbour, New Zealand
Boat: Farr Phase 4, 12.8m
Posts: 1,160
Re: OpenCPN for Android Beta test 4.1.718

Peter, First, I must admit I don't have a lot of experience with UDP!


However my OCPN works on a 3 NIC pc with broadcast on UDP on the wifi subnet. I can connect any device (PC, Andriod, IPAD all work)


Here is my current understanding.


UDP can be point to point, or point to multi point (Broadcast). If you use 10.0.0.1 that is a private IP, but it most likely the IP of the NIC in your source PC. If there is only one NIC, this will likely work.


Copying someone's config may or may not work - it depends on the settings on YOUR system. Common addresses are 192.168.x.x (The X.X does not mean type in X, it stands for an unknown number 1-254) This, and the 10.0.0.x are common private IP addresses. Addresses and your network are also controlled by the mask. It is too complex for me to try to explain here, but if you Google IP subnetting, you can find everything you may want to know!


IMO it is good practice to use the correct broadcast address (normally, but not always x.x.x.255) if your intention is to broadcast data. I simply don't see a reason not to.


If you have more than 1 NIC in your PC, you will NEED to have the addressing correct to ensure that the data is broadcast on the right subnet. If it is wrong, your receive devices will receive nothing. First though, check that the data is going out with the NMEA monitoring window - it should show the data as "out" and show the ip and port it's sent on.


Others, who understand this more than me might contribute some more...


Matt
__________________
Matt Paulin
Neptune's Gear is offline   Reply With Quote
Old 03-08-2015, 23:51   #160
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN for Android Beta test 4.1.718

Peter...
I've used that UDP concept also trough a wifi net as a "one to several" - setup.
I should have checked first that your wifi net is working between Win/Linux and if so connected also the Andriod. I've no experiences of tablets or phones so it may be different there? (BTW, was the Android IP address in the correct segment, e.g. 192.168..?)
Håkan
Hakan is offline   Reply With Quote
Old 04-08-2015, 01:50   #161
Registered User
 
Peter McNamara's Avatar

Join Date: Jan 2014
Location: Port Adelaide
Boat: Farr 38
Posts: 40
Re: OpenCPN for Android Beta test 4.1.718

Hakan and Matt

If I use the actual DHCP service assigned IP address viz 192.168.137.1 assigned by the PC to localhost (itself) on both the Android and Windows OCPN it works. I wish I had not slept through the lecture on UDP networking back at Uni now :-(

The setup that I had been using with the PC's was exactly as I have stated above (ie. literally including the x.x bit). Anyway I have a solution I suppose. Would be good to know what's going on though.


Here is a link to the original thread:


http://www.cruisersforum.com/forums/...ws-134073.html

Thanks for your interest.

Cheers

Peter Mc
Peter McNamara is offline   Reply With Quote
Old 04-08-2015, 02:59   #162
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OpenCPN for Android Beta test 4.1.718

I recently compiled for windows and got v4.1.718 so that I could test ovpn_draw. This weekend I found that version crashed several times while using for nav on the boat. Went back to v4.0 and had to rebuild all the charts. I have found v4.1.602 to be stable enough on a long cruise. Is this version 4.1.718 not one I should be using for nav on the water yet?
rgleason is offline   Reply With Quote
Old 04-08-2015, 03:42   #163
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: OpenCPN for Android Beta test 4.1.718

The actual v4.1.718 has some code changes which might have been tested for Raspberry Pi and Android but obvious not for any other OS. Especially the new compass/gps status window code crashes. So don't use it.

Gerhard
CarCode is offline   Reply With Quote
Old 04-08-2015, 03:49   #164
Registered User

Join Date: Jan 2015
Location: PAIMPOL - FRANCE
Boat: FEELING 39 DI
Posts: 28
Re: OpenCPN for Android Beta test 4.1.718

I have lot off crash this week with thé version 4.1,718 if I change thé date to first july I have no crash open cpn work fine
ploubaz22 is offline   Reply With Quote
Old 04-08-2015, 09:27   #165
Registered User

Join Date: Dec 2014
Posts: 1
Re: OpenCPN for Android Beta test 4.1.718

Hello,

I'm using with lenovo TAB 2 A7-10F
Android 4.4.2
Opencpn is not on SD card. install from scratch.

I find the following issues:
In OpenCPN Settings, impossible to save Display options. The workaround is after changing the display option, go in the chart options, configure install chart file, press ok (even with no changes), then press back until coming back on the main screen.

I could not load a gpx file. I didn't find a workaround (except rekeying the waypoints).

but rest works well. great job !

regards.

Philippe
pbenaben 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
OpenCPN for Android Beta test 4.1.530 bdbcat OpenCPN 203 07-05-2017 21:20
OpenCPN for Android Beta test 4.1.705 bdbcat OpenCPN 79 25-07-2015 14:14
OpenCPN for Android Beta test 4.1.630 bdbcat OpenCPN 89 11-07-2015 01:39

Advertise Here


All times are GMT -7. The time now is 21:45.


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.