Topics

DRAWS

Paul Noa
 

Addendum to my last question Why no transmit?
~/n7nix/debug $ ax25-status -d
AX25 Debug Status
== failed & loaded but inactive units==
0 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
 
== direwolf ==
  pid: 479
  ver: Dire Wolf DEVELOPMENT version 1.6 D (Jan  6 2020)
== /proc/sys ==
ax25  core  ipv4  ipv6  netfilter  unix
ax0  ax1
 
== Network Interface ax0 & ax1 ==
4: ax0: <BROADCAST,UP,LOWER_UP> mtu 255 qdisc pfifo_fast state UNKNOWN group default qlen 10
    link/ax25 96:9e:68:84:86:b4:14 brd a2:a6:a8:40:40:40:00
    inet 192.168.255.2/32 brd 192.168.255.255 scope global ax0
       valid_lft forever preferred_lft forever
 
5: ax1: <BROADCAST,UP,LOWER_UP> mtu 255 qdisc pfifo_fast state UNKNOWN group default qlen 10
    link/ax25 96:9e:68:84:86:b4:14 brd a2:a6:a8:40:40:40:00
    inet 192.168.255.3/32 brd 192.168.255.255 scope global ax1
       valid_lft forever preferred_lft forever
 
== status networkd services ==
enabled
● systemd-networkd-wait-online.service - Wait for Network to be Configured
   Loaded: loaded (/lib/systemd/system/systemd-networkd-wait-online.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2020-03-19 19:38:04 EDT; 1 day 19h ago
     Docs: man:systemd-networkd-wait-online.service(8)
  Process: 372 ExecStart=/lib/systemd/systemd-networkd-wait-online (code=exited, status=0/SUCCESS)
 Main PID: 372 (code=exited, status=0/SUCCESS)
 
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd-networkd-wait-online[372]: ignoring: lo
Mar 19 19:38:04 ASAwizard systemd[1]: Started Wait for Network to be Configured.
enabled
● systemd-networkd.service - Network Service
   Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-19 19:38:02 EDT; 1 day 19h ago
     Docs: man:systemd-networkd.service(8)
 Main PID: 317 (systemd-network)
   Status: "Processing requests..."
    Tasks: 1 (limit: 2200)
   Memory: 4.5M
   CGroup: /system.slice/systemd-networkd.service
           └─317 /lib/systemd/systemd-networkd
 
Mar 19 19:38:02 ASAwizard systemd[1]: Starting Network Service...
Mar 19 19:38:02 ASAwizard systemd-networkd[317]: Enumeration completed
Mar 19 19:38:02 ASAwizard systemd[1]: Started Network Service.
Mar 19 19:38:04 ASAwizard systemd-networkd[317]: ax0: Gained carrier
Mar 19 19:38:04 ASAwizard systemd-networkd[317]: ax1: Gained carrier
Mar 19 19:38:10 ASAwizard systemd-networkd[317]: wlan0: Gained carrier
Mar 19 19:38:12 ASAwizard systemd-networkd[317]: wlan0: Gained IPv6LL
Mar 21 14:43:28 ASAwizard systemd-networkd[317]: wlan0: Lost carrier
Mar 21 14:46:53 ASAwizard systemd-networkd[317]: wlan0: Gained carrier
Mar 21 14:47:04 ASAwizard systemd-networkd[317]: wlan0: Gained IPv6LL
 
== status direwolf service ==
enabled
● direwolf.service - Direwolf Daemon
   Loaded: loaded (/etc/systemd/system/direwolf.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-19 19:38:03 EDT; 1 day 19h ago
  Process: 470 ExecStartPre=/bin/rm -f /tmp/kisstnc (code=exited, status=0/SUCCESS)
 Main PID: 479 (direwolf)
    Tasks: 15 (limit: 2200)
   Memory: 2.7M
   CGroup: /system.slice/direwolf.service
           └─479 /usr/bin/direwolf -t 0 -c /etc/direwolf.conf -p
 
Mar 21 14:39:07 ASAwizard systemd[1]: /etc/systemd/system/direwolf.service:10: DefaultInstance= only makes sense for template units, ignoring.
Mar 21 14:41:53 ASAwizard direwolf[479]: [ig>tx] WA4TKG>APW290,W4NAS,WIDE2-2,qAR,W4NAS::K6STS-11 :We SEEZ'ya' !{000
Mar 21 15:04:38 ASAwizard direwolf[479]: Error reading from IGate server.  Closing connection.
Mar 21 15:04:52 ASAwizard direwolf[479]: Now connected to IGate server noam.aprs2.net (173.242.239.3)
Mar 21 15:04:52 ASAwizard direwolf[479]: Check server status here http://173.242.239.3:14501
Mar 21 15:04:53 ASAwizard direwolf[479]: [ig] # aprsc 2.1.5-g8af3cdc
Mar 21 15:04:55 ASAwizard direwolf[479]: [ig] # logresp KO4BCZ verified, server T2NALA
Mar 21 15:08:12 ASAwizard direwolf[479]: [0L] KO4BCZ-11>APUDR1,WIDE1-1::KO4BCZ   :21 15:08:11 EDT KO4BCZ mesg_beacon test from host ASAwizard on…dr0 Seq: 21
Mar 21 15:10:10 ASAwizard systemd[1]: /etc/systemd/system/direwolf.service:10: DefaultInstance= only makes sense for template units, ignoring.
Mar 21 15:10:10 ASAwizard systemd[1]: /etc/systemd/system/direwolf.service:10: DefaultInstance= only makes sense for template units, ignoring.
Hint: Some lines were ellipsized, use -l to show in full.
 
== status ax25 service ==
enabled
● ax25dev.service - AX.25 device
   Loaded: loaded (/etc/systemd/system/ax25dev.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2020-03-19 19:38:04 EDT; 1 day 19h ago
  Process: 564 ExecStart=/bin/bash -c /etc/ax25/ax25-upd (code=exited, status=0/SUCCESS)
 Main PID: 564 (code=exited, status=0/SUCCESS)
    Tasks: 3 (limit: 2200)
   Memory: 1.6M
   CGroup: /system.slice/ax25dev.service
           ├─582 /usr/local/sbin/mkiss /tmp/kisstnc /dev/ptmx /dev/ptmx
           ├─598 /usr/local/sbin/kissattach /dev/pts/1 udr0 192.168.255.2
           └─601 /usr/local/sbin/kissattach /dev/pts/2 udr1 192.168.255.3
 
Mar 19 19:38:04 ASAwizard bash[564]: ax25dev-parms finished
Mar 19 19:38:04 ASAwizard bash[564]: Using Device = ax1
Mar 19 19:38:04 ASAwizard bash[564]: ax25dev-parms finished
Mar 19 19:38:04 ASAwizard bash[564]:  Port udr0 attached to ax0
Mar 19 19:38:04 ASAwizard bash[564]:  Port udr1 attached to ax1
Mar 19 19:38:04 ASAwizard bash[564]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
Mar 19 19:38:04 ASAwizard bash[564]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
Mar 19 19:38:04 ASAwizard bash[564]: kissparms: invalid port name - udr1
Mar 19 19:38:04 ASAwizard bash[564]: ax25-upd script finished
Mar 19 19:38:04 ASAwizard systemd[1]: Started AX.25 device.
 
-- Logs begin at Thu 2019-02-14 05:11:59 EST, end at Sat 2020-03-21 15:10:10 EDT. --
Mar 19 19:38:03 ASAwizard systemd[1]: Starting AX.25 device...
Mar 19 19:38:03 ASAwizard bash[483]: ax25-upd: Start Port udr0 with device /tmp/kisstnc
Mar 19 19:38:03 ASAwizard bash[483]: Direwolf serial port NOT FOUND
Mar 19 19:38:03 ASAwizard systemd[1]: ax25dev.service: Main process exited, code=exited, status=1/FAILURE
Mar 19 19:38:03 ASAwizard systemd[1]: ax25dev.service: Failed with result 'exit-code'.
Mar 19 19:38:03 ASAwizard systemd[1]: Failed to start AX.25 device.
Mar 19 19:38:04 ASAwizard systemd[1]: Starting AX.25 device...
Mar 19 19:38:04 ASAwizard bash[564]: ax25-upd: Start Port udr0 with device /tmp/kisstnc
Mar 19 19:38:04 ASAwizard bash[564]: Direwolf serial port ready
Mar 19 19:38:04 ASAwizard bash[564]: UDRC_PROD: Digital Radio Amateur Work Station, ID: 4
Mar 19 19:38:04 ASAwizard bash[564]: Product ID match: 4
Mar 19 19:38:04 ASAwizard bash[564]: Found HAT for DRAWS with product ID: 4
Mar 19 19:38:04 ASAwizard bash[564]: UDRC II or DRAWS installed
Mar 19 19:38:04 ASAwizard bash[564]: using mkiss with UDRC II and pseudo term_1: /dev/pts/1 pseudo term_2: /dev/pts/2
Mar 19 19:38:04 ASAwizard bash[564]: kissattach return: 0
Mar 19 19:38:04 ASAwizard bash[564]: Using Device = ax0
Mar 19 19:38:04 ASAwizard bash[564]: ax25dev-parms finished
Mar 19 19:38:04 ASAwizard bash[564]: Using Device = ax1
Mar 19 19:38:04 ASAwizard bash[564]: ax25dev-parms finished
Mar 19 19:38:04 ASAwizard bash[564]:  Port udr0 attached to ax0
Mar 19 19:38:04 ASAwizard bash[564]:  Port udr1 attached to ax1
Mar 19 19:38:04 ASAwizard bash[564]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
Mar 19 19:38:04 ASAwizard bash[564]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
Mar 19 19:38:04 ASAwizard bash[564]: kissparms: invalid port name - udr1
Mar 19 19:38:04 ASAwizard bash[564]: ax25-upd script finished
Mar 19 19:38:04 ASAwizard systemd[1]: Started AX.25 device.
 
== status ax25 path ==
enabled
● ax25dev.path
   Loaded: loaded (/etc/systemd/system/ax25dev.path; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-19 19:38:02 EDT; 1 day 19h ago
 
Mar 19 19:38:02 ASAwizard systemd[1]: Started ax25dev.path.
 
== status ax25-mheardd ==
enabled
● ax25-mheardd.service - AX.25 mheard daemon
   Loaded: loaded (/etc/systemd/system/ax25-mheardd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-19 19:38:04 EDT; 1 day 19h ago
 Main PID: 624 (mheardd)
    Tasks: 1 (limit: 2200)
   Memory: 204.0K
   CGroup: /system.slice/ax25-mheardd.service
           └─624 /usr/local/sbin/mheardd -f -n 150
 
Mar 19 19:38:04 ASAwizard systemd[1]: Started AX.25 mheard daemon.
Mar 19 19:38:04 ASAwizard mheardd[624]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
 
== status ax25d ==
enabled
● ax25d.service - General purpose AX.25 daemon
   Loaded: loaded (/etc/systemd/system/ax25d.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-19 19:38:04 EDT; 1 day 19h ago
 Main PID: 625 (ax25d)
    Tasks: 1 (limit: 2200)
   Memory: 432.0K
   CGroup: /system.slice/ax25d.service
           └─625 /usr/local/sbin/ax25d -l
 
Mar 19 19:38:04 ASAwizard systemd[1]: Started General purpose AX.25 daemon.
Mar 19 19:38:04 ASAwizard ax25d[625]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
Mar 19 19:38:04 ASAwizard ax25d[625]: starting
Mar 19 19:38:04 ASAwizard ax25d[625]: ax25d: UID for user 'rmsgw' is unknown, ignoring entry
Mar 19 19:38:04 ASAwizard ax25d[625]: new config file loaded successfuly
 
== netstat ax25 ==
Active AX.25 sockets
Dest       Source     Device  State        Vr/Vs    Send-Q  Recv-Q
*          KO4BCZ-0   ax0     LISTENING    000/000  0       0
*          KO4BCZ-10  ax0     LISTENING    000/000  0       0
pi@ASAwizard:~/n7nix/debug $
 

Basil Gunn
 

What could prevent transmitting with DRAWS Hat running NWDR15 on Pi3 B+ ?
Addendum to my last question Why no transmit?
I just did a fresh install to confirm that the text in the "Getting
Started" Guide works consistently.

Thanks for the console output from all the commands. In the future you
can just run the showudrc.sh script which usually gives enough output to
solve problems.

First to answer how to debug transmit problems:

Start from a clean install. Editing any configuration files is
discouraged until you can confirm things are working. In your case
/etc/ax25/axports file has been manually edited and is misconfigured.
The /etc/direwolf.conf file may also be manually edited and misconfigured.

1. Check cable to radio. Is it a custom cable? In your case you should
be using the left hand mDin6 connector.
2. Radio turned on?
-When running scripts btest.sh or measure_deviate.sh
3. Does you radio indicate that it transmits when running either of the
above scripts?
4. Does the transmit led next to the mDin6 connector on the DRAWS card
come on when running either of the above scripts?
5. Tune an HT to the same frequency used by your radio attached to the
DRAWS card. When running the measure_deviate.sh script can you hear a
tone?

Until you get the above tests working I would not try to figure out why
your receive is not working either.

Things from your console output that require fixing:

Either start from a fresh install (recommended) or fix your /etc/ax25/axports file.
Mar 19 19:38:04 ASAwizard bash[564]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
Mar 19 19:38:04 ASAwizard bash[564]: kissparms: invalid port name - udr1

You said that you did not see any console output from the listen command
yet your direwolf log file sees your beacon test output:

Mar 21 15:08:12 ASAwizard direwolf[479]: [0L]KO4BCZ-11>APUDR1,WIDE1-1::KO4BCZ :21 15:08:11 EDT KO4BCZ mesg_beacon test from host ASAwizard on udr0 Seq: 21

This indicates some ax.25 misconfiguration. Note that if you just follow
the "Getting Started" guide you should NOT have to edit any
configuration files.

Focus on your transmit problem first then look at receive.
Tune your radio to the national 1200 baud APRS frequency (144.390 MHZ),
turn audio up & squelch off. You should hear some/a lot of traffic and
you should see that traffic in your 'listen' console or 'tail -f
/var/log/direwolf/dirwolf.log' console.

Receive problems are usually due to cable mis-wired, incorrect ALSA
parameters or radio misconfigured (AFOUT/DISCriminator).

/Basil n7nix

Paul Noa
 

Thanks Basil,

I will try a new clean install on a different DRAWS hat I have not touched.

However I am pretty certain I had not edited any files at least before I sent my info.

But I have had a disjointed effort lately but will start from scratch one more time I am getting pretty good at it.

Will advise.

Paul 
KO4BCZ

Paul Noa
 

Basil,

I followed Getting Started to the letter No Joy please see the following outputs

pi@asawizard:~/bin $ ./showudrc.sh
==== Sound Card ====
udrc card number line: card 0: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 [bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #0
==== ALSA Controls for Radio Tansmit ====
LO Driver Gain  L:[-6.00dB]     R:[-6.00dB]
PCM             L:[-16.50dB]    R:[-16.50dB]
DAC Playback PT L:[P3]  R:[P3]
LO Playback CM  [Full Chip]
==== ALSA Controls for Radio Receive ====
ADC Level       L:[-2.00dB]     R:[-2.00dB]
IN1             L:[10 kOhm]     R:[10 kOhm]
IN2             L:[Off]         R:[Off]
==== Pi Ver ====
 Pi 3 Model B+, Rev 1.3, 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: 0x0206
UUID:        709b5761-81d1-452a-9709-8e1626c29c26
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2020 01 23 09:25:01 PST: SD image version: nwdr15
----- /proc/version
Linux version 4.19.97-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1294 SMP Thu Jan 30 13:15:58 GMT 2020
 
----- /etc/*version: 10.3
 
----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
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 10 (buster)
Release:        10
Codename:       buster
 
---- systemd
   Static hostname: asawizard
         Icon name: computer
        Machine ID: 27ac1f0c20904cb7a960920e966db545
           Boot ID: e442fe505a444306938c643e4b1ab380
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.97-v7+
      Architecture: arm
 
---- modules
snd_soc_tlv320aic32x4_i2c    16384  27
snd_soc_tlv320aic32x4    40960  1 snd_soc_tlv320aic32x4_i2c
snd_soc_core          192512  4 snd_soc_simple_card_utils,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_simple_card
snd_pcm               102400  6 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_core
snd                    73728  11 snd_compress,snd_timer,snd_soc_tlv320aic32x4,snd_soc_core,snd_pcm
 
---- kernel
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20200212-1 armhf        Raspberry Pi bootloader
 
---- Codec drivers
Found: snd-soc-tlv320aic32x4-i2c.ko, OK
Found: snd-soc-tlv320aic32x4.ko, OK
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
Mar 24 18:17:52 asawizard bash[6527]: UDRC II or DRAWS installed
Mar 24 18:17:52 asawizard bash[6527]: using mkiss with UDRC II and pseudo term_1: /dev/pts/2 pseudo term_2: /dev/pts/3
Mar 24 18:19:41 asawizard bash[575]: UDRC II or DRAWS installed
Mar 24 18:19:41 asawizard bash[575]: using mkiss with UDRC II and pseudo term_1: /dev/pts/1 pseudo term_2: /dev/pts/2
Mar 24 18:27:12 asawizard bash[569]: UDRC II or DRAWS installed
Mar 24 18:27:12 asawizard bash[569]: using mkiss with UDRC II and pseudo term_1: /dev/pts/1 pseudo term_2: /dev/pts/2
 
---- dmesg
 
 
----- Dire Wolf DEVELOPMENT version 1.6 D (Jan  6 2020)
 
==== Filesystem ====
/dev/root        29G  5.3G   23G  19% /
 
==== boot config ====
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
 
[all]
#dtoverlay=vc4-fkms-v3d
 
# Flush all overlays, ie. deprecated overlays loaded from eeprom
dtoverlay=
# enable udrc/draws if no eeprom
dtoverlay=draws,alsaname=udrc
force_turbo=1
# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.20 (revision 3.20)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-03-24 18:27:11 EDT; 13min ago
  Process: 522 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 523 (gpsd)
    Tasks: 3 (limit: 2200)
   Memory: 1.4M
   CGroup: /system.slice/gpsd.service
           └─523 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Mar 24 18:27:11 asawizard systemd[1]: Starting GPS (Global Positioning System) Daemon...
Mar 24 18:27:11 asawizard systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    241, 0 Mar 24 18:27 /dev/pps0
crw------- 1 root root    241, 1 Mar 24 18:27 /dev/pps1
crw-rw---- 1 root dialout 239, 0 Mar 24 18:27 /dev/ttySC0
crw-rw---- 1 root dialout 239, 1 Mar 24 18:27 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
#x GPS                           0   3   377     6   -115ms[ -115ms] +/-  105ms
#* PPS                           0   3   377     7   +453ns[ +571ns] +/-  261ns
^? 2604:a880:400:d0::62:c001     0   7     0     -     +0ns[   +0ns] +/-    0ns
^- 2001:19f0:8001:1de:5400:>     2   6   377     4  -6985us[-6984us] +/-   94ms
^- y.ns.gin.ntt.net              2   6   377     4    -16ms[  -16ms] +/-   85ms
^- li290-38.members.linode.>     2   6   377   267   +649us[ +647us] +/-   84ms
-- chrony tracking
Reference ID    : 50505300 (PPS)
Stratum         : 1
Ref time (UTC)  : Tue Mar 24 22:40:52 2020 System time     : 0.000000087 seconds fast of NTP time
Last offset     : +0.000000123 seconds
RMS offset      : 0.000580859 seconds
Frequency       : 0.413 ppm slow
Residual freq   : +0.000 ppm
Skew            : 0.007 ppm
Root delay      : 0.000000001 seconds
Root dispersion : 0.000009704 seconds
Update interval : 8.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                        11   7    80   -372.792    634.285   -149ms  8917us
PPS                        18   9   135     +0.000      0.006     +1ns   275ns
2604:a880:400:d0::62:c001   0   0     0     +0.000   2000.000     +0ns  4000ms
2001:19f0:8001:1de:5400:>   6   4   390   +109.178    244.112    -99us  8495us
y.ns.gin.ntt.net           13   6   786     +1.604     18.156  -5755us  3030us
li290-38.members.linode.>   9   7   524     +4.770     18.881  -1882us  1301us
 
---- sensors
-rw-r--r-- 1 root root 171 Sep 19  2019 /etc/sensors.d/draws
rpi_volt-isa-0000
Adapter: ISA adapter
in0:              N/A
 
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
+12V:         +0.00 V
in5:          +2.58 V
User ADC 1:   +0.00 V
User ADC 2:   +0.00 V
 
 
---- throttle
temp=58.0'C
throttled=0x80000
 
---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 1 time(s)
pi@asawizard:~/bin $
 
pi@asawizard:~/bin $ tail -f /var/log/direwolf/direwolf.log
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (167.114.2.176) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (54.39.23.43) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (44.10.10.10) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (66.159.41.113) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (2607:7000:1:3::2) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (173.242.239.3) failed.
Mar 24 18:27:32 asawizard direwolf[485]: Now connected to IGate server noam.aprs2.net (2607:7000:1:3::2)
Mar 24 18:27:32 asawizard direwolf[485]: Check server status here http://[2607:7000:1:3::2]:14501
Mar 24 18:27:46 asawizard direwolf[485]: [ig] # aprsc 2.1.5-g8e78d39
Mar 24 18:27:46 asawizard direwolf[485]: [ig] # logresp KO4BCZ verified, server T2OREGON
root@asawizard:/home/pi/n7nix/debug# ./btest.sh -P udr0
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr0 :KO4BCZ :24 18:54:08 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 1
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file  # I did not edit any files this comes with the image
root@asawizard:/home/pi/n7nix/debug# ./btest.sh -P udr0
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr0 :KO4BCZ :24 18:55:46 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 2
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
root@asawizard:/home/pi/n7nix/debug# ./btest.sh -P udr1
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr1 :KO4BCZ :24 19:00:50 EDT KO4BCZ mesg_beacon test from host asawizard on port udr1 Seq: 3
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file  # I did not edit any files this comes with the image when asked for an ssid between 1-15??
beacon: invalid AX.25 port setting - udr1
Beacon command failed.
root@asawizard:/home/pi/n7nix/debug#

New out of the draws hat, new clean installation

No xmit ,no RX  I 
I had that working sunday maybe the alsa settings are wrong?

Above alsa setting are from the alsa IC7000 script I tried for start then
I used draws manager : 

pi@asawizard:~/n7nix/debug $ alsa-show.sh
 ===== ALSA Controls for Radio Transmit =====
LO Driver Gain  L:[0.00dB]      R:[-6.00dB]
PCM             L:[0.00dB]      R:[-25.00dB]
DAC Playback PT L:[P3]          R:[P3]
LO Playback CM  [Full Chip]
 
 ===== ALSA Controls for Radio Receive =====
ADC Level       L:[0.00dB]      R:[0.00dB]
IN1             L:[10 kOhm]     R:[10 kOhm]
IN2             L:[Off]         R:[Off]
CM              L:[10 kOhm]     R:[10 kOhm]

I saved every step following Getting Started if you would like to see that.

Anything you might comment on would be much appreciated.

Paul
KO4BCZ

Paul Noa
 

Basil,
I was monitoring 144.390 MHz with second rcvr  and only heard a couple APRS transmissions.
which might also been when the alsa settings were from the IC7000 script.
 I copied and pasted every step in the attached txt file 

Paul

Paul Noa
 

Bryan, Basil, et al,

The more I think about my tx/rx problems I have come to the point it must be the alsa settings.

This area is new to me.  So I have been looking for guidance on setting that up under audio #hashtags.

I found this correspondence:
David, you are right!

100ohm Resistors we’re incorrectly Stuffed as 100k creating a 20dB attenuator.

I should have caught it when we had the cap problem.

With the new run, 8 Components were stuffed incorrectly:

C17, C20 (0603) should be 0.1uF but 10uF was stuffed

Easiest Fix is to Remove

R20, R21, R26, R27, R39, R40 (0603) 100ohms but 100kohms was stuffed

Easiest Fix is to solder 100ohms on top (in parallel)

Assembly has current stock in for re-work.

We’ll make it right for boards in the field, whatever it takes.

I’m out of the office until January 6th.  

I am at work now but will verify my hats don't have the wrong parts populated.

Otherwise any further guidance on setting alsa would be helpful.

Paul
KO4BCZ

Basil Gunn
 

1. Edit /etc/ax25/axports
You are using the same call sign & SSID for both devices. That
happened when you configured the direwolf SSID to be 10. Change it to
something other than 10 like 1.

2. Why did you choose the IC-7000 alsa script? That script uses ALSA to
route the receive audio from the radio discriminator. Is that how
you've configured your Hyteria TM800-U?

3. Can you provide a pin out of the cable you are using to connect to
your radio to the DRAWS hat. Also which connector(s) are you using on
the Radio?

4. Your RPi throttled at some point due to over heating. Did you install
heat sinks?

5. Debug transmit then receive. Use measure_deviate
(https://github.com/nwdigitalradio/n7nix/tree/master/deviation) to
put a tone on pin 1 (transmit audio) of the mDin6 cable.

6. You very well may have a DRAWS hat that was stuffed with incorrect
components but you have a number of things that are mis-configured.

/Basil n7nix

Paul Noa <pauljnoa@...> writes:

Basil,
I was monitoring 144.390 MHz with second rcvrand only heard a couple APRS transmissions.
which might also been when the alsa settings were from the IC7000 script.
I copied and pasted every step in the attached txt file

Paul Noa
 

Basil,

Start from a clean install.
# I started from scratch new, clean install and new out of the box Draws Hat

Editing any configuration files is

discouraged until you can confirm things are working. In your case
/etc/ax25/axports file has been manually edited and is misconfigured.

The /etc/direwolf.conf file may also be manually edited and misconfigured.
# No editing has been done to any files 

1. Check cable to radio. Is it a custom cable? In your case you should
be using the left hand mDin6 connector.

# I used the pin outs for the mini DIN 6 connector from this file https://nw-digital-radio.groups.io/g/udrc/files/DRAWSTech.pdf 

I wired my IC-F521 DB9 ACC input using the pinout above and I do recall the pin layout didn' match and that was my rookie mistake not investigating that!

However this seems like where I might have gone wrong, not  having any "HAM" experience my commercial radios don't use mini DIN connectors, so I checked online and found this:


Please confirm the later is correct.

2. Radio turned on?
-When running scripts btest.sh or measure_deviate.sh
# Of Course, But I understand the question

3. Does you radio indicate that it transmits when running either of the
above scripts?
#NO! it does however TX/RX when I use the mic input which I removed during testing

4. Does the transmit led next to the mDin6 connector on the DRAWS card
come on when running either of the above scripts?
#NO!

5. Tune an HT to the same frequency used by your radio attached to the
DRAWS card. When running the measure_deviate.sh script can you hear a
tone?
#HT?? can you use generic terminology and elaborate, I have not run Measure_deviate.sh

Either start from a fresh install (recommended) or fix your /etc/ax25/axports file.
Mar 19 19:38:04 ASAwizard bash[564]: axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
Mar 19 19:38:04 ASAwizard bash[564]: kissparms: invalid port name - udr1
# I have a fresh install see below

You said that you did not see any console output from the listen command
yet your direwolf log file sees your beacon test output:

Mar 21 15:08:12 ASAwizard direwolf[479]: [0L]KO4BCZ-11>APUDR1,WIDE1-1::KO4BCZ :21 15:08:11 EDT KO4BCZ mesg_beacon test from host ASAwizard on udr0 Seq: 21

This indicates some ax.25 misconfiguration. Note that if you just follow
the "Getting Started" guide you should NOT have to edit any
configuration files
# with my fresh install i did see out with listen -at
#What indicates ax.25 is mis-configured in the lines above? 
# I did NOT and Have Not edited any config files;
#see my outputs from the fresh install:

pi@asawizard:~/bin $ ./showudrc.sh
==== Sound Card ====
udrc card number line: card 0: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 [bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #0
==== ALSA Controls for Radio Tansmit ====
LO Driver Gain  L:[-6.00dB]     R:[-6.00dB]
PCM             L:[-16.50dB]    R:[-16.50dB]
DAC Playback PT L:[P3]  R:[P3]
LO Playback CM  [Full Chip]
==== ALSA Controls for Radio Receive ====
ADC Level       L:[-2.00dB]     R:[-2.00dB]
IN1             L:[10 kOhm]     R:[10 kOhm]
IN2             L:[Off]         R:[Off]
==== Pi Ver ====
 Pi 3 Model B+, Rev 1.3, 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: 0x0206
UUID:        709b5761-81d1-452a-9709-8e1626c29c26
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2020 01 23 09:25:01 PST: SD image version: nwdr15
----- /proc/version
Linux version 4.19.97-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1294 SMP Thu Jan 30 13:15:58 GMT 2020
 
----- /etc/*version: 10.3
 
----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
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 10 (buster)
Release:        10
Codename:       buster
 
---- systemd
   Static hostname: asawizard
         Icon name: computer
        Machine ID: 27ac1f0c20904cb7a960920e966db545
           Boot ID: e442fe505a444306938c643e4b1ab380
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.97-v7+
      Architecture: arm
 
---- modules
snd_soc_tlv320aic32x4_i2c    16384  27
snd_soc_tlv320aic32x4    40960  1 snd_soc_tlv320aic32x4_i2c
snd_soc_core          192512  4 snd_soc_simple_card_utils,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_simple_card
snd_pcm               102400  6 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_core
snd                    73728  11 snd_compress,snd_timer,snd_soc_tlv320aic32x4,snd_soc_core,snd_pcm
 
---- kernel
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20200212-1 armhf        Raspberry Pi bootloader
 
---- Codec drivers
Found: snd-soc-tlv320aic32x4-i2c.ko, OK
Found: snd-soc-tlv320aic32x4.ko, OK
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
Mar 24 18:17:52 asawizard bash[6527]: UDRC II or DRAWS installed
Mar 24 18:17:52 asawizard bash[6527]: using mkiss with UDRC II and pseudo term_1: /dev/pts/2 pseudo term_2: /dev/pts/3
Mar 24 18:19:41 asawizard bash[575]: UDRC II or DRAWS installed
Mar 24 18:19:41 asawizard bash[575]: using mkiss with UDRC II and pseudo term_1: /dev/pts/1 pseudo term_2: /dev/pts/2
Mar 24 18:27:12 asawizard bash[569]: UDRC II or DRAWS installed
Mar 24 18:27:12 asawizard bash[569]: using mkiss with UDRC II and pseudo term_1: /dev/pts/1 pseudo term_2: /dev/pts/2
 
---- dmesg
 
 
----- Dire Wolf DEVELOPMENT version 1.6 D (Jan  6 2020)
 
==== Filesystem ====
/dev/root        29G  5.3G   23G  19% /
 
==== boot config ====
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
 
[all]
#dtoverlay=vc4-fkms-v3d
 
# Flush all overlays, ie. deprecated overlays loaded from eeprom
dtoverlay=
# enable udrc/draws if no eeprom
dtoverlay=draws,alsaname=udrc
force_turbo=1
# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.20 (revision 3.20)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-03-24 18:27:11 EDT; 13min ago
  Process: 522 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 523 (gpsd)
    Tasks: 3 (limit: 2200)
   Memory: 1.4M
   CGroup: /system.slice/gpsd.service
           └─523 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Mar 24 18:27:11 asawizard systemd[1]: Starting GPS (Global Positioning System) Daemon...
Mar 24 18:27:11 asawizard systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    241, 0 Mar 24 18:27 /dev/pps0
crw------- 1 root root    241, 1 Mar 24 18:27 /dev/pps1
crw-rw---- 1 root dialout 239, 0 Mar 24 18:27 /dev/ttySC0
crw-rw---- 1 root dialout 239, 1 Mar 24 18:27 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
#x GPS                           0   3   377     6   -115ms[ -115ms] +/-  105ms
#* PPS                           0   3   377     7   +453ns[ +571ns] +/-  261ns
^? 2604:a880:400:d0::62:c001     0   7     0     -     +0ns[   +0ns] +/-    0ns
^- 2001:19f0:8001:1de:5400:>     2   6   377     4  -6985us[-6984us] +/-   94ms
^- y.ns.gin.ntt.net              2   6   377     4    -16ms[  -16ms] +/-   85ms
^- li290-38.members.linode.>     2   6   377   267   +649us[ +647us] +/-   84ms
-- chrony tracking
Reference ID    : 50505300 (PPS)
Stratum         : 1
Ref time (UTC)  : Tue Mar 24 22:40:52 2020 System time     : 0.000000087 seconds fast of NTP time
Last offset     : +0.000000123 seconds
RMS offset      : 0.000580859 seconds
Frequency       : 0.413 ppm slow
Residual freq   : +0.000 ppm
Skew            : 0.007 ppm
Root delay      : 0.000000001 seconds
Root dispersion : 0.000009704 seconds
Update interval : 8.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                        11   7    80   -372.792    634.285   -149ms  8917us
PPS                        18   9   135     +0.000      0.006     +1ns   275ns
2604:a880:400:d0::62:c001   0   0     0     +0.000   2000.000     +0ns  4000ms
2001:19f0:8001:1de:5400:>   6   4   390   +109.178    244.112    -99us  8495us
y.ns.gin.ntt.net           13   6   786     +1.604     18.156  -5755us  3030us
li290-38.members.linode.>   9   7   524     +4.770     18.881  -1882us  1301us
 
---- sensors
-rw-r--r-- 1 root root 171 Sep 19  2019 /etc/sensors.d/draws
rpi_volt-isa-0000
Adapter: ISA adapter
in0:              N/A
 
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
+12V:         +0.00 V
in5:          +2.58 V
User ADC 1:   +0.00 V
User ADC 2:   +0.00 V
 
 
---- throttle
temp=58.0'C
throttled=0x80000
 
---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 1 time(s)
pi@asawizard:~/bin $
 
pi@asawizard:~/bin $ tail -f /var/log/direwolf/direwolf.log
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (167.114.2.176) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (54.39.23.43) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (44.10.10.10) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (66.159.41.113) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (2607:7000:1:3::2) failed.
Mar 24 18:27:27 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (173.242.239.3) failed.
Mar 24 18:27:32 asawizard direwolf[485]: Now connected to IGate server noam.aprs2.net (2607:7000:1:3::2)
Mar 24 18:27:32 asawizard direwolf[485]: Check server status here http://[2607:7000:1:3::2]:14501
Mar 24 18:27:46 asawizard direwolf[485]: [ig] # aprsc 2.1.5-g8e78d39
Mar 24 18:27:46 asawizard direwolf[485]: [ig] # logresp KO4BCZ verified, server T2OREGON
root@asawizard:/home/pi/n7nix/debug# ./btest.sh -P udr0
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr0 :KO4BCZ :24 18:54:08 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 1
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
root@asawizard:/home/pi/n7nix/debug# ./btest.sh -P udr0
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr0 :KO4BCZ :24 18:55:46 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 2
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
root@asawizard:/home/pi/n7nix/debug# ./btest.sh -P udr1
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr1 :KO4BCZ :24 19:00:50 EDT KO4BCZ mesg_beacon test from host asawizard on port udr1 Seq: 3
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
beacon: invalid AX.25 port setting - udr1
Beacon command failed.
root@asawizard:/home/pi/n7nix/debug#

#verify_Config results:
pi@asawizard:~/n7nix/debug $ ./btest.sh -P udr0
*** Running as user: pi ***
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr0 :KO4BCZ :25 17:51:24 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 1
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
pi@asawizard:~/n7nix/debug $ tail -f /var/log/direwolf/direwolf.log
Mar 25 17:30:20 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (2607:7c80:54:a::4410) failed.
Mar 25 17:30:20 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (173.242.239.3) failed.
Mar 25 17:30:20 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (75.155.112.155) failed.
Mar 25 17:30:20 asawizard direwolf[485]: Connect to IGate server noam.aprs2.net (54.39.23.43) failed.
Mar 25 17:30:26 asawizard direwolf[485]: Now connected to IGate server noam.aprs2.net (173.242.239.3)
Mar 25 17:30:26 asawizard direwolf[485]: Check server status here http://173.242.239.3:14501
Mar 25 17:30:30 asawizard direwolf[485]: [ig] # aprsc 2.1.5-g8af3cdc
Mar 25 17:30:30 asawizard direwolf[485]: [ig] # logresp KO4BCZ verified, server T2NALA
Mar 25 17:50:09 asawizard direwolf[485]: [0L] KO4BCZ-11>APUDR1,WIDE1-1::KO4BCZ   :25 17:50:09 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 0
Mar 25 17:51:25 asawizard direwolf[485]: [0L] KO4BCZ-11>APUDR1,WIDE1-1::KO4BCZ   :25 17:51:24 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 1<0x17>(
^C
Focus on your transmit problem first then look at receive.
Tune your radio to the national 1200 baud APRS frequency (144.390 MHZ),
turn audio up & squelch off. You should hear some/a lot of traffic and
you should see that traffic in your 'listen' console or 'tail -f
/var/log/direwolf/dirwolf.log' console.
#before the clean fresh start I was capturing APRS data see an earlier message I believe I included some outputs showing them.
# for some reason I did not hear anything the last two days?? nor did I capture anything but had been on the last build,  

Receive problems are usually due to cable mis-wired, incorrect ALSA
# See top of message
parameters or radio misconfigured (AFOUT/DISCriminator).
# I tried different alsa settings and AFOUT and DISC inputs LN1 and LN2 from the current fresh new build:

pi@asawizard:~/n7nix/debug $ alsa-show.sh
 ===== ALSA Controls for Radio Transmit =====
LO Driver Gain  L:[-6.00dB]     R:[-6.00dB]
PCM             L:[-3.00dB]     R:[-25.00dB]
DAC Playback PT L:[P3]          R:[P3]
LO Playback CM  [Full Chip]
 
 ===== ALSA Controls for Radio Receive =====
ADC Level       L:[-6.00dB]     R:[0.00dB]
IN1             L:[10 kOhm]     R:[10 kOhm]
IN2             L:[Off]         R:[Off]
CM              L:[10 kOhm]     R:[10 kOhm]
pi@asawizard:~/n7nix/debug $ alsa-show.sh
 ===== ALSA Controls for Radio Transmit =====
LO Driver Gain  L:[0.00dB]      R:[-6.00dB]
PCM             L:[-3.00dB]     R:[-25.00dB]
DAC Playback PT L:[P3]          R:[P3]
LO Playback CM  [Full Chip]
 
 ===== ALSA Controls for Radio Receive =====
ADC Level       L:[-6.00dB]     R:[0.00dB]
IN1             L:[Off]         R:[Off]
IN2             L:[10 kOhm]     R:[10 kOhm]
CM              L:[10 kOhm]     R:[10 kOhm]

#There was radio silence maybe its due to the Corona Virus lockdown ???
#I was not hearing or receiving any transmissions I will revisit that because it makes no sense to me either that is the easiest part??
# this happen:
pi@asawizard:~/n7nix/debug $ ./btest.sh -P udr0
*** Running as user: pi ***
Send a message beacon
 Sent: /usr/local/sbin/beacon -c KO4BCZ-11 -d 'APUDR1 via WIDE1-1' -l -s udr0 :KO4BCZ :25 18:05:55 EDT KO4BCZ mesg_beacon test from host asawizard on port udr0 Seq: 3
axconfig: duplicate callsign KO4BCZ-10 in line 6 of axports file
pi@asawizard:~/n7nix/debug $ tail -f /var/log/direwolf/direwolf.log
Mar 25 18:04:13 asawizard direwolf[485]: [1L] KO4BCZ-10>QST:(UI cc=00, p/f=0)E<0x00><0x00>Df<0xed>@<0x00><0x01><0x11>r<0x14><0xc0><0xa8><0xff><0x03><0xe0><0x00><0x00><0xfb><0x14><0xe9><0x14><0xe9><0x00>0<0xea><0xfb><0x00><0x00><0x00><0x00><0x00><0x01><0x00><0x00><0x00><0x00><0x00><0x00><0x0b>_googlecast<0x04>_tcp<0x05>local<0x00><0x00><0x0c><0x00><0x01>
Mar 25 18:05:54 asawizard direwolf[485]: [0L] KO4BCZ-10>QST:(UI cc=00, p/f=0)E<0x00><0x00><0xc3><0x8a>y@<0x00><0x01><0x11>?<0x0b><0xc0><0xa8><0xff><0x02><0xef><0xff><0xff><0xfa><0xc9>V<0x07>l<0x00><0xaf>Z<0x08>M-SEARCH * HTTP/1.1<0x0d><0x0a>HOST: 239.255.255.250:1900<0x0d><0x0a>MAN: "ssdp:discover"<0x0d><0x0a>MX: 1<0x0d><0x0a>ST: urn:dial-multiscreen-org:service:dial:1<0x0d><0x0a>USER-AGENT: Chromium/78.0.3904.108 Linux<0x0d><0x0a><0x0d><0x0a>






Paul Noa
 

Basil,
1. Edit /etc/ax25/axports
You are using the same call sign & SSID for both devices. That
happened when you configured the direwolf SSID to be 10. Change it to
something other than 10 like 1.
# I did not know what to put there yes I will try 1 rather than ten,
# do I need to start from scratch or can I run the config file again?

2. Why did you choose the IC-7000 alsa script? That script uses ALSA to
route the receive audio from the radio discriminator. Is that how
you've configured your Hyteria TM800-U?
# I am using the IC F-521 VHF now. I will use the TM800-U in the future which is UHF for my application which is not APRS. I am just trying to get the DRAWS Hat working so I can move on to my development application.

3. Can you provide a pin out of the cable you are using to connect to
your radio to the DRAWS hat. Also which connector(s) are you using on
the Radio?
#Please see my last message

4. Your RPi throttled at some point due to over heating. Did you install
heat sinks?
#No Heat sinks, but will do!

5. Debug transmit then receive. Use measure_deviate
(https://github.com/nwdigitalradio/n7nix/tree/master/deviation) to
put a tone on pin 1 (transmit audio) of the mDin6 cable.
#At work now will do that this afternoon

6. You very well may have a DRAWS hat that was stuffed with incorrect
components but you have a number of things that are mis-configured.
#Please see my latest outputs (Previous Message) from the clean fresh install if something is mis-configured
I do not understand where I am going wrong 

Thanks Basil,

I appreciate your Indulgence
I hope my perseverance can match it
Paul


Paul Noa
 

Basil,
I edited axport file here is the current output from Showudrc

 showudrc.sh
==== Sound Card ====
udrc card number line: card 0: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 [bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #0
==== ALSA Controls for Radio Tansmit ====
LO Driver Gain  L:[0.00dB]      R:[-6.00dB]
PCM             L:[-3.00dB]     R:[-25.00dB]
DAC Playback PT L:[P3]  R:[P3]
LO Playback CM  [Full Chip]
==== ALSA Controls for Radio Receive ====
ADC Level       L:[-6.00dB]     R:[0.00dB]
IN1             L:[10 kOhm]     R:[Off]
IN2             L:[Off]         R:[10 kOhm]
==== Pi Ver ====
 Pi 3 Model B+, Rev 1.3, 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: 0x0206
UUID:        709b5761-81d1-452a-9709-8e1626c29c26
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2020 01 23 09:25:01 PST: SD image version: nwdr15
----- /proc/version
Linux version 4.19.97-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1294 SMP Thu Jan 30 13:15:58 GMT 2020
 
----- /etc/*version: 10.3
 
----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
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 10 (buster)
Release:        10
Codename:       buster
 
---- systemd
   Static hostname: asawizard
         Icon name: computer
        Machine ID: 27ac1f0c20904cb7a960920e966db545
           Boot ID: 8a4bb8c1524f445381df95e98fa862d8
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.97-v7+
      Architecture: arm
 
---- modules
snd_soc_tlv320aic32x4_i2c    16384  27
snd_soc_tlv320aic32x4    40960  1 snd_soc_tlv320aic32x4_i2c
snd_soc_core          192512  4 snd_soc_simple_card_utils,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_simple_card
snd_pcm               102400  6 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_core
snd                    73728  11 snd_compress,snd_timer,snd_soc_tlv320aic32x4,snd_soc_core,snd_pcm
 
---- kernel
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20200212-1 armhf        Raspberry Pi bootloader
 
---- Codec drivers
Found: snd-soc-tlv320aic32x4-i2c.ko, OK
Found: snd-soc-tlv320aic32x4.ko, OK
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay
 
---- syslog
 
---- dmesg
 
 
----- Dire Wolf DEVELOPMENT version 1.6 D (Jan  6 2020)
 
==== Filesystem ====
/dev/root        29G  5.3G   23G  19% /
 
==== boot config ====
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
 
[all]
#dtoverlay=vc4-fkms-v3d
 
# Flush all overlays, ie. deprecated overlays loaded from eeprom
dtoverlay=
# enable udrc/draws if no eeprom
dtoverlay=draws,alsaname=udrc
force_turbo=1
# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.20 (revision 3.20)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-03-27 18:44:14 EDT; 16h ago
  Process: 514 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 521 (gpsd)
    Tasks: 3 (limit: 2200)
   Memory: 1.4M
   CGroup: /system.slice/gpsd.service
           └─521 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Mar 27 18:44:14 asawizard systemd[1]: Starting GPS (Global Positioning System) Daemon...
Mar 27 18:44:14 asawizard systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    241, 0 Mar 27 18:44 /dev/pps0
crw------- 1 root root    241, 1 Mar 27 18:44 /dev/pps1
crw-rw---- 1 root dialout 239, 0 Mar 27 18:44 /dev/ttySC0
crw-rw---- 1 root dialout 239, 1 Mar 27 18:44 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
#- GPS                           0   3   377     6    -73ms[  -73ms] +/-  104ms
#* PPS                           0   3   377     6    -36ns[ -245ns] +/-  501ns
^- ntp.jtsage.com                2   6    17    39    -11ms[  -11ms] +/-  103ms
^- jikan.ae7.st                  2   6    17    39  -4532us[-4534us] +/-   83ms
^- y.ns.gin.ntt.net              2   6    17    40  -3766us[-3768us] +/-   65ms
^- t2.time.bf1.yahoo.com         3   6    17    39  -6671us[-6673us] +/-   74ms
-- chrony tracking
Reference ID    : 50505300 (PPS)
Stratum         : 1
Ref time (UTC)  : Sat Mar 28 15:06:24 2020
System time     : 0.000000212 seconds slow of NTP time
Last offset     : -0.000000256 seconds
RMS offset      : 0.018753026 seconds
Frequency       : 1.507 ppm fast
Residual freq   : -0.003 ppm
Skew            : 0.135 ppm
Root delay      : 0.000000001 seconds
Root dispersion : 0.000009062 seconds
Update interval : 8.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                        12   9    88   +176.256    183.237    -76ms  4014us
PPS                         6   3    41     -0.003      0.124     -8ns   485ns
ntp.jtsage.com              4   3     6   +156.375  24667.115  -5644us  4045us
jikan.ae7.st                4   3     6  -1681.325  13177.292    -73ms  1435us
y.ns.gin.ntt.net            4   4     6   +109.014   7221.111   +176us   995us
t2.time.bf1.yahoo.com       4   3     6   -517.597  15332.971    -27ms  1864us
 
---- sensors
-rw-r--r-- 1 root root 171 Sep 19  2019 /etc/sensors.d/draws
rpi_volt-isa-0000
Adapter: ISA adapter
in0:              N/A
 
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
+12V:         +0.00 V
in5:          +2.47 V
User ADC 1:   +0.00 V
User ADC 2:   +0.00 V
 
 
---- throttle
temp=41.3'C
throttled=0x0
 
---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 1 time(s)

I am still looking for a clarification on the pin outs,  when I ring out the Cable, Male Plug, Looking into the connector (at the Pins) flat portion on top:
pin 1 is bottom left,  TX   
pin 2 bottom right    GND
pin 3 middle left       PTT
pin 4 middle right     LN1
pin 5 top left             LN2
pin 6 top right           SQL

What I have learned scoping the outputs is PTT is low going high on pin 3;

On the IC F-521, when I pull the respective pin on the accessory connector low I xmit!  I will search for the specs on the interface again to verify.

Is there a way in software to invert this ?

I do see the AFSK out haven't got to adjust yet trying to resolve XMIT issue

Paul

Basil Gunn
 

# From your console output I do not see the mis-configuration I saw
before. To confirm you could also provide console output from
~/n7nix/debug/ax25-showcfg.sh -d

# From the direwolf User-Guide.pdf doc to invert the gpio output pin
sense: https://raw.githubusercontent.com/wb2osz/direwolf/master/doc/User-Guide.pdf

9.2.8.2 PTT with General Purpose I/O (GPIO)
On Linux you can use General Purpose I/O (GPIO) pins if available. This is mostly applicable to a
microprocessor board, such as a Raspberry Pi or BeagleBone, not a general purpose PC. Precede the pin
number with “-“ to invert the signal.
PTT GPIO [-]pin-number

# In directory ~/n7nix/bin there is a script to test just the PTT gpio
pins used by UDRC/DRAWS hat.

./ptt_ctrl.sh -h
Usage: ptt_ctrl.sh [-l][-r][-on][-off][-c][-h]
-l | --left Select left connector gpio
-r | --right Select right connector gpio
-on | on Turn selected gpio ON
-off | off Turn selected gpio OFF
-t | --toggle Toggle PTT state
-c | --check Check gpio state ie. read gpio
-d | --debug Turn debug on
-h display this message

# With just a quick look at the the IC-F21 Service manual I don't
believe it provides discriminator output so nothing will be connected
to mDin6 connector pin 4 and you should configure ALSA to not route on
IN1. You are currently doing this:

IN1 L:[10 kOhm]     R:[Off]
IN2 L:[Off]         R:[10 kOhm]


# The mDin6 data connector is somewhat of a standard used by Japanese
ham equipment manufacturers.
http://wa8lmf.net/miscinfo/MiniDIN6-Packet.pdf
For pin numbers look at a Kenwood TM-v71a manual page 83.

I am still looking for a clarification on the pin outs, when I ring out the Cable, Male Plug, Looking into the connector (at the Pins) flat portion on top:
pin 1 is bottom left, TX
pin 2 bottom right GND
pin 3 middle left PTT
pin 4 middle right LN1
pin 5 top left LN2
pin 6 top right SQL

What I have learned scoping the outputs is PTT is low going high on pin 3;

On the IC F-521, when I pull the respective pin on the accessory connector low I xmit! I will search for the specs on the interface again to verify.

Is there a way in software to invert this ?

I do see the AFSK out haven't got to adjust yet trying to resolve XMIT issue

Paul

Paul Noa
 

~/n7nix/debug $ ./ax25-showcfg.sh -d
Debug mode on
 
 === Display kissparms & ax25dev-parms
Debug: portname=udr0, portcfg=port0
AX.25: udr0 speed: 1200
parse baud_1200 section for udr0
port: 0, speed: 1200, slottime: 200, txdelay: 500, t1 timeout: 3000, t2 timeout: 1000
Debug: portname=udr1, portcfg=port1
AX.25: udr1 speed: 1200
parse baud_1200 section for udr1
port: 1, speed: 1200, slottime: 200, txdelay: 500, t1 timeout: 3000, t2 timeout: 1000
 == kissparms from /etc/ax25/ax25-upd
        $KISSPARMS -p ${PORTNAME_1} -f no -l 100 -r 32 -s $SLOTTIME -t $TXDELAY
            $KISSPARMS -p ${PORTNAME_1} -f no -l 100 -r 32 -s $SLOTTIME -t $TXDELAY
            $KISSPARMS -p ${PORTNAME_1} -f no -l 100 -r 32 -s $SLOTTIME -t $TXDELAY
            $KISSPARMS -p ${PORTNAME_2} -f no -l 100 -r 32 -s $SLOTTIME -t $TXDELAY
        $KISSPARMS -p ${PORTNAME_1} -f no -l 100 -r 32 -s $SLOTTIME -t $TXDELAY
 
 ===== ax.25 config
Found directory: /proc/sys/net/ax25/ax0
ax25_default_mode: 0
backoff_type: 0
connect_mode: 2
dama_slave_timeout: 180000
extended_window_size: 32
idle_timeout: 900000
ip_default_mode: 0
maximum_packet_length: 255
maximum_retry_count: 6
protocol: 0
standard_window_size: 2
t1_timeout: 3000
t2_timeout: 1000
t3_timeout: 300000
 
Found directory: /proc/sys/net/ax25/ax1
ax25_default_mode: 0
backoff_type: 0
connect_mode: 2
dama_slave_timeout: 180000
extended_window_size: 32
idle_timeout: 900000
ip_default_mode: 0
maximum_packet_length: 255
maximum_retry_count: 6
protocol: 0
standard_window_size: 2
t1_timeout: 3000
t2_timeout: 1000
t3_timeout: 300000
 
 
 ===== ALSA Controls for Radio Transmit =====
LO Driver Gain  L:[-6.00dB]     R:[-6.00dB]
PCM             L:[-6.00dB]     R:[-25.00dB]
DAC Playback PT L:[P3]          R:[P3]
LO Playback CM  [Full Chip]
 
 ===== ALSA Controls for Radio Receive =====
ADC Level       L:[-6.00dB]     R:[2.00dB]
IN1             L:[10 kOhm]     R:[Off]
IN2             L:[Off]         R:[10 kOhm]
CM              L:[10 kOhm]     R:[10 kOhm]
 
===== Port baudrate
DireWolf: udr0 speed: 1200, udr1 speed: 1200
AX.25:    udr0 speed: 1200, udr1 speed: 1200
 
===== axports
udr0        KO4BCZ-10            9600    255     2       Winlink port
udr1        KO4BCZ-1             9600    255     2       Direwolf port
 
 ===== ax25d.conf
[KO4BCZ-10 VIA udr0]
NOCALL   * * * * * *  L
default  * * * * * *  - rmsgw /usr/local/bin/rmsgw rmsgw -P %d %U
#
[KO4BCZ VIA udr0]
NOCALL   * * * * * *  L
default  * * * * * *  - pi /usr/local/bin/wl2kax25d wl2kax25d -c %U -a %d
 
 ===== wl2k.conf
paclink-unix not configured.

Basil Gunn
 

A brief look at the ICOM F521 manual indicates that it does NOT have
discriminator output so do NOT route IN1 ALSA control ie. your left
channel is currently configured to use discriminator out & it shouldn't be.
This assumes that you have a properly wired cable with discriminator out
on pin 4 & AFOUT on pin 5 referencing the mDin6 cable.

Paul Noa <pauljnoa@...> writes:

~/n7nix/debug $ ./ax25-showcfg.sh -d
Debug mode on
===== ALSA Controls for Radio Transmit =====
LO Driver Gain L:[-6.00dB] R:[-6.00dB]
PCM L:[-6.00dB] R:[-25.00dB]
DAC Playback PT L:[P3] R:[P3]
LO Playback CM [Full Chip]

===== ALSA Controls for Radio Receive =====
ADC Level L:[-6.00dB] R:[2.00dB]
IN1 L:[10 kOhm] R:[Off]
IN2 L:[Off] R:[10 kOhm]
CM L:[10 kOhm] R:[10 kOhm]

Paul Noa
 

Thanks Basil,

I know I have not  changed to LN2 yet,  as I am troubleshooting NO XMIT.

I am using your handy script: ptt_ctrl, thank you. I see the  respective LEDs for L or R PTT come on and go off when I toggle them,

I see the respective GPIO pins ie io12 & io23 go high when I toggle them.

However I do not get an output on either MiniDin6 connector at anytime with the exception of SQL which is high all the time.

I suspect I might have killed Q1 when I was mis-wired but I have never touched the right connector before today (and only with a scope probe) and therefore would expect Q2 to still be good.

What say you?

Paul

Basil Gunn
 

However I do not get an output on either MiniDin6 connector at anytime
with the exception of SQL which is high all the time.
Make sure you are measuring the correct pin.
Also disconnect the cable from your radio in case it's loading that
signal.

http://www.wa8lmf.net/6-Pin-MiniDin-Data-Connector/index.htm

Paul Noa
 

Basil,
really! I checked every pin on both connectors while toggling the PTT

Basil Gunn
 

really! I checked every pin on both connectors while toggling the PTT
I'm out of ideas. Please talk to Bryan.

Paul Noa
 

Basil,

I am still waiting to here from back from Bryan, but in the mean time I checked my three units and they all have the wrong value components stuffed.

That is 6 each 100K ohm resistors and 2 each capacitors.  Does explain some of my problems?

Paul

Paul Noa
 

Hi Basil,

Me again!  I have had seemingly gotten most everything straighten out. Bryan helped.

Attached is a text of my current situation.  What I know is:
1.) My GPS receiver is not picking up because it is too far from the window not an issue now.
2.) I have not yet set up transmit levels and suspect that is my next challenge
3.) Having no prior experience I am not sure about some of the results could you look at my file of outputs and give me your insights please?

I will be checking the transmit side in the meantime.
Thanks for your support in advance!
Paul KO4BCZ

Basil Gunn
 

2.) I have not yet set up transmit levels and suspect that is my next
challenge
Use measure_deviate.sh script
https://github.com/nwdigitalradio/n7nix/tree/master/deviation

Search groups.io messages for 'deviation'
https://nw-digital-radio.groups.io/g/udrc/search?q=deviation