Commit Graph

3272 Commits

Author SHA1 Message Date
Nate Bargmann
9c0b8e352b autogen.sh: Check for autoreconf and use shell var 2012-10-09 21:13:56 -05:00
Nate Bargmann
30e58dfa67 configure.ac: rigmem XML support user optional
I found that building on Cygwin that when libxml2 is installed, MSYS
fails the compile as libxml2 is installed outside the MSYS idea of
'root'.  As this feature depends on an external library, give user the
option of compiling with this support.  Default is to not build rigmem
with XML support.
2012-10-08 22:23:14 -05:00
Nate Bargmann
26da1df586 configure.ac: Readability formatting
Assure shell tests do not test a null value.
2012-10-08 16:40:39 -05:00
Nate Bargmann
0232e30fc0 ABI backward compatibility enhancement
Use the libtool link mode argument '-version-info' to set the Hamlib 3
ABI to be compatible with Hamlib 1.2 ABI.  As the current ABI has not
been changed or removed, we should be able to maintain backward
compatibility.  The libtool docs state that so long as the ABI is only
added to, backward compatibility should be maintained.

My idea here is to be able to have presently compiled programs be able
to use binary libraries of Hamlib 3 without recompiling.  So far I have
tested this locally on Linux and Windows.  More testing is welcome.
2012-10-08 13:07:35 -05:00
Nate Bargmann
52be3c47b8 Provide libltdl in source tarballs
Initializing libltdl is now done by the LTDL_INIT macro in configure.ac.
This now creates a libltdl directory in the tree (not tracked in Git)
when autoreconf is run.  The downside is that this complicates the build
a little bit with the advantage that the build can now take place on a
system that does not have libltdl-dev installed as Hamlib will build on
such systems by passing the '--with-included-ltdl' flag to the configure
script.  In particular, this simplifies the build on Linux for the mingw32
host by not having to run libtoolize manually and assures that libltdl
is built with the same build and host architectures as Hamlib.

Now check if '--with-included-ltdl' has been passed to configure and if
not, only then test for the presence of an installed ltdl.h.

Commented out AM_MAINTAINER_MODE macro.  It is recommended by the
Automake manual that this macro and its configure options not be used as
the Autotools system is designed to regenerate its files.  Let me know
if this is problem as it can be reversed easily enough.  The autogen.sh
script no longer passes the '--enable-maintainer-mode' option to
configure when bootstrapping the build system from Git.

Minor edits in configure.ac to improve readability.

Updated build-win32 files in scripts/
2012-10-07 08:31:10 -05:00
Nate Bargmann
674d4375db IC-756: Remove supported commands per AK6I
Darrel, AK6I, has an IC-756 (non-Pro model) and reports several
functions are not supported and suggested they be modified.
(cherry picked from commit 11033470f0)
2012-10-05 12:47:07 -05:00
Nate Bargmann
b1c4fd9a00 LICENSE: Add 2012, format for 80 columns
(cherry picked from commit 1ab8cb267f)
2012-10-05 12:46:36 -05:00
Nate Bargmann
8aa01114c6 LICENSE: Bump copyright date to 2012
Expand acronyms and point readers to other resources for Hamlib.
(cherry picked from commit b2a00f0f4c)
2012-10-05 12:46:24 -05:00
Nate Bargmann
02ef0d7ce0 Merge branch 'master' of ssh://hamlib.git.sourceforge.net/gitroot/hamlib/hamlib
Conflicts:
	macros/ax_python_devel.m4

Kamal's update was corrected by a newer version of
macros/ax_python_devel.m4 I had applied earlier.
2012-10-05 12:38:02 -05:00
Nate Bargmann
55d034c834 Build system: Syntax and formatting cleanup
Cleaned up M4sh syntax for variable quoting, replaced shell 'if'
conditionals with M4sh AS_IF macro and shell 'case' with AS_CASE macro.
Properly quoted macro variables.  Added comments to configure.ac
describing actions, commented out obsolete macros, commented obsolecent
macros, and added comments for major sections.

Corrected a Mingw linker error on the .EXE files adding
'--enable-auto-import' to their LD flags.  Testing this commit on win32
shows that rigctld is now working properly.  Will need to port this to
the Stable branch and test.

Replaced older local macros with newer replacements from GNU Autoconf
archive.
2012-09-27 14:22:07 -05:00
Nate Bargmann
ea47d89f3f configure.ac: Quell autoconf obsolete warnings
Using the -Wall switch to autoconf/autoreconf revealed a number of
obsolete macros.  At the moment, offending macros have been commented
out using 'dnl'.  They will be removed at some later date.
2012-09-25 22:29:30 -05:00
Nate Bargmann
59d1e3317b autogen.sh: Clean up syntax
Standardize all variable names to be upper case.
Move 'cd' command to improve readability.
2012-09-25 14:40:42 -05:00
Kamal Mostafa
3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Kamal Mostafa
790ac8075d Do not let macros/ac_python_devel.m4 trash CPPFLAGS and LIBS
A macro here seems to expect ac_save_LIBS and ac_save_CPPFLAGS to
be set on entry (by configure?) but configure doesn't do any such
thing, so that would trash any pre-set CPPFLAGS and LIBS when it
runs (making ./configure CPPFLAGS=something fail to work).
2012-08-21 16:45:13 -07:00
Nate Bargmann
21e59a67eb vx1700.c: correct manufacturer name typo 2012-07-05 10:14:33 -05:00
Nate Bargmann
dcb85d45bb README.rotorez: fix function name typo 2012-07-05 10:01:51 -05:00
Nate Bargmann
334e845d4f Test for PB width < 0, normal PB, or +- limits
Use the absolute value of any negative value that may be passed in via
the width parameter to set_mode.

