Engineer turned a vape into a web server
- Reference: 1757963846
- News link: https://www.theregister.co.uk/2025/09/15/nicotine_vape_web_server/
- Source link:
BogdanTheGeek, the handle for researcher Bogdan Ionescu, took apart a discarded vape pen, which he describes as "fancier pacifiers for adults," and [1]decided to repurpose it . The base-level kit was "so bad, it's basically disposable" he said, consisting of a 24MHz Cortex M0+ chip, 24KB of flash storage and just 3KB of static RAM, but it was still workable.
"You may look at those specs and think that it’s not much to work with," he reported.
[2]
"I don’t blame you, a 10y old phone can barely load Google, and this is about 100x slower. I, on the other hand, see a blazingly fast web server."
[3]
[4]
Well, maybe not so blazingly fast - at least at first. For a start, the main chip was labeled as a PUYA C642F15 processor, but Ionescu figured it was actually a PY32F002B chip. It's capable of handling the old Serial Line Internet Protocol (SLIP), so he turned it into a very basic 56K modem equivalent.
He then added [5]uIP 0.9 code to allow the chip to serve as a web server, making a number of tweaks along the way like changing the file structure.
[6]
A much better use than vaping - Click to enlarge
Initially the results weren't good. "Pings took ~1.5s with 50 percent packet loss and a simple page took over 20 seconds to load. That's so bad, it's actually funny, and I kind of wanted to leave it there," Ionescu wrote. Adding a ring buffer helped a lot, however, in increasing speeds - although testing showed it can't handle a large volume of requests. Now, pings take 20ms with no packet loss and a full page loads in about 160ms.
Ionescu published the source code for anyone who wants to try it at home. The website hosted on the controller explaining the hack is [7]live , albeit still very slow, but it works if not too many people try to log on. You can see a copy on a more reliable server [8]here .
[9]
The case highlights what can be done with so-called disposable kit. A 2023 UK study by the University of Oxford and the Faraday Foundation [10]found that 1.3 million of the devices were thrown away each week, and reusing them in any format can't be a bad idea, not least since the batteries are perfectly capable of handling processing long after the addictive drug has been smoked.
[11]After deleting a web server, I started checking what I typed before hitting 'Enter'
[12]After 30 years PHP still evolving: Team adds pipe operator, considers generics
[13]Pitch of the week: Helping to stamp out e-cigarettes while removing hurdles to digital learning
"The popularity in single-use vapes has exploded in recent years. Despite being sold as disposable, our research has shown that the lithium-ion batteries stored within them are capable of being charged and discharged over 450 times," said Hamish Reid, first author of the study.
While no one's going to run a web server like this on a battery, the reprogramming shows just what can be done with processors we're throwing away - hardware that would have been very valuable 30 or so years ago. All credit to Ionescu for showing how it's done. ®
Get our [14]Tech Resources
[1] https://bogdanthegeek.github.io/blog/projects/vapeserver/
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2aMiMaIZQk6iRcUzdhmcNUAAAAA4&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aMiMaIZQk6iRcUzdhmcNUAAAAA4&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aMiMaIZQk6iRcUzdhmcNUAAAAA4&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[5] https://github.com/adamdunkels/uip/tree/uip-0-9
[6] https://regmedia.co.uk/2025/09/15/vapeserver.jpg
[7] http://ewaste.fka.wtf/
[8] https://bogdanthegeek.github.io/blog/projects/vapeserver/
[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offbeat/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aMiMaIZQk6iRcUzdhmcNUAAAAA4&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[10] https://www.ox.ac.uk/news/2023-12-14-study-finds-vast-amounts-waste-are-caused-single-use-e-cigarette-batteries
[11] https://www.theregister.com/2025/09/15/who_me/
[12] https://www.theregister.com/2025/08/08/after_30_years_php_still/
[13] https://www.theregister.com/2019/06/28/pitch_of_the_week/
[14] https://whitepapers.theregister.com/
Re: Surely the bigger question...
And that's why it needs an evaporative cooling system and is supplied with a tank of coolant.
Re: Surely the bigger question...
Agree, but these chips are dirt cheap, single digit pennies each in quantity so why not, they run a Charlieplexed LED array that displays charge status and, I think, other stuff as well as controlling the heating elements in the vape, so yeah it's overkill but probably the cheapest way to do it.
And they make excellent little hackable platforms for geeks like me who run things like CW beacons with them.
Re: Surely the bigger question...
The CS students I work with these days are distressingly ignorant of even how a file system is organised. They even confuse RAM with disk space.
I guess it is easy to overload
First time I've ever seen a just posted Reg article "slashdot" a web site.
Imagine when slashdot (even in its very depleted state in 2025) posts this. People might think vaping isn't the same as smoking, but that little vape server is gonna start smoking!
I've got a few of those, one is being tested as a CW beacon
When will it run Doom? Seem to be the standard on which new devices are measured :-)
Just recently
I've seen a lot of vapes on the ground, one at the filling station, my son said people spend lots of cash on those. I saw two others in the past two days. Might be a market for these re-imagined webservers!
Re: Just recently
I wonder if you could interface one with a pen webcam?
... long after the addictive drug has been smoked.
Technically the vapes are simply inhaled, not 'smoked.'
Does anyone have a carton of plain tip Pall Mall they'd be willing to sell me? The fact that they'd be several years old doesn't matter to me.
Surely the bigger question...
...is why a damn disposable cigarette is using a general-purpose programmable IC with ROM and RAM in the first place?
I swear, if you asked many engineers these days to design a simple lightbulb + switch + cell circuit, their solution would involve an Arduino, a full Java virtual machine, cloud dependencies...