Commit Graph

3437 Commits

Author SHA1 Message Date
Julian Cable
0005b9a511 WinRadio G313: Updates from Julian Campbell
"I've re-written the hamlib backend to stream the audio, if and spectrum
pcm samples to simple file system objects.

If no path is given, streaming is not requested. If the path can't be
openned, no streaming is requested.

The file is openned non-blocking and overruns are just silently
discarded.

I've tested it using named fifos and if there is no active reader it
fails to open and if there is an active reader it streams fine.

Thats as simple as it can get.

In terms of the project files, I've put the wrg313api.c and wrg313api.h
files in the existing linradio subfolder of winradio.

The .h file is the g313 equivalent of the wrapi.h file already there.
The .c file actually just contains the dlopen and the assignments to the
function variables.

The actual API shared library is binary only (and 32-bit only), and not
included in my patch."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-10 07:37:11 -06:00
Nate Bargmann
f92d2ea0f7 IC-PCR1500/2500: Default write_delay to 0
Paul, KE7ZZ, reports the write_delay and post_write_delay defaults were
too long and recommends that these models work with the values set to 0.

Paul has analysis at:

http://arachnoid.com/JRX/#USB_Transaction_Logging_and_Analysis
2012-11-05 21:06:33 -06:00
Frank Goenninger
35c04bf033 ADAT fixes on Windows
"I have been testing again based on RC4 - and still found some issues on
Windows."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-10-30 20:01:36 -05:00
Nate Bargmann
61a5a8b969 NEWS: ADAT fixes, IC-R8500 AF_LEVEL 2012-10-29 15:02:44 -05:00
Frank Goenninger
06671cd6af adat updates from Frank, DG1SBG
Diffs for the ADAT TRX found to be required for stable operation of the
ADAT backend.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-10-29 06:31:24 -05:00
Nate Bargmann
e2bb0106a2 rigctl.1, rotctl.1: Document Q and q commands
Document expected behavior when the Q or q command is given.

Thanks to Jim, N2ADR, for the report.
2012-10-27 22:30:05 -05:00
Nate Bargmann
c775c92673 NEWS: Update for netrigctl_set_split_vfo() from N2ADR 2012-10-27 09:37:16 -05:00
Nate Bargmann
e942ab0a8e netrigctld.c: Add missing Set Split param--N2ADR
From the SourceForge tracker:

I am using version hamlib-1.2.15.2~rc3.  Start rigctl and specify rig 2
(rigctld). The command "s" (get_split_vfo) will return two parameters,
the spilt state (0 or 1) and the TX VFO name. The command "S"
(set_split_vfo) will send one parameter, the TX VFO name, but will not
send the split state (0 or 1).  This is incorrect. In the file
dummy/netrigctl.c change netrigctl_set_split_vfo() line 782:

len = sprintf(cmd, "S %s\n", rig_strvfo(tx_vfo));

to include the "split" paramater; perhaps:

len = sprintf(cmd, "S %d %s\n", split, rig_strvfo(tx_vfo));

Thanks to Jim, N2ADR for reporting this.
2012-10-27 08:56:15 -05:00
Nate Bargmann
3bd95bb5ce NEWS: Bring up to date to latest changes
icr8500: Add RIG_LEVEL_AF to has_set_level.  TNX John, EI7IG
2012-10-25 14:24:29 -05:00
Nate Bargmann
d54ec38c70 configure.ac: Remove previously dnl'ed lines
Also 'dnl' some more obsolecent macros
2012-10-23 05:33:34 -05:00
Nate Bargmann
3bb0556f9f rigmatrix.html target is conditional in tests/Makefile
If libgd-dev is not installed, an Automake conditional will disable the
rigmatrix.html target in tests/Makefile.  Optionally, this target may
also be disabled by use of the '--disable-html-matrix' option passed to
the configure script.  By default the configure script will enable the
target if the libgd development files are found and disable it when they
are not.
2012-10-17 21:06:03 -05:00
Nate Bargmann
2fea683ca1 Install build files rather than symlink
Previously, invoking autogen.sh would create symbolic links to needed
Autotools files in the tree only when working from a Git checkout
(source distributions have the files included).  Consideration of this
included the possibility of bugs if the Autotools packages were upgraded
on the developer's system that strange bugs could result.  Copying the
files means the tree is self contained until the next time autoreconf or
autogen.sh is run.

The top level Makefile.am included the variable $(subdirs) in both
SUBDIRS and DIST_SUBDIRS assignments.  While this variable may contain a
useful value, it is undocumented in the manuals.  Relying on it may
result in some directory being ommitted or other changes in the future,
so removing it from the assignments.
2012-10-13 19:09:46 -05:00
Nate Bargmann
19a0a4357b configure.ac: Place Autotools programs in build-aux
Autotools installs several programs to aid building Hamlib.  Have
Autotools place them in a separate directory.
2012-10-11 22:23:37 -05:00
Nate Bargmann
95ec564af2 Disable static builds by default
Static libs are generally not wanted so disable their builds by default.
Remove references to '--disable-static' from documentation and example
scripts.
2012-10-11 09:17:58 -05:00
Nate Bargmann
728128b55a Bring documentation up to date with recent changes
Document recent changes to configure and reference Hamlib 3 in this
branch.
2012-10-09 21:16:13 -05:00
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