frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

ESP32 and Termux

https://blog.gavide.dev/blog/esp32-and-termux
56•gavide•3h ago

Comments

webdevver•3h ago
very cool. termux has to be peak for unbridled nerddom, the new linux terminal in android 16 is really a pale shadow of it. you don't get access to anything non-virtual, not even the gpu (atleast, i couldn't get it to work.)

theres so much cool hardware on modern smartphones, with quite solid drivers by virtue of the (relatively stringent) android quality requirements, and its all locked away. video encoders, decoders, 3d accelerators, etc, but none of it is really accessible in a power-user kind of way.

some more thoughts...

the android development kit really is very heavy. compared to `gcc -o main main.cpp && ./main`, it is several orders of magnitude away.

the jetpack stuff and whatnot - the big android app shops probably do actually appreciate that stuff. but i wish the dev env 'scaled to zero' as they say, but in the sense of cognitive overload.

could it be time to move away from java, and shift towards everything being a native binary? we have the tools now to make it secure, and its not like phones get faster 'for free' anymore. it would also vastly simplify the developer experience.

nulld3v•1h ago
> the android development kit really is very heavy. compared to `gcc -o main main.cpp && ./main`, it is several orders of magnitude away.

> the jetpack stuff and whatnot - the big android app shops probably do actually appreciate that stuff. but i wish the dev env 'scaled to zero' as they say, but in the sense of cognitive overload.

I tried to build a small binary that listens for events and launches/wakes an app to do some automation. But apparently there's no way to send Intents or Broadcasts from native code? So I need to boot a JVM in the binary if I want it to communicate with anything else on the system!

Of course, you can always communicate via stdio, but that's useless because everything in Android speaks Intents/Broadcasts. Native code can also do raw Binder calls, but nothing on the system speaks raw Binder.

ActorNightly•18m ago
>But apparently there's no way to send Intents or Broadcasts from native code? So I need to boot a JVM in the binary if I want it to communicate with anything else on the system!

There is "am" i think which can be invoked to do this.

However, Termux API exists, and is a nice package for calling other services. They have the scripts interface, which calls the actual app over a socket. Kinda inefficient, but at least the work is done.

