Jonny public | 26 Feb 16:11 2015
Picon

hamlib rotctl via GPIO posts

Hi,
I want to write a new module for the rotor control on the Raspberry PI.
I want to use to control the GPIO posts. The analog signals are to be 
queried via the GPIO ports. What are my options to configure the GPIO
ports flexible. How can I map a key-value construct? The other
possibility I can think of would be on the Environment.

many Greetings

Jonny dg9oaa

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Richard Shaw | 23 Feb 16:58 2015
Picon

ImportError with Fedora 20 x86_64

I have a bug report[1] for the following which I've been able to reproduce:

$ python testhamlib.py Traceback (most recent call last): File "testhamlib.py", line 2, in <module> import Hamlib File "/usr/lib64/python2.7/site-packages/Hamlib.py", line 28, in <module> _Hamlib = swig_import_helper() File "/usr/lib64/python2.7/site-packages/Hamlib.py", line 24, in swig_import_helper _mod = imp.load_module('_Hamlib', fp, pathname, description) ImportError: /usr/lib64/python2.7/site-packages/_Hamlib.so: undefined symbol: struct_Rot_get_position
What's strange is grepping through the library everything seems fine:
$ grep "struct_Rot_get_position" /usr/lib/python2.7/site-packages/_Hamlib.so Binary file /usr/lib/python2.7/site-packages/_Hamlib.so matchesSo what's gonig on here?


Thanks,
Richard

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1192849
------------------------------------------------------------------------------
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=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 22 Feb 15:18 2015
Picon

termios.c patch timeout

I seem to have problems sending email to this group from yahoo.com…so I've resubscribed under gmail…let's see how this works.

 

Patch in-line and attached

 

I was debugging termios.c and this patch fixes two small problems….two debug printf format problems and another one that causes an extra char to be read on timeout.

 

The extra char problem is easily duplicated by using the "w" command under rigtctl.  Most all other commands use fixed-length response strings which don't exhibit the problem.  But since "w" does not know how long the response should be it loops until it times out.  Every time it times out it would return 1 extra character (this was 100% repeatable on two different rigs).

 

Turns out it was a simple typo in the code as the read was using the write event instead of the read event.

 

diff --git a/lib/termios.c b/lib/termios.c

index 1133b63..6bf58ff 100644

--- a/lib/termios.c

+++ b/lib/termios.c

<at> <at> -509,7 +509,7 <at> <at> static int ClearErrors( struct termios_list *index, COMSTAT *Stat )

