8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 1/61
Vending Machine Through Mobile(A BLUE TOOTH BASED APPLICATION)
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 2/61
GOAL OF OUR SYSTEM
User can use a cell phone to select the product to be
purchased from among a list of products and buy them
through telemetry.
OUR SYSTEM is J2ME based Bluetooth mobile
application which when installed in a Java enabled
mobile phone lets a user make a purchase of an item
through the mobile phone.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 3/61
Problems with the current scenario:
Coin acceptors often jam up, especially if a billor other foreign object is inserted into the coinslot.
Moreover these vending machines are not smartenough to give you change for the products youhave bought.
Also these vending machines need moremanual interaction which is not always
recommended. Also people are looking for innovative solutions
from the vendors to their buying problems.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 4/61
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 5/61
Proposed Solution
The scheme relies on a radio frequency transmissionmedium, which guarantees fully bi-directional
This scheme has opened door for the vendors to adopt anew alternative paying scheme that will help them toattract the customers.
This project also focuses on developing an alternativescheme for payment through credit cards.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 6/61
MODULES
There are four modules present in the system.They are:
Vending Machine Module
Purchase Request Module
Billing Module
Payment module ± Talk time.
± Credit card Payment
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 7/61
Vending Machine Module
Functionality:
Show List
The lists of the categories available in the repository The
products in the selected category are also displayed. Update Inventory
Whenever products are purchased, the amount of products sold will be deducted from the inventory levels.When the inventory level of a product goes down the
minimum requirement, product name will be deleted fromthe available list of products. It has to be updated againby the administrator whenever the product is added tothe inventory.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 8/61
Purchase Request Module
Functionality:
Viewing the list of categories of products.
To make a request for buying a product of desired quantity.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 9/61
Billing Module
Make Bill
A bill is generated for the purchased
product. Transaction Log
Records the list of transactions performed
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 10/61
Payment module
Credit card Payment
If the payment is through the credit card,then the card details will be send to thebank and the amount will be collectedlater.
Talk time payment
If the payment is through service provider then the amount of purchase will bededucted from the user¶s talk time.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 11/61
SOFTWARE REQUIREMENTS
SERVER
Operating system ---- Windows XP
Server Side Prog ---- java Servlets
Web server ---- Apache tomcat 5.5
Database ---- Oracle 8.0
Client
Operating system ---- Palm OS
Blue Tooth Mobile ---- J2ME Wireless Toolkit
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 12/61
HARDWARE REQUIREMENTS
Server
PIII or higher processors
256 MB RAM
20 GB Hard Disk
Client
Bluetooth enabled mobile phone is sufficient
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 13/61
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 14/61
FUNCTIONAL REQUIREMENTS
MAINTAIN INVENTORY UPDATE INVENTORY
VALIDATING SIM CARD
VENDING MACHINE
SERVICEPROVIDER
VIEW REPOSITORY
PRODUC T INFO
SELECTING PRODUCTS
SELECTING CATEGORY
BILLING
SIM CARD PAYMENT
USER
ACCOUNT PAYMENT VALIDATING ACCOUNTCREDIT CARD
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 15/61
The actors identified in this system are:
User.
vending machine. Service Provider
TTP
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 16/61
The use cases that are identified in thissystem are
1. View repository
2. Select category
3. Select product.
4. Billing system
5. Sim card payment.
6. Credit card payment
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 17/61
MAIN USE CASE DIAGRAM
¡
¢
£
¤
¥ ¡
¦ ¢
§ £
¤ ̈
¡
¢
ACC©
UN
A
ID A
I©
NC R E D I
CARD
RE C©
RD
R A N S A C
I©
N
S I M C A R D A
M E N
ACC©
UN
A
M E N
<< !
>>
A
M E N
M©
DE
S E
E C
CA
EGOR
S E
E C
RODU C
S
<< !
>>
UR C"
ASE
U S E R
M A I N
AIN RE OS I
OR
IE
#
RE O
S I
OR
<< ! >>
RODU C
IN$
OM A
ION
U
D A
E IN
E N
OR
<< !
>>
% I
ING S
S
E M
<< !
>>
<<!
x&
! >>
A E R
S
ENDING
M A C"
IN E
S I M C A R D
A ID A
ION
<< !
>>
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 18/61
SUB USE-CASE FOR PURCHASE
S P
S R
UP
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 19/61
SUB USE-CASE FOR VIEW REPOSITORY
User
(from Use Case View)
View Repository Vending machine
getCategory
<<include>>
selectCategory
<<include>>
getProducts
<<include>>
Repository
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 20/61
ACTIVITY DIAGRAMS
Activity diagrams are special case of the
state machine
Activity diagrams provide a view of flowsof what is going inside the use cases or
among several classes
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 21/61
Activity diagram
G'
t(
a t'
g)
r i' 0
G'
t1 r
)
d 2 c t0
3 i0
4 5 a y 6 i 5 5 3
'
t a i 5
0
7
'
c'
i 4 t
7
'
c)
r d t 8
'
9
r a @
0
a c t i)
@
(
)
@ @
'
c t
A
'
5
'
c tc a t
'
g)
r y
A
'
5
'
c t1 r
)
d 2 c t
6 2 y ?[
B
' 0
]
C
r )
@ gD @
E
)
r m a t i)
@ ?
1 a y m'
@ tm
)
d'
?
3 i0
4 5 a yD @
E
)
r m a t i)
@
(
)
5 5
'
c tt 8
'
D t'
m
F @ t'
r 1 i @ @ 2 m G
'
r [ 6 a @ H ]
I
a 5 i da c c
)
2 @ t ?
F @ t'
r (
a r dd
'
t a i 5
0
[(
r '
d i t(
a r d ]
I
a 5 i dd
'
t a i 5
0
?
[B
' 0
]
[B
' 0
]
[ P
)
]
[ P
)
]
[B
' 0
]
[ P
)
]
TTPService Provider User Vending Machine
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 22/61
SEQUENCE DIAGRAMS
Provides graphical view that shows object
interaction in time based sequence
These diagrams establishes the roles of the objects and provide essential
information to determine class
responsibilities
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 23/61
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 24/61
PURCHASEQ
U S E R Q R S T
U
V
W X Y
U ̀
Q P U R C H A S EQ
a
E b c ` b d
e ACH
` b E
Q
f
g
Y h
g i
f Y
i
p
q
T
r
s Q
X
p
W
T
p
g i
p
Y
T
t
W U Y
u v
w
Q
X Y
x
Y U
p
U W
p
Y y q
T
r
u v
Q
X Y
x
Y U
p
R T
q
S
U
p
u v
Q
X Y
x
Y U
p
R
W r
Y
i
p
q
Y
u v
Q
t
q
T
h W
T
Y
p
W
g x
X
u v
Q
t
q
T
h W
T
Y
p
W
g x
X
u v
Q
U
V
Y U
f W
x g
W
p
g
q
i
X
u v
Q
f W
x g
W
p
Y
u v
9Q
t
q
T
h W
T
W
S
p
V
Y
i
p
g
U W
p
g
q
i
Y
p
W
g x
X
u v
s
Q
f Y
T g
t
r
Y
p
W
g x
X
u v
s s Q R T
q U Y X X
p
V
Y
T
Y
S
Y X
p
u v
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 25/61
CREDIT CARD
E R
E
D I
A C I E
j k j
l
m
n
o
j
m
m
z
j
{
|
}
n
|
~
j
n z
j
k
j j
n
j
j
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 26/61
SIM CARD
S R
D I M A C I
I S R
IC R
ID
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 27/61
CLASS DIAGRAM
Class diagrams are created to provide a
picture or view of some or all of the
classes in the model.
The main class diagram in the logical view
of the model is typically a picture of the
packages in the system
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 28/61
CLASS DIAGRAM
ª « ¬ - ® ̄ I- ° ± ² ± ³
´ µ ¶ µ - · ±
̄D
® ¸ ´ ¶ ±
¹ « - ̄ I- ° ± ² ± ³
ª ° µ ³ °
« - ° ± ³
º
µ · ± » ¼
¹ ³ ®
½
« ¾ ± ¾ ± ° µ « ¶ ª » ¼
¿ ¿ ± - ° « ° À · ¶ µ ª ª Á Á
· µ ³ ¾ - ® ̄ S ° ³ « - ²
±
Â
¹ « ³ À
¾ µ ° ±
̄D
µ ° ±
à ® ¶ ¾ ± ³
- µ ¬ ±
̄S
° ³ « - ²
· ³ ± ¾ « °
̄D
® ¸ ´ ¶ ±
· Ã ± · Ä
µ · · ® ¸ - ° » ¼
¬ µ Ä ±
° ³ µ - ª µ · ° « ® - » ¼
¿ ¿ ± - ° « ° À · ¶ µ ª ª Á Á
· µ °
_ « ¾
̄
S° ³ « - ²
- µ ¬ ±
̄S
° ³ « - ²
¿ ¿ ´ ® ¸ - ¾ µ ³ À
· ¶ µ ª ª Á Á
¹ ³ ® · ± ª ª
° Ã ±
³ ± Å ¸ ± ª ° » ¼
¿ ¿ ± - ° « ° À
· ¶ µ ª ª Á Á
Æ Ç Ç -
Æ Ç Ç -
Æ Ç Ç -
Æ Ç Ç -
views
´ « ¶ ¶
µ ¬ ® ¸ - °
̄D
® ¸ ´ ¶ ±
´ « ¶ ¶
¾ µ ° ±
̄D
µ ° ±
¹ µ À ¬ ® ¾ ± ̄ S ° ³ « - ²
¬ µ Ä ±
´ « ¶ ¶ » ¼
¹ µ À
´ « ¶ ¶ » ¼
³ ± · ® ³ ¾
° ³ µ - ª µ · ° « ® - » ¼
¿ ¿ ´ ® ¸ - ¾ µ ³ À
· ¶ µ ª ª Á Á
Æ Ç Ç -
Æ
Æ Ç Ç -
Æ
interacts
Æ Ç Ç -
Æ
Æ Ç Ç -
Æ
interacts
- µ ¬ ±
̄S
° ³ « - ²
· ® ¾ ±
̄S
° ³ « - ²
¿ ¿ ´ ® ¸ - ¾ µ ³ À
· ¶ µ ª ª Á Á
È Ç Ç -
Æ Ç Ç -
È Ç Ç -
Æ Ç Ç -
selects
² ± °
· ³ ± ¾ « °
· µ ³ ¾
- ® » ¼
² ± °
¹ « -
- ® » ¼
º
® ³
É
µ ³ ¾ ³ ± ª ¸ ¶ ° ª » ¼
¹ ³ ® · ± ª ª
µ - ¾
½
± ³ «
º
À
³ ± Å ¸ ± ª ° » ¼
¿ ¿ · ® - ° ³ ® ¶
· ¶ µ ª ª Á Á
Æ Ç Ç -
Æ
Æ Ç Ç -
Æ
coordinates
Æ Ç Ç -
Æ
Æ Ç Ç -
Æ
updates
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 29/61
FUNCTIONAL ARCHITECTURE
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 30/61
Mobile with vending machine
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 31/61
Vending machine checks
database
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 32/61
Checks bank details
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 33/61
Checks service provider
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 34/61
S YSTEM ARCHITECTURE
ACTI
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 35/61
BALANCE
CNAME
CNAME
PNAME
BILLING
S YSTEM
TID
TMOD
E
BAMOUNT
TDATE
PNAME
CREDITCARD
CVVNO
CName
CARDNO
CARD
TYPE
EXPIRY
DATE
SERVICE
PROVIDER
To
MNAME
SIMN
O
PIN
ACTI
CTYPE
MNAM
E
INTER
ACTS
PRODUC
T
COST
BUYS
Vie
ws
CATEGRO
Y
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 36/61
List of data base tables identified
Category
Products
Measurement
Transaction
Service provider
Visa
Transaction processing(ttp)
vodaphone
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 37/61
cname Varchar2(20) primarykey
pname Varchar2(20) primarykey
cname Varchar2(20) Foreign key
Product table
Category table
Cname represents customer name
Pname represents product name
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 38/61
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 39/61
Measurement table
pname Varchar2(20) Foreign key
mname Varchar2(20) Primary key
quantity Number(3) Not null
cost Number( ,2) Not null
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 40/61
Transaction table
Tid Number(5) Primary key
Tmode Char(1) not NULL
BAmount Number( ,2) not NULL
Tdate Date not NULL
Pname Varchar2(20) Foreign key
Mname Varchar2(10) Foreign key
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 41/61
Service provider
Name Varchar2(20) Primary key
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 42/61
Vodaphone
Cname Varchar2(20) Foreign key
Sim no Number(10) Primary key
Pin Number(6) Not null
Balance Number(6,2) Not null
activation Char(2) Not null
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 43/61
TRANSACTION PROCESSING
NAME VARCHAR2(20) PRIMARY KEY
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 44/61
VISA
CNAME VARCHAR2(20) FOREIGN
KEY
CARDNO NUMBER(16) PRIMARY
KEY
EXPIRY
DATE
DATE not NULL
CREDITCARD NUMBER( ,2) not NULL
CVV NO NUMBER(10) not NULL
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 45/61
Interface design
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 46/61
Welcome screen
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 47/61
categories
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 48/61
List of products
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 49/61
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 50/61
Pay mode
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 51/61
Account details by sim card
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 52/61
Account details by using credit card
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 53/61
Receipt form
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 54/61
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 55/61
Authentication of user with Service Provider
Test Case: Authentication of user
Test Description: With the cell phone number and pin as the input, validate the user.
Pre Conditions: User should have a Valid Account with Service Provider
Action Performed: 1) Correct details entered.2) Wrong details entered.
Expected Results: 1) Connected to server and product is delivered.2) Not Connected to server and Repurchase.
Conditions Verified: yes
Result: Success
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 56/61
Product Available
Test Case: Product Available
Test Description: To verify the Product of Sufficient quantity is available
Pre Conditions: Database Connectivity
Action Performed: 1) Product Available.2) Product Not Available
Expected Results: 1) Ask for Payment Details.2) Alert the User.
Conditions Verified: yes
Result: Success
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 57/61
User Validation
Test Case: User Validation
Test Description: With the credit card and cvv no. as the input, validate the user.
Pre Conditions: User should have a Valid Account with bank.
Action Performed: 1) Correct details entered.2) Wrong details entered.
Expected Results: 1) Connected to server and product is delivered.2) Not Connected to server and Repurchase.
Conditions Verified: yes
Result: Success
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 58/61
CONCLUSION
The following benefits can be observed with this system:
Convenience and fle ibility in the mobile paymentscheme.
A reliable scheme with completely no manual interaction.
Also the reports generated by the system can be helpfulin tracking the customer needs and maintaining thecorrect inventory levels.
Moreover by implementing this system we gained a clear
understanding of project life cycle and the Bluetoothtechnology.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 59/61
LIMITATIONS
This project of course has a broad range
but was implemented only for the vending
machine scenario.
Also this project, as it is implemented
using Bluetooth technology, was
constrained to the distance of operation.
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 60/61
8/8/2019 Vending Machine Sreevidhya@Students
http://slidepdf.com/reader/full/vending-machine-sreevidhyastudents 61/61