IonBlock-Sdk-Paasmer

How to Use the IonBloc SDK

ManagementTeamMouli1

Srinidhi Murthy

What is Block Chain?

A blockchain – originally block chain – is a distributed database that is used to maintain a continuously growing list of records, called blocks. Each block contains a timestamp and a link to a previous block. A blockchain is typically managed by a peer-to-peer network collectively adhering to a protocol for validating new blocks. By design, blockchains are inherently resistant to modification of the data. Once recorded, the data in any given block cannot be altered retroactively without the alteration of all subsequent blocks and a collusion of the network majority. Functionally, a blockchain can serve as “an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way. The ledger itself can also be programmed to trigger transactions automatically.”

Blockchains are secure by design and are an example of a distributed computing system with high Byzantine fault tolerance. Decentralized consensus has therefore been achieved with a blockchain. This makes blockchains potentially suitable for the recording of events, medical records, and other records management activities, such as identity management, transaction processing, and documenting provenance.

IonBloc

ionBlocIonBloc Data flow and usage

IonBloc is our version of Open source Ethereum Blockchain network that can be setup as a public production implementation or a private test implementation depending on client needs.

In an IoT network, the blockchain can keep an immutable record of the history of smart devices. This feature enables the autonomous functioning of smart devices without the need for centralized authority. Thus, blockchain opens the door to a series of IoT scenarios that were remarkably difficult, or even impossible to implement without it.

By leveraging blockchain, IoT solutions can enable secure, trust less messaging between devices in an IoT network. In this model, the blockchain will treat message exchanges between devices like financial transactions in a Bitcoin network. To enable message exchanges, devices will leverage smart contracts which then model the agreement between the two parties.

Using blockchain will enable true autonomous smart devices that can exchange data, or even execute financial transactions, without the need of a centralized broker. This type of autonomy is possible because the nodes in the blockchain network will verify the validity of the transaction without relying on a centralized authority.

Installation:

The IonBloc SDK allows for a seamless connection to our private Blockchain. Here’s how you can do it. You need to have a Raspberry PI 3 with a 16GB SD card and running the latest Raspbian OS. Also, you need to have a stable high speed Internet connection (500 kbps at a minimum)

  • Download the Zip file from Github or execute a git clone command on our repository.
  • Extract and Install the SDK using the Installation script.
  • Some of the necessary support libraries are installed and you are taken to a GETH console.

Once you are in the GETH console,

  • Create a new account. (Noted down the password)
  • Provide our Admin Enode address and Pair
  • That’s it you are connected to our private Block Chain.

Now the possibilities are endless, but to get you started we have given a sample code and procedure to create contracts to blink an LED connected to a GPIO pin on the R-PI.

You can create contracts which have more features, which can read sensors, turn on actuators, monitor sensors etc.
IonBloc SDK is just the starting point … the tip of the iceberg. Some of the more advanced use cases can be found in

IonBloc SDK is just the starting point … the tip of the iceberg. Some of the more advanced use cases can be found in

  • Industrial and manufacturing for improving monitoring and efficient “Just in Time” (JIT) processes.
  • Connected and Driverless vehicles where every vehicle becomes a node and there can be an efficient vehicle to vehicle communication.
  • Public infrastructure and smart cities: Smart devices are already being used to track the health of bridges, roads, power grids etc. Blockchains can be used to interconnect these to share efficiencies and to conduct maintenance, forecast usage trends for power usage, pollution etc.

We have given a limited set of features to create a working POC that can be later developed into fully fledged modules. There are many more features that can be added as a part of customization for specific requirements.
We can do a lot more with IonBloc (some of the features are present in the data flow diagram).

Please feel free to contact us at the mailto:support@paasmer.co for any information or customization.

Paasmer-Ion-Tor_2

How to use the IonToR SDK

ManagementTeamMouli1

Srinidhi Murthy

First Up, What is this TOR Network? TOR or The Onion Router funnels all the data traffic from the device to its end user or master update servers via a Tor-Kind connection, instead of using the public Internet.

