Live data from Hacker News

Unveiling secrets of the ESP32: creating an open-source MAC layer

zeus.ugent.be

61–70 of 157 posts

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#61

What kind of programmer does one need to work with ESP32? I bought jlink for stm32 thinking that's the ultimate programmer for all my needs, however it does not claim compatibility with esp32.

If you get a dev kit they'll usually have a usb-serial interface for power and data.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#63
post #26

I picked up an ESP32 devboard recently. I've always been intrigued by embedded but don't have a background in it at all. I have no idea what my first project should be. Any ideas?

Make an LED blink. Then, connect an RGB LED and experiment with PWM signal generation. Then, experiment with network programming, accepting a UDP packet to the ESP32 that sets the color of the RGB LED.

It seems to have gone out of favour for some reason I don’t understand, but subscribing to an MQTT topic from an ESP is easy and performant.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#64
post #45

Earlier quoted context omitted.

I’ve actually found that ESPHome is sufficient for most basic use cases

The question then is where have you found ESPHome to fall short?

Honestly? Nowhere where an ESP32 was a suitable device. Anything that esphome can’t do generally requires more powerful or specialized hardware anyways. I did have some issues with updates killing WiFi on the boards and needing a reflash but I think they fixed that bug. I could also never get the chrome based flasher to work properly when I tried that out.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#65

What kind of programmer does one need to work with ESP32? I bought jlink for stm32 thinking that's the ultimate programmer for all my needs, however it does not claim compatibility with esp32.

Depends a lot on the exact model of ESP32 you get. Even for non-devboards, a lot of the newer modules have a built in USB serial peripheral. If it's got a USB port, you're already ready to go. The ESP32-C3 QtPy modules from adafruit are awesome, they've got a USB-C port on them and you can just plug them in and they're ready to be flashed.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#66

What kind of programmer does one need to work with ESP32? I bought jlink for stm32 thinking that's the ultimate programmer for all my needs, however it does not claim compatibility with esp32.

You don't need anything. Plug it into your machine's usb, open arduino ide(or their web ide + agent) and upload any of the examples that arduino ide comes with and use its serial monitor to debug/read whatever output you write on the esp32's serial. This applies to windows/mac/linux.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#67

I wasnt aware of this wifi blob. This feeds a tiny paranoia I have at the back of my head when dealing with esp32/espressif. I have dozens of esp32s around and I love them, but Espressif is 100% Chinese. Im uncomfortable with what I read that every company of significant size in China automatically requires CCP party members to be involved in the company at a high level. So Im very happy to hear people such as these…

Wifi is easy... there's no way to send anything undetected, since you control the routers, etc. GSM->5G modems are a lot harder to debug... maybe now in recent years with cheaper SDRs, but a lot harder then wifi. And not sure why you'd be afraid of CCP, we saw the wikileaks, USA does a lot of similiarly bad stuff too and even got caught doing it... and if you live in a "western" country, USA has much easier access to…

> And not sure why you'd be afraid of CCP, we saw the wikileaks, USA does a lot of similiarly bad stuff...

I find little solace in this whataboutism.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#68

I picked up an ESP32 devboard recently. I've always been intrigued by embedded but don't have a background in it at all. I have no idea what my first project should be. Any ideas?

There are a lot of interesting sensors out there. A good start can be by picking a sensor you're interested in and use it for monitoring. It can be as basic as temperature monitoring, or gas/CO2.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#69

I wasnt aware of this wifi blob. This feeds a tiny paranoia I have at the back of my head when dealing with esp32/espressif. I have dozens of esp32s around and I love them, but Espressif is 100% Chinese. Im uncomfortable with what I read that every company of significant size in China automatically requires CCP party members to be involved in the company at a high level. So Im very happy to hear people such as these…

Wifi is easy... there's no way to send anything undetected, since you control the routers, etc. GSM->5G modems are a lot harder to debug... maybe now in recent years with cheaper SDRs, but a lot harder then wifi. And not sure why you'd be afraid of CCP, we saw the wikileaks, USA does a lot of similiarly bad stuff too and even got caught doing it... and if you live in a "western" country, USA has much easier access to…

There’s no point having a vague Chinese back door in Espressif devices which security researchers could discover with relative ease. The remarkable prevalence of these chips in commodity consumer goods means that they’ve likely already been analysed by countless world governments and strategic enterprises.

If the IoT ecosystem has any weak spots, it is the Tuya software stack. It would be much easier, much more useful layer to put a back door into that.

Re: Unveiling secrets of the ESP32: creating an open-source MAC layer

#70
post #32

Earlier quoted context omitted.

Are we talking lightweight servers like minihttp and shizaru, mid-level lighttpd , or big-ass Apache and nginx?

Pretty barebones but working web servers are possible. Example: https://randomnerdtutorials.com/esp32-web-server-arduino-ide...

ugh.. arduino.

Better to start with ESP-IDF, there's a pretty full featured well documented web server, and a lot more.

https://github.com/espressif/esp-idf/tree/master/examples/pr...

Post reply on HN