gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: COEX GPS (model UBX-M8030 IC) on Raspberry Pi 4 Model B 2018 connect


From: Aranza Shaccid Leon
Subject: Re: COEX GPS (model UBX-M8030 IC) on Raspberry Pi 4 Model B 2018 connection issues
Date: Wed, 21 Jul 2021 22:43:12 -0700

Hello!

Thank you for informing me. Here is the gpsdebuginfo:

root@clover-1060:/var/tmp# cat tmo.log
+ id -u
+ [ 0 != 0 ]
+ id
uid=0(root) gid=0(root) groups=0(root)
+ uname -a
Linux clover-1060 5.10.17-v7l+ #1414 SMP Fri Apr 30 13:20:47 BST 2021 armv7l GNU/Linux
+ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
+ command -v gpsd
/usr/sbin/gpsd
+ gpsd -V
gpsd: 3.17 (revision 3.17)
+ gpsd -h
+ grep ^#.*enabled
# Socket export enabled.
# Shared memory export enabled.
# DBUS export enabled
# Time service features enabled.
# PPS enabled.
+ command -v sockstat
+ command -v lsof
/usr/bin/lsof
+ lsof -iTCP:2947 -s TCP:LISTEN
+ sed -nE 1p;/CHR|LISTEN/p
+ lsof -c gpsd
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
gpsdebugi 962 root    0u   CHR  136,0      0t0     3 /dev/pts/0
+ ps ax
+ sed -nE 1p;/gpsd/p
  PID TTY      STAT   TIME COMMAND
  962 pts/0    S+     0:00 /bin/sh ./gpsdebuginfo
  975 pts/0    S+     0:00 sed -nE 1p;/gpsd/p
+ command -v gpspipe
/usr/bin/gpspipe
+ gpspipe -V
gpspipe: 3.17 (revision 3.17)
+ gpspipe -w -n 2 -x 20
gpspipe: invalid option -- 'x'
Usage: gpspipe [OPTIONS] [server[:port[:device]]]

-d Run as a daemon.
-o [file] Write output to file.
-h Show this help.
-r Dump raw NMEA.
-R Dump super-raw mode (GPS binary).
-w Dump gpsd native data.
-S Set scaled flag.
-2 Set the split24 flag.
-l Sleep for ten seconds before connecting to gpsd.
-t Time stamp the data.
-T [format] set the timestamp format (strftime(3)-like; implies '-t')
-u usec time stamp, implies -t. Use -uu to output sec.usec
-s [serial dev] emulate a 4800bps NMEA GPS on serial port (use with '-r').
-n [count] exit after count packets.
-v Print a little spinner.
-p Include profiling info in the JSON.
-P Include PPS JSON in NMEA or raw mode.
-V Print version and exit.

You must specify one, or more, of -r, -R, or -w
You must use -o if you use -d.
+ command -v ipcs
/usr/bin/ipcs
+ ipcs -m
+ sed -nE /key/p;/KEY/p;/0x4e5450/p
key        shmid      owner      perms      bytes      nattch     status
+ command -v ntpshmmon
/usr/bin/ntpshmmon
+ ntpshmmon -V
ntpshmmon: version 3.17 (revision 3.17)
+ ntpshmmon -n 6 -t 10
ntpshmmon version 1
#      Name Seen@                Clock                Real                 L Prec
+ ls -l /dev/pps* /dev/ttyACM0 /dev/ttyAMA0
ls: cannot access '/dev/pps*': No such file or directory
crw-rw---- 1 root dialout 166,  0 Jul 22 04:37 /dev/ttyACM0
crw-rw---- 1 root dialout 204, 64 Jul 22 03:17 /dev/ttyAMA0
+ command -v lsusb
/usr/bin/lsusb
+ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 26ac:0012
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+ echo PYTHONPATH
PYTHONPATH
+ command -v gpscat
/usr/bin/gpscat
+ command -v gpscat
+ head -n 1 /usr/bin/gpscat
#! /usr/bin/python
+ command -v python
/usr/bin/python
+ python -V
Python 2.7.16
+ python -c import gps;print(gps.__version__)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute '__version__'
+ command -v python3
/usr/bin/python3
+ python3 -V
Python 3.7.3
+ python3 -c import gps;print(gps.__version__)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gps'
+ command -v systemctl
/usr/bin/systemctl
+ cat /etc/default/gpsd /etc/init.d/gpsd
# Default settings for the gpsd init script and the hotplug wrapper.