The software is run to turn on a Tor configuration, which, in a simplified explanation, sets up a special Onion site on the device. Remote users who want to access the IoT device will need to know the Onion link to the software first, which will then relay the connection to the actual IoT device, working as a proxy. The advantages of using such a system are palpable, for both users and IoT vendors, who might be interested in embedding such technology into their devices by default.

First off, there’s no need to complicate software development with setting up complex SSL/TLS certificates for supporting HTTPS connections, since all Tor connections are encrypted by default, with several layers of encryption (Onion protocol).

Secondly, users don’t need to uselessly open firewall ports or use VPNs to access their IoT devices.

Here’s a simple illustration of how a traditional TOR network Works.Ion-Tor_paasmerOverview

The IonToR SDK provides the ability to connect your things or Devices to the Internet and the ability to control them across a TOR Network via a TOR Browser.

The IonToR SDK for Single Board Computers (SBC) like Raspberry-PI, Intel Edison, and Beagle Bone is a collection of source files that enables you to connect to the IonTor service. It includes the tor libraries to connect to TOR network. It is distributed in the application form and intended to be built into customer solution along with other libraries. The below Image represents how IonTor works.

Ion-Tor-Paasmer1Features

The IonToR SDK simplifies access to the TOR network and automatically configures an .onion DNS name along with a hidden service for accessing a UI on a TOR browser. The SDK installs all necessary software and creates a simple web UI through which sensor data can be viewed and actuators controlled. The SDK has been tested to work on the Raspberry Pi 3 running Raspbian Jessie. Support for Other SBC’s running any flavors of Linux would be available shortly.

Installation
Installation of the IonTor SDK is a matter of a few simple steps and viola! You are ready to control and read sensor information from anywhere in the across a TOR network. The TOR SDK can be installed from the GitHub location. Following the steps in the installation guide (Readme file) will complete the installation.

Installation includes the following modules.

  • HostAPD: to provide an access point for Wireless sensors to connect.
  • LAMP Serve: Facilitate the being up of the UI on the SBC.
  • TOR Installation : Configures Hidden service and provides the “dot onion” DNS address.
  • Configuration files need to be edited to give proper names to Sensors and Actuators

Running the given script enables the data gathering from sensors after configures interval and is stored in the DB.

Tor Client Access Setup

The TOR Browser allows you to access your PAASMER-IonToR instance over Tor from your laptop or mobile device, using Tor Browser

A Hidden Service Authentication credentials must be added to the TOR browser to allow the access of the Hidden Service configured on the SBC. Once connected to the “dot onion” site, you are presented with a graphical representation of your sensor data and Actuator control. This Sensor data being displayed is live data and you can turn on and Off Actuators.

Ion-Tor-Paasmer_dashbord

The IonToR SDK can be used to create Proof of Concept projects that can be later developed into fully fledged modules. There are many more features that can be added as a part of customization for specific requirements.

The IonToR SDK provides a completely anonymous way of accessing your devices, things, sensors and it protects the users and the devices from attacks like DOS, Bot-nets etc.

All connections will go through the Tor hidden network, and nobody will know to what you’re connecting. It could be your IoT baby cam at home or a drug marketplace. It’s anyone’s guess.

Scanning Tor-protected IoT devices are technically impossible. This means no more searching for vulnerable IoT devices via Shodan and blindly stumbling upon vulnerable equipment.

Please feel free to contact us at the support@paasmer.co for any information or customization.

Edge-Analytics-IoT-Paasmer_Platform

Why Edge Analytics should be part of the IOT strategy of an Organization

Sridhar krishnan

Sridhar krishnan

The organizations in today’s ever changing competitive world should be capable of adopting to changes quickly and seamlessly. The organizations should carefully invest in right technologies to align with its strategy to attain maximum benefit. With growing and increasingly disbursed sources of information and the pace of organizational change accelerating rapidly, the ability to filter and analyze only the time-sensitive data both in real-time and historical in edge side and non-time sensitive data in the cloud is invaluable. It is cost effective approach to have central data analytics infrastructure only for non-time sensitive analysis and moving analytics to Edge gives an opportunity to monitor and running stream and batch analytics to get insights to take decisions quickly with speed and simplicity.

