Page 1 of 1
DMRGateway XLX Startup Module Dropdown Option
Posted: Mon Jan 11, 2021 5:28 pm
by K2IE
I have a use case where the users of a multiprotocol system can use either XLX or a TG. The op should have XLX enabled but be able to chose a default module of 'None' via the XLX Starup Module dropdown, which then translates to ' ' (blank space) in /etc/dmrgateway.
This is useful so the op could choose to easily access an XLX module via a Private Call but not automatically be connected a module that could interfere with their use of the same conference via a BM or TGIF TG if they don't remember to first disconnect from the module.
I have tested this config by manually editing /etc/dmrgateway. It works nicely and meets my requirements.
Please consider adding this possibly via the Configuration menu.
73
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Mon Jan 11, 2021 6:09 pm
by kb2ear
Yes please this would be a great feature to add.
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Mon Jan 25, 2021 9:25 pm
by MW0MWZ
Done and ready for you to test it.
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Thu Jan 28, 2021 10:21 pm
by K2IE
Fantastic, when I went to the config page it already said none!
Changed back and forth and working as desired.
Thank you and much appreciated.
73
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Fri Jan 29, 2021 9:26 am
by MW0MWZ
K2IE wrote: ↑Thu Jan 28, 2021 10:21 pm
Fantastic, when I went to the config page it already said none!
Changed back and forth and working as desired.
Thank you and much appreciated.
73
You are most welcome, <insert socially distanced virtual high five here>
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Mon Jun 07, 2021 6:25 pm
by K2IE
Hi Andy:
In the past few days this option stopped working. It had worked well for some months since implemented.
Now, even if Startup Module = None, the default module is connected to.
Please investigate when you have an opportunity.
Thank you.
73
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Mon Jun 07, 2021 7:42 pm
by MW0MWZ
Yep it seems the new build of the gateway didn't like that, updated it slightly, it appears any non alpha character will do for not connecting at startup.
update / enjoy.
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Tue Jun 08, 2021 12:30 am
by CT2HRB
I used (didn't test on new versions though) to use/suggest an '@' symbol to accomplish that, even before the None option exist on pistar config page, I used to set in on expert mode, why '@' ?
If we look at DMRGateway.cpp we can see it calcs "TG" to link to like this:
m_xlxRoom = ((int(m_xlxModule) - 64U) + 4000U);
m_xlxModule is a char var with just the module letter that we set on config file,
ASCII values of 'A'=65, 'B'=66, ... 'Z'=90 and '@'=64
then A=4001, B=4002, ... Z=4026 and @=4000 --> the proper "TG" for unlinked?
using blank space ' ' char (ASCII: 32) should translate as 3968 and using '0' char (ASCII: 48) should translate as 3984, probably these, as well as some other char's, will also work as XLX may just ignore such numbers (didn't check it)...
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Tue Jun 08, 2021 8:23 am
by MW0MWZ
CT2HRB wrote: ↑Tue Jun 08, 2021 12:30 am
I used (didn't test on new versions though) to use/suggest an '@' symbol to accomplish that, even before the None option exist on pistar config page, I used to set in on expert mode, why '@' ?
If we look at DMRGateway.cpp we can see it calcs "TG" to link to like this:
m_xlxRoom = ((int(m_xlxModule) - 64U) + 4000U);
m_xlxModule is a char var with just the module letter that we set on config file,
ASCII values of 'A'=65, 'B'=66, ... 'Z'=90 and '@'=64
then A=4001, B=4002, ... Z=4026 and @=4000 --> the proper "TG" for unlinked?
using blank space ' ' char (ASCII: 32) should translate as 3968 and using '0' char (ASCII: 48) should translate as 3984, probably these, as well as some other char's, will also work as XLX may just ignore such numbers (didn't check it)...
Interesting stuff, I didnt look closely, but that totally makes sense - and the lack of string conversion is not a surprise, its more efficient that way.
Dashboard moved over to use "@" instead, thank you.
Re: DMRGateway XLX Startup Module Dropdown Option
Posted: Tue Jun 08, 2021 12:31 pm
by K2IE
Tested and working on a couple of hotspots here.
Thank you for the analysis and quick response!
73