If RIG_PASSBAND_NORMAL is passed in, call rig_passband_normal() to
determine the normal width for the mode before setting the bandwidth.

The width parameter is tested against wide and narrow filter values and
set to the returned values as upper and lower limits if width falls out
of those bounds.
(cherry picked from commit bb6c6493e1)
2012-06-28 18:11:33 -05:00
Nate Bargmann
cd1f0cbb5f Test for passband width < 0 or normal passband
Use the absolute value of any negative value that may be passed in via
the width parameter to set_mode.

If RIG_PASSBAND_NORMAL is passed in, call rig_passband_normal() to
determine the normal width for the mode before selecting the correct
filter (needs testing).
(cherry picked from commit 94ea3ced4c)
2012-06-28 18:11:10 -05:00
Larry Gadallah
531d45192f AR7030+: Error reading signal strength for low signal levels.
SF Bug ID 3527331

Action: Using rigctl, request signal strength (STRENGTH) for
a low signal level (~ < -100 dBm)
Expected result: Read a signal level of -100 or less
Actual result: Impossibly large negative value is returned.

Error found in initialization of a variable. Some (useful)
instrumentation was also added to help with future debugging.
2012-06-23 17:24:20 +02:00
Stephane Fillod
eb8fc66675 winradio: fix ineffective packed attribute 2012-06-23 16:51:13 +02:00
Stephane Fillod
3d93b8ccbb win32termios: fix warnings found by w64-mingw32 4.6.x, plus misc rxtx update 2012-06-23 16:43:09 +02:00
Stephane Fillod
874ca8c79d allow seamless access to ports higher than COM9 2012-06-23 16:40:29 +02:00
Stephane Fillod
fb43df0ba6 Properly detect getaddrinfo() under newer mingw-w64 2012-06-23 16:16:12 +02:00
Stephane Fillod
8b41f25aa8 GS-232A: Fix wrong end of line in commands
Similar to c78952310a, and
as described in page 15 of the user manual for the Yaesu GS-232A,
remove the extra line feed when sending commands.
2012-06-11 23:30:44 +02:00
Stephane Fillod
c78952310a GS-232B: Fix frequent hangs because of wrong end of line
From Paul:
" ...   I am using the Win32 hamlib program, rotctl.exe
version 1.2.15.1 with a Yaesu GS-232B antenna rotator controller interface
device.  Rotctl.exe is not operating as expected however.  It frequently
hangs on some of the commands.  I have successfully commanded the
controller using a dumb terminal and I have watched the characters that are
sent with a scope.  It appears that the hamlib rotctl.exe is sending
incorrect line termination characters when sending out commands.  It should
send carriage return only ("\r") and not carriage return and line feed
("\r\n") as it is currently doing.