Three central value propositions of Edge Analytics:

Real-time response – There are many critical systems that can’t depend on a cloud connection for a decision. A few seconds of latency can make a significant difference for an operation with massive power consumption from multiple sources. And sometimes connections fail entirely, which is far more damaging than simple latency.

Cost of data transmission – Rule-based engines can filter out the noise and send only the interesting information back to the central repositories. Gateways can also batch information into packets with smaller footprints that are more optimal for a given means of transmission.

Information management – Edge processing can make a significant impact by cleaning and be harmonizing data before sending it off to central information management systems. this type of edge processing improves central data mining and analytics capabilities.

Edge Analytics is the game changer in all the industries including industrial IOT, retail, manufacturing, finance, energy and agriculture sectors.

Core benefits of edge analytics and industries where it makes more sense are,

  • Remote Monitoring in Oil & Gas Drilling, Oil & Gas Refineries, and Wind Turbines industries.
  • Preventive Maintenance in Factory Robots, Airplane Tires, and Energy Grid industries.
  • Personnel Safety in Refinery Gas Leaks and Contamination Containment.
  • Real-time Quality Assessment in Oil Drilling, Manufacturing Cell, Train Repair
  • Asset Health in Readiness Assessment.
  • Efficiency Through Digitization & Automation in Smart Meters, Utility Billing, etc.
  • Cost Reduction Through Better Facilities Management in Energy Management & Reduction.

Business use case examples

Manufacturing
Manufacturing organizations must run data aggregation, data preparation and analytic workflows at the source, where the data is generated. When linked to sensors along the path of production, analytic models running on gateway devices at the network edge evaluate and score manufacturing output by parameters such as size, temperature, pressure, color, vibration, and weight. When variances are detected, the embedded sensor, smart device or gateway immediately sends alerts or even stops production to help limit waste. The manufacturing process benefits from the flexibility to monitor and update the model at the point where data is generated and from the network efficiency to send only valuable information like state changes back to the cloud for deeper analysis.

By using machine learning, data mining and advanced analytics at the source of the data to examine thousands of steps per process, manufacturers can catch small, bad batches before they become large, seriously bad batches. One pharmaceutical company discovered that minimizing scrap and wasted resources saved them several hundred thousand dollars. Their Edge analytics implementation combined with a program of statistical process control featuring audit trails and role-based security, allowed them to recover their investment in edge analytics in the first quarter after implementation.

semiconductor manufacturers automatically analyze and classify patterns of failures such as scratches or defects around the edges of silicon wafers. They identify possible root causes, and the specific processing steps and respective tools and machines that require inspection or maintenance.

Retail customer behavior analysis
Near instant edge analytics on sales data, images, coupons used, traffics patterns, and videos are created – provides unprecedented insights into customer behavior. This intelligence can help retailers better target merchandise, sales, and promotions and help redesign store layouts and product placement to improve the customer experience. One way this is accomplished is through the use of edge devices such as beacons, which can collect information such as transaction history from a customer’s smartphone, then target promotions and sales items as customers walk through the store.

Banking
Edge Analytics helps banks to understand their customers better by providing insights such as location-based suggestions and customer recommendations. Embedded in the bank’s customer channels – online banking or mobile banking, edge analytics delivers transactional behavior and location-based suggestions in real time.

Agriculture
We believe Edge Analytics can come into play in sectors such as farming and agriculture largely wherein regardless of the network, analytics can point out equipment failure or irrigation leaks.

save-environment-iot-paasmer

Save the environment – IOT is the way to go

Sridhar krishnan

Sridhar krishnan

Saving the environment from pollutants, waste dumps, carbon emissions, contaminated water and contaminated land is very important and must be done to protect the earth for a clean and healthy life. Technology should be used wisely to achieve the same. With advancements in sensor technologies, edge devices, communication protocols, and data analytics, IOT is the perfect solution to save the environment.