# Start the gpsd daemon automatically at boot time
START_DAEMON="true"

# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"

# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyGPS"

# Other options you want to pass to gpsd
GPSD_OPTIONS=""
#!/bin/sh
### BEGIN INIT INFO
# Provides:          gpsd
# Required-Start:    $remote_fs $syslog $network
# Should-Start:      bluetooth dbus udev
# Required-Stop:     $remote_fs $syslog $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Start-Before:    ntp
# Short-Description: GPS (Global Positioning System) daemon
# Description:       The gpsd service daemon is able to monitor one or
#                    more GPS devices connected to a host computer, making
#                    all data on the location and movements of the sensors
#                    available to be queried on TCP port 2947.
### END INIT INFO

# Author: Bernd Zeimetz <bzed@debian.org>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
RUNDIR=/run/gpsd
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="GPS (Global Positioning System) daemon"
NAME=gpsd
DAEMON=/usr/sbin/$NAME
PIDFILE=$RUNDIR/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

if [ -z "$GPSD_SOCKET" ] && [ -z "$DEVICES" ]; then
        GPSD_SOCKET=/var/run/gpsd.sock
fi

if [ -n "$GPSD_SOCKET" ]; then
        GPSD_OPTIONS="$GPSD_OPTIONS -F $GPSD_SOCKET"
fi

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions

#
# Function that starts the daemon/service
#
do_start()
{
        # Return
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started

        mkdir -p $RUNDIR || return 2

        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
                || return 1
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
                $GPSD_OPTIONS -P $PIDFILE $DEVICES \
                || return 2
}

#
# Function that stops the daemon/service
#
do_stop()
{
        # Return
        #   0 if daemon has been stopped
        #   1 if daemon was already stopped
        #   2 if daemon could not be stopped
        #   other if a failure occurred
        start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
        RETVAL="$?"
        [ "$RETVAL" = 2 ] && return 2
        # Many daemons don't delete their pidfiles when they exit.
        rm -f $PIDFILE
        return "$RETVAL"
}

#
# Function that sends a SIGHUP to the daemon/service
#
do_reload() {
        #
        # If the daemon can reload its configuration without
        # restarting (for example, when it is sent a SIGHUP),
        # then implement that here.
        #
        start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
        return 0
}

case "$1" in
  start)
        if [ "$START_DAEMON" = "true" ]; then
                [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
                do_start
                case "$?" in
                        0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                        2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
                esac
        else
                [ "$VERBOSE" != no ] && \
                        log_daemon_msg "Not starting $DESC" "$NAME" && \
                        log_end_msg 0
        fi
        ;;
  stop)
        [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
        do_stop
        case "$?" in
                0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
  status)
       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
       ;;
  reload|force-reload)
        log_daemon_msg "Reloading $DESC" "$NAME"
        do_reload
        log_end_msg $?
        ;;
  restart)
        #
        # If the "reload" option is implemented then remove the
        # 'force-reload' alias
        #
        log_daemon_msg "Restarting $DESC" "$NAME"
        do_stop
        case "$?" in
          0|1)
                do_start
                case "$?" in
                        0) log_end_msg 0 ;;
                        1) log_end_msg 1 ;; # Old process is still running
                        *) log_end_msg 1 ;; # Failed to start
                esac
                ;;
          *)
                # Failed to stop
                log_end_msg 1
                ;;
        esac
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
        exit 3
        ;;
esac

:
+ systemctl cat gpsd.service
# /lib/systemd/system/gpsd.service
[Unit]
Description=GPS (Global Positioning System) Daemon
Requires=gpsd.socket
# Needed with chrony SOCK refclock
After=chronyd.service

