fun seminar
play

FUN Seminar Salvatore GUZZO BONIFACIO 10 March 2015 SUMMARY 1. - PowerPoint PPT Presentation

FUN Seminar Salvatore GUZZO BONIFACIO 10 March 2015 SUMMARY 1. Etinode Drivers 2. Contiki Porting For Etinode 3. Periodic Send Command 4. 802.15.4 USRP Receiver 5. VITAL Project 1 Etinode Drivers 10 March 2015 STM Driver (Accelerometer +


  1. FUN Seminar Salvatore GUZZO BONIFACIO 10 March 2015

  2. SUMMARY 1. Etinode Drivers 2. Contiki Porting For Etinode 3. Periodic Send Command 4. 802.15.4 USRP Receiver 5. VITAL Project

  3. 1 Etinode Drivers 10 March 2015

  4. STM Driver (Accelerometer + Gyroscope) stm.h stm-io.h <<include>> <<include>> <<include>> <<include>> LIS331.h LIS331-io.h L3G2400D.h L3G4200D-io.h <<include>> <<include>> <<include>> <<include>> LIS331.c L3G4200D.c

  5. STM common functions The primary level for STM driver defines a set of constants and basic functions that are common for both sensors in the Etinode. They are: ● Init ● IO_init ● ReadBytes ● WriteBytes

  6. L3G4200D (Gyroscope) Main Functions: ● init ● setup ● read_raw_data ● raw_to_dps ● register_callback ● set_threshold_interrupt ● set_watermark_level ● get_fifo_level Examples: ● raw_data ● gyro_watermark ● gyro_threshold

  7. LIS331 (Accelerometer) Main Functions: ● init ● setup ● read_raw_data ● raw_to_milliG ● register_callback ● set_freefall_interrupt ● set_inertial_wakeup_interrupt Examples: ● raw_data ● inertial ● freefall

  8. 2 Contiki Porting For Etinode 10 March 2015

  9. ETINODE Component Description MCU 16-bit Ultra-Low-Power – MSP430F1611 Light Sensor – TSL2550 Barometer/Temperature – MS5611-01 sensors Gyroscope – L3G4200D Accelerometer – LIS331DLH radio 2.4 GHz – CC2520 communication external memory 1MB external flash memory – M25P80 LEDs green, red, blue EEPROM serial allowing unique identifier – DS2411 number

  10. Contiki Directory Structure apps/ – architecture independent applications One subdirectory per application core/ – system source code Subdirectories for different parts of the system cpu/ – CPU-specific code One subdirectory per CPU doc/ – documentation examples/ – example project directories Subdirectories with project platform/ – platform-specific code One subdirectory per platform tools/ – software for building Contiki, sending files

  11. Main involved files (1/2) platform-conf.h : ● platform CPU ● clock speed ● LEDs ● SPI bus pins and main functions ● Radio chip pins and main functions contiki-conf.h : ● Netstack drivers ● Energest module parameters ● UIP parameters ● SICSLOWPAN parameters

  12. Main involved files (2/2) contiki-etnode-main.c : ● Includes all needed libraries ● Platform initialization ● Hardware initialization ● Starts and handles contiki process scheduler Makefile.etinode ● Defines source files for modules and architecture dependent drivers ● Upload command ● Reset command ● Motelist command ● Login command

  13. dev/ Subfolder The dev/ folder is meant to be a place where all the device drivers needed by the platform are stored. ● USART driver ● UART driver ● I2C driver ● Sensor drivers

  14. 3 Periodic Send Application 10 March 2015

  15. Contiki Shell Application: Periodic Send Main requirements: ● periodic send of a message containing a string of random upper- case letters ● selectable time period ● selectable channel to use ● selectable transmission power ● selectable message length ● possibility to define an autostart flag ● enable/disable MAC layer header ● configuration persistence

  16. Command Developed ● periodicsend: periodically send a message over the radio depending on stored configuration ● showconf: shows the currently saved configuration ● saveconf: save a new configuration ● enableRx: enables radio reception in MAC compliant mode

  17. « showconf »

  18. Demo Live Example

  19. 4 802.15.4 USRP Receiver 10 March 2015

  20. 802.15.4 Physical layer modulation IEEE 802.15.4 physical layer properties: ● O-QPKS modulation ● Direct-sequence Spread Spectrum ● Half-Sine Pulse Shaping

  21. NI USRP Architecture

  22. Differential Phase Recognition

  23. Delta Theta: Input and Output

  24. Labview Receiver Architecture USRP Samples Delta Theta Sign Downsampling Decoded Message Symbol Correlation Symbol to Byte mapping

  25. Labview Decoded Packet

  26. 5 VITAL Project 10 March 2015

  27. VITAL Architecture

  28. Thank you Any question ? Salvatore GUZZO BONIFACIO FUN Research Team Inria Lille 10 March 2015

Recommend


More recommend