Thread: [Hamlib-developer] Resource temporarily unavailable?
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: John R. <js...@ho...> - 2001-09-18 17:39:12
|
Hi, I'm hacking up testrig to try and put together an app to talk to my Icom 756Pro. Below is the code and the output that I get. Any idea why I see "Resource temporarily unavailable"? int main(int argc, char *argv[]) { RIG *my_rig; /* handle to rig (nstance) */ freq_t freq; /* frequency */ rmode_t rmode; /* radio mode of operation */ pbwidth_t width; vfo_t vfo; /* vfo selection */ int strength; /* S-Meter level */ int retcode; /* generic return code from functions */ fprintf(stdout, "(%s:%d) rig_load_backend\n", __FILE__, __LINE__); retcode = rig_load_backend("icom"); if (retcode != RIG_OK) { printf("rig_load_backend: error = %s \n", rigerror(retcode)); return -1; } fprintf(stdout, "(%s:%d) rig_init\n", __FILE__, __LINE__); my_rig = rig_init( 34 ); if (!my_rig) { fprintf(stderr, "Unknown rig num: %d\n", atoi(argv[1])); fprintf(stderr, "Please check riglist.h\n"); return -1; } strncpy(my_rig->state.rig_path, SERIAL_PORT, FILPATHLEN); fprintf(stdout, "(%s:%d) rig_open\n", __FILE__, __LINE__); if (rig_open(my_rig)) { return -1; } sleep(1); fprintf(stdout, "(%s:%d) rig_set_vfo\n", __FILE__, __LINE__); retcode = rig_set_vfo(my_rig, RIG_VFO_A); if (retcode != RIG_OK) { printf("rig_set_vfo: error = %s \n", rigerror(retcode)); } retcode = rig_get_strength(my_rig, RIG_VFO_CURR, &strength); if (retcode == RIG_OK) { printf("rig_get_strength: strength = %i \n", strength); } else { printf("rig_get_strength: error = %s \n", rigerror(retcode)); } retcode = rig_get_vfo(my_rig, &vfo); /* try to get vfo info */ if (retcode == RIG_OK) { printf("rig_get_vfo: vfo = %i \n", vfo); } else { printf("rig_get_vfo: error = %s \n", rigerror(retcode)); } rig_close(my_rig); /* close port */ rig_cleanup(my_rig); /* if you care about memory */ return 0; } export LD_LIBRARY_PATH=../hamlib-1.1.1/src/.libs:../hamlib-1.1.1/icom/.libs ./testrig rig: loading backend icom icom: _init called rig_register (43) rig_register (44) rig_register (45) rig_register (76) rig_register (34) rig:rig_init called rig:rig_open called Unsupported PTT type 1 TX 8 bytes 0000 ff fe fe 5c e0 07 00 fd ...\.... RX 8 bytes 0000 e0 07 00 fd fe fe e0 5c .......\ rig timeout after 2 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! rig timeout after 0 chars or select error - Resource temporarily unavailable! icom_set_vfo: ack NG (0xfe), len=373 make: *** [run] Segmentation fault (core dumped) _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Stephane F. <f4...@fr...> - 2001-09-18 21:32:06
|
On Tue, Sep 18, 2001, John Roberts wrote: > I'm hacking up testrig to try and put together an app to talk to my Icom > 756Pro. Below is the code and the output that I get. Any idea why I see > "Resource temporarily unavailable"? Your program is fine. The problem lies with the poor robustness of the current Icom backend (yeah, that's on my TODO list). To make a long story short, CI-V protocol uses a CSMA/CD bus system, with TXD and RXD tied together. That's why when the backend send "ff fe fe 5c e0 07 00 fd", it has to read (ie. empty) what it just sent, before expecting the reply from the rig. However, it looks like the receive ibuffer should be drained beforehand. Right now, I don't know what the best solution. Anyway, read on... > TX 8 bytes > 0000 ff fe fe 5c e0 07 00 fd ...\.... > RX 8 bytes > 0000 e0 07 00 fd fe fe e0 5c .......\ ^^^^^^^^^^^ ^^^^^^^^^^ end of previous cmd begining of the reply > rig timeout after 2 chars or select error - Resource temporarily > unavailable! > rig timeout after 0 chars or select error - Resource temporarily > unavailable! oh, wait, I'm not sure, but I think I fixed this in the CVS repository, which is the forthcoming Hamlib-1.1.2 (hopefully by next week). Can you checkout the CVS version and give it a try? The other explanation could be the so-called transceive mode, i.e. the rig which is sending asynchronously "events" notification. But according to the traces, it's not likely. As you can see, Hamlib is still in ALPHA stage, and badly needs programers (I'm doing this on my spare time). Anyway, testers are more than needed too! Cheers, Stephane |