Nate Bargmann | 1 Dec 2010 13:28
Picon
Favicon
Gravatar

[Fwd: [Fwd: [win-fldigi] Hamlib for IC-706MKIIG]]

----- Forwarded message from w1hkj <w1hkj <at> bellsouth.net> -----

Date: Wed, 01 Dec 2010 05:40:01 -0600
From: w1hkj <w1hkj <at> bellsouth.net>
To: Nate Bargmann <n0nb <at> n0nb.us>
Subject: [Fwd: [win-fldigi] Hamlib for IC-706MKIIG]
Reply-To: w1hkj <at> w1hkj.com
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)

See Gerry's comments regarding 1.2.12 hamlib and the IC706MKIIG

Dave

-------- Original Message --------
Subject: 	[win-fldigi] Hamlib for IC-706MKIIG
Date: 	Wed, 01 Dec 2010 06:52:03 -0000
From: 	ve7bgp <ve7bgp <at> shaw.ca>
Reply-To: 	win-fldigi <at> yahoogroups.com
To: 	win-fldigi <at> yahoogroups.com

Hello Dave
I am glad to report that Hamlib is working better for My venerable old IC-706MKIIG. There is still  minor
glitchs with the rig in FM Mode the program does not switch Modes with the program until if my 706G is in FM
mode I then select AM with fldigi then the Mode works great. Whatever was done after version .28 the Program
Not Responding problem has been resolved for the MKIIG. Also when you select FM Mode on the IC-706MKIIG
Hamlib also switches on FM N Filter. Thanks for the great work on fldigi Dave
73
Gerry VE7BGP

------------------------------------
(Continue reading)

Stephane Fillod | 1 Dec 2010 23:02
Picon
Favicon

Re: hamlib 1.2.12: EXIT Status problem

Hi John,

Sun, Nov 28, 2010, John Nelson skribis:
> I am running hamlib 1.2.12 on Mac OS X (10.4.11) and do not get  

Good to hear there are users under Mac OS X.

> expected Exit Status on errors:
> 
> Man page states:
> EXIT STATUS
>         rigctl exits with:
>         0 if all operations completed normally;
>         1 if there was an invalid command line option or argument;
>         2 if an error was returned by Hamlib.
> 
> Here is a simple shell script - note the invalid option  RFPOWERZ
> 
> #!/bin/sh
> rigctl -m 210 -r /dev/cu.usbserial l RFPOWERZ
> echo "Exit status ${?}"
> 
> on execution:
> 
> get_level: error = Invalid parameter
> Exit status 0

Good catch.

> This should give exit status 1:
(Continue reading)

f8arr | 2 Dec 2010 15:03

Re: F1TE tracker: read_string: timedout without reading a character ; -)

hello all,

An update (to be faster it is working !!)

on compilation (make) I had problem concerning elecraft.h file. It didn't exist on the svn repository. For so, k2.c, k3.c wasn't compiling correctly.
I removed reference to elecraft product .. easy I don't own ;-)
Problem on the compilation ?

Well after having removing everything, compilation has gone to the end with no issue (Ubuntu 10.10)

I ran the rotctld :

f8arr <at> f8arr-station:~/Downloads/hamlib-1.2.13svn/tests$ ./rotctld -m 604 -r /dev/ttyS0 -s 9600 -vvvvv rotctld, Hamlib 1.2.13svn Report bugs to <hamlib-developer <at> lists.sourceforge.net> rot:rot_init called rot: loading backend gs232a initrots2_gs232a called rot_register (601) rot_register (603) rot_register (602) rot_register (604) rot:rot_open called Opened rot model 604, 'GS232/F1TE Tracker' Backend version: 0.1, Status: Beta

and used gpredict to test. And it worked like a charm ! Really great job.
I discussed with Lucien, F1TE and he told me that it wasn't necessary that his call appear ;-). Perhaps a better name could be GS232-W-only (Wonly = "W" command only ?)

Well you'll see.
If you need more tests for the compile problem, I can do tests. I'm not developper but i'm Linux Expert and Admin so easy and ready to help !

Regards
Guillaume - F8ARR


On 29/11/2010 23:07, Stephane Fillod wrote:
Wed, Nov 24, 2010, f8arr skribis:
Well I made a test and it is not working. Here is the trace made on -v
Please, always run r{ig,ot}ctl{d,} with -vvvvv (five v's) for full debuging traces.
/f8arr <at> f8arr-station:~$ rotctld -m 201 -s 9600 -r /dev/ttyS0 -v Opened rot model 201, 'EasycommI' fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success fscanf: Success/ Anyway, If it would work, the problem would be the following: Lucien, F1TE has only implemented the "W" command on push and he is not expecting any answer.
Does the "S" command is also implemented?
For exemple, we do EME and we use wsjt under linux. You'll find on attachement a small script I made in order to track the moon. This is a small bash script that extract elevation and azimut from the wsjt's file : azel.dat. Once I have retrieved azimut and elevation, I push the data at an dedicated interval ant that's all. On hamlib and especially on rotctld there is allready a command "post_write_delay" that could be used to push at dedicated interval. The only thing, in order to not fall out in error, would be that hamlib won't except an answer from the traker.
Hum, "post_write_delay" was not meant as a periodic sequencer, rather as a timing enforcement for some specific protocols (in fact MCUs). However, why not kindly asking Joe (K1JT) to implement appropriate rotctld control in wsjt?
Just a suggestion, Today we are facing this problem with Lucien's tracker and GS232 "W" only command on push only, but perhaps, on future, the same problem could occur with an OM-made tracker with an other protocol. The idear would be to enheance the hamlib with a new parameter on command line in order to tell hamlib to not waiting for answer?
It looks like Lucien's tracker protocol is closer to GS232 than GS232A.
Anyway, you are the developper and I'm the user ;-) so sureley you have 90% of others reasons to not implement it the way I suggest and you'll be right ;-) For the end, fill free to send me patch or anything else if you want me to test. I have Ubuntu 10.09 but also opensuse 11.3 and ubuntu 10.10
Tonight, I've declared a new backend in Hamlib SVN repo, ID 604, under the name "GS232/F1TE Tracker". Feel free to propose a better name if need be. If you are not familiar with svn, you will find it in tomorrow's daily snapshot (20101130) at http://n0nb.users.sourceforge.net/ Feedback's welcome!
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Nate Bargmann | 3 Dec 2010 01:54
Picon
Favicon
Gravatar

Re: F1TE tracker: read_string: timedout without reading a character ; -)

* On 2010 02 Dec 17:36 -0600, f8arr wrote:
> hello all,
> 
> An update (to be faster it is working !!)
> 
> on compilation (make) I had problem concerning elecraft.h file. It
> didn't exist on the svn repository. For so, k2.c, k3.c wasn't
> compiling correctly.

I see that I forgot to upload the modified Makefile.am file.  That'll
teach me not to try building from a fresh checkout.  ;-)

Thanks to Stephane for fixing it.

73, de Nate >>

--

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Ham radio, Linux, bikes, and more: http://n0nb.us/index.html

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
Chris Bryant | 3 Dec 2010 15:17
Picon

rigctld and multiple programs

I have an Elecraft K2 which I can control ok with gpredict. I have built
a Softrock receiver into the rig on the mixer output and using the Quisk
program I can display a useful spectrum. See

http://james.ahlstrom.name/quisk/

Although Quisk has a hardware module to support the K3 (and is reported
to be ok with the K2), I intend to write a hardware module for Quisk so
it integrates better with my setup (eg compensate for the offset caused
by the Softrock, and for the way the K2 adjusts its BFO frequency
between modes and filter bandwidths without telling me). This will take
a while as I have to learn Python first and generally get back into
writing software after a long absence.

It occurs to me that I should probably write a hardware module so that
Quisk will talk to hamlib via rigctld. This will be phase 2 as I will
first adapt the K3 module and use a serial port where I can see what's
happening!

What I would really like to do is find a way of sharing the K2 between
gpredict and Quisk so that I can spot on the panadapter a satellite
contact or CQ somewhere within the passband, click on this, then let
gpredict take over the tracking.  In the man page for rigctld I see
this:

This allows multiple user programs to share one radio (this needs
testing)

Can anyone give me some details of what is/isn't/might be possible?

73

Chris g3wie

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
Wilbert Knol | 4 Dec 2010 12:44
Picon

Re: rigctld and multiple programs

Yes, this works.

I had two instances of a logger program polling a a single rigctld process.

It was found that  the poll rates of both client applications had to be changed from once a second to once every
two seconds, in order to get rid of time-outs, application freezes, etc.

Wilbert, PE7T
--

Op vrijdag 03 december 2010 15:17:42 schreef Chris Bryant:
> I have an Elecraft K2 which I can control ok with gpredict. I have built
> a Softrock receiver into the rig on the mixer output and using the Quisk
> program I can display a useful spectrum. See
> 
> http://james.ahlstrom.name/quisk/
> 
> Although Quisk has a hardware module to support the K3 (and is reported
> to be ok with the K2), I intend to write a hardware module for Quisk so
> it integrates better with my setup (eg compensate for the offset caused
> by the Softrock, and for the way the K2 adjusts its BFO frequency
> between modes and filter bandwidths without telling me). This will take
> a while as I have to learn Python first and generally get back into
> writing software after a long absence.
> 
> It occurs to me that I should probably write a hardware module so that
> Quisk will talk to hamlib via rigctld. This will be phase 2 as I will
> first adapt the K3 module and use a serial port where I can see what's
> happening!
> 
> What I would really like to do is find a way of sharing the K2 between
> gpredict and Quisk so that I can spot on the panadapter a satellite
> contact or CQ somewhere within the passband, click on this, then let
> gpredict take over the tracking.  In the man page for rigctld I see
> this:
> 
> This allows multiple user programs to share one radio (this needs
> testing)
> 
> Can anyone give me some details of what is/isn't/might be possible?
> 
> 73
> 
> Chris g3wie
> 
> 
> ------------------------------------------------------------------------------
> What happens now with your Lotus Notes apps - do you make another costly 
> upgrade, or settle for being marooned without product support? Time to move
> off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
> use, and manage than apps on traditional platforms. Sign up for the Lotus 
> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> _______________________________________________
> Hamlib-developer mailing list
> Hamlib-developer <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hamlib-developer
> 

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
Nate Bargmann | 4 Dec 2010 14:51
Picon
Favicon
Gravatar

Re: rigctld and multiple programs

* On 2010 04 Dec 03:21 -0600, Chris Bryant wrote:
> I have an Elecraft K2 which I can control ok with gpredict. I have built
> a Softrock receiver into the rig on the mixer output and using the Quisk
> program I can display a useful spectrum. See
> 
> http://james.ahlstrom.name/quisk/
> 
> Although Quisk has a hardware module to support the K3 (and is reported
> to be ok with the K2), I intend to write a hardware module for Quisk so
> it integrates better with my setup (eg compensate for the offset caused
> by the Softrock, and for the way the K2 adjusts its BFO frequency
> between modes and filter bandwidths without telling me). This will take
> a while as I have to learn Python first and generally get back into
> writing software after a long absence.

That looks quite interesting.  I've seen it before and as I play with my
K3 I'm thinking that I ought to get the Xverter board so I can play with
some pan adapter software.

> It occurs to me that I should probably write a hardware module so that
> Quisk will talk to hamlib via rigctld. This will be phase 2 as I will
> first adapt the K3 module and use a serial port where I can see what's
> happening!
> 
> What I would really like to do is find a way of sharing the K2 between
> gpredict and Quisk so that I can spot on the panadapter a satellite
> contact or CQ somewhere within the passband, click on this, then let
> gpredict take over the tracking.  In the man page for rigctld I see
> this:
> 
> This allows multiple user programs to share one radio (this needs
> testing)
> 
> Can anyone give me some details of what is/isn't/might be possible?

rigctld uses a network socket to communicate with applications.  If your
application doesn't support socket communication to rigctld directly,
not to worry!  Stephane added a backend to Hamlib that is a part of the
linked libary code, rig model 2, NET rigctl.

As I now have a K3, let me know of any troubles as I have reworked the
K3/K2 code in the current SVN.

73, de Nate >>

--

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Ham radio, Linux, bikes, and more: http://n0nb.us/index.html

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
chris bryant | 4 Dec 2010 22:25
Picon

Re: rigctld and multiple programs

On Sat, 2010-12-04 at 07:51 -0600, Nate Bargmann wrote:

> As I now have a K3, let me know of any troubles as I have reworked the
> K3/K2 code in the current SVN.
> 

Using 1.2.13svn20101204 I've made a start going through all the hamlib
commands to see how they work with my K2. A few checks show it's
essentially there:

f, F - OK
m    - returns only a standard value for filter passband
M    - changes modes ok but can't set filter passband
v, V - OK
j,J  - OK
z, Z - OK
t, T - OK

(more to come)

Re m and M: the K2 has a basic command mode which I think must be close
to the Kenwood command set, and an extended command mode which has extra
functionality and would allow set/get of the filter passband parameter.
Before I delve into detail, have you had any test results back for this?

73

Chris g3wie

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
Nate Bargmann | 5 Dec 2010 01:40
Picon
Favicon
Gravatar

Re: rigctld and multiple programs

* On 2010 04 Dec 15:27 -0600, chris bryant wrote:
> On Sat, 2010-12-04 at 07:51 -0600, Nate Bargmann wrote:
> 
> > As I now have a K3, let me know of any troubles as I have reworked the
> > K3/K2 code in the current SVN.
> > 
> 
> Using 1.2.13svn20101204 I've made a start going through all the hamlib
> commands to see how they work with my K2. A few checks show it's
> essentially there:
> 
> f, F - OK
> m    - returns only a standard value for filter passband
> M    - changes modes ok but can't set filter passband

Hi Chris.

It appears that the K2 follows the TS-570S command set fairly well and
doesn't have as many extensions as that K3.

> v, V - OK
> j,J  - OK
> z, Z - OK
> t, T - OK
> 
> (more to come)

Another to test is split and the associated split commands.

> Re m and M: the K2 has a basic command mode which I think must be close
> to the Kenwood command set, and an extended command mode which has extra
> functionality and would allow set/get of the filter passband parameter.
> Before I delve into detail, have you had any test results back for this?

No actual test results for the K2.  In elecraft.c is a rig_open function
called "elecraft_open" that tests for the presence of either a K2 or K3.  
If you start rigctl with the -vvvvv switch, you should see some output 
that identifies the K2 command level.  Actually, that function needs 
testing with a K2 to make sure it doesn't break.

Once determined, the elecraft_open function sets a variable in the k2.c or
k3.c backend which override functions can use to determine how to
process certain commands such as FW to get/set the filter bandwidth.  If
you'd like to code the k2.c backend, the k3.c may be helpful.  Or I can
code and you can test.  ;-)

Anyway, glad to have a K2 owner aboard so we can get good Hamlib support
on these radios.

73, de Nate >>

--

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Ham radio, Linux, bikes, and more: http://n0nb.us/index.html

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
Chris Bryant | 5 Dec 2010 11:04
Picon

Re: rigctld and multiple programs

On Sat, 2010-12-04 at 18:40 -0600, Nate Bargmann wrote:
>  
> Hi Chris.
> 
> It appears that the K2 follows the TS-570S command set fairly well and
> doesn't have as many extensions as that K3.
> 

Hi Nate

That's correct, it has some extensions but not some of the really useful
(to me) ones
> 
> Another to test is split and the associated split commands.
> 
I'll go through the entire set and report back

> > Before I delve into detail, have you had any test results back for this?
> 
> No actual test results for the K2.  In elecraft.c is a rig_open function
> called "elecraft_open" that tests for the presence of either a K2 or K3.  
> If you start rigctl with the -vvvvv switch, you should see some output 
> that identifies the K2 command level.  Actually, that function needs 
> testing with a K2 to make sure it doesn't break.
> 

