SlideShare una empresa de Scribd logo
1 de 30
Descargar para leer sin conexión
1
IoT - LoRa & Java on the Pi
CC IoT
Tim Ysewyn
Frederick Bousson
Kevin Van den Abeele
Guest speaker
Dave De Groote
2
Agenda
In today's session:
● News update
● Theoretical part
○ What is LoRa
○ Who is working on/with LoRa
● Practical part
○ Java on the raspberry pi
○ Getting started
○ A simple example
○ Alternatives to Java?
● Q&A
3
Can’t keep up? Don’t understand something?
4
News update
5
News update
Latest news from IoT land:
● Proximus LoRa beta has started in Belgium
○ More later in this session!
● Element14 launched the new Raspberry Pi Zero
○ Very very small!
○ Single core CPU & 512MB Ram
○ https://www.raspberrypi.org/products/pi-zero/
○ Costs only 5 dollar!
6
What is LoRa
7
What is LoRa
8
LoRa Technology (Long Range Low Power)
9
LoRa Technology (Long Range Low Power)
10
LoRa Devices
Base station
Any type is possible as long as it is connected with a LoRa chip
CO2, PIR, Humidity, Luminance, Temperature, Pressure, …
Sensor Types
banana for scale
11
LoRa Alliance
https://www.lora-alliance.org
12
Ordina At Proximus
- MyThings Builder
▪ Charts
▪ Managing containers of sensors
(Battery, temperature, luminance, …)
- MyThings Manager
▪ Online onboarding of sensors
▪ User management
- MyThings Scanner
▪ Customer can go into the field and
onboard sensors (scanning QR code of sensor)
13
Demo
14
LoRa in Belgium
15
LoRa in Belgium
Proximus has launched its LoRa Beta program in Belgium
● Available in 10 areas (More to come in 2016)
● Preview access to SEaaS (Sensor as a Service) API
● 6 months free access to the network
○ There however is a message quota
○ 15k messages in total => 84 upstream, 12 downstream /day
○ Very limited!
Proximus LoRa website:
http://www.proximus.be/nl/id_cl_iot/bedrijven-en-overheden/producten-en-diensten/internet-
en-netwerken/internet-of-things.html
Dev kits (we will probably get two or three):
http://www.allthingstalk.com/lora-rapid-development-kit
16
Setting up your Raspberry pi
17
Setting up your Raspberry pi
Useful links:
● Main Raspberry Pi website
○ Contains many resources and is a good place to start!
○ https://www.raspberrypi.org/
○ Has links and images for the most common OSs
● Magpi
○ Website (and magazine) focussing on the Raspberry Pi
○ https://www.raspberrypi.org/magpi/
○ Good source for extra information and articles
18
Setting up your Raspberry pi
● Insert SD card in your mac or windows pc/laptop.
● Open “cmdline.txt” and append the following at the end: “ip=169.254.0.2”
○ Make sure to have a space after the last item before adding the ip
○ Make sure NOT to add a newline after the ip!
○ Save the file and put the SD card back in the raspberry pi
● Connect your raspberry pi to the power and connect it directly to the computer via an
ethernet cable
● Wait a few minutes...
● Open an ssh client and connect to your raspberry pi
○ On mac: ssh pi@169.254.0.2 (the default password is raspberry)
● Execute the following command: “sudo raspi-config”
○ Have a look around in the settings and edit where required
○ Finish settings and reboot your pi (this will disconnect the ssh session)
● Download the latest FileZilla release
● Extract/install FileZilla
● Open FileZilla and connect to your raspberry pi
○ sftp://169.254.0.2 user:pi password:raspberry
19
Java on the Raspberry Pi
20
Java on the Raspberry Pi
Java runs pretty well on the Raspberry Pi (even more so on our model 2)
The Raspbian OS has Java 1.8u25 installed by default!
For updates of java:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download the ARMV6/V7 Hard float ABI or update via the built in package manager!
Capabilities:
● Most normal jars will run just fine (albeit slower and more memory limited)
● Can run complex UIs when using JavaFx
○ Has full hardware acceleration for UI rendering
○ Forget swing and awt!
○ The devoxx screens were running on a Pi with JavaFx UI
21
A Simple Example
A simple web server application:
● Clone the following repo: https://github.com/ordina-oraj/IoT.git
● Make sure you have gradle installed!
○ On osx: “brew install gradle”
○ Import the project in IntelliJ and when asked for the gradle folder:
“/usr/local/Cellar/gradle/2.1/libexec”
● Compile the application by running the gradle task “build”
● Open filezilla and connect to the Pi
● Copy the generated jar file (in /build/libs/) to a folder on your Pi
● Connect to the Pi via SSH and go to the directory where you placed the jar
● Run the following command: “java -jar NameOfYourJar.jar”
○ For remote debug prepend -jar in the command with: “-agentlib:
jdwp=transport=dt_socket,server=y,suspend=n,address=5005”
● On your host, open a browser and go to: http://169.254.0.2:8080/
○ If you see a welcome page, your setup was successful!
22
A simple example… Continued
This is up to you!
Take a look in the code, and implement something fancy for the “impress” me section.
A few ideas:
● A second more extensive rest service
● A websocket implementation?
○ Dare we say a chat client?
● A file upload
● A form to submit
● ...
23
Java and IO pins
24
Java and IO pins
The Pi has a bunch of IO pins. These can be used for several things.
Model A and B:
● 26 pins
● https://www.raspberrypi.org/documentation/usage/gpio/
● 17 of 26 pins are for GPIO
Model A+, B+, Zero and 2:
● 40 pins
● https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/
● 26 of 40 pins are for GPIO
These GPIO pins can be used to collect data from sensors, to drive servos, LEDs and other
peripherals.
http://wiringpi.com/pins/
25
Java and IO pins… Continued
26
Java and IO pins… Continued
To use the GPIO pins from within Java an extra library is needed, as there is no native
support within Java.
This is where PI4J comes in. It is a easy to use library to control the GPIO pins:
Installation is easy and is documented on http://pi4j.com/install.html
Usage is also not that difficult: http://pi4j.com/usage.html
The project on our github contains the pi4j library and some example code to get you started.
=> DEMO TIME!
27
Alternatives?
28
Alternatives?
What about non Java languages on the Pi?
● Python
● C / C++
● Javascript (via node.js or io.js)
● …
Node.js:
Node is very simple to setup and use. It makes use of Google’s V8 javascript engine and is
very fast.
Node itself is single threaded but dispatches operations like IO the separate threads.
It can be clustered and allowed to run on multiple threads via more node workers.
Program for Node run in Javascript and thus required no manual compilation before running.
This makes it very handy for rapid development.
More about Node.js in our next session! ;)
29
Q&A
30
Until next time

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
IPv6: A Digital Game Changer
IPv6: A Digital Game ChangerIPv6: A Digital Game Changer
IPv6: A Digital Game Changer
 
Raspberry Pi and Amateur Radio
Raspberry Pi and Amateur RadioRaspberry Pi and Amateur Radio
Raspberry Pi and Amateur Radio
 
Low Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PILow Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PI
 
Building the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry PiBuilding the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry Pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Python in raspberry pi
Python in raspberry piPython in raspberry pi
Python in raspberry pi
 
Presentation on Raspberry pi
Presentation on Raspberry piPresentation on Raspberry pi
Presentation on Raspberry pi
 
Pi Is For Python
Pi Is For PythonPi Is For Python
Pi Is For Python
 
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
 
Raspberry Pi Using Python
Raspberry Pi Using PythonRaspberry Pi Using Python
Raspberry Pi Using Python
 
Interfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the WorldInterfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the World
 
Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.
 
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending MachineJava Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
 
Gettiing Started with IoT using Raspberry Pi and Python
Gettiing Started with IoT using Raspberry Pi and PythonGettiing Started with IoT using Raspberry Pi and Python
Gettiing Started with IoT using Raspberry Pi and Python
 
Raspberry Pi and Amateur Radio - 2020 update
Raspberry Pi and Amateur Radio - 2020 updateRaspberry Pi and Amateur Radio - 2020 update
Raspberry Pi and Amateur Radio - 2020 update
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Raspberry pi intro.
Raspberry pi intro.Raspberry pi intro.
Raspberry pi intro.
 
