Hamlib: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
Line 27: Line 27:
docker run --rm -ti -u root -v $(pwd):/home/hamlib/build -v /usr/local/hamlib-alpha:/usr/local/hamlib-alpha hamlib-build
docker run --rm -ti -u root -v $(pwd):/home/hamlib/build -v /usr/local/hamlib-alpha:/usr/local/hamlib-alpha hamlib-build
/usr/local/hamlib-alpha/bin/rigctl
/usr/local/hamlib-alpha/bin/rigctl
</pre>
That gives me a command line program rigctl. Use a "?" to get a list of commands. Now I need to plug in a rig to ctl.
Here's a man page for it. https://www.mankier.com/1/rigctl
Other commands installed include
ampctl  ampctld  rigctlcom  rigctld  rigctlsync  rigctltcp  rigmem  rigsmtr  rigswr  rigtestlibusb  rotctl  rotctld
I am trying my [[Kenwood TH-D74]] because it's sitting right next to me. Also, it has a built-in USB port. Very modern.
On [[Plover]] it looks like it's showing up on /dev/ttyACM0
<pre>
rigctl -l | grep TH-D74
rigctl -m 2042 -r /dev/ttyACM0
</pre>
</pre>



Revision as of 02:49, 28 March 2023

A library for radio and rig control.

https://github.com/Hamlib/Hamlib

Grig

Grig is an app for controlling rigs and rotators.

Getting started I want to set up Grig + the Kenwood TM-D710A on Plover (Ubuntu Linux), so that I can test Hamlib with that radio

I am trying to use it in my Svxlink projects.

I need the latest versions of things to work on Plover, so I am building them from source code. I want to try building in Docker so that I can keep the changes to Plover contained.

Build Hamlib in Docker

It comes with instructions, here: https://github.com/Hamlib/Hamlib/tree/master/docker-build This will build and install hamlib in /usr/local/hamlib-alpha/.

cd ~/docker
https://github.com/Hamlib/Hamlib.git
cd Hamlib/docker-build/
# Install the toolchain in an image
docker buildx build -t hamlib-build .
cd ..
# Use the toolchain to actually compile and install hamlib on the host.
docker run --rm -ti -u root -v $(pwd):/home/hamlib/build -v /usr/local/hamlib-alpha:/usr/local/hamlib-alpha hamlib-build
/usr/local/hamlib-alpha/bin/rigctl

That gives me a command line program rigctl. Use a "?" to get a list of commands. Now I need to plug in a rig to ctl. Here's a man page for it. https://www.mankier.com/1/rigctl

Other commands installed include ampctl ampctld rigctlcom rigctld rigctlsync rigctltcp rigmem rigsmtr rigswr rigtestlibusb rotctl rotctld


I am trying my Kenwood TH-D74 because it's sitting right next to me. Also, it has a built-in USB port. Very modern. On Plover it looks like it's showing up on /dev/ttyACM0

rigctl -l | grep TH-D74
rigctl -m 2042 -r /dev/ttyACM0

Build Grig (in Docker?)