The DMRGateway fails to start on pi-star 4.1.0-RC6
2019-12-11 18:53:28.767 commercial networks is strictly prohibited.
I: 2019-12-11 18:53:28.768 Copyright(C) 2017 by Jonathan Naylor, G4KLX and others
M: 2019-12-11 18:53:28.768 DMRGateway-20190717_Pi-Star_v4 is starting
M: 2019-12-11 18:53:28.768 Built 17:19:47 Jul 17 2019 (GitID #82f1053)
I: 2019-12-11 18:53:28.768 MMDVM Network Parameters
I: 2019-12-11 18:53:28.768 Rpt Address: 127.0.0.1
I: 2019-12-11 18:53:28.768 Rpt Port: 62032
I: 2019-12-11 18:53:28.768 Local Address: 127.0.0.1
I: 2019-12-11 18:53:28.768 Local Port: 62031
M: 2019-12-11 18:53:28.768 MMDVM Network, Opening
M: 2019-12-11 18:53:28.768 Waiting for MMDVM to connect.....
DMRGateway Fails on Pi-Star 4.1.0RC6
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
Is there anymore to the log file.
Like failing to connect to the modem after 6attempts.
Or connecting to the network server...
Disconnecting to the network server...
It's strange that the log file ends there???
Andrew M1DNS, (Mod)
Like failing to connect to the modem after 6attempts.
Or connecting to the network server...
Disconnecting to the network server...
It's strange that the log file ends there???
Andrew M1DNS, (Mod)
Andrew M1DNS.
Pi-star Admin Team.
Pi-star Admin Team.
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
The program freezes at this point.... Actually locked up in a loop
LogMessage("Waiting for MMDVM to connect.....");
while (!m_killed) {
m_configLen = m_repeater->getConfig(m_config); // This line fails. m_configLen =0
if (m_configLen > 0U && m_repeater->getId() > 1000U)
break;
m_repeater->clock(10U);
CThread::sleep(10U);
}
if (m_killed) {
m_repeater->close();
delete m_repeater;
return 0;
}
LogMessage("MMDVM has connected");
log print of m_config_Len and m_repeater->getId()
M: 2019-12-11 17:35:12.769 Len = 0, ID = 0
M: 2019-12-11 17:35:12.779 Len = 0, ID = 0
M: 2019-12-11 17:35:12.789 Len = 0, ID = 0
M: 2019-12-11 17:35:12.799 Len = 0, ID = 0
M: 2019-12-11 17:35:12.809 Len = 0, ID = 0
M: 2019-12-11 17:35:12.820 Len = 0, ID = 0
M: 2019-12-11 17:35:12.830 Len = 0, ID = 0
M: 2019-12-11 17:35:12.840 Len = 0, ID = 0
LogMessage("Waiting for MMDVM to connect.....");
while (!m_killed) {
m_configLen = m_repeater->getConfig(m_config); // This line fails. m_configLen =0
if (m_configLen > 0U && m_repeater->getId() > 1000U)
break;
m_repeater->clock(10U);
CThread::sleep(10U);
}
if (m_killed) {
m_repeater->close();
delete m_repeater;
return 0;
}
LogMessage("MMDVM has connected");
log print of m_config_Len and m_repeater->getId()
M: 2019-12-11 17:35:12.769 Len = 0, ID = 0
M: 2019-12-11 17:35:12.779 Len = 0, ID = 0
M: 2019-12-11 17:35:12.789 Len = 0, ID = 0
M: 2019-12-11 17:35:12.799 Len = 0, ID = 0
M: 2019-12-11 17:35:12.809 Len = 0, ID = 0
M: 2019-12-11 17:35:12.820 Len = 0, ID = 0
M: 2019-12-11 17:35:12.830 Len = 0, ID = 0
M: 2019-12-11 17:35:12.840 Len = 0, ID = 0
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
It was suggested by a friend that mmdvmhost is not listening on the port that dmrgateway is trying to connect on, and that mmdvmhost.ini used to have a field where it could be set, but was removed in favour of random ports.
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
Finally got it working
Re-flashed the micro-sd card and set it up to run in DMR mode. Switched over to DMRGateway and got the same effect. There appears to be an inherent problem in the interface between the dmrgateway and mmdvmhost. Running Apply Changes in the pi-star dashboard module runs a php script configure.php that makes some incorrect assumptions and in some cases completely wipes out my settings in the /etc/dmrgateway file.
I made a few modifications in my local copy of configure.php to fill in the missing parameters and now have it working the way I want it to.
Phil VE3RD
Re-flashed the micro-sd card and set it up to run in DMR mode. Switched over to DMRGateway and got the same effect. There appears to be an inherent problem in the interface between the dmrgateway and mmdvmhost. Running Apply Changes in the pi-star dashboard module runs a php script configure.php that makes some incorrect assumptions and in some cases completely wipes out my settings in the /etc/dmrgateway file.
I made a few modifications in my local copy of configure.php to fill in the missing parameters and now have it working the way I want it to.
Phil VE3RD
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
It would be a good idea to post what those changes are, if they are generally applicable then PiStar will benefit from using them to update the code.
--
Brian G8SEZ
Brian G8SEZ
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
The changes I made are fairly specific to my own requirements, but in general
pi-star has a bad habit of rewriting the /etc/dmrgateway file eliminating network 4 and network 5
I put the rules into configure.php to write all the required parameters for the TGIF Network into Network 4 and the FDARN Network into Network 5.
Pi-star also wipes out a lot of the General, Log, and Voice parameters from /etc/dmrgateway
the new dmrgateway by g4klx has 5 networks, and the /etc/dmrgateway file puts TGIF into network 3. This doesn't work because network 3 is overwritten by pi-star for HBLink, DMR2YSF, DMR2NXDN, and as such TGIF gets wiped out.
pi-star has a bad habit of rewriting the /etc/dmrgateway file eliminating network 4 and network 5
I put the rules into configure.php to write all the required parameters for the TGIF Network into Network 4 and the FDARN Network into Network 5.
Pi-star also wipes out a lot of the General, Log, and Voice parameters from /etc/dmrgateway
the new dmrgateway by g4klx has 5 networks, and the /etc/dmrgateway file puts TGIF into network 3. This doesn't work because network 3 is overwritten by pi-star for HBLink, DMR2YSF, DMR2NXDN, and as such TGIF gets wiped out.
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
I guess I spoke too soon regarding the DMRGateway on pi-star 4.1.0.RC^
It works for several minutes, then shuts down for several minutes then restarts
I get time outs on the server connections. I have spent way too many hours playing with this.
I have reverted back to pi-star 3.4.17 and it started right out of the box, so to speak.
Its has been running for several hours with no issues.
It works for several minutes, then shuts down for several minutes then restarts
I get time outs on the server connections. I have spent way too many hours playing with this.
I have reverted back to pi-star 3.4.17 and it started right out of the box, so to speak.
Its has been running for several hours with no issues.
Re: Fails on Pi-Star 4.1.0RC6
Hi,
Here , the MMDVM GPIO don't run with the 4.1.0-RC6. With 4.1.0=RC5 no problem. I don't know which is the difference
Anybody has alos the same problem on a Pi-Star image ?
Paul, ON6DP
Here , the MMDVM GPIO don't run with the 4.1.0-RC6. With 4.1.0=RC5 no problem. I don't know which is the difference
Anybody has alos the same problem on a Pi-Star image ?
Paul, ON6DP
Re: DMRGateway Fails on Pi-Star 4.1.0RC6
DMRGateway now working fine on 4.1.0.RC6. after a pi-star update - Thanks
I will switch over to RC7 in the new year.
I occasionaly get waiting for connect to MMDVMHost, but found if I issue the following, it picks up and runs
mmdvmhost.service restart
Phil VE3RD
I will switch over to RC7 in the new year.
I occasionaly get waiting for connect to MMDVMHost, but found if I issue the following, it picks up and runs
mmdvmhost.service restart
Phil VE3RD