¿ªÔÆÌåÓý

Re: RasPi+Direwolf hangs after 5 min


David Ranch
 

¿ªÔÆÌåÓý


Hello Tim,

Machine 1:
Raspberry Pi 3 with latest firmware updates
Sound Card: USB CableCreation (Cheap off of Amazon)

Within 5 minutes of stating Direwolf hangs with:

[0L] KD9DCS-5>APDW13,WIDE2-1:T#275,1,a,9,9,3
[0L] KD9DCS-5>APDW13,WIDE2-1:T#276,10,a,9,9,3

Audio input device 0 error: Input/output error

As you can see it sent 276 packets and then nothing ...


A few thoughts here:

1. Direwolf is known to be somehwhat temperamental with some cheap USB sound cards.? I recommend to splurge and by a $7 Syba unit

2. Direwolf is known to not like having the USB sound card behind a USB hub.? Make sure yours is directly connected to the Rpi itself

3. RFI from your radio can cause all kinds of weird issues.? As an experiment, try unconfiguring PTT in the direwolf.conf file (makes Direwolf think your using VOX) and see if things work longer that 5minutes.? If it DOES work longer, you probably have an RFI issue.? You'll want to install various ferrite chokes, shielded cables, etc. to resolve this


The original packets are being decoded correctly on another machine connected via audio patch cable


Oh.. so no RF transmitter is involved in this test?? Even then, you could be getting voltage differentials across the grounds.? Btw, I assume you installed decoupling capacitors between the microphone jack on one sound card going into the speaker jack of the other sound card?? This is VERY important or you can potentially fry BOTH soundcards if they have a microphone bias voltage but don't include a decoupling cap.



dmesg shows an error:
[? 689.867115] Transfer to device 5 endpoint 0x2 frame 1757 failed - FIQ timed out. Data may have been lost.
[? 695.741100] cdc_acm 1-1.5:1.0: failed to set dtr/rts
[? 728.387504] cdc_acm 1-1.5:1.0: failed to set dtr/rts


You might want to read this thread which I found by simply Googling your error above:

? ?

Is your Rpi running the newest version of Raspbian:

?? sudo apt-get update
?? sudo apt-get upgrade
?? sudo apt-get dist-upgrade
?? sudo apt-get install rpi-update
?? sudo rpi-update

Once everything goes well, then do:
?? sudo reboot

If those are new steps to you, I encourage you to read:

??


lsusb shows that device 5 is the usb audio card:
pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM)
Bus 001 Device 005: ID 0d8c:0014 C-Media Electronics, Inc.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I don't know what the Arduino device is or how much power it consumes but I would encourage you have:

? - a quality 5.1v (not 5.0volt power supply) : yes, 5.1v supplies are available
? - put other USB devices behind a POWERED USB hub - don't assume the Rpi can properly power all USB devices (it can't)


--David
KI6ZHD

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