Waste collection, segregation, recycling and waste treatment is the standard and established the process in waste management. But the challenge is, executing this process as the amount of waste generated is keep increasing in a faster pace with growing world population. As this is a continuous process, this must be supported by the right government policies, strict measures, auditing, educating people and perfect implementation. A small deviation in the process may cause big damages to the environment. This must be handled with the right technology in all levels, IOT can offer end to end solution to achieve the smart waste management to save the environment.

For smart waste collection, IOT can make the Trace bins as smart Trace bins and connect them to the pickup vehicles and control center. The sensors in the trace bins will notify when the bins are full to the pickup vehicles and the nearest one can collect the waste. This will help to empty the bins as soon as they are full and efficiently allotting pickups to save time and cost. Waste segregation is an important process in waste management. Sensors can be used to automate the segregation process. IR proximity sensors are used in an automation system, Capacitive sensors can be used to segregate wet and solid waste. The segregation process can be connected to waste management IOT system to collect data on diverse types of waste collected from different centers, the data can be used for further analysis to derive useful and meaningful insights. Segregated waste based on the type, can be converted or recycled to other products. The final waste must be treated before dumped in landfills to make sure it will not contaminate land and water. IOT sensors and devices in each level can be efficiently used to collect data and manage the entire waste management process to reduce the damages to the environment.

IOT can also be used for Wastewater treatment. It offers a cost-effective, energy-efficient and environmentally friendly solution. The various sensors can be used to measure water temperature, conductivity, pH, turbidity and dissolved oxygen content, as well as atmospheric conditions such as pressure, humidity and solar radiation. After collecting the relevant data, the system can communicate with IOT Gateway to upload the sensor data to the cloud for viewing and analytics. For more details refer
http://www.engineering.com/IOT/ArticleID/14925/Wastewater-Treatment-with-the-Internet-of-Things.aspx

Carbon emission is another major spoiler of the environment. IOT can be used to capture real-time emission data from the sensors and feed it to a cloud storage built for Big Data ingestion, Analyze the data in real time and put in place rules that automate actions when limits are exceeded. Apps can be developed to offer visualization of CO2 emissions so that both the culprits and the government can keep a tab on the emission levels, and appropriate remedial measures can be taken.

IOT based smart solutions can be used to save energy in the home, industries, agriculture, transport, city management to save the environment. So IOT can play a key role in the resolution of these global environmental issues. Cheaper bandwidth, greater availability of computing power and reduced storage costs are all driving the adoption of IOT technologies to combat pollution in more and more innovative ways. With information coming in from so many sensors everywhere, IOT can provide more insight into how we use our world’s resources and how we can conserve them in a way that makes sense.

Paasmer_wearable-devices

IOT will be inherent force behind Wearables

Sridhar krishnan

Sridhar krishnan

The capabilities of IOT with the wearable devices like internet connectivity, a device to device communications, lightweight apps, data filtering, local and cloud analytics, etc.., are bringing many opportunities to develop more meaningful solutions for consumers. Here, I would like to talk about few of them.

paasmer_Wearables

The wearable devices with the technological innovation of IOT are widely successful in providing the fitness and healthcare related solutions. We have a lot of scope for environmental monitoring also, but the challenge is cost and power. A very few are successful in low cost and low power sensors in wearable devices used for environmental monitoring. These environmental devices can collect data on Air, Light, and Sound. With continuous innovations in sensors, we can expect that the manufacturing and operation cost of these devices will become more affordable and capable of sensing multiple environmental data. The wearable nature of the device gives constant mobility to the device. This opens up an opportunity to crowdsource the more accurate and real-time environmental data with location details. The data collected by the device can be from the sensors embedded in it and from other sensors in reachable distance based on the supported protocols and standards.

Having more accurate and crowdsourced real-time environmental data in the cloud combined with another cloud accessible real-time and forecasted environmental data from static stations set up by governments and institutes brings tremendous opportunities for IOT device manufacturers and solution providers to build innovative, value added, cost effective consumer devices and solutions.

