Re: [Hamlib-developer] API for changing port details
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Philip R. - G. <gm...@bt...> - 2023-02-06 19:53:27
|
Mike, I set the rigport to 192.168.1.204:12345 which is flrig on my SHACK computer. I am running on my development machine. Hamlib is still trying to connect to 127.0.0.1:12345 as per: initrigs4_gomspace: _init called rig_check_rig_caps: p1=5EC3A660, p2=5EC3FDAC, rig_model=5EC3A660, macro_name=5EC3FDAC rig_init: rig_model=FLRig FLRig rig_init: rig does not have tx_range!! rig_init: rig has VFO_A rig_init: rig has VFO_B 1:flrig.c(616):flrig_init entered flrig_init version 20221109.0 1:flrig.c(659):flrig_init returning(0) ZZALOG: Setting port path=198.168.1.204:12345 ZZALOG: Opening rig 1:rig.c(812):rig_open entered rig_settings_get_path: path=.hamlib_settings rig_settings_load_all: settings_file (.hamlib_settings): No such file or directory rig_open: cwd=C:\Users\pvros\Documents\dev\zzatools rig_open: C:\Users\pvros\Documents\dev\zzatools/hamlib_settings does not exist rig_open: async_data_enable=0, async_data_supported=0 rig_open: using network address 127.0.0.1:12345 network_init: WSAStartup OK network_open: hoststr=127.0.0.1, portstr=12345 connect to 127.0.0.1:12345 failed, (trying next interface): Network error 10061: No connection could be made because the target machine actively refused it. network_open: failed to connect to 127.0.0.1:12345 rig_open: rs->comm_state==0?=0 1:rig.c(1018):rig_open returning(-6) IO error flrig_cleanup flrig.c(1110):flrig_cleanup returning2(0) When I have flrig running on my development machine, I connect to that. I confirm as I can change the frequency and it changes in my app. Phil GM3ZZA Sent from Mail for Windows From: gm3zza Sent: 05 February 2023 19:29 To: mdb...@ya...; ham...@li... Subject: Re: [Hamlib-developer] API for changing port details Thanks Mike, That's what I thought I did. Just checking as I see the word 'deprecated' around some of the port definitions. Time to get some debug code added to my logger between the GUI and the hamlib interface. Phil GM3ZZA On 5 February 2023, at 17:46, Black Michael <mdb...@ya...> wrote: my_rig = rig_init(my_model); strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1); retcode = rig_open(my_rig); pathname for FLRig will be the IP address of the other machine and port 12345 192.168.1.1:12345 Mike W9MDB On Sunday, February 5, 2023 at 11:32:13 AM CST, gm3zza via Hamlib-developer <ham...@li...> wrote: What is the supported means of changing port details through the hamlib API? I have used changing a struct up until now. I have noticed that hamlib has been ignoring this for flrig and using the default 127.0.0.1:12345. This has worked up until now but I am looking to control flrig from another machine on my network. 73 Phil GM3ZZA _______________________________________________ Hamlib-developer mailing list Ham...@li... https://lists.sourceforge.net/lists/listinfo/hamlib-developer |