[Service]
Type=forking
EnvironmentFile=-/etc/default/gpsd
ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES

[Install]
WantedBy=multi-user.target
Also=gpsd.socket
+ systemctl cat gpsd.socket
# /lib/systemd/system/gpsd.socket
[Unit]
Description=GPS (Global Positioning System) Daemon Sockets

[Socket]
ListenStream=/var/run/gpsd.sock
ListenStream=[::1]:2947
ListenStream=127.0.0.1:2947
SocketMode=0600

[Install]
WantedBy=sockets.target
+ systemctl status gpsd.service
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
+ systemctl status gpsd.socket
● gpsd.socket - GPS (Global Positioning System) Daemon Sockets
   Loaded: loaded (/lib/systemd/system/gpsd.socket; disabled; vendor preset: enabled)
   Active: inactive (dead)
   Listen: /var/run/gpsd.sock (Stream)
           [::1]:2947 (Stream)
           127.0.0.1:2947 (Stream)
+ journalctl -u gpsd.service --since today
-- Logs begin at Thu 2019-02-14 10:11:59 GMT, end at Thu 2021-07-22 04:36:56 BST. --
-- No entries --
+ command -v aa-status
+ command -v apparmor_status
+ set +x
Please send the entire, untouched output

Thank you for your time and consideration.

Sincerely,
Leon

On Wed, Jul 21, 2021 at 8:23 PM Kerry Hoath <kerry@gotss.net> wrote:
CAUTION: This email originated from outside of the PNW environment. Do not click links or open attachments unless you recognize the sender and know the content is safe.

These are basic Linux skills and best handled on a basic Linux list.

You can rename the file:

after the wget

mv "htt<tab> gpsdebuginfo


<tab> means hit the tab key to complete out the filename.


then try run it.


Regards, Kerry.


On 22/07/2021 1:05 pm, Aranza Shaccid Leon wrote:
Hello and good evening!

I apologize, I forgot to send my copy and paste of what I did.

pi@clover-1060:~ $ sudo su -

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set                                                                                         a new password.

root@clover-1060:~# cd /var/tmp
root@clover-1060:/var/tmp# wget https://secure-web.cisco.com/1kTP_vgQBM5MZUSUBbI84sA_To4pcs8ZXsgpOeO9dADrpTx2xXanSo6My8LTG_iSBJPQqGjZCRHOL-DD11r2hb_ZbWg33um3nIGEuTNSxTPYPLdNGxb7-s-lJxi5miKJt0M4I-ToOYmVzfvlxTq8ess-6ja0Kpy7eVrEUD3BeDuzi86Zqbxin0x9YgujuDsxt12tvUIQJ17bBZw_Um2TdcY1z9AMMmPtP_GEoyTYKjxMBwOyPbMT1zmWUgG1WP5w0pkS9S_ssI-DwoTta-fRo49bYh1Qel4qJquO7MiBS63iO5_2H1vPl3bdSHGjY-7fdfIgV4JXqxoVASIxDUk75PqplUSl9prRKPcQLlA5D_p5mJMu3tXvL1B-gyfKP5YdqWyDr3zUXEc5wK6WXqJX-9sbaAOSod1-CrXAGalWrweyUdti2LljCPX7Gt6rhQSgORDvf-eNm1vS6HDf6sqthMg/https%3A%2F%2Fgpsd.io%2Fgpsdebuginfo
--2021-07-22 03:19:25--  https://secure-web.cisco.com/1kTP_vgQBM5MZUSUBbI84sA_To4pcs8ZXsgpOeO9dADrpTx2xXanSo6My8LTG_iSBJPQqGjZCRHOL-DD11r2hb_ZbWg33um3nIGEuTNSxTPYPLdNGxb7-s-lJxi5miKJt0M4I-ToOYmVzfvlxTq8ess-6ja0Kpy7eVrEUD3BeDuzi86Zqbxin0x9YgujuDsxt12tvUIQJ17bBZw_Um2TdcY1z9AMMmPtP_GEoyTYKjxMBwOyPbMT1zmWUgG1WP5w0pkS9S_ssI-DwoTta-fRo49bYh1Qel4qJquO7MiBS63iO5_2H1vPl3bdSHGjY-7fdfIgV4JXqxoVASIxDUk75PqplUSl9prRKPcQLlA5D_p5mJMu3tXvL1B-gyfKP5YdqWyDr3zUXEc5wK6WXqJX-9sbaAOSod1-CrXAGalWrweyUdti2LljCPX7Gt6rhQSgORDvf-eNm1vS6HDf6sqthMg/https%3A%2F%2Fgpsd.io%2Fgpsdebuginfo
Resolving secure-web.cisco.com (secure-web.cisco.com)... 208.90.58.178, 2620:101:2005:11f0::1001
Connecting to secure-web.cisco.com (secure-web.cisco.com)|208.90.58.178|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://gpsd.io/gpsdebuginfo [following]
--2021-07-22 03:19:29--  https://gpsd.io/gpsdebuginfo
Resolving gpsd.io (gpsd.io)... 35.185.44.232
Connecting to gpsd.io (gpsd.io)|35.185.44.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1991 (1.9K) [text/plain]
Saving to: ‘https:%2F%2Fgpsd.io%2Fgpsdebuginfo’

