Re: GPS not working #gpsd #gps


Mike - KB0FX
 

Chris,

Below is the output from my showudrc.sh. Since you were having problems with providing enough power to your DRAWS Pi-Hat it may be simpler for you to just flash the current  SD RAM with the Beta 7 version of Compass and then run the app_config.sh to build the core system. 

73

Mike - KB0FX

cd
cd n7nix/config
sudo su
./app_config.sh core


root@KB0FX_DRAWS:/home/pi/bin# ./showudrc.sh
==== Sound Card ====
udrc card number line: card 0: udrc [udrc], device 0: Universal Digital Radio Controller tlv320aic32x4-hifi-0 []
udrc is sound card #0
==== ALSA Controls for Radio Tansmit ====
LO Driver Gain  L:[24.00dB] R:[24.00dB]
PCM         L:[0.00dB] R:[0.00dB]
DAC Playback PT L:[PTM_P3] R:[PTM_P3]
LO Playback CM [Full Chip CM]
==== ALSA Controls for Radio Receive ====
ADC Level L:[0.00dB] R:[5.50dB]
IN1 L:[Off] R:[Off]
IN2 L:[10 kOhm] R:[10 kOhm]
==== Pi Ver ====
 Pi 3 Model B+ Mfg by Sony UK
 Has WiFi
==== udrc Ver ====
Found a DRAWS

     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0204
UUID:        46e7be5d-e71d-4558-a1ca-da83e874200d
Vendor:      NW Digital Radio

==== sys Ver ====
----- image version
2019 01 05 17:06:50 PST: SD image version: beta7
----- /proc/version
Linux version 4.14.79-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1159 SMP Sun Nov 4 17:50:20 GMT 2018

----- /etc/*version: 9.6

----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian

----- lsb_release
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch

---- systemd
   Static hostname: KB0FX_DRAWS
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: 32ff8e594ea8445a97d761b27577faa5
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.79-v7+
      Architecture: arm

---- modules
tlv320aic32x4_i2c      16384  1
tlv320aic32x4          32768  1 tlv320aic32x4_i2c
udrc                   16384  3
snd_soc_core          188416  3 tlv320aic32x4,snd_soc_bcm2835_i2s,udrc
snd_pcm                98304  6 snd_pcm_dmaengine,tlv320aic32x4,snd_soc_bcm2835_i2s,snd_soc_core

-rw-r--r-- 1 root  6388 Dec 14 21:56 /lib/modules/4.14.79-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Dec 14 21:56 /lib/modules/4.14.79-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Dec 14 21:56 /lib/modules/4.14.79-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Dec 14 21:56 /lib/modules/4.14.79-v7+/updates/dkms/udrc.ko

---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20181112-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver

---- compass
Compass preference file not found: /etc/apt/preferences.d/compass
---- compass apt sources list file
deb [arch=armhf,amd64] http://archive.compasslinux.org/ cedar main
---- compass package files
-rw-r--r-- 1 root  2201 Dec 31 12:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_InRelease
-rw-r--r-- 1 root 17567 Jul  2  2018 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-amd64_Packages
-rw-r--r-- 1 root 43316 Dec 31 12:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages

----- Dire Wolf DEVELOPMENT version 1.6 A (Dec  9 2018)

==== boot config ====
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
# dtparam=audio=on

force_turbo=1
dtoverlay=
dtoverlay=draws
# dtparam=audio=on


---- gpsd
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-01-17 08:17:04 CST; 22h ago
  Process: 539 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, statu
 Main PID: 542 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─542 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0

Jan 17 08:17:04 KB0FX_DRAWS systemd[1]: Starting GPS (Global Positioning System) Daemon...
Jan 17 08:17:04 KB0FX_DRAWS systemd[1]: Started GPS (Global Positioning System) Daemon.
lines 1-10/10 (END)


On Fri, Jan 18, 2019 at 3:44 AM oe8bck <christof.bodner@...> wrote:
Hi again,

I removed the comment from line #2 from the bottom, see attached showudrc.sh output.

Hat is mounted and I thoink properly, but GPSD is still not working properly:
---
pi@draws:~ $ ps xa|grep gps
  454 ?        S<s    0:00 /usr/local/sbin/gpsd -n /dev/ttyAMA0 /dev/pps0
 1288 pts/0    S+     0:00 grep --color=auto gps
pi@draws:~ $ ls -.l /dev/pps0
ls: invalid option -- '.'
Try 'ls --help' for more information.
ls -al /dev/ttySC* /dev/pps*
ls: cannot access '/dev/ttySC*': No such file or directory
ls: cannot access '/dev/pps*': No such file or directory
---

73 de Ch.

Join udrc@nw-digital-radio.groups.io to automatically receive all group messages.