GPS timing out after a day or so of uptime #gps


Josh H. KB6FJ
 

Has anyone else run into an issues where after leaving the DRAWS up for 24+ hours that the GPS times out and requires a reboot or to bring it back?

I've got steady power running to the DRAWS via a feed from a 12v power supply. 

I'm running beta 11.

==== 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:[0.00dB] R:[0.00dB]
PCM         L:[10.00dB] R:[10.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:[0.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[Off] R:[Off]
==== Pi Ver ====
 Pi 3 Model B Mfg by Embest
 Has WiFi
==== udrc Ver ====
Found a DRAWS
 
     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0405
UUID:        3374334d-4c0c-449e-9289-3d301347c175
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2019 04 02 13:59:08 PDT: SD image version: beta11
----- /proc/version
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019
 
----- /etc/*version: 9.8
 
----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
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"
 
----- lsb_release
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch
 
---- systemd
   Static hostname: draws-kb6fj
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: 4f8a0a81ce464dab82f0236b45158da0
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.98-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 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/udrc.ko
 
---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20190401-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver
 
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
 
---- dmesg
[    3.595629] udrc: loading out-of-tree module taints kernel.
[    3.596455] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.596469] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.695135] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok
 
---- 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 10: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 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages
 
----- Dire Wolf DEVELOPMENT version 1.6 B (Feb 27 2019)
 
==== Filesystem ====
/dev/root        59G  6.8G   50G  12% /
 
==== boot config ====
#dtparam=i2c_arm=on
#dtparam=i2s=on
#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
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.18.1 (revision 3.18.1)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:54 PDT; 3 days ago
  Process: 605 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─612 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Apr 17 22:24:53 draws-kb6fj systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 17 22:24:54 draws-kb6fj systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    243, 0 Apr 17 22:24 /dev/pps0
crw------- 1 root root    243, 1 Apr 17 22:24 /dev/pps1
crw-rw---- 1 root dialout 242, 0 Apr 17 22:24 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Apr 17 22:24 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   65h    -54ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   65h    +90ms[ -256ns] +/- 3116ns
^- time.richiemcintosh.com       2  10   377   894  -4633us[-4689us] +/-   65ms
^- clock.team-cymru.org          2  10   377   915  -2892us[-2948us] +/-   71ms
^* 65.223.27.156                 1  10   377   883   -124us[ -180us] +/-   12ms
^+ propjet.latt.net              2  10   155   606  -1736us[-1736us] +/-   27ms
-- chrony tracking
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Sun Apr 21 20:45:30 2019
System time     : 0.000152244 seconds slow of NTP time
Last offset     : -0.000056132 seconds
RMS offset      : 0.000281822 seconds
Frequency       : 5.487 ppm fast
Residual freq   : -0.001 ppm
Skew            : 0.065 ppm
Root delay      : 0.024395 seconds
Root dispersion : 0.000944 seconds
Update interval : 1024.6 seconds
Leap status     : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                        15   8   110    +87.608    191.075   +20.7s  6274us
PPS                        51  34   399     -1.336      0.002   -226ms   561ns
time.richiemcintosh.com     6   3  138m     -0.135      0.330  -4139us   315us
clock.team-cymru.org        6   3   86m     -0.266      0.214  -2778us    97us
65.223.27.156              16   8  276m     +0.040      0.129   +263us   627us
propjet.latt.net           16   8  206m     -0.037      0.070   -665us   206us
 
---- sensors
-rw-r--r-- 1 root root 171 Nov 11 11:39 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential:  +0.00 V  
+12V:                  +14.59 V  
User ADC 1:             +0.00 V  
User ADC 2:             +0.01 V  
 
---- locale
Locale country codes do not match: WiFi: US, iw: 00, X11: US.
 

Josh


 

What indication do you have that it is 'timing out'?

The diagnostic you provided indicates the GPSD is running.

I have DRAWS boards running for months with the GPS continuing to run.

On Sun, Apr 21, 2019 at 2:06 PM Josh H. KB6FJ <opg4759@...> wrote:
Has anyone else run into an issues where after leaving the DRAWS up for 24+ hours that the GPS times out and requires a reboot or to bring it back?

I've got steady power running to the DRAWS via a feed from a 12v power supply. 

I'm running beta 11.

==== 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:[0.00dB] R:[0.00dB]
PCM         L:[10.00dB] R:[10.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:[0.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[Off] R:[Off]
==== Pi Ver ====
 Pi 3 Model B Mfg by Embest
 Has WiFi
==== udrc Ver ====
Found a DRAWS
 
     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0405
UUID:        3374334d-4c0c-449e-9289-3d301347c175
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2019 04 02 13:59:08 PDT: SD image version: beta11
----- /proc/version
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019
 
----- /etc/*version: 9.8
 
----- /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.8 (stretch)
Release: 9.8
Codename: stretch
 
---- systemd
   Static hostname: draws-kb6fj
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: 4f8a0a81ce464dab82f0236b45158da0
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.98-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 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/udrc.ko
 
---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20190401-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver
 
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
 
---- dmesg
[    3.595629] udrc: loading out-of-tree module taints kernel.
[    3.596455] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.596469] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.695135] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok
 
---- 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 10: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 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages
 
----- Dire Wolf DEVELOPMENT version 1.6 B (Feb 27 2019)
 
==== Filesystem ====
/dev/root        59G  6.8G   50G  12% /
 
==== boot config ====
#dtparam=i2c_arm=on
#dtparam=i2s=on
#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
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.18.1 (revision 3.18.1)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:54 PDT; 3 days ago
  Process: 605 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─612 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Apr 17 22:24:53 draws-kb6fj systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 17 22:24:54 draws-kb6fj systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    243, 0 Apr 17 22:24 /dev/pps0
crw------- 1 root root    243, 1 Apr 17 22:24 /dev/pps1
crw-rw---- 1 root dialout 242, 0 Apr 17 22:24 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Apr 17 22:24 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   65h    -54ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   65h    +90ms[ -256ns] +/- 3116ns
^- time.richiemcintosh.com       2  10   377   894  -4633us[-4689us] +/-   65ms
^- clock.team-cymru.org          2  10   377   915  -2892us[-2948us] +/-   71ms
^* 65.223.27.156                 1  10   377   883   -124us[ -180us] +/-   12ms
^+ propjet.latt.net              2  10   155   606  -1736us[-1736us] +/-   27ms
-- chrony tracking
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Sun Apr 21 20:45:30 2019
System time     : 0.000152244 seconds slow of NTP time
Last offset     : -0.000056132 seconds
RMS offset      : 0.000281822 seconds
Frequency       : 5.487 ppm fast
Residual freq   : -0.001 ppm
Skew            : 0.065 ppm
Root delay      : 0.024395 seconds
Root dispersion : 0.000944 seconds
Update interval : 1024.6 seconds
Leap status     : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                        15   8   110    +87.608    191.075   +20.7s  6274us
PPS                        51  34   399     -1.336      0.002   -226ms   561ns
time.richiemcintosh.com     6   3  138m     -0.135      0.330  -4139us   315us
clock.team-cymru.org        6   3   86m     -0.266      0.214  -2778us    97us
65.223.27.156              16   8  276m     +0.040      0.129   +263us   627us
propjet.latt.net           16   8  206m     -0.037      0.070   -665us   206us
 
---- sensors
-rw-r--r-- 1 root root 171 Nov 11 11:39 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential:  +0.00 V  
+12V:                  +14.59 V  
User ADC 1:             +0.00 V  
User ADC 2:             +0.01 V  
 
---- locale
Locale country codes do not match: WiFi: US, iw: 00, X11: US.
 

Josh



--


John D. Hays
Edmonds, WA
K7VE

   


Josh H. KB6FJ
 

I had cgps just running in the background and when I came back to my station a day later it had stopped with an message GPS TIMEOUT

I then tried to restart it and no data would flow it was just hung. I did the same with gpsmon and it would not parse any data.

If you look at the chrony sources you can see both GPS and PPS are now not being seeing and I have moved to stratum 2

-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   65h    -54ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   65h    +90ms[ -256ns] +/- 3116ns
^- time.richiemcintosh.com       2  10   377   894  -4633us[-4689us] +/-   65ms
^- clock.team-cymru.org          2  10   377   915  -2892us[-2948us] +/-   71ms
^* 65.223.27.156                 1  10   377   883   -124us[ -180us] +/-   12ms
^+ propjet.latt.net              2  10   155   606  -1736us[-1736us] +/-   27ms
-- chrony tracking
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Sun Apr 21 20:45:30 2019
System time     : 0.000152244 seconds slow of NTP time
Last offset     : -0.000056132 seconds
RMS offset      : 0.000281822 seconds
Frequency       : 5.487 ppm fast
Residual freq   : -0.001 ppm
Skew            : 0.065 ppm
Root delay      : 0.024395 seconds
Root dispersion : 0.000944 seconds
Update interval : 1024.6 seconds
Leap status     : Normal


Jeff Francis™
 

Every few days, cgps simply stops showing any satellites or position data on my DRAWS hat, yet gpsd and cgps continue to run without errors. gpsmon shows that data is actively being sent/polled from the device, but that there are no received satellite signals. The antenna could not possibly have a better view of the sky, and other receivers placed in the same location at the same time have zero issues seeing many satellites and achieving a quick 3D DGPS position lock. Rebooting doesn't typically fix the problem. It's almost as though the antenna was completely cut off. After a while (anywhere from an hour to overnight), it just "magically" starts working again, reboot or no reboot. This is fairly abnormal behavior for gpsd that I've never seen before (and I have a fair amount of GPS experience - I used to be one of the gpsd developers, and I'm the original author of cgps).

Jeff/N0GQ


On Sun, Apr 21, 2019 at 2:06 PM Josh H. KB6FJ <opg4759@...> wrote:
Has anyone else run into an issues where after leaving the DRAWS up for 24+ hours that the GPS times out and requires a reboot or to bring it back?

I've got steady power running to the DRAWS via a feed from a 12v power supply. 

I'm running beta 11.

==== 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:[0.00dB] R:[0.00dB]
PCM         L:[10.00dB] R:[10.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:[0.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[Off] R:[Off]
==== Pi Ver ====
 Pi 3 Model B Mfg by Embest
 Has WiFi
==== udrc Ver ====
Found a DRAWS
 
     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0405
UUID:        3374334d-4c0c-449e-9289-3d301347c175
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2019 04 02 13:59:08 PDT: SD image version: beta11
----- /proc/version
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019
 
----- /etc/*version: 9.8
 
----- /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.8 (stretch)
Release: 9.8
Codename: stretch
 
---- systemd
   Static hostname: draws-kb6fj
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: 4f8a0a81ce464dab82f0236b45158da0
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.98-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 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/udrc.ko
 
---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20190401-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver
 
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
 
---- dmesg
[    3.595629] udrc: loading out-of-tree module taints kernel.
[    3.596455] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.596469] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.695135] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok
 
---- 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 10: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 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages
 
----- Dire Wolf DEVELOPMENT version 1.6 B (Feb 27 2019)
 
==== Filesystem ====
/dev/root        59G  6.8G   50G  12% /
 
==== boot config ====
#dtparam=i2c_arm=on
#dtparam=i2s=on
#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
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.18.1 (revision 3.18.1)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:54 PDT; 3 days ago
  Process: 605 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─612 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Apr 17 22:24:53 draws-kb6fj systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 17 22:24:54 draws-kb6fj systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    243, 0 Apr 17 22:24 /dev/pps0
crw------- 1 root root    243, 1 Apr 17 22:24 /dev/pps1
crw-rw---- 1 root dialout 242, 0 Apr 17 22:24 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Apr 17 22:24 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   65h    -54ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   65h    +90ms[ -256ns] +/- 3116ns
^- time.richiemcintosh.com       2  10   377   894  -4633us[-4689us] +/-   65ms
^- clock.team-cymru.org          2  10   377   915  -2892us[-2948us] +/-   71ms
^* 65.223.27.156                 1  10   377   883   -124us[ -180us] +/-   12ms
^+ propjet.latt.net              2  10   155   606  -1736us[-1736us] +/-   27ms
-- chrony tracking
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Sun Apr 21 20:45:30 2019
System time     : 0.000152244 seconds slow of NTP time
Last offset     : -0.000056132 seconds
RMS offset      : 0.000281822 seconds
Frequency       : 5.487 ppm fast
Residual freq   : -0.001 ppm
Skew            : 0.065 ppm
Root delay      : 0.024395 seconds
Root dispersion : 0.000944 seconds
Update interval : 1024.6 seconds
Leap status     : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                        15   8   110    +87.608    191.075   +20.7s  6274us
PPS                        51  34   399     -1.336      0.002   -226ms   561ns
time.richiemcintosh.com     6   3  138m     -0.135      0.330  -4139us   315us
clock.team-cymru.org        6   3   86m     -0.266      0.214  -2778us    97us
65.223.27.156              16   8  276m     +0.040      0.129   +263us   627us
propjet.latt.net           16   8  206m     -0.037      0.070   -665us   206us
 
---- sensors
-rw-r--r-- 1 root root 171 Nov 11 11:39 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential:  +0.00 V  
+12V:                  +14.59 V  
User ADC 1:             +0.00 V  
User ADC 2:             +0.01 V  
 
---- locale
Locale country codes do not match: WiFi: US, iw: 00, X11: US.
 

Josh



--
-=jeff=-


Basil Gunn
 

Please send me the console output of showudrc.sh and ~/n7nix/gps/verify_time.sh
/Basil

Josh H. KB6FJ <opg4759@gmail.com> writes:

I had cgps just running in the background and when I came back to my station a day later it had stopped with an message GPS TIMEOUT

I then tried to restart it and no data would flow it was just hung. I did the same with gpsmon and it would not parse any data.

If you look at the chrony sources you can see both GPS and PPS are now not being seeing and I have moved to stratum 2


Josh H. KB6FJ
 

On Mon, Apr 22, 2019 at 10:00 AM, Basil Gunn wrote:
showudrc.sh
here you go

==== 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:[0.00dB] R:[0.00dB]
PCM         L:[10.00dB] R:[10.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:[0.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[Off] R:[Off]
==== Pi Ver ====
 Pi 3 Model B Mfg by Embest
 Has WiFi
==== udrc Ver ====
Found a DRAWS
 
     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0405
UUID:        3374334d-4c0c-449e-9289-3d301347c175
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2019 04 02 13:59:08 PDT: SD image version: beta11
----- /proc/version
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019
 
----- /etc/*version: 9.8
 
----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
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"
 
----- lsb_release
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch
 
---- systemd
   Static hostname: draws-kb6fj
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: 4f8a0a81ce464dab82f0236b45158da0
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.98-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 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/udrc.ko
 
---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20190401-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver
 
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
 
---- dmesg
[    3.595629] udrc: loading out-of-tree module taints kernel.
[    3.596455] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.596469] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.695135] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok
 
---- 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 10: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 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages
 
----- Dire Wolf DEVELOPMENT version 1.6 B (Feb 27 2019)
 
==== Filesystem ====
/dev/root        59G  6.8G   50G  12% /
 
==== boot config ====
#dtparam=i2c_arm=on
#dtparam=i2s=on
#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
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.18.1 (revision 3.18.1)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:54 PDT; 4 days ago
  Process: 605 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─612 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Apr 17 22:24:53 draws-kb6fj systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 17 22:24:54 draws-kb6fj systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    243, 0 Apr 17 22:24 /dev/pps0
crw------- 1 root root    243, 1 Apr 17 22:24 /dev/pps1
crw-rw---- 1 root dialout 242, 0 Apr 17 22:24 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Apr 17 22:24 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   88h   -267ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   88h   -123ms[ -256ns] +/- 3631ns
^- time.richiemcintosh.com       2  10   377   849  -9058us[-9137us] +/-   92ms
^- clock.team-cymru.org          2  10   375   281  -2101us[-2101us] +/-   57ms
^* 65.223.27.156                 1  10   357   412   -199us[ -281us] +/-   12ms
^+ propjet.latt.net              2   9   377   514   -207us[ -288us] +/-   28ms
-- chrony tracking
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Mon Apr 22 19:51:25 2019
System time     : 0.000131287 seconds slow of NTP time
Last offset     : -0.000082225 seconds
RMS offset      : 0.000328521 seconds
Frequency       : 4.795 ppm fast
Residual freq   : -0.010 ppm
Skew            : 0.111 ppm
Root delay      : 0.024187 seconds
Root dispersion : 0.000466 seconds
Update interval : 1026.0 seconds
Leap status     : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                        15   8   110    +88.300    191.075   +27.9s  6274us
PPS                        51  34   399     -0.644      0.002   -328ms   561ns
time.richiemcintosh.com     7   7  120m     -0.088      0.356  -3868us   313us
clock.team-cymru.org        6   3   77m     -0.125      0.270  -1773us   110us
65.223.27.156              12   8  146m     -0.009      0.223    -83us   423us
propjet.latt.net            9   5   69m     -0.012      0.186   +169us   103us
 
---- sensors
-rw-r--r-- 1 root root 171 Nov 11 11:39 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential:  +0.00 V  
+12V:                  +14.58 V  
User ADC 1:             +0.00 V  
User ADC 2:             +0.01 V  
 
---- locale
Locale country codes do not match: WiFi: US, iw: 00, X11: US.

~/n7nix $ ~/n7nix/gps/verify_time.sh
 
timedatectl
 
      Local time: Mon 2019-04-22 12:59:26 PDT
  Universal time: Mon 2019-04-22 19:59:26 UTC
        RTC time: n/a
       Time zone: America/Los_Angeles (PDT, -0700)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
 
chronyc sources
 
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   88h   -267ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   88h   -123ms[ -256ns] +/- 3631ns
^- time.richiemcintosh.com       2  10   377   918  -9058us[-9137us] +/-   92ms
^- clock.team-cymru.org          2  10   375   350  -2101us[-2101us] +/-   57ms
^* 65.223.27.156                 1  10   357   481   -199us[ -281us] +/-   12ms
^+ propjet.latt.net              2   9   377    68   -315us[ -315us] +/-   32ms
 
chronyc sourcestats
 
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                        15   8   110    +88.300    191.075   +27.9s  6274us
PPS                        51  34   399     -0.644      0.002   -328ms   561ns
time.richiemcintosh.com     7   7  120m     -0.088      0.356  -3874us   313us
clock.team-cymru.org        6   3   77m     -0.125      0.270  -1781us   110us
65.223.27.156              12   8  146m     -0.009      0.223    -83us   423us
propjet.latt.net            6   3   43m     -0.223      0.173   -275us    55us
 
chronyc tracking
 
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Mon Apr 22 19:51:25 2019
System time     : 0.000127501 seconds slow of NTP time
Last offset     : -0.000082225 seconds
RMS offset      : 0.000328521 seconds
Frequency       : 4.795 ppm fast
Residual freq   : -0.010 ppm
Skew            : 0.111 ppm
Root delay      : 0.024187 seconds
Root dispersion : 0.000542 seconds
Update interval : 1026.0 seconds
Leap status     : Normal
 
chronyc activity
 
200 OK
4 sources online
0 sources offline
0 sources doing burst (return to online)
0 sources doing burst (return to offline)
0 sources with unknown address
 
chronyd systemctl status
 
● chrony.service - chrony, an NTP client/server
   Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:53 PDT; 4 days ago
     Docs: man:chronyd(8)
           man:chronyc(1)
           man:chrony.conf(5)
  Process: 570 ExecStart=/usr/sbin/chronyd (code=exited, status=0/SUCCESS)
 Main PID: 597 (chronyd)
   CGroup: /system.slice/chrony.service
           └─597 /usr/sbin/chronyd
 
Apr 17 22:25:27 draws-kb6fj chronyd[597]: System clock wrong by 27.867754 seconds, adjustment started
Apr 17 22:25:55 draws-kb6fj chronyd[597]: System clock was stepped by 27.867754 seconds
Apr 17 22:25:57 draws-kb6fj chronyd[597]: Selected source 65.223.27.156
Apr 17 22:26:32 draws-kb6fj chronyd[597]: Selected source GPS
Apr 17 22:28:06 draws-kb6fj chronyd[597]: Source 69.197.188.178 replaced with 2001:470:5:bf4::37
Apr 17 22:56:12 draws-kb6fj chronyd[597]: Selected source PPS
Apr 17 22:58:18 draws-kb6fj chronyd[597]: Source 2001:470:5:bf4::37 replaced with 2606:c680:0:b:3830:34ff:…66:6663
Apr 17 23:28:27 draws-kb6fj chronyd[597]: Source 2606:c680:0:b:3830:34ff:fe66:6663 replaced with 38.229.71.1
Apr 19 00:49:33 draws-kb6fj chronyd[597]: Selected source 69.164.213.136
Apr 19 01:06:55 draws-kb6fj chronyd[597]: Selected source 65.223.27.156
Hint: Some lines were ellipsized, use -l to show in full.
 
gpsd systemctl status
 
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:54 PDT; 4 days ago
  Process: 605 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─612 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Apr 17 22:24:53 draws-kb6fj systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 17 22:24:54 draws-kb6fj systemd[1]: Started GPS (Global Positioning System) Daemon.
gpsd: 3.18.1 (revision 3.18.1)



 

Jeff,

Xastir found its code didn't account for the additional satellite positioning systems the chip supports.  Since you are familiar with the cgps and gpsd code, would you take a look at the sentences from the device and see if you notice anything that could be an issue. (We can't change what the module outputs - I am simply wanting data points.)  

If gpsd is shutdown, you should be able to see the raw NMEA strings with a 'cat /dev/ttySC0'

Thank you.



On Mon, Apr 22, 2019 at 9:57 AM Jeff Francis™ <jeff@...> wrote:
Every few days, cgps simply stops showing any satellites or position data on my DRAWS hat, yet gpsd and cgps continue to run without errors. gpsmon shows that data is actively being sent/polled from the device, but that there are no received satellite signals. The antenna could not possibly have a better view of the sky, and other receivers placed in the same location at the same time have zero issues seeing many satellites and achieving a quick 3D DGPS position lock. Rebooting doesn't typically fix the problem. It's almost as though the antenna was completely cut off. After a while (anywhere from an hour to overnight), it just "magically" starts working again, reboot or no reboot. This is fairly abnormal behavior for gpsd that I've never seen before (and I have a fair amount of GPS experience - I used to be one of the gpsd developers, and I'm the original author of cgps).

Jeff/N0GQ


On Sun, Apr 21, 2019 at 2:06 PM Josh H. KB6FJ <opg4759@...> wrote:
Has anyone else run into an issues where after leaving the DRAWS up for 24+ hours that the GPS times out and requires a reboot or to bring it back?

I've got steady power running to the DRAWS via a feed from a 12v power supply. 

I'm running beta 11.

==== 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:[0.00dB] R:[0.00dB]
PCM         L:[10.00dB] R:[10.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:[0.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[Off] R:[Off]
==== Pi Ver ====
 Pi 3 Model B Mfg by Embest
 Has WiFi
==== udrc Ver ====
Found a DRAWS
 
     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0405
UUID:        3374334d-4c0c-449e-9289-3d301347c175
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2019 04 02 13:59:08 PDT: SD image version: beta11
----- /proc/version
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019
 
----- /etc/*version: 9.8
 
----- /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.8 (stretch)
Release: 9.8
Codename: stretch
 
---- systemd
   Static hostname: draws-kb6fj
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: 4f8a0a81ce464dab82f0236b45158da0
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.98-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 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/udrc.ko
 
---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20190401-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver
 
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
 
---- dmesg
[    3.595629] udrc: loading out-of-tree module taints kernel.
[    3.596455] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.596469] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.695135] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok
 
---- 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 10: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 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages
 
----- Dire Wolf DEVELOPMENT version 1.6 B (Feb 27 2019)
 
==== Filesystem ====
/dev/root        59G  6.8G   50G  12% /
 
==== boot config ====
#dtparam=i2c_arm=on
#dtparam=i2s=on
#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
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.18.1 (revision 3.18.1)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:54 PDT; 3 days ago
  Process: 605 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─612 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Apr 17 22:24:53 draws-kb6fj systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 17 22:24:54 draws-kb6fj systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    243, 0 Apr 17 22:24 /dev/pps0
crw------- 1 root root    243, 1 Apr 17 22:24 /dev/pps1
crw-rw---- 1 root dialout 242, 0 Apr 17 22:24 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Apr 17 22:24 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   65h    -54ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   65h    +90ms[ -256ns] +/- 3116ns
^- time.richiemcintosh.com       2  10   377   894  -4633us[-4689us] +/-   65ms
^- clock.team-cymru.org          2  10   377   915  -2892us[-2948us] +/-   71ms
^* 65.223.27.156                 1  10   377   883   -124us[ -180us] +/-   12ms
^+ propjet.latt.net              2  10   155   606  -1736us[-1736us] +/-   27ms
-- chrony tracking
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Sun Apr 21 20:45:30 2019
System time     : 0.000152244 seconds slow of NTP time
Last offset     : -0.000056132 seconds
RMS offset      : 0.000281822 seconds
Frequency       : 5.487 ppm fast
Residual freq   : -0.001 ppm
Skew            : 0.065 ppm
Root delay      : 0.024395 seconds
Root dispersion : 0.000944 seconds
Update interval : 1024.6 seconds
Leap status     : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                        15   8   110    +87.608    191.075   +20.7s  6274us
PPS                        51  34   399     -1.336      0.002   -226ms   561ns
time.richiemcintosh.com     6   3  138m     -0.135      0.330  -4139us   315us
clock.team-cymru.org        6   3   86m     -0.266      0.214  -2778us    97us
65.223.27.156              16   8  276m     +0.040      0.129   +263us   627us
propjet.latt.net           16   8  206m     -0.037      0.070   -665us   206us
 
---- sensors
-rw-r--r-- 1 root root 171 Nov 11 11:39 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential:  +0.00 V  
+12V:                  +14.59 V  
User ADC 1:             +0.00 V  
User ADC 2:             +0.01 V  
 
---- locale
Locale country codes do not match: WiFi: US, iw: 00, X11: US.
 

Josh



--
-=jeff=-



--


John D. Hays
Edmonds, WA
K7VE

   


Jeff Francis™
 

Out of town again, but this time I was smart enough to leave the Pi at home and running so I can log in remotely. This has been running for a bit over 24 hours:

pi@draws:~/n7nix/gps $ ./gps_test.sh
gpsd: 3.18.1 (revision 3.18.1)
Warning: Stopping gpsd.service, but it can still be activated by:
  gpsd.socket
Source file found, building
gcc -O2 -g -gstabs -Wall -I/usr/local/include -DLINUX   -c -o gp_testport.o gp_testport.c
gcc gp_testport.o -o gp_testport
gps_test.sh: version: 1.1, gp_testport: version: 1.1
Running in sat count mode
Sun May  5 16:11:13 2019,  wait for first satellite view
^Cts: 15, min: 11, max: 22   |
Exiting script from trapped CTRL-C on Mon May  6 18:26:39 PDT 2019

Elapsed: 26hrs 15min 26sec
Cleaning up & starting gpsd
Service gpsd already enabled
pi@draws:~/n7nix/gps $

I saw no problems at any time that I peeked at it. I'll leave it running cgps for a while and see if it stops reporting again.

Jeff/N0GQ


On Mon, Apr 22, 2019 at 1:25 PM John D Hays - K7VE <john@...> wrote:
Jeff,

Xastir found its code didn't account for the additional satellite positioning systems the chip supports.  Since you are familiar with the cgps and gpsd code, would you take a look at the sentences from the device and see if you notice anything that could be an issue. (We can't change what the module outputs - I am simply wanting data points.)  

If gpsd is shutdown, you should be able to see the raw NMEA strings with a 'cat /dev/ttySC0'

Thank you.



On Mon, Apr 22, 2019 at 9:57 AM Jeff Francis™ <jeff@...> wrote:
Every few days, cgps simply stops showing any satellites or position data on my DRAWS hat, yet gpsd and cgps continue to run without errors. gpsmon shows that data is actively being sent/polled from the device, but that there are no received satellite signals. The antenna could not possibly have a better view of the sky, and other receivers placed in the same location at the same time have zero issues seeing many satellites and achieving a quick 3D DGPS position lock. Rebooting doesn't typically fix the problem. It's almost as though the antenna was completely cut off. After a while (anywhere from an hour to overnight), it just "magically" starts working again, reboot or no reboot. This is fairly abnormal behavior for gpsd that I've never seen before (and I have a fair amount of GPS experience - I used to be one of the gpsd developers, and I'm the original author of cgps).

Jeff/N0GQ


On Sun, Apr 21, 2019 at 2:06 PM Josh H. KB6FJ <opg4759@...> wrote:
Has anyone else run into an issues where after leaving the DRAWS up for 24+ hours that the GPS times out and requires a reboot or to bring it back?

I've got steady power running to the DRAWS via a feed from a 12v power supply. 

I'm running beta 11.

==== 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:[0.00dB] R:[0.00dB]
PCM         L:[10.00dB] R:[10.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:[0.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[Off] R:[Off]
==== Pi Ver ====
 Pi 3 Model B Mfg by Embest
 Has WiFi
==== udrc Ver ====
Found a DRAWS
 
     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0405
UUID:        3374334d-4c0c-449e-9289-3d301347c175
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2019 04 02 13:59:08 PDT: SD image version: beta11
----- /proc/version
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019
 
----- /etc/*version: 9.8
 
----- /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.8 (stretch)
Release: 9.8
Codename: stretch
 
---- systemd
   Static hostname: draws-kb6fj
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: 4f8a0a81ce464dab82f0236b45158da0
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.98-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 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Apr 11 16:38 /lib/modules/4.14.98-v7+/updates/dkms/udrc.ko
 
---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20190401-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver
 
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
 
---- dmesg
[    3.595629] udrc: loading out-of-tree module taints kernel.
[    3.596455] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.596469] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.695135] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok
 
---- 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 10: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 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages
 
----- Dire Wolf DEVELOPMENT version 1.6 B (Feb 27 2019)
 
==== Filesystem ====
/dev/root        59G  6.8G   50G  12% /
 
==== boot config ====
#dtparam=i2c_arm=on
#dtparam=i2s=on
#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
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.18.1 (revision 3.18.1)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-17 22:24:54 PDT; 3 days ago
  Process: 605 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─612 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Apr 17 22:24:53 draws-kb6fj systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 17 22:24:54 draws-kb6fj systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    243, 0 Apr 17 22:24 /dev/pps0
crw------- 1 root root    243, 1 Apr 17 22:24 /dev/pps1
crw-rw---- 1 root dialout 242, 0 Apr 17 22:24 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Apr 17 22:24 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
#? GPS                           0   3     0   65h    -54ms[ -144ms] +/-  105ms
#? PPS                           0   3     0   65h    +90ms[ -256ns] +/- 3116ns
^- time.richiemcintosh.com       2  10   377   894  -4633us[-4689us] +/-   65ms
^- clock.team-cymru.org          2  10   377   915  -2892us[-2948us] +/-   71ms
^* 65.223.27.156                 1  10   377   883   -124us[ -180us] +/-   12ms
^+ propjet.latt.net              2  10   155   606  -1736us[-1736us] +/-   27ms
-- chrony tracking
Reference ID    : 41DF1B9C (65.223.27.156)
Stratum         : 2
Ref time (UTC)  : Sun Apr 21 20:45:30 2019
System time     : 0.000152244 seconds slow of NTP time
Last offset     : -0.000056132 seconds
RMS offset      : 0.000281822 seconds
Frequency       : 5.487 ppm fast
Residual freq   : -0.001 ppm
Skew            : 0.065 ppm
Root delay      : 0.024395 seconds
Root dispersion : 0.000944 seconds
Update interval : 1024.6 seconds
Leap status     : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                        15   8   110    +87.608    191.075   +20.7s  6274us
PPS                        51  34   399     -1.336      0.002   -226ms   561ns
time.richiemcintosh.com     6   3  138m     -0.135      0.330  -4139us   315us
clock.team-cymru.org        6   3   86m     -0.266      0.214  -2778us    97us
65.223.27.156              16   8  276m     +0.040      0.129   +263us   627us
propjet.latt.net           16   8  206m     -0.037      0.070   -665us   206us
 
---- sensors
-rw-r--r-- 1 root root 171 Nov 11 11:39 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential:  +0.00 V  
+12V:                  +14.59 V  
User ADC 1:             +0.00 V  
User ADC 2:             +0.01 V  
 
---- locale
Locale country codes do not match: WiFi: US, iw: 00, X11: US.
 

Josh



--
-=jeff=-



--


John D. Hays
Edmonds, WA
K7VE

   



--
-=jeff=-


Basil Gunn
 

Out of town again, but this time I was smart enough to leave the Pi at home
and running so I can log in remotely.
Cool!

This has been running for a bit over
24 hours:
Like seeing results from the longer runs.
Your results look good, or at least as good as I have seen on my units.

So forgive me, I'm trying to remember if this run is without the gps
battery installed? What I'm seeing is if the CR 1220 battery is not
putting out 3V the gps loses satellites in view and the min count goes
to zero.

Can you please measure the voltage on the CR 1220 battery next time you are
back in your shack.


pi@draws:~/n7nix/gps $ ./gps_test.sh
gpsd: 3.18.1 (revision 3.18.1)
Warning: Stopping gpsd.service, but it can still be activated by:
gpsd.socket
Source file found, building
gcc -O2 -g -gstabs -Wall -I/usr/local/include -DLINUX -c -o gp_testport.o
gp_testport.c
gcc gp_testport.o -o gp_testport
gps_test.sh: version: 1.1, gp_testport: version: 1.1
Running in sat count mode
Sun May 5 16:11:13 2019, wait for first satellite view
^Cts: 15, min: 11, max: 22 |
Exiting script from trapped CTRL-C on Mon May 6 18:26:39 PDT 2019

Elapsed: 26hrs 15min 26sec
Cleaning up & starting gpsd
Service gpsd already enabled
pi@draws:~/n7nix/gps $

I saw no problems at any time that I peeked at it. I'll leave it running
cgps for a while and see if it stops reporting again.

Jeff/N0GQ