Midway Design Review

idleheadedceleryMobile - Wireless

Dec 10, 2013 (3 years and 6 months ago)

58 views

Department of Electrical & Computer Engineering

Advisor:

Professor Michael Zink

Team:

Brigit Lyons


Fadi

Maalouli


Tony Panetta

Renzo

Silva

Midway Design Review

Department of Electrical & Computer Engineering

2

Outline



Design overview and modifications



MDR goal reminder



Progress of each component



Demo



Division of labor



Prototype Cost



CDR goals

Department of Electrical & Computer Engineering

3

Website

Account
Database

Bluetooth Module Processor

(
AIRCable

SMD) (Intel Atom)

Old Design

Security Device

Department of Electrical & Computer Engineering

4

Problems with Old Design


Reliant on Internet/3G connection


Problems with
AIRCable

SMD Bluetooth
module


Intel Atom Processor very complex to work
with


Department of Electrical & Computer Engineering

5

Bluetooth Module Microcontroller

(Roving Network (GHI EMX)


RN
-
41)



New Design

Security Device

Department of Electrical & Computer Engineering

6

Solution


No need for a database/website to get
encryption key


Roving Network RN
-
41 Bluetooth module is
easy to use and has a high success rate


GHI EMX development system simple to
interface with


Department of Electrical & Computer Engineering

7

MDR Goals


Working encryption algorithm



Hardware and software algorithms evaluated


Basic Bluetooth communication



RN
-
41 Module communication


Basic phone application



Basic communication with RN
-
41

Department of Electrical & Computer Engineering

8

Current Project Status

Department of Electrical & Computer Engineering

9

C AES Performance

0
0.005
0.01
0.015
0.02
0.025
0.03
0
2000
4000
6000
8000
10000
12000
C Algorithm Encryption Speed

Speed (
Gb
/s)

Number of Runs

0
0.001
0.002
0.003
0.004
0.005
0.006
0
2000
4000
6000
8000
10000
12000
C Algorithm Decryption Speed

Number of Runs

Speed

(Gb/s)

* Speed (
Gb
/s) = (128*Number of Runs)/(Runtime*10
9
)

**Tests performed on a 2.66GHz machine

***Speeds calculated based on code execution time. On a multitasking system, this includes both
idle time and processor time.


Department of Electrical & Computer Engineering

10

Verilog

AES Performance

Decryption: 13 clock cycles per 128
-
bit decrypt (
red
) + one
-
time 13
cycle key expansion each time encryption key is changed (
blue
)

Encryption: 13 clock cycles per 128
-
bit encryption (
red
) [key
expansion can be done in parallel here]

11

Comparison of Performance


Encryption:


C: 0.025Gb/s at 2.66GHz


Number of clock cycles per encryption run = (128/Speed(Gb/s))*CPU Clock Speed


With a 2.66Ghz at 0.025Gb/s
-
> 13,620 clocks cycles per encryption run


Assuming 1% of runtime spent on processor
-
> 136 CPU cycles per run


Verilog: 13clock cycles


Verilog performs (136/13) ≈ 10x faster


Decryption


C: 0.005Gb/s at 2.66GHz


Number of clock cycles per decryption run = (128/Speed(Gb/s))*CPU Clock Speed


With a 2.66Ghz at 0.025Gb/s
-
> 68,096 clocks cycles per encryption run


Assuming 1% of runtime spent on processor
-
> 681 CPU cycles per run


Verilog: 13clock cycles


Verilog performs (681/13) ≈ 52x faster


The assumption that 1% of C code runtime is spent on the processor is
used to offset the fact that on a multitasking system, the total runtime
includes both processor and idle cycles.


Department of Electrical & Computer Engineering

Department of Electrical & Computer Engineering

12

Power Control

Power Supply

Voltage
Regulator
(5v to
3.3V)

RN
-
41 Bluetooth

5V

Switch

Power Control (PIO
7 and 8)

3.1V


800mA

3.3V Input

5V

12V

5V


3A

12V


3A (peak current)

12V

Switch

(30W
max)

3.1v
Switch

Gnd

Gnd

500nF
Cap

100k R

Department of Electrical & Computer Engineering

13

Bluetooth


Voltage
(DC
)
Min
3.0

Typ

3.3
Max
3.6


Average Power Consumption when
Connected
(normal mode
) 30mW


Output logic level HIGH
VDD
-
0.2V


The
RN41 delivers up to 3 Mbps data
rate
for distances to
100M.

Department of Electrical & Computer Engineering

14

Android Application


Development and testing environment



Android SDK plug
-
in for Eclipse IDE on Win 7


Testing on Motorola Droid and HTC EVO handsets


Application built off of open source
BlueTerm


Fundamentals for programming/communicating
with RN
-
41 via Bluetooth


Additional functionality will be easy to integrate

Department of Electrical & Computer Engineering

15

Demo

1.
Open Application

2.
Bring up Options Menu

3.
Select “Connect device”

4.
Scan for
HDDlock

if not shown in device list

5.
Select
HDDlock

from device list

6.
Enter pairing code ‘1234’ if not already paired

7.
Send commands to RN
-
41 to enter command
mode, set pin as output, and set pin high

8.
Disconnect

Department of Electrical & Computer Engineering

16

Department of Electrical & Computer Engineering

17

Roles and Management


Brigit (CSE): Set up Android development/testing environment
and worked on
the
Android Application


Administrative: Webmaster


Fadi

(EE): Worked on enabling/configuring Bluetooth module


Administrative: Scheduling


Tony (CSE): Worked on encryption algorithms in C and Verilog


Administrative: Documentation


Renzo (EE): Designed power management between RN
-
41 and
hard drive, and worked on the Android Application


Administrative: Purchase Orders



Department of Electrical & Computer Engineering

18

Current and Projected Costs



Prototype Cost: $291.4


80GB Hard Drive: $35.99


Cables: $17.92


High power MOSFETs: $2.98


RN
-
41: $59.95


GHI EMX Development System:
$125


PCB Fabrication: $50

Department of Electrical & Computer Engineering

19

CDR Goals


Android Application:


User login/authentication


Send encryption key to security device


Security Device:


Communication between development board and
Bluetooth module


Encryption algorithm working on development board


Research OS libraries for read/write from hard drive


Department of Electrical & Computer Engineering

20

Questions?