Hacker News new | ask | show | jobs
by sdfhbdf 2133 days ago
I've looked at the links posted here and the repo but I fail to find what is the use case for this?
7 comments

It could be used as a range extender, though not a very good one.

Probably a better use case would be connecting older devices like the Nintendo DS that don't support WPA2 to your network without forcing all of your other devices onto WEP.

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.

That's not to say it won't function well enough in a pinch but I wouldn't seek this out as a permanent answer if I were buying new.

...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.

"That's not to say it won't function well enough in a pinch but I wouldn't seek this out as a permanent answer if I were buying new."

Like I said this functions fine, as is evident by it having been posted, but the question was why it wasn't a very good repeater not was it a functional use of an existing pi 0 laying around.

It's also not the best you could do buying new if that is what you had to do as ~$16 will get you a 2x2 802.11n repeater that functions much better, has external antennas, and has an ethernet port too. Not $10 but it's also enclosed and doesn't need a power supply or uSD. ~$30 will get you decent AC repeaters you could use outside of a singular IoT project. Less for either if you're willing to go used. The ideal 4x4 ax double phy wireless repeater is indeed going to be more than a pi 0 but it was an example of what makes a repeater good (to the question) not what should have been purchased for this project.

Again nothing wrong with the solution used here, that's not where my comment was pointed.

I'd guess the hardware is the problem. Most antennas I've seen on access points are larger than the entire Pi Zero W. While I'm no radio expert, I'd expect APs to use the smaller antennas if they were capable of being as good as bigger antennas.
Ah, that reminds me of an article someone here linked to a few years ago: [1]. That claims the efficiency is -3.5 dB compared to a typical -1.25 dB dipole in dedicated wireless equipment. Not bad; the difference is only a factor of ~2 in power for x8 reduction in size.

[1] https://www.embedded-computing.com/articles/a-lesson-in-wire...

I use a pi this way so I can join my pi to hotel wifi (or similar) then join my iPad to the pi’s network - which lets me ssh into the pi to access software there while both devices have internet access.
I do the same with a pocket wifi router, and clone the mac address. So, nifty and interesting case for the pi too! Thanks!
A perfect MITM device that is tiny and can be hidden somewhere is my first use case. Micro pineapple.
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).
I use a Pi Zero W + extra USB wifi to share modern wifi with my legacy PowerBook 2400c + 802.11b PCMCIA card.

This setup could let me do it without the USB wifi hanging off the USB OTG adaptor.

* This is not secure but it’s fine for my vintage computing hobby

The use case is in the title. You can use it as a wireless repeater. A more interesting use case would be ethernet over USB and a wireless AP with another interface for client monitoring via airmon.
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.
I've never stayed at a hotel that'd charge extra for wifi. Airports and planes thoug, sure.