Ruff IoT Application Development Tutorial Now Available on YouTube!

Ruff Chain
RuffChain
Published in
6 min readJul 10, 2018

Hello developers! We will be releasing a series of videos on Ruff Chain’s YouTube channel [https://www.youtube.com/channel/UC0XEQNC27HX-oBsPJHVhxEg?view_as=subscriber] , which will guide you step by step in developing IoT applications on Ruff OS.

Our first vedio

· What is the relationship between Ruff Chain and Ruff OS?

Ruff Chain is an underlying public blockchain which combines the Internet of Things and blockchain. We are committed to integrating IoT and blockchain, sending traditional client data to the blockchain, tackling security flaws, breaking down information silos, and creating data consistency across IoT devices.

An important link in the Ruff Chain ecosystem is the Ruff OS, which can easily connect “things” to the network and begin collecting data. This article is an introduction to Ruff and the application development courses they have available for developers.

· Why do we need Ruff OS?

We have numerous traditional applications, but limited IoT applications. This is because there is a large gap between software and embedded development. The barriers in underlying embedded development are so high and the time needed for testing is so long that many developers flinch at the idea of IoT application development.

Many different types of machines need to connect in IoT and each uses their own set of protocols, drives, and systems. Presently, there are not many applications able to run these machines. Hardware comes with a variety of protocols, and without standards, communication between different types of hardware is very challenging. With these challenges in mind, Ruff started to explore IoT in 2015 and created standards for low level programming. If you know how to use JavaScript, you can develop IoT apps on Ruff OS with ease. For example, a simple command such as “Turn On” can be used to power on an LED light. There is no need to struggle with GPIO (General Purpose Input/Output) or asynchronous deployment. The definition of Ruff OS is Android in IoT — Ruff makes developing IoT applications easier.

· What is Ruff OS?

Ruff is an IoT Operating System for application development built for JavaScript. Ruff provides an open, efficient, and agile platform for IoT application development, which makes getting started a lot easier.

The Ruff development system includes the Ruff OS, Ruff SDK, Rap Registry, and a Ruff Development Kit. You only need software development experience to start developing hardware applications on Ruff.

· The Ruff OS runs on the Ruff Development board and creates a runtime for Ruff apps.

· The Ruff SDK is installed on a host PC and contains all of the Ruff development-related tools.

· The Rap Registry is a Cloud management platform for software packages.

· The Ruff Development Kit consists of a Ruff Development Board (ruff-mbd-v1) and several peripherals to help you get started.

· What can the Ruff OS do?

You dream it, the Ruff OS can do it — we have been experimenting using real scenarios across a variety of different industries.

Creative design: Drones, balance bikes, excavators, Taiko Master, automatic plant watering devices, etc.
Industry: Production data collection, alarm notifications, etc.
Smart agriculture: Environmental information collection, automatic irrigation, etc.
Energy management: Power data collection, 24-hour remote monitoring, fault prevention, etc.
Smart offices: Smart entrance guard, one-button switch off, facility sharing, etc.
Smart homes: Remote control of home appliances, smart night light, remote monitoring, etc.

· How to use Ruff OS?

1. You can find comprehensive Ruff documents ranging from beginner to expert on the Ruff homepage. It takes only three minutes to develop an app to turn on an LED light. Here are the tutorials for beginners:
https://ruff.io/zh-cn/docs/getting-started.html

2. Ruff IoT Application Development System is now available on YouTube!

The tutorial consists of 5 chapters and 17 videos which will be released on a weekly basis. We will show you how to develop IoT apps step by step!

Course objective: Introduce Developers to Ruff IoT Application Development

Instructor: Mou Weiyang

Mou is a R&D engineer at Ruff. He has either participated in or led the R&D efforts for a series of software platforms such as Ruff / Ruff Lite OS, Ruff SDK and Ruff Gateway. He worked at Intel and participated in the R&D of the X86-ARM binary interpreter. He has extensive practical experience in OS and embedded development, and a unique understanding of technical details and general concepts. He is adept at turning complexity into simplicity and explaining complicated theories in simple terms.

Curriculum Structure

Chapter 1. Course Introduction

This chapter briefly introduces the definition and purpose of Ruff, and explains JavaScript basics needed for Ruff application development. It also covers components of the Ruff platform, laying the ground work for follow-up application development.

1.1 Introduction to Ruff
1.2 JavaScript Basics for Ruff
1.3 Components of Ruff Development Platform

Chapter 2. Hardware Control for Application Development

This chapter introduces the basic processes and requisite knowledge for Ruff application development for IoT devices. Finally, it reviews the entire development process through an example of complete integration development.

2.1 Basic Development Process
2.2 Extra Peripherals
2.3 Integration Example: Smart LED Light

Chapter 3. Internet Connection for Application Development

This chapter introduces a few common network communication protocols together with usage of the corresponding modules. It also demonstrates how to finish a simple, real IoT application through a practical example.

3.1 Communication with Net Modules
3.2 Communication over the MQTT Protocol
3.3 Simple Example: Send a Command from the PC to Turn on the Light
3.4 Networking Operation in Application Development

Chapter 4. Integrated Internet Services for Application Development

This chapter introduces the current IoT application architecture, and explains the way to integrate various Internet services with IoT apps. There is also a demonstration on how to turn on the LED light via voice recognition.

4.1 Modern IoT Application Architecture and Advantages
4.2 Methods to integrate Internet Services
4.3 Simple Example: Turn on the LED light via Voice Recognition
4.4 Application Development: Internet Service Integration

Chapter 5. Introduction to Driven Development

During application development, you may run into a scenario where you cannot find devices that you want in the Rap Registry. In this case, developers need the Ruff SDK for driven development of devices. This chapter briefly introduces the driven development model and GPIO interfaces. It also gives a comprehensive explanation of all the driven development procedures.

5.1 DMA Models
5.2 Introduction to GPIO interfaces
5.3 Simple Example: Driven Development of an Infrared Proximity Sensor

What are you waiting for? Let’s get started now! Subscribe to the of Ruff Chain YouTube channel and stay up to date with weekly Ruff tutorials.

--

--

Ruff Chain
RuffChain

Decentralized open source blockchain architecture for high efficiency Internet of Things application development