example how to change baud rate

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2065 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.5
Stéphane Fillod, F8CFE 2006-02-20 22:40:26 +00:00
rodzic cc948ec3d8
commit 645dc96100
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -11,13 +11,15 @@ $rig = new Hamlib::Rig($Hamlib::RIG_MODEL_DUMMY);
# replace "/dev/Rig" with your path to serial port
$rig->set_conf("rig_pathname","/dev/Rig");
$rig->set_conf("serial_speed","9600");
$rig->open();
# 1073741944 is token value for "itu_region"
$rpath = $rig->get_conf("rig_pathname");
$rate = $rig->get_conf("serial_speed");
$region = $rig->get_conf(1073741944);
print "get_conf: path=\"$rpath\", ITU region=$region\n";
print "get_conf: path=\"$rpath\", baud rate=$rate, ITU region=$region\n";
$rig->set_freq(12000000, $Hamlib::RIG_VFO_A);