When it comes to choosing which hardware to use to prototype a new connected device, there are more options that you can shake a stick at. But before you start comparing processor speeds and counting GPIO pins, consider whether you need to shell out $100 or more for an Arduino or Raspberry Pi, plus the add-ons that would let it talk to wireless networks over Wi-Fi, cellular or other protocols. There are cheaper devices out there with all of the same capabilities…and you might have one in your pocket right now.
Yes, we’re talking about smartphones. Tucked inside just about any handset are all the same kinds of components found in typical development boards, plus: Wi-Fi, Bluetooth and cellular radios; several gigabytes of storage; speakers and microphones; cameras; accelerometers, gyroscopes and compasses; and even touchscreens. And while the newest top-end model from Motorola or Apple might break the bank, low-end or used models are both plentiful and cheap—especially in countries outside the U.S.
That’s the insight that motivated JanOS, an operating system developed specifically to control the mainboard of a mobile phone as though it’s an embedded computing device on the Internet of Things. Named for Jan Jongboom, who has driven the bulk of the project at Norwegian telecom subsidiaryTelenor Digital, JanOS is built on the same foundation as Firefox OS. Essentially, it’s a replacement for the Firefox OS user interface that assumes the phone no longer has its own display; that means developers can still interact with the hardware using Firefox OS APIs, as well as some new ones introduced by JanOS.
JanOS can run on any rooted device that is capable of running Firefox OS, which includes those designed specifically for Firefox OS as well as Android devices for which Firefox OS has been ported. As more ports show up, more phones will be compatible as scrap parts for building JanOS devices. Jongboom has also posted the source code on GitHub, so other developers may be able to help improve the project and more quickly extend it to other phones’ chipsets.
The idea of repurposing smartphone hardware could have big implications for manufacturing Internet of Things devices. For one thing, it’s a clever way to reuse the hardware from outdated or discarded phones; for another, it could give IoT developers the option to buy hardware that, thanks to the ubiquity of mobile phones, is already being manufactured in bulk—and at dirt-cheap bulk prices.
On the other hand, components like the ESP8266 module—which packs Wi-Fi connectivity and processing power into small, inexpensive boards and can be programmed with the popular Arduino development environment—are already bringing down the cost of accessible IoT hardware.
To learn more about the JanOS project, check out Jongboom’s presentation from JSConf.EU 2014 in the video below.