LinBBS config issue #ax25 #bbs


mlbayx@...
 

Just wanted to give an update.  Basil you are the man!  The script you created for me worked great.  I have since left linBBS to use linBPQ.  It was for me considerably easier to configure.  I have a 2m BBS running with DRAWS driving everything on two radios.  I use an FTM-300 on my desk to do my own packet/FM/digital stuff and swapped out the TM-733 with an alinco DR-135T mkiii both of which are being managed/TNC'd by DRAWS using the script Basil created (mentioned above).  The DR-135T is the BBS radio.  I love DRAWS and the only complaint I have is when I finally get an HF radio I will have to buy another one.  Thank you to the NWDR team you guys make a great product and to Basil for all the time you have put into the DRAWS image.

73,
Michael KJ7OOB


Basil Gunn
 

Michael,

I've added a script (setalsa-fmt3000_tm733.sh) to the local bin
directory that sets ALSA controls for both Yaesu FMT-3000 (left
connector) and a Kenwood TM-733 (right connector).

I do not own either of these radios so the settings are preliminary.

To get the new script:

cd
cd n7nix/config
./bin_refresh

Compared to the settings supplied by Michael KJ7OOB this script routes receive input
from the AUDIO radio connection, NOT DESCRIMINATOR.

From the script (feel free to edit to your liking):

# Default settings for 1200 baud for both channels

PCM_LEFT="-16.50"
PCM_RIGHT="-25.00"

LO_DRIVER_LEFT="-2.0"
LO_DRIVER_RIGHT="-4.00"

ADC_LEVEL_LEFT="-11.50"
ADC_LEVEL_RIGHT="0.0"

IN1_L='Off'
IN1_R='Off'

IN2_L="10 kOhm"
IN2_R="10 kOhm"

PTM_PL="P3"
PTM_PR="P3"

All of the other ALSA settings for the TI tlv320aic codec are set to
nominal values. I'm certain that after using this script you will need
to verify deviation on both radios. A guide to set deviation can be
found on the following link.

https://github.com/nwdigitalradio/n7nix/tree/master/deviation

To change receive routing from 'audio' to 'discriminator' edit file
/etc/ax25/port.conf:

# from

receive_out=audio

# to

receive_out=disc

# port0 is left mDin6 connector.

and run setalsa-fmt3000_tm733.sh script.

Run 'alsa-show.sh' to verify ALSA control settings.
Hope this helps.

/Basil n7nix

mlbayx@outlook.com writes:

Thank you very much for your help. Here is the output you requested;

pi@shack1:~ $ alsa-show.sh
==== List All sound card device names (2)
card 0: Headphones [bcm2835 Headphones]
card 1: udrc [udrc]


mlbayx@...
 

Basil,

Thank you very much for your help. Here is the output you requested;

pi@shack1:~ $ alsa-show.sh 
 ==== List All sound card device names (2)
card 0: Headphones [bcm2835 Headphones]
card 1: udrc [udrc]
 
 ======= DRAWS
 ===== ALSA Controls for Radio Transmit =====
LO Driver Gain  L:[-2.00dB] R:[-4.00dB]
PCM         L:[-16.50dB] R:[-25.00dB]
DAC Playback PT L:[P3] R:[P3]
LO Playback CM [Full Chip]
Output Mixer    L:[on] R:[off]
 
 ===== ALSA Controls for Radio Receive =====
ADC Level L:[-11.50dB] R:[0.00dB]
IN1 L:[10 kOhm] R:[Off]
IN2 L:[Off] R:[Off]
CM L:[10 kOhm] R:[10 kOhm]
 
pi@shack1:~ $ alsamixer
pi@shack1:~ $ alsa-show.sh 
 ==== List All sound card device names (2)
card 0: Headphones [bcm2835 Headphones]
card 1: udrc [udrc]
 
 ======= DRAWS
 ===== ALSA Controls for Radio Transmit =====
LO Driver Gain  L:[-2.00dB] R:[-4.00dB]
PCM         L:[-16.50dB] R:[-25.00dB]
DAC Playback PT L:[P3] R:[P3]
LO Playback CM [Full Chip]
Output Mixer    L:[on] R:[off]
 
 ===== ALSA Controls for Radio Receive =====