In health care, the environmental data can be used for the clinical diagnosis and treatment of many human pathologies which are influenced or triggered by environmental stimuli. By analyzing the consumers’ health data like health history, medical records and any other health-related data with the environmental and location data, we can develop customized healthcare solutions to help consumers with health advisories and warnings. It can also be used to provide B2B solutions like connecting consumers with doctors for consultation, Pharmacy to order suggested list of things to order, etc.,

Wearables_healthcare_paasmer

The consumer specific health data and location specific real-time and forecasted environmental data can also be used to provide travel advisories and b2b solutions with a list of things to carry based on the mode of transport and travel locations, and option to buy the recommended list of things online. So, with the capabilities of IOT, we still have lot of opportunities that can be explored with the wearable devices in healthcare, travel, city management, traffic management, waste management, disaster management, etc.,

References – https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4295929/

aquaponics-hydroponics-10

Transforming Hydroponics and Aquaponics farming Using Internet of Things

ManagementTeamMouli1

Kavitha Gopalan

With the growth in urban population, the need for more space seems perpetual. Traditional farming techniques are known for the need of large lands and the enormous amount of water. So the need for revolutionary farming techniques which occupies lesser space, consume lesser water and can give larger produce have led to the popularity of farming methods like hydroponics and aquaponics.

Hydroponic farming is a system of growing plants without soil using nutrient-laden solution to deliver nourishment directly to the roots of the plants. In hydroponic farming, the idea is to create a controlled environment for the plants with the right level of temperature, moisture, CO2, pH, water level and nutrients and supplying this solution directly to the plant’s roots. This method of creating an optimal environment for plants helps to increase the productivity by 3 folds. It also has other benefits like the re-use of the nutrient solution, reduces the amount of water used for farming by recycling, reduced fertilizer usage and requires lesser space.

Aquaponics is a system which uses aquaculture with hydroponics. In an aquaponics system, water from an aquaculture system is fed to a hydroponics system where the by-products are broken down by nitrifying bacteria initially into nitrites and subsequently into nitrates, which are utilized by the plants as nutrients, and the water is then recirculated back to the aquaculture system.

While these new techniques promise great results, it has certain inherent challenges which inhibit its widespread adoption.

The biggest hurdle for its adoption is the maintenance of the system. It could be time-consuming and be challenging to understand and constantly monitor the hydroponic or aquaponic systems.

Setting up these systems could be a mammoth task, the number of sensors to be installed, the triggers and the parameter configuring could be time-consuming.

It also requires constant monitoring of the sensors and the system. A hydroponic farm must be regularly attended to by a farmer, to know if there is any blockage in the drainage system, to understand if any system failure/power failure if the pump is on/off. If they must set-up multiple farms then scalability becomes an issue.

IOT will be a key problem solver for hydroponics and aquaponics systems with its ability to connect various sensors in the field to cloud and allowing it to be monitored and controlled from anywhere.

The Union of Internet of Things and hydroponic farming will be the future of demystifying the hydroponic farming and making it easier for adoption.

The internet of things will bring in features like automation, remote monitoring and control and build intelligence into the hydroponic farming system. This helps to prevent the need for the human presence in the farm every time and allows efficient monitoring and control of the farm from a remote location.

Sensors mounted in the farm could be used for monitoring CO2, air current, lighting, fertilizer flow, and the pH of the soil. The readings from these sensors are then analyzed in cloud systems. These readings are monitored continuously and tuned if there is any change in environment. Immediate alerts of the status and action will result in increased yield.

Blockchain_paasmer_paltform

Basic concepts in a Blockchain transaction

ManagementTeamMouli1

Chandramouli Srinivasan

In this blog, Demir talks about the basic terms used in Blockchain like Hashing, Decentralization, Digital Signature, Share Crypto currency, Minors (Agents), Blockchain (The Ledger).

