Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.