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 01:46:48 -0500

Hello and good afternoon! 

Thank you for your suggestion. I attempted but it didn’t work. May I ask am I supposed to be in a certain file before attempting this such as gpsd/gpsd? 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?

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:

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.

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

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

Thank you for your time and consideration.
Sincerely, 
Leon

Sent from my iPhone

On Jul 30, 2021, at 11:48 PM, Aranza Shaccid Leon <leon18@pnw.edu> wrote:


Hello and good afternoon!

May I ask how I set up the path for gpsd to connect to a USB GPS? I have downloaded version 3.22, but I'm unsure how to set up the DEVICES:"/dev/ttyACM1" command. While I was gpsd version 3.17 I could use sudo nano /etc/default/gpsd to set up the path, but for this version I'm don't know where to find this. May I 

I know I need to use udev rules (my gps is a u-blox 8 of the port ttyACM0) so the commands in the files pi@clover-4865:~/gpsd $ nano gpsd.rules.in seem to do this, but do I need to replace gps%n with a value?

# u-blox AG, u-blox 8 (tested with GNSS Evaluation Kit EKV-M8N) [linux module: cdc_acm]
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a8", SYMLINK+="gps%n", @UDEVCOMMAND@

Do I go into gpsd.hotplug and change the devname to ttyACM0 or the new gps%n from above?

if [ "$ACTION" = "remove" ] ; then
  if echo $DEVLINKS | grep -q /dev/gps; then
    :
  else
    exit 0
  fi
fi

logger -t "gpsd.hotplug" -p daemon.info "$ACTION" "$DEVNAME"

if [ -z "$DEVNAME" ]
then
    logger -t gpsd.hotplug -p daemon.err "no device"
    exit 0
fi

Or is it in pi@clover-4865:~/gpsd/gpsd-3.22.1~dev/clients/gps $ nano gps.py.in? Should I be editing the following commands below that are present in the gps.py.in file?

       if self.gpsd_device is not None:
            # add in the requested device
            data_out = (b'?DEVICE={"path":"' +
                        polybytes(self.gpsd_device) + b'",')
        else:
            data_out = b'?DEVICE={'

  # elif self.data.get("class") == "DEVICES":
  # TODO: handle class DEVICES    # pylint: disable=fixme

If I could I would like to ask how to set up this path because I would like to later experiment with a few other paths to test if I can connect to my flight controller. Thank you for your time and consideration.

Sincerely,
Leon

 

On Wed, Jul 28, 2021 at 3:08 PM Gary E. Miller <gem@rellim.com> wrote:
Yo Aranza!

On Wed, 28 Jul 2021 16:04:05 -0700
Aranza Shaccid Leon <leon18@pnw.edu> wrote:

> Okay thank you so much for the example!

Easy to capture your own.

> Can gpscsv also gather data on SNR?

You can capture anything that gpsd sends to JSON.

