Yulia Bulgakova Douglas Looze Fabien Ahmed Arber Doci Christos Mpelkas

darkfryingpanMobile - Wireless

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

124 views

Yulia

Bulgakova

Douglas
Looze

Fabien Ahmed

Arber Doci

Christos
Mpelkas

Sbox objectives

SBox Provides a way to monitor and help control the
consumption of alcohol.

NHTSA* reports over 50% of people driving under
influence had their last drinks at
licensed

establishments



*National Highway Traffic Safety Association

Sbox Services

The device will track the time an individual has purchased a drink

The next time the customer attempts to purchase a drink, the SBox will
inform the seller whether or not the individual can be sold another drink

Based on the consumption rules of the establishment

SBox can be used in establishments such as:

Stadiums

Bars

Night Clubs

Anywhere alcohol is served…

Process

Customers at the event will be
required by
the
establishment to register for an
NFC
tag which
will have an ID number linking to the customer’s
information on the database

Customer will approach the
seller with
a State
-
Approved
ID card
as well as the SBox
-
Approved
NFC tag

The seller will scan the NFC tag and
verify the
name
and address with
the State
-
Approved
ID

Process

C
ont.

The SBox device will
check whether or not the
customer bought “x” drinks within an hour

If the customer is allowed to purchase a drink

s/
h
e is
sold whatever drink they please

a timestamp
is updated in the database

If the customer is NOT allowed to purchase a
drink

the seller will inform the customer the time in which they
are allowed to purchase a drink

NFC

Can UID be used to cheat the system?

It is impossible to duplicate a tag.

Our system uses UID as a form of identification.

Each tag that a manufacturer sells has a different UID. You will
not find another NFC tag with the same UID number.

The name and address shows up on the computer screen when
a tag is scanned and it is matched with the name and address
on the person’s license.

How does a user obtain an NFC tag?

User has to register online and go to the service desk and is
given an NFC tag.


Graphical user interface

How is a record retrieved?

UID

How much data is used

Roughly 1MB per user

How does the tablet read/write
data?

The data is received from NFC

Parsed into JSON protocol

PHP Bridges JSON to MySQL

Data is entered into the
MySQL database

Reverse (for reading data)

How is a record formed?

Data is parsed into the MySQL
table

Database

How Does it work?

MySQL database is used to create a table

Table has input fields for: UID, First
Name,
Last Name,
Address, Time
-
Stamp,


Verification #

Modeling of Network


Data Consumption

IPv4 Packets are 160 bits (20 bytes) of headers,
and up to 65,536 bytes of data.

These packets are how the server and tablet
communicate with one another
.

Data Consumed for
Purchasing Transaction

Tablet sends the UID (7 bytes) to the server.

The server responds with the name (variable
length) and address (variable length street, 2
bytes for state, 5 bytes for zip code).

If failed transaction, then the server also sends
the time of next drink (4 bytes)
.

Data Consumed Cont.

For a single purchasing transaction, the data will be
20 bytes (IPv4 Header) + 7 bytes (UID) + 2 bytes
(State) + 5 bytes (ZIP) + ?? Bytes (Address) + ??
bytes (Name).


This equals to 34 bytes + ?? bytes (Address and Name)
for a successful purchase of a drink.

A failed purchase of a drink is the same but with the
bytes added for the timestamp.

This equals 38 bytes + ?? bytes (Address and Name
)

Bandwidth Usage

How it all comes together…

Progress


G
OAL
S

A
c
c
om
pl
i
s
he
d

W
orki
ng G
U
I

F
i
ni
s
he
d

E
nc
ode
N
F
C t
a
gs

F
i
ni
s
he
d

Im
pl
e
m
e
nt
t
he
D
a
t
a
ba
s
e
S
e
rve
r

F
i
ni
s
he
d

Im
pl
e
m
e
nt
t
he
l
oc
a
l
ne
t
w
ork

Cr
e
at
e
a m
or
e

us
e
r
f
r
i
e
ndl
y
G
U
I”

Conne
c
t

dat
abas
e
s
e
r
v
e
r
t
o we
bs
i
t
e

F
i
ni
s
he
d

F
i
ni
s
he
d

F
i
ni
s
he
d


Scaling

Registration of tags

63 tags were registered
using 2 devices (simulating
2 vendors)

Time: 5m 26s

Accuracy: 100% of cards
were registered
accurately on the first try

Purchase

32 customers used vendor one, 31 customers
used the vendor two.

Time: 3m 30s

Accuracy: 100% of customer’s cards
were registered

Alternated the vendors where 32 customers
used vendor two, the other 31 customers
used vendor one

Time: 1m 36s

Accuracy: 100% of customer’s cards
were
registered

for their second drink

No issues with the database

Costs

Android Nexus 7 Tablet
-

$263.17

Adhesive
NFC Tags (10 tags)
-

$10.60

Additional NFC Tags
-

$60.20

Website
-

$10.02

Totals:

Spent: $343.99 (68.9% of total)

Available: $151.01 (31.1% of total)

SDP Demo
-
Day

Role Play

We will demo the scenario however instead of
alcohol we will use Soft Drinks using our budget
(Est. $40 from our own pockets)

We will be giving them their own adhesive NFC
tags

Demo