The minimalist smart switch: Samsung ARTIK, IoTivity, and Tizen

When Philippe Coval of the Samsung Open Source Group needs a smart switch, he doesn’t fool around. A demo he built recently shows the flexibility of Samsung ARTIK modules to adapt to the needs of the developer, rather than the other way around. 

Phillipe started with a Samsung ARTIK 1020 IoT module. This is our highest-end module, with a ton of processing power built-in – eight cores! Instead of the usual Fedora Linux, he installed the Tizen operating system, and set things up to run an IoTivity server. Using this combination, he then connected a Samsung Gear S2 (which also happens to run Tizen).

We’ll let Philippe take it from there:

The slides describing this project can be found on Slideshare

Now, if you’d like to try this yourself Philippe has provided some guidance. (Editor’s note: Proceed at your own risk – this is an advanced project!)

Download the system image (tizen-common-artik10-20160801rzr.qcow2 sha1=9962158bbc1c88e41c267530ca81efa401282e8e from https://files.s-osg.org/~pcoval/pub/file/ ) and put it on an SD card, insert the SD card into the ARTIK 1020 and turn on the power. The ARTIK will boot Tizen and launch the IoTivity server.

To write the image, uncompress archive directly to the SD card using qemu tools :

# lsblk
 disk=/dev/sdTODO # update with your devices
 file=tizen-common-artik10-20160801rzr.qcow2
 sudo qemu-img convert -p "${file}" "${disk}"
 sync

Check these pages for more information about booting Tizen on ARTIK and building software for Tizen OS. They should contain enough information for you to build up-to-date IoTivity versions from scratch:

Philippe notes that this should be adaptable to other hardware like the ARTIK 520 and probably the ARTIK 710 as well. Be sure to bookmark the Tizen ARTIK reference page:

If you run into issues, feel free to visit the ARTIK developer forums. Philippe visits often!

Philippe notes that if you are really ambitious, you can try this with Yocto OS using meta-artik, but using Tizen will save you the time and resources needed to rebuild everything.

Resources

If you want to follow along with what Philippe did, he’s compiled a list of resources, which we’ve reproduced below:

Note that the Tizen community meets from time to time. If you are interested in joining one of the meetings (the next one is 28 November 2016), please check out the meeting page here.