ADC Level L:[-11.50dB] R:[0.00dB]
IN1 L:[10 kOhm] R:[10 kOhm]
IN2 L:[Off] R:[Off]
CM L:[10 kOhm] R:[10 kOhm]
 
pi@shack1:~ $ 


Please let me know if you need anything further for the script.

73,
Michael KJ7OOB


Basil Gunn
 

Michael,

Thanks for the console output especially showudrc.sh. From that I see
there is no routing for the right hand connector receive signal.

IN1 L:[10 kOhm] R:[Off]
IN2 L:[Off] R:[Off]
You can fix this by running alsamixer, using F6 to select the udrc sound
card, then scrolling right to find 'IN1_R to Right Mixer Positive
Resistor [Off]'. Up arrow to select '10 kOhm', and ESC to exit.

Use script alsa-show.sh both before & after running alsamixer to confirm
that you set the correct control. Your IN1/IN2 routing left & right
connectors should look like the following:

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

If you send me the console output of alsa-show.sh I will write a script
that will set the correct alsa control values for your 2 radios.

Yaesu FMT-300 left connector, Kenwwod TM-733 right connector.

Since I do not have these 2 radios I assume you have alsa controls 'LO
Driver Gain' and 'PCM' set for reasonable FM deviation and I will use
the output of alsa-show.sh to set up those controls and proper receive
routing for 1200 baud in the new script.

Thanks for the kind words.
/Basil n7nix


mlbayx@outlook.com writes:

First thank you to the NWDR Team and I love this product. It worked as advertised.
The documentation is very helpful and well put together.

I have setup LinBBS (FBB) that was installed by the script in /home/pi/n7nix/bbs/bbs_install.sh
and I believe I have it configured correctly as it transmits a beacon and has no errors. Although it will not respond
to connection attempts over the radio using both ports on the DRAWS hat. Let me summarize my setup


mlbayx@...
 

Greetings,
 
First thank you to the NWDR Team and I love this product.  It worked as advertised.
The documentation is very helpful and well put together.
 
 
I have setup LinBBS (FBB) that was installed by the script in /home/pi/n7nix/bbs/bbs_install.sh
and I believe I have it configured correctly as it transmits a beacon and has no errors.  Although it will not respond
to connection attempts over the radio using both ports on the DRAWS hat. Let me summarize my setup
 
Left port connected by supplied minidin cable to Yaesu FTM-300. monitoring/user station
 
Right port connected by supplied miniden cable to Kenwood TM-733. BBS station
 
Both radios have been configured to use 1200 baud and both radios transmit encode/decode through
the ports via ax25/direwolf configuration from DRAWS.  I have connected to external BBS stations and 
processed email over winlink with them.
 
Even reversed the ports (right with left) and both still transmit fine.
 
LinBBS is configured to run off port ax1 connected to the TM-733 and it transmits a beacon which I can 
monitor on FTM-300 (on ax0) which I know is being encoded/decoded correct as I see the output in linpac and dump
to terminal output using listen -at.
 
I think I have something screwed up in port.sys file of LinBBS but for life of me I can't seem to sort 
it out.  Is there any reason in DRAWS that I wouldn't be able to run a BBS on ax1 and connect to it from
ax0 over FM?
 
 
 
My relevant terminal output;
 
bbs_verchk.sh output;
 
pi@shack1:~/n7nix/bbs $ ./bbs_verchk.sh 
fbb: current version: 7.0.10, source: 7.0.10, installed: 7.0.10
pi@shack1:~/n7nix/bbs $ 
 
 
PORT.SYS file;
 
pi@shack1:/usr/local/etc/ax25/fbb $ cat port.sys
# FBB7.0.10
#
#Ports TNCs
 1     1
#
#Com Interface Adress (Hex) Baud
 1   9         ****         1200
