Live data from Hacker News

Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

github.com

61–70 of 92 posts

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#61
post #14

A bit off topic: I'm looking for a project that starts with an AP. Once someone connected to it; it opens a web page to configure the client (choose which WIFI from a list, and type the password). It connects to the chosen WIFI and shuts down the AP. Anyone here did something similar to that?

https://github.com/davesteele/comitup does this. No idea how well it works, I have not tried it yet.

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#62
post #32

Earlier quoted context omitted.

Why not a very good one? In terms of range (with the PCB antenna)? Or does the Pi firmware not support some modern 802.11 standards or what?

Well 2 things really. Yeah the hardware is a bit garbage as it only goes up to 802.11n only on 2.4 GHz and it's also a 1x1 with a poor antenna. The big thing though is it requires you use the same channel which is disastrous for repeater performance. Ideally you'd have 802.11ac/ax with 2 separate PHYs each with 4x4 (even if the clients are 1x1 or 2x2 the additional beamforming helps) set to two separate channels. Tha…

...sounds like it costs much more than the $10 pi0...

I imagine the OP's use case of IoT did not require huge amounts of bandwidth.

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#64
post #49

Would this be good for something like connecting the Pi to a VPN for say Canada, then broadcasting an SSID for it. Then connecting a Fire TV Stick or Chromecast to this AP, and tricking it into letting you stream Canadian Netflix or DAZN etc.

Sounds like it would work. I may give that a try. Now to find a VPN for Canada...

edit: Now that I think about it, what's the difference between using the Pi as an AP and using it as a DNS server?

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#65
post #27

Earlier quoted context omitted.

No, the identification method of an extended service set is the SSID, aka the network name. Just set up the same SSID and password on both APs, and put them onto the same ip layer network. Your device will roam the networks automatically. Each AP should get its own MAC otherwise they will think packets sent to the other AP was meant for them. WiFi is robust enough to deal with noise like e.g. bluetooth, so it might s…

How do you do this with most consumer devices? The only AP I've seen do it successfully is the AsusWRT series - Media Extender mode seems to be transparent. If I try it with anything else I'll end up with two seperate networks, e.g. 192.168.8.0/24 connected to 10.1.1.0/24 (I actually have a GL.inet AR750S in this configuration right now)

If you can wire the 2 AP via a LAN, then this is how I've used cheap consumer wifi APs which are usually combo AP+router devices:

The first AP is connecting to internet gateway through its WAN port. This AP does the networking stuff like DHCP, NAT, etc.

The other wifi APs are configured to be AP-only, i.e. disable DHCP. Use same wifi SSID and auth settings as the first AP. Then connect the APs using their LAN ports.

Client devices should now connect to the AP with the best signal.

But if the client is already connected to an AP and a better-signal AP is available, many clients won't automatically connect to the better AP. This is because the client don't know that the other AP is the same network. So if you move around you may need to trigger the client to disconnect and reconnect.

This can be solved with APs that have a "mesh" feature which can instruct connected clients to reconnect to a better AP in the same network using https://en.wikipedia.org/wiki/IEEE_802.11k-2008 but AFAIK mesh systems from different manufacturers aren't interoperable.

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#66
post #63
post #29

I've looked at the links posted here and the repo but I fail to find what is the use case for this?

Ever stay at a hotel that charges for wifi access on a per device basis?

No, but it's not uncommon to find hotel internet that has a fairly low device count limit. The place I use WiFi repeaters is on airplanes, to avoid the hassle of re-authenticating every time I switch between phone and tablet and laptop.

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#67

Has anyone noticed a shortage of Pi Zeros recently? It seems everywhere has run out of stock.

I think this is intentional. The Pi Zero is mostly a marketing device. It's advertised at $5 but unless you happen to have a physical store selling them near you, it's not really $5 because the shipping is never free and you can only ever by one. So it's more like $15.

Still not a crazy price, of course, I just dislike the misleading advertising.

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#68
How to get faster internet at a hotel: Have 4-5 of these connected and talking with the hotels WiFi, and one who share Internet with you. All the traffic goes to a server you have at home that “join+proxy” the traffic. Based on the idea that every user have a limited bandwidth, combining multiple will give you higher speed.

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#69

How to get faster internet at a hotel: Have 4-5 of these connected and talking with the hotels WiFi, and one who share Internet with you. All the traffic goes to a server you have at home that “join+proxy” the traffic. Based on the idea that every user have a limited bandwidth, combining multiple will give you higher speed.

or just route over icmp or dns

Re: Simultaneous AP and Client Mode Wi-Fi on Raspberry Pi Zero W

#70
post #29

I've looked at the links posted here and the repo but I fail to find what is the use case for this?

I use this for configuration on some equipment I sell. The unit has a local web server that lets you configure IP, ID information. It works as a captive portal. Then you just plug your ethernet cable in and its good to go. (I use a Pi 3 in the product).
Post reply on HN