DVMega Dual Band Stuck on Boot
Jul 15, 2016 11:36:28 GMT -7
Post by AA7US on Jul 15, 2016 11:36:28 GMT -7
Hello Bob,
Per our discussion last night during the D-Star Roundtable, I've been trying to track down the cause(s) of my new DVMega dual-band board being unresponsive immediately after a cold boot of my RPi 3B. As I'd stated last night, all I have to do to correct it is to VNC into the RPi then close and reopen the D-Star Repeater (DVMEGA) software. From then on everything functions perfectly. Warm reboots don't cause the problem.
I've verified the RPi has adequate voltage and it doesn't seem to matter if I'm using WiFi or Ethernet for Internet access. Since I had tweaked the D-Star Repeater and ircDDB Gateway configurations, to eliminate any of those changes as a possible cause, I also tried a freshly burned image of D-Star Cmdr 2.01 using only the Windows setup utility to get it up and running... but had the same exact problem.
Here are the D-Star Repeater log entries during the most recent boot. I've highlighted the errors in red during the initial cold boot and also the same entry location in green after restarting the D-Star Repeater software.
From the little I know about Linux (which is VERY little), it almost looks like the DVMega board wasn't yet mounted (possibly because it hadn't finished initializing?) by the time the D-Star Repeater software went looking for it. Is there a way to delay the start of D-Star Repeater to give the DVMega board a bit more time to initialize?
Please let me know if you think of anything else I should try.
73,
John
AA7US
I: 2016-07-15 17:54:24: Starting D-Star Repeater - 20151012
I: 2016-07-15 17:54:24: Using wxWidgets 2.8.12 on Linux 4.4.11-v7+ armv7l
I: 2016-07-15 17:54:24: Callsign set to "AA7US C", gateway set to "AA7US G", mode: 1, ack: 1, restriction: 0, RPT1 validation: 0, DTMF blanking: 1, Error reply: 1
I: 2016-07-15 17:54:24: Gateway set to 127.0.0.1:20010, local set to 127.0.0.1:20011, name set to ""
I: 2016-07-15 17:54:24: Timeout set to 180 secs, ack time set to 500 ms
M: 2016-07-15 17:54:24: File /root/en_US.ambe not readable
M: 2016-07-15 17:54:24: Reading /usr/local/etc/en_US.ambe
M: 2016-07-15 17:54:24: File /root/en_US.indx not readable
M: 2016-07-15 17:54:24: Reading /usr/local/etc/en_US.indx
I: 2016-07-15 17:54:24: Beacon set to 10 mins, text set to "AA7US DVMEGA", voice set to 1, language set to 9
I: 2016-07-15 17:54:24: Announcement enabled: 0, time: 0 mins, record RPT1: "", record RPT2: "", delete RPT1: "", delete RPT2: ""
I: 2016-07-15 17:54:24: Modem type set to "DVMEGA"
I: 2016-07-15 17:54:24: DVMEGA, port: /dev/ttyAMA0, variant: 3, RX invert: 0, TX invert: 0, TX delay: 150 ms, rx frequency: 145800000 Hz, tx frequency: 145800000 Hz, power: 100 %
I: 2016-07-15 17:54:24: DVMEGA Firmware version: 2.27a, hardware: DV-MEGA R2.27A
E: 2016-07-15 17:54:24: The DVMEGA is not responding to the SET_CONFIG command
E: 2016-07-15 17:54:24: Cannot open the D-Star modem
I: 2016-07-15 17:54:24: Controller set to , config: 1, PTT invert: 0, active hang time: 0 ms
I: 2016-07-15 17:54:24: Output 1 = 0, output 2 = 0, output 3 = 0, output 4 = 0
I: 2016-07-15 17:54:24: Control: enabled: 0, RPT1: , RPT2: , shutdown: , startup: , status1: , status2: , status3: , status4: , status5: , command1: = , command2: = , command3: = , command4: = , command5: = , command6: = , output1: , output2: , output3: , output4:
I: 2016-07-15 17:54:24: Frame logging set to 0, in /root
I: 2016-07-15 17:56:56: D-Star Repeater is exiting
I: 2016-07-15 17:56:59: Starting D-Star Repeater - 20151012
I: 2016-07-15 17:56:59: Using wxWidgets 2.8.12 on Linux 4.4.11-v7+ armv7l
I: 2016-07-15 17:56:59: Callsign set to "AA7US C", gateway set to "AA7US G", mode: 1, ack: 1, restriction: 0, RPT1 validation: 0, DTMF blanking: 1, Error reply: 1
I: 2016-07-15 17:56:59: Gateway set to 127.0.0.1:20010, local set to 127.0.0.1:20011, name set to ""
I: 2016-07-15 17:56:59: Timeout set to 180 secs, ack time set to 500 ms
M: 2016-07-15 17:56:59: File /root/en_US.ambe not readable
M: 2016-07-15 17:56:59: Reading /usr/local/etc/en_US.ambe
M: 2016-07-15 17:56:59: File /root/en_US.indx not readable
M: 2016-07-15 17:56:59: Reading /usr/local/etc/en_US.indx
I: 2016-07-15 17:56:59: Beacon set to 10 mins, text set to "AA7US DVMEGA", voice set to 1, language set to 9
I: 2016-07-15 17:56:59: Announcement enabled: 0, time: 0 mins, record RPT1: "", record RPT2: "", delete RPT1: "", delete RPT2: ""
I: 2016-07-15 17:56:59: Modem type set to "DVMEGA"
I: 2016-07-15 17:56:59: DVMEGA, port: /dev/ttyAMA0, variant: 3, RX invert: 0, TX invert: 0, TX delay: 150 ms, rx frequency: 145800000 Hz, tx frequency: 145800000 Hz, power: 100 %
I: 2016-07-15 17:56:59: DVMEGA Firmware version: 2.27a, hardware: DV-MEGA R2.27A
M: 2016-07-15 17:56:59: Found modem path of ../../devices/platform/soc/3f201000.uart/tty
I: 2016-07-15 17:56:59: Controller set to , config: 1, PTT invert: 0, active hang time: 0 ms
M: 2016-07-15 17:56:59: Starting DVMEGA Controller thread
I: 2016-07-15 17:56:59: Output 1 = 0, output 2 = 0, output 3 = 0, output 4 = 0
I: 2016-07-15 17:56:59: Control: enabled: 0, RPT1: , RPT2: , shutdown: , startup: , status1: , status2: , status3: , status4: , status5: , command1: = , command2: = , command3: = , command4: = , command5: = , command6: = , output1: , output2: , output3: , output4:
I: 2016-07-15 17:56:59: Frame logging set to 0, in /root
M: 2016-07-15 17:56:59: Poll text set to "linux_dvmega-20151012"
M: 2016-07-15 17:56:59: Starting the D-Star repeater thread
M: 2016-07-15 17:57:14: Radio header decoded - My: AA7US H/JOHN Your: SENDLOGS Rpt1: DIRECT Rpt2: DIRECT Flags: 00 00 00
M: 2016-07-15 17:57:14: AMBE for AA7US H Frames: 0.9s, Silence: 0.0%, BER: 0.0%
M: 2016-07-15 17:57:15: Transmitting to - My: AA7US C/ Your: AA7US H Rpt1: AA7US G Rpt2: AA7US C Flags: 01 00 00
Per our discussion last night during the D-Star Roundtable, I've been trying to track down the cause(s) of my new DVMega dual-band board being unresponsive immediately after a cold boot of my RPi 3B. As I'd stated last night, all I have to do to correct it is to VNC into the RPi then close and reopen the D-Star Repeater (DVMEGA) software. From then on everything functions perfectly. Warm reboots don't cause the problem.
I've verified the RPi has adequate voltage and it doesn't seem to matter if I'm using WiFi or Ethernet for Internet access. Since I had tweaked the D-Star Repeater and ircDDB Gateway configurations, to eliminate any of those changes as a possible cause, I also tried a freshly burned image of D-Star Cmdr 2.01 using only the Windows setup utility to get it up and running... but had the same exact problem.
Here are the D-Star Repeater log entries during the most recent boot. I've highlighted the errors in red during the initial cold boot and also the same entry location in green after restarting the D-Star Repeater software.
From the little I know about Linux (which is VERY little), it almost looks like the DVMega board wasn't yet mounted (possibly because it hadn't finished initializing?) by the time the D-Star Repeater software went looking for it. Is there a way to delay the start of D-Star Repeater to give the DVMega board a bit more time to initialize?
Please let me know if you think of anything else I should try.
73,
John
AA7US
I: 2016-07-15 17:54:24: Starting D-Star Repeater - 20151012
I: 2016-07-15 17:54:24: Using wxWidgets 2.8.12 on Linux 4.4.11-v7+ armv7l
I: 2016-07-15 17:54:24: Callsign set to "AA7US C", gateway set to "AA7US G", mode: 1, ack: 1, restriction: 0, RPT1 validation: 0, DTMF blanking: 1, Error reply: 1
I: 2016-07-15 17:54:24: Gateway set to 127.0.0.1:20010, local set to 127.0.0.1:20011, name set to ""
I: 2016-07-15 17:54:24: Timeout set to 180 secs, ack time set to 500 ms
M: 2016-07-15 17:54:24: File /root/en_US.ambe not readable
M: 2016-07-15 17:54:24: Reading /usr/local/etc/en_US.ambe
M: 2016-07-15 17:54:24: File /root/en_US.indx not readable
M: 2016-07-15 17:54:24: Reading /usr/local/etc/en_US.indx
I: 2016-07-15 17:54:24: Beacon set to 10 mins, text set to "AA7US DVMEGA", voice set to 1, language set to 9
I: 2016-07-15 17:54:24: Announcement enabled: 0, time: 0 mins, record RPT1: "", record RPT2: "", delete RPT1: "", delete RPT2: ""
I: 2016-07-15 17:54:24: Modem type set to "DVMEGA"
I: 2016-07-15 17:54:24: DVMEGA, port: /dev/ttyAMA0, variant: 3, RX invert: 0, TX invert: 0, TX delay: 150 ms, rx frequency: 145800000 Hz, tx frequency: 145800000 Hz, power: 100 %
I: 2016-07-15 17:54:24: DVMEGA Firmware version: 2.27a, hardware: DV-MEGA R2.27A
E: 2016-07-15 17:54:24: The DVMEGA is not responding to the SET_CONFIG command
E: 2016-07-15 17:54:24: Cannot open the D-Star modem
I: 2016-07-15 17:54:24: Controller set to , config: 1, PTT invert: 0, active hang time: 0 ms
I: 2016-07-15 17:54:24: Output 1 = 0, output 2 = 0, output 3 = 0, output 4 = 0
I: 2016-07-15 17:54:24: Control: enabled: 0, RPT1: , RPT2: , shutdown: , startup: , status1: , status2: , status3: , status4: , status5: , command1: = , command2: = , command3: = , command4: = , command5: = , command6: = , output1: , output2: , output3: , output4:
I: 2016-07-15 17:54:24: Frame logging set to 0, in /root
I: 2016-07-15 17:56:56: D-Star Repeater is exiting
I: 2016-07-15 17:56:59: Starting D-Star Repeater - 20151012
I: 2016-07-15 17:56:59: Using wxWidgets 2.8.12 on Linux 4.4.11-v7+ armv7l
I: 2016-07-15 17:56:59: Callsign set to "AA7US C", gateway set to "AA7US G", mode: 1, ack: 1, restriction: 0, RPT1 validation: 0, DTMF blanking: 1, Error reply: 1
I: 2016-07-15 17:56:59: Gateway set to 127.0.0.1:20010, local set to 127.0.0.1:20011, name set to ""
I: 2016-07-15 17:56:59: Timeout set to 180 secs, ack time set to 500 ms
M: 2016-07-15 17:56:59: File /root/en_US.ambe not readable
M: 2016-07-15 17:56:59: Reading /usr/local/etc/en_US.ambe
M: 2016-07-15 17:56:59: File /root/en_US.indx not readable
M: 2016-07-15 17:56:59: Reading /usr/local/etc/en_US.indx
I: 2016-07-15 17:56:59: Beacon set to 10 mins, text set to "AA7US DVMEGA", voice set to 1, language set to 9
I: 2016-07-15 17:56:59: Announcement enabled: 0, time: 0 mins, record RPT1: "", record RPT2: "", delete RPT1: "", delete RPT2: ""
I: 2016-07-15 17:56:59: Modem type set to "DVMEGA"
I: 2016-07-15 17:56:59: DVMEGA, port: /dev/ttyAMA0, variant: 3, RX invert: 0, TX invert: 0, TX delay: 150 ms, rx frequency: 145800000 Hz, tx frequency: 145800000 Hz, power: 100 %
I: 2016-07-15 17:56:59: DVMEGA Firmware version: 2.27a, hardware: DV-MEGA R2.27A
M: 2016-07-15 17:56:59: Found modem path of ../../devices/platform/soc/3f201000.uart/tty
I: 2016-07-15 17:56:59: Controller set to , config: 1, PTT invert: 0, active hang time: 0 ms
M: 2016-07-15 17:56:59: Starting DVMEGA Controller thread
I: 2016-07-15 17:56:59: Output 1 = 0, output 2 = 0, output 3 = 0, output 4 = 0
I: 2016-07-15 17:56:59: Control: enabled: 0, RPT1: , RPT2: , shutdown: , startup: , status1: , status2: , status3: , status4: , status5: , command1: = , command2: = , command3: = , command4: = , command5: = , command6: = , output1: , output2: , output3: , output4:
I: 2016-07-15 17:56:59: Frame logging set to 0, in /root
M: 2016-07-15 17:56:59: Poll text set to "linux_dvmega-20151012"
M: 2016-07-15 17:56:59: Starting the D-Star repeater thread
M: 2016-07-15 17:57:14: Radio header decoded - My: AA7US H/JOHN Your: SENDLOGS Rpt1: DIRECT Rpt2: DIRECT Flags: 00 00 00
M: 2016-07-15 17:57:14: AMBE for AA7US H Frames: 0.9s, Silence: 0.0%, BER: 0.0%
M: 2016-07-15 17:57:15: Transmitting to - My: AA7US C/ Your: AA7US H Rpt1: AA7US G Rpt2: AA7US C Flags: 01 00 00