#
#TNC NbCh Com MultCh Pacln Maxfr NbFwd MxBloc M/P-Fwd Mode  Freq
# 0   0    0   0      0     0     0     0      00/01   ----  File-fwd.
# 1   1    1   ax0    250   2     1     10     00/15   XUWYL ax0
 1   8    1   udr1    250   7     1     10     00/15   XUWYL ax1
#
# Special callsigns and modes for some channels
# TNC Nbs Callsign-SSID Mode
 1    2   KJ7OOB-1       B
#
#
# End of file.
#
 
AX25-STATUS;
 
pi@shack1:/usr/local/etc/ax25/fbb $ ax25-status
Status for direwolf.service: RUNNING and ENABLED
Status for ax25dev.service: RUNNING and ENABLED
Status for ax25dev.path: RUNNING and ENABLED
Status for ax25-mheardd.service: RUNNING and ENABLED
Status for ax25d.service: RUNNING and ENABLED
AX.25 device: ax0 successfully configured with ip: 192.168.255.2
AX.25 device: ax1 successfully configured with ip: 192.168.255.3
Direwolf is running with pid of 562
port: 0, speed: 1200, slottime: 200, txdelay: 500, t1 timeout: 6000, t2 timeout: 4000
port: 1, speed: 1200, slottime: 200, txdelay: 500, t1 timeout: 6000, t2 timeout: 4000
Device: ax0 exists, Device: ax1 exists
pi@shack1:/usr/local/etc/ax25/fbb $ 
 
SHOWUDRC output;
 
