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 Rating: Thread Rating: 4 votes, 4.00 average. Display Modes
Old 09-12-2012, 15:55   #61
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: OpenCpn install on android tablets easier now.

Sailias,

I was posting at the same time you were in response to your first post about BTgps.

Dmesg does not report the gps. It did report an OTG disconnect though when I unplugged the cable. Tried every option available for connecting to a gps through OpenCpn. Nada.

Gps connectivity isn't important to me because my Garmin reports all the information I need to know where I'm going. And periodically dropping marks in OpenCpn edited to reflect my current position according to the gps would alert me to any discrepancy. The exception would be if I was, for example, approaching an area strewn with reefs. Then I can fire up the laptop and run OpenCpn with the gps attached.

I'm pursuing the gps issue mainly for others.

Appreciate your ideas..

Armido
armido is offline   Reply With Quote
Old 09-12-2012, 15:58   #62
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

Give it a test then, you can mount the dev with the code supplied and point gpsd to that device (being your Garmin) from the linux side. Give it a test as its about 10 min work at most. Check the xda-dev post for instructions.

/ch
sailias is offline   Reply With Quote
Old 09-12-2012, 16:03   #63
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: OpenCpn install on android tablets easier now.

Sailias,

I have no problem using external USB devices with the OTG cable, keyboard and USB storage devices using a USB hub. The gps however is not a storage device and whatever other tweak is needed to recognize non-storage type devices on the Xoom is missing.

When MxMariner can use vector charts I'll give it a go.

armido
armido is offline   Reply With Quote
Old 09-12-2012, 16:10   #64
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

Wrt to llnux a mounted device can be anything, if you can mount it and have an app to talk to it, your in business. So here is a simple test, plug your garmin into the USB hub, read dmesg to get the mount point, or lsusb then run gpsd against that mount point. Simple.

/ch
sailias is offline   Reply With Quote
Old 09-12-2012, 16:59   #65
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: OpenCpn install on android tablets easier now.

Sailias, Tried lsusb - no such file found. So I installed usbutils. Don't know whether it was a cable issue or missing usbutils. Also installed python-gps for the heck of it. Below is the output. USBGps still doesn't see the gps. Using gpsd is treading new ground for me. Can you suggest a command for gpsd from the info. below? OpenCpn lists ttyUSB2. What about the 2-1? lsusb returns Bus 002 Device 002: ID 091e:0003 Garmin International GPS (various models) Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 22b8:2a70 Motorola PCS Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub dmesg returns [10185.170551] usb 2-1: new full speed USB device number 2 using tegra-ehci [10185.408044] usb 2-1: New USB device found, idVendor=091e, idProduct=0003 [10185.408533] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 armido
armido is offline   Reply With Quote
Old 09-12-2012, 17:02   #66
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: OpenCpn install on android tablets easier now.

My post did not look like the end result. That's what you get copying and pasting here.

armido
armido is offline   Reply With Quote
Old 09-12-2012, 17:14   #67
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

do the following if you are game on the linux side...

#sudo dmesg > dmesg.txt then
#sudo lsusb > lsusb.txt

Send them to me off list at sailias@gmx.com

/ch
sailias is offline   Reply With Quote
Old 09-12-2012, 19:35   #68
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

what flavour or linux are your running?

/ch
sailias is offline   Reply With Quote
Old 10-12-2012, 03:14   #69
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: OpenCpn install on android tablets easier now.

Salias,

Couldn't attach txt files. An android thing...

Sent email.

Linux flavor Debian 6.0.6.

armido
armido is offline   Reply With Quote
Old 10-12-2012, 06:08   #70
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

Got nothing at the referenced email address. Dmesg is the critical one as it tells you what dev the USB is attached two. You are seeing two devices. So try this.

1. Install gpsd and gpsdclients
2. once installed as root run dpkg-reconfigure gpsd
3. the variables should look like this. it will ask you the questions and your config file /etc/defaults/gpsd on ubuntu looks like this
----------------------------
# Default settings for gpsd.
# Please do not edit this file directly - use `dpkg-reconfigure gpsd' to
# change the options.
START_DAEMON="true"
GPSD_OPTIONS="-G"
DEVICES="/dev/ttyUSB0"
USBAUTO="true"
GPSD_SOCKET="/var/run/gpsd.sock"
--------------------eof-----------------

4. plug in your gps unit and restart the linux system. Yes restart it.
5. Make sure that the GPS is set to NMEA output and baud rate is 4800 in the Garmin Device. This is found under setup on my GPSMap76
6. from a terminal run xgps and see if it gives you any data....be patient
7. if you see data then you are good, if not, well you listening on the wrong port
8. rerun dpkg-reconfigure but this time try /dev/ttyUSB1
9. repeat the cycle till you get data appearing in xgps, so try USB0, USB1, USB2 restarting the machine each time.

Report back your results. Then we can work on OCPN integration.

/ch
sailias is offline   Reply With Quote
Old 10-12-2012, 07:34   #71
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: OpenCpn install on android tablets easier now.

/ch

Question before I proceed. Should android UspGps be already started when I launch Linux?

armido
armido is offline   Reply With Quote
Old 10-12-2012, 07:39   #72
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

It does not matter....here is why. Once you start linux, it takes over the machine in terms of the hardware recognition. What it, linux can see, it will talk too. So whats happening on the android side is irrelevant. You effectively have two operating systems running side by side, at the same time, that dont see each other or know of its existence. Im going to be out for most of the day, so will check in later tonight only. Best of luck. Post what you get or where you get stuck, but you should be good to go for now,

/ch
sailias is offline   Reply With Quote
Old 10-12-2012, 07:40   #73
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

Best practise is to shut down all gps apps on the android side just to be safe.

/ch
sailias is offline   Reply With Quote
Old 11-12-2012, 06:18   #74
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: OpenCpn install on android tablets easier now.

Sailias,

Repeated attempts using your instructions have failed to yeild input from the gps.

gpsd is not automatically starting either.

I suspect two possible issues. Permissions and the fact udev has replaced hotplug. Preliminary research is that a udev rule is necessary to enable automatic launch of gpsd. I'm not privy to how these rules are used by the system and whether or not another configuration file is required. I created a udev rule from an example found on the net. No change. I'll search for other udev rule examples and compare to the one I've used. I'll also be researching the issue of permissions regarding access to /dev/ttyUSB'S.

All comers familiar with these issues are invited to contribute what they know, and experience they've had finding fixes.

Thanks,
armido
armido is offline   Reply With Quote
Old 11-12-2012, 06:37   #75
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCpn install on android tablets easier now.

send me a copy of dmesg just after you plugin the gps unit to the system. That would be helpful. You can start gpsd manually. man gpsd is you friend. udev is not a factor here, well not at this point. what does dpkg-reconfigure gpsd run as root give you?

/ch
sailias is offline   Reply With Quote
Reply

Tags
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
Xoom Quad Band Int'l Armel Running OpenCPN armido OpenCPN 25 03-11-2012 06:44
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 15:32
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 02:56.


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.