RMS Gateway Question.


Mike Lussier - AE4ML
 

Good morning all, 
I purchased the DRAWS and a Raspberry Pi 3B+ for a VHF 1200bd RMS Gateway project.
I have a problem that I can't seem to solve but that I can replicate. 
I have had several users over the past week complain that when they send a message the message remains in thier outbox. 
A closer watch when the messages were sent shows a disconnect from the gateway before the message was completed. 
This was seen with standard messages as well as with attachments. Attachments was the first complaint.
Some folks were going through a local digipeater on a mountain top and others were direct with the same issues. Some messages without attachments work just fine. 


Basil Gunn
 

Your symptoms are probably due to improper ALSA settings for the radio
you are using.

1. What radio are you using?
In your radio manual look up transmit data input sensitivity.
ie. for my Kenwood TM-V71a:
1200 bps: Transmit data input (PKD) sensitivity is 40 mV p-p , input impedance is 10 kΩ.
9600 bps: Transmit data input (PKD) sensitivity is 2 V p-p , input impedance is 10 kΩ.

2. Have you selected discriminator output (9600 baud) or precomp/decomp (1200
baud) on your radio? This affects what ALSA settings to use.

3. What are your current ALSA settings?
Run alsa-show.sh in a console.

4. Also post the console output of: buginfo.sh

5. Look at a packet spy output.
Open a console
Become root: sudo su
Start the packet spy: listen -a

6. Are you using the left or right mDin6 connector on the DRAWS hat?

I purchased the DRAWS and a Raspberry Pi 3B+ for a VHF 1200bd RMS Gateway project.
I have a problem that I can't seem to solve but that I can replicate.


Mike Lussier - AE4ML
 



1. What radio are you using?  

Kenwood TM-G707

Looks like the same data you are shown below.

In your radio manual look up transmit data input sensitivity.
ie. for my Kenwood TM-V71a:
1200 bps: Transmit data input (PKD) sensitivity is 40 mV p-p , input impedance is 10 kΩ.
9600 bps: Transmit data input (PKD) sensitivity is 2 V p-p , input impedance is 10 kΩ.

===============================================================================
2. Have you selected discriminator output (9600 baud) or precomp/decomp (1200
baud) on your radio? This affects what ALSA settings to use.

Radio is set to 1200, 

===============================================
3. What are your current ALSA settings?
Run alsa-show.sh in a console.

pi@UDRC-RMSGATEWAY:~/bin $ ./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:[4.00dB] R:[0.00dB]
PCM        L:[0.00dB] R:[0.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:[-2.00dB] R:[-2.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[10 kOhm] R:[Off]
CM L:[10 kOhm] R:[10 kOhm]

4. Also post the console output of: buginfo.sh

pi@UDRC-RMSGATEWAY:~/bin $ ./buginfo.sh
=== Versions ===
== Kernel:
Linux UDRC-RMSGATEWAY 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020 armv7l GNU/Linux

== Firmware:
Nov 30 2020 22:13:46
Copyright (c) 2012 Broadcom
version ab1181cc0cb6df52bfae3b1d3fef0ce7c325166c (clean) (release) (start)

== Pi hardware:
 Pi 3 Model B, Rev 1.2, Mfg by Stadium with WiFi
temp=58.0'C

== DRAWS hardware:
Product id: 0x0004, ver: 0x0108, Assembly rev: 1, fab rev: 8

=== Checks ===
== Codec driver check:
[    8.697172] asoc-simple-card soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok

== DRAWS driver check:
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

== Boot 'fail' check:
[    8.158925] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2
[   16.634162] Bluetooth: hci0: Frame reassembly failed (-84)
[   16.634190] Bluetooth: hci0: Frame reassembly failed (-84)

== GPS check:
Serial devices OK
gpsd OK

== /boot/config file
disable_overscan=1
[pi4]
dtoverlay=vc4-fkms-v3d
[all]
dtoverlay=
dtoverlay=draws,alsaname=udrc
force_turbo=1
dtparam=audio=on
=====================================
5. Look at a packet spy output.
Open a console
Become root: sudo su
Start the packet spy: listen -a




6. Are you using the left or right mDin6 connector on the DRAWS hat?  

Left
--

Michael Lussier


Basil Gunn
 

Looks like the Kenwood TM-G707 is similar to the TM-V71a.

Please run this script:

setalsa-tmv71a.sh

Also please confirm that precomp/decomp is being used by running this
command:

grep "receive_out=" /etc/ax25/port.conf

Then post the result of alsa-show.sh to confirm the alsa settings



Mike Lussier <mike.lussier@gmail.com> writes:

1. What radio are you using?

Kenwood TM-G707


Mike Lussier - AE4ML
 

Basil, 

I have run the setalsa-tmv71a.sh and here is the output of the grep

pi@UDRC-RMSGATEWAY:~/bin $ grep "receive_out=" /etc/ax25/port.conf
receive_out=audio
receive_out=audio

--

Michael Lussier


Basil Gunn
 

Everything looks good.
Now open a new console as root and run the packet spy.

listen -a

Mike Lussier <mike.lussier@gmail.com> writes:

Basil,

I have run the setalsa-tmv71a.sh and here is the output of the grep

pi@UDRC-RMSGATEWAY:~/bin $ grep "receive_out=" /etc/ax25/port.conf
receive_out=audio
receive_out=audio