News for hackers. Stuff that matters.
Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Friday December 27, 2024 @09:25PM (#42528039)
Why are wifi ICs so expensive? It seems to me that it is cheaper to buy an ESP32 to connect to a RP2040 for wifi than it is to buy a dedicated wifi IC.
Re:Liberating Wi-Fi on the ESP32 [video] by equestria on Friday December 27, 2024 @09:34PM (#42528083)
The wifi protocol is computationally intensive. The wifi module is effectively a fast 32-bit computer with fairly complex firmware. And then, there's all the RF engineering that needs to happen to make it work.

So, the original thinking was "if you need wifi, we can't price a standalone chip competitively, just buy a SoC". But the genius of ESP32 was that they approached it the other way round: they built a wifi chip, and then figured they can carve out some room for user code. No need to pay for a separate MCU. This worked for a lot of customers, and the economies of scale took care of the rest.

Re:Liberating Wi-Fi on the ESP32 [video] by rkagerer on Friday December 27, 2024 @09:54PM (#42528184)
How is progress toward a useable open source alternative?
Re:Liberating Wi-Fi on the ESP32 [video] by AlotOfReading on Friday December 27, 2024 @10:37PM (#42528360)
Virtually non-existent? There aren't that many people doing open RF hardware, and all of the ones I'm familiar with are working with SDR because the costs go up massively once you go to tapeout.
Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @01:35AM (#42529081)
I am not sure if you can still get the chips, but these are fully OSS:

https://github.com/qca/open-ath9k-htc-firmware

Re:Liberating Wi-Fi on the ESP32 [video] by mystified5016 on Friday December 27, 2024 @10:37PM (#42528358)
To chime in, adding the espressif WiFi libraries to your firmware adds 500-600KB of code. In the trivial IoT widget I just made, the firmware is >90% espressif code by weight.

The RAM use is also... noticeable. It takes quite a lot for this chip do WiFi.

Re:Liberating Wi-Fi on the ESP32 [video] by vbezhenar on Saturday December 28, 2024 @04:11AM (#42529661)
It is similar for BLE. I recently wrote firmware for nrf52 device. Proprietary blob was 100 KB. My code was 60 KB and actually like 40-50 KB was caused by crypto library which is basically required part of BLE stack as well, just distributed with code and not in the blob.
Re:Liberating Wi-Fi on the ESP32 [video] by zazaulola on Saturday December 28, 2024 @04:26AM (#42529724)
ESP32 has 18 ADC input channels. But if you are using Wifi, you can only use 8 of the 18 for ADC conversion: GPIO pins 32-39.

Other 10 pins, on which ADC2 channels are possible, can only accept pulse data if you are using Wifi.

This is probably due to firmware limitations.

Re:Liberating Wi-Fi on the ESP32 [video] by mystified5016 on Saturday December 28, 2024 @03:57PM (#42534661)
Espressif implies that the WiFi hardware uses ADC2 for something. It sounds like a hardware limitation, a firmware issue would have been patched a long time ago.
Re:Liberating Wi-Fi on the ESP32 [video] by brcmthrowaway on Friday December 27, 2024 @10:11PM (#42528254)
Why doesnt Apple use ESP32
Re:Liberating Wi-Fi on the ESP32 [video] by epcoa on Friday December 27, 2024 @10:20PM (#42528291)
While they’re only now coming out with even a 5GHz model there isn’t really much in Apple’s product line that needs a lowend primarily “IoT” WiFi. Maybe the HomePod, but they already have better chipsets for their flagship devices.
Re:Liberating Wi-Fi on the ESP32 [video] by mystified5016 on Friday December 27, 2024 @10:34PM (#42528348)
Because the ESP can only barely do WiFi. You can get a couple of Mbps under ideal conditions. It is not a general purpose WiFi adapter, it's a low power IoT chip.

A general purpose WiFi adapter can do gigabit sustained connections over PCI or some other high speed interface. Entirely different class of chip.

Re:Liberating Wi-Fi on the ESP32 [video] by emilfihlman on Friday December 27, 2024 @11:35PM (#42528609)
A couple?

It easily goes to tens of Mb/s.

Re:Liberating Wi-Fi on the ESP32 [video] by yonatan8070 on Saturday December 28, 2024 @03:03AM (#42529402)
Which is still abysmal compared to what a modern Wi-Fi chipset can push, even in the real world. Even an old home-grade Wi-Fi 5 AP can push >400Mbps over the air in real-world conditions. And the Wi-Fi 6/6e/7 devices can go well above that.
Re:Liberating Wi-Fi on the ESP32 [video] by shakna on Saturday December 28, 2024 @04:35AM (#42529766)
Anecdote only: I've never consistently managed 10mb/s without integrating some sort of cooling system. Not without frying the chip.
Re:Liberating Wi-Fi on the ESP32 [video] by leptons on Saturday December 28, 2024 @06:00PM (#42535600)
Citation needed.
Re:Liberating Wi-Fi on the ESP32 [video] by chedabob on Saturday December 28, 2024 @06:32AM (#42530290)
To what end?

I can't think of an Apple product that needs low power Wifi and/or Bluetooth, and also operates at such a low price-point that there's not budget to put something bigger on the BoM.

Re:Liberating Wi-Fi on the ESP32 [video] by bschwindHN on Saturday December 28, 2024 @11:36AM (#42532170)
* Too slow * Uses too much power

Apple products would absolutely suck if they used ESP32 for their wifi and Bluetooth functionality.

Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @02:15AM (#42529219)
It sounds like Qualcomm missed an opportunity here:

https://github.com/qca/open-ath9k-htc-firmware

Re:Liberating Wi-Fi on the ESP32 [video] by numpad0 on Saturday December 28, 2024 @07:49AM (#42530706)
Wi-Fi chips always had "user" program area, in theory anyone could call any of chip vendor, and with NDA, $$$ an 5 years of back and forth, could have met the exact same goal as what you can do today with ESP32, even in 2010. I've seen a Twitter ticker display made from a mPCI Wi-Fi card in a maker meeting back then. The guy demoing it was a company engineer with access to internal docs, wasn't giving it to anyone else.

The genius of Espressif was that they didn't issue C&D letters and DMCA takedowns when people started modifying firmware for their product using garden variety GCC without even asking and then ported hobbyist garbage called Arduino Core. They did initially panic a bit, but soon their management realized it's a golden ticket to something, and they bet the whole company on it. And they got the return they deserve.

There aren't a lot of aspects that are technically so advanced about ESP8266/ESP32. It's just the ones made by the hungriest and most aspiring Wi-Fi chip manufacturer.

Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @10:48AM (#42531837)
Is there a write up somewhere talking about the panicking? It might be interesting to read. I am curious how they enabled people to do this without realizing people would do it.
Re:Liberating Wi-Fi on the ESP32 [video] by numpad0 on Saturday December 28, 2024 @04:42PM (#42535016)
I wasn't in the scene directly but was only watching it from great distance. It was literally a decade ago, too. Maybe someone can ask Espressif for their side of battle story, but I don't have any more to offer, sorry.
Re:Liberating Wi-Fi on the ESP32 [video] by phoronixrly on Friday December 27, 2024 @10:21PM (#42528295)
I also share the opinion of the fellow commentor and blame the price on the fact that RF front-ends require lots of RnD, often require high quality and precision components (outside the IC) AND on top of that there are testing and certification costs. All of this in just the RF front-end, we are not even talking about the implementation of the absurdly bloated wifi standars in software/silicon and testing and certification for them.
Re:Liberating Wi-Fi on the ESP32 [video] by nereye on Friday December 27, 2024 @11:03PM (#42528453)
The WiFi (& Bluetooth) IC used in the Pi Pico W retails for ~$2.5, and presumably a bit less in volume (considering the Pico W is only $2 more than the base Pi Pico.
Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @01:36AM (#42529083)
Where can you find it for $2.5? The last I looked, it was around $6.
Re:Liberating Wi-Fi on the ESP32 [video] by ta988 on Saturday December 28, 2024 @01:56AM (#42529156)
They are talking about the radio chip that's on the Pico W. not the whole pico w.
Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @02:16AM (#42529223)
I am asking about the radio chip. The last I checked, buying one from a distributor costs around $6. You would need to do a huge order to get the price down to $2.5 per chip. The required order quantity is so huge that distributors do not list it.
Re:Liberating Wi-Fi on the ESP32 [video] by nereye on Saturday December 28, 2024 @12:16PM (#42532525)
From https://octopart.com/search?q=CYW43439&currency=USD&specs=0.

Indeed the lowest price $2.551 from Arrow has a MOQ of 5000 but Newark does have it for a promotional price of $2.73 for quantities as low as 1.

It’s not $2.5 but that’s why it was quoted as ~$2.5 in my reply, since it’s in the ballpark.

Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @10:32PM (#42537271)
Thanks. I had not known about octopart.
Re:Liberating Wi-Fi on the ESP32 [video] by blkhawk on Saturday December 28, 2024 @03:34AM (#42529510)
you can get certain variants of the esp32 at around 2USD. that gets you a whole board with USB-c.
Re:Liberating Wi-Fi on the ESP32 [video] by baq on Saturday December 28, 2024 @06:34AM (#42530298)
Esp32-c3 super mini is less than $2 with free shipping from AliExpress. The usb-c cable I use to power it is more expensive. I get a serious cognitive dissonance when I think about it too much.
Re:Liberating Wi-Fi on the ESP32 [video] by Aurornis on Friday December 27, 2024 @11:10PM (#42528476)
The Espressif chips are WiFi ICs. You can buy the bare chips, connect over SDIO, load the hosted firmware, and use them as WiFi radio chips.

For volume production (10K, 100K, or more units) you can get other WiFi ICs that are cheaper than buying an ESP32 module. The difference is that other companies don’t care about engaging the hobby and low volume markets so they don’t put an effort into making them cheap.

If you’re doing one-off builds, you’re at the mercy of whoever decides to make an effort to make things cheap and accessible. Some companies deliberately make their products hard or even impossible to access for hobbyists because it’s not worth it unless you’re the hobbyist market leader (Espressif)

Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @01:39AM (#42529095)
Do you mean this firmware?

https://github.com/espressif/esp-hosted

I assume it uses the blob that is mentioned in the video.

Re:Liberating Wi-Fi on the ESP32 [video] by userbinator on Friday December 27, 2024 @10:24PM (#42528311)
Only the ones which have a presence outside of China are expensive.
Re:Liberating Wi-Fi on the ESP32 [video] by phoronixrly on Friday December 27, 2024 @10:30PM (#42528331)
Why is that? Cost of labor? Looser regulatory requirements?
Re:Liberating Wi-Fi on the ESP32 [video] by tw04 on Friday December 27, 2024 @10:31PM (#42528336)
He’s telling you that they violate IP law extensively in products that don’t leave the country. It’s a lot cheaper to mass produce cheap WiFi chips when you can do it with stolen IP.
Re:Liberating Wi-Fi on the ESP32 [video] by mindslight on Friday December 27, 2024 @11:41PM (#42528643)
IP is defined by RFCs, not law.

(damn, the imaginary property maximalists really came out of the woodwork on this thread)

Re:Liberating Wi-Fi on the ESP32 [video] by userbinator on Friday December 27, 2024 @10:41PM (#42528376)
They have a very different view of IP than the west. Sharing is the norm.
Re:Liberating Wi-Fi on the ESP32 [video] by dgfitz on Friday December 27, 2024 @11:12PM (#42528487)
Does that work for other things? Can I just say “I had a different view of that” and get away with whatever it was?
Re:Liberating Wi-Fi on the ESP32 [video] by vbezhenar on Saturday December 28, 2024 @04:16AM (#42529683)
For many people, information and physical items are completely different entities. When you steal bottle of milk, the original owner loses access to it. When you copy information without permission, the original owner keeps the access to it. So they have completely different attitude to those two behaviours.
Re:Liberating Wi-Fi on the ESP32 [video] by aleph_minus_one on Saturday December 28, 2024 @03:26PM (#42534321)
> For many people, information and physical items are completely different entities. When you steal bottle of milk, the original owner loses access to it. When you copy information without permission, the original owner keeps the access to it.

Relevant:

Copying Is Not Theft

https://www.youtube.com/watch?v=IeTybKL1pM4

  Copying is not theft.
  Stealing a thing leaves one less left
  Copying it makes one thing more;
  that’s what copying’s for.
  
  Copying is not theft.
  If I copy yours you have it too
  One for me and one for you
  That’s what copies can do
  
  If I steal your bicycle
  you have to take the bus,
  but if I just copy it
  there’s one for each of us!
  
  Making more of a thing,
  that is what we call “copying”
  Sharing ideas with everyone
  That’s why copying
  is
  FUN!
Re:Liberating Wi-Fi on the ESP32 [video] by vel0city on Friday December 27, 2024 @11:30PM (#42528582)
So what I can walk into any store and walk out with a cart full and not pay and it's all good, sharing is the norm? I can just walk into any apartment complex and move into any unit without pay since sharing is the norm?
Re:Liberating Wi-Fi on the ESP32 [video] by BenjiWiebe on Friday December 27, 2024 @11:44PM (#42528657)
Well, those things aren't IP. Maybe you could take pictures of all the pages in a book in a bookstore?
Re:Liberating Wi-Fi on the ESP32 [video] by vel0city on Saturday December 28, 2024 @12:00AM (#42528727)
So only intellectual property is shared? Doesn't sound to me like sharing is the norm when it only applies to one category of goods.
Re:Liberating Wi-Fi on the ESP32 [video] by userbinator on Saturday December 28, 2024 @03:36AM (#42529517)
Try reading my comment fully again? I was talking about IP.
Re:Liberating Wi-Fi on the ESP32 [video] by Hasnep on Friday December 27, 2024 @11:43PM (#42528654)
No, that's not what anyone said. The conversation is about copyright...
Re:Liberating Wi-Fi on the ESP32 [video] by vel0city on Friday December 27, 2024 @11:49PM (#42528684)
So it's not that "sharing is the norm" it's a difference in the understanding of ownership and property rights. Otherwise why not share the food and share the housing, since sharing is the norm and not the exception when it comes to property rights?

Otherwise why is sharing the norm in one small specific instance and not the rest?

Re:Liberating Wi-Fi on the ESP32 [video] by Liftyee on Saturday December 28, 2024 @05:45AM (#42530071)
The original statement was in the context of IP. In this case, no one has anything taken away when it is shared. Sharing physical goods requires them to be taken from somewhere/someone... not so much for digital information, which can be duplicated infinitely.
Re:Liberating Wi-Fi on the ESP32 [video] by semiquaver on Saturday December 28, 2024 @09:48AM (#42531379)
This is a funny comment in the context of a discussion about a (nominally) communist country.
Re:Liberating Wi-Fi on the ESP32 [video] by userbinator on Saturday December 28, 2024 @01:01AM (#42528955)
Re:Liberating Wi-Fi on the ESP32 [video] by Brian_K_White on Saturday December 28, 2024 @01:44AM (#42529106)
"sharing is the norm" means publishing.

Taking is the norm.

Re:Liberating Wi-Fi on the ESP32 [video] by tw04 on Saturday December 28, 2024 @07:52AM (#42530718)
Which is super weird, because Xioami isn’t “sharing” their proprietary OS with any other phone manufacturers.

CATL isn’t “sharing” any of their battery IP with competitors. They consider it trade secret and will actively pursue recourse inside or out of China.

What is apparent is they use cultural misunderstanding to justify stealing IP, even though they actively try to protect their own inside and outside of the country.

https://www.ess-news.com/2024/10/28/calb-sues-catl-over-pate...

Re:Liberating Wi-Fi on the ESP32 [video] by tialaramex on Saturday December 28, 2024 @11:32AM (#42532144)
It's normal. IIRC Early America didn't have Copyright or other protections, they were added later once it was making its own works and had skin in the game.
Re:Liberating Wi-Fi on the ESP32 [video] by azinman2 on Saturday December 28, 2024 @01:36PM (#42533278)
So now that China has skin in the game, will they very soon stop stealing IP by your logic?
Re:Liberating Wi-Fi on the ESP32 [video] by wildzzz on Saturday December 28, 2024 @05:04PM (#42535201)
Copyright and patents have been a part of the US since before day one. It's in Article 1, Section 8 of the Constitution and was even part of the Articles of Confederation.

Patents were established even before Columbus.

Re:Liberating Wi-Fi on the ESP32 [video] by tw04 on Saturday December 28, 2024 @10:14PM (#42537147)
What about it is normal? "Early America" allowed copyright infringement on American soil as long as the IP was stolen from foreign nations, but simultaneously enforced IP nationally and internationally on any claims made by a US company?

Do you have some examples of this? Because I hear it parroted a lot and yet the only thing people can point to is "but the US stole some designs from Brittain on some early machines" - which is not at all what we're talking about here, and was at nowhere near the scale of China's theft.

Re:Liberating Wi-Fi on the ESP32 [video] by ryao on Saturday December 28, 2024 @10:46PM (#42537340)
You probably heard references to Samuel Slater. He memorized the plans for British textile equipment and brought them to the US. He violated British law, but US law did not mind.

Then there is Eli Whitney, to give an example of an American who enjoyed US patent protection. He patented his cotton gin.

You would want to ask a historian for other examples.

Re:Liberating Wi-Fi on the ESP32 [video] by numpad0 on Saturday December 28, 2024 @08:26AM (#42530895)
I don't think they actually do. They're not dumb or crazy. What I think sets Chinese companies apart from Western counterparts is their aptitude for making money through selling physical things. Everyone else drove off to casinos and they're the last ones in the factory dirtying hands.
Re:Liberating Wi-Fi on the ESP32 [video] by obscurette on Saturday December 28, 2024 @01:53PM (#42533424)
As someone growing up in Soviet Union, sharing was the norm for us as well until we were in this s**t together and nobody had any chance to earn much from it anyway. This changed quite fast in nineties though.
Re:Liberating Wi-Fi on the ESP32 [video] by askvictor on Saturday December 28, 2024 @09:37PM (#42536941)
The ESP8266 (the predecessor to the ESP32) was initially sold as a wifi IC, using an AT protocol over UART to communicate with the host MCU. Then some people discovered how to use it directly as an MCU, and the documentation and SDK slowly started being made available.

As for why? Regulatory (FCC) compliance is probably a part of it, I think the ealy ESP chips were dubious in this regard. Licensing might be a factor as well (a lot of wifi chips use ARM cores; Espressif doesn't, though not sure how much of a factor this is). Support comes into it too - established wifi vendors provide support and help you with RF designs; Espressif has forums (maybe larger customers get proper support now?)