class

Kozai::Radio::Rigctld

Inherits Reference < Object

A client for hamlib's rigctld.

radio = Kozai::Radio::Rigctld.new("127.0.0.1", 4532)
radio.frequency = 145_800_000.0

Constants

DEFAULT_PORT = 4532

Default port rigctld listens on.

Constructors

new(host : String = "127.0.0.1", port : Int32 = DEFAULT_PORT, timeout : Time::Span = Hamlib::DEFAULT_TIMEOUT)
Source

Instance methods

close

Closes the connection.

Source
connected?

Whether a connection is currently open.

Source
frequency

The radio's current frequency in hertz.

Source
frequency=(hertz : Float64) : Float64

Sets the radio's frequency in hertz.

NOTE: sent as a whole number of hertz. rigctld expects an integer, and a decimal point makes some backends reject the command outright.

Source
mode

The radio's current mode and passband, such as {"USB", 2400}.

Source
set_mode(name : String, passband : Int32 = 0) : Nil

Sets the radio's mode, and optionally its passband in hertz.

A passband of zero asks the radio for its own default.

Source