gpsd, amixer, sensor, and other issues
One of our club members is having trouble with his draws card. I began troubleshooting and to isolate the the problem have done the following.
After running ./app_config.sh core and a reboot, sudo ./alsa-show.sh gives: pi@K7TMV-draws:~/bin $ sudo ./alsa-show.sh ===== ALSA Controls for Radio Transmit ===== amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error LO Driver Gain L: R: amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error PCM L: R: amixer: Mixer hw:1 load error: Remote I/O error ===== ALSA Controls for Radio Receive ===== amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error ADC Level L: R: amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error amixer: Mixer hw:1 load error: Remote I/O error IN1 L:[] R:[] IN2 L:[] R:[] CM L:[] R:[] Running sensors gives: pi@K7TMV-draws:~/bin $ sensors ads1015-i2c-1-48 Adapter: bcm2835 I2C adapter User ADC Differential: N/A +12V: N/A User ADC 1: N/A User ADC 2: N/A
pi@K7TMV-draws:/etc/default $ sudo systemctl gpsd && sudo systemctl restart gpsd and yet: pi@K7TMV-draws:/etc/default $ sudo systemctl status 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-06-06 08:52:16 PDT; 6h ago Main PID: 576 (gpsd) CGroup: /system.slice/gpsd.service └─576 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0 Jun 06 08:52:16 K7TMV-draws systemd[1]: Starting GPS (Global Positioning System) Daemon... Jun 06 08:52:16 K7TMV-draws systemd[1]: Started GPS (Global Positioning System) Daemon. and: cgps gives no data AX25 services seem to be running fine, but when connected to a radio via a minidin-6 the device seems to be deaf and does not send PTT. Any and all hints on how to proceed with the trouble shooting will be most welcome. :) It was great seeing the NW Digital group at SeaPac …. sorry I missed chatting with Basil. 73, julie mcgrew
|
|
Hi Julie,
toggle quoted messageShow quoted text
Sorry I missed seeing you at SeaPac as well. The console output you are showing is a symptom of the udrc/draws sound card not being enumerated. This can happen for a number of reasons including the draws sound card driver may not loading for some reason. Could you please send me the console output of the following: aplay -l showudrc.sh Thanks, /Basil Julie McGrew via Groups.Io <juliemcgrew=mac.com@groups.io> writes:
[Edited Message Follows]
|
|
hmmm ... It appears reply by email is slow ... I'll answer here and apologize to all if there is a dup of this message.
Thank you for the quick response!
pi@K7TMV-draws:~ $ 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: udrc [udrc], device 0: Universal Digital Radio Controller tlv320aic32x4-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0
pi@K7TMV-draws:~ $
pi@K7TMV-draws:~ $ showudrc.sh
==== Sound Card ====
udrc card number line: card 1: udrc [udrc], device 0: Universal Digital Radio Controller tlv320aic32x4-hifi-0 []
udrc is sound card #1
==== ALSA Controls for Radio Tansmit ====
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
LO Driver Gain L: R:
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
PCM L: R:
amixer: Mixer hw:1 load error: Remote I/O error
==== ALSA Controls for Radio Receive ====
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
ADC Level L: R:
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
IN1 L:[] R:[]
IN2 L:[] R:[]
==== 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: 3c64ff9f-0cdd-403e-bdac-821b040e8693
Vendor: NW Digital Radio
==== sys Ver ====
----- image version
2019 05 07 12:46:37 PDT: SD image version: beta13
----- /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: K7TMV-draws
Icon name: computer
Machine ID: 2f51e140e908474eaa86ae805f03a6d8
Boot ID: 0ed5a4bbb1e640178dd8793f69b624f2
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 2
snd_soc_core 188416 3 tlv320aic32x4,snd_soc_bcm2835_i2s,udrc
snd_pcm 98304 7 snd_pcm_dmaengine,tlv320aic32x4,snd_soc_bcm2835_i2s,snd_bcm2835,snd_soc_core
-rw-r--r-- 1 root 6388 Apr 16 12:42 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Apr 16 12:42 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root 6408 Apr 16 12:42 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root 8332 Apr 16 12: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 exists and status is okay
---- syslog
---- dmesg
[ 3.289751] udrc: loading out-of-tree module taints kernel.
[ 3.290477] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[ 3.290491] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[ 3.398819] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[ 3.398825] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[ 3.411000] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[ 3.411011] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[ 3.457739] 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 30G 4.9G 24G 18% /
==== boot config ====
# Uncomment some or all of these to enable the optional hardware interfaces
#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
force_turbo=1
dtoverlay=
dtoverlay=draws,alsaname=udrc
# 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 Thu 2019-06-06 08:52:16 PDT; 7h ago
Main PID: 576 (gpsd)
CGroup: /system.slice/gpsd.service
└─576 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
Jun 06 08:52:16 K7TMV-draws systemd[1]: Starting GPS (Global Positioning System) Daemon...
Jun 06 08:52:16 K7TMV-draws systemd[1]: Started GPS (Global Positioning System) Daemon.
---- chrony
crw------- 1 root root 243, 0 Jun 6 08:52 /dev/pps0
crw-rw---- 1 root dialout 242, 0 Jun 6 08:52 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Jun 6 08:52 /dev/ttySC1
-- 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
^* 96-8-121-205-host.colocr> 3 10 377 509 +848us[ +916us] +/- 23ms
^+ server.nanoslim.org 3 10 377 334 -2205us[-2205us] +/- 29ms
^+ jitter.tickadj.net 2 10 377 85 +998us[ +998us] +/- 47ms
^- eterna.binary.net 2 10 377 332 +669us[ +669us] +/- 75ms
-- chrony tracking
Reference ID : 600879CD (96-8-121-205-host.colocrossing.com)
Stratum : 4
Ref time (UTC) : Thu Jun 06 23:36:54 2019
System time : 0.000421532 seconds fast of NTP time
Last offset : +0.000067734 seconds
RMS offset : 0.000240083 seconds
Frequency : 0.727 ppm slow
Residual freq : +0.002 ppm
Skew : 0.014 ppm
Root delay : 0.025503 seconds
Root dispersion : 0.008533 seconds
Update interval : 1031.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 0 0 0 +0.000 2000.000 +0ns 4000ms
PPS 0 0 0 +0.000 2000.000 +0ns 4000ms
96-8-121-205-host.colocr> 44 19 460m +0.000 0.017 +1767us 296us
server.nanoslim.org 51 23 466m -0.006 0.014 -2658us 264us
jitter.tickadj.net 6 5 85m +0.111 0.322 +822us 168us
eterna.binary.net 13 9 207m +0.067 0.053 +1311us 146us
---- sensors
-rw-r--r-- 1 root root 171 Nov 11 2018 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential: N/A
+12V: N/A
User ADC 1: N/A
User ADC 2: N/A
---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 1 time(s)
pi@K7TMV-draws:~ $
Many thanks for your assistance, Basil. :)
73,
julie
ac0wn
|
|
Thanks for the console output.
toggle quoted messageShow quoted text
The driver is loading fine. The software appears to be working but gps, sensor & audio device are not. How are you powering the RPi/Draws board? I am assuming you are using the RPi 5V USB connector. Could you measure the voltage on the 5V supply. Also could you cut & paste the output to this command: amixer -c udrc get "LO Driver Gain" Thanks, /Basil Julie McGrew via Groups.Io <juliemcgrew=mac.com@groups.io> writes:
hmmm ... It appears reply by email is slow ... I'll answer here and apologize to all if there is a dup of this message.
|
|
Good morning Basil,
The rPi is powered via the draws card which is reading 14.12 vdc Pin 2 on the gpio is reading 5.047 vdc pi@K7TMV-draws:~ $ amixer -c udrc get "LO Driver Gain"
amixer: Mixer hw:1 load error: Remote I/O error
Many thanks, julie ac0wn
|
|
Hi Julie,
toggle quoted messageShow quoted text
I'm reasonably sure that the draws board you are helping with is defective. I have an email out to the other NW Digital people to confirm my suspicion noting these symptoms: * The rPi is powered via the draws card which is reading 14.12 vdc * Pin 2 on the gpio is reading 5.047 vdc * Replaced the rpi unit with a new one - no change. * Replaced the SDCard with a new 32 GB card with fresh Beta 13 build - twice - no change * aplay -l enumerates the udrc sound device ok * amixer gives an error message I have never seen before * gps, sensors & sound codec appear to be not responding Thanks for your patience. /Basil Julie McGrew via Groups.Io <juliemcgrew=mac.com@groups.io> writes:
Good morning Basil,
|
|
Hi Julie,
toggle quoted messageShow quoted text
ADC, CODEC and Serial (GPS) rely on I2C, which is tested in manufacture. I’m with Basil, it sounds defective. Please return to: NW Digital Radio RMA <order number> 245 Highlands Drive Friday Harbor WA 98250 Thanks, Bryan K7UDR
On Jun 7, 2019, at 8:47 AM, Basil Gunn <basil@pacabunga.com> wrote:
|
|
Julie,
toggle quoted messageShow quoted text
Could you please run this command: i2cdetect -y 1 Should have devices at addresses: 0x18, 0x48 & 0x50 Thanks, /Basil Bryan Hoyer <bhhoyer@gmail.com> writes:
Hi Julie,
|
|
Hi Basil,
pi@K7TMV-draws:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@K7TMV-draws:~ $
73, julie ac0wn
|
|
Results from my reference system:
pi@K7UDR-FHR:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- Isn’t an I2C HW issue. 3 devices respond at the correct addresses. Bryan K7UDR
|
|
So ... should I have him return the draws card, or do you wish me to do further testing?
Also, if he returns the item do you wish us to include the gps antenna in the return? Many thanks for all your kind assistance. 73, julie ac0wn
|
|
Have him return it with the GPS Antenna and the SDCARD so I can duplicate it here.
toggle quoted messageShow quoted text
Thanks Julie! Bryan K7UDR
|
|
OK .. will do the return as requested.
Thank you Basil and Bryan for the excellent service and support! :) 73, julie ac0wn
|
|
Julie,
Thanks for all your testing and hard work. I’ve been reading your email stream and I’m glad to know you reached the same conclusion I did. I’m sure you reached a level of frustration before Basil agreed the board might be bad.
I’m in Seaside till tomorrow but we should be home by late afternoon. I can email you when we get home and work out how to get the board so I can send it back to NW Digital.
Tom
From: udrc@nw-digital-radio.groups.io <udrc@nw-digital-radio.groups.io> On Behalf Of Julie McGrew via Groups.Io
OK .. will do the return as requested.
|
|