jambox-pi-gen icon indicating copy to clipboard operation
jambox-pi-gen copied to clipboard

Can wifi be activiated ?

Open goldyliang opened this issue 4 years ago • 10 comments

I know Jamulus works on Lan, but for whatever reason, we may want to operate the PI when there is only wifi accessible. Can it be built-in as well, or an option provided?

If I want to manually activate wifi, what would be the procedure?

goldyliang avatar Jan 14 '21 19:01 goldyliang

Just access the desktop via the integrated VNC capability, and turn WiFi on (assuming you are using an rpi4, btw)

If you are using a different model of pi, you may need a WiFi ‘hat’

On Thu, 14 Jan 2021 at 19:54, Goldy (Gordon) [email protected] wrote:

I know Jamulus works on Lan, but for whatever reason, we may want to operate the PI when there is only wifi accessible. Can it be built-in as well, or an option provided?

If I want to manually activate wifi, what would be the procedure?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kdoren/jambox-pi-gen/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXXXG6BNLFAW5SZVVVPDTTSZ5DWPANCNFSM4WC64XIQ .

Zaidcrowe avatar Jan 14 '21 20:01 Zaidcrowe

How to turn wifi on? I always got "no wireless interface found". I am using rpi4 module B. I am assuming this module always comes with a wireless interface?

goldyliang avatar Jan 14 '21 20:01 goldyliang

Oh that's odd; As far as I'm aware that model (the same as mine) always comes with Wifi - but I could be wrong!

Have you tried it using a standard copy of Raspian, just to see if it behaves differently?

There are some useful tips here: https://www.raspberrypi.org/forums/viewtopic.php?t=259530

I hope it helps; sounds like a PI issue rather than Jambox-pi...

On Thu, Jan 14, 2021 at 8:13 PM Goldy (Gordon) [email protected] wrote:

How to turn wifi on? I always got "no wireless interface found". I am using rpi4 module B. I am assuming this module always comes with a wireless interface?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kdoren/jambox-pi-gen/issues/21#issuecomment-760449155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXXXGZZSWHW5RCKWLIQVD3SZ5F4XANCNFSM4WC64XIQ .

Zaidcrowe avatar Jan 14 '21 20:01 Zaidcrowe

Good to know. I will try the standard image. From what I search all rsp4b should have built in wireless.

https://www.raspberrypi.org/documentation/faqs/#:~:text=The%20Raspberry%20Pi%204%20Model,wireless%20LAN%2C%20and%20Bluetooth%205.0.

goldyliang avatar Jan 14 '21 20:01 goldyliang

I believe wireless is disabled in /boot/config.txt, you need to comment or remove this line:

dtoverlay=disable-wifi

Reboot, then try enabling wifi.

Carlos

On Thu, Jan 14, 2021 at 12:25 PM Goldy (Gordon) [email protected] wrote:

Good to know. I will try the standard image. From what I search all rsp4b should have built in wireless.

https://www.raspberrypi.org/documentation/faqs/#:~:text=The%20Raspberry%20Pi%204%20Model,wireless%20LAN%2C%20and%20Bluetooth%205.0 .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kdoren/jambox-pi-gen/issues/21#issuecomment-760455496, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKJTE3JT6YAM3YY23UC6QDSZ5HMXANCNFSM4WC64XIQ .

CAguayo avatar Jan 14 '21 20:01 CAguayo

@CAguayo yes that works! Thanks! I have interface now though I can not connect yet.

I tried to search wifi or wireless in the whole repository but found nothing. This is better documented.

goldyliang avatar Jan 14 '21 20:01 goldyliang

There is an expectation that you would not want to use wireless, as that's really bad for latency and jitter, so it's not surprising that you don't see it mentioned in the source tree. Here's a guide for enabling wifi from the command line:

https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

On Thu, Jan 14, 2021 at 12:45 PM Goldy (Gordon) [email protected] wrote:

@CAguayo https://github.com/CAguayo yes that works! Thanks! I have interface now though I can not connect yet.

I tried to search wifi or wireless in the whole repository but found nothing. This is better documented.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kdoren/jambox-pi-gen/issues/21#issuecomment-760465429, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKJTEZZ4YWESYYV3VWWGPDSZ5JYDANCNFSM4WC64XIQ .