dekhn•3h ago
Note also you can use webrepl, which exposes MicroPython's REPL as a web page. It's not a real replacement for termux, but it is still quite useful- I often deploy ESP32s running Micropython around my workspace but they aren't connected to any serial terminal.
wumms•2h ago
If I telnet into an ESP32 via Termux, it doesn’t recognize \n. I haven’t found a solution yet. It works fine with other Linux consoles.

    void handleTelnet() {
      ...
      if (telnetClient && telnetClient.connected() && telnetClient.available()) {
        String cmd = telnetClient.readStringUntil('\n'); cmd.trim();
        if (cmd == "status") {
        ...
EDIT: Thanks @yjftsjthsd-h and @detaro for your suggestions! I tried Telnet via tmux - it worked. Then I tried telnet directly, and it suddenly worked too. Turns out Arduino’s Telnet implementation is single-user only, and my dev machine’s reconnect loop kept the connection open; the working login just fooled me.
yjftsjthsd-h•2h ago
I don't have one set up to test, but dumb suggestion: What if you run it inside tmux on termux? Just thinking that tmux is essentially a second terminal emulator that might do better.
detaro•2h ago
Telnet often uses "\r\0" instead, but it also can be configured with most clients.
Mystery-Machine•1h ago
I'm trying to repurpose my Pixel 6a that I no longer use, as a Home Assistant Core main driver. I was hoping the author will talk a little bit about that.

I still haven't had the luck to have a fully working Home Assistant running inside (rooted) Termux.

Anyone succeeded to start `hass` and have it running without throwing errors?

ActorNightly•16m ago
If you like this stuff, I highly recommend you look at Samsung Galaxy phones. They come with DeX, which is a linux DE that you can use with a dock.

Magnolia: Interactive Shell Navigation and History

https://codeberg.org/mtmn/magnolia
2•todsacerdoti•54s ago•0 comments

Tick byte makes people vegan

https://en.wikipedia.org/wiki/Alpha-gal_syndrome
1•riedel•3m ago•0 comments

Slave-Making Ant

https://en.wikipedia.org/wiki/Slave-making_ant
1•CGMthrowaway•3m ago•0 comments

City of New York vs. Meta, Google, TikTok et al. (S.D.N.Y. 1:25-CV-08332) [pdf]

https://ia600102.us.archive.org/16/items/gov.uscourts.nysd.650796/gov.uscourts.nysd.650796.1.0.pdf
1•1vuio0pswjnm7•5m ago•0 comments

MCP plugins became enterprise security's biggest blind spot

https://venturebeat.com/security/mcp-stacks-have-a-92-exploit-probability-how-10-plugins-became-e...
1•mooreds•6m ago•0 comments

An email marketing platform that deletes accounts without sending email notices

http://supermegaultragroovy.com/2025/10/09/i-guess-i-let-it-go-too-long/
3•liscio•7m ago•1 comments

Show HN: Lore Engine – Turn 10-hour lectures into 2 hours of comprehensive notes

https://github.com/Slydite/lore-engine
1•Slydite•12m ago•0 comments

Copper-Engine: a new 3D game engine made to empower indie Devs around the world

https://coppr.dev
1•birdculture•12m ago•0 comments

Cikande Industrial Region is now access restricted due to radiation

https://en.antaranews.com/news/384809/govt-restricted-access-to-the-cikande-radiation-red-zone
2•omgJustTest•12m ago•2 comments

A built-in 'off switch' to stop persistent pain

https://penntoday.upenn.edu/news/select-neurons-brainstem-may-hold-key-treating-chronic-pain
3•gmays•14m ago•0 comments

Finding a VS Code Memory Leak

https://randomascii.wordpress.com/2025/10/09/finding-a-vs-code-memory-leak/
2•brucedawson•14m ago•1 comments

Show HN: Created macOS app to help you keep your distance from your screen

2•sparkhee93•14m ago•0 comments

YouTube will give banned creators a 'second chance' after rule rollback

https://www.cnbc.com/2025/10/09/youtube-banned-accounts-trump-misinformation.html
2•aspenmayer•16m ago•2 comments

The more pertinent AI question

https://j23n.leaflet.pub/3m2rxpn4l4k2t
1•j23n•16m ago•0 comments

Web Server Is a Restaurant

https://www.offthebricks.com/articles/your-web-server-is-a-restaurant
1•mircerlancerous•21m ago•0 comments

Couple Gets Trapped for 10 Hours After EV Charging Station Welds Itself to Car

https://www.theautopian.com/elderly-couple-gets-trapped-for-10-hours-after-an-ev-charging-station...
8•throw7•23m ago•0 comments

AI as both authors and reviewers of research papers

https://openreview.net/forum?id=SF7BjKnqdh
2•lilnhi18•29m ago•0 comments

Tesla investigated over self-driving cars on wrong side of road

https://www.bbc.com/news/articles/cvg02rdxxz7o
3•choult•30m ago•1 comments

Making Slint Desktop-Ready

https://slint.dev/blog/making-slint-desktop-ready
1•Bogdanp•31m ago•0 comments

Show HN: Create a live-stream from a list of video URLs

https://liveplaylist.pages.dev/
1•GamingAtWork•32m ago•4 comments

Show HN: Saoirse, a privacy-first research assistant (Mac Beta)

https://getsaoirse.ai/
3•unclecolm•34m ago•1 comments

How Hackathons Make You a Better Software Engineer [video]

https://www.youtube.com/watch?v=ux184jvdY60
1•toomuchtodo•34m ago•0 comments

Mystery of Prince Rupert's Drop at 130k FPS [video]

https://www.youtube.com/watch?v=xe-f4gokRBs
2•akshatjiwan•37m ago•0 comments

Show HN: An open-source framework for building "Apps in ChatGPT"

https://github.com/DooiLabs/Chat.js
1•zachpark•40m ago•0 comments

Robert Roberson: Death row inmate's execution halted by Texas CCA

https://www.cnn.com/2025/10/09/us/robert-roberson-execution-stay
2•rossant•40m ago•1 comments

The Burrows-Wheeler Transform

https://sandbox.bio/concepts/bwt
4•g0xA52A2A•41m ago•0 comments

Future of Work: How AI Is Reshaping Software Development

https://bignorthmarketing.com/blog/future-of-work-how-ai-is-reshaping-software-development
1•bignorthchris•43m ago•0 comments

Show HN: I Built a Hub for Infosec

https://pentestlist.com
1•MrTurvey•43m ago•1 comments

Which Cars Get Pooped on the Most? The Bird Dropping Report

https://alansfactoryoutlet.com/infographics/car-bird-droppings-report/
3•gnabgib•44m ago•1 comments

Nucleon Decays into Light New Particles in Neutrino Detectors

https://journals.aps.org/prl/abstract/10.1103/cxvm-p412
1•PaulHoule•44m ago•0 comments