hamlib-developer Mailing List for Ham Radio Control Libraries (Page 636)
Library to control radio transceivers and receivers
Brought to you by:
n0nb
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(24) |
Oct
(16) |
Nov
(8) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(49) |
Feb
(17) |
Mar
(3) |
Apr
(7) |
May
(3) |
Jun
(1) |
Jul
(2) |
Aug
(8) |
Sep
(18) |
Oct
(15) |
Nov
(15) |
Dec
(26) |
2002 |
Jan
(46) |
Feb
(14) |
Mar
(44) |
Apr
(3) |
May
(6) |
Jun
(47) |
Jul
(40) |
Aug
(14) |
Sep
(59) |
Oct
(39) |
Nov
(58) |
Dec
(76) |
2003 |
Jan
(82) |
Feb
(66) |
Mar
(37) |
Apr
(56) |
May
(34) |
Jun
(19) |
Jul
(23) |
Aug
(55) |
Sep
(31) |
Oct
(40) |
Nov
(21) |
Dec
(60) |
2004 |
Jan
(57) |
Feb
(110) |
Mar
(41) |
Apr
(17) |
May
(18) |
Jun
(19) |
Jul
(18) |
Aug
(5) |
Sep
(31) |
Oct
(16) |
Nov
(26) |
Dec
(36) |
2005 |
Jan
(69) |
Feb
(26) |
Mar
(62) |
Apr
(120) |
May
(31) |
Jun
(47) |
Jul
(7) |
Aug
(27) |
Sep
(4) |
Oct
(9) |
Nov
(26) |
Dec
(21) |
2006 |
Jan
(13) |
Feb
(26) |
Mar
(38) |
Apr
(31) |
May
(17) |
Jun
(6) |
Jul
(23) |
Aug
(6) |
Sep
(38) |
Oct
(87) |
Nov
(49) |
Dec
(49) |
2007 |
Jan
(52) |
Feb
(19) |
Mar
(20) |
Apr
(5) |
May
(25) |
Jun
(15) |
Jul
(49) |
Aug
(43) |
Sep
(21) |
Oct
(21) |
Nov
(27) |
Dec
(10) |
2008 |
Jan
(23) |
Feb
(20) |
Mar
(25) |
Apr
(39) |
May
(36) |
Jun
(17) |
Jul
(10) |
Aug
(18) |
Sep
(44) |
Oct
(88) |
Nov
(60) |
Dec
(65) |
2009 |
Jan
(99) |
Feb
(91) |
Mar
(49) |
Apr
(34) |
May
(52) |
Jun
(9) |
Jul
(11) |
Aug
(4) |
Sep
(41) |
Oct
(16) |
Nov
(51) |
Dec
(71) |
2010 |
Jan
(43) |
Feb
(79) |
Mar
(59) |
Apr
(55) |
May
(51) |
Jun
(38) |
Jul
(38) |
Aug
(61) |
Sep
(53) |
Oct
(46) |
Nov
(43) |
Dec
(41) |
2011 |
Jan
(74) |
Feb
(96) |
Mar
(41) |
Apr
(42) |
May
(61) |
Jun
(66) |
Jul
(50) |
Aug
(40) |
Sep
(11) |
Oct
(30) |
Nov
(21) |
Dec
(45) |
2012 |
Jan
(59) |
Feb
(4) |
Mar
(52) |
Apr
(19) |
May
(62) |
Jun
(46) |
Jul
(61) |
Aug
(18) |
Sep
(21) |
Oct
(25) |
Nov
(66) |
Dec
(41) |
2013 |
Jan
(36) |
Feb
(64) |
Mar
(37) |
Apr
(24) |
May
(74) |
Jun
(40) |
Jul
(43) |
Aug
(34) |
Sep
(65) |
Oct
(52) |
Nov
(23) |
Dec
(20) |
2014 |
Jan
(18) |
Feb
(29) |
Mar
(13) |
Apr
(41) |
May
(10) |
Jun
(12) |
Jul
(16) |
Aug
(25) |
Sep
(20) |
Oct
(56) |
Nov
(43) |
Dec
(61) |
2015 |
Jan
(36) |
Feb
(38) |
Mar
(92) |
Apr
(42) |
May
(13) |
Jun
(19) |
Jul
(18) |
Aug
(22) |
Sep
(21) |
Oct
(2) |
Nov
(49) |
Dec
(22) |
2016 |
Jan
(55) |
Feb
(144) |
Mar
(40) |
Apr
(98) |
May
(61) |
Jun
(36) |
Jul
(16) |
Aug
(33) |
Sep
(59) |
Oct
(16) |
Nov
(37) |
Dec
(32) |
2017 |
Jan
(70) |
Feb
(71) |
Mar
(14) |
Apr
(43) |
May
(31) |
Jun
(24) |
Jul
(38) |
Aug
(54) |
Sep
(24) |
Oct
(15) |
Nov
(26) |
Dec
(27) |
2018 |
Jan
(22) |
Feb
(24) |
Mar
(109) |
Apr
(12) |
May
(46) |
Jun
(23) |
Jul
(39) |
Aug
(34) |
Sep
(22) |
Oct
(43) |
Nov
(26) |
Dec
(157) |
2019 |
Jan
(102) |
Feb
(51) |
Mar
(63) |
Apr
(60) |
May
(91) |
Jun
(55) |
Jul
(27) |
Aug
(76) |
Sep
(52) |
Oct
(95) |
Nov
(67) |
Dec
(204) |
2020 |
Jan
(311) |
Feb
(148) |
Mar
(230) |
Apr
(122) |
May
(204) |
Jun
(204) |
Jul
(114) |
Aug
(36) |
Sep
(120) |
Oct
(186) |
Nov
(60) |
Dec
(151) |
2021 |
Jan
(182) |
Feb
(171) |
Mar
(202) |
Apr
(153) |
May
(110) |
Jun
(50) |
Jul
(58) |
Aug
(142) |
Sep
(112) |
Oct
(120) |
Nov
(97) |
Dec
(125) |
2022 |
Jan
(175) |
Feb
(147) |
Mar
(54) |
Apr
(73) |
May
(127) |
Jun
(95) |
Jul
(88) |
Aug
(85) |
Sep
(38) |
Oct
(40) |
Nov
(116) |
Dec
(159) |
2023 |
Jan
(175) |
Feb
(55) |
Mar
(83) |
Apr
(70) |
May
(165) |
Jun
(79) |
Jul
(123) |
Aug
(90) |
Sep
(40) |
Oct
(95) |
Nov
(84) |
Dec
(88) |
2024 |
Jan
(105) |
Feb
(60) |
Mar
(52) |
Apr
(43) |
May
(56) |
Jun
(59) |
Jul
(53) |
Aug
(47) |
Sep
(62) |
Oct
(36) |
Nov
(45) |
Dec
(100) |
2025 |
Jan
(52) |
Feb
(45) |
Mar
(30) |
Apr
(97) |
May
(72) |
Jun
(83) |
Jul
(109) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Stephane F. <f4...@fr...> - 2001-12-09 22:53:37
|
On Sun, Dec 09, 2001, Joop Stakenborg wrote: > aba@pc3:~$ rigctl -vvvvv -m 210 > TX 3 bytes > 0000 46 52 3b FR; > RX 1 bytes > 0000 d2 . > RX 1 bytes > 0000 fb . > fread_block: timedout after 0 chars > Opened rig model 210, 'TS-870S' > FR; command should retrieve current VFO (kenwood/kenwood.c:kenwood_get_vfo) However, the kenwood protocol does not use 8 bits characters, which is rather suspect. Anyway, it seems to receive something since it tries to reply (certainly an error code, but with wrong speed?). > I have tried to talk to my transceiver with minicom, but I never get > anything back, whatever communication parameter I try. Maybe trying with some other known-to-work CAT program would help. Easy to find under DOS/win32, not so easy under Linux... > >From the tests I get the impression that serial line speeds do not match > the communication paramaters of the transceiver. > is this correct? This could be the most reasonable explanation. Have you tried playing with speed/handshake/parity/number of data and stop bits/ etc. ? Reading kenwood/ts870s.c, it looks like Hamlib is setting up the serial port to 57600bps, 8N1, no parity. Maybe the TS-870 cannot cope with too high speed? Note: whatever speed value you setup the port, Hamlib reconfigures it. So the TS-870 should be setup to 57600bps. > Maybe I should give kontakt a try..... I'm afraid you won't have more luck since kontakt is based on Hamlib. However, I'm almost sure Robert would be happy to have some feedback on his development. Please, let me know if the speed setup can help in solving your problem. 73, Stephane F8CFE |
From: Joop S. <pa...@de...> - 2001-12-09 19:57:02
|
On Sun, 9 Dec 2001 14:58:55 +0100 Stephane Fillod <f4...@fr...> wrote: > On Sun, Dec 09, 2001, Joop Stakenborg wrote: > > Can you run rigctl with "-vvvvv" option and report the traces please? > This will tell us what's Hamlib is doing, and what characters are > exchanged on the serial line. > aba@pc3:~$ rigctl -vvvvv -m 210 rig:rig_init called rig: loading backend kenwood kenwood: _init called rig_register (203) rig_register (204) rig_register (216) rig_register (210) rig:rig_open called TX 3 bytes 0000 46 52 3b FR; RX 1 bytes 0000 d2 . RX 1 bytes 0000 fb . fread_block: timedout after 0 chars Opened rig model 210, 'TS-870S' Rig command: f TX 3 bytes 0000 46 52 3b FR; RX 1 bytes 0000 d3 . RX 1 bytes 0000 fb . fread_block: timedout after 0 chars Frequency: 4611874313014867991get_freq: error = Communication timed out Rig command: F 14.000 TX 3 bytes 0000 46 52 3b FR; Frequency: RX 1 bytes 0000 92 . RX 1 bytes 0000 fb . fread_block: timedout after 0 chars set_freq: error = Communication timed out Rig command: q rig:rig_close called rig:rig_cleanup called aba@pc3:~$ > Eventually, if you suspect a problem with the serial cable, you may try to > talk directly to the rig with minicom, and issue simple commands like > 'ID'. > The serial line is OK, I have tested it with a modem. It is a 9 wire cable to a 9 pin connector at both ends. I have tried to talk to my transceiver with minicom, but I never get anything back, whatever communication parameter I try. From the tests I get the impression that serial line speeds do not match the communication paramaters of the transceiver. is this correct? Maybe I should give kontakt a try..... Joop |
From: Stephane F. <f4...@fr...> - 2001-12-09 14:52:11
|
On Sun, Dec 09, 2001, Joop Stakenborg wrote: > Hello Stephane and others, > Hi Joop, > I have tried to use rigctl with my TS-870. According to the menu on > the TS-870, communication is set to 9600 bps with 1 stopbit. I have > tried with the default com-port settings on my linux-box and with > 'setserial /dev/ttyS0 baud_base 9600'. Both with the same results: > > aba@pc3:~$ rigctl -m 210 > fread_block: timedout after 0 chars > Can you run rigctl with "-vvvvv" option and report the traces please? This will tell us what's Hamlib is doing, and what characters are exchanged on the serial line. Eventually, if you suspect a problem with the serial cable, you may try to talk directly to the rig with minicom, and issue simple commands like 'ID'. > [ctrl led on the rig switches on] > This is a goood sign anyway. > Do I need to dive into the source code? Did I overlook something? Not necessarily. This is just this backend has never been tested :-) Cheers, Stephane F8CFE |
From: Joop S. <pa...@de...> - 2001-12-09 13:17:02
|
Hello Stephane and others, I have tried to use rigctl with my TS-870. According to the menu on the TS-870, communication is set to 9600 bps with 1 stopbit. I have tried with the default com-port settings on my linux-box and with 'setserial /dev/ttyS0 baud_base 9600'. Both with the same results: aba@pc3:~$ rigctl -m 210 fread_block: timedout after 0 chars [ctrl led on the rig switches on] Rig command: f fread_block: timedout after 0 chars Frequency: 4611874313014867991get_freq: error = Communication timed out Rig command: F 14.023 Frequency: fread_block: timedout after 0 chars set_freq: error = Communication timed out Rig command: q aba@pc3:~$ Do I need to dive into the source code? Did I overlook something? Thanks, Joop PA4TU |
From: <rs...@su...> - 2001-11-29 13:44:27
|
On Wed, 28 Nov 2001, Stephane Fillod wrote: > Let's consider the IC-275/475 are now supported... well yet to be tested! Whoa, that was fast. Now I have to find out what hardware I need for the interface. > Any taker for the FT990? After I've had a look why the FT847 get_* stuff doesn't work here, I might as well get into the rest ;-) But no promise yet. I'll have to check for the interface, too. 73, Robert -- Robert Steinhaeusser, DL1NC / N9KBK rs...@su... http://1409.org ro...@st... |
From: Stephane F. <f4...@fr...> - 2001-11-28 22:09:13
|
On Tue, Nov 27, 2001, Robert Steinhäußer wrote: > Also, I don't have an FT-847 at home, and the IC-275/475 and FT990 aren't > supported yet. But we'll manage that ;-) Let's consider the IC-275/475 are now supported... well yet to be tested! Any taker for the FT990? 73 de Stephane |
From: John R. <js...@ho...> - 2001-11-27 20:39:43
|
Stephane, Thanks! That worked. I did a configure with --prefix as you suggested, then a make install. I shouldn't have been trying to avoid doing that. John rm -f testrig testrig.o export HAMLIB=/usr/local/hamlib/ export LD_LIBRARY_PATH=${HAMLIB}/lib:. gcc -DHAVE_CONFIG_H -I${HAMLIB}/include -D_GNU_SOURCE -g -O2 -Wall -c testrig.c gcc -g -O2 -Wall -o testrig testrig.o -L${HAMLIB}/lib -lhamlib ./testrig >From: Stephane Fillod <f4...@fr...> >To: Ham...@li... >Subject: Re: [Hamlib-developer] How to link in binary >Date: Tue, 27 Nov 2001 19:12:27 +0100 (MET) > >John Roberts wrote: > > > > Here is the script I'm using to compile: > > > > rm -f testrig testrig.o > > > > export HAMLIB=../hamlib-1.1.2/ > > export LD_LIBRARY_PATH=${HAMLIB}/.libs/:${HAMLIB}/icom/.libs:. > > > > gcc -DHAVE_CONFIG_H -I${HAMLIB}/tests -I${HAMLIB}/include >-I${HAMLIB}/src > > -D_GNU_SOURCE -g -O2 -Wall -c testrig.c > > gcc -g -O2 -Wall -o testrig testrig.o -L${HAMLIB}/src -lhamlib > ^^^^^^^^^^^^^^^^ >If you're not using hamlib-devel RPM, then use "-L${HAMLIB}/.libs" >instead of -L${HAMLIB}/src. This is what libtool would do for rigctl. > >Anyway, I strongly recommends using the hamlib-devel RPM in your case, >unless you want to help in bleeding edge Hamlib development. Nevertheless, >with the cvs version, it's still better to configure hamlib with >--prefix=/usr/local or whatever (and set -L/usr/local/lib accordingly) >and then "make install". > >Let me know how it goes. If bands are still open, we can have a sked. > >73, Stephane > >_______________________________________________ >Hamlib-developer mailing list >Ham...@li... >https://lists.sourceforge.net/lists/listinfo/hamlib-developer _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Stephane F. <f4...@fr...> - 2001-11-27 18:12:36
|
John Roberts wrote: > > Here is the script I'm using to compile: > > rm -f testrig testrig.o > > export HAMLIB=../hamlib-1.1.2/ > export LD_LIBRARY_PATH=${HAMLIB}/.libs/:${HAMLIB}/icom/.libs:. > > gcc -DHAVE_CONFIG_H -I${HAMLIB}/tests -I${HAMLIB}/include -I${HAMLIB}/src > -D_GNU_SOURCE -g -O2 -Wall -c testrig.c > gcc -g -O2 -Wall -o testrig testrig.o -L${HAMLIB}/src -lhamlib ^^^^^^^^^^^^^^^^ If you're not using hamlib-devel RPM, then use "-L${HAMLIB}/.libs" instead of -L${HAMLIB}/src. This is what libtool would do for rigctl. Anyway, I strongly recommends using the hamlib-devel RPM in your case, unless you want to help in bleeding edge Hamlib development. Nevertheless, with the cvs version, it's still better to configure hamlib with --prefix=/usr/local or whatever (and set -L/usr/local/lib accordingly) and then "make install". Let me know how it goes. If bands are still open, we can have a sked. 73, Stephane |
From: John R. <js...@ho...> - 2001-11-27 15:37:35
|
Here is the script I'm using to compile: rm -f testrig testrig.o export HAMLIB=../hamlib-1.1.2/ export LD_LIBRARY_PATH=${HAMLIB}/.libs/:${HAMLIB}/icom/.libs:. gcc -DHAVE_CONFIG_H -I${HAMLIB}/tests -I${HAMLIB}/include -I${HAMLIB}/src -D_GNU_SOURCE -g -O2 -Wall -c testrig.c gcc -g -O2 -Wall -o testrig testrig.o -L${HAMLIB}/src -lhamlib When I run this script I get a .o file, but I can't produce a binary: jroberts@geiswd44ab(~/src/setfreq) 1029$ ./m2 ../hamlib-1.1.2//src/libhamlib.a(register.o): In function `rig_load_backend': /home/jroberts/src/hamlib-1.1.2/src/register.c:288: undefined reference to `lt_dlinit' /home/jroberts/src/hamlib-1.1.2/src/register.c:302: undefined reference to `lt_dlopen' /home/jroberts/src/hamlib-1.1.2/src/register.c:305: undefined reference to `lt_dlerror' /home/jroberts/src/hamlib-1.1.2/src/register.c:312: undefined reference to `lt_dlsym' /home/jroberts/src/hamlib-1.1.2/src/register.c:314: undefined reference to `lt_dlerror' /home/jroberts/src/hamlib-1.1.2/src/register.c:316: undefined reference to `lt_dlclose' /home/jroberts/src/hamlib-1.1.2/src/register.c:329: undefined reference to `lt_dlsym' collect2: ld returned 1 exit status ./m2: ./testrig: No such file or directory jroberts@geiswd44ab(~/src/setfreq) 1030$ What am I doing wrong? John >From: Stephane Fillod <f4...@fr...> >To: Ham...@li... >Subject: Re: [Hamlib-developer] How to link in binary >Date: Mon, 26 Nov 2001 18:39:02 +0100 (MET) > > >En réponse à John Roberts <js...@ho...>: > > How do I link my binary with hamlib? Do I have to use libtool and do all >the > > DLL stuff? Or can I just link the .a for my radio into the binary? [I >can't > > get the latter to work -- it complains about calls to dl_open...] > >hmm, some output traces would help in that case. I'm suspecting Hamlib >is unable to load the backend (i.e. the .so or .la module). >Linking against Hamlib is be pretty straight forward. No need to worry >about libtool, it is there to be transparent. > > gcc myapp.o -lhamlib -o myapp > >Add -L/usr/local/lib if needed. Statically linking with .a if okay too. >If linking is fine, "ldd myapp" should report no unmet dependencies. > >When does the problem appear? at link time or at run time? >Are you using the RPM release? Does rigctl works for you? > >My guess is your application is not able to find the backend module. >This should not happen with the RPMs (unless there's a bug waiting for a >fix :) >In the other cases, you may have to play with LD_LIBRARY_PATH. > > > BTW, I still can't read sig strength or freq from my Icom 756Pro. Is >that > > right? I'm using 1.1.2. > >Same question, are you using rigctl to query freq and sig strength? >What are the error message (add -vvvv for verbose mode) ? > > >73, Stephane > >_______________________________________________ >Hamlib-developer mailing list >Ham...@li... >https://lists.sourceforge.net/lists/listinfo/hamlib-developer _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: <rs...@su...> - 2001-11-27 13:58:29
|
Hi John, On Tue, 27 Nov 2001, John Roberts wrote: > What I want to do next is write a GUI for hamlib. Has anyone done this > already? I'm thinking that it's best to do it Java so I'm going to use JNI > to call Hamlib and use RMI to allow the GUI to live in a web-browser on a > remote machine. Should be pretty neat. Obviously all this code will be GPL > under the same terms as Hamlib. Cool? > > Has anyone already done this? I'm workung on a GUI written with Qt2/KDE2. But my internship here at SuSE is almost completed, so I will have to work on it during my spare time. Also, I don't have an FT-847 at home, and the IC-275/475 and FT990 aren't supported yet. But we'll manage that ;-) 73, Robert -- Robert Steinhaeusser, DL1NC / N9KBK rs...@su... http://1409.org ro...@st... |
From: John R. <js...@ho...> - 2001-11-27 13:39:39
|
>From: Stephane Fillod <f4...@fr...> >To: Ham...@li... >Subject: Re: [Hamlib-developer] How to link in binary >Date: Mon, 26 Nov 2001 18:39:02 +0100 (MET) > > >En réponse à John Roberts <js...@ho...>: > > How do I link my binary with hamlib? Do I have to use libtool and do all >the > > DLL stuff? Or can I just link the .a for my radio into the binary? [I >can't > > get the latter to work -- it complains about calls to dl_open...] > >hmm, some output traces would help in that case. I'm suspecting Hamlib >is unable to load the backend (i.e. the .so or .la module). >Linking against Hamlib is be pretty straight forward. No need to worry >about libtool, it is there to be transparent. > > gcc myapp.o -lhamlib -o myapp > >Add -L/usr/local/lib if needed. Statically linking with .a if okay too. >If linking is fine, "ldd myapp" should report no unmet dependencies. I'll give that a shot. Thanks! > >When does the problem appear? at link time or at run time? >Are you using the RPM release? Does rigctl works for you? Run time. If it continues I'll post sessions. rigctl and testrig both work. I'm using testrig as the starting point for my application. When you compile testrig you use libtool and a really funking link-line so I'm trying to extract the code from that build process and simplify it. > >My guess is your application is not able to find the backend module. >This should not happen with the RPMs (unless there's a bug waiting for a >fix :) I might try and load the RPMs so I can easily link the library in. >In the other cases, you may have to play with LD_LIBRARY_PATH. > > > BTW, I still can't read sig strength or freq from my Icom 756Pro. Is >that > > right? I'm using 1.1.2. > >Same question, are you using rigctl to query freq and sig strength? >What are the error message (add -vvvv for verbose mode) ? No, I'm using testrig and it says something like "Feature not supported" BTW, here's what I'm up to: I have a "product" that collects and processes signals in the HF spectrum. In order to test my product I have an Icom 756Pro and some special modems that I use to transmit test signals into a dummy load to see if my product can detect them. Hamlib is saving me SOOO much time because with it I will be able to automate most of my testing. I can use hamlib to move the transmitter around the bands and see how my product performs. What I want to do next is write a GUI for hamlib. Has anyone done this already? I'm thinking that it's best to do it Java so I'm going to use JNI to call Hamlib and use RMI to allow the GUI to live in a web-browser on a remote machine. Should be pretty neat. Obviously all this code will be GPL under the same terms as Hamlib. Cool? Has anyone already done this? John _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Stephane F. <f4...@fr...> - 2001-11-26 17:39:09
|
En réponse à John Roberts <js...@ho...>: > How do I link my binary with hamlib? Do I have to use libtool and do all the > DLL stuff? Or can I just link the .a for my radio into the binary? [I can't > get the latter to work -- it complains about calls to dl_open...] hmm, some output traces would help in that case. I'm suspecting Hamlib is unable to load the backend (i.e. the .so or .la module). Linking against Hamlib is be pretty straight forward. No need to worry about libtool, it is there to be transparent. gcc myapp.o -lhamlib -o myapp Add -L/usr/local/lib if needed. Statically linking with .a if okay too. If linking is fine, "ldd myapp" should report no unmet dependencies. When does the problem appear? at link time or at run time? Are you using the RPM release? Does rigctl works for you? My guess is your application is not able to find the backend module. This should not happen with the RPMs (unless there's a bug waiting for a fix :) In the other cases, you may have to play with LD_LIBRARY_PATH. > BTW, I still can't read sig strength or freq from my Icom 756Pro. Is that > right? I'm using 1.1.2. Same question, are you using rigctl to query freq and sig strength? What are the error message (add -vvvv for verbose mode) ? 73, Stephane |
From: John R. <js...@ho...> - 2001-11-26 16:04:10
|
Hi, For starters I'd like to create a command-line binary that will change the freq of the radio. How do I link my binary with hamlib? Do I have to use libtool and do all the DLL stuff? Or can I just link the .a for my radio into the binary? [I can't get the latter to work -- it complains about calls to dl_open...] BTW, I still can't read sig strength or freq from my Icom 756Pro. Is that right? I'm using 1.1.2. Thanks! John _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Stephane F. <f4...@fr...> - 2001-11-19 21:11:38
|
On Mon, Nov 19, 2001, Robert Steinhäußer wrote: > The *x_range_list in the ft847.c is wrong. > > The #define FT847_ALL_RX_MODES and _TX_MODES should have the RIG_MODE_RTTY > removed. okay, done. > The other FT847-specific data seems correct. > > Since the last change of the CVS, selecting USB or LSB with the FT847 > gives an exception (which is caught). I haven't found out yet, where it > comes from (hamlib changed something or Kontakt broken). Sorry, I cannot debug this from here cause I don't own a FT847 myself. Could it be because of the new ft847_get_freq and ft847_get_mode? 73, Stephane |
From: <rs...@su...> - 2001-11-19 11:12:20
|
On Sun, 18 Nov 2001, Stephane Fillod wrote: > Okay, I've implemented basic support for freq/more/passband. > Since it's kind of boring, the rest will come later. Let me know > if you need specific ones. Patches also welcome :) Yeah, just saw it. Great! Thanks! Sure, the dummy backend isn't very interesting out in the field and quite stupid, but good for tests. I'll send you a note or patch, if I need more. 73, Robert -- Robert Steinhaeusser, DL1NC / N9KBK rs...@su... http://1409.org ro...@st... |
From: Stephane F. <f4...@fr...> - 2001-11-18 14:16:02
|
On Thu, Nov 15, 2001, Robert Steinhäußer wrote: > I was just wondering why the dummy backend gives me some strange results, > then had a look at the hamlib dummy.c file. > > All dummy_get_* functions don't set the returned pointers! So they all > return uninitalized values when queried! Could you please just return any > valid data? > Okay, I've implemented basic support for freq/more/passband. Since it's kind of boring, the rest will come later. Let me know if you need specific ones. Patches also welcome :) 73, Stephane |
From: Stephane F. <f4...@fr...> - 2001-11-14 18:29:02
|
Hi Jim! I hope your trip went well, away from all the troubles and bad luck you guys have over there. Anyway, I did some work on the Max OS X port. Thanks to the sourceforge compile farm, I've been able to get hold of a G4 to play with. After some hacking, I am able to build everything but the test applications (problem in the symbol extracting, not investigated yet). Even though I haven't tried it, straight linking should be possible without using libtool (the culprit). libtool porting on Mac OS X is explained at http://fink.sourceforge.net/doc/porting/libtool.php and the following link talks about a hack with does not work completely. http://mail.gnu.org/pipermail/libtool/2001-October/005616.html << libtool 1.4: Long in the works and recently released as the new stable version, this branch has better autoconf integration. Unfortunately that makes migrating packages from 1.3 non-trivial. It supports Darwin 1.3 / Mac OS X 10.0 out of the box and needs a small patch to work on Mac OS X 10.1. It can be recognized by the absence of ltconfig. Versions that identify themselves as 1.3b or 1.3d are actually development snapshots of 1.4 and must be treated with caution Side note: The libltdl library included with all libtool versions will only work on Darwin when dlcompat is installed >> But there's hope. Lately, one fellow on the libtool mailing list offered to work on fixing libtool on Mac OS X. Darwin rule rules :) In the mean time, I also bought a Kenwood TH-F7E (the european version of the TH-F6A). It has a PC connection, and I've made it to work under Hamlib! So the kenwood backend is on a good way! Let me know how it goes on your side. 73, Stephane - F8CFE |
From: Stephane F. <f4...@fr...> - 2001-11-14 18:28:48
|
Hi there! Robert Steinhaeusser wrote: > The FT847 didn't have rig_get_freq() last time I looked, but Kontakt > should really display the correct value it upon start (it doesn't yet). To me, Hamlib should at least provide rig_set_freq/rig_set_mode/rig_set_vfo. And of course, even if the protocol has no provision for their retrieval counterparts, they should be emulated by the backend. However, I just implemented the ft847_get_freq and ft847_get_mode, totally from specs, blind, without testing. This will be checked in on wednesday morning (GMT+1). Feedback welcome! BTW, it looks like this feature is only available with models starting from serial# 8G05. Ask your Yaesu rep for an upgrade (disclaimer: I haven't verified it myself) For more information, check out the following site: http://my.en.com/~rayd/ft-847/FAQ/page4.htm#pollingcodes > Kontakt has to remember which frequency was last used, anyhow -> I can > write a function rmode_t avail_modes = modes( freq_t currentFreq ) for > Kontakt, but it would be nice to have this in the Rig-class (what modes > can I set when on frequency f?). Are you looking for rmode_t Rig::RngRxModes(freq_t) and rmode_t Rig::RngTxModes(freq_t) ? 73, Stephane |
From: Jim W. <jwe...@nc...> - 2001-11-02 02:18:12
|
Hi Stephan: take a look at this: http://fink.sourceforge.net/doc/porting/shared.php I'm gonna grab snapshots of these pages and study them while I'm away. catch you later. 73, jim. n4rse |
From: <f4...@fr...> - 2001-10-31 11:21:48
|
[message Cc: on hamlib-developer mailing list] Hi Jim! > I think we have a problem with libtool: yep, I know. You were waiting for the new version of mac os x to stabilize. Let's see what we can do. > lapdog(beast)/Users/beast %cd CVS/hamlib/hamlib > [/Users/beast] I guess this is the latest CVS version. > lapdog(beast)/Users/beast/CVS/hamlib/hamlib %make [snip] > /bin/sh ../libtool --mode=link cc -g -O2 -Wall -o libhamlib.la -rpath ^^^^^^^^^^ All right, so this is indeed the hamlib libtool version which is used, and not the old system one. good. > /usr/local/lib -no-undefined -release 1.1.2 rig.lo serial.lo misc.lo > register.lo event.lo cal.lo conf.lo ../libltdl/libltdlc.la > rm -fr .libs/libhamlib.la .libs/libhamlib.* .libs/libhamlib-1.1.2.* > ../libtool: parse error: condition expected: xno = [3183] ^^^^^^^^^^^^ arrg! here it is. I saw couple of weeks ago on the libtool mailing list, that this is a known bug, related to zsh. Are you running zsh as your system shell? IOW, is /bin/sh a link to zsh ? The workaround would be to have bash installed (or some other bourne shell), and rebuild hamlib with it. I'll try to browse the libtool mailing list in the hope of finding a fix for mac os x, until next version of libtool releases. > > Is there something in the makefile that is not available with the > version of libtool I have? Everything should be there. Actualy, libtool is generated by ./configure. The "old" libtool on your system is not used. Disabling dynamic loading won't help much. You may try it by passing "--disable-shared" to configure, and then "make clean all". But I think the problem is in the libtool script. Hmm, if neither tricks work, perhaps you could try to replace, once the configure is ran, the hamlib libtool by the "old" libtool script of your system (copy the script over, or use a link). It may resolve the parse error problem, but may broke other stuff since it's not the latest version. Anyway, let me know how it goes. I'd love to see Hamlib running on Mac OS X, and also with a Kenwood rig (never tested!). 73, Stephane |
From: <rs...@su...> - 2001-10-26 15:24:43
|
On Thu, 25 Oct 2001, Stephane Fillod wrote: > Be careful, rpcrig is rather shallow right now. There's only rig_set_freq > and reading caps is not implemented yet (you would get anything but > expected values). OK, it was only an example. I am testing here by switching from one device to another. Maybe I should leave out all alpha-state devices. > > #3 <signal handler called> > > #4 0x413ab2f1 in rpcrig_close (rig=0x8110810) at rpcrig_backend.c:170 > > #5 0x4002b06c in rig_close (rig=0x8110810) at rig.c:497 > > #6 0x4001b4b3 in Rig::close (this=0x812e308) at rigclass.cc:70 > > Maybe related to the double close issue? Or is it peculiar to some backends? > Could you try again with the new fix? Only certain backends (such as the rpc rig) still crash on close() without an open(). Still happens here with the new version. > > Then I am trying to figure out which radio modes (AM, ...) are currently > > available. I suppose I will have to parse the freq_range_list array. But > > still one thing shouldn't happen: Select FT847, Kontakt finds out > > "everything except WFM is ok". Then select RTTY -> RigException. Every > very simple, RIG_MODE_WFM is not declared in caps :*) Of course, but this is not the problem. This button gets correctly disabled (that's why I wrote "everything except WFM is ok"). > Anyone has protocol specs handy? Frank? Yes, me. The FT847 protocol supports LSB, USB, CW, CW-R, AM, FM, CW(N), CW-R(N), AM(N), FM(N). > RTTY is not supported (yet) by ft847_set_mode. BTW, is this mode > available on the rig? Not explicitely, but a myRig->caps->tx_range_list2[something].modes & RIG_MODE_RTTY returned true, otherwise this button would not have been available and no RigException would have been produced. Does the backend internally note the last set frequency somehow? That might cause this problem here. I still have to work on the detection of available modes. > > Now rig_close (+ft847_close) is called twice, it seems. > > good point! rig_close was missing a rig->state.comm_state update... > I've commited a fix, it should now be safe to call rig_close() twice. This is fixed now. 73, Robert -- Robert Steinhaeusser, DL1NC / N9KBK rs...@su... http://1409.org ro...@st... |
From: Stephane F. <f4...@fr...> - 2001-10-25 21:21:57
|
[ this mail is Cc: to hamlib-developer ] On Thu, Oct 25, 2001, Robert Steinhäußer wrote: > Still some drivers segfault when a close() is done without a preceding > open()... here RPC rig: Be careful, rpcrig is rather shallow right now. There's only rig_set_freq and reading caps is not implemented yet (you would get anything but expected values). > #3 <signal handler called> > #4 0x413ab2f1 in rpcrig_close (rig=0x8110810) at rpcrig_backend.c:170 > #5 0x4002b06c in rig_close (rig=0x8110810) at rig.c:497 > #6 0x4001b4b3 in Rig::close (this=0x812e308) at rigclass.cc:70 Maybe related to the double close issue? Or is it peculiar to some backends? Could you try again with the new fix? > Then I am trying to figure out which radio modes (AM, ...) are currently > available. I suppose I will have to parse the freq_range_list array. But > still one thing shouldn't happen: Select FT847, Kontakt finds out > "everything except WFM is ok". Then select RTTY -> RigException. Every very simple, RIG_MODE_WFM is not declared in caps :*) Are you sure the FT847 supports WFM ? If so, it's just one commit away! However, rig_set_mode does not seems to implemented it. Or maybe MODE_MAIN_FM is actually WFM, and MODE_MAIN_NFM FM ? Anyone has protocol specs handy? Frank? The filter section is missing too (bandpass at -6dB). Anyone has it? > other mode works fine. OK, the RTTY button is hard-coded to "16" (not > RIG_MODE_RTTY, as I would prefer it, I'm working on it). RTTY is not supported (yet) by ft847_set_mode. BTW, is this mode available on the rig? > rig:rig_close called > ft847:ft847_close called > TX 5 bytes > 0000 00 00 00 00 80 ..... > rig:rig_cleanup called > rig:rig_close called > ft847:ft847_close called > write_block() failed - Ungültiger Dateideskriptor > ft847:ft847_cleanup called > > ^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid file descriptor > > Now rig_close (+ft847_close) is called twice, it seems. good point! rig_close was missing a rig->state.comm_state update... I've commited a fix, it should now be safe to call rig_close() twice. 73 Stephane |
From: Stephane F. <f4...@fr...> - 2001-10-16 21:13:56
|
On Mon, Oct 15, 2001, Robert Steinhäußer wrote: > My program segfaults sometimes. You mean Hamlib :-) > It seems like some drivers cannot handle it when a Rig::close() is called > without a preceding Rig::open(). Oops, good point! > How about a public method bool isOpen()? The setXxx/getXxx methods could > throw an exception if !isOpen(). close() should just be tolerant and do > nothing. > > BTW: Does ~Rig() automatically call close()? I believe it should. okay, this has to be fixed in Hamlib, not Hamlib++. I've added a comm_state field to rig_state, and I protected rig_open(), rig_close() and rig_cleanup() using it. Also, if rig_cleanup() is called while the rig is still open, it will also close it as you suggested. Now, every single Hamlib function has to be protected. Next time! Cheers, Stephane - F8CFE |
From: <rs...@su...> - 2001-10-15 14:35:51
|
Hi! My program segfaults sometimes. One time (AOR): #4 0x40d544e6 in fileno_unlocked () from /lib/libc.so.6 #5 0x4001e4b1 in fread_block (p=0x80e809c, rxbuffer=0xbfffe44c "\230\200\016\b", count=1) at serial.c:548 #6 0x415c9bc6 in aor_transaction (rig=0x80e8098, cmd=0x415ca182 "EX", cmd_len=2, data=0xbfffe44c "\230\200\016\b", data_len=0xbfffe448) at aor.c:102 #7 0x415c9c20 in aor_close (rig=0x80e8098) at aor.c:125 #8 0x4001a043 in rig_close (rig=0x80e8098) at rig.c:520 #9 0x4002c473 in Rig::close (this=0x8113750) at rigclass.cc:70 Another (RPC): #4 0x00000010 in ?? () #5 0x4001a043 in rig_close (rig=0x80e8098) at rig.c:520 #6 0x4002c473 in Rig::close (this=0x80fcc00) at rigclass.cc:70 It seems like some drivers cannot handle it when a Rig::close() is called without a preceding Rig::open(). How about a public method bool isOpen()? The setXxx/getXxx methods could throw an exception if !isOpen(). close() should just be tolerant and do nothing. BTW: Does ~Rig() automatically call close()? I believe it should. 73, Robert PS: I have created a very small page at http://kontakt.sf.net and linked it to the hamlib pages. -- Robert Steinhaeusser, DL1NC / N9KBK rs...@su... http://1409.org ro...@st... |
From: <rs...@su...> - 2001-10-12 15:32:43
|
On Fri, 12 Oct 2001, Stephane Fillod wrote: > On Thu, Oct 11, 2001, Robert Steinhäußer wrote: > > > > Sorry, but I still haven't tested our IC275 and 475 at home. Have to find > > > > the old self-built interface first and then visit mom (DK3XJ) :) > > Yes it is. CI-V id $10 and $14. However, I still have to find the specs, > brochures, whatever, to fill in the caps.. Oh, ok, so I'll search for the manual first. > > I am trying to figure out why kdevelop wants to have -fno-exceptions in > > the CXXFLAGS. Any ideas? I removed it manually from configure, so now I > > can at least compile with <hamlib/rigclass.h> included. > > no clue. I'm not an expert in C++. Anyone? Not a C++ problem. It seems like KDevelop sets this when compiling with debug symbols. Don't know why. Adding "-fexceptions" to "own options" doesn't help, as they are put on the command line before KDevleop's flags. But without debug symbols it works. > Or at least, Hamlib should offer all the primitives to manage configuration > file? Now if i exactly knew what a primitive is... KDE has an own class KConfig, just do a config->SetGroup("xy"); and a config->WriteEntry("name", value); and you get a ~/.kde2/share/config/prognamerc with: [xy] name=value in it. I just have to know what to put there besides the rig numerical (as below). > > How do I find out which device need which specific settings? Like > > baudrate, target IP address, etc. What is the struct confparams in rig.h? > > I am focussing completely on the <hamlib/*.h> includes and not really > > reading the hamlib source much (stupid app writers shouldn't have to > > anyway :)) > > I agree with you, and that's the point of having documentation. > On this regard, the in-source documenting should be more verbose > in the set_conf/get_conf section. In the meantime, have a look > at src/conf.c. Right now, only "rig_pathname", "write_delay" and alike > are available. Baud rate and such should be added in there... I have some time to read it at my grandparents' on Saturday. The regional ham club meeting (Distriktsversammlung) is on Sunday, so the weekend is already filled up > BTW, I'm going right now /P out-door (friday off, thanks to french "35 hours"). > >From time to time, I'll be calling CQ Hamlib on 21.250MHz.. OK, I have to leave now and catch my train home. We have our monthly local ham meeting at 20:00. 73, Robert -- Robert Steinhaeusser, DL1NC / N9KBK rs...@su... http://1409.org ro...@st... |