Michael Black | 16 Dec 23:27 2014
Picon

C# Library

Is it possible to build hamlib to create a C# compatible library for Visual Studio?

 

Mike W9MDB

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 15 Dec 17:04 2014
Picon

Memory setting

I'm implementing the Elecraft XG3 and am at the point of setting the memory frequencies (that's all the XG3 memory holds is just frequency).

 

What is the expected hamlib sequence for doing this?

 

Looks to me like it's expected that an  application would generically call something like this:

 

set_ch

set_mode

set_power

.

.

.

set_vfo_freq – which would then use all the existing settings on the rig for ch/mode/power/whatever to write to RIG_VFO_MEM current channel.

 

Is that correct?  Or is there some other function I'm missing?

The XG3 has the ability to set a memory channel with a frequency directly but I don't see a function that does that….probably as it's not generic enough.

 

 

 

73

Mike

W9MDB

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 15 Dec 01:01 2014
Picon

rigctl ? commands

I see a bunch of command in rigctl that don't seem to be accessible from the menu.

 

?: set_ctcss_sql   (CTCSS Sql)         ?: get_ctcss_sql   ()

?: set_dcs_sql     (DCS Sql)           ?: get_dcs_sql     ()

?: set_powerstat   (Power Status)      ?: get_powerstat   ()

?: send_dtmf       (Digits)            ?: recv_dtmf       ()

?: dump_state      ()                  ?: chk_vfo         ()

?: halt            ()                  ?: pause           (Seconds)

 

I see in the code some hex values assigned to them.

 

        { 0x90, "set_ctcss_sql",    ACTION(set_ctcss_sql),  ARG_IN, "CTCSS Sql" },

        { 0x91, "get_ctcss_sql",    ACTION(get_ctcss_sql),  ARG_OUT, "CTCSS Sql" },

        { 0x92, "set_dcs_sql",      ACTION(set_dcs_sql),    ARG_IN, "DCS Sql" },

        { 0x93, "get_dcs_sql",      ACTION(get_dcs_sql),    ARG_OUT, "DCS Sql" },

 

 

Are these accessible from the rigctl menu somehow?

 

 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 14 Dec 15:54 2014
Picon

Adding XG3

Never mind….I missed adding xg3_caps to kenwood.c and kenwood.h

 

                rig_register(&k2_caps);

                rig_register(&k3_caps);

                rig_register(&xg3_caps);

 

 

extern const struct rig_caps k2_caps;

extern const struct rig_caps k3_caps;

extern const struct rig_caps xg3_caps;

 

73

Mike

W9MDB

 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 14 Dec 15:47 2014
Picon

Adding XG3

I decided to take a stab at adding the Elecraft XG3.  Since I have one should make it fairly easy.

 

But I'm not successful just getting a skeleton in place.  It does compile and link but…

rigctl –l does not list the XG3 entry I added and turning up verbosity with –vvvv shows nothing but the list.

 

What more is need besides what I did here?

 

I added the XG3 to rigctl.h

 

#define RIG_MODEL_F6K RIG_MAKE_MODEL(RIG_KENWOOD, 36) /* Flex 6000 Series */

#define RIG_MODEL_TS590SG RIG_MAKE_MODEL(RIG_KENWOOD, 37)

#define RIG_MODEL_XG3 RIG_MAKE_MODEL(RIG_KENWOOD, 38)

 

I took the k2.c and modified it to change everything to xg3

 

