Inject Packets With An ESP8266

[Kripthor] sent us a link to his blog where he writes the Hello World of low-level networking. Basically he’s constructing his own packet and sending it. By itself this isn’t a bad thing. You could use this power for all sorts of networks-diagnostic good. And so, despite the ominous name of his blog post “ESP8266 Jamming”, he’s not really doing anything that bad — he’s just creating many fake WiFi beacon frames and sending them out every so often.

Which can apparently do bad things to some vulnerable routers. Who knew? Want to test yours?

Naturally we wanted to see how he was doing it, and we opened up the Arduino code in GitHub. It turns out that Espressif has written a wifi_send_pkt_freedom() function that just sends out whatever packet you’d like to the network. That was easy.

It also turns out that the ESP8266 will enter monitor mode, where it listens to all WiFi traffic regardless of the MAC address that it’s directed toward. [Pulkin] seems to have done the work for us and posted the code in his GitHub. Now things get nasty. Combining promiscuous monitor mode with some carefully constructed management frames can end up with a classic WiFi deauth denial-of-service attack on a $2 piece of hardware.

We think it’s tremendously cool that the ESP8266 packs such power, and we beg you all to use it responsibly. The last thing we want to see is the world littered with WiFi-DOS throwies. And the last thing you’d want is a visit from the FCC.

Ten Mile Raspberry Pi WiFi (with A Catch)

How would you like to have a WiFi connection that covers 10 miles? Or how about an even wider network made up of a mesh of multiple nodes? It is possible, but there is a catch: you probably need a ham radio license to do it (at least, you do in the United States).

What makes it possible is the realization that conventional WiFi channels 1-6 are inside an existing US ham band. That means (if you are a ham) you can elect to use FCC part 97 rules instead of part 15 that governs WiFi routers. That means you can use more power and–even more importantly–better antennas to get greater range.

Traditionally, hams have used custom firmware for Netgear routers or Ubiquiti hardware. However, [WZ0W] recently posted his experience using Raspberry Pi boards as mesh nodes. The code (which also works with some other single board computers) is available on GitHub (with details on the project blog). [WZ0W] points out that, unlike using a consumer router, using a Pi provides a reasonably powerful computer for hosting services as well as hosting the network.

Continue reading “Ten Mile Raspberry Pi WiFi (with A Catch)”

WiFi Alliance Introduces 802.11ah

For the last decade or so, wireless networking has been entirely about short range, high speed communications. The type of networking needed by an Internet of things is fundamentally incompatible with WiFi, and the reason for this is due to the frequencies used by WiFi networking gear. 2.4 and 5 GHz are very fast, but cannot penetrate through walls as easily as lower frequencies.

This week the WiFi alliance introduced IEEE 802.11ah into the WiFi spec. It’s called WiFi HaLow (pronounced like angel’s headwear), and unlike other versions of 802.11, WiFi HaLow uses low frequencies for low bandwidth but a much larger range.

WiFi HaLow uses the 900 MHz ISM band to communicate, divided into 26 channels. The bandwidth is low – a mere 100 kbps, but the range is huge: one kilometer, or about four times the approximate range of 802.11n.

This is not the only WiFi spec aimed at the Internet of Things. In 2014, the WiFi alliance introduced 802.11af, a networking protocol operating in unused TV whitespace spectrum between 54 and 790 MHz. 802.11af has a similar range as 802.11ah – about one kilometer – but products and chips utilizing 802.11af have been rare and hard to find.

Shark With Frickin’ LED Tells People Not To Bother You

Everybody is busy these days, but sometimes it’s hard to tell. What with teleconferences being conducted over tiny Bluetooth headphones and Skype meetings where we seem to be dozing in front of the monitor, we’ve lost some of the visual cues that used to advertise our availability. So why not help your colleagues to know when to give you space with this shark themed WiFi-enabled meeting light?

Why a shark and not a mutated intemperate sea bass? Only [falldeaf] can answer that. But the particulars of the build are well-documented and pretty straightforward. A Photon runs the show, looking for an Outlook VFB file to parse. An RGB LED is used to change the color of the translucent 3D printed shark based on whether you’re in a meeting, about to step into one, or free. The case is 3D printed as well, although [falldeaf] farmed the prints out to a commercial printing outfit because of the size and intricacy of the parts. He did fabricate a nice looking wood base for the light, though.

