locked Re: DRAWS GPS not working

Allen
 

Well did all the above and didnt get the results you showed from aplay -l.
I got this instead:
pi@WB7SWW:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pi@WB7SWW:~ $ 


On Sun, May 5, 2019 at 10:33 AM Basil Gunn <basil@...> wrote:

The draws driver is not loading. This can be caused by a couple of
things.

If you have done an 'apt-get update; apt-get upgrade' the AudioSense-Pi
driver displaces the Draws driver.

The position of the on-board audio enable statement in /boot/config.txt
can cause the Draws driver to not load.

The AudioSense-Pi driver problem has been fixed by Anna in the Linux
kernel. Changes to the main line Linux kernel take a while to trickle
down to the kernel used by Raspbian so the symptoms of this problem will
probably exist for a number of months.

You can fix both problems by doing the following from a console.

# Get the latest versions of my scripts
cd
cd n7nix
git pull

cd bin
./chk_bootcfg.sh
./ch_conflict.sh

reboot

After a reboot, run this from a console:
aplay -l

You should now see the udrc being enumerated. ie. you should see this:

card 1: udrc [udrc], device 0: Universal Digital Radio Controller tlv320aic32x4-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0


Both of these problems are handled better in the BETA13 image that I
will release today.

/Basil


Allen <wb7sww@...> writes:

