Configuration page and ColorCode=0

General support for the Pi-Star System
Post Reply
SA0BUX
Posts: 7
Joined: Sun Sep 15, 2019 5:07 pm
Location: Stockholm

Configuration page and ColorCode=0

Post 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.
M1DNS
Pi-Star Team
Posts: 1395
Joined: Thu Apr 05, 2018 5:30 am

Re: Configuration page and ColorCode=0

Post 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


Andrew M1DNS.
Pi-star Admin Team.
SA0BUX
Posts: 7
Joined: Sun Sep 15, 2019 5:07 pm
Location: Stockholm

Re: Configuration page and ColorCode=0

Post 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.
KN2TOD
Posts: 270
Joined: Sun Nov 11, 2018 6:36 pm

Re: Configuration page and ColorCode=0

Post 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'];
}
Post Reply