There are plenty of ways to tell people to buzz off, but this is a pretty slick solution. For those in open floor plan workspaces, something like this IoT traffic light for you and your cube-mates might be in order.

The ESP32 Beta Units Arrive

A little more than a year ago, the ESP8266 WiFi module showed up uneventfully in Seeed Studio’s store. Since then, the documentation has been translated to English, a proper development environment for this chip was created, and everybody is using this cheap but powerful chip for the latest Internet of Things things.

The company behind the ESP8266, Espressif, is not one to rest on their laurels, and for several months they’ve been working on the next generation of powerful WiFi-enabled tiny, cheap systems. They have their silicon, and already 200 lucky people have their hands on the very first test units of the ESP32, the next generation of Espressif’s WiFi chips. The teardowns have begun, and [LadyAda] streamed her initial experiments with the chip to the Intertubes (available below). [Martin] is also one of the guys who received these early beta chips, and he was kind enough to post his thoughts on Espressif’s newest chip.

A little bit of information on the ESP32 has dribbled out, and [LadyAda] and [Martin]’s demo unit confirm all we’ve suspected. There are two Tensilica L108 processors running at up to 160MHz, a lot of peripherals including ADCs, DACs, I2C, SPI, I2S, and PWM, more RAM, AES and SSL for security, and Bluetooth Low Energy. WiFi has also been upgraded, and the ESP32 will support speeds up to 150 Mbps.

Continue reading “The ESP32 Beta Units Arrive”

Giving The C64 A WiFi Modem

If there’s any indication of the Commodore 64’s longevity, it’s the number of peripherals and add-ons that are still being designed and built. Right now, you can add an SD card to a C64, a technology that was introduced sixteen years after the release of the Commodore 64. Thanks to [Leif Bloomquist], you can also add WiFi to the most cherished of the home computers.

[Leif]’s WiFi modem for the C64 is made of two major components. The first is a Microview OLED display that allows the user to add SSIDs, passwords, and configure the network over USB. The second large module is the a Roving Networks ‘WiFly’ adapter. It’s a WiFi adapter that uses the familiar Xbee pinout, making this not just a WiFi adapter for the C64, but an adapter for just about every wireless networking protocol out there.

[Leif] introduced this WiFi modem for the C64 at the World of Commodore earlier this month in Toronto. There, it garnered a lot of attention from the Commodore aficionados and one was able to do a video review of the hardware. You can check out [Alterus] loading up a BBS over Wifi in the video below.

Continue reading “Giving The C64 A WiFi Modem”

Raspberry Pi $2 WiFi Through Epic SDIO Hack

These are the times that we live in: the Raspberry Pi Zero comes out — a full freaking Linux computer on a chip for $5 — and people complain that it doesn’t have this or that. Top place on the list of desiderata is probably a tie between audio out and WiFi connectivity. USB is a solution for both of these, but with one USB port it’s going to be a scarce commodity, so any help is welcome.

Hackaday.io hacker [ajlitt] is looking for a way out of the WiFi bind. His solution? The Raspberry Pi series of chips has a special function on a bunch of the GPIO pins that make it easier to talk to SDIO devices. SDIO is an extension of the SPI-like protocol that’s used with SD memory cards. The idea with SDIO was that you could plug a GPS or something into your PDA’s SD card slot. We don’t have PDAs anymore, but the SDIO spec remains.

[ajlitt] dug up an SDIO driver for the ESP8089 chip, and found that you can liberate the ESP8266’s SPI bus by removing a flash memory chip that’s taking up the SPI lines. Connect the SPI lines on the ESP8266 to the SDIO lines on the Raspberry Pi, and the rest is taken care of by the drivers. “The rest”, by the way, includes bringing the ESP’s processor up, dumping new firmware into it over the SPI/SDIO lines to convince it to act as an SDIO WiFi adapter, and all the rest of the hardware communication stuff that drivers do.

The result is WiFi connectivity without USB, requiring only some reasonably fine-pitch soldering, and unlike this hack you don’t have to worry about USB bus contention. So now you can add a $2 WiFi board to you $5 computer and you’ve still got the USB free. It’s not as fast as a dedicated WiFi dongle, but it gets the job done. Take that, Hackaday’s own [Rud Merriam]!

Thanks [J0z0r] for the tip!