CAguayo avatar Jan 14 '21 20:01 CAguayo

The readme file did mentioned options to even auto connect certain wifi AP so I think there is a need to clarify how to activate it. How is that config.txt configured in this GIt repository or is it default from some external source?

goldyliang avatar Jan 14 '21 21:01 goldyliang

@goldyliang I disabled wifi to keep people out of trouble; WiFi can add a lot of jitter so you're not likely to be happy using it. (I've heard people say "I have gigabit internet, so I can use WiFi" but it doesn't work like that).

It's disabled on line 18 here when the image is generated: https://github.com/kdoren/jambox-pi-gen/blob/jambox/stage3/04-install-sw/08-run.sh

However, if you want to use WiFI, as Carlos said, first you need to stop disabling in on boot:

sudo sed -i 's/^dtoverlay=disable-wifi/#dtoverlay=disable-wifi/' /boot/config.txt

Then, after first reboot, you need to set your country (it won't enable until you do that). This is done by clicking the network up/down arrow icon on the taskbar at the very upper right. Then after turning on WiFi, you can select a network and login.

You say you may want to use it where only WiFi is available. However, in order log your Raspberry Pi into WiFi, you need to be connected to your Raspberry Pi. So you would need to either:

  1. hook a display and keyboard to you RPi so you can login to WiFI
  2. Set it up so that you can get to the desktop via Bluetooth. This is a bit tricky to set up; I've done it in the past but this seems to not be working now, not sure why.
  3. Set the WFi login credentials in advance and hope that it works when you get there:

WiFi login credentials are set in the file "/etc/wpa_supplicant/wpa_supplicant.conf":

cttrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
        ssid="<ssid>"
        psk="<password>"
        key_mgmt=WPA-PSK
}

According to this link: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis
If there is a wpa_supplicant.conf file in the /boot/ partition, it will be copied on boot. This means that you could pull the SD card from the Pi, plug it into a PC, add the wpa_supplicant.conf file with WiFi credentials to /boot/. then plug it back into the Pi and it should connect.

kdoren avatar Jan 16 '21 18:01 kdoren

I've actually wondered why we leave bluetooth enabled, maybe that should be shut off unless it's needed as well. At very least, it takes power to run, and at worst, it introduces more background activity in a system that we really want to be dedicated to audio processing.

Carlos

On Sat, Jan 16, 2021 at 10:56 AM Kevin Doren [email protected] wrote:

@goldyliang https://github.com/goldyliang I disabled wifi to keep people out of trouble; WiFi can add a lot of jitter so you're not likely to be happy using it. (I've heard people say "I have gigabit internet, so I can use WiFi" but it doesn't work like that).

It's disabled on line 18 here when the image is generated: https://github.com/kdoren/jambox-pi-gen/blob/jambox/stage3/04-install-sw/08-run.sh

However, if you want to use WiFI, as Carlos said, first you need to stop disabling in on boot:

sudo sed -i 's/^dtoverlay=disable-wifi/#dtoverlay=disable-wifi/' /boot/config.txt

Then, after first reboot, you need to set your country (it won't enable until you do that). This is done by clicking the network up/down arrow icon on the taskbar at the very upper right. Then after turning on WiFi, you can select a network and login.

You say you may want to use it where only WiFi is available. However, in order log your Raspberry Pi into WiFi, you need to be connected to your Raspberry Pi. So you would need to either:

  1. hook a display and keyboard to you RPi so you can login to WiFI
  2. Set it up so that you can get to the desktop via Bluetooth. This is a bit tricky to set up; I've done it in the past but this seems to not be working now, not sure why.
  3. Set the WFi login credentials in advance and hope that it works when you get there:

WiFi login credentials are set in the file "/etc/wpa_supplicant/wpa_supplicant.conf":

cttrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US

network={ ssid="" psk="" key_mgmt=WPA-PSK }

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kdoren/jambox-pi-gen/issues/21#issuecomment-761615676, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKJTE6R2FCQ2XPWIWOIL6TS2HONDANCNFSM4WC64XIQ .

CAguayo avatar Jan 16 '21 19:01 CAguayo