Re: [Hamlib-developer] Proposal
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Luc L. <lx...@qs...> - 2000-10-24 05:06:07
|
On Tuesday 24 October 2000 06:57, Stephane Fillod wrote: > On Mon, Oct 09, 2000, Luc Langehegermann wrote: > > I just took a look at the rig.h file, and was a bit suprised to read how > > you use the mode. Is it not easier use an rig_mode_t and an > > rig_bandwidth_t? At > > Have you seen how the rmode_t has been simplified? It makes much more I'll take a look at it. > sense (ie. simpler) like this, with a separate bandwidth type. > However, I'm not happy with the proposal I've coded, that is have > rig_set_mode(rig, rmode_t mode) and rig_set_passband(rig, pbwidth_t width) > that would set RIG_PASSBAND_NORMAL/RIG_PASSBAND_NARROW/RIG_PASSBAND_WIDE. > > The main reason is because you'll always want to set the passband width > when you set a mode. And that's why most rig control protocols let you Not really always. As you know I will use the hamlib to control the transceiver from my own psk31 program. Usually you will have the transceiver in the wide/normal mode to see nearly all signals in the up to 4kHz wide waterfall. But if you have qrm you will switch to an smaller filter (and the frequency of the tronsceiver should be changed so that the wanted signal is in the biddle of the bandwidth, but thats is not a problem of the hamlib hihi) > change both with only one command. Therefore, it makes backend > implementation troublesome. So here's another idea: forget about > rig_set_passband and have rig_set_mode do it all like this: > > int rig_set_mode(RIG *rig, rmode_t mode, pbwidth_t width); > int rig_get_mode(RIG *rig, rmode_t *mode, pbwidth_t *width); > > what do you think? any drawback in mind? > Hmm... I only know the FT-920 and he has different opcodes for band and bandwidth. But why not thos way? > > least for the USB/LSB modes? I also thing that RTTY is not really clear > > enough... Some rigs make afsk, others afsk or fsk... Ans how to know if > > they > > I'm no RTTY guy, anyone is free to make a proposal! > Here I also only know the FT-920.. he has the modes DATA-USB and DATA-LSB. What about naming the modes this way? AFSK/FSK switching is done here a small switch on the rear panel > Greetings, -- Greetings, Luc, LX2GT |