drowe67 / freedv-gui

GUI Application for FreeDV – open source digital voice for HF radio
https://freedv.org/
GNU Lesser General Public License v2.1
209 stars 52 forks source link

FreeDV uses /dev/ttyS0 for Icom radios regardless of configured settings #209

Closed tmiw closed 2 years ago

tmiw commented 2 years ago

Testing #194 with a (new to me) IC-705 and I'm currently unable to get CAT control working on macOS. Based on the debug output, Hamlib seems to be forcing /dev/ttyS0 regardless of the configured serial port:

rig_init(459): 0x7f9af4a6261c rs->comm_state==0?=0
rig_init: rig has VFO_A
rig_init: rig has VFO_B
rig_init: rig has VFO_MEM
icom_init called
0:icom.c(684):icom_init return(0) 
rig_token_lookup called for civaddr
rig_confparam_lookup called for civaddr
rig_set_conf called
rig_confparam_lookup called for 1
rig_set_conf: civaddr='0x0'
icom_set_conf called
                     -1:icom.c(4825):icom_set_conf return(0) 
                     -1:rig.c(712):rig_open entered
serial_open: /dev/ttyS0
serial_open(231): open failed#1
serial_open(231): open failed#2
serial_open(231): open failed#3
serial_open(231): open failed#4
serial_open: Unable to open /dev/ttyS0 - No such file or directory
port_open: serial_open(/dev/ttyS0) status=-6, err=No such file or directory
rig_open: rs->comm_state==0?=0
                     -1:rig.c(832):rig_open return(-6) IO error
port_open: serial_open(/dev/ttyS0) status=-6, err=No such file or directory
rig_open: rs->comm_state==0?=0
                     -1:rig.c(832):rig_open return(-6) IO error
port_open: serial_open(/dev/ttyS0) status=-6, err=No such file or directory
rig_open: rs->comm_state==0?=0
rig_open: rs->comm_state==0?=0
icom_cleanup called
                     -2:icom.c(721):icom_cleanup return(0) 

This doesn't seem to be related to the PR as nothing Hamlib related should have changed.

tmiw commented 2 years ago

Never mind, looks like a local config issue. I did sudo port uninstall hamlib and built FreeDV again and everything is good now. 👍