¿ªÔÆÌåÓý

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

#!/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


The second script is embedded in the first, here it is

#!/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:
?

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@yahoogroups.com <direwolf_packet@yahoogroups.com> on behalf of Skyler F electricity440@... [direwolf_packet] <direwolf_packet@yahoogroups.com>
Sent: Monday, November 7, 2016 12:33 PM
To: direwolf_packet@yahoogroups.com
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@yahoogroups.com> wrote:
?

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 !!!!


direwolf - Dire Wolf is a software "soundcard" modem/TNC and APRS encoder/decoder. It can be used stand-alone to observe APRS traffic, as a digipeater, APRStt ...






--
Skyler Fennell
KD?WHB




--
Skyler Fennell
KD?WHB

Join [email protected] to automatically receive all group messages.