Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform
      • iLabs Platform
      • Raspberry Pi Platform (MCU)
      • Seeeduino Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Raspberry Pi Platform (SBC)
      • UDOO Platform
    • Peripherals >
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform
      • 4D Systems Platform
      • Intel Platform
      • LaunchPad Plaform
      • BoosterPacks for LaunchPads
      • LightBlue Bean
      • Maple Plaform
      • Mediatek Platform
      • Microsoft Azure IoT DevKit
      • Particle Platform
  • Software
    • Exploring RTOS with Galaxia >
      • Event Library
      • Semaphore Library
      • Mailbox Library
      • Timer Library
      • Clock Library
      • SWI Library
      • Task Library
    • Ultra-Low Power with EnergyTrace >
      • Ultra-Low Power with MSP430
      • Ultra-Low Power with Energia MT and Galaxia
    • Using Integers Instead of Reals
  • IoT
    • IoT Platforms: Which Hardware?
    • IoT Services: Which Solution? >
      • Recommended IoT Solutions
      • Platform-Specific IoT Solutions
      • Other IoT Solutions
      • Not tested IoT Solutions
      • Notification Solutions
    • Get Date and Time from Internet with NTP
    • Fast and Easy WiFi Connection with QR-Code
  • Tools
    • How to Start?
    • Reference >
      • Asking for Help
      • Boards Pins Maps
      • Ruler
      • Boards and Plugs
      • I²C Logic Level Converter
      • Standards for Connectors
    • Training >
      • Texas Instruments Workshops
      • Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x
      • Embedded Systems - Shape The World: Microcontroller Input/Output — MOOC edX UTAustinX UT.6.10x
      • Embedded Systems - Shape The World: Multi-Threaded Interfacing — MOOC edX UTAustinX UT.6.20x
      • Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x
      • Systems Thinking with Texas Instruments Robotics System Learning Kit
    • Books >
      • Getting Started with the MSP430 LaunchPad
      • Getting Started with Arduino
      • Arduino Cookbook
    • IDE >
      • The Battle of IDEs
      • More Options
      • Assessing the Next Generation of IDEs
      • Tools for Documentation
    • Equipment >
      • Saleae Logic Analyser
      • Rigol DS1102E Oscilloscope
      • XDS110 Debug Probe with EnergyTrace​
      • Segger J-Link Programmer-Debugger
      • Nordic Power Profiler Kit II
  • Projects
    • Libraries >
      • Master I²C Software Library
      • Date and Time Library
      • highView Library Suite
      • Others Libraries
    • smartDevices >
      • I²C smartColours Smart Sensor
      • I²C smartRFID Smart Sensor
      • I²C smartLED Display
      • I²C smartControls Smart Device
      • I²C smartWiFi Smart Device
      • I²C smartBLE Smart Device
      • I²C smartNode Smart Device
    • IoT Projects >
      • Typie-Walkie with LoRa and E-Paper Screen
      • Typie-Walkie with E-Paper Screen
      • Remote e-Paper Pictures Panel
      • Remote e-Paper Messages Panel
      • Industrial IoT Project
      • Remote Contactless Temperature Monitor
      • Using Node-RED for IIoT
      • Low Power Home Network Weather Monitoring
      • Updated Low Power Home Network Weather Monitoring
      • Weather and Security Station with Blynk
      • SensorTag to Blynk Using Node-RED
      • Pervasive Reporting
    • AI Projects >
      • Colour Recognition with Neural Network
    • Other Projects >
      • Driving a Large E-Paper Display with a Compact Xiao RP2040
      • Low-Power E-Paper Weather Station
      • Portable Particulate​ Matter Monitor
      • FRAM-based E-Paper Screen Controller
      • General Purpose 3.5" Screen
      • Colour Recognition with Neural Network
      • A Low Power Weather Station
      • Digital Volt-Amp-Watt Meter
      • Mobile Measurement with LCD Display
      • Screen with SRAM for GUI
      • Volt-Amp-Watt-Meter for Grove
      • Multi-Touch Project with CapTIvate

