Page 1 of 1

Configuration page and ColorCode=0

Posted: Thu Mar 21, 2024 2:19 pm
by SA0BUX
Is there any reason why you can't save DMR colour code = 0 in DMR settings ?

I tried in 4.1.8 and 4.2.1 and it jumps back to previous setting when you save.

Re: Configuration page and ColorCode=0

Posted: Fri Mar 22, 2024 7:43 am
by M1DNS
https://www.etsi.org/deliver/etsi_ts/10 ... 20201p.pdf
Section 9.3.1

list available CC 0-15 So in theory yes.
However i think the issue your seeing is the way in which a 0 is represented in the pistar config
0=null CC cant = null

So choose a CC value of 1-15 to make things easier on urself.

Or if you really want CC to =0...

Use mmdvmhost full edit in expert to manually make the change. Then never go back to using the basic config if you do it will /could overwrite ur manual changes.


Sent via smoke signals using my SM-G935F



Re: Configuration page and ColorCode=0

Posted: Sat Mar 23, 2024 9:00 am
by SA0BUX
M1DNS wrote: Fri Mar 22, 2024 7:43 am https://www.etsi.org/deliver/etsi_ts/10 ... 20201p.pdf
Section 9.3.1

list available CC 0-15 So in theory yes.
However i think the issue your seeing is the way in which a 0 is represented in the pistar config
0=null CC cant = null

So choose a CC value of 1-15 to make things easier on urself.

Or if you really want CC to =0...

Use mmdvmhost full edit in expert to manually make the change. Then never go back to using the basic config if you do it will /could overwrite ur manual changes.


Sent via smoke signals using my SM-G935F
So it's a limitation in the frontend ( configure.php ), and yes I could change to 0 manually.

Just tried various settings as I was troubleshooting another problem, I have my main hotspot on CC=1 but this was a test with a OpenGD77 hotspot
on another Pi.

The convention in SM (Sweden) is to have CC = Callsign District unless there is overlapping coverage, so in SM0/SA0 we should use CC=0.

Re: Configuration page and ColorCode=0

Posted: Sat Mar 23, 2024 10:59 am
by KN2TOD
In configure.php, change:

Code: Select all

// Set MMDVMHost DMR Colour Code
if (empty($_POST['dmrColorCode']) != TRUE ) {
    $configmmdvm['DMR']['ColorCode'] = escapeshellcmd($_POST['dmrColorCode']);
}
to:

Code: Select all

// Set MMDVMHost DMR Colour Code
if (isset($_POST['dmrColorCode'])) {
    $configmmdvm['DMR']['ColorCode'] = (int)$_POST['dmrColorCode'];
}