Hamlib: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:


== Grig ==
== Grig ==
Grig is an app for controlling rigs and rotators.  
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
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 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.
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.
Line 36: Line 37:




I am trying my [[Kenwood TH-D74|Kenwood TH-D74A]] because it's sitting right next to me. Also, it has a built-in USB port. Very modern.  
I am trying my [[Kenwood TH-D74A]] 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
On [[Plover]] it looks like it's showing up on /dev/ttyACM0


<pre>
<pre>
rigctl -l | grep TH-D74
rigctl -l | grep TH-D74
rigctl -m 2042 -r /dev/ttyACM0
rigctl -m 2042 -r /dev/ttyACM0 -u
</pre>
</pre>
Well, that generates extensive output but I want to try Grig. Let's see what that takes.


=== Build Grig (in Docker?) ===
=== Build Grig (in Docker?) ===
cd ~/docker
git clone https://github.com/fillods/grig.git
cp ../Hamlib/bootstrap .
docker run --rm -ti -u root -v $(pwd):/home/homebuild/build -v /usr/local/grig:/usr/local/grig hamlib-build
This fails for me. Nearly worked, darn.
I went over to [[Bellman]] and built at the command line, the normal way, both Hamlib and Grig.
This installed into /usr/local/*
I think I can just copy everything over to Plover. Both are using Ubuntu. This worked.
grig -m 2042 -r /dev/ttyACM0 -p
Use rigctl -l to find the ID code (2042 for the TH-D74).


[[Category: Radio]]
[[Category: Radio]]

Latest revision as of 18:47, 28 June 2024

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-D74A 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 -u

Well, that generates extensive output but I want to try Grig. Let's see what that takes.

Build Grig (in Docker?)

cd ~/docker git clone https://github.com/fillods/grig.git cp ../Hamlib/bootstrap . docker run --rm -ti -u root -v $(pwd):/home/homebuild/build -v /usr/local/grig:/usr/local/grig hamlib-build

This fails for me. Nearly worked, darn.

I went over to Bellman and built at the command line, the normal way, both Hamlib and Grig. This installed into /usr/local/*

I think I can just copy everything over to Plover. Both are using Ubuntu. This worked.

grig -m 2042 -r /dev/ttyACM0 -p

Use rigctl -l to find the ID code (2042 for the TH-D74).