This lecture will discuss and demonstrate how SQL Anywhere can be used in Internet of Things scenarios. Learn how to leverage the full power of SQL Anywhere in applications that run on single board computers like the Raspberry Pi. Topics discussed will include an overview of IoT, deployment and setup of SQL Anywhere on single board computers, and an example application to demonstrate the powerful and flexible applications that can be run anywhere and synchronize data back to an enterprise data source such as Hana Cloud Platform.
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
SQL Anywhere and the Internet of Things
1. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
SQL Anywhere and the Internet
of Things
Jason Hinsperger
Product Manager, SAP
2. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
SAP and the Internet of Things for Business
Edge Computing in IoT
Single Board Computers
SAP SQL Anywhere
3. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Networked Economy: The next economic revolution
1850
Industrial
economy
2020
Networked
economy
1990
Internet
economy
IT
economy
1970
$0.36T
$12.10T
All figures are in Trillions; 1990 international dollars; Source: Department of Economics, UC Berkeley, BAIN 8 MacroTrends Brief.
$27.50T
$90.0T
Gross
world
product
4. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
3. Software
► Data management of IoT that creates
new varieties of data as well as greater
data volume.
► Goal is Big Data Analytics &
Predictability
22
Internet of Things
Sweet spot across Mega Trends
1. Semi-Conductor
► Price of key communication,
computing, and sensing components
falling fast!
► Bluetooth chips below US$1,
application processors at the US$2
level, gyroscopes and
accelerometers at the US$1 mark
Mainframe
Mini
Computer
PC
Desktop Internet
Mobile Internet
1 Billion+ Units / Users
Billions of Units
Tens of Billions of
Units
Devices/Users
100MM+ Units
10MM+ Units
1 MM+ Units
1960 1970 1980 1990 2000 2010 2020 2030
Internet of
Things
2. Telecom
► Wired and wireless networks will drive
growth as penetration of smartphones,
tablets, and home broadband reaches
maturity
► Need for broader and deeper wireless
coverage around the world
Telecom: Metcalfe’s
Law
Semi-conductor:
Moore’s Law
Software: Big Data
Analytics
Source: Morgan Stanley Blue Paper – The “internet of Things” is now, Apr 2014
5. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Connect with billions of internet-enabled things to
gain new insights
..by combining business data with intelligent analysis of
new signals from devices, networks & more
6. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Transform the way you make decisions and
take action
..by executing operational processes through predictive and
automated response all the way to the edge of the network
7. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Reimagine your customer’s experience
..by empowering innovative new business models, value-
added services and customer responsive products
8. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Powering the transformation
Connect
Transform
Re-imagine
Maintain
Track & comply
Optimally utilize
Remotely operate
Monetize usage
Extend new service
9. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
SAP and the Internet of Things For Business
Edge Computing in IoT
Single Board Computers
SAP SQL Anywhere
10. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Deconstructing the Internet of Things
SENSOR
THING
CONNECTOR
TRANSPORT
10’s of Billions of Units
► New Sensor arrays exploiting new
connectivity protocols
► High Value assets requiring remote
management and big data predictive
solutions
► Increasing need to standardize across
industrial internet and after sales
device information
Private and Public Networks
► Highly pervasive Telecom Networks
encompassing enterprise and
consumer communication spaces
► Emerging protocols and standards for
existing and IP aware things
► New class of adapters to generalize
connectivity across protocols and
device management services
High-performance Compute
Infrastructure
► Elastic Store capable of PB data
volumes of time and geo tagged data.
► Device Data models for Enterprise
Information Integration and repeatable
predictive solutions.
► Real-time and streaming analytics.
11. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
HANA and “Internet of Things”
INTERNET
SENSOR
THING
collect… …send…
…analyze
12. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
CLIENT/
SERVER
HANA and “Internet of Things”
INTERNET
SENSOR
THING
COMPLEX
EVENT
PROCESSING
STREAMING
collect… …stream…
…analyze
13. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
RADIO OR
BLUETOOTH
CLIENT/
SERVER
HANA and “Internet of Things”
INTERNET
SENSOR
THING STREAMING
COMPLEX
EVENT
PROCESSING
BASE
STATION
collect… …aggregate locally… …stream… …analyze
globally
14. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
INTERNET
RADIO OR
BLUETOOTH
CLIENT/
SERVER
HANA and “Internet of Things”
SENSOR
THING
SYNCHRONIZATION
MOBILINK
SYNC
SERVER
BASE
STATION
…configure… …synchronize… …reference
collect… …aggregate and act locally… …synchronize… …analyze
globally
15. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
WIFI
RADIO OR
BLUETOOTH
CLIENT/
SERVER
HANA and “Internet of Things”
INTERNET
SENSOR
THING
SYNCHRONIZING
DATA
BASE
STATION
SITE
SERVER MOBILINK
SYNC
SERVER
CLIENT/SERVER
collect… …aggregate locally… …act locally… …synchronize… …analyze
globally
…configure… …act locally… …synchronize… …reference
16. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Neptune Technology Group (NTG)
CHALLENGE
To help customers replace, streamline and standardize their electronic
and paper-based meter reading systems.
SOLUTION
SQL Anywhere
RESULTS
• Enables zero database crashes on handheld devices with “Lightning
fast" synchronization of handheld data with back-end systems
• Eliminates service center PCs, allowing a centralized management
structure, which enables multiple meter reading sites to be managed
by fewer customer service managers
SQL Anywhere provides constant system uptime
We selected SQL
Anywhere for its reliability,
data integrity, performance,
synchronization capability
and the financial stability of
the company. The database
is perfect for small to mid-
size implementations and
even scales up to large
deployments...SQL
Anywhere Studio was a
terrific choice for our
customers and us.
Jon Greisz
Director fo System Technology
Neptune Technology Group
17. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
SAP and the Internet of Things For Business
Edge Computing in IoT
Single Board Computers
SAP SQL Anywhere
18. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Single Board Computers
Complete computer on a single circuit board
Originally created for education and custom embedded systems
Standardization pushed costs way down
Opened the door for new uses in many different areas
There are lots of different commercial options
Raspberry Pi, BeagleBone, Olimex, Galileo
19. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Raspberry Pi Model B+
40 pin GPIO
4 USB Ports
Ethernet
HDMIPower
Micro SD
Composite A/V Jack
Camera
connector
Display connector
ARM 11CPU
512MB RAM
20. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Olimex A20
Price: $90
Specs
A20 Cortex-A7 dual-core CPU with Dual-core Mali 400
GPU
1GB DDR3 RAM memory
4GB NAND FLASH memory
Android already loaded on the NAND
SATA connector with 5V SATA power jack
Built-in FullHD support (1080p)
100MBit native Ethernet
… and much more
Typical power consumption: 5W (10V@0.5A)
21. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
INTERNET
RADIO OR
BLUETOOTH
CLIENT/
SERVER
Recall the IoT Data Flow
SENSOR
THING
SYNCHRONIZATION
MOBILINK
SYNC
SERVER
BASE
STATION
…configure… …synchronize… …reference
collect… …aggregate and act locally… …synchronize… …analyze
globally
Linux/ARM single-board computer
+ SAP SQL Anywhere
22. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Porting SQL Anywhere to Raspberry Pi
ARM port based on SQL Anywhere for Linux and an experimental port to BB10
Straightforward compile, except for assembly instructions for atomic operations
Minimum processor needed for SQL Anywhere is the Armv6K instruction set.
The toolset needed to build Raspberry Pi can be downloaded from
https://github.com/raspberrypi/
No asynchronous I/O available
23. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
SQLA Deployment
Copy files to the board storage
Copy install to board and run it
That’s it!
25. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Data acquisition: streaming and
synchronizing are complements
Streaming
Optimized for real-time delivery
No local aggregation
No persistence in case of network failures
Synchronizing
Aggregate at collection point
Site-level aggregation
Data persistence for network failures
Value
Age
Value
Age
26. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
SQL Anywhere Components
SAP HANA
MobiLink
Synchronization
Server
Relay
Server
Sensors
Base
Station
SQL
Anywhere
27. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
SQL Anywhere Platform Support
MobiLink
iPhone/iPad
BlackBerry
Android
Windows Mobile
Laptop
Server
SQL Server
Enterprise Systems
Oracle
Sybase
MySQL
IBM DB2
SAP HANA
28. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
The Synchronization Process
MobiLink
RDBMSApp
UltraLite
1. Upload
2. Acknowledge
3. Download
29. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Synchronization scripts
Event-based model:
a sequence of events for each request
Scripts for each event:
often simple SQL statements
download script: SELECT col1,… FROM T …
upload_insert: INSERT INTO T …
…
Built-in parameters:
user_ID, database_ID, last_timestamp
Extensive customization: over 60 separate events
30. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Synchronization to HCP
HCP Setup
HCP MobiLink Setup
32. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
INTERNET
RADIO OR
BLUETOOTH
CLIENT/
SERVER
Recall the IoT Data Flow
SENSOR
THING
SYNCHRONIZATION
MOBILINK
SYNC
SERVER
BASE
STATION
…configure… …synchronize… …reference
collect… …aggregate and act locally… …synchronize… …analyze
globally
Linux/ARM single-board computer
+ SAP SQL Anywhere
Temperature sensor
HCP