Raspberry Pi - HW/SW Application Development
Raspberry Pi - HW/SW Application DevelopmentRaspberry Pi - HW/SW Application Development
Raspberry Pi - HW/SW Application Development
 
Project Humix overview
Project Humix overviewProject Humix overview
Project Humix overview
 

Destacado

AuthentiThings: The Pitfalls and Promises of Authentication in the IoT
AuthentiThings: The Pitfalls and Promises of Authentication in the IoTAuthentiThings: The Pitfalls and Promises of Authentication in the IoT
AuthentiThings: The Pitfalls and Promises of Authentication in the IoT
TransUnion
 

Destacado (20)

Intro Lora - Makers.ID Meetup
Intro Lora - Makers.ID MeetupIntro Lora - Makers.ID Meetup
Intro Lora - Makers.ID Meetup
 
LoRa and NB-IoT
LoRa and NB-IoT LoRa and NB-IoT
LoRa and NB-IoT
 
LPWAN Technologies for Internet of Things (IoT) and M2M Scenarios
LPWAN Technologies for Internet of Things (IoT) and M2M ScenariosLPWAN Technologies for Internet of Things (IoT) and M2M Scenarios
LPWAN Technologies for Internet of Things (IoT) and M2M Scenarios
 
LoRa WAN - Connecting the Internet of Things
LoRa WAN - Connecting the Internet of ThingsLoRa WAN - Connecting the Internet of Things
LoRa WAN - Connecting the Internet of Things
 
Understand LPWA tetchnologies (Sigfox and LoRa)
Understand LPWA tetchnologies (Sigfox and LoRa)Understand LPWA tetchnologies (Sigfox and LoRa)
Understand LPWA tetchnologies (Sigfox and LoRa)
 
LPWAN for IoT
LPWAN for IoTLPWAN for IoT
LPWAN for IoT
 
Webnesday - Introduction to LoRaWAN
Webnesday - Introduction to LoRaWANWebnesday - Introduction to LoRaWAN
Webnesday - Introduction to LoRaWAN
 
An Overview of LoRA, Sigfox, and IEEE 802.11ah
An Overview of LoRA, Sigfox, and IEEE 802.11ahAn Overview of LoRA, Sigfox, and IEEE 802.11ah
An Overview of LoRA, Sigfox, and IEEE 802.11ah
 
Introduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & WebIntroduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & Web
 
Project humix overview - For Raspberry pi community meetup
Project humix overview - For  Raspberry pi  community meetupProject humix overview - For  Raspberry pi  community meetup
Project humix overview - For Raspberry pi community meetup
 
台灣樹莓派 2016/12/26 #17 站在Nas的中心呼喊物聯網 QNAP QIoT
台灣樹莓派 2016/12/26 #17 站在Nas的中心呼喊物聯網 QNAP QIoT台灣樹莓派 2016/12/26 #17 站在Nas的中心呼喊物聯網 QNAP QIoT
台灣樹莓派 2016/12/26 #17 站在Nas的中心呼喊物聯網 QNAP QIoT
 
Unit Testing in AngularJS - CC FE & UX
Unit Testing in AngularJS -  CC FE & UXUnit Testing in AngularJS -  CC FE & UX
Unit Testing in AngularJS - CC FE & UX
 
Big data elasticsearch practical
Big data  elasticsearch practicalBig data  elasticsearch practical
Big data elasticsearch practical
 
thesis
thesisthesis
thesis
 
Frontend Build Tools - CC FE & UX
Frontend Build Tools - CC FE & UXFrontend Build Tools - CC FE & UX
Frontend Build Tools - CC FE & UX
 
Integration testing - A&BP CC
Integration testing - A&BP CCIntegration testing - A&BP CC
Integration testing - A&BP CC
 
