Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI...

15
Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010
  • date post

    20-Dec-2015
  • Category

    Documents

  • view

    214
  • download

    0

Transcript of Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI...

Page 1: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Networking for Wireless Sensors in the UCI@Home energy project

Jonathan ChuComputer Science, UCI

Mentor: Professor David Kirkby

SURF-IT July 27, 2010

Page 2: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Overview

• Group Interdisciplinary project to design, assemble, and integrate energy measuring devices into homes

• Determine whether immediate feedback on energy patterns can change a subject’s behavior and reduce wasteful activities

• Collaboration between physics and social science departments

Page 3: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

• Our wireless network is a self configuring network of devices connected by wireless links

• Problem occurs during flooding when a host receiver must take in multiple packets from different transmitters simultaneously. Packets will block each other and cause packet loss.

• Time Division Multiple Access (TDMA) methodology could be used to assign time slots to specified receivers on the same channel

Broadcast Storm Problem in Wireless Networks

Page 4: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Time Synchronization

• Transmitter and receivers should be synchronized as accurately as possible for scanning channels

For our purposes, accuracy within +/- 1 millisecond was sufficient

Page 5: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

RF Scanner

• To measure electromagnetic interference in rooms

• Electromagnetic interference can be caused by radio signals, wifi signals, phone, microwave, etc..

• Program in software, the Nordic nRF24L01+ transciever

Page 6: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Implementation

• Had to understand and program wireless protocols at the lowest, most complex level of the OSI architecture, the Physical Layer

OSI Model7. Application Layer6. Presentation Layer5. Session Layer4. Transport Layer3. Network Layer2. Data Link Layer1. Physical Layer

Page 7: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

2.4x GHz BandNordic Transceiver broadcasting at 2.450 GHz band

Page 8: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Laptop wireless 802.11gSignature of a Laptop’s wireless signal at WLAN channel 1Centered at 2.412 GHz with a .022 GHz band

Page 9: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Channel Scanning• Graph of Amplitude over Time for each frequency• Scans from 2.400 to 2.500 GHz, in increments of .01GHz with 1 second

for each increment,

Page 10: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Home Microwave Interference

Your home microwave can cause interference at around 2.45 GHz

Page 11: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Testing range of Nordic nRF24L01+• Test packet loss between 2 nRF24L01+ for varying distances• The greater the distance, the greater the packet loss rate• Random noise causes data to vary

Page 12: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Repeater• How to improve range?

• Place device between hub and leaf to repeat packets from each other.

Page 13: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Repeater

• Pros: Seemed to be fairly effective in increasing range of wireless devices, quick and easy solution

• Cons: additional hardware required, costs, • Alternative: In a network with multiple nodes

connected to each other, nodes themselves can act as repeaters; these are called mesh networks

• Many different types of mesh network protocols can be used

Page 14: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Wireless Bootloader• System used was AVR Atmega328p + Nordic

nRF24L01+ transciever • Normally, each device must be manually

programmed by STK500v1 protocal via ICSP header; updating firmware is pain

• Have been and still am working on wireless bootloader, extremely difficult, bootloader must be below 4K, on air timing cannot disrupt baudrate, every packet must make it through, detailed protocol implementation

Page 15: Networking for Wireless Sensors in the UCI@Home energy project Jonathan Chu Computer Science, UCI Mentor: Professor David Kirkby SURF-IT July 27, 2010.

Acknowledgements

• Professor and mentor David Kirkby

SURF-IT program organizers• Calit2 (Stuart Ross, Shellie Nazarenus, Anna

Spitzer)• UROP (Said Shokair)