O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Sigfox x Arduino Workshop

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio

Confira estes a seguir

1 de 56 Anúncio

Sigfox x Arduino Workshop

Baixar para ler offline

Colloque Enseignants IUT GEII (Génie Electronique et Informatique Industrielle)
Premiers pas sur le réseau Sigfox
* Utilisation d'une carte Arduino MKRFOX 1200 pour envoyer de premiers messages sur le réseau
* Utilisation d'une plateforme IoT pour recevoir et visualiser les données

Colloque Enseignants IUT GEII (Génie Electronique et Informatique Industrielle)
Premiers pas sur le réseau Sigfox
* Utilisation d'une carte Arduino MKRFOX 1200 pour envoyer de premiers messages sur le réseau
* Utilisation d'une plateforme IoT pour recevoir et visualiser les données

Anúncio
Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Semelhante a Sigfox x Arduino Workshop (20)

Anúncio

Mais recentes (20)

Anúncio

Sigfox x Arduino Workshop

  1. 1. Sigfox workshop Colloque Pédagogique GEII - Commission IoT Longwy, June 23, 2019
  2. 2. About me Nicolas Lesconnec Head of Technology Adoption @Sigfox Email : nicolas.lesconnec@sigfox.com
  3. 3. What is Sigfox ?
  4. 4. CONFIDENTIAL The first and global 0G Network 4 IoT Bringing the 4th industrial revolution to all sectors BACK-UP BROADBAND Secondary connectivity & additional services for systems using broadband networks 0G Cost efficient Low Power Global Network
  5. 5. Sigfox architecture x
  6. 6. They turn into actions and insights through the customer IT They can be analyzed on Big Data analytics platforms Devices integrate a connectivity module Partners with specific applications for your business Interoperability with top-tier Big Data platforms Ecosystem of certified vendors Royalty free Standard and easy access Global network with high capacity Small messages optimized for sensor data Devices send data Messages are transmitted through the sigfox network They are stored in the sigfox cloud Sigfox architecture 6
  7. 7. High capacity
  8. 8. Small messages 1 % duty cycle for Objects Up to 6 messages/hour UPLINK 12-Byte payload - Sensor data - Event status - GPS fix - Application data DOWNLINK 8-Byte payload - Action / actuator trigger - Device management - Application parameter setting 10 % duty cycle for Base Stations 4 guaranteed downlink msg/day SIGFOX CLOUD
  9. 9. High Energy Efficiency Designed to maximize energy efficiency No Pairing 10 to 50mA during a few seconds (25mW; 14dB) depending on the chip and the size of the payload Idle consumption: negligible Idle state Communication state 6 nA 30 mA Current Time ~6 sec 99.x% of the time ✓ ✓ ✓ ✓
  10. 10. Security
  11. 11. Let’s play !
  12. 12. Platforms we will use • Sigfox Cloud : https://backend.sigfox.com • Online Arduino IDE : https://create.arduino.cc
  13. 13. Useful Resources • Slack Community : https://sigfoxbuilders.herokuapp.com/ • Sigfox Build (documentation): http://build.sigfox.com • Arduino MKRFOX: https://www.arduino.cc/en/Main.ArduinoBoardMKRFox1200
  14. 14. Getting started with the Arduino MKRFOX
  15. 15. Using the Arduino Online IDE Create an account on https://create.arduino.cc Follow the instructions to install the browser plugin
  16. 16. Board will show up in the menu
  17. 17. Retrieve your board information Copy the code from http://github.com/sigfox/mkrfox-init
  18. 18. Upload to your board & open the monitor
  19. 19. Online onboarding https://buy.sigfox.com/activate Country: France Enter your device credentials Enter your personal information
  20. 20. Find your way in the Sigfox Backend The Sigfox Cloud is organized around 3 concepts : • Group : Contract & User rights • Device Type : Family of devices sharing the same properties • Device : A unique device
  21. 21. List of your device types
  22. 22. Devices associated to a device type
  23. 23. Device information
  24. 24. Hello World
  25. 25. Hello World Copy/paste from Github : • https://github.com/nicolsc/mkrfox-hello-world Upload to your board using the Arduino Editor or IDE
  26. 26. Message received ? http://backend.sigfox.com Navigate to the devices menu in the top bar Click on the ID of your device Enter the messages menu from the left navigation column
  27. 27. Check device messages
  28. 28. They turn into actions and insights through the customer IT They can be analyzed on Big Data analytics platforms Partners with specific applications for your business Interoperability with top-tier Big Data platforms Standard and easy access They are stored in the sigfox cloud Get the data (pull / push) 44
  29. 29. Callback setup Device Type menu Click on your device type name Enter the Callbacks menu Select new default callback
  30. 30. Callback status In the Devices > Messages panel, you have a indicator of the callback status (an arrow) Black : in progress Green : Callback OK Red : Callback KO (at least one of the callbacks failed) Click the arrow to display details.
  31. 31. Get real world data https://github.com/nicolsc/mkrfox-send- internal-temperature
  32. 32. Data visualisation
  33. 33. Demo platform Register on : https://try.iotagency.sigfox.com Create a new callback following the API documentation Play around !
  34. 34. Geolocation
  35. 35. Geoloc callback Simply create a SERVICE > GEOLOC callback, and receive latitude + longitude + accuracy
  36. 36. Geolocation Callback Create a new Service > Geoloc callback Use following URL to center the map: https://maps.googleapis.com/m aps/api/staticmap?center={lat},{ lng}&zoom=13&scale=1&size=6 00x300&maptype=roadmap&for mat=png&visual_refresh=true
  37. 37. Downlink Callback
  38. 38. Bi-directional communication Requested by the device to the network Static downlink message size of 8 bytes Agreed frequency of downlink ✓ ✓ ✓
  39. 39. Downlink Callback setup Automatic callback: Device Type > Informations > Edit Set Downlink mode to DIRECT Enter an 8 bytes value
  40. 40. Sample code Simple change SigFox.endPacket(); to SigFox.endPacket(true); This will request a response from the network
  41. 41. Handle the response https://github.com/nicolsc/mkrfox-downlink void loop(){ while (SigFox.available()) { Serial.print("0x"); Serial.println(SigFox.read(), HEX); } }
  42. 42. Frame parsing
  43. 43. Sigfox payload display feature Using a « simple » grammar, you can ask Sigfox to parse your incoming data This is done at the device type level
  44. 44. Parsing the Hello World sample Modify the sketch to send 3 values in a same message short valA = 7700; short valB = 128; float valC = 654.32; SigFox.beginPacket(); SigFox.write(valA); SigFox.write(valB); SigFox.write(valC); SigFox.endPacket();
  45. 45. Set a custom grammar valA & valB are shorts : 16 bits valC is a 32 bits float valA::uint:16:little-endian valB::uint:16:little-endian valC::float:32:little-endian
  46. 46. Thank you ! nicolas.lesconnec@sigfox.com

×