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.55k stars 302 forks source link

Packets chopped to almost nothing #213

Open TheButterZone opened 5 years ago

TheButterZone commented 5 years ago

Now Raspbian GNU/Linux 9 (stretch) 4.19.42-v7+ isn’t playing Direwolf 1.5’s packets in their entirety, only a split second (0.09 seconds according to Audacity) of flat tone, through the RPi 3B+ internal soundcard. I plugged in earbuds to confirm this instead of just listening for the packets through another radio, like I successfully did when I set it up.

There is no USB audio adapter. There has never been any USB audio adapter.

I switched on CBEACON & it Morse-coded out perfectly.

dranch commented 5 years ago

It's not clear what your issue is here. Are you saying that you previously had a fully functioning Direwolf v1.5 setup but after a Raspbian update, it no longer works? Since you mention you never used a USB adapter, I assume you were only transmitting packets and not receiving them (you need a microphone for that and Raspberry Pis don't have microphone inputs). If that's all correct so far, can you state what kernel version you're using? If you use Direwolf's calibrate feature, does that work as expected?

TheButterZone commented 5 years ago

I don't know when exactly AX.25 stopped working. I knew it worked when I initially enabled IGate & sent test messages back & forth, it worked when I initially enabled PBEACON on channel 0, it worked when I initially enabled the digipeater. Now this is the only peep it makes:

Screen Shot 2019-06-21 at 10 24 21

It's still receiving only via RTL-SDR, but that's irrelevant.

4.19.42-v7+

What is "Direwolf's calibrate feature" for audio out?

dranch commented 5 years ago

When you say you "sent messages back and forth", do you mean over the Internet to the IGATE? If so, that won't have anything to do with Direwolf's modem side of things. I see your time-domain capture of the audio but would it be possible for you to attach an mp3 or wav of this audio to this ticket? Finally, it seems that your using an SDR for listening and the RPi built-in soundcard as output. Have you rebooted your Rpi to make sure things are in a pristine state.

Finally, please see how to use the calibrate feature in the Direwolf User-Guide.

TheButterZone commented 5 years ago

IGating most certainly does have to do with Direwolf's modem; the terminal events feed shows it transmit on 0L when I send a message to myself, but just a 0.09 second blip plays.

Rebooted more times than I can remember, every single time any technical issue has ever come up throughout my life. I didn't just get into computers yesterday.

Archive.zip

dranch commented 5 years ago

What is your ADEVICE setting? I'm curious what playback sound system you're using (OSS, Alsa, PulseAudio, etc).

TheButterZone commented 5 years ago

Still Alsa, ADEVICE - plughw:0,0

dranch commented 5 years ago

Hmmm.. that looks fine. I also listened to your audio files and the beacon sounds initially ok but obviously too short. I just made some connected-mode connections to various APRS digipeaters here in the Bay Area, CA on 144.390 so that proves to me that I'm not having having similar issues on my Raspbian Stretch with Direwolf v1.5 using a recommended Syba USB soundcard.

