Ok, with my rusty skill on bash scripts and commands, I looked into the pistar-bmapi script and I was able to reproduce the error. Issue happens when the BM API is expecting 7 digit DMR ID, but the script is sending 9 digit DMR ID, that includes the ESSID.
Turns out the following command in the script is returning 2 lines which is not expected for DMR Gateway configuration. This is causing the DMRID to be set incorrectly.
Code: Select all
pi-star@pi-star(ro):~$ sed -n -e '/\[DMR Network\]/,/\[System Fusion Network\]/p' /etc/mmdvmhost | grep "Address=" | awk -F "=" '/Address=/ {print $2}'
127.0.0.1
127.0.0.1
From /etc/mmdvmhost
Code: Select all
[DMR Network]
Enable=1
Address=127.0.0.1
Port=62031
Jitter=360
Password="none"
Slot1=0
Slot2=1
Debug=0
ModeHang=20
Type=Gateway
Local=62032
RemoteAddress=127.0.0.1
RemotePort=62031
LocalPort=62032
The two lines will match for "Address", causing the incorrect setting of DMRID.