On Thu, Feb 6, 2025 at 02:33 PM, Joseph LaFerla wrote:
I have dw 1.8 on my raspberry pi3b+.which has been working well.? I would like to investigate how I can better start dw.? As the manual suggests, I first find the input and output parameters using arecord and aplay .? I enter those values in direwolf.conf under ADEVICE.? The values I put in ADEVICE are subject to change with every reboot and do.? The manual mentions that the values in direwolf.conf can be overwritten by using command line options when starting dw.? This would avoid me having to edit the direwolf.conf file each time I need to change the parameters.? I have tried several options but dw fails to start every time.? Can someone point out my mistake or point me to the page in the manual where I can find this?
I run it in KISS mode, use a bash script to grab the pty names (the BASH_REMATCH variable), and feed those to kissattach:
??regex="Virtual KISS TNC is available on.*(/dev/pts/[0-9])"
?
??/usr/bin/rm -f /tmp/nohup.out ?
??/usr/bin/direwolf -p > /tmp/nohup.out &
??/usr/bin/sleep 3
??search=`/usr/bin/cat /tmp/nohup.out`
??echo ${search}
??if [[ "${search}" =~ ${regex} ]]; then
?????echo good - ${BASH_REMATCH[1]}
?????echo kissattach ${BASH_REMATCH[1]} ${dev}0
?????/usr/sbin/kissattach ${BASH_REMATCH[1]} ${dev}0
?????/usr/bin/sleep 3
??else
?????echo failed to attach ${dev}0
?????exit
??fi