> Output of showudrc.sh
>
> pi@WB7SWW:~ $ showurds.sh
> bash: showurds.sh: command not found
> pi@WB7SWW:~ $ showudrc.sh
> ==== Sound Card ====
> No udrc sound card found.
> ==== 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:        b4c1e9c7-12c6-4aea-b8dd-c62abafb8c32
> Vendor:      NW Digital Radio
>
> ==== sys Ver ====
> ----- image version
> 2019 04 17 08:48:22 PDT: SD image version: beta12
> ----- /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.9
>
> ----- /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.9 (stretch)
> Release: 9.9
> Codename: stretch
>
> ---- systemd
>    Static hostname: WB7SWW
>          Icon name: computer
>         Machine ID: 2f51e140e908474eaa86ae805f03a6d8
>            Boot ID: 8caf543abac4441d96a9a6bea7ead90c
>   Operating System: Raspbian GNU/Linux 9 (stretch)
>             Kernel: Linux 4.14.98-v7+
>       Architecture: arm
>
> ---- modules
>
> -rw-r--r-- 1 root  6388 Apr 16 15:42
> /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
> -rw-r--r-- 1 root 39084 Apr 16 15:42
> /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
> -rw-r--r-- 1 root  6408 Apr 16 15:42
> /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
> -rw-r--r-- 1 root  8332 Apr 16 15:42
> /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 does NOT
> exist
>
> Directory: /proc/device-tree/soc/i2c@7e804000 exists and status is disabled
>
> ---- syslog
>
> ---- dmesg
>
> ---- 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 13: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 13: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        15G  5.9G  8.0G  43% /
>
> ==== boot config ====
>
> # 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
>
> # Enable audio (loads snd_bcm2835)
> dtparam=audio=on
>
> ---- 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 Sun 2019-05-05 00:00:39 EDT; 1h 15min ago
>   Process: 501 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS
> $DEVICES (code=exited, status=0/SUCCESS)
>  Main PID: 502 (gpsd)
>    CGroup: /system.slice/gpsd.service
>            └─502 /usr/local/sbin/gpsd -n -G /dev/ttySC0 /dev/pps0
>
> May 05 00:00:39 WB7SWW systemd[1]: Starting GPS (Global Positioning
> System)…n...
> May 05 00:00:39 WB7SWW systemd[1]: Started GPS (Global Positioning System)
> …mon.
> May 05 00:00:39 WB7SWW gpsd[502]: gpsd:ERROR: SER: device open of
> /dev/ttyS…only
> May 05 00:00:39 WB7SWW gpsd[502]: gpsd:ERROR: SER: read-only device open
> of…tory
> May 05 00:00:39 WB7SWW gpsd[502]: gpsd:ERROR: initial GPS device
> /dev/ttySC…iled
> May 05 00:00:39 WB7SWW gpsd[502]: gpsd:ERROR: SER: device open of
> /dev/pps0…only
> May 05 00:00:39 WB7SWW gpsd[502]: gpsd:ERROR: SER: read-only device open
> of…tory
> May 05 00:00:39 WB7SWW gpsd[502]: gpsd:ERROR: initial GPS device /dev/pps0
> …iled
> Hint: Some lines were ellipsized, use -l to show in full.
>
> ---- chrony
> ls: cannot access '/dev/pps*': No such file or directory
> ls: cannot access '/dev/ttySC*': No such file or directory
> -- chrony sources
> 210 Number of sources = 6
> MS Name/IP address         Stratum Poll Reach LastRx Last sample
>
> ===============================================================================
> #? GPS                           0   3     0     -     +0ns[   +0ns] +/-
> 0ns
> #? PPS                           0   3     0     -     +0ns[   +0ns] +/-
> 0ns
> ^* tools.ninjaneering.net        2   6    17    42  +4261us[ -4464s] +/-
>  79ms
> ^+ mta5.1strepublicwebsites>     2   6    17    42   +441us[ +441us] +/-
>  54ms
> ^- time.richiemcintosh.com       2   6    33    40   -718us[ -718us] +/-
>  48ms
> ^+ triangle.kansas.net           2   6    17    41  -2704us[-2704us] +/-
> 105ms
> -- chrony tracking
> Reference ID    : 41138E89 (tools.ninjaneering.net)
> Stratum         : 3
> Ref time (UTC)  : Sun May 05 05:15:37 2019
> System time     : 0.000000000 seconds fast of NTP time
> Last offset     : -4464.181640625 seconds
> RMS offset      : 4464.181640625 seconds
> Frequency       : 2.184 ppm fast
> Residual freq   : +1.862 ppm
> Skew            : 0.633 ppm
> Root delay      : 0.081955 seconds
> Root dispersion : 0.037896 seconds
> Update interval : 0.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                         0   0     0     +0.000   2000.000     +0ns
> 4000ms
> PPS                         0   0     0     +0.000   2000.000     +0ns
> 4000ms
> tools.ninjaneering.net      4   3     6    +82.016   4667.162  +6812us
>  674us
> mta5.1strepublicwebsites>   4   3     6   -160.232   8504.534  -6678us
> 1596us
> time.richiemcintosh.com     4   3     8   +162.697   4427.989  +5367us
>  988us
> triangle.kansas.net         4   3     6    +33.052   2719.949  -1005us
>  440us
>
> ---- sensors
> -rw-r--r-- 1 root root 171 Nov 11 14:39 /etc/sensors.d/draws
> No sensors found!
> Make sure you loaded all the kernel drivers you need.
> Try sensors-detect to find out which these are.
> ---- locale
> Locale country codes consistent among WiFi cfg file, iw reg & X11: US
> pi@WB7SWW:~ $
>
>
> On Sun, May 5, 2019 at 1:02 AM Basil Gunn <basil@...> wrote:
>
>>
>> Provide the console output of showudrc.sh
>> Not an image or picture. I need to look at the text of the console.
>>
>> /Basil
>>
>> Allen Lee <alee@...> writes:
>>
>> > Since Ive had the DRAWS HAT I havent done much with the GPS part due to
>> other things going on. But, in the last few days Ive worked on getting
>> > it going. However; even after supplying the board with the 12v DC (yes
>> it powers up the pi YAY) Ive been readying the forums and trying all types
>> of
>> > fixes with no results. What Im finding is when I run systemctl status
>> gpsd I get errors saying the ttrySC0 and pps0 and not found. I have
>> attached the printout
>> > from systemctl status gpsd:
>>
>>
>>
>>





--
Even a man who is pure of heart and says his prayers at night,
may become a wolf when the wolfbane blooms,
and the moon is full and bright!

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