Commit graph

12770 commits

Author SHA1 Message Date
Nate Bargmann
40f63488fe
Release 4.7.2 2026-06-21 08:07:37 -05:00
Nate Bargmann
2e187d9006
Update NEWS for previous cherry-picks
Potential security fixes, GHSA-gpcq-c37x-pr4:

https://github.com/Hamlib/Hamlib/security/advisories/GHSA-gpcq-c37x-pr46

GHSA-f72v-7gmh-m9mj:

https://github.com/Hamlib/Hamlib/security/advisories/GHSA-f72v-7gmh-m9mj

X6100: Adjust X6100 S-meter Look Up Table.
2026-06-14 07:52:53 -05:00
Nannk
7b4ebd0380
Change x6100 S-meter LUT for v1.2.0 xiegu gui
(cherry picked from commit d5dd4d8150)
2026-06-14 07:22:30 -05:00
George Baltz N3GB
68e1458993
Make a padded copy of input so compare doesn't overread
Cleanup:
Fix typo and formatting
Move RIGCTLD_PASSWORDS from rig.h to rigctl_parse.h

(cherry picked from commit 11dbace230)
2026-06-12 09:05:06 -05:00
George Baltz N3GB
1eeed535ad
Turn passwords on again
(cherry picked from commit 039a4f8bfe)
2026-06-12 09:04:50 -05:00
George Baltz N3GB
d5ece94f0b
Move password status to connection specific data.
Fix memory leak in rigctld_password_check()

(cherry picked from commit cef2d9d3a9)
2026-06-12 09:04:38 -05:00
George Baltz N3GB
6d8eb8e31b
Infrastructure and setup for associating connection data with thread
Will allow rigctl_parse() routines access to connection data, without
  reworking all of the internal and external interfaces.

(cherry picked from commit b56f8d8f8a)
2026-06-12 09:04:27 -05:00
George Baltz N3GB
47a8c5eec0
Turn off passwords and their help text
Disable them until they work

(cherry picked from commit 7fc1389349)
2026-06-12 09:04:13 -05:00
George Baltz N3GB
f19ac5afc8
Fix unterminated string
Add debug print

(cherry picked from commit fa6ae2adba)
2026-06-12 09:04:01 -05:00
George Baltz N3GB
81bec0afc0
Don't return more than the caller expected
If more needed, call again.

(cherry picked from commit 7a35260b12)
2026-06-12 09:03:47 -05:00
George Baltz N3GB
47171005bf
Bend boundary->subscript conversion in the right direction.
Don't mess with binary data.

(cherry picked from commit a3a7f00d75)
2026-06-07 18:00:13 -05:00
George Baltz N3GB
3e3f78fc77
Only transfer relevant bytes.
(cherry picked from commit 587f7bb2c6)
2026-06-07 17:59:59 -05:00
Nate Bargmann
0ec99cbd47
Merge GitHub PR #2066 2026-05-31 10:31:41 -05:00
Nate Bargmann
01f9bbc0bf
Update NEWS for Xiegu X6100 power2mW fix 2026-05-29 20:52:38 -05:00
Johannes Schwab
3babb9b486
Fix power2mW for Xiegu X6100
(cherry picked from commit 1f054b2555)
2026-05-29 18:38:23 -05:00
Nate Bargmann
a5acb10b1c
Update NEWS for IC-705 power2mw fix 2026-05-29 17:56:56 -05:00
Daniele Forsi IU5HKX
0f5d04e19c
Fix power2mW for Icom IC-705 on PKT* modes
Adds the missing TX modes to fix incorrect power calculation when mode
is one of PKTAM PKTFM PKTLSB PKTUSB and makes the difference between
TX and RX modes more explicit.

(cherry picked from commit 75e050889d)
2026-05-29 17:39:38 -05:00
Nate Bargmann
eed7dacf50
Update NEWS for mkstemp fix
Add missing GitHub PR references.