I did do that, but thought I wouldn't clutter the mailing list if you
had already seen some output. Here goes...

chris <at> bonobo:~/software/hamlib/hamlib-1.2.13svn$ rigctl -r /dev/ttyS0 -m
221 -vvvvv
rigctl, Hamlib 1.2.13svn
Report bugs to <hamlib-developer <at> lists.sourceforge.net>

rig:rig_init called 
rig: loading backend kenwood
initrigs2_kenwood called
rig_register (213)
...
...
rig_register (219)
kenwood_init called
kenwood_init: if_len = 38
rig:rig_open called 
elecraft_open called
verify_kenwood_id called
kenwood_get_id called
kenwood_transaction called
kenwood_transaction: cmdstr = ID
TX 3 bytes
0000    49 44 3b                                           ID;
RX 6 characters
0000    49 44 30 31 37 3b                                  ID017;
verify_kenwood_id: Rig ID is ID017
elecraft_get_extension_level called
kenwood_safe_transaction called
kenwood_transaction called
kenwood_transaction: cmdstr = K2
TX 3 bytes
0000    4b 32 3b                                           K2;
RX 4 characters
0000    4b 32 30 3b                                        K20;
elecraft_get_extension_level: Extension level is 0, K20
elecraft_get_extension_level called
kenwood_safe_transaction called
kenwood_transaction called
kenwood_transaction: cmdstr = K3
TX 3 bytes
0000    4b 33 3b                                           K3;
read_string: timedout without reading a character
TX 3 bytes
0000    4b 33 3b                                           K3;
read_string: timedout without reading a character
TX 3 bytes
0000    4b 33 3b                                           K3;
read_string: timedout without reading a character
TX 3 bytes
0000    4b 33 3b                                           K3;
read_string: timedout without reading a character
elecraft_get_extension_level: Cannot get K2|K3 ID
elecraft_open: K3 probe failed
elecraft_open: K2 level is 0, K20
elecraft_open: K3 level is 0, K20
kenwood_get_vfo_if called
kenwood_get_if called
kenwood_safe_transaction called
kenwood_transaction called
kenwood_transaction: cmdstr = IF
TX 3 bytes
0000    49 46 3b                                           IF;
RX 38 characters
0000    49 46 30 30 30 30 31 38 35 33 30 30 30 20 20 20
IF00001853000   
0010    20 20 2b 30 36 38 30 30 31 20 30 30 30 32 31 30      +068001
000210
0020    30 30 30 31 20 3b                                  0001 ;
Opened rig model 221, 'K2'
Backend version: 0.8, Status: Beta

> Once determined, the elecraft_open function sets a variable in the k2.c or
> k3.c backend which override functions can use to determine how to
> process certain commands such as FW to get/set the filter bandwidth.

Where you see in the -vvvvv output above    K2 level is 0, K20     this
says the K2 is in basic command mode. If we put it into extended command
mode K21 or K22 then some other useful (to me at least!) features become
available. As a general principle, is there a problem within the
software activating this extended mode? (I don't understand function
overriding in any detail).

>   If
> you'd like to code the k2.c backend, the k3.c may be helpful.  Or I can
> code and you can test.  ;-)

Perhaps that answers my question above - if extended mode is to be
supported, then a completely separate k2 backend is the way to go?
Regarding coding, I'm happy to take the latter approach. I've never got
to grips with c, I have to get into Python to do the quisk mods and my
ageing brain isn't going to appreciate being asked to do both at the
same time. 

> Anyway, glad to have a K2 owner aboard so we can get good Hamlib support
> on these radios.
> 
I would have declared my interest earlier, but my initial tests with
hamlib + gpredict + K2 worked so I didn't pursue it further. As well as
checking the rest of the current SVN backend, I'll fire up a terminal
emulator and start digging into the extended commands to see how they
work.

73  Chris g3wie

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d

Gmane