LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2019, 05:52 PM   #1
injijagwalaafq
Member
 
Registered: Oct 2013
Posts: 36

Rep: Reputation: Disabled
GPSD difficulties xubuntu


I am trying to setup gps on a ubuntu based cap pc system. I have gpsd and gpsd -clients installed via apt. I have been trying to follow these instructions. My GPS reciver is a usb device.lsusb gives the following
Code:
Bus 001 Device 006: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 007: ID 1546:01a7 U-Blox AG
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 0557:2213 ATEN International Co., Ltd CS682 2-Port USB 2.0 DVI KVM Switch
Bus 003 Device 002: ID 0557:8021 ATEN International Co., Ltd CS1764A [CubiQ DVI KVMP Switch]
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 002 Device 002: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
This tells me that my reciver is USB007.
Attempting to run
Code:
stty -F /dev/USB007 ispeed 4800 && cat </dev/USB007
gives the following:No such file or directory.

Running gpsd -D 5 -N -n /dev/ttyUSB007 the system says the the daemon is already running. after stopping the daemon and re running the above command it seems to execute normally. However, I am unable to run the next test command, which is telnet into the device.

So I am a couple of kinds of lost and frustrated. If there is a homer Simpson (mega idiot) proof method I am listening.

Thanks

Addendum:
Quote:
root@CAR-PC:/dev# systemctl stop gpsd.socket
root@CAR-PC:/dev# gpsd -D 5 -N -n /dev/USB007
gpsd:INFO: launching (Version 3.15)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTP: shmat(0,0,0) succeeded, segment 0
gpsd:PROG: NTP: shmat(32769,0,0) succeeded, segment 1
gpsd:PROG: NTP: shmat(65538,0,0) succeeded, segment 2
gpsd:PROG: NTP: shmat(98307,0,0) succeeded, segment 3
gpsd:PROG: NTP: shmat(131076,0,0) succeeded, segment 4
gpsd:PROG: NTP: shmat(163845,0,0) succeeded, segment 5
gpsd:PROG: NTP: shmat(196614,0,0) succeeded, segment 6
gpsd:PROG: NTP: shmat(229383,0,0) succeeded, segment 7
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmget(0x47505344, 8936, 0666) for SHM export succeeded
gpsd:PROG: shmat() for SHM export succeeded, segment 262152
gpsd:INFO: stashing device /dev/USB007 at slot 0
gpsd:INFO: opening read-only GPS data source type 0 and at '/dev/USB007'
gpsd:ERROR: device open of /dev/USB007 failed: No such file or directory - retrying read-only
gpsd:ERROR: read-only device open of /dev/USB007 failed: No such file or directory
gpsd:ERROR: initial GPS device /dev/USB007 open failed
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 122
gpsd:INFO: startup at 2019-10-21T23:01:24.000Z (1571698884)

Last edited by injijagwalaafq; 10-21-2019 at 06:03 PM. Reason: add info
 
Old 10-21-2019, 06:26 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Knowing the model number might help but look at the output of the dmesg command after you plug in the device. I would guess if the receiver is automatically recognized the device ID is /dev/ttyACM0.
 
Old 10-21-2019, 08:17 PM   #3
injijagwalaafq
Member
 
Registered: Oct 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
That seems to have felt with that issue. Running gpsd -D 5 -N -n /dev/ttyACM0 made the console dump endless gobbly gook. I guessing that is raw gps data. Progress. I hit control c and then ran chips. It seemed to attach the device. It did not report getting any signal. At least not that I could tell. No surprise considering that i am inside on the ground floor.

Am i going to have to run that command every time the system starts up?

Thanks
 
Old 10-21-2019, 10:11 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Whether the globally goob is meaningfully depends on what dialect the receiver outputs. If it was binary or text and if gpsd recognized the data. If moving the receiver to a window does not result in a signal indicator the additional troubleshooting is required.

I assume you are running a recent Ubuntu version and therefore using systemd. You casystems on how to write system script to start gpsd at boot.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpsd wont make, Motif LessTif problem bungle3 Linux - Software 0 10-06-2006 09:30 AM
gpsd, gpsdrive, delorme tripmate amp_man Linux - Software 4 09-11-2006 09:19 PM
GPSD not working from non-root user? Archer36 Slackware 1 03-21-2006 08:54 PM
Gpsd Make problems (DeLorme Tripmate) Perfidia Slackware 2 10-26-2005 07:02 AM
gpsd on a zaurus 6000L skunkburner Linux - Laptop and Netbook 4 07-07-2005 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration