wb2osz / direwolf

Dire Wolf is a software "soundcard" AX.25 packet modem/TNC and APRS encoder/decoder. It can be used stand-alone to observe APRS traffic, as a tracker, digipeater, APRStt gateway, or Internet Gateway (IGate). For more information, look at the bottom 1/4 of this page and in https://github.com/wb2osz/direwolf/blob/dev/doc/README.md
GNU General Public License v2.0
1.51k stars 300 forks source link

"Bad Address" errors #475

Closed dancrossnyc closed 1 year ago

dancrossnyc commented 1 year ago

I have two instances of direwolf communicating with two radios on a single machine and recently, transmissions has started failing with the following error:

Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Audio output start error.
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Error preparing after bad state: Bad address
Jun 13 13:00:01 vhf1.kz2x.ampr.org direwolf[424]: Audio write error retry count exceeded.

Relevant platform details:

The receive path is fine on both instances.

Both instances of direwolf talk to Tigertronics Signalink USB external sound cards via ALSA; there is no pulseaudio installed on this machine.

Any advice is appreciated! I greatly prefer direwolf to a hardware TNC.

dranch commented 1 year ago

Hello Dan, This Github "issues" area is not intended for user support. Please close this Github issue, join the Direwolf groups.io email list, and re-post your issue there. That said, your above output including the line "Audio write error retry count exceeded" gives a major clue. It looks like the sound devices are having issues due to probably RFI getting into the devices and/or cables. If you're running two systems locally over RF, you must run at very low power, separate the devices by some decent amount, etc. It would also be advisable to add the correct RFI-suppressing ferrite chokes to all cables going in/out of the computer and Signalink to minimize RFI.

dancrossnyc commented 1 year ago

Sure, closing here. However, I'm not sure about the RFI explanation; this was working fine for a few years and stopped pretty suddenly, with no hardware changes (or moves of things).