Keyboard Shortcuts
Likes
- Direwolf
- Messages
Search
Re: XML-RPC and Hamlib
David Ranch
开云体育Hello Mike,
To be honest, I would recommend to read the Direwolf DEV branch's docs as there is lots of new docs in there, new features, etc. It's not a stable release but it's reliable for my uses. --David KI6ZHD |
|||
Re: GPIO CM-108
开云体育Thats great ... gives some insight ....
So the GPIO is not through direwolf but hamlib ?
wonder if i can use 2 hamlib rig at the same time ... Meh ... im wishing for GPIO input from my microphone to trigger Tx --(im tired of Vox with quisk) From: direwolf_packet@... on behalf of Skyler F electricity440@... [direwolf_packet]
Sent: Monday, November 7, 2016 12:54 PM To: direwolf_packet@... Subject: Re: [direwolf_packet] GPIO CM-108 ?
?
I can't give you specifics because the machine I had it running on had a hard drive failure, but here is what I think I remember doing, plus some of the scripts I had saved. Maybe when I reinstall the while thing again, I'll create a youtube video.
?Yeah, I have 5 or 6 of the modified cards, use it for DSTAR, AllStar, EchoLink, IRLP, 9600 / 1200 packet, FreeDV, HF Digital modes, SSTV ..... all for $5!?
PTT driver only works on some of them though.?
I think you still have to recompile direwolf with the hamlib enabled. There was a specific command I had to run so the build script would recompile everything.?
After that, I added the specefic PTT command in the direwolf.conf file.?
I used the script they gave on the instruction manual and added on a little and came up with this:
Heres the first script?aprs.sh
The second script is embedded in the first, here it is#!/bin/bash echo "APRS?with CM108 Sound card PTT with Direwolf With Xastir!" echo "Root privelidges needed!" echo "Kill all running direowlf/xastir/rigctld processes!!" read -p "Press any key to kill..."? sleep .2 sudo killall direwolf sudo killall rigctld sudo killall xastir echo "Please Plug in a CM108-based sound fob" read -p "Press any key when sound FOB is plugged in..."? cd ~/direwolf sudo ./ptt.sh?& sleep 1 sudo direwolf -p -r? 36000 & sleep 1 sudo -H -u kd0whb xastir #!/bin/bash # Look for C-Media device and start up rigctld # with option to use bit 2 for PTT. # WB2OSZ, Feb. 2016 echo "Look for suitable device for PTT." h=/sys/class/hidraw d="" for x in `ls $h` do n=`grep HID_NAME $h/$x/device/uevent | gawk -F= '{ print $2 }'` echo " /dev/$x $n" if [[ "$n" =~ "C-Media" ]] then echo "Found suitable device /dev/$x" if [ ! -z "$d" ] then echo "WARNING! More than one found." fi d=/dev/$x fi done if [ -z "$d" ] then echo "No suiable devices found for PTT." exit fi echo "Starting up rigctld with PTT on $d" if [ `whoami` != root ] then sudo chmod 666 $d fi # After it is working properly, you might want rigctld -p $d -P CM108 -vvvv -C ptt_bitnum=2 You will have to modify the scripts for your username and place in the proper directory to run correctly
Skyler
On Mon, Nov 7, 2016 at 1:35 PM, MIKE DURKIN
Patriot121@... [direwolf_packet] <direwolf_packet@...> wrote:
Skyler Fennell
KD?WHB
|
|||
Re: XML-RPC and Hamlib
开云体育I downloaded them with in a week of each other im sure ...
PTT RIG 2 localhost:45XX
And direwolf is working with quisk SDR software ... How cool is that .... From: direwolf_packet@... on behalf of MIKE DURKIN Patriot121@... [direwolf_packet]
Sent: Monday, November 7, 2016 1:18 PM To: direwolf_packet@... Subject: Re: [direwolf_packet] XML-RPC and Hamlib ?
?
How weird ... my laptop in my living room has version 1.2 and my Odroid has version 1.3 ... thats why there is a discrepancy .... From: direwolf_packet@... on behalf of David Ranch dranch@... [direwolf_packet]
Sent: Monday, November 7, 2016 1:09 PM To: direwolf_packet@... Subject: Re: [direwolf_packet] XML-RPC and Hamlib ?
?
? Yes.. page 15 - .??
How did you do your search?? I found it instantly
Section 9.2.8.4 - Page 57 of the User Guide. --David KI6ZHD |
|||
Re: XML-RPC and Hamlib
开云体育How weird ... my laptop in my living room has version 1.2 and my Odroid has version 1.3 ... thats why there is a discrepancy .... From: direwolf_packet@... on behalf of David Ranch dranch@... [direwolf_packet]
Sent: Monday, November 7, 2016 1:09 PM To: direwolf_packet@... Subject: Re: [direwolf_packet] XML-RPC and Hamlib ?
?
? Yes.. page 15 - .??
How did you do your search?? I found it instantly
Section 9.2.8.4 - Page 57 of the User Guide. --David KI6ZHD |
|||
Re: XML-RPC and Hamlib
David Ranch
开云体育
Yes.. page 15 - .
How did you do your search? I found it instantly
Section 9.2.8.4 - Page 57 of the User Guide. --David KI6ZHD |
|||
Re: GPIO CM-108
I can't give you specifics because the machine I had it running on had a hard drive failure, but here is what I think I remember doing, plus some of the scripts I had saved. Maybe when I reinstall the while thing again, I'll create a youtube video. ?Yeah, I have 5 or 6 of the modified cards, use it for DSTAR, AllStar, EchoLink, IRLP, 9600 / 1200 packet, FreeDV, HF Digital modes, SSTV ..... all for $5!? PTT driver only works on some of them though.? I think you still have to recompile direwolf with the hamlib enabled. There was a specific command I had to run so the build script would recompile everything.? After that, I added the specefic PTT command in the direwolf.conf file.? I used the script they gave on the instruction manual and added on a little and came up with this: Heres the first script?aprs.sh The second script is embedded in the first, here it is#!/bin/bash echo "APRS?with CM108 Sound card PTT with Direwolf With Xastir!" echo "Root privelidges needed!" echo "Kill all running direowlf/xastir/rigctld processes!!" read -p "Press any key to kill..."? sleep .2 sudo killall direwolf sudo killall rigctld sudo killall xastir echo "Please Plug in a CM108-based sound fob" read -p "Press any key when sound FOB is plugged in..."? cd ~/direwolf sudo ./ptt.sh?& sleep 1 sudo direwolf -p -r? 36000 & sleep 1 sudo -H -u kd0whb xastir #!/bin/bash # Look for C-Media device and start up rigctld # with option to use bit 2 for PTT. # WB2OSZ, Feb. 2016 echo "Look for suitable device for PTT." h=/sys/class/hidraw d="" for x in `ls $h` do n=`grep HID_NAME $h/$x/device/uevent | gawk -F= '{ print $2 }'` echo " /dev/$x $n" if [[ "$n" =~ "C-Media" ]] then echo "Found suitable device /dev/$x" if [ ! -z "$d" ] then echo "WARNING! More than one found." fi d=/dev/$x fi done if [ -z "$d" ] then echo "No suiable devices found for PTT." exit fi echo "Starting up rigctld with PTT on $d" if [ `whoami` != root ] then sudo chmod 666 $d fi # After it is working properly, you might want rigctld -p $d -P CM108 -vvvv -C ptt_bitnum=2 You will have to modify the scripts for your username and place in the proper directory to run correctly Skyler On Mon, Nov 7, 2016 at 1:35 PM, MIKE DURKIN Patriot121@... [direwolf_packet] <direwolf_packet@...> wrote:
--
Skyler Fennell KD?WHB |
|||
Re: XML-RPC and Hamlib
开云体育Found the enable in Makefile.linux ...
# Uncomment following lines to enable hamlib support.
CFLAGS += -DUSE_HAMLIB LDFLAGS += -lhamlib
I guess i already found it some time ago and enabled it.... it was not commented out ...
Now to configure direwolf for hamlib3 From: direwolf_packet@... on behalf of MIKE DURKIN Patriot121@... [direwolf_packet]
Sent: Monday, November 7, 2016 12:27 PM To: direwolf_packet@... Subject: Re: [direwolf_packet] XML-RPC and Hamlib ?
?
Are you sure its in the user-manual ?
i just searched for hamlib and got no hits ... also PTT but none referenced hamlib for configuring for build ... From: direwolf_packet@... on behalf of David Ranch dranch@... [direwolf_packet]
Sent: Monday, November 7, 2016 11:25 AM To: direwolf_packet@... Subject: [direwolf_packet] XML-RPC and Hamlib ?
?
? Correct, direwolf does not have support for FLdigi's XML-RPC system.? As for hamlib, yes, Direwolf supports it and it's covered in the UserGuide.? It will require you to rebuild Direwolf one you have hamlib libraries installed on your machine.? I imagine you'll need to increase your Direwolf's TXDELAY parameter to cope with the additional processing requirements. --David KI6ZHD |
|||
Re: GPIO CM-108
开云体育GREAT !!!!
I happen to have 2 CM-108 soundcards ....
Can you remember how to compile direwolf with hamlib ... im still looking .. it might be automatic by now .... From: direwolf_packet@... on behalf of Skyler F electricity440@... [direwolf_packet]
Sent: Monday, November 7, 2016 12:33 PM To: direwolf_packet@... Subject: Re: [direwolf_packet] GPIO CM-108 ?
?
I went through the CM108 PTT ?instructions on the user manual (using hamlib and rigctld) l, and was able to get a URI playing APRS for my mobile packet use and 9600 baud. Took a while to get all the scripts running, but it was pretty nice when
I put it all together in one script to start the whole XASTIR / Direwolf / Hamlib process.?
73
Skyler KD0WHB
On Mon, Nov 7, 2016 at 1:20 PM, MIKE DURKIN
Patriot121@... [direwolf_packet] <direwolf_packet@...> wrote:
Skyler Fennell
KD?WHB
|
|||
Re: GPIO CM-108
I went through the CM108 PTT ?instructions on the user manual (using hamlib and rigctld) l, and was able to get a URI playing APRS for my mobile packet use and 9600 baud. Took a while to get all the scripts running, but it was pretty nice when I put it all together in one script to start the whole XASTIR / Direwolf / Hamlib process.? 73 Skyler KD0WHB On Mon, Nov 7, 2016 at 1:20 PM, MIKE DURKIN Patriot121@... [direwolf_packet] <direwolf_packet@...> wrote:
--
Skyler Fennell KD?WHB |
|||
Re: XML-RPC and Hamlib
开云体育Are you sure its in the user-manual ?
i just searched for hamlib and got no hits ... also PTT but none referenced hamlib for configuring for build ... From: direwolf_packet@... on behalf of David Ranch dranch@... [direwolf_packet]
Sent: Monday, November 7, 2016 11:25 AM To: direwolf_packet@... Subject: [direwolf_packet] XML-RPC and Hamlib ?
?
? Correct, direwolf does not have support for FLdigi's XML-RPC system.? As for hamlib, yes, Direwolf supports it and it's covered in the UserGuide.? It will require you to rebuild Direwolf one you have hamlib libraries installed on your machine.? I imagine you'll need to increase your Direwolf's TXDELAY parameter to cope with the additional processing requirements. --David KI6ZHD |
|||
GPIO CM-108
开云体育What the heck .. reading through some of the documentation for direwolf .. i came across enabling PTT through a CM-108 GPIO...
Are you kidding me ?!?!?!? ? how long was that done?
Wonder if it works on linux too .... lol !!!!!
Has any one here done this ?
its a DMK URI mod for a CM-108 !!!!
|
|||
Re: XML-RPC and Hamlib
开云体育Ok .. i seen that you need to rebuild-- but it was in an email thread for a slightly older version of direwolf ....
Ill need to look for the email again and see what switch needs to be changed (and file) ....
I might need to change the TxDelay ... i can operate QSK if i felt like it ... the change over is darn quick ... my latency is in the 50ms range right now .. can go lower but don't feel like adding more CPU usage ... Iv had it down to 20ms but the CPU usage
(of the quad core) was over 60% .... From: direwolf_packet@... on behalf of David Ranch dranch@... [direwolf_packet]
Sent: Monday, November 7, 2016 11:25 AM To: direwolf_packet@... Subject: [direwolf_packet] XML-RPC and Hamlib ?
?
? Correct, direwolf does not have support for FLdigi's XML-RPC system.? As for hamlib, yes, Direwolf supports it and it's covered in the UserGuide.? It will require you to rebuild Direwolf one you have hamlib libraries installed on your machine.? I imagine you'll need to increase your Direwolf's TXDELAY parameter to cope with the additional processing requirements. --David KI6ZHD |
|||
Re: Linpac screen size
开云体育If i buy another SBC thats Arm ... ill be getting a Rp3 .... but if i can splurge ... i'll get an I7 that runs on 12V
I just seen that the linpac init.mac file does not have infoline 5 i just added that to my init.mac (from my warm living room -- to hte Odroid thats in the cold garage) and going to go see if it produced what im looking for .... From: direwolf_packet@... on behalf of David Ranch dranch@... [direwolf_packet]
Sent: Monday, November 7, 2016 11:25 AM To: direwolf_packet@... Subject: Re: [direwolf_packet] Linpac screen size ?
?
? Ok..? well, as mentioned before, I can't reproduce this issue and I think it would be silly to buy an Odroid as they seem to constantly abandon older HW (the classic IoT model).? I would encourage you to go with an Rpi, BBB, etc. --David KI6ZHD |
|||
Re: Linpac screen size
David Ranch
开云体育Hello Mike,
Ok.. well, as mentioned before, I can't reproduce this issue and I think it would be silly to buy an Odroid as they seem to constantly abandon older HW (the classic IoT model). I would encourage you to go with an Rpi, BBB, etc. --David KI6ZHD |
|||
XML-RPC and Hamlib
David Ranch
开云体育Changing the subject to reflect the topic
Correct, direwolf does not have support for FLdigi's XML-RPC system. As for hamlib, yes, Direwolf supports it and it's covered in the UserGuide. It will require you to rebuild Direwolf one you have hamlib libraries installed on your machine. I imagine you'll need to increase your Direwolf's TXDELAY parameter to cope with the additional processing requirements. --David KI6ZHD |
|||
Re: Linpac screen size
开云体育
Oh .. sorry .... yea ... still using the Odroid-x2 with the older kernel ... 3.8.13 Seen on odroid forums that some are working on mainline .... but are unwilling to provide an image (and im thinking -- wtf, why bother then-- lol)
Lets chat abit about hamlib3 or XML-RPC for Tx control .... i'll guess direwolf does not work with XML-RPC, so ill go with asking how to configure for hamlib3 rig2 localhost:4575 (or 4532) ... ill keep looking ....
From: direwolf_packet@... on behalf of David Ranch dranch@... [direwolf_packet]
Sent: Monday, November 7, 2016 11:00 AM To: direwolf_packet@... Subject: Re: [direwolf_packet] Linpac screen size ?
?
? The number of lines shown, for TX, RX, and MONITOR is configurable.? See this URL for some recommendations: ?? ?? Specifically see the items: ?? -- ?? statline 5 ?? chnline 30 ?? infoline 5 ?? swapedit ?? redraw ?? --
Ok.. good to know.? Regarding your multi-TX transmit issue.. are you still using your Odroid unit with it's older kernel? --David KI6ZHD |
|||
Re: Linpac screen size
David Ranch
开云体育Hello Mike,
The number of lines shown, for TX, RX, and MONITOR is configurable. See this URL for some recommendations: Specifically see the items: -- statline 5 chnline 30 infoline 5 swapedit redraw --
Ok.. good to know. Regarding your multi-TX transmit issue.. are you still using your Odroid unit with it's older kernel? --David KI6ZHD |
|||
Re: Linpac screen size
开云体育Ok .... making the terminal size larger BEFORE starting linrad -- too easy, should of thought of that ... Having 15 lines to view the response from a BBS or other is a bit too short ... I was incorrect that direwolf does not decode until tx attempt ... I had left my radio on and used a remote terminal to start linpac. Besides default start up of quisk having vox off ... squelche is default on and at the time I did not realize audio was not being sent to direwolf.
Get On Mon, Nov 7, 2016 at 8:16 AM -0800, "David Ranch dranch@... [direwolf_packet]"
<direwolf_packet@...> wrote:
?
? The screen resizing support in Linpac is fairly weak but I found a work around for it.? What I do is I open up a terminal in the desired size.? I then start screen which inturn starts Linpac inside of it.? At that point, I've seen Ncurses behave better and it also allows for connecting and disconnecting to the Linpac session via remote SSH logins, etc.
The best I can tell, this multi-TX is a kernel issue but I haven't been able to reproduce it.? As for needing to TX before you can RX, that's something new and this is the first I've heard of it.? Tell us about your setup.? Are you still using that Odroid SBC? --David KI6ZHD |
|||
Re: Linpac screen size
David Ranch
开云体育Hello Mike,
The screen resizing support in Linpac is fairly weak but I found a work around for it. What I do is I open up a terminal in the desired size. I then start screen which inturn starts Linpac inside of it. At that point, I've seen Ncurses behave better and it also allows for connecting and disconnecting to the Linpac session via remote SSH logins, etc.
The best I can tell, this multi-TX is a kernel issue but I haven't been able to reproduce it. As for needing to TX before you can RX, that's something new and this is the first I've heard of it. Tell us about your setup. Are you still using that Odroid SBC? --David KI6ZHD |
|||
Linpac screen size
开云体育Any one know how to change the linpac screen size ... when i stretch the terminal .. the linpac area stays the same ... its just a bit too small ....
You would understand when you think about the space on a 7" touchscreen ....
Also .. i seen some chatter about fixing the first two Tx trys that are junk before direwolf starts to actually Tx ... hows that coming along? kinda sucks that you need to Tx before any Rx will start too .... |