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

fun seminar
SMART_READER_LITE
LIVE PREVIEW

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 +


slide-1
SLIDE 1

FUN Seminar

Salvatore GUZZO BONIFACIO 10 March 2015

slide-2
SLIDE 2

SUMMARY

  • 1. Etinode Drivers
  • 2. Contiki Porting For Etinode
  • 3. Periodic Send Command
  • 4. 802.15.4 USRP Receiver
  • 5. VITAL Project
slide-3
SLIDE 3

Etinode Drivers

10 March 2015

1

slide-4
SLIDE 4

STM Driver (Accelerometer + Gyroscope)

stm.h stm-io.h LIS331.h LIS331-io.h L3G4200D.c L3G4200D-io.h LIS331.c L3G2400D.h

<<include>> <<include>> <<include>> <<include>> <<include>> <<include>> <<include>> <<include>>

slide-5
SLIDE 5

STM common functions The primary level for STM driver defines a set

  • f constants and basic functions that are

common for both sensors in the Etinode. They are:

  • Init
  • IO_init
  • ReadBytes
  • WriteBytes
slide-6
SLIDE 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
slide-7
SLIDE 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
slide-8
SLIDE 8

10 March 2015

Contiki Porting For Etinode

2

slide-9
SLIDE 9

ETINODE

Component Description

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

slide-10
SLIDE 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

slide-11
SLIDE 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
slide-12
SLIDE 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
slide-13
SLIDE 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
slide-14
SLIDE 14

10 March 2015

Periodic Send Application

3

slide-15
SLIDE 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
slide-16
SLIDE 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

slide-17
SLIDE 17

« showconf »

slide-18
SLIDE 18

Demo

Live Example

slide-19
SLIDE 19

10 March 2015

802.15.4 USRP Receiver

4

slide-20
SLIDE 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
slide-21
SLIDE 21

NI USRP Architecture

slide-22
SLIDE 22

Differential Phase Recognition

slide-23
SLIDE 23

Delta Theta: Input and Output

slide-24
SLIDE 24

Labview Receiver Architecture

Delta Theta Sign Downsampling Symbol Correlation Symbol to Byte mapping

USRP Samples Decoded Message

slide-25
SLIDE 25

Labview Decoded Packet

slide-26
SLIDE 26

10 March 2015

VITAL Project

5

slide-27
SLIDE 27

VITAL Architecture

slide-28
SLIDE 28

Thank you Any question ?

Salvatore GUZZO BONIFACIO FUN Research Team Inria Lille 10 March 2015