Top Banner
Project Wisdom Stone Networking using MiWi Done By: Amnon Balanov & Yosef Solomon Supervisor: Boaz Mizrachi Project ID: d02310
25

Project Wisdom Stone Networking using MiWi

Feb 24, 2016

Download

Documents

golda

Project Wisdom Stone Networking using MiWi. Done By: Amnon Balanov & Yosef Solomon Supervisor: Boaz Mizrachi Project ID: d02310. Project Wisdom Stone. Small sensors, with very low power consumption Planted under roads Performing monitoring of road maintenance status. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Project Wisdom Stone Networking using MiWi

Project Wisdom StoneNetworking using MiWi

Done By: Amnon Balanov & Yosef SolomonSupervisor: Boaz MizrachiProject ID: d02310

Page 2: Project Wisdom Stone Networking using MiWi

Small sensors, with very low power consumption

Planted under roads Performing monitoring of road maintenance

status

Project Wisdom Stone

THIS INFORMATION WILL SAVE MONEY BY DECREASING MAINTENANCE COSTS AND TIME!

Page 3: Project Wisdom Stone Networking using MiWi

Based on a PIC24 micro-processor

Networking (two alternatives):o 2.4 GHz enabled by a MRF24J40 IEEE 802.15.4 Tx/Rx.o 433 MHz enabled by a MRF49XA Tx/Rx.

Networking will run MiWi (Microchip propriatory S/W stack)

***All components are made by Microchip.

Project Wisdom Stone

Page 4: Project Wisdom Stone Networking using MiWi

The design and implementation of a networking S/W stack who’s functions will be:

1. Transmissions of aquired data to a PC via similar unit

2. Parsing commands received from PC station

3. WAKE interrupts from sleep - for sensing sessions

Project Goals

Page 5: Project Wisdom Stone Networking using MiWi

Tx/Rx◦ Communications with the PC unit

microSD memory chip◦ Stores aquired data

PIC interrupts◦ Wake/Transmission interrupts

System I/O

Page 6: Project Wisdom Stone Networking using MiWi

Extra BoardPICtailEvaluation Board – Explorer

16

MicroCTRL - PIC24FJ256GB11

0

General HW Scheme

Sensor Array

NetworkingMRFJ40MB

ORMRF49XA

MEM- Flash & SRAM

MEM- microSD

SPISPI

SPI

Page 7: Project Wisdom Stone Networking using MiWi

Internal flash Program Memory- 256kB◦ Current tests show 10% usage

SRAM Data Memory- 16kB◦ Current tests show 10% usage◦ We will have a double buffer, a block length each,

for communications (block=1kB; currently) 3 SPI Ports

◦ We will use one for the MRF & one for the µSD.

PIC-24FJ256GB110

Page 8: Project Wisdom Stone Networking using MiWi

MRFJ40MBUses 2.4GHz RFUses O-QPSK modulation.Receiver FIFO- 144 byte, interrupts when a

whole packet was received.Transmitter FIFO- 128 byte.Packet header length ~20 Bytes (TBD)Power: 19-23 mA Working

~2 µA Sleeping

Page 9: Project Wisdom Stone Networking using MiWi

Uses 433MHz RF Uses FSK modulation. Receiver FIFO- 16 bit, interrupts when full

up to a certain point (configurable). Transmitter Registers- two 1-byte Registers,

similar use to the PIC double buffer. Packet header length ~10 Bytes (TBD) Power: 11-15 mA Working

0.3 µA Sleeping

MRF49XA

Page 10: Project Wisdom Stone Networking using MiWi

MRF24J40◦ 250 kbps transmission speed

MRF49XA◦ 115.2 kbps digital transmission speed◦ 256 kbps analog transmission speed

PIC24FJ256GB110◦ computational power of 16 MIPS◦ sampling rate of 500 ksps

microSD◦ reads and writes are in the MB/s range

System Speeds

Page 11: Project Wisdom Stone Networking using MiWi

General Software Layers Diagram

Page 12: Project Wisdom Stone Networking using MiWi

Definition and support the following working modes:◦ Store samples (SS): Samples are stored in non-volatile

memory for long period. ◦ Transmit samples (TS): Samples are read and

transmitted from non-volatile memory through Wireless/UART/USB.