AuthentiThings: The Pitfalls and Promises of Authentication in the IoT
AuthentiThings: The Pitfalls and Promises of Authentication in the IoTAuthentiThings: The Pitfalls and Promises of Authentication in the IoT
AuthentiThings: The Pitfalls and Promises of Authentication in the IoT
 
6LoWPAN: An open IoT Networking Protocol
6LoWPAN: An open IoT Networking Protocol6LoWPAN: An open IoT Networking Protocol
6LoWPAN: An open IoT Networking Protocol
 
IoT SMART BUS WITH LoRa
IoT SMART BUS WITH LoRaIoT SMART BUS WITH LoRa
IoT SMART BUS WITH LoRa
 
20161227 Taipei Smart IOT Innovation Lab workshop
20161227 Taipei Smart IOT Innovation Lab workshop20161227 Taipei Smart IOT Innovation Lab workshop
20161227 Taipei Smart IOT Innovation Lab workshop
 

Similar a IoT: LoRa and Java on the PI

Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab file
Nitesh Dubey
 

Similar a IoT: LoRa and Java on the PI (20)

IoT Session Thomas More
IoT Session Thomas MoreIoT Session Thomas More
IoT Session Thomas More
 
Cc internet of things @ Thomas More
Cc internet of things @ Thomas MoreCc internet of things @ Thomas More
Cc internet of things @ Thomas More
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
Bringing Tizen to a Raspberry Pi 2 Near You
Bringing Tizen to a Raspberry Pi 2 Near YouBringing Tizen to a Raspberry Pi 2 Near You
Bringing Tizen to a Raspberry Pi 2 Near You
 
SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...
SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...
SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Introduction to the rapid prototyping with python and linux for embedded systems
Introduction to the rapid prototyping with python and linux for embedded systemsIntroduction to the rapid prototyping with python and linux for embedded systems
Introduction to the rapid prototyping with python and linux for embedded systems
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
Introduction to iOS Penetration Testing
Introduction to iOS Penetration TestingIntroduction to iOS Penetration Testing
Introduction to iOS Penetration Testing
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
PiFlash: Linux utility to flash SD cards for Raspberry Pi computers
PiFlash: Linux utility to flash SD cards for Raspberry Pi computersPiFlash: Linux utility to flash SD cards for Raspberry Pi computers
PiFlash: Linux utility to flash SD cards for Raspberry Pi computers
 
Up and running with Raspberry Pi
Up and running with Raspberry PiUp and running with Raspberry Pi
Up and running with Raspberry Pi
 
IoT Prototyping using BBB and Debian
IoT Prototyping using BBB and DebianIoT Prototyping using BBB and Debian
IoT Prototyping using BBB and Debian
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
IoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxIoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptx
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab file
 
Iot lab manual new
Iot lab manual newIot lab manual new
Iot lab manual new
 
Raspberry pi overview
Raspberry pi overview Raspberry pi overview
Raspberry pi overview
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
 

Más de JWORKS powered by Ordina

Java 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CCJava 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CC
JWORKS powered by Ordina
 

Más de JWORKS powered by Ordina (20)

Lagom in Practice
Lagom in PracticeLagom in Practice
Lagom in Practice
 
Netflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLandNetflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLand
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
An introduction to Cloud Foundry
An introduction to Cloud FoundryAn introduction to Cloud Foundry
An introduction to Cloud Foundry
 
Cc internet of things LoRa and IoT - Innovation Enablers
Cc internet of things   LoRa and IoT - Innovation Enablers Cc internet of things   LoRa and IoT - Innovation Enablers
Cc internet of things LoRa and IoT - Innovation Enablers
 
Mongodb @ vrt
Mongodb @ vrtMongodb @ vrt
Mongodb @ vrt
 
Mongo db intro.pptx
Mongo db intro.pptxMongo db intro.pptx
Mongo db intro.pptx
 
Big data document and graph d bs - couch-db and orientdb
Big data  document and graph d bs - couch-db and orientdbBig data  document and graph d bs - couch-db and orientdb
Big data document and graph d bs - couch-db and orientdb
 