> Or is there a specific command I can use for that such as
> print (gpsd (SNR))?

    $ gpscsv --class SAT -n 2
    time,gnssid,svid,PRN,az,el,ss,used,health
    2021-07-28T22:05:55.000Z,0,8,8,319.0,18.0,36.0,True,1
    2021-07-28T22:05:55.000Z,0,10,10,258.0,63.0,43.0,True,1
    2021-07-28T22:05:55.000Z,0,13,13,33.0,8.0,16.0,False,1
    2021-07-28T22:05:55.000Z,0,15,15,52.0,29.0,41.0,True,1
    2021-07-28T22:05:55.000Z,0,16,16,255.0,17.0,17.0,False,1
    2021-07-28T22:05:55.000Z,0,18,18,94.0,55.0,35.0,True,1
    2021-07-28T22:05:55.000Z,0,23,23,32.0,75.0,28.0,True,1
    2021-07-28T22:05:55.000Z,0,24,24,100.0,9.0,23.0,False,1
    2021-07-28T22:05:55.000Z,0,26,26,229.0,3.0,25.0,False,1
    2021-07-28T22:05:55.000Z,0,27,27,300.0,45.0,46.0,True,1
    2021-07-28T22:05:55.000Z,0,29,29,156.0,4.0,24.0,False,1
    2021-07-28T22:05:55.000Z,0,32,32,188.0,18.0,35.0,True,1
    2021-07-28T22:05:55.000Z,1,133,46,191.0,39.0,37.0,True,1
    2021-07-28T22:05:55.000Z,1,135,48,185.0,39.0,34.0,False,
    2021-07-28T22:05:55.000Z,1,138,51,160.0,37.0,35.0,True,1
    2021-07-28T22:05:55.000Z,5,2,194,292.0,3.0,0.0,False,1
    2021-07-28T22:05:55.000Z,5,3,195,303.0,5.0,0.0,False,1
    2021-07-28T22:05:55.000Z,6,2,66,35.0,23.0,35.0,True,1
    2021-07-28T22:05:55.000Z,6,3,67,48.0,78.0,34.0,True,1
    2021-07-28T22:05:55.000Z,6,4,68,210.0,45.0,37.0,True,1
    2021-07-28T22:05:55.000Z,6,10,74,324.0,4.0,0.0,False,1
    2021-07-28T22:05:55.000Z,6,11,75,13.0,3.0,0.0,False,2
    2021-07-28T22:05:55.000Z,6,17,81,133.0,22.0,33.0,True,1
    2021-07-28T22:05:55.000Z,6,18,82,109.0,72.0,31.0,True,1
    2021-07-28T22:05:55.000Z,6,19,83,330.0,52.0,22.0,True,1
    2021-07-28T22:05:56.000Z,0,8,8,319.0,18.0,36.0,True,1
    2021-07-28T22:05:56.000Z,0,10,10,258.0,63.0,43.0,True,1
    2021-07-28T22:05:56.000Z,0,13,13,33.0,8.0,16.0,False,1
    2021-07-28T22:05:56.000Z,0,15,15,52.0,29.0,41.0,True,1
    2021-07-28T22:05:56.000Z,0,16,16,255.0,17.0,17.0,False,1
    2021-07-28T22:05:56.000Z,0,18,18,94.0,55.0,35.0,True,1
    2021-07-28T22:05:56.000Z,0,23,23,32.0,75.0,27.0,True,1
    2021-07-28T22:05:56.000Z,0,24,24,100.0,9.0,23.0,False,1
    2021-07-28T22:05:56.000Z,0,26,26,229.0,3.0,25.0,False,1
    2021-07-28T22:05:56.000Z,0,27,27,300.0,45.0,47.0,True,1
    2021-07-28T22:05:56.000Z,0,29,29,156.0,4.0,25.0,False,1
    2021-07-28T22:05:56.000Z,0,32,32,188.0,18.0,35.0,True,1
    2021-07-28T22:05:56.000Z,1,133,46,191.0,39.0,36.0,True,1
    2021-07-28T22:05:56.000Z,1,135,48,185.0,39.0,34.0,False,
    2021-07-28T22:05:56.000Z,1,138,51,160.0,37.0,35.0,True,1
    2021-07-28T22:05:56.000Z,5,2,194,292.0,3.0,0.0,False,1
    2021-07-28T22:05:56.000Z,5,3,195,303.0,5.0,0.0,False,1
    2021-07-28T22:05:56.000Z,6,2,66,35.0,23.0,36.0,True,1
    2021-07-28T22:05:56.000Z,6,3,67,48.0,78.0,34.0,True,1
    2021-07-28T22:05:56.000Z,6,4,68,210.0,45.0,36.0,True,1
    2021-07-28T22:05:56.000Z,6,10,74,324.0,4.0,0.0,False,1
    2021-07-28T22:05:56.000Z,6,11,75,13.0,3.0,0.0,False,2
    2021-07-28T22:05:56.000Z,6,17,81,133.0,22.0,32.0,True,1
    2021-07-28T22:05:56.000Z,6,18,82,109.0,72.0,31.0,True,1
    2021-07-28T22:05:56.000Z,6,19,83,330.0,52.0,22.0,True,1

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]