Keyboard Shortcuts
Likes
Search
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 !!!!
|
|||
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 |
|||
开云体育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
|
|||
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 |
|||
开云体育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
|
|||
David Ranch
开云体育Hello Mike,
Direwolf has native GPIO support (Raspberry Pi, BeagleBoneBlack, etc) but hamlib also supports limited GPIO functionality for the CM108 USB chip.
I'm sure it's possible.. you'll just need to use unique UDP ports for each rigctl daemon. I would take that topic up with the Hamlib yahoo group. --David KI6ZHD |