pi@shack1:~/n7nix/bbs $ showudrc.sh
==== Sound Card ====
udrc card number line: card 1: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 [bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #1
==== ALSA Controls for Radio Transmit ====
LO Driver Gain  L:[-2.00dB] R:[-4.00dB]
PCM         L:[-16.50dB] R:[-25.00dB]
DAC Playback PT L:[P3] R:[P3]
LO Playback CM [Full Chip]
==== ALSA Controls for Radio Receive ====
ADC Level L:[-11.50dB] R:[0.00dB]
IN1 L:[10 kOhm] R:[Off]
IN2 L:[Off] R:[Off]
 
==== Pi Ver ====
 Pi 4 Model B, Rev 1.2, 2GB mem, Mfg by Sony UK with WiFi
Hardware : BCM2711
Revision : b03112
Serial : 100000008d2b94b8
Model : Raspberry Pi 4 Model B Rev 1.2
 
==== Pi Firmware VideoCore Ver ====
Nov 30 2020 22:12:08 
Copyright (c) 2012 Broadcom
version ab1181cc0cb6df52bfae3b1d3fef0ce7c325166c (clean) (release) (start)
 
==== Pi Firmware EEPROM Ver ====
Sep  3 2020 13:11:43
version c305221a6d7e532693cc7ff57fddfc8649def167 (release)
timestamp 1599135103
update-time 0
capabilities 0x00000000
 
==== Pi Firmware EEPROM Config ====
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=0
 
==== udrc Ver ====
Found a DRAWS
 
     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0108
UUID:        f5847023-512a-47eb-8eb2-31c46055085f
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2021 02 16 13:42:49 PST: SD image version: nwdr19
----- /proc/version
Linux version 5.4.79-v7l+ (dom@buildbot) (gcc version 8.4.0 (Ubuntu/Linaro 8.4.0-3ubuntu1)) #1373 SMP Mon Nov 23 13:27:40 GMT 2020
 
----- /etc/*version: 10.9
 
----- /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: shack1
         Icon name: computer
        Machine ID: 27ac1f0c20904cb7a960920e966db545
           Boot ID: 755be8d4e7fd407b800cae993b01d5a8
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 5.4.79-v7l+
      Architecture: arm
        sd card id: 2750485344333247600153ea29014b00
 
---- sound modules
snd_soc_tlv320aic32x4_i2c    16384  27
snd_soc_tlv320aic32x4    40960  1 snd_soc_tlv320aic32x4_i2c
regmap_i2c             16384  3 ti_ads1015,sc16is7xx,snd_soc_tlv320aic32x4_i2c
snd_soc_core          200704  5 vc4,snd_soc_simple_card_utils,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_simple_card
snd_pcm                94208  8 vc4,snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_bcm2835,snd_soc_core
snd                    73728  12 snd_compress,snd_timer,snd_soc_tlv320aic32x4,snd_bcm2835,snd_soc_core,snd_pcm
 
---- kernel
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
hi  raspberrypi-kernel 1.20201201-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.7 A (Feb 15 2021)
 
==== Filesystem ====
/dev/root        29G  6.3G   21G  24% /
 
==== boot config ====
disable_overscan=1
[pi4]
dtoverlay=vc4-fkms-v3d
[all]
dtoverlay=
dtoverlay=draws,alsaname=udrc
force_turbo=1
dtparam=audio=on
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.22 (revision 3.22)
\u25cf gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2021-05-02 22:23:48 MDT; 22h ago
  Process: 598 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 612 (gpsd)
    Tasks: 3 (limit: 3861)
   CGroup: /system.slice/gpsd.service
           \u2514\u2500612 /usr/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
May 02 22:23:48 shack1 systemd[1]: Starting GPS (Global Positioning System) Daemon...
May 02 22:23:48 shack1 systemd[1]: Started GPS (Global Positioning System) Daemon.
 
---- chrony
crw-rw---- 1 root root    240, 0 May  2 22:23 /dev/pps0
crw------- 1 root root    240, 1 May  2 22:23 /dev/pps1
crw-rw---- 1 root dialout 510, 0 May  2 22:23 /dev/ttySC0
crw-rw---- 1 root dialout 510, 1 May  2 22:23 /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   -217ms[ -217ms] +/-  102ms
#* PPS                           0   3   377     6   -486ns[-1787ns] +/-  671ns
^- delcatty.itu.ch               2  10   377   568  -2820us[-2829us] +/-  123ms
^- sv1.ggsrv.de                  2  10   377   272  -6206us[-6221us] +/-  101ms
^- nsb.lds.net.ua                3  10   377   960    -15ms[  -15ms] +/-  151ms
^- ntpool1.603.newcontinuum>     2  10    73   580  -7159us[-7166us] +/-  112ms
-- chrony tracking
Reference ID    : 50505300 (PPS)
Stratum         : 1
Ref time (UTC)  : Tue May 04 02:36:34 2021
System time     : 0.000000741 seconds slow of NTP time
Last offset     : -0.000001431 seconds
RMS offset      : 0.000001056 seconds
Frequency       : 6.113 ppm fast
Residual freq   : -0.014 ppm
Skew            : 0.090 ppm
Root delay      : 0.000000001 seconds
Root dispersion : 0.000009173 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                        19  10   144    +41.178     86.859   -222ms  4382us
PPS                         8   5    56     -0.014      0.074    -27ns   645ns
delcatty.itu.ch            41  17  398m     +0.281      0.101  +1201us  1488us
sv1.ggsrv.de               11   8  206m     +0.156      0.276  -5650us   794us
nsb.lds.net.ua             52  24  446m     +0.165      0.121    -15ms  2145us
ntpool1.603.newcontinuum>  40  17  452m     +0.349      0.036  -3225us   512us
 
---- sensors
-rw-r--r-- 1 root root 209 Aug 21  2020 /etc/sensors.d/draws
iio_hwmon-isa-0000
Adapter: ISA adapter
+12V:        +13.24 V  
 +5V:         +5.03 V  
User ADC 1:   +0.00 V  
User ADC 2:   +0.00 V  
 
cpu_thermal-virtual-0
Adapter: Virtual device
temp1:        +46.3\u00b0C  
 
rpi_volt-isa-0000
Adapter: ISA adapter
in0:              N/A  
 
 
---- throttle
temp=45.7'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)
pi@shack1:~/n7nix/bbs $
 
This probably isn't a DRAWS issue and if not I apologize for making everyone read all this.  Any help at all is very
much appreciated. That said even if I don't get this sorted out, DRAWS has been worth every penny.
 
 
Lastly I just want to say thank you to everyone NWDR.  You made an old army signal RATT rig operator fall in love with 
radio again.  I didn't think that was possible.
 
 
73,
Michael Bay KJ7OOB