Download Detailed Design Specification Team: Always Home Project: Smart
Transcript
Detailed Design Specification
3.4.3.5.5.
Smart Door
Microcontroller Communication Manager Module Processing
/*
* if else statement to route communications
*/
if(communication on P 3 channel){
if(communication is a stream)
forward stream to host stream module
else{
forward message to
communications/message processor
}
}
if(communication is on VS 4 channel)
forward communication to Hardware
Subsystem
3.4.3.6.
3.4.3.6.1.
3.4.3.6.2.
3.4.3.6.3.
Command/Message Processor Module Description
Command/Message Processor Module Description
The Command/Message Processor module will be a part of our software
component running on the server.
Command/Message Processor Module Function
The Command/Message Processor module’s function is to relay
commands between the Android Device and the Smart Door device.
Command/Message Processor Module Interfaces
Command/Message Processor
Reference
#
IN /
OUT
Description
VS 1
IN
MP3 Stream and command messages from Android Communication Manager module
VS 4
OUT
MP3 Stream and command messages from Command/Message Processor module
VS 7
OUT
Sensor data and notifications to Android Communication Manager module
VS 8
IN
Sensor data and notifications from Microcontroller Communication Manager module
3.4.3.6.4.
Command/Message Processor Module Physical Data Structure
Command/Message Processor
Name
Type
Description
door_State
Boolean
Variable to represent the open/close of the Door
lock_State
Boolean
Variable to represent the lock/unlock state of the Door Lock
lock_Unlock
Integer
Variable to represent the unlock,essage being sent to the Door Lock
lock_Lock
Integer
Variable to represent the lock,essage being sent to the Door Lock
start_Monitor
Integer
Start monitoring message
stop_Monitor
Integer
Stop monitoring message
55
DDS Version: 0.1