#ifdef DEBUG_ERRORS

        if ( ErrCode )

        {

-               printf("%i frame %i %i overrun %i %i  parity %u %i brk %i %i\n",

+               printf("%i frame %i %i overrun %li %i  parity %u %i brk %i %i\n",

                        (int) ErrCode,

                        (int) ErrCode & CE_FRAME,

                        index->sis->frame,

<at> <at> -1445,7 +1445,7 <at> <at> int win32_serial_read( int fd, void *vb, int size )

#ifdef DEBUG_VERBOSE

         /* warning Roy Rogers! */

         sprintf(message, " ========== ReadFile = %i %s\n",

-                ( int ) nBytes, (char *) dest + total );

+                ( int ) nBytes, *((char *) dest + total) );

         report( message );

#endif /* DEBUG_VERBOSE */

 

<at> <at> -3306,7 +3306,7 <at> <at> int  win32_serial_select( int  n,  fd_set  *readfds,  fd_set  *writefds,

                SetCommMask( index->hComm, index->event_flag );

                ClearErrors( index, &Stat );

                if ( !WaitCommEvent( index->hComm, &dwCommEvent,

-                       &index->sol ) )

+                       &index->rol ) )

                {

                        /* WaitCommEvent failed probably overlapped though */

                        if ( GetLastError() != ERROR_IO_PENDING )

<at> <at> -3320,7 +3320,7 <at> <at> int  win32_serial_select( int  n,  fd_set  *readfds,  fd_set  *writefds,

                    be needed

                */

                ClearErrors( index, &Stat );

-               wait = WaitForSingleObject( index->sol.hEvent, 100 );

+               wait = WaitForSingleObject( index->rol.hEvent, 100 );

                switch ( wait )

                {

                        case WAIT_OBJECT_0:

 

Attachment (termios.diff): application/octet-stream, 1707 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=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 21 Feb 17:58 2015
Picon

termios Debug patch

Fix incorrect printing of char as string

Mike W9MDB

 

diff --git a/lib/termios.c b/lib/termios.c

index 1133b63..5a3c11a 100644

--- a/lib/termios.c

+++ b/lib/termios.c

<at> <at> -1444,8 +1446,8 <at> <at> int win32_serial_read( int fd, void *vb, int size )

                err = ReadFile( index->hComm, dest + total, size, &nBytes, &index->rol );

#ifdef DEBUG_VERBOSE

         /* warning Roy Rogers! */

-        sprintf(message, " ========== ReadFile = %i %s\n",

-                ( int ) nBytes, (char *) dest + total );

+        sprintf(message, " ========== ReadFile = %i %c\n",

+                ( int ) nBytes, *((char *) dest + total) );

         report( message );

#endif /* DEBUG_VERBOSE */

 

------------------------------------------------------------------------------
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=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Michael Black | 21 Feb 16:40 2015
Picon

termios debug warning

Small patch to fix format warning on termios.c that occurs when you turn on DEBUG

Mike W9MDB

 

index 1133b63..c99baac 100644

--- a/lib/termios.c

+++ b/lib/termios.c

<at> <at> -509,7 +509,7 <at> <at> static int ClearErrors( struct termios_list *index, COMSTAT *Stat )

#ifdef DEBUG_ERRORS

        if ( ErrCode )

        {

-               printf("%i frame %i %i overrun %i %i  parity %u %i brk %i %i\n",

+               printf("%i frame %i %i overrun %li %i  parity %u %i brk %i %i\n",

                        (int) ErrCode,

                        (int) ErrCode & CE_FRAME,

                        index->sis->frame,

 

------------------------------------------------------------------------------
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=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Steve Netting | 20 Feb 17:30 2015

FT847 Support


Hi All,

I've had a number of issues using an FT847 with Hamlib.  After a bit of
digging it seems the maintainer of the 847 support in Hamlib left around
2002 (?) and the hamlib support hasn't been updated since.

Basic CAT control works ok, however anything involving VFO B fails.  This
makes the 847 useless for satellite work.

I also read that the updated 847 CAT firmware (~2001?) is largely
undocumented.  However, HRD (under Windows) does read/set VFO A&B
correctly so I'm hoping someone, somewhere has a list of valid CAT
commands (or they can be snooped from HRD?).

If it's simply down to lack of a maintainer, I'll happily try and figure
out the source myself, providing I can find the CAT spec online.

Is my understanding of the situation correct?   I'm not a programmer but
I'm happy to give it a go if needed.

Thanks,

Steve M0SPN

------------------------------------------------------------------------------
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=190641631&iu=/4140/ostg.clktrk
Bob Nielsen | 19 Feb 00:33 2015
Picon

Beta test of IC-7100 backend

Version tested: hamlib-3.0~git-d4a2240-20150209
Xubuntu 14.04.1 LTS 64-bit, Linux kernel 3.13.0-45

Some functions worked; some did not.  Those which did not reported errors.

Here are the results of the commands requested in README.betatester:

n7xy <at> n7xy-desktop:~$ rigctl -vvvvv -r /dev/ttyUSB0 -m 370
rigctl, Hamlib 3.0~git
Report bugs to <hamlib-developer <at> lists.sourceforge.net>

rig:rig_init called 
icom: _init called
rig_register (355)
rig_register (309)
rig_register (310)
rig_register (311)
rig_register (313)
rig_register (314)
rig_register (315)
rig_register (319)
rig_register (320)
rig_register (321)
rig_register (322)
rig_register (367)
rig_register (323)
rig_register (346)
rig_register (324)
rig_register (328)
rig_register (330)
rig_register (326)
rig_register (327)
rig_register (347)
rig_register (357)
rig_register (363)
rig_register (329)
rig_register (362)
rig_register (345)
rig_register (356)
rig_register (360)
rig_register (370)
rig_register (361)
rig_register (331)
rig_register (312)
rig_register (316)
rig_register (332)
rig_register (334)
rig_register (344)
rig_register (368)
rig_register (335)
rig_register (369)
rig_register (336)
rig_register (358)
rig_register (337)
rig_register (338)
rig_register (339)
rig_register (340)
rig_register (341)
rig_register (342)
rig_register (343)
rig_register (366)
rig_register (303)
rig_register (304)
rig_register (306)
rig_register (307)
rig_register (302)
rig_register (352)
rig_register (353)
rig_register (351)
rig_register (364)
rig_register (365)
rig_register (354)
rig_register (371)
rig:rig_open called 
Opened rig model 370, 'IC-7100'
Backend version: 0.7, Status: Untested

Rig command: _
Info: None

Rig command: f   (successful)
write_block(): TX 6 bytes
0000    fe fe 88 e0 03 fd                                   ......          
read_string(): RX 6 characters
0000    fe fe 88 e0 03 fd                                   ......          
read_string(): RX 11 characters
0000    fe fe e0 88 03 00 00 10 07 00 fd                    ...........     
Frequency: 7100000

Rig command: F 14010000   (successful)
Frequency: write_block(): TX 11 bytes
0000    fe fe 88 e0 05 00 00 01 14 00 fd                    ...........     
read_string(): RX 11 characters
0000    fe fe 88 e0 05 00 00 01 14 00 fd                    ...........     
read_string(): RX 6 characters
0000    fe fe e0 88 fb fd                                   ......          

Rig command: m   (successful)
write_block(): TX 6 bytes
0000    fe fe 88 e0 04 fd                                   ......          
read_string(): RX 6 characters
0000    fe fe 88 e0 04 fd                                   ......          
read_string(): RX 8 characters
0000    fe fe e0 88 04 03 03 fd                             ........        
write_block(): TX 7 bytes
0000    fe fe 88 e0 1a 03 fd                                .......         
read_string(): RX 7 characters
0000    fe fe 88 e0 1a 03 fd                                .......         
read_string(): RX 8 characters
0000    fe fe e0 88 1a 03 04 fd                             ........        
Mode: CW
Passband: 250

Rig command: M
Mode: SSB
Passband: 3000
icom: Unsupported Hamlib mode 0
set_mode: error = Invalid parameter

Rig command: v
get_vfo: error = Feature not available

Rig command: V
VFO: b
icom: Unsupported VFO 0
set_vfo: error = Invalid parameter

Rig command: G
Mem/VFO Op: UP
vfo_op: error = Feature not available

Rig command: q
rig:rig_close called 
rig:rig_cleanup called 

------------------------------------------------------------------------------
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=190641631&iu=/4140/ostg.clktrk
Bill Somerville | 13 Feb 19:26 2015

Pull request: Clarify CAT terminator ambiguities and fix strncpy() error.

Hi Nate & All,

The following changes since commit 5a57de16fb01414d9dd6b0fb344d13b0ac0d2db5:

   Merge branch 'bergerspencer-yaesu_cache_invalidation' (2015-02-09 
15:16:13 -0600)

are available in the git repository at:

   git://git.code.sf.net/u/bsomervi/hamlib kenwood_strncpy_error

for you to fetch changes up to 4a74db654a1e9be8af3d8d6a09271009cd055ff8:

   Clarify the handling of Kenwood CAT message terminators (2015-02-13 
18:07:10 +0000)

----------------------------------------------------------------
Bill Somerville (2):
       Use local buffer in kenwood transaction funciton
       Clarify the handling of Kenwood CAT message terminators

  kenwood/elecraft.c |   4 +-
  kenwood/flex6xxx.c |   6 +-
  kenwood/ic10.c     |   2 +-
  kenwood/k2.c       |  12 ++--
  kenwood/k3.c       |  22 +++----
  kenwood/kenwood.c  | 176 
+++++++++++++++++++++++++++++------------------------
  kenwood/kenwood.h  |   4 +-
  kenwood/r5000.c    |   2 +-
  kenwood/th.c       |  77 ++++++++++++-----------
  kenwood/thg71.c    |  12 ++--
  kenwood/tmd710.c   |  12 ++--
  kenwood/tmv7.c     |  22 +++----
  kenwood/transfox.c |   2 +-
  kenwood/ts2000.c   |  70 +++++++++++----------
  kenwood/ts2k.c     |   2 +-
  kenwood/ts440.c    |   2 +-
  kenwood/ts480.c    |  24 ++++----
  kenwood/ts570.c    |  62 +++++++++----------
  kenwood/ts711.c    |   2 +-
  kenwood/ts811.c    |   2 +-
  kenwood/ts850.c    |  62 +++++++++----------
  kenwood/ts870s.c   |  49 +++++++--------
  kenwood/ts940.c    |   2 +-
  kenwood/xg3.c      |   4 +-
  24 files changed, 318 insertions(+), 316 deletions(-)

73
Bill
G4WJS.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Allen, Wayde | 5 Feb 17:25 2015

New Rotator

I'm working on renovating an old dish antenna and would like to make use of hamlib to provide the control interface.
>From what I've read so far, it looks like the simplest approach would be to build my interface software to
match an existing interface protocol. I'm thinking that perhaps Easycomm? Does this approach make sense?

Finally, my development platform is Ubuntu 14.04 LTS. The dish is being controlled by a Galil DMC-4123
motion controller. It appears that I need to setup the hamlib rotator interface using:

   rotctld -m 202 -r /dev/mydevice

Does /dev/mydevice require that my interface be compiled as a device driver, or is this a named pipe, or ...?

- Wayde
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Ian_Wade_G3NRW | 30 Jan 10:08 2015

TS-590SG and TS-590S firmware/software updates: the full story.


TS-590SG and TS-590S firmware/software updates: the full story.

Today (29 January), Kenwood released firmware and software updates for
the TS-590SG and TS-590S. Specifically:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TS-590SG:
==========

*** Firmware v1.01

*** ARCP-590G v1.01
      (You need to install this to be compatible with firmware v1.01).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TS-590S:
==========

*** Firmware v2.00
      (This is a major upgrade, changing the function of several
      TS-590S controls. When you install it, it automatically does
      a full radio reset).

*** ARCP-590 v2.00
      (You need to install this to be compatible with firmware v2.00).

*** ARHP-590 v2.00
      (You need to install this to be compatible with firmware v2.00).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

REMINDER: The TS-590SG and TS-590S are two entirely different radios.
The firmware and software for one radio will not work on the other.

Also, before updating the firmware, remember to back up *all* the
radio's settings (including the front-panel controls that ARCP does not
back up). Details at:

http://homepage.ntlworld.com/wadei/TS-590S_HOWTO_firmware_q&a_v1.1.pdf

As usual, links to all Kenwood firmware and software products are
conveniently collected together in one place on the "TS-590 Family
Resources Page":

http://homepage.ntlworld.com/wadei/ts-590s.htm

--

-- 
73
Ian, G3NRW

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Bill Somerville | 24 Jan 16:16 2015

Pull request - positive command verification for Kenwood style CAT

Hi Nate & All,

this PR implements positive command verification for Kenwood style CAT 
rigs. It comes about after dealing with some of these rigs which 
sometime ignore commands or return a busy reply. Where no reply is 
normally expected the code now sends a benign second command ("ID;") to 
make sure something can be read. This avoids a costly time out and 
allows any unexpected response to be captured. The prior strategy was to 
flush any unexpected reply leaving us in the dark about failures.

There are also some rationalizations and re-factorings resulting from 
the above strategy.

Also a patch to recognise correctly the AFSK data modes of the Elecraft K2.

The following changes since commit 80f921954b93ef3be1bddf56f5bde30bd4e5e377:

   New IC-M700PRO backend (2015-01-21 23:57:08 +0100)

are available in the git repository at:

   git://git.code.sf.net/u/bsomervi/hamlib k2-afsk-modes

for you to fetch changes up to bfbb1adc4463726ef0457613ee5afd3b6a2f67b6:

   Improve command verification for Kenwood & Elecraft (2015-01-24 
14:59:59 +0000)

----------------------------------------------------------------
Bill Somerville (10):
       Elecraft K2 RTTY modes are not FSK
       Kenwood and Elecraft rigs sometimes ignore commands
       Removed kenwood_cmd function and replaced uses of it
       Allow for failed test command on the K2
       Elecraft K3 has 1 stop bit
       Kenwood TS-570 series IF returns current frequency
       Switch to "ID;" command for verification as no "AI;" on TS-840s
       Increase Elecraft K2 comms timeout and retries
       Switch Kenwood TS940 to generic kenwood CAT functions
       Improve command verification for Kenwood & Elecraft

  kenwood/elecraft.c |   11 +-
  kenwood/k2.c       |   46 +-
  kenwood/k3.c       |    2 +-
  kenwood/kenwood.c  | 3925 
++++++++++++++++++++++++++--------------------------
  kenwood/kenwood.h  |   54 +-
  kenwood/th.c       |   48 +-
  kenwood/tmd710.c   |    4 +-
  kenwood/ts570.c    |   14 +-
  kenwood/ts870s.c   |    1 +
  kenwood/ts940.c    |   48 +-
  10 files changed, 2118 insertions(+), 2035 deletions(-)

73
Bill
G4WJS.

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet

Gmane