https:%2F%2Fgpsd.io%2Fgpsdebuginfo        100%[=====================================================================================>]   1.94K  --.-KB/s    in 0s

2021-07-22 03:19:50 (7.70 MB/s) - ‘https:%2F%2Fgpsd.io%2Fgpsdebuginfo’ saved [1991/1991]

root@clover-1060:/var/tmp# chmod 755 gpsdebuginfo
chmod: cannot access 'gpsdebuginfo': No such file or directory
root@clover-1060:/var/tmp# ./gpsdebuginfo > tmp.log
-bash: ./gpsdebuginfo: No such file or directory
root@clover-1060:/var/tmp# cd
root@clover-1060:~# chmod 755 gpsdebuginfo
chmod: cannot access 'gpsdebuginfo': No such file or directory
root@clover-1060:~# cd /var/tmp
root@clover-1060:/var/tmp# chmod 755 gpsdebuginfo
chmod: cannot access 'gpsdebuginfo': No such file or directory
root@clover-1060:/var/tmp#

I'm noticing that it saved it to ‘https:%2F%2Fgpsd.io%2Fgpsdebuginfo’ instead of just gpsdebuginfo. May I ask how I would correct this?

Thank you for your time and consideration.

Sincerely,
Leon

On Wed, Jul 21, 2021 at 7:57 PM Gary E. Miller <gem@rellim.com> wrote:
Yo Aranza!

On Wed, 21 Jul 2021 21:30:07 -0500
Aranza Shaccid Leon <leon18@pnw.edu> wrote:

> I’m reading an error message at the command chmod 755 gpsdebuginfo.
> It currently reads chmod: cannot read ‘gpsdebuginfo’: No such file or
> directory

Are you in the directory that you downloaded gpsdebuginfo into?

"ls -l gpsdebuginfo" should show you the file.

Once again, here are the steps, as root:


    # cd /var/tmp
    # wget https://secure-web.cisco.com/1t--JBOGnNY1uHqovBfedrnuVllOLNfg5oE9CxPZldZwimjpsHCk6wj4A8QuLIEOpqeUyTuSEcTew4iKfkC7li8FUxIqM8_Bb6TjdrJ5ZrAYD3EJcL4K1RfgZ0rKrHqHQxD_KkZna1HVona4lHGwUS9J07t1IQApt4_Cj4KiAl7epnn4onpa8kcw8SdgR93hUFTgiy5it6fjtVQtWNOImI-qLjqNumaarfJDbSMcvN0B5ZGmPn3k-UFnuEn5mBYzoHk8RjmHArOvlCD4uxPbW5XBrgUBw4mM0CBe8uKcR8pZTrDwq1yfcIY0LoGVf2lcwdQ9s3lTKLX7U60lXXkkVTJBVOToaTCReB0WkH62wnQKkMnSAWASkC_Otas_kAtwabbJIqwZls7HMZp-LGDywUx8Ik5ImJstOFFGR9d_rmVNpFJaBp-WBrUzzN9JzwtW8pzQZTs6JDO9a6cBWqqxlIQ/https%3A%2F%2Fgpsd.io%2Fgpsdebuginfo
    # chmod 755 gpsdebuginfo
    # ./gpsdebuginfo > tmo.log
    # mail gpsd-users@nongnu.org < tmp.log

