Received a NAK to the SET_CONFIG

General support for the Pi-Star System
Post Reply
K9EQ
Posts: 23
Joined: Wed Jan 09, 2019 4:07 am

Received a NAK to the SET_CONFIG

Post by K9EQ »

Using Pi-star, I've been getting a "Received a NAK to the SET_CONFIG command from modem" error whilst trying to run Pi-star with different input and output frequencies. Here's what I have learned:
1. The problem occurs in the YSF mode. Don't know about other modes. I have Self=0 and RemoteGateway=1. (These settings don't impact the problem.)
2. There are several places to set frequencies, but the only one that works reliably is Expert->MMDVM Host. Setting modem frequencies anywhere else causes problems.
3. The recovery process requires the following steps:
3.1 In MMDVMHost set the Tx and Rx frequencies the same.
3.2. Switch to a different YSF Room. (After this point the NAK goes away.)
3.3 In MMDVMHost reset the Tx and Rx frequencies. I.e., 444025000 and 449025000. (Still working at this point, no NAK)
3.4. Switch back to the desired YSF reflector.
4. The problem does not appear again until I make a small change. For example, changing the name from "pi-star" to "pi-star3" will cause the problem to occur again.
5. Reboots (software or power) have no impact on the problem. I.e., they don't fix anything.
6. Backing up the configuration files and restoring them causes the problem to occur.

Modem is MMDVM. The problem occurs with several modem boards. Occurs on several different RPi's with different (fresh) SD cards. (HS_Hat:v1.4.17)

Unfortunately I can't convince the system to produce error messages that are more instructive than:
M: 2019-09-18 20:15:10.281 Opening the MMDVM
I: 2019-09-18 20:15:12.292 MMDVM protocol version: 1, description: MMDVM_HS_Hat-v1.4.17 20190529 14.7456MHz ADF7021 FW by CA6JAU GitID #cc451c4
E: 2019-09-18 20:15:12.313 Received a NAK to the SET_CONFIG command from the modem

For those who care, the reset of the log is below.

73,
Chris, K9EQ

I: 2019-09-18 20:15:10.279 This software is for use on amateur radio networks only,
I: 2019-09-18 20:15:10.279 it is to be used for educational purposes only. Its use on
I: 2019-09-18 20:15:10.279 commercial networks is strictly prohibited.
I: 2019-09-18 20:15:10.279 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others
M: 2019-09-18 20:15:10.279 MMDVMHost-20181107_Pi-Star is starting
M: 2019-09-18 20:15:10.279 Built 09:24:10 Nov 12 2018 (GitID #9444eca)
I: 2019-09-18 20:15:10.279 General Parameters
I: 2019-09-18 20:15:10.279 Callsign: K9EQ
I: 2019-09-18 20:15:10.279 Id: 3127144
I: 2019-09-18 20:15:10.279 Duplex: yes
I: 2019-09-18 20:15:10.279 Timeout: 240s
I: 2019-09-18 20:15:10.279 D-Star: disabled
I: 2019-09-18 20:15:10.279 DMR: disabled
I: 2019-09-18 20:15:10.279 YSF: enabled
I: 2019-09-18 20:15:10.280 P25: disabled
I: 2019-09-18 20:15:10.280 NXDN: disabled
I: 2019-09-18 20:15:10.280 POCSAG: disabled
I: 2019-09-18 20:15:10.280 Modem Parameters
I: 2019-09-18 20:15:10.280 Port: /dev/ttyAMA0
I: 2019-09-18 20:15:10.280 Protocol: uart
I: 2019-09-18 20:15:10.280 RX Invert: no
I: 2019-09-18 20:15:10.280 TX Invert: yes
I: 2019-09-18 20:15:10.280 PTT Invert: no
I: 2019-09-18 20:15:10.280 TX Delay: 100ms
I: 2019-09-18 20:15:10.280 RX Offset: 0Hz
I: 2019-09-18 20:15:10.280 TX Offset: 0Hz
I: 2019-09-18 20:15:10.280 RX DC Offset: 0
I: 2019-09-18 20:15:10.280 TX DC Offset: 0
I: 2019-09-18 20:15:10.280 RF Level: 100.0%
I: 2019-09-18 20:15:10.281 DMR Delay: 0 (0.0ms)
I: 2019-09-18 20:15:10.281 RX Level: 50.0%
I: 2019-09-18 20:15:10.281 CW Id TX Level: 50.0%
I: 2019-09-18 20:15:10.281 D-Star TX Level: 50.0%
I: 2019-09-18 20:15:10.281 DMR TX Level: 50.0%
I: 2019-09-18 20:15:10.281 YSF TX Level: 50.0%
I: 2019-09-18 20:15:10.281 P25 TX Level: 50.0%
I: 2019-09-18 20:15:10.281 NXDN TX Level: 50.0%
I: 2019-09-18 20:15:10.281 POCSAG TX Level: 50.0%
I: 2019-09-18 20:15:10.281 RX Frequency: 444025000Hz (444025000Hz)
I: 2019-09-18 20:15:10.281 TX Frequency: 449025000Hz (449025000Hz)
M: 2019-09-18 20:15:10.281 Opening the MMDVM
I: 2019-09-18 20:15:12.292 MMDVM protocol version: 1, description: MMDVM_HS_Hat-v1.4.17 20190529 14.7456MHz ADF7021 FW by CA6JAU GitID #cc451c4
E: 2019-09-18 20:15:12.313 Received a NAK to the SET_CONFIG command from the modem
K9EQ
Posts: 23
Joined: Wed Jan 09, 2019 4:07 am

Re: Received a NAK to the SET_CONFIG [SOLVED]

Post by K9EQ »

Well, I found the answer to my problem.

There is a bug in the Pi-star software that changed DUPLEX from 0 to 1 in /etc/mmdvmhost whenever there is a difference between the Rx and Tx frequency. I suppose someone was thinking that only a person with a duplex board would do this. WRONG!!! Don't need a duplex board when bridging to a WiRES-X REPEATER!

I suspect this change was introduced in the last 4-6 months so I'll have to go and see if I can back it out and prevent the (yet to be determined) file from getting "upgraded".

73,
Chris, K9EQ
Post Reply