UDP Broadcasting And Easily Finding Network Services

Local area networks (LANs) that use technologies like Ethernet and Wi-Fi are incredibly useful for letting devices talk with each other. Yet a core problem here is knowing which devices are where on the network, as anyone who has ever tried to add a network printer or network share to their system can probably attest to. Unless you happen to know the IP address of the LAN device, the port, and protocol, the target device may as well be located on the Moon without further help, such as automatic network discovery in lieu of waddling over to the device and reading the label listing its IP address.

Over the decades quite a few ways have been developed to enable such network discovery, with many of them using UDP broadcast as the first step. By broadcasting a global message on the entire LAN, any device that has an actively listening UDP socket on that particular port can parse said message and decide whether it’s feeling sociable enough to reply.

The topic of UDP broadcasting is however not as straightforward as it may sound if you’re just getting started, including the existence of many opinions on the ‘right way’. There is also a massive divide between a sprawling service discovery protocol like mDNS and a light-weight one like that one that I had to implement a few years ago for an open source project.

Continue reading “UDP Broadcasting And Easily Finding Network Services”

Terminus Is A Text Only Phone Because Telephony Is Dead Anyway

This may say more about us than the current state of the telephone network, but unless your Grandma is still kicking, how many phone calls do you take that are actually worth picking up? Around here it’s one variety of scam or another, with the odd cold-calling salesperson to round it out.

So when we saw [Bolan Xu]’s texting-only TERMINUS cell phone project, it took but a minute to decide that, yeah, we wouldn’t miss the telephone part of the phone very much either.

The trade-offs are immense when compared to your smartphone; there’s no voice, no web browser, no social media, and no camera. But on the flip side there’s also no spyware and no annoying spam calls. Besides, he’s built a QWERTY keyboard onto this thing, and that does seem to be what most of us miss in this era of black rectangles.

In terms of electronics, its rocking a tiny OLED display for you to read your messages on, driven by an ESP8266. When WiFi is available the plan was to bridge over the internet in an SMS version of VOIP, but [Bolan Xu] ended up installing a cellular modem in it anyway.

As you can tell from the skeletal case, this is very much a prototype, but it is a promising project. We’ve seen ESP-based phones before, but they tend to be a bit smarter, and run on ESP32 instead of the more modest ESP8266.