Big data key-value and column stores redis - cassandra
Big data  key-value and column stores redis - cassandraBig data  key-value and column stores redis - cassandra
Big data key-value and column stores redis - cassandra
 
Hadoop bootcamp getting started
Hadoop bootcamp getting startedHadoop bootcamp getting started
Hadoop bootcamp getting started
 
Intro to cassandra
Intro to cassandraIntro to cassandra
Intro to cassandra
 
Android wear - CC Mobile
Android wear - CC MobileAndroid wear - CC Mobile
Android wear - CC Mobile
 
Clean Code - A&BP CC
Clean Code - A&BP CCClean Code - A&BP CC
Clean Code - A&BP CC
 
Unit testing - A&BP CC
Unit testing - A&BP CCUnit testing - A&BP CC
Unit testing - A&BP CC
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
 
Spring 4 - A&BP CC
Spring 4 - A&BP CCSpring 4 - A&BP CC
Spring 4 - A&BP CC
 
Android secure offline storage - CC Mobile
Android secure offline storage - CC MobileAndroid secure offline storage - CC Mobile
Android secure offline storage - CC Mobile
 
Meteor - JOIN 2015
Meteor - JOIN 2015Meteor - JOIN 2015
Meteor - JOIN 2015
 
Batch Processing - A&BP CC
Batch Processing - A&BP CCBatch Processing - A&BP CC
Batch Processing - A&BP CC
 
Java 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CCJava 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CC
 

Último

VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
nirzagarg
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
imonikaupta
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 

Último (20)

VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
 
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
 
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 