The only other thing I could initially say is if you could try using an external USB sound card for the TX audio? It might be different and it would help narrow things down (generally, I don't think most people use the on-board audio at all).

--David

TheButterZone commented 5 years ago

I'm not going to spend money to suffer a known bug.

petem001 commented 5 years ago

Sorry but most usb sound card have stereo output and a mike in, so if you have a usb sound card you already got all you need.


De : Alwin Roe notifications@github.com Envoyé : 21 juin 2019 21:52 À : wb2osz/direwolf Cc : Subscribed Objet : Re: [wb2osz/direwolf] Packets chopped to almost nothing (#213)

I'm not going to spend money to suffer a known bughttps://github.com/wb2osz/rpi-usb-audio-bug.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/wb2osz/direwolf/issues/213?email_source=notifications&email_token=AIJP75S7R2D4CWPJGCCWCJ3P3WAXDA5CNFSM4H2IQTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJ5R4I#issuecomment-504617201, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIJP75RHPEZ6RW3DDQS5BPDP3WAXDANCNFSM4H2IQTCA.

TheButterZone commented 5 years ago

There is no USB audio adapter. There has never been any USB audio adapter.

petem001 commented 5 years ago

https://www.amazon.com/Channel-External-Sound-Audio-Adapter/dp/B07796JZ1Q/

At 4.99$ this aint a big invertment


De : Alwin Roe notifications@github.com Envoyé : 21 juin 2019 22:32 À : wb2osz/direwolf Cc : petem001; Comment Objet : Re: [wb2osz/direwolf] Packets chopped to almost nothing (#213)

There is no USB audio adapter. There has never been any USB audio adapter.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/wb2osz/direwolf/issues/213?email_source=notifications&email_token=AIJP75VICHUV5Z63KWZRMZ3P3WFKNA5CNFSM4H2IQTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJ6ENQ#issuecomment-504619574, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIJP75R2Q5MH6AOD2MVGN33P3WFKNANCNFSM4H2IQTCA.

TheButterZone commented 5 years ago

I'm not going to spend money to suffer a known bug.

petem001 commented 5 years ago

Strangely the Allstarlink distribution on the RPI use that kind of usb sound card ( cm108 chips) and the timing is perfect..

This system runs on an old version of Asterisk (the PBX system). A lot more heavy software to run then direwolf.


De : Alwin Roe notifications@github.com Envoyé : 21 juin 2019 22:39 À : wb2osz/direwolf Cc : petem001; Comment Objet : Re: [wb2osz/direwolf] Packets chopped to almost nothing (#213)

I'm not going to spend money to suffer a known bughttps://github.com/wb2osz/rpi-usb-audio-bug.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/wb2osz/direwolf/issues/213?email_source=notifications&email_token=AIJP75XTXXS74O4BZOZTLW3P3WGHLA5CNFSM4H2IQTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJ6IAA#issuecomment-504620032, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIJP75UG6GVB2UQGSXN34CLP3WGHLANCNFSM4H2IQTCA.

dranch commented 5 years ago

Yes, it's been reported that Allstar doesn't have the USB sound card + ALSA TX delay issue that's been observed by some with Direwolf. Viable work arounds are available including the OSS driver instead or using an I2S-based soundcards like the Fe-Pi. The next step is up to you as alternative ideas have been provided for you to try.

--David

TheButterZone commented 5 years ago

alsa = 1 to

alsa = 1

with a save & reboot, made no difference. The Morse beacon continues to be the only audio that plays properly.

The only idea that isn't the definition of insanity is looking like a full wipe of Direwolf & starting from scratch. Done.

Made no difference to the packet chop-off even when starting with a default direwolf.conf from make install-conf, filling in

ADEVICE - plughw:0,0

MYCALL callsign-10

& uncommenting one of the PBEACON lines.

Makes absolutely no sense for the RPi internal soundcard to ONLY play Morse code, never a properly formed AX.25 packet, unless it's literally possessed by a silent key who HATES all no-code Extras & will haunt us for eternity.

TheButterZone commented 5 years ago

Reflashed with Raspbian Buster Lite, installed everything over again from scratch, following Direwolf user guide, AX.25 audio out packets again chopped to almost nothing.

dranch commented 5 years ago

It sounds like your issue revolves around using the Raspberry PI's on-board output only sound card. You mentioned above that you've tried this with the ALSA driver and had issues. There is one alternative idea to use the OSS wrapper which seems to help on the delay issue with USB-based sound devices but might not help on I2S based (Fe-Pi sound HAT). I don't know if this approach would help on the built-in sound device but it might be worth trying since you don't want to add a recommended USB sound device per the Direwolf UserGuide. The OSS work arounds have been mentioned on the Direwolf Yahoo group so please search the archives there and give that a try.

TheButterZone commented 5 years ago

The Direwolf UserGuide should no longer recommend anything that Direwolf's own developer found a bug for.

Screen Shot 2019-07-10 at 12 54 55

I can't login to Yahoo & the latest terms of service I saw are unacceptable. SMH at walled gardens.

nayrnet commented 5 years ago

I'm seeing something similar, brought my station back online after being down for nearly a year and updated it.. I had no problems hearing others but nobody could hear me.. did some volume calibrations and everything coming out sounded like garbage compared to other aprs packets.. Device is oDroid C2 running Buster w/DW Dev Branch on a SignaLink.. (had to clean install it because I borked system trying to upgrade kernel and thats why its been down, didnt have time til recently to fix it) Moved it over to an x86_64 VM and all is well, people hear me just fine with same radio, same config, same sound card.