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: Sat, 31 Jul 2021 15:50:11 -0700

Hello and good afternoon!

I did follow these commands from the Raspbian Section of the Install document. 

pi@clover-4865:~ $ sudo apt-get update
Get:1 http://packages.ros.org/ros/ubuntu buster InRelease [4671 B]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:3 http://packages.coex.tech buster InRelease [4959 B]
Get:4 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:5 http://packages.ros.org/ros/ubuntu buster/main armhf Packages [28.6 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0                                                                                         MB]
Get:7 http://packages.coex.tech buster/main all Packages [1912 B]
Get:8 http://packages.coex.tech buster/main armhf Packages [105 kB]
Get:9 http://archive.raspberrypi.org/debian buster/main armhf Packages [378 kB]
Get:10 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [5                                                                                        8.7 kB]
Fetched 13.6 MB in 39s (346 kB/s)
Reading package lists... Done
pi@clover-4865:~ $ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  python-colorzero
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  base-files cmake cmake-data ffmpeg firmware-atheros firmware-brcm80211
  firmware-libertas firmware-misc-nonfree firmware-realtek isc-dhcp-client
  isc-dhcp-common klibc-utils libavcodec-dev libavcodec58 libavdevice58
  libavfilter7 libavformat-dev libavformat58 libavresample-dev libavresample4
  libavutil-dev libavutil56 libgcrypt20 libgl1-mesa-dri libglapi-mesa
  libglx-mesa0 libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev libgnutls30
  libgnutlsxx28 libgssapi-krb5-2 libhogweed4 libk5crypto3 libklibc libkrb5-3
  libkrb5support0 liblz4-1 liblz4-dev libmariadb-dev libmariadb-dev-compat
  libmariadb3 libnettle6 libpostproc55 libraspberrypi-bin libraspberrypi-dev
  libraspberrypi-doc libraspberrypi0 libswresample-dev libswresample3
  libswscale-dev libswscale5 libuv1 libwebp6 libwebpdemux2 libwebpmux3
  libx11-6 libx11-data libxml2 linux-libc-dev mariadb-common nettle-dev nmap
  nmap-common pi-bluetooth python-gpiozero python-spidev python3-gpiozero
  python3-rosdep python3-rosdep-modules python3-spidev raspberrypi-bootloader
  raspberrypi-kernel raspberrypi-sys-mods rpi-eeprom rpi-update
76 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 187 MB of archives.
After this operation, 8897 kB of additional disk space will be used.
Do you want to continue? [Y/n] n            -----> I didn't do this update considering I did have Python3 already
Abort.

pi@clover-4865:~ $ reboot
Failed to set wall message, ignoring: Interactive authentication required.
Failed to reboot system via logind: Interactive authentication required.
Failed to open initctl fifo: Permission denied
Failed to talk to init daemon.
pi@clover-4865:~ $ sudo reboot

# apt-get install scons libncurses-dev python-dev pps-tools ---> Should I have done libncurses5-dev instead? And should I have attempted to do the rpi-update command? 
# apt-get install git-core 
# apt-get install build-essential manpages-dev pkg-config  

I have to go to a specific directory usually to run cgps otherwise it tells me it can't be found and I have to run it under python3 cgps command. Is this normal?

pi@clover-4865:~ $ cgps
-bash: cgps: command not found


pi@clover-4865:~/gpsd/gpsd-3.22.1~dev/clients $ ls
cgps         gps        gpscat.py.in  gpsdctl       gpsdecode.c  gpsplot        gpsrinex.c  gpssubframe        lcdgps       ntpshmmon.o  ubxtool.py.in    zerk
cgps.c       gps2udp    gpscsv        gpsdctl.c     gpsdecode.o  gpsplot.py.in  gpsrinex.o  gpssubframe.py.in  lcdgps.c     ppscheck     xgps             zerk.py.in
cgps.o       gps2udp.c  gpscsv.py.in  gpsdctl.o     gpspipe      gpsprof        gpssnmp     gpxlogger          lcdgps.o     ppscheck.c   xgps.py.in
gegps        gps2udp.o  gpsd.php      gpsdebuginfo  gpspipe.c    gpsprof.py.in  gpssnmp.c   gpxlogger.c        ntpshmmon    ppscheck.o   xgpsspeed
gegps.py.in  gpscat     gpsd.php.in   gpsdecode     gpspipe.o    gpsrinex       gpssnmp.o   gpxlogger.o        ntpshmmon.c  ubxtool      xgpsspeed.py.in
pi@clover-4865:~/gpsd/gpsd-3.22.1~dev/clients $ cgps
-bash: cgps: command not found
pi@clover-4865:~/gpsd/gpsd-3.22.1~dev/clients $ python3 cgps
  File "cgps", line 1
SyntaxError: Non-UTF-8 code starting with '\xa0' in file cgps on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details


For the build portion of it, I wasn't sure if these were the right commands so I hadn't done this yet. In my case gpsd-X.YY is just gpsd-3.22 correct?
tar -xzf gpsd-X.YY.tar.gz 
cd gpsd-X.YY 
scons && scons check && scons udev-install  

Thank you for your time and consideration.

Sincerely,
Leon



On Sat, Jul 31, 2021 at 11:10 AM Gary E. Miller <gem@rellim.com> wrote:
Yo Aranza!

On Sat, 31 Jul 2021 01:46:48 -0500
Aranza Shaccid Leon <leon18@pnw.edu> wrote:

> Thank you for your suggestion. I attempted but it didn’t work.

I haev made many, and you do not say what you did, or the results, so
nothing anyone can do with that statement.

> May I
> ask am I supposed to be in a certain file before attempting this such
> as gpsd/gpsd?

Nope.  Does not matter what your cwd is.  To start gpsd you should
be root.  The clients can run as any user, in any directory.

Assuming you followed the buildinstructions.  Which you still have not
confirmed either.

> I found however the etc default gpsd file which I
> understand works under systemd. Despite this may I ask if I’m
> supposed to use the udev rules then?

If you can't get it to run without systemd(umb), you;ll never figure out
to run it with systemd(umber).  Just be sure systemd(umbest) is
not controlling gpsd.

> I’m running into an issue attempting to run cgps as well. I have to
> use the command python3 cgps to run any programs but this error keeps
> appearing:

cgps is NOT a python program!  It is a C program, that you built and
installed using the procedure in build.adoc.

> I found in the build.adoc that this is an error that may occur due to
> Python3 but it suggested that I use the command ln -s
> /usr/bin/python3 /usr/bin/python. However another error appears: ln:
> failed to create symbolic link ‘ /usr/bin/python’: File exists

You only need to do it once.  You already did it.

> May I ask for suggestions on how to get cgps to work?

First, be sure you installed all of gpsd, per build.adoc

second, gpsd must be running:  gpsd -n /dev/ttyACM0

Third, as any user, in any directory type in the shell: cgps

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]