Live data from Hacker News

Raspberry Pi WLAN setup

berrylan.org

51–60 of 86 posts

Re: Raspberry Pi WLAN setup

#51
post #47

Earlier quoted context omitted.

> You could make the same argument for other assisted headless installations: speakers, smart plugs, etc. That's true, but in those devices can be isolated from the internet by a firewall. Berrylan can't be, or it loses its utility. In order to talk to the app, Berrylan has to send packets to and receive packets from the internet. Also, even after the setup, most RaspPi applications entail having the computer continu…

Doesn't this just work over Bluetooth for the initial config? The internet isn't useful at this point because it isn't connected to a WLAN.

Ah, that's a good point.

Re: Raspberry Pi WLAN setup

#52
post #33

https://github.com/jasbur/RaspiWiFi fairly stable light weight system that does the same thing, also comes as an etchable .img one advantage here is that if the Pi goes offline for extended period it will flip on its AP broadcast mode allowing wifi to be setup again. Code is highly modular and maintainable.

Just out of curiosity, but why doesn't Raspberry Pi 3B support simultaneous broadcasting and receiving of Wi-Fi? I've seen multiple apps that swap between these modes (e.g. using broadcast mode to set up a captive portal) and then swapping to receiver mode, but never both at the same time. I've tried many times to configure this, all unsuccessfully. Is there some fundamental limitation with the underlying hardware th…

Did you try adding another wifi adapter? I’m not sure I understand your question well- seems like this is easy to resolve.

Re: Raspberry Pi WLAN setup

#53
post #33

https://github.com/jasbur/RaspiWiFi fairly stable light weight system that does the same thing, also comes as an etchable .img one advantage here is that if the Pi goes offline for extended period it will flip on its AP broadcast mode allowing wifi to be setup again. Code is highly modular and maintainable.

Just out of curiosity, but why doesn't Raspberry Pi 3B support simultaneous broadcasting and receiving of Wi-Fi? I've seen multiple apps that swap between these modes (e.g. using broadcast mode to set up a captive portal) and then swapping to receiver mode, but never both at the same time. I've tried many times to configure this, all unsuccessfully. Is there some fundamental limitation with the underlying hardware th…

My understanding was that this always requires an entire second wifi module? On my big expensive desktop computer, I can only ever recieve or broadcast a wifi network, never both. Unless I install an additional wifi adapter.

Re: Raspberry Pi WLAN setup

#54
post #49
post #30

In a previous company we built a Bluetooth Low Energy server app into the embedded Raspberry Pi-like system. Long story short: 1. RPi broadcasts via BLE the wifi networks it can see 2. A ReactNative App lets the user choose the wifi network to connect to, pre-selected is the wifi network which the mobile is connected to 3. User enters wifi password 4. App sends it to RPI, still via BLE 5. RPi responds with IP address…

Hmm, using BLE to send your WPA2-PSK password? Isn't that insecure?

[deleted]

Re: Raspberry Pi WLAN setup

#55
post #33

Earlier quoted context omitted.

Just out of curiosity, but why doesn't Raspberry Pi 3B support simultaneous broadcasting and receiving of Wi-Fi? I've seen multiple apps that swap between these modes (e.g. using broadcast mode to set up a captive portal) and then swapping to receiver mode, but never both at the same time. I've tried many times to configure this, all unsuccessfully. Is there some fundamental limitation with the underlying hardware th…

My understanding was that this always requires an entire second wifi module? On my big expensive desktop computer, I can only ever recieve or broadcast a wifi network, never both. Unless I install an additional wifi adapter.

The Pixel 3/3 XL (and several other Android smartphones) can run both a hotspot and Wi-Fi simultaneously. [1]

I could be wrong, but I am fairly sure these phones only have a single Wi-Fi module.

[1] https://www.androidpolice.com/2018/11/03/pixel-3-3-xl-suppor...

Re: Raspberry Pi WLAN setup

#56
post #49
post #30

In a previous company we built a Bluetooth Low Energy server app into the embedded Raspberry Pi-like system. Long story short: 1. RPi broadcasts via BLE the wifi networks it can see 2. A ReactNative App lets the user choose the wifi network to connect to, pre-selected is the wifi network which the mobile is connected to 3. User enters wifi password 4. App sends it to RPI, still via BLE 5. RPi responds with IP address…

Hmm, using BLE to send your WPA2-PSK password? Isn't that insecure?

You probably want to encrypt it with a public key for which the raspi has the private key. You could validate the public key with a qr-code on the raspi, or some other pre-arranged scheme.

This is a very similar situation to being able to access the device on the LAN over tcp/ip and needing to pass it a secret.

Re: Raspberry Pi WLAN setup

#57
post #49
post #30

In a previous company we built a Bluetooth Low Energy server app into the embedded Raspberry Pi-like system. Long story short: 1. RPi broadcasts via BLE the wifi networks it can see 2. A ReactNative App lets the user choose the wifi network to connect to, pre-selected is the wifi network which the mobile is connected to 3. User enters wifi password 4. App sends it to RPI, still via BLE 5. RPi responds with IP address…

Hmm, using BLE to send your WPA2-PSK password? Isn't that insecure?

BLE has support for encrypted communication so should be ok, at least in theory.

Re: Raspberry Pi WLAN setup

#58
post #12

Earlier quoted context omitted.

This small patch of mine to raspbian may be useful for you, then: https://github.com/RPi-Distro/pi-gen/pull/207 The minor downside is that you have to build the image yourself, but fortunately that is a single command once docked is installed.

I must say it's silly we can't be trusted with a simple way to drop in a shell script on the SD card that runs at boot as root in rasbian. I don't even understand the idea that it could be bad for newbies to maybe mess up. The whole point of the RPi was to give students a small, cheap, easy to repair computer with low-level features to learn with.

Yeah, the project is sort of a mess maintainer-wise, but at least it is straightforward to modify/rebuild.

Re: Raspberry Pi WLAN setup

#59
post #49

Earlier quoted context omitted.

Hmm, using BLE to send your WPA2-PSK password? Isn't that insecure?

BLE has support for encrypted communication so should be ok, at least in theory.

The older BLE 4.x versions had lots of security exploits. I'm not sure about the latest 5.x versions though.

Re: Raspberry Pi WLAN setup

#60
post #43

Earlier quoted context omitted.

Say on a Mac or windows box.

But /boot is a FAT32 partition, it's mountable on practiacally any os I'm aware of. On a mac it'll be under /Volumes/boot.

Unless I’m mistaken, /boot isn’t where any kind of network / ssh config would live.
Post reply on HN