Sitemap
Brian

Brian

…but can we do better?

TCP Connected, Out of the Box

3 min readOct 9, 2014

The Internet of Lightbulbs!

I’ve been interested in home automation and lighting and such for a long time, but the thought of investing in a particular ecosystem seemed daunting. What if the protocols don’t win (like ZigBee vs Z-Wave?) What if the company goes away and I’m stuck with what their last iteration was? What if I buy other things that don’t integrate?

Well, I did some research and settled on the TCP Connected bulb. I wanted Philips Hue originally, but ultimately decided that for half the price, an apparently hackable gateway, and the ability to what I want (dim), I would give it a go. Admittedly Philip’s marketing is a lot sexier than TCP’s, but the decision to get TCP’s product was more than skin deep!

Today, 3 bulbs and a gateway arrived. I was so excited that as soon as I opened the package I screwed one of the bulbs in and when to set up the gateway. The light turned on, but I couldn’t figure out how to turn it off.

I got onto the gateway (http://lighting, http://lighting.local for mac users), but found that there was no ability to manage the bulb. Unfortunately for the purposes of these bulbs, I don’t have an iPhone or an Android device, which means I can’t easily configure them as they were meant to be configured.

I thought maybe I could pop open an Android emulator, install the app, and try from there… that’s a lot of work. Emulator doesn’t even come with Google Play store. Scratch that.

Pulled out an old phone, but the thing is so junky that every process running keep crashing without me even touching the device.

Well, other people have been at this for longer so I went digging around. Turns out the gateway can (at a bare minimum) be managed very easily by some simple commands:

Get Brian’s stories in your inbox

Join Medium for free to get updates from this writer.

List all devices on the network. Copy down the Device ID returned of any bulbs on the network

Toggle a device on or off (Change the “value” parameter in the XML to 0 or 1; use Device ID)

Set the brightness

This was enough to get me rolling. I wrote up a shell script to toggle on the light and then set the brightness from 1–100 incrementing over a period of 10 minutes to simulate a rising sun. I’ll probably make it non-linear in my next iteration, but it seemed like a fun way to enhance the otherwise limited binary functionality of the bulb.

More fun stuff: root password has been cracked, so it’s easy to SSH into the device and poke around. I will be spending a lot more time in here to figure out what’s what and see what I can do. It’s a full linux box though — there are a lot of possibilities in my head right now.

I want to get crond running on the gateway, as well as write some of my own applications (or at least APIs) for it. I also want to understand 6loWPANd (the daemon that is running the network) and the JENNET-IP protocol so I can tap into that as well.

The internet of things is a crazy place… and very exciting. Will keep this blog updated with my progress.

--

--