const struct rig_caps xg3_caps = {

                .rig_model =                      RIG_MODEL_XG3,

                .model_name =                "XG3",

                .mfg_name =                     "Elecraft",

                .version =                            "20141213",

                .copyright =                        "LGPL",

                .status =                               RIG_STATUS_ALPHA,

                .rig_type =                          RIG_TYPE_TRANSCEIVER,

                .ptt_type =                         RIG_PTT_RIG,

                .dcd_type =                        RIG_DCD_RIG,

                .port_type =                      RIG_PORT_SERIAL,

                .serial_rate_min =           9600,

                .serial_rate_max =          9600,

                .serial_data_bits =           8,

                .serial_stop_bits =           1,

                .serial_parity =  RIG_PARITY_NONE,

                .serial_handshake =       RIG_HANDSHAKE_NONE,

 

And I left it with the kenwoood_init function

                .rig_init =                             kenwood_init,

 

So why doesn't the new rig show up in rigctl –l after a "make clean;make install" ?

 

 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Bill Somerville | 11 Dec 18:34 2014

Pull-request: Allow for rigs that can arbitrarily fail to change VFO.

The following changes since commit c3997235daaa21369cac19476e2cd4b0a6531cdb:

   TenTec Omni VII update from W9MDB (2014-12-10 18:21:53 -0600)

are available in the git repository at:

   git://git.code.sf.net/u/bsomervi/hamlib add-error-checks

for you to fetch changes up to 36b8a972cfef9aec287517a6d0ea3d7aaf362ea7:

   Error checks on simulated direct VFO addressing (2014-12-11 17:14:58 
+0000)

----------------------------------------------------------------
Bill Somerville (1):
       Error checks on simulated direct VFO addressing

  src/rig.c | 298 
++++++++++++++++++++++++++++++++++++++++++++++++--------------
  1 file changed, 234 insertions(+), 64 deletions(-)

73
Bill
G4WJS.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Michael Black | 11 Dec 17:27 2014
Picon

ReL Yaesu newcat.c

I removed #2 from this patch.  Seems it's a bad idea to do this close here (thanks Bill).

So the result now from this is just for debug statements and is completely harmless.

Mike

W9MDB

 

From: Michael Black [mailto:mdblack98 <at> yahoo.com]
Sent: Thursday, December 11, 2014 9:59 AM
To: hamlib-developer <at> lists.sourceforge.net
Subject: Yaesu newcat.c

 

I'm working on newcat.c to improve it for the model 450-450D.

 

The attached patch is some minor things I've done.

 

#1 Put in rig_strvfo for debug statements

#2 Turn off split on close

 

I'm working on other things but would like to see these committed for now.

 

Mike W9MDB

Attachment (newcat.diff): application/octet-stream, 6482 bytes
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 11 Dec 16:59 2014
Picon

Yaesu newcat.c

I'm working on newcat.c to improve it for the model 450-450D.

 

The attached patch is some minor things I've done.

 

#1 Put in rig_strvfo for debug statements

#2 Turn off split on close

 

I'm working on other things but would like to see these committed for now.

 

Mike W9MDB

Attachment (newcat.diff): application/octet-stream, 6482 bytes
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
David Mair | 10 Dec 02:36 2014

Elecraft XG3, is it a rig?

For the purposes of hamlib, can the Elecraft XG3 be considered a "rig"
and a backend be tolerated?

http://www.elecraft.com/XG3/xg3.htm

It's a RF signal generator, has RS-232 remote control, output frequency
selectable from the range 1.5-200MHz (to 1.4GHz via harmonics),
programmable preset frequency memories, selectable output power level
(though in dBm rather than Watts and restricted when using harmonic
derived frequencies), 50 Ohm output at a BNC female.

I didn't find a relevant back-end in the current source.

Plug a XG3 into your transceiver's antenna input, operate the rig as a
receiver. Select frequency and power on the XG3, tune the receiver to
the same frequency to verify the basic receive operation, S-Meter
calibration, RF signal tracing of the receiver PCB. It has reverse power
protection via shunt diodes and a fusible PCB trace but still take care
about keying the mic on the connected transceiver of course. Even use it
as a VFO local oscillator for your experiments.

I have a XG3 and have operated it with my own remote control code from
time to time. I haven't started a hamlib backend for it but if such a
thing is tolerable I think the rig definitions need the attached patch
to properly identify a device like a XG3.

The XG3 is a transmitter by the standards used in hamlib, it has no
receiver. So, added RIG_TYPE_TRANSMITTER macro to the set. I suppose the
use of the single flag is no more effort but for anyone used to using
RIG_TYPE_ names in rig_caps.rig_type there's no point in having two name
formats.

The XG3 has transmit output control via RS-232 but it isn't via any of
the RS-232 control signals like DTR, etc. The XG3 allows the output
signal to be "keyed" using a RS-232 data message, e.g. send "O,00;" text
data to the RS-232 port connected to the XG3 to turn off the
"transmitter", send "O,01;" to turn it on. Hence the addition of
RIG_PTT_MSG to ptt_type_t. I agonized over RIG_PTT_DATA or
RIG_PTT_SERIAL or alternatives, RIG_PTT_MSG is accurate but not very
descriptive, none of the others I could come up with was highly
descriptive without being absurdly long.

--

-- 
David Mair, AD7GH
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Bill Somerville | 10 Dec 02:53 2014

Pull-request: revert read_string() timeout behaviour and optimize serial comms code.

Hi,

The following changes since commit 6b2069af28e36a17e98b8ff49e868a7b01592749:

   Kenwood AIn; command has no reply (2014-12-09 01:41:45 +0000)

are available in the git repository at:

   git://git.code.sf.net/u/bsomervi/hamlib serial-timeouts

for you to fetch changes up to aa3fd7ba28ee366eb0f037fc98ca696ffb3ed38c:

   Remove gratuitous sleeps before function exits (2014-12-10 01:34:35 
+0000)

----------------------------------------------------------------
Bill Somerville (2):
       Revert read_string() to partial results are a success status
       Remove gratuitous sleeps before function exits

  lib/termios.c | 11 ++++++-----
  src/iofunc.c  | 19 +++++++++++--------
  2 files changed, 17 insertions(+), 13 deletions(-)

The first patch should allow the Easycomm back end to work again with 
its incorrectly terminated read_string() calls. The second makes a big 
different in performance as it removes a handful of sleeps just before 
function exits that serve no useful purpose that I can see. It also 
inserts a short sleep into tight wait loop that basically spins on the 
CPU without it.

73
Bill
G4WJS.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Michael Black | 9 Dec 19:25 2014
Picon

hamlib3 build

Trying to build hamlib3 under JTSDK without using the script which takes WAY too long and does a bunch of stuff I don't want it to do.

 

But building doesn't work since the PATH to ar isn't included in the shell.

Mike

W9MDB

 

Black <at> Black-PC~/g4wjs-hamlib/build/yaesu$ make

  CC       newcat.lo

  CCLD     libhamlib-yaesu.la

../libtool: line 1115: ar: command not found

Makefile:382: recipe for target `libhamlib-yaesu.la' failed

make: *** [libhamlib-yaesu.la] Error 127

 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer

Gmane