DMRGateway XLX Startup Module Dropdown Option

Suggest new features here
Post Reply
K2IE
Posts: 124
Joined: Mon Aug 20, 2018 5:24 pm
Contact:

DMRGateway XLX Startup Module Dropdown Option

Post 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
kb2ear
Posts: 9
Joined: Sun Mar 10, 2019 5:47 pm

Re: DMRGateway XLX Startup Module Dropdown Option

Post by kb2ear »

Yes please this would be a great feature to add.
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: DMRGateway XLX Startup Module Dropdown Option

Post by MW0MWZ »

Done and ready for you to test it.
Andy

73 de MW0MWZ
http://pistar.uk
K2IE
Posts: 124
Joined: Mon Aug 20, 2018 5:24 pm
Contact:

Re: DMRGateway XLX Startup Module Dropdown Option

Post 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
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: DMRGateway XLX Startup Module Dropdown Option

Post 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>
Andy

73 de MW0MWZ
http://pistar.uk
K2IE
Posts: 124
Joined: Mon Aug 20, 2018 5:24 pm
Contact:

Re: DMRGateway XLX Startup Module Dropdown Option

Post 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
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: DMRGateway XLX Startup Module Dropdown Option

Post 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.
Andy

73 de MW0MWZ
http://pistar.uk
CT2HRB
Posts: 19
Joined: Thu Apr 26, 2018 8:15 pm

Re: DMRGateway XLX Startup Module Dropdown Option

Post 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)...
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: DMRGateway XLX Startup Module Dropdown Option

Post 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.
Andy

73 de MW0MWZ
http://pistar.uk
K2IE
Posts: 124
Joined: Mon Aug 20, 2018 5:24 pm
Contact:

Re: DMRGateway XLX Startup Module Dropdown Option

Post by K2IE »

Tested and working on a couple of hotspots here.

Thank you for the analysis and quick response!

73
Post Reply