Set 4.7.2 tentative release date to 15 Jun 2026.
2026-05-29 16:40:40 -05:00
Kai Pastor
c0b8ad76ef
Directly open the fd from mkstemp
(cherry picked from commit 6da787f024)
2026-05-29 16:08:45 -05:00
Daniele Forsi IU5HKX
7675766ba8 Fix ambiguous syntax of includes
Fixed by hand in gqrx.c and with:
perl -pe 's/<bandplan.h>/"bandplan.h"/' -i rigs/*/*.c
perl -pe 's/<serial.h>/"serial.h"/' -i rigs/*/*.c
perl -pe 's,<hamlib/rig.h>,"hamlib/rig.h",' -i rigs/*/*.h
2026-05-21 22:56:10 +02:00
Nate Bargmann
d3914f5014
Update news for Android build system update 2026-05-21 13:07:48 -05:00
Mike Del Tito
24df32553a
fix(ft710): add RIG_TARGETABLE_MODE
The FT-710 firmware supports the targeted MD0/MD1 forms for mode
read and write. Advertising the capability lets hamlib dispatch
mode operations on the non-current VFO directly.

The FT-710 like other similar Yaesu models is a single-receiver
with multiple VFO, and thus only has a single bandpass filter
slot. So we must apply the same workaround as the FTDX10 when
refetching state after a band-select, and avoid issuing the
(unsupported) `SH1` command.

This reverts the previous change in #2055 as this is a more
direct/complete fix for the physical VFO swap reported in #2056.

Fixes #2056, #2062

(cherry picked from commit e0af6f93e5)
2026-05-21 12:52:22 -05:00
William Goodspeed
0bff65511f
Add Android-specific flags to CXXFLAGS and LDFLAGS for correct linkage
Signed-off-by: William Goodspeed <goodspeed@anche.no>
(cherry picked from commit bbde232a0c)
2026-05-21 11:56:21 -05:00
Gong BI1XJT
cae32a398f
Add GitHub CI workflows for Android NDK build
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit 5ab5181314)
2026-05-21 11:56:07 -05:00
Gong BI1XJT
4c0209e4f1
Use regular C float instead of GLFloat to avoid portibility issues
In struct SensorData, GLFloat was used to store 3 floats. However, the
code doesn't perform any GLSL calculation on them. More, Termux doesn't
provide GLSL headers and fails to build. This commit refactos GLFloat
to float to avoid necessary header issues, etc.

Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit c24f8fee1f)
2026-05-21 11:55:47 -05:00
Gong BI1XJT
d6c6c9387d
Add README.android with cross-compilation instructions
Credit to Ladislav Vaiz (OK1ZIA) for the original 2012 Android port.

Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit bc830304a7)
2026-05-21 11:55:35 -05:00
Gong BI1XJT
24d85cc066
Remove old-fashioned and buggy Android.mk build system
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit 60fb8e5fa0)
2026-05-21 11:55:23 -05:00
Gong BI1XJT
b33a1550f3
Add check to Android Sensor API before building rotators/androidsensor
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit 7bde560dcc)
2026-05-21 11:55:12 -05:00
Gong BI1XJT
d8ec66258c
Correct the linkage of tests/* against Android Sensor rot
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit 1f2cebac17)
2026-05-21 11:54:59 -05:00
Gong BI1XJT
f61306c19c
Make pthread_cancel no-op on Android (unsupported)
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit dce66f854d)
2026-05-21 11:54:46 -05:00
Gong BI1XJT
355eb3dba5
Use an alternative version of now depreicated/removed ALooper_pollAll func
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit 19e8287f38)
2026-05-21 11:54:26 -05:00
Gong BI1XJT
02dbfd2cdf
Fix mis-included ndkimu header file
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit b182f72c4f)
2026-05-21 11:54:15 -05:00
Gong BI1XJT
c071c84e74
Add neccessary compiler flags for automake target
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
(cherry picked from commit 9a140c726e)
2026-05-21 11:54:01 -05:00
Nate Bargmann
41ad92136f
Merge Typo fixes from Daniele 2026-05-17 12:33:01 -05:00
Nate Bargmann
05c524457b
Update NEWS for FT-710 VFO swap fix 2026-05-17 12:30:28 -05:00
Mike Del Tito
e04b0c1354
Fix FT-710 VFO swap after cross-band tune
Avoid re-reading the sub-VFO mode after band change
on the FT-710 unless we are operating in split mode.

(cherry picked from commit 2ba3c406c3)
2026-05-17 12:17:17 -05:00
Daniele Forsi IU5HKX
caa5e09d24 Fix typos found with codespell 2026-05-15 00:02:54 +02:00
Daniele Forsi IU5HKX
53da8fad22 Add androidsensor to make dist
(cherry picked from commit 54fa13d9f0)
2026-05-14 23:57:20 +02:00
Daniele Forsi IU5HKX
afbbc40782 Sort list of makefiles
So it's easier to see what is missing.

(cherry picked from commit 7d8f19efa8)
2026-05-14 23:57:20 +02:00
Nate Bargmann
1dafaa7480
Update NEWS for C23 and DX-SR8 fixes 2026-05-06 17:11:51 -05:00
Jeff Sheldon
99d55f3c9d
alinco/dxsr8: fix serial configuration, timing, and control bugs
- serial_stop_bits corrected from 1 to 2 per protocol documentation;
  incorrect stop bits caused systematic transaction timing errors
- post_write_delay increased from 0 to 100ms to allow radio processing
  time between commands
- timeout increased from 200ms to 600ms to accommodate slower responses
- retry reduced from 3 to 1 to prevent command flooding on failure
- DXSR8_LEVEL_ALL advertised RIG_LEVEL_RF but implemented ATT and
  PREAMP; corrected capability flags accordingly
- set_mode NAR command acknowledgment timeout treated as non-fatal;
  radio executes the command correctly but does not reliably return
  OK within the timeout window — logs WARN instead of propagating error
- get_mode RR_NAR query removed; radio does not respond reliably
  causing systematic timeouts — normal passband returned always
- get_level ATT case 2 returned 10 instead of 20 (copy-paste error)
- get_level RFPOWER case 3 never matched radio response of 2,
  leaving val->f uninitialized in QRP mode

(cherry picked from commit b8eee851dc)
2026-05-06 16:51:24 -05:00
George Baltz N3GB
3a84b2dd29
Fix errors found by glibc 2.43
glibc implements some new parts of the C23 standard:
(Taken from https://download.opensuse.org/tumbleweed/iso/Changes.20260430.txt)

  * For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr,
    strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return
    pointers into their input arrays now have definitions as macros that
    return a pointer to a const-qualified type when the input argument is
    a pointer to a const-qualified type

and

  * The aforementioned change in ISO C23 of the declaration of bsearch,
    memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr,
    wcsstr, and wmemchr as const-preserving macros can lead to compilation
    issues in code not set up for it

This lead to some warnings about assigning returns from strchr(const, target)
  to non-const pointers, and then discovering that Hamlib was modifying
  those const parameters.

This commit aligns the const-ness of the offending parameters. Only affects
  internal functions in ampctl_parse.c, rigctl_parse.c and rotctl_parse.c,
  so API/ABI should not change.

(cherry picked from commit 7df5ae1a00)
2026-05-06 12:40:57 -05:00
Nate Bargmann
837e1ff82e
Merge GitHub PR #2045 2026-04-26 12:09:54 -05:00
Nate Bargmann
e134da5136
Update NEWS for Skywatcher rot_open 2026-04-26 12:06:32 -05:00
Mario Haustein
24d6d6b17f
Initialize motors of Skywatcher mount
To use the Skywatcher rotator, both motors have to by initialized. When
using the direct mode of the mounts hand control unit, this
initialization is performed by the hand control. We just need to set the
position.

When using the motor driver directly with a simple USB-RS232-adapter,
this init command must be sent before we are able to steer the mount.
This allows us to use the mount without cabeling up the whole hand
control unit.

(cherry picked from commit 5d0d5df3cf)
2026-04-26 11:52:08 -05:00
Daniele Forsi IU5HKX
fec049932e Remove duplicated line
(cherry picked from commit f91ec06df2)
2026-04-26 16:26:04 +02:00
Nate Bargmann
993a2f284b
Update NEWS for new model, Hamgeek uSDX 2026-04-24 14:16:14 -05:00
Nate Bargmann
eea7094ae7
Rename macro to quell warning
GCC on Debian 13 generated this warning:

  CC       hamgeek.lo
../../../../rigs/kenwood/hamgeek.c:71:9: warning: "BACKEND_VER" redefined
   71 | #define BACKEND_VER "20260423"
      |         ^~~~~~~~~~~
In file included from ../../../../rigs/kenwood/hamgeek.c:35:
../../../../rigs/kenwood/kenwood.h:33:9: note: this is the location of the previous definition
   33 | #define BACKEND_VER "20250515"
      |         ^~~~~~~~~~~

Renamimg the macro to USDX_BACKEND_VER quelled the warning.

(cherry picked from commit 07bd3b3650)
2026-04-24 13:18:09 -05:00
Leo Pizzolante
5bc8f19f13
Add Hamgeek uSDX
(cherry picked from commit 2691e10cee)
2026-04-24 13:17:54 -05:00
Nate Bargmann
3856ff650a
Update NEWS for most recent patches included in 4.7.2 2026-04-22 15:27:09 -05:00