I have attached page 15 from the user manual for the Yaesu GS-232B
controller interface device (also found at
http://gatorradio.org/Manuals/Yaesu_GS-232B_Manual.pdf) which shows the
proper line terminators."

Signed-off-by: Paul Lafferty <plaff65@gmail.com>
Signed-off-by: Stephane Fillod <fillods@users.sf.net>
2012-06-09 19:04:49 +02:00
Nate Bargmann
600be45fb8 Note that libltdl-dev is needed for build
Other minor edits.

(Same patch as e26bdae56e in Hamlib-1.2.15
branch.)
2012-06-02 07:56:11 -05:00
Nate Bargmann
1d6a7249fb TS950 now uses kenwood_get_mode_if()
Like other Kenwood rigs of its vintage, the TS-950 series provides the
mode information in the IF command response.  Filter bandwidth is
set/read using the FL command.
2012-06-02 07:18:40 -05:00
Michal Demin
de329c1ed7 Read eeprom value for digital mode from FT-857
From Michal:

"I have been playing a lot recently with PSK modes using fldigi. I have
noticed that the yaesu ft-857 backend doesn't distinguish between upper
and lower sideband digital mode (menu item 38).  This causes lot of
trouble on bands where USB is used (when QSY button is pressed in
fldigi, or when calculating the real QSO frequency).

With some use of undocumented CAT features and some research I have
put together small patch, that reads EEPROM data. When SW asks hamlib
what mode is being used, hamlib will also consider the
value from eeprom.

When changing the mode in the menu, new value will become available in
the EEPROM _after_ pressing the "FUNC" button.

Setting mode from SW is left untouched, as writing to EEPROM is
potentially dangerous (and I don't feel like destroying my rig, yet)"

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-05-15 08:26:58 -05:00
Nate Bargmann
e8d429fc45 Minor edits to clarify shell commands. 2012-05-12 21:11:52 -05:00
Martin Ewing
6bdd1a6aa9 Trim TS950 commands that are not provided by CAT 2012-03-20 22:07:55 -04:00
Nate Bargmann
01ab10bf10 Include backend specific notes with 'make dist'
(cherry picked from commit 20814924b2)
2012-03-01 21:23:16 -06:00
Nate Bargmann
47ec7efdb3 Update man pages for sorted -l output
The output from [rig|rot]ctl[d] using the -l|--list option is now sorted
by model number in ascending order.  Document it.
(cherry picked from commit 45def7bbcf)
2012-03-01 21:22:49 -06:00
Martin Ewing
57ccb20c64 Increment Jupiter version 2012-03-01 20:25:19 -05:00
Martin Ewing
bea1a0ef3a remove debug stmt 2012-02-29 23:15:55 -05:00
Martin Ewing
9a36fc277d implement level settting and misc fixes 2012-02-29 23:12:42 -05:00
Nate Bargmann
f3be5c4323 Merge branch 'master' of ssh://hamlib.git.sourceforge.net/gitroot/hamlib/hamlib 2012-02-14 10:06:30 -06:00
Rob Frohne
62a4bd8363 Correct previous patch setting limits
I should have done more testing on my last patch for you.  I found a
bug, in that it wouldn't rotate for [0,-180).  That is now fixed in
this hd1780.c enclosed.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-02-14 10:02:40 -06:00
Nate Bargmann
417cb98d2e Tidy up rigctl --list output
Implemented hash table to temporarily store and sort the rig models by ID
to print the --list by model numbers.  Hash is implemented using
uthash.h, see http://uthash.sourceforge.net/

Suppressed rig backend register output by setting rig_debug_level to 0
for list output.

Removed riglist definition of RPC backend.
2012-02-13 15:28:42 -06:00
Nate Bargmann
c3bc66eafc Tidy up rotctl --list output
Implemented hash table to temporarily store and sort the rot models by ID
to print the --list by model numbers.  Hash is implemented using
uthash.h, see http://uthash.sourceforge.net/

Suppressed rot backend register output by setting rig_debug_level to 0
for list output.

Removed rotlist definition of RPC backend.
2012-02-13 15:28:03 -06:00
Nate Bargmann
b6a9206fc2 Patch from Frank, DG1SBG, to quell warning
(cherry picked from commit 7bbfac55fd)
2012-02-07 15:46:02 -06:00
Rob Frohne
4754d0027d Make HD-1780 obey rotation limits
"Patch to make the HD-1780 obey the limits of rotation and make those
defaults correct.  At my location, I need to set them a bit before
+/-180 to ensure that the rotor doesn't get torn up because the beam
will coast it past the stops."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
(cherry picked from commit 4df53cd292)
2012-02-06 07:15:38 -06:00
Nate Bargmann
ca0899ddc5 Update hard coded version value--need to fix. 2012-02-04 19:40:34 -06:00
Nate Bargmann
33f25820ac Fix bindings build by replacing *all* INCLUDES! 2012-02-04 07:51:25 -06:00
Nate Bargmann
a5f13e0056 Set AC_PREREQ to 2.67, enable Automake warnings
Deprecate the use of the INCLUDES variable in favor of the AM_CPPFLAGS
variable per Automake warnings and documentation.
2012-02-03 22:09:45 -06:00
Nate Bargmann
f3e732ff94 Use autoreconf to generate configure script.
Later Autotools documentation prefers the use of autoreconf to generate or
regenerate the configure script.  The autoreconf program is responsible
for running the various autotools in a correct order depending on the
macros used in configure.ac.
2012-02-03 21:45:24 -06:00
Nate Bargmann
8c145cfc6b Merge branch 'API_3'
Conflicts:
	.gitignore
	Makefile.am
	NEWS
	c++/Makefile.am
	configure.ac
	hamlib.spec.in
	rpcrig/rpcrig.x
	rpcrig/rpcrig_backend.c
	rpcrig/rpcrig_backend.h
	rpcrig/rpcrig_proc.c
	rpcrig/rpcrigd.c
	rpcrot/rpcrot.x
	rpcrot/rpcrot_backend.c
	rpcrot/rpcrot_backend.h
	rpcrot/rpcrot_proc.c
	rpcrot/rpcrotd.c
	src/Makefile.am
	tests/rigctl.1
	tests/rotctl.1
2012-02-03 15:03:39 -06:00
Nate Bargmann
b49e6c4dff Updates for 1.2.15 cycle 2012-02-02 20:40:55 -06:00
Nate Bargmann
be2fefcf18 Update version of modified backends
Per Stephane's request, updated the version string of backends modified
since 1.2.14 release.  Newly added backends were left alone.
2012-02-02 20:10:37 -06:00
Stephane Fillod
9646b90a28 win32termios: remove deadwood & keep naming space tidy 2012-01-30 23:39:16 +01:00
Stephane Fillod
cd79fca440 HiQSDR: misc caps changes 2012-01-30 23:25:35 +01:00