Using Blockchain technology means

  1. All transaction is made over the Internet using P2P communication, thus removing the need for a central authority.
  2. Users can perform anonymous transactions by utilizing asynchronous cryptography and they are identified only by their private key/public key combination.
  3. You have implemented a validated global ledger of all transactions that has been safely copied to every peer in the network.

These decentralized technology fundamentals can be leveraged by any centralized technology currently being used like IoT, Financial systems, insurance systems etc. The increase in computing power requirement for Blockchain is a potential issue for Blockchain implementations. However, there are many types of researchers underway that could change the way a commercial and viable implementation of Blockchain occurs.

More on this blog from Demir here: https://www.toptal.com/bitcoin/cryptocurrency-for-dummies-bitcoin-and-beyond

Home automation and HVAC control_paasmer platform

Home Automation and HVAC Control

ManagementTeamMouli1

Srinidhi Murthy

The Internet of Things is set to disrupt the way we live and work, but for now, let’s focus on the “live” portion of that statement. Smart homes filled with connected products are loaded with possibilities to make our lives easier, more convenient, and more comfortable.

Imagine that you’re driving home on a hot summer day. But rather than turning the air conditioner on when you get home and wait for your house to cool, you simply use your smartphone when you leave your office to tell your smart thermostat to lower the temperature.

Or imagine that you’re cooking dinner, and you ask the voice assistant to read you today’s biggest news stories so that you can focus on making your kid’s favorite lasagne. There is no shortage of possibilities for smart home IoT devices, and home automation seems to be the wave of the future.

Experts estimate that the number of smart home devices shipped will grow from 83 million in 2015 to 193 million in 2020. This includes all smart appliances (washers, dryers, refrigerators, etc.), smart home safety and security systems (sensors, monitors, cameras, and alarm systems), and smart home energy equipment, like smart thermostats and smart lighting.

There are many benefits of home/building Automation which are listed below.

  • Security: Motion sensors
  • Efficiency: Automatic switch off when not in use.
  • Convenience: Control everything from your fingertips.
  • Savings: You save money with an efficient Home automation system.

The first and most obvious benefit to smart homes is a convenience, as more connected devices can handle more operations (lighting, temperature, etc.) and free up the resident to perform other tasks.

As with all shifts in technology, changes will happen in the ways we live and do business. With the actions being taken for more energy efficiency in construction and managing of buildings there is a big potential through Internet of Things. HVAC systems that can make their own intelligent decisions based on presence, weather and lots of other indicators have a great potential to cut energy use and cost.

We are also certain that new business models will emerge. HVAC systems using IoT will be able to predict situations from collected data and have automated alarms for service and maintenance that can facilitate new services.

Paasmer:

Mobodexter’s PAASMER provided the complete set of components to build this solution from End to End satisfying all the needs of the client in the shortest possible time frame.

Here we explain how PAASMER has been used to connect a traditional HVAC system using a custom built IR blaster to the Paasmer IoT platform and how to control the same remotely.

Paasmer_HVAC

The solution has 4 modules, the Hardware, the Misty OS, the Paasmer IoT Platform and the App. We shall look at each of them below.

Gateway Hardware:
The Gateway Hardware consists of Network MCU boards with an IR Receiver and an IR transmitter connected to it. The Firmware that runs on the Network MCU is responsible for connecting to the Paasmer IoT Platform and ability to send and receive data from the Paasmer IoT platform.

It is also responsible for decoding the correct pattern to be sent via the IR transmitter and recording the correct pattern from the IR receiver.

Misty OS:

Misty OS is designed to be flexible, modular and gateway platform agnostic. The core functionality of the OS, Connectivity, H/W interface and middleware component are built into Misty OS. The gateway has interfaces for IR Transmitter and an IR receiver

It operates in two modes, Learning, and Transmits.

In Learning mode, the Hardware learns all the new IR codes that are needed for a particular device and stores the data on the Paasmer IoT Platform specific to the user. The learning mode can be enabled from the App and has options to choose the device type and device subtype. Once all the buttons of the remote have been learned it is ready to work.

In Transmit mode, messages are received from the App via the Paasmer IoT platform inform the Hardware to blast out the appropriate IR signature for the button pressed in the App. This IR signal is blasted across and very wide range using duplicate IR transmitters to cover an almost 360-degree range to control the HVAC system.

Paasmer IoT Platform:

Paasmer is a one stop shop for connecting all your devices to the internet and read data from them as well as control them. The Paasmer IoT Platform hosts the message broker, the necessary business logic, data store and all the necessary interconnections between them. It provides a platform onto which all Gateway HW devices, mobile phones, websites can be interconnected.

App:

The App connects to the Paasmer IoT Platform and based on the user login details and displays the data of the devices that are available for control. The user can select the appropriate device and control the device using the buttons on his screen. These button clicks are translated to the respective messages which are published by the Paasmer IoT Platform.

Paasmer_HVAC_1

In the current scenario a user wants to switch off the HVAC, so he selects the HVAC and then switches it off. These switches off messages are published to the broker on a particular topic. The Gateway Hardware is subscribed to this particular topic and hence receives the message.

The Gateway Hardware then decodes the message and immediately blasts the respective IR signature to turn off the AC.

raspberry-pi_connect to Paasmer IoT Platform copy-min

How to Connect Raspberry Pi 3 to the PAASMER IoT Platform

ManagementTeamMouli1

Srinidhi Murthy

In this blog series we look at how to connect a Raspberry PI 3 to the PAASMER IoT Platform.

The PAASMER IoT Platform makes it simple for Internet of Things companies to build and launch IoT-enabled hardware. PAASMER currently provides an SDK which can be installed on the hardware.

Modifying a few lines of code to provide the correct credentials and sensor information, it is ready to be connected to the PAASMER IoT Platform. The sensor data is then available on the PAASMER Developer Login, which can be utilized and actions taken by using the control fields to control various other sensors connected to the Hardware.

A pre-requisite for using the SBC-SDK is available of the Raspberry Pi 3 hardware running Raspbian Jessie OS. More hardware and software support would be added shortly.

An account created in http://developers.paasmer.co allows for a 30 day trial period to explore the PAASMER IoT platform. After creating and activating the account, the SDK for the appropriate hardware can be downloaded.

Given below are the detailed steps to be followed after downloading the SBC-SDK.

PAASMER IoT SDK for Single Board Computers Running Linux

Overview

The PAASMER SDK for Single Board Computers (SBC) like Raspberry-PI, Intel Edison, Beagle Bone is a collection of source files that enables you to connect to the PAASMER IoT Platform. It includes the transport client for MQTT with TLS support. It is distributed in source form and intended to be built into customer firmware along with application code, other libraries, and RTOS.

Features

The SBC-SDK simplifies access to the Pub/Sub functionality of the PAASMER IoT broker via MQTT. The SDK has been tested to work on the Raspberry Pi 3 running Raspbian Jessie. Support for Other SBC’s running any flavors of Linux would be available shortly.

MQTT Connection

The SBC-SDK provides functionality to create and maintain a mutually authenticated TLS connection over which it runs MQTT. This connection is used for any further publish operations and allow for subscribing to MQTT topics which will call a configurable callback function when these topics are received.

Pre-Requisites

Registration on the portal http://developers.paasmer.co is necessary to connect the devices to the PAASMER IoT Platform.The SDK has been tested on the Raspberry PI 3 with Raspbian Jessie (https://downloads.raspberrypi.org/raspbian_latest)

Installation

  • Download the SDK or clone it using the command below.
    • $ git clone github.com/PaasmerIoT/SBC-SDK.git
    • $ cd SBC-SDK
  • To connect the device to Paasmer IoT Platform, the following steps need to be performed.
    • $ cd external_libs/mbedTLS/
    • $ make
    • $ cd ../../
    • $ sudo ./install.sh
  • Upon successful completion of the above command, the following commands need to be executed.
    • $ sudo su
    • $ source ~/.bashrc
    • $ PAASMER
    • $ sed -i ‘s/alias PAASMER/#alias PAASMER/g’ ~/.bashrc
    • $ exit
  • Go to the directory below.
    • $ cd samples/linux/subscribe_publish_sample/
  • Edit the config.h file to include the username(Email), device name, feed names and GPIO pin details.
    #define UserName "Email Address" //your user name used in developer.paasmer.co for registration
    #define DeviceName "" //your device name
    #define feedname1 "feed1" //feed name used for display in the developer.paasmer.co
    #define sensorpin1 gpio-pin-no-for-sensor-1 //modify with the pin number which you connected the sensor, eg 6 or 7 or 22
    #define feedname2 "feed2" //feed name used for display in the developer.paasmer.co
    #define sensorpin2 gpio-pin-no-for-sensor-2 //modify with the pin number which you connected the sensor, eg 6 or 7 or 22
    #define feedname3 "feed3" //feed name used for display in the developer.paasmer.co
    #define sensorpin3 gpio-pin-no-for-sensor-3 //modify with the pin number which you connected the sensor, eg 6 or 7 or 22
    #define feedname4 "feed4" //feed name used for display in the developer.paasmer.co
    #define sensorpin4 gpio-pin-no-for-sensor-4 //modify with the pin number which you connected the sensor, eg 6 or 7 or 22
    #define controlfeedname1 "controlfeed1" //feed name used for display in the developer.paasmer.co
    #define controlpin1 3 //modify with the pin number which you connected the control device (eg.: motor)
    #define controlfeedname2 "controlfeed2" //feed name used for display in the developer.paasmer.co
    #define controlpin2 4 //modify with the pin number which you connected the control device (eg.: fan)
    #define timePeriod 15000 //change the time delay as you required for sending sensor values to paasmer cloud
  • Compile the code and generate the output file.
    • $ sudo make
  • Run the code using the command below.
    • $ sudo ./subscribe_publish_sample
  • The device would now be connected to the Paasmer IoT Platform and publishing sensor values are specified intervals.

Support

The support forum is hosted on the GitHub, issues can be identified by users and the Team from Paasmer would be taking up requests and resolving them. You could also send a mail to support@paasmer.co with the issue details for a quick resolution.

smartthings_2

Is Node Red the key to unlocking the potential of Internet of Things

ManagementTeamMouli1

Kavitha Gopalan

IOT is in forefront of all technology discussion. A lot of new tools, platforms, and product evolve every day to meet the growing needs of the IOT market.

Developing IOT applications can be a daunting task. There are so many pieces to be glued together for the IOT product or solution from sensors, gateways, cloud, middleware, analytics and so on and not to mention the task of understanding the various application development frameworks and standards that come with it.

IBM’s open source project Node Red is intended to reduced the software complexity of building IOT project and help in the rapid development of applications.

Node Red is a powerful open source visual tool used for building IOT applications. It revolves around the concept of wiring together the different pieces of blocks to create the functionality. It has multiple pre-built code blocks known as “Node” which can be called to perform a task. For example, if you want to turn on your LED bulb with a twitter hashtag #Led you can simply connect the twitter node, trigger node, and your bulb.Node red is a flow-based programming tool where series of nodes represents events and trigger based on the event can be programmed.

Programming Visually With Node-RED: Wiring Up The Internet Of Things With Ease written by Jesus Dario Rivera from Toptal gives a very good introduction into using Node red to create smart home application

He writes

“To demonstrate how Node-RED fits into the realm of Internet of Things, let us build an application to change the color of a smart bulb. Not everyone may have the same smart lighting system at their disposal, but there is nothing to worry about, as you can find the appropriate Node-RED module from the official flow repository. However, to make things even easier let us go for something smarter”
Read mode here https://www.toptal.com/nodejs/programming-visually-with-node-red

Also, read PAASMER’s blog on How to connect devices to AWS IOT in this blog
http://blogs.paasmer.co/series-blogs-connect-esp-8266-nodemcu-aws-iot/