Private IoT with Blynk on Local Server

Concerned about IoT privacy on the cloud? The Blynk solution offers an interesting option for improved security with a local server.

I tested it with the following configuration:
  • The LaunchPad TM4C123 programmed with Energia performs the data acquisition with the Grove BoosterPack and the same sensors as in the Weather and Security Station with Blynk. Connection to the server is done through WiFi with the CC3100 WiFi BoosterPack.
Picture
Picture
Picture
  • A BeagleBone White running on Debian hosts the server, with Blynk server release 0.8.0,
Picture
Picture
Picture
  • The Blynk version 1.0 RC7 for Android displays the data on a Slate 7 Plus tablet from Hewlett Packard running on Android 4.2.2 .
Picture
Picture
Picture

Configure the Server

The server is hosted in a BeagleBone, connected through Ethernet to a WiFi router. 

Blink provides a procedure for the Raspberry Pi but it works for the BeagleBone.

On the BeagleBone,​
  • First install Java 8 following this procedure
Code Editor

    
  • Second, create a Blynk folder and install the Blynk server

    
  • Third and finally, launch the server and note the IP address of the BeagleBone.
Code Editor

    

Open the Blynk Application

Connecting the Blynk application to the server was the tricky part. I wasn't able to connect to the server directly from the application. 

The procedure should have been:
  • On the main screen, select the server to connect to.
  • On the Server Settings, select Custom and enter the IP Address of the server.
  • Press OK to return to the main screen.
  • Press Create Account and enter the credentials. 


Picture
Picture
Picture
The credentials consist on an e-mail address with a @ and a . like in name@mail.com, and a non-empty password. 

Both are compulsory. Otherwise, the app displays a cryptic message.


This last part didn't work for me. I reported the bug and Blynk is working on an fix.

Picture
As an option, Blynk provides a client to emulate a smartphone, with handy commands to create and configure a client.
On the main computer, ​
  • First, check Java 8 is installed. If required, download and install it.

    
  • Second, download the server.

    
  • Third, launch the client. 192.168.1.26 is the IP address of the BeagleBone and 8443 is the default port of the Blynk server.

    
  • Finally, create the user, a dashboard and note the authentication string, like "1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p".

Note the client doesn't display any prompt.

    
Back to the tablet, 
  • Launch the Blynk application and select Log In.
  • Proceed as before for selecting the server and entering the IP address of the BeagleBone.
  • Type in the credentials name@mail.com and password, and press the Log In button.
  • Blynk grants access and shows the empty dashboard previously created with the client.
Picture
Picture

Some Common Issues with ​Local Server

Here are the solutions to two issues I faced with the Blynk server running on BeagleBone. 
​
​
  • Blynk server launch fails if one port is already used by another process. In my case, Apache was using port 8080. 
To solve this, create on the Blynk folder a file called server.properties and add​ the code on the right.
Code Editor

    
  • Connection to the admin page of the local Blynk local server in a fails.
The browsers refuse to connect. Firefox provides more information: The certificate is not trusted because it is self-signed and then asks to add an exception. If the browser suggests to add an exception, accept. Otherwise, generate a not self-signed certificate.

Adapt the Sketch

Just edit the Blynk.begin() and add the IP address of the server.
Picture
Picture

Conclusion

The Blynk sever offers many more options, as e-mail, debug log level, number of users, data storage, SSL certificates.

​Contrary to other options like Phant used by Sparkfun Data, there's no need to stop Apache.

The only difficult part was the configuration process, which is being fixed. The forum was of great help on solving this issue.

The Blynk server offers a very interesting solution for private cloud, from start to finish. 

Pros

  • Private cloud
  • Data retention

Cons

  • Connection to the local server from the Blynk application not as easy as expected

Wrap-Up

  • Very interesting solution for private cloud
  • Highly recommended

Links

  • Blynk server download and documentation
  • Blynk website
Picture
Posted: Jul 20, 2015 — Edited: Apr 13, 2016
Powered by Create your own unique website with customizable templates.