I just did those, minus the mail, and they still work.

> Am I missing a step or is there different command I should use?

Hard to say without see a cut/paste of what you did, and how it worked.

Here is how it worked for me:


gem@dilbert ~/Desktop # cd /var/tmp
gem@dilbert /var/tmp # wget https://secure-web.cisco.com/1t--JBOGnNY1uHqovBfedrnuVllOLNfg5oE9CxPZldZwimjpsHCk6wj4A8QuLIEOpqeUyTuSEcTew4iKfkC7li8FUxIqM8_Bb6TjdrJ5ZrAYD3EJcL4K1RfgZ0rKrHqHQxD_KkZna1HVona4lHGwUS9J07t1IQApt4_Cj4KiAl7epnn4onpa8kcw8SdgR93hUFTgiy5it6fjtVQtWNOImI-qLjqNumaarfJDbSMcvN0B5ZGmPn3k-UFnuEn5mBYzoHk8RjmHArOvlCD4uxPbW5XBrgUBw4mM0CBe8uKcR8pZTrDwq1yfcIY0LoGVf2lcwdQ9s3lTKLX7U60lXXkkVTJBVOToaTCReB0WkH62wnQKkMnSAWASkC_Otas_kAtwabbJIqwZls7HMZp-LGDywUx8Ik5ImJstOFFGR9d_rmVNpFJaBp-WBrUzzN9JzwtW8pzQZTs6JDO9a6cBWqqxlIQ/https%3A%2F%2Fgpsd.io%2Fgpsdebuginfo
--2021-07-21
19:54:32--  https://secure-web.cisco.com/1t--JBOGnNY1uHqovBfedrnuVllOLNfg5oE9CxPZldZwimjpsHCk6wj4A8QuLIEOpqeUyTuSEcTew4iKfkC7li8FUxIqM8_Bb6TjdrJ5ZrAYD3EJcL4K1RfgZ0rKrHqHQxD_KkZna1HVona4lHGwUS9J07t1IQApt4_Cj4KiAl7epnn4onpa8kcw8SdgR93hUFTgiy5it6fjtVQtWNOImI-qLjqNumaarfJDbSMcvN0B5ZGmPn3k-UFnuEn5mBYzoHk8RjmHArOvlCD4uxPbW5XBrgUBw4mM0CBe8uKcR8pZTrDwq1yfcIY0LoGVf2lcwdQ9s3lTKLX7U60lXXkkVTJBVOToaTCReB0WkH62wnQKkMnSAWASkC_Otas_kAtwabbJIqwZls7HMZp-LGDywUx8Ik5ImJstOFFGR9d_rmVNpFJaBp-WBrUzzN9JzwtW8pzQZTs6JDO9a6cBWqqxlIQ/https%3A%2F%2Fgpsd.io%2Fgpsdebuginfo
Resolving gpsd.io... 35.185.44.232
Connecting to gpsd.io|35.185.44.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1991 (1.9K) [text/plain]
Saving to: ‘gpsdebuginfo’

gpsdebuginfo        100%[===================>]   1.94K  --.-KB/s    in 0s     

2021-07-21 19:54:43 (87.1 MB/s) - ‘gpsdebuginfo’ saved [1991/1991]

gem@dilbert /var/tmp # chmod 755 gpsdebuginfo
gem@dilbert /var/tmp #  ./gpsdebuginfo > tmo.log
gem@dilbert /var/tmp #

The next part would be the mail line.





RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
CAUTION: This email originated from outside of the PNW environment. Do not click links or open attachments unless you recognize the sender and know the content is safe.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]