davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
320 stars 54 forks source link

USB soundcard noise when comitup run #105

Closed hakao32 closed 4 years ago

hakao32 commented 4 years ago

I have a USB soundcard for my RPi 3. http://60.248.10.74/support/download/542/UDA-500(Spec).pdf It works great, I can get the Mic input clearly but when I start comitup service a noise rise. And noise doesnt disapper even if I stop comitup service again. What kind of services comitup use? I think it is about WiFi search because when I put my soundcard away from RPi with usb expander, noise disappears.

hakao32 commented 4 years ago

And while service running but connected to a WiFi, there is no noise. Noise only appears in HOTSPOT mode.

davesteele commented 4 years ago

It is likely the wifi. To verify:

Does this turn the sound on/off?

If so, why does the AP cause noise and not a normal connection? Possibilities - the AP is limited to 2.4GHz, while your other connection may be 5GHz. The limitation in AP is caused by the "band=bg" line in the NM configuration file (in /etc/NetworkManager/system-connections). APs are always sending traffic - does the noise come up with an upstream connection if the link is busy? It may also be the channel - change it with "channel=<n>" in the wifi section of the config file.

hakao32 commented 4 years ago

sudo systemctl stop comitup sudo nmcli connection down I did this there is no noise at all when AP down. But if I up AP, the noise comes back. How I can understand if link is busy or not. Noise come up only at AP no matter if any other device connected to the AP or not. There is no 5GHz device nearby. I put "channel=" to /etc/NetworkManager/system-connections config file, 1, 2,10. I just made down and up the nmcli configuration for refresh but there is still noise.(if I restart the comitup service, "channel=" line goes.) Edit: Adding "channel=" and reload the nmcli has no effect. AP use channel 1 (2412) in any case. Edit: I add a line to nm.py:

'802-11-wireless':
    {
            'mode': 'ap',
            'ssid': name,
            'band': "bg",
            'channel': 11, #added
    },

It changes the channel but there is still noise.

davesteele commented 4 years ago

busy = use it to watch YouTube I was suggesting that your upstream connection may be using 5GHz. Channel= is part of the NM config, in the wifi section. See https://developer.gnome.org/NetworkManager/stable/settings-802-11-wireless.html.

You have an interference problem between your USB devices. You need to isolate or replace them.