Getting CF-30 OEM GPS to work under Linux/Ubuntu

Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
Message
Author
User avatar
Azrial
Posts: 540
Joined: Sun Nov 29, 2009 1:52 pm
Location: Hotlanta, GA, USA!
Contact:

Getting CF-30 OEM GPS to work under Linux/Ubuntu

#1 Post by Azrial »

Sorry Guys, I have been trying to duplicate your GPS fix in Ubuntu with FoxtrotGPS and it still does not see my GPS. I have a feeling that due to your familiarity with the subject that you are skipping some parts of the operation that you believe should be obvious... Anyone care to write a step by step?
I am what I am, somebody has to be.
Call me for free from anywhere in the USA from my homepage! http://www.azrial.com/
CF-31JEGAX1M Mk2 Intel i5-2520M 2.50 GHz, Win7x64 & Ubuntu x64 14.04LTS Dual Boot, 16GB RAM, Samsung 250GB SSD, 2x64GB USB FD, 64GB SDHC, GOBI 4000, BUGPS, IBM AC/DC Supply #22P9003

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#2 Post by SHEEPMAN! »

Call me until 0000 Pacific or 2359 or 0001. For you any time.

J'd
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
Azrial
Posts: 540
Joined: Sun Nov 29, 2009 1:52 pm
Location: Hotlanta, GA, USA!
Contact:

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#3 Post by Azrial »

Thanks Jeff! But I guess that you turned in early tonight! :zzz: I called at 00:00 Pacific as specified.

EDIT: On second reading, I guess that you wanted me to call you before 00:00. Oh well, sorry! :pat:
I am what I am, somebody has to be.
Call me for free from anywhere in the USA from my homepage! http://www.azrial.com/
CF-31JEGAX1M Mk2 Intel i5-2520M 2.50 GHz, Win7x64 & Ubuntu x64 14.04LTS Dual Boot, 16GB RAM, Samsung 250GB SSD, 2x64GB USB FD, 64GB SDHC, GOBI 4000, BUGPS, IBM AC/DC Supply #22P9003

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#4 Post by UNCNDL1 »

From Jeff's post here: viewtopic.php?f=39&t=1841
Scroll down and find this script to run in Terminal-
On a Linux program on a CF-30, (no gobi) I use:
1. sudo killall gpsd #just to make sure
2. sudo gpsd -D5 -N -n /dev/ttyS2
3. start foxtrot

This is where you make sure you're gps is running. S2 equals Com port 3 in Linux speak.
I would be outside in the open the first time, just to make sure. This works in my kitchen but just saying.

Next comes a little reading here: viewtopic.php?f=39&t=1319
Go to page 5 after reading and scroll down to this:
Call me and I can talk you through it. It's worth the effort in my opinion. Hoping someone else can validate this:
"Sorry about above screen shots, but when you configure/re-configure gpsd, there are three or four pages to go through. On the first page you would tab over to YES, and then hit enter. Next page is where you would configure your device. The nice thing is once you do this, at least for me, is that now when I turn on the Toughbook and click on FoxtrotGPS, it finds my position right away and displays a map. The settings would be different if you are using a usb gps or have installed yours on a different port.
I leave the third page blank, and the fourth page I accept the defaults, and then exit.
Steps to above in Terminal:
1. sudo dpkg-reconfigure gpsd
2. You are then going to configure your gpsd and add this so your system loads to: /dev/ttyS2
3. After configuring gpsd, you will type in terminal,
sudo service gpsd restart
4. re-boot system after you see OK in the terminal

From above notes, go into Terminal and type cut paste the first line, this will take you into re-configuring your gpsd. You will be prompted for your Password. Just thought of something, maybe you better make sure you have gpsd loaded on your Ubuntu system. gpsd is required for FoxtrotGPS as well as OpenCPN and most navigation programs. Try using the Ubuntu software center, or whatever they are calling it in your distro. Type gpsd into the search box and add it if not already loaded.
Okay, you have gpsd installed, and you've typed in Terminal:
sudo dpkg-reconfigure gpsd
A Configuring gpsd page loads, and asks you to click yes or no to start gpsd automatically. Choose Yes and hit Enter.
Next page asks you if gpsd should handle attached USB GPS receivers automatically? Enter Yes.
Third page of configuration should work if you make the bottom line, blank under "Device the GPS receiver is attached to:
However, I would type in these words: /dev/ttyS2
Tab down to OK, hit Enter
Fourth page of configuration loads. I make the Options to gpsd blank, tab to ok, hit Enter.
Fifth and final page of configuration should read: /var/run/gpsd.sock
Tab to ok, hit Enter.
This will take you back to the Terminal. Whew! Final step is to type this:

sudo service gpsd restart

Exit Terminal, close down and re-boot your system.
You should be able to go outside now, turn on your computer and boot Ubuntu.
Run FoxtrotGPS and a map should load of your position.

Call me this morning if need be. I don't go to work until 1030 hours EST.

Cleve
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

User avatar
Azrial
Posts: 540
Joined: Sun Nov 29, 2009 1:52 pm
Location: Hotlanta, GA, USA!
Contact:

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#5 Post by Azrial »

This is the last thing I get with reconfigure gpsd:

azrial@ShadowJack-L:~$ sudo service gpsd restart
[sudo] password for azrial:
* Restarting GPS (Global Positioning System) daemon gpsd gpsd:PROG: control socket opened at /var/run/gpsd.sock
gpsd:INFO: launching (Version 3.9)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTPD shmat(0,0,0) succeeded, segment 0
gpsd:PROG: NTPD shmat(32769,0,0) succeeded, segment 1
gpsd:PROG: NTPD shmat(65538,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(98307,0,0) succeeded, segment 3
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmat() succeeded, segment 131076
gpsd:PROG: shared-segment creation succeeded,
gpsd:PROG: PPS thread launched
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device /dev/ttyS2 at slot 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening GPS data source type 2 at '/dev/ttyS2'
gpsd:PROG: PPS Create Thread gpsd_ppsmonitor
gpsd:PROG: PPS chrony socket /var/run/chrony.ttyS2.sock doesn't exist
gpsd:INFO: KPPS checking /sys/devices/virtual/pps/pps0/path, /dev/ttyS2
gpsd:INFO: KPPS caps 1133
gpsd:WARN: KPPS kernel PPS will be used
gpsd:INFO: speed 9600, 8N1
gpsd:IO: => GPS: $PASHQ,RID*28\x0d\x0a
gpsd:IO: => GPS: @F0.3=1*67\x0d\x0a
gpsd:IO: => GPS: @F2.2=1*64\x0d\x0a
gpsd:IO: writing oncore control type Cj
gpsd:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a
gpsd:PROG: Probing "Garmin USB binary" driver...
gpsd:PROG: Probe not found "Garmin USB binary" driver...
gpsd:PROG: Probing "GeoStar binary" driver...
gpsd:IO: Sent GeoStar packet id 0xc1
gpsd:IO: => GPS: 5053474700c100010000000050924746
gpsd:PROG: Probe not found "GeoStar binary" driver...
gpsd:PROG: Probing "Trimble TSIP" driver...
gpsd:INFO: speed 9600, 8O1
gpsd:IO: => GPS: $PASHQ,RID*28\x0d\x0a
gpsd:IO: => GPS: @F0.3=1*67\x0d\x0a
gpsd:IO: => GPS: @F2.2=1*64\x0d\x0a
gpsd:IO: writing oncore control type Cj
gpsd:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a
gpsd:INFO: speed 9600, 8N1
gpsd:IO: => GPS: $PASHQ,RID*28\x0d\x0a
gpsd:IO: => GPS: @F0.3=1*67\x0d\x0a
gpsd:IO: => GPS: @F2.2=1*64\x0d\x0a
gpsd:IO: writing oncore control type Cj
gpsd:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a
gpsd:PROG: Probe not found "Trimble TSIP" driver...
gpsd:PROG: no probe matched...
gpsd:INFO: gpsd_activate(): activated GPS (fd 7)
gpsd:INFO: device /dev/ttyS2 activated
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2014-06-13T11:26:54.000Z (1402658814)
I am what I am, somebody has to be.
Call me for free from anywhere in the USA from my homepage! http://www.azrial.com/
CF-31JEGAX1M Mk2 Intel i5-2520M 2.50 GHz, Win7x64 & Ubuntu x64 14.04LTS Dual Boot, 16GB RAM, Samsung 250GB SSD, 2x64GB USB FD, 64GB SDHC, GOBI 4000, BUGPS, IBM AC/DC Supply #22P9003

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#6 Post by UNCNDL1 »

Azrial, I'll have to load a Ubuntu distro and see what's up. I'm thinking it must be something to do with gpsd, which is needed to run Foxtrot, OpenCPN, Viking, Navit, etc...Talking with you today it did not seem that the reconfiguration of gpsd took. We'll sort it out, Left coast, Right coast, maybe someone else has an idea?
BTW, Navigatrix 0.5 (new May version) usb in the mail, should see it early next week. You'll be able to load it "live" and see what it has to offer. However, since you are having issues with Linux & gps now, it's worth a try to see if it works. There could be a conflict with some other hardware i.e. BT, parallel port, serial port, etc. Time will tell.
TTYL, Cleve
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#7 Post by UNCNDL1 »

I'm at work and can't leave for a while, found some good reading for the so inclined.
First is from the OpenCPN website user manual, scroll down to the Linux section and go from there:
http://opencpn.org/ocpn/setting_up_gps
The example in above post is for illustration only (they use a usb gps).
Scroll down and see "More Linux Hints"

From the Navigatrix web site, there is a post for Linux & GPS: http://navigatrix.net/viewtopic.php?f=4&t=366
The post is diagnosing a gps that does not work, again a usb but that's okay too.
They diagnose the problem by running a script with and WITHOUT the gps turned on.
I'm hoping this is the beginning of figuring out the problem for you. Take care.

From the Navigatrix forums, I came across this to try: Some gps get recognized as /dev/acm0.
Maybe its like this with your internal gps. Can you give it a try ?
An interesting article on the difference between /dev/ttyUSB and /dev/ttyacm
https://www.rfc1149.net/blog/2013/03/05 ... evttyacmx/

Oops, could not resist. Saved this for last, it's a long one from the Ubuntu Manual:
http://manpages.ubuntu.com/manpages/nat ... psd.8.html
:clapping:
Last edited by UNCNDL1 on Fri Jun 13, 2014 7:06 pm, edited 2 times in total.
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#8 Post by SHEEPMAN! »

Thanks Cleve....Az and I had a two hour +- on this eeeeearly this a.m. I ran my tricks and twists by it. The only thing I can add to that is to [F2] to bios and disable gps and boot. Then re-boot again and [F2] and set gps to on instead of auto [F10] to save.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#9 Post by UNCNDL1 »

Sadlmkr wrote:Thanks Cleve....Az and I had a two hour +- on this eeeeearly this a.m. I ran my tricks and twists by it. The only thing I can add to that is to [F2] to bios and disable gps and boot. Then re-boot again and [F2] and set gps to on instead of auto [F10] to save.
I know, I had a long talk with him this morning also. Remember the other day when I took out my Linux hard drive/caddy from the CF-30, and popped back in the original windows 7 hard drive/caddy, and then my gps did NOT work? Weird, as the original did work before I put it away, and the Linux one worked also. When I switched back to original, the gps did not work, until I went into bios as you suggest and eliminated possible conflicting hardware. Then gps worked like a champ. Weird.
I know, what he needs is another one of these CF-30's with low hours, one for Ubuntu and one for Windows 7 :salute: tongue in cheek
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: Getting CF-30 OEM GPS to work under Linux/Ubuntu

#10 Post by SHEEPMAN! »

I'm working on a completely different project and there is gpsd data interfering.

My recommendation:
sudo killall gpsd
sudo apt-get remove gpsd gpsd-clients #testing....tested fine
sudo apt-get autoremove # as recommended by apt
restart
sudo apt-get gpsd gpsd-clients #answer yes to python and lib20
restart
In bios set gps to other than auto ...#I'm hacking a bios locked 52 so can't go there now.
OUT OF ORDER.....in terminal send $groups # to see if you are in dialout group
--------------------------------------------------------------------------------------------------------------------------------------------------
gun@GUNBP2M ~/Desktop $ groups
gun adm dialout fax cdrom floppy tape sudo audio dip video plugdev netdev fuse lpadmin scanner sambashare
gun@GUNBP2M ~/Desktop $
The first word is you, the rest are the groups you have access to. adm is supposed to cover it all but I add dialout anyway. Dialout includes access to tty. Check this to see if I am clear.

There's a quote somewher by berlios "sanity check"...I'll find it...wait one....heh! guess who. :D
http://forum.notebookreview.com/panason ... ost9484075
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

Post Reply

Return to “The LINUX forum!!!”