◦ Online sample and transmit (OST): Samples are read from sensor and then transmitted through UART/USB/Wireless, using internal SRAM memory (double buffer mechanism), without access to non-volatile memory.

Sample / Transmit working modes

Page 13: Project Wisdom Stone Networking using MiWi

The device is activated using a well defined CLI (Command Line Interface).

The command line strings are received from either:◦ TXRX wireless port◦ USB port◦ UART port◦ Internal ROM table (Configuration table)

Each command will be executed, and a prompt prefix, followed by the command result, will be returned to the command origin source (TXRX, USB or UART).

CLI Commands

Page 14: Project Wisdom Stone Networking using MiWi

We will write a parser converting the different commands to a short field divided command.

Work on the parser is in its early stages. For example:

◦ eeprom <sub command> <optional parameters>◦ |5 bit command code| |3 bit sub-command| |8-bit optional|

CLI Commands Parsing

Page 15: Project Wisdom Stone Networking using MiWi

As was decided, we use the MiWi SW Stack.◦ MiWi is a proprietary stack designed by

Microchip, free to use. The stack is implemented as general as

possible and suits to the proposed HW networking modules.

We use the MiWi P2P protocol.

MiWi SW Stack

Page 16: Project Wisdom Stone Networking using MiWi

The MiWi Protocol is divided into two parts:◦MiApp - upper level used to connect our

application with the MiWi P2P protocol 

◦MiMAC - Using the MiMAC layer, we can easily switch between different RF transceivers such as MRF24J40 and MRF49XA.

MiWi Protocol (Cont.)

Page 17: Project Wisdom Stone Networking using MiWi

MiWi Protocol Layers

Page 18: Project Wisdom Stone Networking using MiWi

This layer will give 5 major interfaces:◦ Initialization- allows configuration of selected

hardware.◦ Hand-shaking-allows discovering and

connecting to peers and network.◦ Receiving- allows receiving information over the

air.◦ Transmitting- allows sending information over

the air.◦ Extended Functionality- allows environment

noise and power saving control.

MiApp Layer

Page 19: Project Wisdom Stone Networking using MiWi

The MiMAC Layer allows us the abstraction of the Transceiver driver- we use it regardless of the driver used (at least in theory)

Mainly implements the MiApp API

MiMAC Layer

Page 20: Project Wisdom Stone Networking using MiWi

Configuration File

Allows the easy configuration of the whole

application:

Switching between Transceivers

Enabling/Disabling different functions of the SW

stack

Further Development- Allows choosing the Protocol

Page 21: Project Wisdom Stone Networking using MiWi

TXInit()◦ Initialize network parameters.◦ The sensor creates a network.

TXBatchInit()◦ Initialize a new batch.

TXBlock()◦ Transmits block of size 1KB.

TXStop()◦ Ends transmission.

TXRXDeviceTasks()◦ This function will take care of the transceiver periodic

tasks (handle TX and RX tasks).

TXRX Commands- Main Loop API

Page 22: Project Wisdom Stone Networking using MiWi

Network Diagram

INIT INIT

Send Command

Interpret command & Send Data

Go To Sleep

Receive Data

New/End Session

The sensor side PC side

Page 23: Project Wisdom Stone Networking using MiWi

In order to comply with time constraints of other parts of the WiStone we will test to see how big a payload we can use.

In case we see a packet’s transmission cannot be interrupted and in order to allow easy coordination, we will make the transmission of a packet atomic (non-preemptive).

Coordination in the WiStone

Page 24: Project Wisdom Stone Networking using MiWi

The two Transceivers support a sleep mode. They save the current status on

configuration registers to allow easy wake up.

The only way to wake up the transcievers is through pre-programmed timers on the transceivers or the PIC.

We need to figure out how to allow access not at a pre-determined time.

Sleep

Page 25: Project Wisdom Stone Networking using MiWi

Finishing software development & basic testing (3 weeks)- ◦ Completing code for:

The Main Loop functions.

Writing and documenting the parser (1 week)

Outdoors Testing (1 week)-Testing the network capabilities under simulated conditions.

Wrap-Up (1-2 weeks)-◦ End of term presentation◦ End of Project Report*

Est. Total: 6-7 weeks.*Might be delayed because of Exam period

Estimated Schedule