IoT: LoRa and Java on the PI

  • 1. 1 IoT - LoRa & Java on the Pi CC IoT Tim Ysewyn Frederick Bousson Kevin Van den Abeele Guest speaker Dave De Groote
  • 2. 2 Agenda In today's session: ● News update ● Theoretical part ○ What is LoRa ○ Who is working on/with LoRa ● Practical part ○ Java on the raspberry pi ○ Getting started ○ A simple example ○ Alternatives to Java? ● Q&A
  • 3. 3 Can’t keep up? Don’t understand something?
  • 5. 5 News update Latest news from IoT land: ● Proximus LoRa beta has started in Belgium ○ More later in this session! ● Element14 launched the new Raspberry Pi Zero ○ Very very small! ○ Single core CPU & 512MB Ram ○ https://www.raspberrypi.org/products/pi-zero/ ○ Costs only 5 dollar!
  • 8. 8 LoRa Technology (Long Range Low Power)
  • 9. 9 LoRa Technology (Long Range Low Power)
  • 10. 10 LoRa Devices Base station Any type is possible as long as it is connected with a LoRa chip CO2, PIR, Humidity, Luminance, Temperature, Pressure, … Sensor Types banana for scale
  • 12. 12 Ordina At Proximus - MyThings Builder ▪ Charts ▪ Managing containers of sensors (Battery, temperature, luminance, …) - MyThings Manager ▪ Online onboarding of sensors ▪ User management - MyThings Scanner ▪ Customer can go into the field and onboard sensors (scanning QR code of sensor)
  • 15. 15 LoRa in Belgium Proximus has launched its LoRa Beta program in Belgium ● Available in 10 areas (More to come in 2016) ● Preview access to SEaaS (Sensor as a Service) API ● 6 months free access to the network ○ There however is a message quota ○ 15k messages in total => 84 upstream, 12 downstream /day ○ Very limited! Proximus LoRa website: http://www.proximus.be/nl/id_cl_iot/bedrijven-en-overheden/producten-en-diensten/internet- en-netwerken/internet-of-things.html Dev kits (we will probably get two or three): http://www.allthingstalk.com/lora-rapid-development-kit
  • 16. 16 Setting up your Raspberry pi
  • 17. 17 Setting up your Raspberry pi Useful links: ● Main Raspberry Pi website ○ Contains many resources and is a good place to start! ○ https://www.raspberrypi.org/ ○ Has links and images for the most common OSs ● Magpi ○ Website (and magazine) focussing on the Raspberry Pi ○ https://www.raspberrypi.org/magpi/ ○ Good source for extra information and articles
  • 18. 18 Setting up your Raspberry pi ● Insert SD card in your mac or windows pc/laptop. ● Open “cmdline.txt” and append the following at the end: “ip=169.254.0.2” ○ Make sure to have a space after the last item before adding the ip ○ Make sure NOT to add a newline after the ip! ○ Save the file and put the SD card back in the raspberry pi ● Connect your raspberry pi to the power and connect it directly to the computer via an ethernet cable ● Wait a few minutes... ● Open an ssh client and connect to your raspberry pi ○ On mac: ssh pi@169.254.0.2 (the default password is raspberry) ● Execute the following command: “sudo raspi-config” ○ Have a look around in the settings and edit where required ○ Finish settings and reboot your pi (this will disconnect the ssh session) ● Download the latest FileZilla release ● Extract/install FileZilla ● Open FileZilla and connect to your raspberry pi ○ sftp://169.254.0.2 user:pi password:raspberry
  • 19. 19 Java on the Raspberry Pi
  • 20. 20 Java on the Raspberry Pi Java runs pretty well on the Raspberry Pi (even more so on our model 2) The Raspbian OS has Java 1.8u25 installed by default! For updates of java: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Download the ARMV6/V7 Hard float ABI or update via the built in package manager! Capabilities: ● Most normal jars will run just fine (albeit slower and more memory limited) ● Can run complex UIs when using JavaFx ○ Has full hardware acceleration for UI rendering ○ Forget swing and awt! ○ The devoxx screens were running on a Pi with JavaFx UI
  • 21. 21 A Simple Example A simple web server application: ● Clone the following repo: https://github.com/ordina-oraj/IoT.git ● Make sure you have gradle installed! ○ On osx: “brew install gradle” ○ Import the project in IntelliJ and when asked for the gradle folder: “/usr/local/Cellar/gradle/2.1/libexec” ● Compile the application by running the gradle task “build” ● Open filezilla and connect to the Pi ● Copy the generated jar file (in /build/libs/) to a folder on your Pi ● Connect to the Pi via SSH and go to the directory where you placed the jar ● Run the following command: “java -jar NameOfYourJar.jar” ○ For remote debug prepend -jar in the command with: “-agentlib: jdwp=transport=dt_socket,server=y,suspend=n,address=5005” ● On your host, open a browser and go to: http://169.254.0.2:8080/ ○ If you see a welcome page, your setup was successful!
  • 22. 22 A simple example… Continued This is up to you! Take a look in the code, and implement something fancy for the “impress” me section. A few ideas: ● A second more extensive rest service ● A websocket implementation? ○ Dare we say a chat client? ● A file upload ● A form to submit ● ...
  • 24. 24 Java and IO pins The Pi has a bunch of IO pins. These can be used for several things. Model A and B: ● 26 pins ● https://www.raspberrypi.org/documentation/usage/gpio/ ● 17 of 26 pins are for GPIO Model A+, B+, Zero and 2: ● 40 pins ● https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/ ● 26 of 40 pins are for GPIO These GPIO pins can be used to collect data from sensors, to drive servos, LEDs and other peripherals. http://wiringpi.com/pins/
  • 25. 25 Java and IO pins… Continued
  • 26. 26 Java and IO pins… Continued To use the GPIO pins from within Java an extra library is needed, as there is no native support within Java. This is where PI4J comes in. It is a easy to use library to control the GPIO pins: Installation is easy and is documented on http://pi4j.com/install.html Usage is also not that difficult: http://pi4j.com/usage.html The project on our github contains the pi4j library and some example code to get you started. => DEMO TIME!
  • 28. 28 Alternatives? What about non Java languages on the Pi? ● Python ● C / C++ ● Javascript (via node.js or io.js) ● … Node.js: Node is very simple to setup and use. It makes use of Google’s V8 javascript engine and is very fast. Node itself is single threaded but dispatches operations like IO the separate threads. It can be clustered and allowed to run on multiple threads via more node workers. Program for Node run in Javascript and thus required no manual compilation before running. This makes it very handy for rapid development. More about Node.js in our next session! ;)