Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio lost and only fix is to restart #168

Open
sm0tsc opened this issue May 7, 2020 · 17 comments
Open

Audio lost and only fix is to restart #168

sm0tsc opened this issue May 7, 2020 · 17 comments

Comments

@sm0tsc
Copy link

sm0tsc commented May 7, 2020

Hi since some time xlxd stops to pass audio. Callsigns etc is passed
Any clue how to debug? Or fix. I don´t find anything specific in logs. XLX010 is using last version
//SM0TSC

@LX1IQ
Copy link
Collaborator

LX1IQ commented May 8, 2020

Hi,
Normally it is not the XLX, which is crashing, but the usb port of the AMBed server.
You should see very high packet loses in the log.
Most of the time it is sufficient to kill the AMBed task and start it again.
In the download section, you can find a small script, which allows you to run the AMBed as a service.
You can schedule a restart of the service at night.
We need to add some sort of watchdog to the AMBed. So if the dongle get unresponsive the service can restarts by its own.

73, Luc

@sm0tsc
Copy link
Author

sm0tsc commented May 8, 2020 via email

@LX1IQ
Copy link
Collaborator

LX1IQ commented May 8, 2020

Do to the fact that all traffic is always sent to the AMBed server. All modes are affected.

73, Luc

@sm0tsc
Copy link
Author

sm0tsc commented May 8, 2020 via email

@sm0tsc
Copy link
Author

sm0tsc commented May 8, 2020 via email

@LX1IQ
Copy link
Collaborator

LX1IQ commented May 8, 2020

You are going to see in the XLX log very high packet lost for the AMBed.
If you kill the AMbed, it takes a few seconds until the XLX disconnects the AMBed server with a keep alive timeout.
At this point, D-Star to D-Star should already come back.

73, Luc

@sm0tsc
Copy link
Author

sm0tsc commented May 8, 2020 via email

@LX1IQ
Copy link
Collaborator

LX1IQ commented May 8, 2020

If you stop the XLX, of course the connection on the AMBed side is disconnecting too.
When you start the XLX back on, a new connection is established to the AMBed server which is resetting the dongle connection, connected to the AMbed as well.

@sm0tsc
Copy link
Author

sm0tsc commented May 8, 2020 via email

@sm0tsc
Copy link
Author

sm0tsc commented May 8, 2020 via email

@sm0tsc
Copy link
Author

sm0tsc commented May 8, 2020 via email

@sm0tsc
Copy link
Author

sm0tsc commented May 10, 2020

Seems not to help. Only helps with restarting xlxd.. Any more ideas?

//Johan

@LX1IQ
Copy link
Collaborator

LX1IQ commented May 10, 2020

Any errors in the log ?

@sm0tsc
Copy link
Author

sm0tsc commented May 10, 2020

Nothing that I can see out of the ordinary I see some ambed timeouts but no other errors. Restarted ambed with no change, then after some mnutes I restarted xlxd and trafic started flowing again
No ambedstats messages while error persists

Attached is syslog

//Johan
syslog.zip

@bv3un
Copy link

bv3un commented Feb 24, 2021

same problem here .when the audio not pass through .the "timed out" is appear on /var/log/message
after restart ambed .it becomes normal . xlxd is 2.4.1 /ambed 1.3.4 or 1.3.5 same problem

no packet loss on ambed log .only timed out message on xlxd log as below

Mar 3 05:24:09 debian-reflector xlxd: ambed 170 of 216 packets timed out
Mar 3 06:58:07 debian-reflector xlxd: ambed 152 of 190 packets timed out
Mar 3 08:45:26 debian-reflector xlxd: ambed 123 of 173 packets timed out
Mar 3 12:54:10 debian-reflector xlxd: ambed 207 of 576 packets timed out
Mar 3 12:54:33 debian-reflector xlxd: ambed 252 of 252 packets timed out
Mar 3 12:55:27 debian-reflector xlxd: ambed 2475 of 2538 packets timed out
Mar 3 12:56:20 debian-reflector xlxd: ambed 2273 of 2292 packets timed out
Mar 3 12:57:04 debian-reflector xlxd: ambed 174 of 177 packets timed out
Mar 3 12:58:37 debian-reflector xlxd: ambed 2246 of 2268 packets timed out
Mar 3 12:59:28 debian-reflector xlxd: ambed 235 of 237 packets timed out
Mar 3 13:22:26 debian-reflector xlxd: ambed 74 of 75 packets timed out

@LX1IQ
Copy link
Collaborator

LX1IQ commented Oct 28, 2021

Coming back to this issue.
The problem is definitively the FTDI chip (USB port ) on the ambed server side which is crashing.
If you install the latest ambed server software you should see something like this in the log of the ambed server.
We need some more investigations to see if we get always the same error which would make it much easier to fix.

Oct 27 06:25:12 ambed01 ambed[546]: Stream Open from XLX270
Oct 27 06:25:12 ambed01 ambed[546]: Vocodec channel USB-3012_A:0 -> USB-3012_A:1 open
Oct 27 06:25:12 ambed01 ambed[546]: Opened stream 88
Oct 27 06:25:19 ambed01 ambed[546]: FTDI_read_bytes(12) failed : 7
Oct 27 06:26:26 ambed01 ambed[546]: Vocodec channel USB-3012_A:0 -> USB-3012_A:1 closed
Oct 27 06:26:26 ambed01 ambed[546]: 0 of 3718 packets lost
Oct 27 06:26:26 ambed01 ambed[546]: Stream 88 closed

73, Luc

@ShaYmez
Copy link

ShaYmez commented Jan 7, 2022

The trouble is, we can put a watchdog on the AMBEd service but the XLXd stream still does not recover. You have to physically restart the XLXD service to recover! Is there a fix for this yet? Maybe add a watchdog for XLX to restart in the event of a failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants