Re: [Hamlib-developer] Current stats - transceivers supported
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Dave B <g8k...@go...> - 2023-03-06 15:01:58
|
Or (under Linux at least)... rotctl -l > lines nano lines And nano will tell you how many lines of text it has read, -1 for the header, gives you the number of them... Simplistic at least, but not what was originally wanted I guess. 73. Dave G8KBV. On 06/03/2023 13:20, Black Michael via Hamlib-developer wrote: > There are two ways to get more information. > > The -u switch of rigctl will tell you the transceiver type but you would need to call rigctl 250+ times for each model number. > > The programmatic way is to look at list_models in rigctl_parse.c and rotctl_parse.c to see how to iterate through all the models. > > It would be easy to modify that to count rigs/rots or specific types of them. > > typedef enum { > RIG_FLAG_RECEIVER = (1 << 1), /*!< Receiver 2 */ > RIG_FLAG_TRANSMITTER = (1 << 2), /*!< Transmitter 4 */ > RIG_FLAG_SCANNER = (1 << 3), /*!< Scanner 8 */ > RIG_FLAG_MOBILE = (1 << 4), /*!< mobile sized 16 */ > RIG_FLAG_HANDHELD = (1 << 5), /*!< handheld sized 32 */ > RIG_FLAG_COMPUTER = (1 << 6), /*!< "Computer" rig 64 */ > RIG_FLAG_TRUNKING = (1 << 7), /*!< has trunking 128 */ > RIG_FLAG_APRS = (1 << 8), /*!< has APRS 256 */ > RIG_FLAG_TNC = (1 << 9), /*!< has TNC 512 */ > RIG_FLAG_DXCLUSTER = (1 << 10), /*!< has DXCluster 1024 */ > RIG_FLAG_TUNER = (1 << 11) /*!< dumb tuner 2048 */ > } rig_type_t; > > define ROT_TYPE_OTHER 0 > #define ROT_TYPE_AZIMUTH ROT_FLAG_AZIMUTH > #define ROT_TYPE_ELEVATION ROT_FLAG_ELEVATION > #define ROT_TYPE_AZEL (ROT_FLAG_AZIMUTH|ROT_FLAG_ELEVATION) > > > > Mike W9MDB > > > > > > > > > > On Monday, March 6, 2023 at 05:56:39 AM CST, Georgina Joyce <ge...@ge...> wrote: > > > > > > Hello All, > > I wondered where I obtain the number of each category of radio is supported buy rigctl? > > I have seen the output of the list switch. But I am going to present to blind hams and want to tell them how many transceivers and how many scanners rigctl can control. I intend upon stating that hamlib is actively developed and the current stable version supports.... It might be useful to also tell them how many rotators can be controlled by hamlib too. > > Perhaps, such information is published and I have missed it. Any help would be appreciated. > > Thanks, > > Georgina > > > Call: M0EBP > DMR ID: 2346259 > Allstar: 52178 > Locater: IO83PS > > > > > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer > > > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer -- Created on and sent from a Unix like PC running and using free and open source software: |