Home

4. Existing system

image

Contents

1. ASBS Automatic School Bell System Project times The user tap on text field in Keyboard appears edit repeat times The user input repeat times The user tap on OK in Main_screen appears with input selected timer bell screen time repeat day and icon represented to timer status mode changing mode is showed at selected bell s Timer option bar appears below the selected bell Active De active button is showed at De active status Exceptions Notes and Issues 2 2 3 6 Delete all timer USE CASE Delete all timer SPECIFICATION Nawa CL SM Date AL o Related Prototype Actor User Description Allow the user delete all timer in schedule screen Trigger Pres conditions 1 UC No 1 2 1 Main Success Scenario 2 UC No 1 2 5 Main Success Scenario Post conditions Clear schedule screen Main Success Scenario The user click on Delete Show dialog Do you want to clear all list 40 ASBS Automatic School Bell System Project all button schedule The user tap on OK Clear all timer on the screen button Alternative Scenario No n None Exceptions Notes and Issues 2 2 3 7 Delete selected timer Actor User Description Allow the user delete all timer in schedule screen Trigger Pres conditions 1 UC No 1 2 1 Main Success Scenario 2 UC No 1 2 5 Main Success Scenario Post conditions
2. Automatic School Bell System Project 1 2 Role and responsibility 1 2 1 Project members i N Nguy n Hiku Tai P Nguyen Hiru Tai AA Technical Analyst Nguy n Xu n Truong E TA Team DEV Team TEST Team Table 1 Project members 1 2 2 Role and responsibilities Project Manager Nguyen Huu Tai 60042 Project Manager is responsible for the day to day management of the project life cycle Project Integration Management o Develop project Management Plan direct and manage project execution monitor and control project work close project phase and overall project Project Scope Management o Collect Requirement define scope create WBS verify scope and control scope Project Time Management ASBS Automatic School Bell System Project o Define activities sequence activities estimate activities estimate human resource control schedule Project Quality Management o Plan quality perform quality assurance and control quality Project Human Resource Management o Manage project team Project Communication Management o Identify stakeholders plan communication and distribute information report performance Project Risk Management o Plan risk management identify risks plan risk response monitor and control risks Project Technical Leader Pham Nam Thang 60495 Project Technical Leader is responsible for technical aspect in all project life cycle Control pro
3. Click on bell icon 99 ASBS Automatic School Bell System Project LEUR SE 22 30 BELL LIST SCHEDULING SETTING BELLOO1 BELL002 BELL004 BELLOOS ADD BELL Step 2 If the icon change to green color the bellwill ringing L Kk OG B 22 31 BELL LIST SCHEDULING SETTING BELLOO1 BELL002 BELL004 BELL005 ADD BELL 1 3 Update schedule Update the schedule Step 1 User swipe to left Schedule screen will showing up 100 ASBS Automatic School Bell System Project OF EN B 22 32 BELL LIST SCHEDULING SETTING Add Delete all 1 0 9 PM Every week SUN MON TUE WED THU FRI 1 0 1 OPM Every week SUN MON TUE WED THU FRI 1 0 1 9PM Every week SUN MON TUE WED THU FRI 1 0 20PM Every week SUN MON TUE WED THU FRI 1 0 33PM Every week N MON Step 2 User tap on Add button Add dialog will be showing up O D 22 32 Repeat time Every week Repeat day CANCEL Step 3 User could scroll down for more information 101 ASBS Automatic School Bell System Project B 22 33 Repeat time Every week Repeat day Sun Choose bell list MINHNGOC CANCEL Step 4 User click on repeat time for choosing repeat time of the bell DO GO B 22 33 Every week Once times Step 5 User click on repeat day for choosing repeat day of the bell 102 ASBS Automatic School Bell System Project LEUR SE 22 33 Step
4. Delete all Delete all current schedule item Edit Choose button to delete the item Each scheduling item showing Start time Time to start ringing Format hh mm AM Repeat times Times to repeat the scheduling Day in week List of day in week ASBS Automatic School Bell System Project BELL LIST SCHEDULING SETTING Add Delete all Edit 1 0 9 P M Every week SUN MON TUE WED THU FRI 1 0 1 OPM Every week SUN MON TUE WED THU FRI 1 0 1 9PM Every week SUN MON TUE WED THU FRI 1 0 72 0 P M Every week SUN MON TUE WED THU FRI 1 0 33 PM Every week Figure 10 Schedule list screen 2 4 10 Edit scheduling item When user clicked on Edit button it change to Done button and each scheduling item have an On Off switcher DO Go B 22 32 Repeat time Every week Repeat day CANCEL Figure 11 Edit scheduling item 51 ASBS Automatic School Bell System Project LEUR GS B 22 33 Repeat time Every week Repeat day Sun Choose bell list MINHNGOC CANCEL Figure 11 Edit scheduling item KOK B 22 33 Every week Once times Figure 11 Edit scheduling item 52 ASBS Automatic School Bell System Project KO B 22 33 Figure 11 Edit scheduling item LEA IM 22 33 CJ MINHNGOC C GAHSJS O BELLOO1 O BELLOO2 CJ BELLOO3 CO BELLOO4 O BELLOOS O BELL101 O BELL102 Figure 11 Edit scheduling item 2 4 11 Remove item W
5. Member s absence for unknown keep contact to g e Technology components aren t fit for j purpose Failure to follow Create clear steps 2 reasons member daily Probability A O very unlikely 5 1 unlikely between 5 and 20 2 likely 20 60 3 very likely 6096 Impact B O no expected impact 1 minor budget overrun 1096 and schedule overrun 10 2 medium 3 major budget overrun gt 30 and or schedule 53096 Risk rating A x B Level of seriousness O 2 Low 3 5 Medium 6 9 High 17 ASBS Automatic School Bell System Project Ill System Requirement Specification SRS 1 User Requirement Specification 1 1 Control bell system by using mobile application Users can turn on off bell remote using mobile application Users can connect smart phone to modem 18 ASBS Automatic School Bell System Project Users can disconnect smart phone from Arduino Users can view all bell connect with connected Arduino Users can change status for bell Users can change name of bell on application Users can set timer for bell to turn on turn off scheduling Users can active deactivate timer Users can set notification receiver alarm 1 2 Control bell system by using PC Users can turn on off bell remote using PC Users can connect PC to modem Users can disconnect PC from Arduino Users can view all bell connect with connected Arduino Users c
6. Repeat forever Repeat n times No repeat User choose repeat forever Repeat times input box disappear The user tap on OK in timer_bell_screen Main_screen appears with input selected time repeat day and icon represented to ASBS Automatic School Bell System Project timer status mode changing mode is showed at selected bell s Timer option bar appears below the selected bell Active De active button is showed at De active status Alternative Scenario No 1 1 The user slide to schedule screen Show schedule screen with schedule list The user taps on add button in the Timer option bar timer bell screenappears The user taps on Start time time picker to adjust time The user choose in group of check box to sellect bell in this schedule The user check on Turn ON check box to select the mode for timer The user taps on MON or TUE or WED or SUN button Tapped button s color is changed The user taps on During time picker to adjust time The user click on time schedule to input repeat option Show list option Repeat forever Repeat n times Norepeat User choose repeat n times Repeat times input box appear The user tap on text field in edit repeat times Keyboard appears The user input repeat times The user tap on OK in timer be
7. This bell was turned on manually 2 The button ON OFF at main screen is still at ON state User tap on ON OFF button OFF state at the row represent to the bell at main_screen but the build was disable 1 Show message This bell was disabled 2 The button ON OFF at main screen is still at Disable state Notes and Issues 2 2 2 4 Change name of bell on application USE CASE Change name of bell on application SPECIFICATION 23 ASBS Automatic School Bell System Project 1 2 4 Use case Version 1 0 Change name of bell on application Pham Nam Thang Use case No Use case Name Related Prototype Actor User Description Allow the user change the name represented for the bell The bell name include text character and number Trigger This name have not over five character This name have to start with text character This name allow only alphabet and numberic character Don t have any two bell have the same name Pres conditions UC No 1 2 3 Main Success Scenario Post conditions The name of selected bells is changed Main Success Scenario 1 The user presses taps and hold on bell Edit name dialog appears The user tap on text field in edit name dialog Keyboard appears The user input new name for bell and tap OK button in edit name dialog Edit name dialog appears The name represent for the bell in main_sc
8. Tools Integrated Development Environment Android Development Tools E For build Android ADT ree ADT applications 25 6 3 The open source Arduino environment makes it easy to write code and upload it Arduino Arduino IDE Free to the i o board Itrunson 1 0 6 Windows Mac OS X and Linux Source Source Control TON C9 N Gitlap For source controlling OoOo 11 ASBS Automatic School Bell System Project Documentation Microsoft Word MSDN 2013 Microsoft Excel MSDN For analyzing amp statistics 2013 Microsoft PowerPoint MSDN 2013 Diagram mcs vie moon rose ans Email Gmail Hotmail FPT For informal amp formal For informal Skype Free RAN communicating 10 University email communicating For storing resources documentation 11 Dropbox Free For alternative source code backup Fa Microsoft Project MSDN For project management EN Annotation MSDN The license is retrieved from MSDN Microsoft Developer Network Free Free to use Trial Not free to use but can use for free in a period of time Premium Not free to use and need to pay money to use Table 2 Tools Hardware environment No Mme o Bein 3 laptops with CPU Dual Core i Series 8 GB RAM with Laptop sound card for developing mobile application running Android Emulator and sound processing a Android Tablet Android 5 0 1 OS for testing 12 ASBS Automatic School Bell System Project Android Smart
9. 2 4 5 Input belling name User could be input new bell name LIA A 22 43 Bell name Enter Bell name BELL101 REMOVE Figure 6 Input belling name 48 ASBS Automatic School Bell System Project 2 4 6 Change bell name success When user clicked on ok button the disalog will disappear The button change their name and a new name message will send to bell system After changing bell name success The bell button have a new name instead Kk D F E A 22 44 Bell name Enter Bell name bell201 201 12 31 A iS 6 7 8 9 1O emm lt SES nm E t Figure 7 Chage bell name success 2 4 7 Long name error message If user choose a long name and input more than 5 character a message will be show L2 J OY GB 13 37 BELL LIST SCHEDULING BELL LIST Saal 10 00 13 05 R370 Ringing MU796 Do not using more than 5 character in name Figure 8 Long name error message ASBS Automatic School Bell System Project 2 4 8 Contain space character error If user input non alphabet and numberic character a message will be show CM LAUR AS 13 38 BELL LIST SCHEDULING BELL LIST 10 00 13 05 R370 Ringing MU796 Do not using space character in name Figure 9 Contain space character error 2 4 9 Schedule list screen When user sliding screen to right scheduling screen will be showing It have a control bar include three button Add Add new schedule item
10. Android Development Tools ADT Arduino IDE ASBS Automatic School Bell System Project Each business rule is properly applied All of the following are successfully tested All key use case scenarios All key features All identified defects have been addressed Verify the following Navigation through the target of test properly reflects business functions and requirements including window to window field to field and use of access methods tab keys mouse movements accelerator keys Window objects and characteristics such as menus size position state and focus conform to standards Create or modify tests for each window to verify proper navigation and object states for each application window and objects Each window successfully verified to remain consistent with benchmark version or within acceptable standard N A Name and Type HI LINK HLK RM04 1 1 Super bell Mini speaker m TP LINK Access Point uantity Name and Type Operating system Q 1 1 1 DE 3 m edoSSa pud ADT 36 6 3 Arduino 1 0 5 94 ASBS Automatic School Bell System Project 4 Test Case Reference to file ASBS Testcase final xslm 5 Other material 5 1 Ul Test result a LU Total Turn bell remote using mobile application Connect smart Connect smart phone to modem to Connect smart phone to modem View all bell connect with connected Arduino COA cru cm O
11. Each bell item have four status Stop ringing A red button with blue border Scheduled ring A yellow button with blue border Ringing A green button with blink blue border Disable ring A gray button with blue border Trigger Pres conditions The user start mobile application The user s mobile phone connects to Wi Fi hub successfully Post conditions None Main Success Scenario Step Adoration Systemrespond 1 The user taps on mobile 1 loading screen appear application icon 2 Message Connect to Arduino successfully appear 3 List of bells connect to connected Wi Fi hub appear Alternative Scenario No n None Exceptions Can not connect to Wifi hub 1 Show message Cannot connect to Arduino with reconnect button 2 When user click on reconnect button ASBS Automatic School Bell System Project Notes and Issues 2 2 3 2 Turn on bell remote using mobile application USE CASE Turn on bell remote using mobile application SPECIFICATION Use case No Use case Name Turn on bell remote using mobile application 1 0 Pham Nam Thang Related Prototype Actor User Description High Allow the user to turn on bell using mobile application Trigger Pres conditions Main success scenario UC No 1 3 1 Post conditions The bell is turned on Main Success Scenario 1 User tap on ON OFF button OFF state at the row represent to the bell
12. INTEGER X Primary Id of timer key mme re x Nameftimer 6 1 2 Table alarm Column Tee null Unique P FKey Description bell_list TEXT Foreign List of bell in this alarm key INTEGER NE EN Indicate is timer repeat or not List of day in week day list INTEGER ox rimar hour INTEGER EM EE y Hours of timer minute INTEGER INE EI Kan Minutes of timer V System Implement amp Test In this section Defining how testing would be carried out the test strategy implementation of project ASBS in section 1 Test approach Giving screenshots which show the interface from user s perspective of ASBS Mobile Application in section 2 Screen shots Giving Master Test Plan of ASBS which gathers the information to plan and control the test effort for testing ASBS project It describes the approach to testing the software and will be the top level plan used by testers to direct the test effort in section 3 Test plan Providing test cases based on Test plan In this document only test cases for Ul Test and functional test at level System test will be provided in section 4 Test case Giving checklists as the result of Static testing in section 5 Check list The Test log will be provided in section 6 Other material 89 ASBS Automatic School Bell System Project 1 Test Approach ASBS is an embedded which was developed base on Iterative and incremental process model Ref
13. The user taps on During time picker to adjust time 38 ASBS Automatic School Bell System Project The user click on time schedule to input repeat option Show list option Repeat forever Repeat n times No repeat User choose repeat forever Repeat times input box disappear The user tap on OK in timer_bell_screen Main_screen appears with input selected time repeat day and icon represented to timer status mode changing mode is showed at selected bell s Timer option bar appears below the selected bell Active De active button is showed at De active status Alternative Scenario No 1 1 The user slide to schedule screen Show schedule screen with schedule list The user taps on add button in the Timer option bar timer bell screenappears The user taps on Start time time picker to adjust time The user choose in group of check box to sellect bell in this schedule The user check on Turn ON check box to select the mode for timer The user taps on MON or TUE or WED or SUN button Tapped button s color is changed The user taps on During time picker to adjust time The user click on time schedule to input repeat option Show list option Repeat forever Repeat n times No repeat User choose repeat n Repeat times input box appear 39
14. 26 Tai Thang Trudng ta Tai Thang Trudng 2 3 Coding convention ASBS Project has been developed using Java C C programming language Development team follows Java C C Coding convention Java Coding convention Geotechnical Software Service 2011 Java Programming Style Guidelines C C Coding convention NetBSD 2008a CCoding standard NetBSD 2008b C Coding standard 15 ASBS Automatic School Bell System Project Android Coding convention Code Style Guidelines for Contributor 2 4 Dependencies and Constrains 2 3 1 Dependencies 2 3 1 1 Platform Available libraries Because of constraint on working time and the best approach is to use available libraries on android platform The functions of the application will be limited as the available libraries 2 3 1 2 Hardware component Because ASBS is an embedded project the quality the working process of project and the function of systems rely on hardware component Some hardware component cannot be bought or low quality or too expensive 2 3 2 Constrains 2 3 2 1 Deadline of project The project has hard deadline the team member will try to bring functions into the project at an early stage Failure to deliver the inputs could create delays in the project time line failure to deliver a standard that meets requirements as expected and or removal of requirements from the scope of project Risk All High level risks must have a mitigation strategy developed
15. Android 5 0 1 OS for testing phones This is an embedded module based on the universal serial interface network standard built in TCP IP HI LINK HLK i RMOA protocol stack enabling the user serial port Ethernet wireless network Wi Fi interface between the conversions Arduino Pro Mini Embedded system development v3 0 Wireless Access lal Connecting smart home with ASBS system i Table 3 Error No sequence specified Hardware environment 1 3 2 Techniques For tools amp mobile application programing For android applications programming For Embedded system programming Table 4 Hard skills Presentation skill Team work skill Time management skill Communication skill Conflict resolve Table 5 Soft skills 13 ASBS Automatic School Bell System Project 2 Project Management Plan 2 1 Tasks Software Requirement Hardware belling system Software mobile application Create Software Requirement Specification SRS Create master test plan SRS Deliverable Deliver SRS master test plan before 25th June 2015 Resource 1 people for 2 weeks Needed Software Design Hardware belling system Software mobile application Modeling and design s is Design the system based on OOD architecture for the belling paradigm system Architecture Design Document ADD Software design document SDD A Deliver ADD before 14th July Deliver SDD before 14th July Deliverable 2015 2
16. Authentication success dialog button Alternative Scenario No n None Exceptions User input much more than eight Do not allow user input more than twelve character character User input not enough six character Show message Wrong password format User input non alphabet character or non After user click on OK show message numberic character Wrong password format Notes and Issues 2 2 3 9 Change password Actor User Description Allow user send password to authentication Allow the user input a password to authentication This password have not over twelve character This password have to have atlease six character This name allow only alphabet and numberic character Trigger Pre conditions 1 1 UC No 1 2 1 Main Success Scenario 2 UC No 1 2 8 Main Success Scenario Post conditions User could change password Main Success Scenario 43 ASBS Automatic School Bell System Project User click on Change password button The edit text change password appear Button OK appear Button Cancel appear User tap on edit text password Keyboard appears User input password Show bullet symbol User click on OK button Show Change password success dialog Alternative Scenario No n User click on Change password button The edit text change password appe
17. Ca GC RN CU aaa Deleteallschedule flo fo ha Authentication 2 5 2 Unit test firmware result Features Pased Failed Untested Test Cases Wm las lo 9 la soup 3 lo 0 3 reatenewbel a 0 8 18 Resetimerapt tO Koplo 8 8 Wamdek OO 5 3 System test result ee Total Turn in bell remote using mobile application Connect smart CE CU to modem 95 ASBS Automatic School Bell System Project Arduino View all schedule Add new schedule Delete selected schedule Delete all schedule Change name of bell Authentication 96 ASBS Automatic School Bell System Project VI Conclution This section is the final document produced for the project In this section achieved original objectives will be provided lessons learned will be outlined and formally close the project Automatic school bell system project has achieved the following original objectives Created smart belling system Provided a belling system consist of smart bell Developed a mobile application to control the belling system Implemented all main function of the system All deliverables were delivered and approved on time Lessons learned what did not go well Lesson bus f Project Lesson Description Suggested future action No Impact Team member didn t focus on Preparing communication plan High completing assigned task before kick off project Providing encouragement mechanism with
18. and an owner assigned and is monitored on an ongoing basis by the Project Leadership team Appropriate actions should be taken and ongoing strategy decisions updated as the situation is monitored All changes must be updated on the Risk Log and final actions should be closed before the project is completed All Medium level risks should also have a mitigation strategy developed and an owner assigned however review may take place on a less frequent basis Actions should be monitored and updated and closed before the end of the project Risks rated Low level do not necessarily need a mitigation strategy to be developed A regular review need not be carried out but a final assessment must be made before the project can be closed 16 ASBS Automatic School Bell System Project n Probability Impact Rating VEI Risk Description Mitigation A B AxB Estimates are Continues re inaccurate 3 3 estimates as project go on based on personal experience Change Focus on what management changes are overload Under important Working close communication together to increase communication and reduce wait time Study and use the component as soon as possible to find out if the component is not fit for purpose for team members methodology to follow Limit of Increase research technical time on DSP and knowledge music theory focus on the weak point of team member knowledge Add slack or throat for tasks Try to
19. at main screen Show message Do you want to turn on ringing Show turn on button Main screen User click on turn on button Button ON OFF at main screen transfer to ON state The bell is turned on Alternative Scenario No n None Exceptions User tap on ON OFF button OFF state at the row represent to the bell at main screen but the build was turned off manually 1 Show message This bell was turned off manually 2 The button ON OFF at main screen is still at OFF state User tap on ON OFF button OFF state at 1 Show message This bell was disabled 34 ASBS Automatic School Bell System Project the row represent to the bell at main_screen but the build was disable Notes and Issues 2 The button ON OFF at main screen is still at Disable state 2 2 3 2 Turn off bell remote using mobile application USE CASE Turn off bell remote using mobile application SPECIFICATION Use case No Use case Name Turn off bell remote using mobile application 1 0 Pham Nam Thang Main screen Related Prototype Actor User Description High Allow the user to turn off bell using mobile application Trigger Pres conditions 1 Main success scenario UC No 1 3 1 2 The bell is turned on Post conditions The bell is turned off Main Success Scenario 1 User tap on ON OFF button ON state at the row represent to the bell at main
20. care of that for you BellMinder has an emergency situation alert feature Automatically night ringing savings and Leap Year aware You can even print hardcopies for school and staff notice boards This School Bell Timer can operate independently of the PC once programmed BellMinder can maintain schedules for many days during a power loss 4 3 ASBS s advantages Some advantages of ASBS Support multi language especially Vietnamese Connect with pc Android Control bell in android app Compact system Low price Localize for FPT University 5 System overview description ASBS Automatic School Bell System Project ASBS is state of the art solution that helps users build a belling environment which suitable for users allows users to control Bell system in simple and convenient way with Wi Fi connection between ASBS system and mobile application on smart phone Based on some existed Automatic School Bell System we develop this system with functions Bell system O Multi ringing bell A system of bell locate around FPT University could be ringing together or ringing individual The manager could setting it by Android Application on their smart phone Not only one bell but also this system allow manager could be control a group of bell Each bell connect to main controller by RF Transceiver module TCP server Arduino play a role as a TCP server that handles TCP connection from mobile clients and responses to
21. character Show message Wrong password format User input non alphabet character or non After user click on OK show message numberic character Wrong password format Notes and Issues 2 2 2 9 Change password Author Pham Nam Thang Actor User Description Allow user send password to authentication Allow the user input a password to authentication This password have not over twelve character This password have to have atlease six character This name allow only alphabet and numberic character Trigger Pre conditions 1 1 UC No 1 2 1 Main Success Scenario 2 UC No 1 2 8 Main Success Scenario Post conditions User could change password Main Success Scenario Step Actoraction System respond 1 User click on Change The edit text change password appear password button Button OK appear Button Cancel appear User tap on edit text Keyboard appears password User input password Show bullet symbol User click on OK button Show Change password success dialog 31 ASBS Automatic School Bell System Project Alternative Scenario No n User click on Change password button The edit text change password appear Button OK appear Button Cancel appear User tap on edit text password Keyboard appears User input password Show bullet symb
22. in this alarm schedule wm Wh Ie NN 000000 String getAlarmRepeat Parameters and return owe ome o0 omepm Retum String Get list bell id in this alarm schedule 3 1 2 9 ListButtonAdapter Adapter for list button list view This adapter store data and render view for list button view o Attributes 73 ASBS Automatic School Bell System Project Context context The context to inflate view List lt Button gt listButton List button data lOnButtonClickedListener onButtonClickedListener Listener for button clicked o Operations N A 3 1 2 10 Interface IOnButtonClickedListener This interface implement when user taps into button bell o Attributes N A o Operations void onButtonClicked On the button clicked This method is called when user tap to button bell Parameters and return ta Bab mema MM a 3 1 2 11 ScheduleAdapter This class is binder to bind list of ListView display list of list Bell button on screen with custom style o Attributes N A o Operations N A 3 1 2 12 SlidingTabLayout This class initial the layout of the tab screen o Attributes N A o Operations N A 3 1 2 13 SlidingTabTrip This class initial the layout of the tab title and control the animation of tab changed 74 ASBS Automatic School Bell System Project Attributes N A Operations N A 3 1 2 14 Config This class contain the configuration of this application Att
23. pp STATUS Status of the bell am qe oq fa 3 1 2 7 STATUS o Attributes RINGING the ringing status of bell PREPARING the preparing status of bell STOPING the stop status of bell DISABLE the disable status of bell o Operations N A 3 1 2 8 Alarm The class constain the information of alarm o Attributes int alarmRepeat Repeat times of the alarm int minute Start ringing time int hour Start ringing time int repeatCount Times of repeat String bellld List bell id in this alarm schedule o Operations void setAlarmRepeat int alarmRepeat 71 ASBS Automatic School Bell System Project Parameters and return o ome o0 Bb alarmRepeat Set the repeat times of the alarm Bias AG CA M int getAlarmRepeat Parameters and return D ome om o Been void setMinute int minute Parameters and return Lo owe om o0 mem wm Vh Wh We int getMinute Parameters and return D ome oe o Gem void setHour int hour Parameters and return o we ome o0 Bb am qe oq fa int getHour Parameters and return 72 ASBS Automatic School Bell System Project ome Ba void setRepeatCount int repeatCount Parameters and return D ome oe eon B NL CR int getRepeatCount Parameters and return Lp e Dom Do emm void setListBellld String bellldList Parameters and return om oue Deion listBellld String Set list bell id
24. report 0 days Thu 5 14 15 Thu 5 14 1 Th ng 5 14 1 market research 3 days Fri5 15 15 Tue 5 19 15 Tru ng i Trudng g learn technology 2wks Wed 5 20 15 Tue 6 2 15 7 Tai Thang Tru ng ges T i Th ng Tru ng d Milestone report lb Odays Wed 5 20 15 Wed 5 20 15 5 Th ng 45 20 10 usercase defined 5 days Wed 5 20 15 Tue 5 26 15 9 Truong i Truong BI interface design Sdays Wed5 27 15 Tue 6 2 15 10 Tai e Tal 12 Milestone report I gt 1day Wed 5 27 15 Wed 5 27 15 Th ng Trudng n Th ng Tru ng Pn lt lterative I gt iu design system 3wks Wed 5 27 15 Tue 6 16 15 T i ny Tai Er code android 3 wks Wed 6 17 15 Tue 7 7 15 14 Tai en Tal 16 code PC 3 wks Wed 7 8 15 Tue7 28 15 15 Truong kaa Trung err code adruno 3 wks Wed 7 29 15 Tue 8 18 15 16 Tai Thang Truong des T i Thang Tru nt 18 unit test 4 days Wed 8 19 15 Mon 8 24 15 17 Tai Thang Truong 1 T i Th ng Tri review code ldays Tue 8 25 15 Wed 8 26 15 18 T i Th ng Tru ng m T i Th ng T A Milestone report V gt 0days Tue 6 2 15 Tue 6 2 15 Thang Trudng 6 2 Iterative ll 2 design system 2wks Tue 6 2 15 Mon 6 15 15 Tal mmn Tai ar code android 2 wks Tue 6 16 15 Mon 6 29 15 22 Tai s Tal a code PC 2 wks Tue 6 30 15 Mon 7 13 15 23 Truong je Trung 5 code adruno 2wks Tue 7 14 15 Mon 7 27 15 24 T i Thang Truong des T i Thang Trudng i unittest Adays Tue 7 28 15 Fri7 31 15 25 T i Th ng Trudng v T i Th ng Trudng g review code 2 days Mon8 3 15 Tue8 4 15
25. them Fire warning This system connect with gas sensor and temperature sensor too It s using for detect fire and warning to every one on the building Mobile application O O Schedule bell ringing Allow users to select their favorite task and scheduling ringing plan of belling system with some action Turn on off bell ringing In another side the system manager should control bells by start or stop bell ringing immediately Allow users to turn the bell to on or off intermediate System notification Users can be had the notification about ringing system Example the android application will have the ringing task for warning system manage fire smoke move Show schedule information on Android Prepare an Android application for manage ringing schedule This application showing the schedule and setting up new task delete or edit task PC application o Schedule bell ringing Allow users to select their favorite task and scheduling ringing plan of belling system with some action o Setting User can update realtime change password o Bells Show all bells user can add Wi Fi router ASBS Automatic School Bell System Project o Wireless LAN provider The Wi Fi router plays a role as a bridge which provide wireless local network WLAN for connection between mobile application and Belling system 6 Scope Because of Capstone project s scope we don t focus in building huge system like n Bell connect to n mo
26. 015 Resource 3 people for 2 weeks 2 people for 2 weeks Needed Implementation Hardware belling system Software mobile application Coding firmware M Coding the mobile application Create a smart bell A smart bell Mobile application Deliverable Deliver before 11th August 2015 Deliver before 11th August 2015 Resource 3 people for 4 weeks hardware 2 people for 4 weeks Needed resource Testing 7 gg Hardware belling system Software mobile application Task 14 ASBS Automatic School Bell System Project Unit test for firmware EN uu Unit test specification specification System test specification Deliverable Deliver before 18th August 2014 Deliver before 18st August 2014 Resource Needed 3 people for 1 weeks 2 people for 1 weeks 2 2 Task Sheet Assignment and timetable format olumns Bar Style Gantt Chart Style Show Hide Drawings Task 1 1 192 1 Mode Task Name Duration Start Finish w Predecessors Resource Names AddNewi WS TM FE SW M f W METSWSTMF B start Project 1day Sun 5 10 15 Sun 5 10 15 Tai Thang Trung u T i Thang Tru ng 2f kick off meeting 1day Thu 5 14 15 Thu 5 14 15 6 Tai Th ng Truong y T i Thang Trung division of work 1day Fri5 15 15 Fri5 15 15 2 Tai Thang Trudng a T i Th ng Trudng P name project vs Content 1 day Mon 5 18 15 Mon 5 18 15 3 Tai a Tai perform 5 establish project 1 day Tue 5 19 15 Tue 5 19 15 4 Tai a Tai 6 lt Miliestone
27. 1 NRF24L01 DHT11 fritzing Figure 12 ASBS s Wired circuit diagram Master 84 ASBS Automatic School Bell System Project LU aaa NN a o aM LIT _SRly Keyes fritzing Figure 13 ASBS s Wired circuit diagram Client 5 2 Hardware component Arduino Pro mini Position Main center processing unit Description Arduino Pro Mini uses Atmega328Pchipwhich is an open source physical computing platform Arduino can be used to develop interactive objects taking inputs from a variety of switches or sensors and controlling a variety of bell motors and other physical outputs The microcontroller on the board is programmed using the Arduino programming language based on Wiring and the Arduino development environment based on Processing Duty Get data from mobile application and process it depending on what type of data it got and send feedback to mobile Specification e Operating Voltage 5V e Input Voltage recommended 7 12V 85 ASBS Automatic School Bell System Project Input Voltage limit 6 20V Digital I O Pins 14 PWM Digital I O Pins 6 Analog Input Pins 6 DC Current per I O Pin 40 mA DC Current for 3 3V Pin 50 mA Flash Memory 32 KB Flash Memory for Bootloader 0 5 KB SRAM 2 KB EEPROM 1 KB Clock Speed 16 MHz 5 3 Communication protocol ASBS Command In this section communication protocol between smart phone and ASBS via self defined string called
28. 6 User click on bell lisst for view list of the bell A D B 22 33 C MINHNGOC C GAHSJS CJ BELLOO1 C BELLOO2 CO BELLOO3 CJ BELLOO4 O BELLOOS O BELL101 O BELL102 Step 7 User click on OK button The lisst will be reloaded 103 ASBS Automatic School Bell System Project OG O 22 32 BELL LIST SCHEDULING SETTING Add Delete all 1 0 9 P M Every week SUN MON TUE WED THU FRI 1 0 1 0 PM Every week SUN MON TUE WED THU FRI 1 0 1 9PM Every week SUN MON TUE WED THU FRI 1 0 20PM Every week SUN MON TUE WED THU FRI 1 0 33 P M Every week 1 4 Change authentication password Change authentication password Step 1 User swipe to the left Setting screen will showing up Password D Show password SUBMIT 40 c 61 Step 2 User input the new password 104 ASBS Automatic School Bell System Project O Show password SUBMIT 40c 61 Step 3 User could check on show password check box to show the current password in the edit text view 9999 Show password SUBMIT 40 c 61 Step 4 The edit text box also support user to input password by seeing them 105 ASBS Automatic School Bell System Project 9999 Show password SUBMIT 40 c 61 2 PC Application 2 1 Detect and connect to bell system Detect and connect to bell system Step 1 Click on ASBS icon in PC Loading screen will sho
29. ASBS command will be defined in the following table ASBS command Check is that belling system or not lt setSchedule gt lt hour gt lt minute gt lt alarm Update schedule Repeat gt lt repeatCount gt lt effectedBellCo unt gt lt effectedBells gt lt settime gt lt second gt lt minute gt lt hour gt Set new time Ecco c MM addBell bellID bellName Add a new bell to system removeBell belllD Remove a bell from system Check is that belling system or not Function Check is that belling system or not Format whois Parameters whois Api Return automatic school bell system Update schedule Function Update schedule 86 ASBS Automatic School Bell System Project Format lt setSchedule gt lt hour gt lt minute gt lt alarmRepeat gt lt repeatCount gt lt effectedBellCount gt lt effectedBells gt Parameters setSchedule Api alarmRepeat bit7 bit6 bitS bit4 bit3 bit2 bit1 bitO sat fri thu wed tue ignore this bit minute minute hour hour repeatCount 0 if this schedule is weekly repeat 1 if this schedule is triggered only one time effectedBellCount month the number of bell which this schedule effected effectedBells string of bell ids separated by which is effected by this schedule Return ok if success ERROR if failure Get schedule Function Get schedule Format lt getSchedules gt Parameters getSchedules Api Ret
30. Alarm gt alarm Modify information of a alarm Parameters and return om omm eon alarm List lt Alarm gt List alarm which holds modified Parameter information Alarm will be modify by it s bell id boolean Indicate which edit alarm success or not Return TRUE if deleted success and FALSE in otherwise 64 ASBS Automatic School Bell System Project Alarm getScheduleByBell Bell bell Get list of connected alarm Parameters and return tame ine tendon Bell which want to get schedule Parameter information of it 3 1 2 2 MainApplication This class holds static data which use for whole application That data can be accessed in any Activity Service o Attributes N A o Operations boolean insertBell List Bell bell Insert list new bell to list of connected bell List of connected bell will be updated in database Parameters and return ome ne em List lt Bell gt List of bell which user wants to add to Parameter list of connected bell boolean Indicate which insert a new bell success or not Return TRUE if insert a new bulb success and FALSE in otherwise boolean deleteBell Bell bell Delete a bell from list of connected bell List of connected bell will be updated into database also Parameters and return Dorem ome emm 65 ASBS Automatic School Bell System Project boolean Indicate which delete bell success or not Return TRUE if deleted success and FALS
31. E in otherwise boolean editBell List lt Bell gt bell Modify information of a bell List of connected bell will be updated in database Parameters and return Do om ome sin List lt Bell gt List bell which holds modified Parameter information Bell will be modify by it s bell id boolean Indicate which edit bell success or not Return TRUE if deleted success and FALSE in otherwise List lt Bell gt getListBell Get list of connected bell List of connected bell will be updated in database Parameters and return tome O NNN List lt Bell gt Return list of connected bell from database boolean insertSchedule List lt Alarm gt alarm Insert list new alarm to list of connected alarms List of alarm will be updated in database Parameters and return Do pom Dome oo Demum 0 Parameter alarm List lt Alarm gt List of alarm which user want to add to list of connected alarms 66 ASBS Automatic School Bell System Project success or not Return TRUE if insert a new bell success and FALSE in otherwise boolean deleteSchedule Alarm alarm Delete a alarm from list of connection alarms List of alarm will be updated in database Parameters and return ENMEL MM RR RN Parameter alarm Alarm Alarm which user wants to delete from nn NN dE list of connected alarms boolean Indicate which delete alarm success or not Return TRUE if deleted success and FALSE in otherwise boolean editSchedu
32. FEIT Fpt University Capstone Project Document Automatic School Bell System Project Pham Nam Thang 60495 Nguyen Huu Tai 60042 Group Members Nguyen Xuan Truong 60465 Le Viet Anh SE02219 Hanoi 06 2015 ASBS Automatic School Bell System Project Table of Contents IN sS sop c AA 1 INE ES Ro RTT Umm 1 Bee UNG GI ed ce ea coat bud t ead side taal decade AA AB OOH 1 3 Nump or MIS eapstore Projets eoe oio vada TA eee ua AG 2 LEID AA ATA E eT 2 4 Ampletrails Automatic School Bell Model ASBAO see 2 4 2 ME UCT an scenery NEA NMA NA NAA ANONG AA este Eau php bd m ESEE 4 A3 ASBS S dV ana NA AA AA aire prit DUM QU Siu UR Gimp DR c pde e 5 System overview descEIDDON ouo itus dieci Or sb AA io Real idus pau Eb eeu dE 5 res e D 7 IL Project Management Plan PMP a ANGAS GG aa a E R s 8 Ti Proj ct Organizatii acd aeceets dens E sitis 8 Ll System Process model NAA deoa pas KAG 8 la ROIG and responsibility osisssa aka ee cds etas nen eee eee d tuendi 9 1 3 Pts hain Te CHGS P P 11 2 Project Management Paa ros sence eves PAANAN 14 a a mM e ne ney e err unre ene eer R 14 2 2 Task Sheet Assignment and timetable acc aanak kasa anak Is 2 3 Coding COA MUO oiii ea aos each act eu s ERR aA aaaeei Em a aT d EN UUE 15 2 4 Dependencies and Constrains eeeseessesseseesesressrser
33. Remove selected timer from schedule screen Main Success Scenario 1 The user click on Edit Show check box to the left of timer item button The user check on delete Show dialog Do you want to delete this selected check box timer The user tap on OK Remove selected timer from list button Alternative Scenario No 1 41 ASBS Automatic School Bell System Project The user click on Edit Show check box to the left of timer item button The user check on delete Show dialog Do you want to delete this selected check box of the timer last timer The user tap on OK Clear all timer on the screen button Exceptions Notes and Issues 2 2 3 8 Authentication USE CASE Authentication SPECIFICATION Amor Pham Nam Thang Actor User Description Allow user send password to authentication Allow the user input a password to authentication This password have not over twelve character This password have to have atlease six character This name allow only alphabet and numberic character Trigger Pre conditions 1 1 UC No 1 2 1 Main Success Scenario Post conditions User could use all of another feature Main Success Scenario User tap on edit text Keyboard appears password 42 ASBS Automatic School Bell System Project User input password Show bullet symbol User click on Submit Show
34. Success Scenario Step Adoratin Systemrespond 1 The user taps on mobile 1 loading screen appear application icon 2 Message Connect to Arduino successfully appear 3 List of bells connect to connected Wi Fi hub appear Alternative Scenario No n None Exceptions Can not connect to Wifi hub 1 Show message Cannot connect to Arduino with reconnect button 2 When user click on reconnect button reconnect to wifi hub Notes and Issues 2 2 2 2 Turn on bell remote using mobile application USE CASE Turn on bell remote using mobile application SPECIFICATION ASBS Automatic School Bell System Project Use case Name Turn on bell remote using mobile application Actor User Description Allow the user to turn on bell using mobile application Trigger Pres conditions Main success scenario UC No 1 2 1 Post conditions The bell is turned on Main Success Scenario 1 User tap on ON OFF button OFF state at the row represent to the bell at Show message Do you want to turn on ringing Show turn on button main_screen Button ON OFF at main_screen transfer to ON state The bell is turned on User click on turn on button Alternative Scenario No n None Exceptions User tap on ON OFF button OFF state at the row represent to the bell at main_screen but the build was turned off manually 1 Show message This bell
35. Wi Fi To interact with the belling system the user s device connects to each bulb to provide name Wiki Service Smartphone DE set 802 11 network and password of Wi Fi connection which user s Wi Fi router provides The user s Smartphone need installed ASBS Application to control the belling system The user s Desktop connects to the Belling system via Wi Fi To interact with the belling system the user s device Desktop connects to each bulb to provide name Wiki Service set 802 11 network and password of Wi Fi connection which user s Wi Fi router provides The user s Desktop need connect to system web to control the belling system The belling system consists of one or many bell group Each bell group contains 1 bell 1 Adruino and 1 Belling system Wireless module The Wireless module plays a role as TCP server to receive TCP connection from the user s Smartphone and 58 ASBS Automatic School Bell System Project respond The Wireless module can handle gt 20 TCP connection Hi Link co Itd HK RM04 User Manual Adruino module will take the request process and control bell Each bell group needs connecting to the user s Wi Fi router via Wi Fi before being controlled by The mobile application The Wi Fi router plays an important role in the system The whole system is already in use when the user s m Smartphone connect to the Wi Fi router successfully Wi Fi router ae the belling syst
36. an change status for bell Users can change name of bell on application Users can set timer for bell to turn on turn off scheduling Users can active deactivate timer Users can set notification receiver alarm System Requirement Specification 2 1 External Interface Requirement 2 1 1 User interfaces User Interface UI of mobile application must be design base on Flat UI Design 2014 Wikipedia In scope of this project the development team only develops mobile application on Android platform so the Ul must design follow Android Design Principle n d Android and Android Design Patterns n d Android 2 1 2 Hardware interfaces The mobile application only runs on smart phone which support Android 4 0 and Wifi connection Arduino n d Arduino used in the belling system is Arduino Pro Mini 3 0 Module RFXY433 was used for the connection between Arduino and bell 2 1 3 System interfaces The mobile connect to Wi Fi router via Wi Fi and the rigning system connects to the router via Wi Fi to create Wireless Local Area Network which allows the mobile to connect to multiple bells in the ringing system 19 ASBS Automatic School Bell System Project 2 1 4 Communication protocol Communication between smart phone and UART Wi Fi Module is via Wi Fi local using TCP IP protocol Communication between Wi Fi module and Arduino is serial communications Communication Protocol between smart phone and Arduino via specia
37. ar Button OK appear Button Cancel appear User tap on edit text password Keyboard appears User input password Show bullet symbol User click on Cancel button The edit text change password disappear Button OK disappear Button Cancel disappear Exceptions User input much more than eight character Do not allow user input more than twelve character User input not enough six character Show message Wrong password format User input non alphabet character or non numberic character After user click on OK show message Wrong password format User input the same password with previous password Notes and Issues 2 2 3 10 Message list Connect to Arduino successfully Don t do anything Cannot connect to Arduino Do you want to turn on ringing This bell was turned off manually Do you want to turn off ringing This bell was turned on manually 44 ASBS Automatic School Bell System Project This bell was disabled Please input only alphabet character or numberic character Do not using empty name This name is already in use by another bell Do you want to clear all list schedule Do you want to delete this timer Authentication success Wrong password format Change password success 2 3 Non funct
38. ave to Parameter the xml file boolean isGetNotification Get the flag get notification from the xml file Parameters and return eme oe eon boolean Get the flag get notification from the xml file void saveNotificationNextRinging boolean isNotification Save the flag is get notification next ringing to the xml file Parameters and return eme oe eon isNotification The flag is get notification next 76 ASBS Automatic School Bell System Project pm qe oq qwe boolean isGetNotificationNextRinging Get the flag is get notification next ringing from the xml file Parameters and return Lo owe ome o mem boolean Get the flag is get notification next ringing from the xml file boolean Get the flag get notification from the xml file void saveNotificationFromAnother boolean isNotification Save the flag is get notification from another to the xml file Parameters and return o we ome o memm 0 isNotification boolean The flag is get notification from Parameter another to save to the xml file N A boolean isGetNotificationFromAnothe Get the flag is get notification next ringing from the xml file Parameters and return owe ome o0 mem boolean Get the flag is get notification from another from the xml file 3 1 2 16 MainActivity This class is the activity control the bell o Attributes 77 ASBS Automatic School Bell System Pr
39. bile devices and supporting multiple mobile platforms However we focus on building stable 1 1 system 2 Bell connects to 1 mobile device and 2 sub systems with all functions and features will be constructed and developed In this project we use Arduino platform for building belling system and Android platform for programming mobile application and optimal control on PC application ASBS Automatic School Bell System Project Il Project Management Plan PMP In this section Outlining the project s organization In this section the information about chosen system process model will be provided a detailed outline about team members their role and responsibility will be given in section 1 Analyzing all sectors in project management plan including task time line coding convention dependencies and constraints risk in section 2 Meeting minute collection will be showed as an appendix in APPENDIX 1 Project Organization 1 1 System process model Although almost member have at least 3 years with Java 1 year with Android Platform and 1 year freelancers experience But cause of lacking experience in embedded project ASBS s development team decided to choose interactive and incremental development model Requirements Analysis amp Design i Plannin 4 Initial g a Implementation Planning Management Environment Test Evaluation Deployment The Rational Edge 2003 the Ten Essential of RUP ASBS
40. bonus and penalty System architecture is not System architecture design Medium stable need to be approved by supervisor before implementing 97 ASBS Automatic School Bell System Project VII System User s Manual SUM In this section Providing Installation Guide to show how to set up ASBS system at home Setup hardware set up ASBS belling system consists of smart bell Setup software set up ASBS mobile application on the user s smart phone Providing User s Guide to guide users how to use ASBS mobile application to control ASBS belling system In scope of a User manual from this part You pronoun will be used that mean the user who buys and uses ASBS Belling system 1 Android Application 1 1 Detect and connect to bell system Detect and connect to bell system Step 1 Click on ASBS icon from list app Loading screen will showing Ho cO 5 A 17 00 Connect to device please wait iP Step 2 Waiting for Connector Application finding ASBS Belling system If finding success showing list bell screen 98 ASBS Automatic School Bell System Project LAT AES 22 30 BELL LIST SCHEDULING SETTING BELLOO1 BELL002 BELLOO3 BELL004 BELL005 ADD BELL Step 3 If can find belling system a error dialog will be showed LES B 17 02 Can not connect to device May be you dont open the device or the wifi had been turn off 1 2 Turn on bell Turn on bell Step 1
41. companies and satisfaction from customers In the market today there are many product such as Automatic School Bell Systems But it too old and not suitable University school In this scope of our 1 ASBS i gt Automatic School Bell System Project project we just develop some useful and necessary functions that suitable for FPT University Come from actual needs and suggestion of our supervisor Mr Son our group decided to develop a project provide Automatic School Bell System aim to resolve problems related to priority of customers who need to make notification between them and another for examples Hospitals Schools Banks Stations etc with more satisfactions and save time cost for both consumers and organizations as well ASBS is developed with 4 main modules in original The first module is abstracted in Android device to control all other modules operations and also interacts with users in software programmed in Android framework by using Java In second module we designed a small main controll broad includes Raspberry Pi adruino and NRF24L01 to make communication with other modules in system The third module will display to customers all important information in a 7 SEG LED And the last module is ringing system Name of this capstone project The official name of this project is ASBS Automatic School Bell System Project Existing system 4 1 Ampletrails Automatic School Bell Model ASBAO Beta Techn
42. d appears edit name dialog The user input new name Edit name dialog appears for bell and tap OK The name represent for the bell in button in edit name dialog main screen is changed Soft keyboard disappears Alternative Scenario No 1 36 ASBS Automatic School Bell System Project The user presses on bell Edit name dialog appear edit name dialog The user tap on text field in Keyboard appears The user input new name for bell and tap Cance button Edit name dialog appear The name represent for the bell in main screen is not changed Soft keyboard disappears Alternative Scenario No 1 The user presses on bell Edit name dialog appear edit name dialog The user tap on text field in Keyboard appears The user input new name for bell and tap OK button in edit name dialog The new name is the same name with previous name of this bell Edit name dialog appear The name represent for the bell in main screen is not changed Soft keyboard disappears Exceptions User input much more than eight character Do not allow user input more than five character User input non alphabet character or non numberic character dialog show message Please input only After user click on OK button in edit name alphabet character or numberic character User clear text in edit text a
43. d is event driven programming so controller have a special role and very important Model o Android is not only event driven programming but also object oriented programming So it use model as class hold all information of separate entity in system o The model also contain class help application interact with SQLite database includes create insert edit and get data from database of application It help application can store static which use in any time unless user uninstall application Common o Contains all utilities class and services help application send data to bulbs through TCP IP protocol For details the following diagram shows structure of the mobile application 60 ASBS Automatic School Bell System Project EN fpt ale 8 Ibs fpt fragment Ibs fpt services pama haaa aaah eee eee I i i L 8 E E Ibs fpt view poppe Ibs fpt adapter Ibs fpt listener I I I i L L L I i Ibs fpt util B pv a Se AA Figure 3 Structure diagram Package explanation EN Lbs fpt Contains all class activity and main application class 2 Ibs fpt fragment Contains all fragment class using in application Contains service class which interact with network Ibs fpt services and send receive data from group bell Ea Ibs fpt utils Contains utilities class of application E Ibs fpt view C
44. dieit AA AA 89 V System Implement amp Test ET H 89 1 Test nno 90 bois c 93 2E dun mE 93 E3MEE 00100037 CRT 93 3 2 Feature not to be tested quee heute baiulo Enna AA 93 33 LE ca Ac AA 93 lh s 5 c GA 95 53 Other MRT NE Um e UEM 95 SEES x el m YH 95 3 Unit test firmwar TO SUE iiie oo pos opiates thas AA ES 95 5 3 Systemi test POSUE ede onec ostendant BRP TE 95 VI ev dni 97 VII System User s Manual S UND a eosam Penes ahi od pk nk MENSEM MO pa EU AA SR RM RR ca UE 98 1 Android Application a aa 98 ll Detect and connect to bell system 0a AA 98 1 25 T m on bell eii TT m 99 L3 Update KRUNG 100 1 4 Change authentication password ak AG 104 2x PC Applcati n scienee AGA AA AA AA 106 2 1 Detect and connect to bell system Lama aaa 106 24 NUON bella NGA e a aa ine Ro ai a ara enl AASR aSa 107 2235 Update schedule a eerie on toii id nd a tie d bei Ehe 108 24 DONA 109 W Gc aTa 110 ASBS Automatic School Bell System Project Introduction In this section Provides starting information of the project like team member in section 1 and the initial idea in section 2 Comments existing systems which have same function with their advantages disadvantages and
45. dule 2 1 makeRequestAddSchedule 2 2 requestAllSchedule Figure 6 Set alarm for bell 3 1 3 6 Delete all alarm 80 ASBS Automatic School Bell System Project sd Delete all alarm 1 getAllListSchedule 2 1 makeRequestDeleteSchedule 2 2 requestDeleteSchedule Figure 7 Delete all alarm 3 1 3 7 Delete selected alarm sd Delete selected alarm 1 requestDeleteSchedule 1 1 makeReuestDeleteSchedule 1 2 requestDeleteSchedule 2 removeScheduleFromList Figure 8 Delete selected alarm 3 1 3 8 Change password 81 ASBS Automatic School Bell System Project sd Change password 1 changaPassword 1 1 makeRequestChangePassword 1 2 requestChangePassword 2 updateNewPassword 3 refresh Figure 9 Change password 4 User Interface Design Reference to Prototype 5 Hardware Interface Design 5 1 Hardware description The Auto Bell is based on the Arduino Pro mini with an integrated Wi Fi module and 3 super bell The following illustration shows the wired circuit diagram and schematic diagram of the Automatic school bell system 82 ASBS Automatic School Bell System Project fritzing NRF24L1 fritzing Figure 11 Schematic Diagram Client 83 ASBS Automatic School Bell System Project Arduino Ethernet Shield ETHERNET SHIELD DS1307 RTC Relay 5V 1A EJ HC SR50
46. ean deleteBell bell Bell boolean editBell listBell List Bell boolean getListBellO List lt Bell gt insertBell listBell List lt Bell gt boolean deleteBell bell Bell boolean editBell listBell List lt Bell gt boolean getListBellQ List lt Bell gt insertSchedule listAlarm ListsAlarm boolean deleteSchedule alarm Alarm boolean editSchedule alarm ListsAlarm boolean SlidingTabLayout editSchedule listAlarm ListsAlarm boolean insertSchedule alarm ListsAlarm boolean deleteSchedule alarm Alarm boolean getScheduleByBell bell Bell Alarm getScheduleByBell bell Bell Alarm Figure 1 Class diagram 3 1 2 Class Diagram Explanation 3 1 2 1 Class Database This class is help mobile interact with SQLite database of application It store information of connected bulbs o Attributes N A o Operations boolean insertBell List Bell bell Insert list new bell to list of connected group bell Parameters and return Dom ome bw Parameter List lt Bell gt List of bell which user want to add to list of connected group bell 62 ASBS Automatic School Bell System Project boolean Indicate which insert a new bell success or not Return TRUE if insert a new bell success and FALSE in otherwise boolean deleteBell Bell bell Delete a bell from list of connection group bell Parameters and return o que ue baa Parameter Bel
47. em connects to the Wi Fi router successfully Thus all bell group in the belling system is in the same WLAN with the user s Smartphone 2 2 Mobile Application Architecture The following diagram shows the architecture of the mobile application Common Database Entity Sqlite Database Figure 2 Mobile Application Architecture View o Contains all class activity fragments and custom widgets are responsible for define the structure layout and appearance of what display on screen and user can interact with them 59 ASBS Automatic School Bell System Project o The structure of view is define on XML file called is layout file and store in res folder o Each activity is a screen and it can hold some of fragments which is separation of screen It helps make a dynamic structure of screen and awesome effect when changing screen o Project using some of custom widgets help application have beautiful design Controller o Thecontroller can understand as a bridge between data and view on screen It helps transfer information of model to view display on screen o It helps to retrieves data from model and makes it visible on screen in custom structure of layout like all class Adapter interacts with ListView The Adapter class help list of item on screen not only have a text but also rich of format with image change color of text and more o Thecontroller also implements all listener of user s command to class Androi
48. ems on the market BellMinder is a custom developed School Bell System specifically designed for automating school bells from the most basic schedules to the most complex A full year time schedule can be implemented in minutes and schedule changes in seconds BellMinder has a unique School Bell Program that s based around a clear easy to follow year planner format It enables you to assign multiple reusable schedules using your office PC by days weeks or months Whether your school operates a manual system audio based industrial electronic timer or is controlled by your Alarm company BellMinder beats them all with accuracy functionality ease of setup flexibility and running costs You can even activate our School Lockdown feature to respond to emergency incidents that can occur in modern schools ASBS Automatic School Bell System Project Some advantage of BellMinder With BellMinder you are no longer limited to just daily timetable schedules Now you can configure in sports day activations exam schedules and parent teacher interviews In fact any event that you can think of can be programmed in seconds With BellMinder you can implement alternative schedules that run in the background and can be called into service at the press of a button These are especially useful if you run Snow Day timetable or a wet day time table No need to remember to switch back to the main schedule for the next day BellMinder automatically takes
49. erence to ASBS Report 2 Part Il Project Organization Testing does not exist in isolation testing activities are related to software development activities ISTQB 2011 Thus all testing activities in ASBS project must relate to the Iterative and incremental project model The following figure gives a view into how testing activities can interact with the iterative model Systemic Testing Figure 1 Testing activity in the Iterative model However because of the characteristic of the system and little changing in system Regression test won t be done the scope of ASBS project Component test a k a Unit test Test basis e Component requirement e Detailed Design e Code Typical test object e Components e Programs e Data conversion e Database modules Component testing also known as unit module or program testing searches for defects in and verifies the functioning of software modules programs objects classes etc that are separately testable It may be done in isolation from the rest of the system depending 90 ASBS Automatic School Bell System Project on the context of the development life cycle and the system Stubs drivers and simulators may be used Component testing may include testing of functionality and specific non functional characteristics such as resource behavior e g searching for memory leaks or robustness testing as well as structural testing e g decision coverage T
50. est cases are derived from work products such as a specification of the component the software design or the data model Typically component testing occurs with access to the code being tested and with the support of a development environment such as a unit test framework or debugging tool In practice component testing usually involves the programmer who wrote the co de Defects are typically fixed as soon as they are found without formally managing these defects One approach to component testing is to prepare and automate test cases before coding This is called a test first app roach or test driven development This approach is highly iterative and is based o n cycles of developing test cases then building and integrating small pieces of code and executing the component tests correcting any issues and iterating until they pass Integration test Test basis e Software and system design e Architecture e Workflows e Use cases Typical test object e Subsystems e Database implementation e Infrastructure e Interfaces e System configuration and configuration data Integration testing tests interfaces between components interactions with different parts of a system such as the operating system file system and hardware and interfaces between systems There may be more than one level of integration testing and it may be carried out on test objects of varying size as follows 1 Component integration testing tests the inte
51. hen user clicked on switcher button the item will be disappear and a remove message will send to belling system 53 ASBS Automatic School Bell System Project eus OF AREE BELL LIST SCHEDULING BELL LIST LL Add Delete all Done 11 30am Scheduled every day 11 30am Scheduled every day 11 30am Scheduled every day 66 6 Figure 12 Remove item 2 4 12 Delete all list schedule When user delete all schedule a delete all message will send to belling system e UR GO B 22 34 Do you want to clear all list schedule NO YES Figure 13 Delete all list schedule 2 4 13 Setting screen User sliding to setting screen to authentication with belling system 54 ASBS Automatic School Bell System Project kd LIU FS B 22 34 BELL LIST SCHEDULING SETTING L Show password SUBMIT Figure 14 Setting screen 9 Oh ws B 22 35 BELL LIST SCHEDULING SETTING O Show password SUBMIT 1 2 ABC 3 DEF 4 cH 5 JKL 6 MNO 7 Pars 8 Tuv 9 wxyz 0 Xong V o pz Figure 14 Setting screen 2 4 14 Show passwrod when input If not sure about input thing user could be check on Show password check box to show password 55 ASBS Automatic School Bell System Project 9 D A 22 34 BELL LIST SCHEDULING SETTING baga Show password SUBMIT Figure 15 Show password when input o LIU AEN 22 34 BELL LIST SCHEDULING SETTING 9999 S
52. how password SUBMIT Figure 15 Setting screen 56 ASBS Automatic School Bell System Project IV System Design Document SDD In this section Giving a general description of the functionality context and design of ASBS In section 1 Indentifying subsystems components and the role or responsibility assigned to them Describing the overall architecture of the system the architecture of each subsystem and component in section 2 Describing detailed structure for each component and function followed to main functions It includes class diagrams class explanations and sequence diagrams of the main use cases in section 3 Describing the functionality of the system from user s perspective Explaining how the user will be able to use ASBS to complete all the expected features and the feedback information that will be displayed for the user Giving screenshots which show the interface from the user s perspective in section 4 Describing the hardware interface of the belling system in section 5 Describing the structure of data in section 6 1 System Overview Refer to Part I Introduction Section 4 System Overview Description 57 ASBS Automatic School Bell System Project 2 System Architecture 2 1 Overall System Architecture O 0 Bell Cc Wireless module Arduino Bell Figure 1 Overall system architecture The user s Smartphone connects to the Belling system Via
53. ional Requirement 2 3 1 Reliability Status of group bell must be the same as status displayed on the mobile application Mobile application must work correctly with belling system have no conflict between devices Belling system must work constantly under high temperature and humidity especially in Vietnam with monsoon Embassy of Vietnam 2007 2 3 2 Availability The mobile application is easy to connect to belling system to transform data All group bell in connected belling system must be operated Power of components like include Wireless Access Point Master System Bell and Smart Phone is stable and available 2 3 3 Security Because of using Wi Fi connection the connection between the smart phone and the belling system is protected by Wi Fi security protocols Wikipedia 2014 2 3 4 Maintainability Implementation code must be follow coding standard clearly commented for maintaining and enhancing system in the future All group bell in belling system can be replaced easily 2 3 5 Portability The mobile application can be installed on a smart phone or tablet 45 ASBS Automatic School Bell System Project 2 3 6 Performance 60 second is maximum time for mobile application to connect to belling system and operate available group bell in the belling system System must response a request from user in maximum 2 seconds 2 4 Prototype 2 4 1 Belling list screen This screen appears when use
54. ject technical aspect Research and answer technical questions of team members Report to manager about techniques Create guideline for team members QA Test Manager Le Viet Anh SE02219 Test Manager is in charge of control test activities and control quality Co ordinate all testing phases Train team members to use testing tools Control create review test plan Control execute test phase of project Control quality of project Configuration Manager Nguyen Xuan Truong 60465 Configuration Manager is person who takes responsibilities for configuration management in project Create configuration management plan 10 ASBS Automatic School Bell System Project Ensure that directories in the server repository are correctly structured and correct permissions Train team members to use server when requested via email or during work sessions team or project manager project supervisor meetings Perform baseline procedures when requested by the project manager project supervisor Designer Designer role in project team is mainly responsibility for create design document of project Developer Developer role in project team is mainly responsibility for create project module unit test and fix bug of project module Tester Tester role in project team is mainly responsibility for create test document of project execute test phase 1 3 Tool and Techniques 1 3 1 Tools
55. l Two user input the same name with a bell or another bell by two diffence mobile device The slower user device show message This name is already in use by another bel User press on bell and slide to another screen during the time of the edit text dialog showing Notes and Issues 2 2 2 5 Set timer for bell Disappears the edit name dialog USE CASE Set timer for bell SPECIFICATION Use case Name 1 0 Set timer for bell 25 ASBS Automatic School Bell System Project Actor User Description Allow the user set timer action and the time for action for bell User will be created ringing schedule Trigger Pres conditions UC No 1 2 1 Main Success Scenario Post conditions Timer is set for selected bells Main Success Scenario The user slide to schedule screen Show schedule screen with schedule list The user taps on add button in the Timer option bar timer bell screenappears The user taps on Start time time picker to adjust time The user choose in group of check box to sellect bell in this schedule The user check on Turn ON check box to select the mode for timer The user taps on MON or TUE or WED or SUN button Tapped button s color is changed The user taps on During time picker to adjust time The user click on time schedule to input repeat option Show list option
56. l strings called ASBS command will be defined in Communication Protocol ASBS command 2 2 Functional requirement 2 2 1 General Use Case Diagram pec mg Change password View all bell connect pe N O p Xx Authentication Turn off bell remote a rA n eet p Wd Uger be TN r Delete selected timer Turn on bell remote Delete all timer Set timer for bell Change name of bell a CNN pawa etf woo a Figure 1 Usercase diagram 2 2 2 Functional Requirement for mobile All the user s gesture which interact with smart phone s touch screen is referenced follow Touch Gesture Reference Guide 2010 Luke Wroblewski 2 2 2 1 View all bell connect with connected Wi Fi hub USE CASE View all bell connect with connected Wi Fi hub SPECIFICATION Use case Name View all bell connect with connected Wi Fi hub 20 ASBS Automatic School Bell System Project Author Pham Nam Thang Related Prototype Actor User Description Allow the user view all bell connect with connected Wi Fi hub Each bell item have four status Stop ringing A red button with blue border Scheduled ring A yellow button with blue border Ringing A green button with blink blue border Disable ring A gray button with blue border Trigger Pres conditions The user start mobile application The user s mobile phone connects to Wi Fi hub successfully Post conditions None Main
57. l which user wants to delete from uu EN E list of connected bell boolean Indicate which delete bell success or not Return TRUE if deleted success and FALSE in otherwise boolean editBell List lt Bell gt bell Modify information of a bell Parameters and return Doom a mem List lt Bell gt List bell which holds modified Parameter information Bell will be modify by it s bell id boolean Indicate which edit bell success or not Return TRUE if deleted success and FALSE in otherwise List lt Bell gt getListBell Get list of connected bell Parameters and return tome ome nn List lt Bell gt Return list of connected bell from database 63 ASBS Automatic School Bell System Project boolean insertSchedule List lt Alarm gt alarm Insert list new alarm to list of connected alarms Parameters and return D om ome eon Parameter alarm List lt Alarm gt List of alarm which user want to add to list of connected alarms boolean Indicate which insert a new alarm success or not Return TRUE if insert a new bell success and FALSE in otherwise boolean deleteSchedule Alarm alarm Delete a alarm from list of connection alarms Parameters and return UU eme me enim Parameter alarm Alarm Alarm which user wants to delete from list of connected alarms boolean Indicate which delete alarm success or not Return TRUE if deleted success and FALSE in otherwise boolean editSchedule List lt
58. le List lt Alarm gt alarm Modify information of a alarm List of alarm will be updated in database Parameters and return OO om TO emm alarm List lt Alarm gt List alarm which holds modified Parameter information Alarm will be modify by it s bell id boolean Indicate which edit alarm success or not Return TRUE if deleted success and FALSE in otherwise Alarm getScheduleByBell Bell bell Get list of connected alarm List of alarm will be updated in database Parameters and return tae Th Ba Bell which want to get schedule Parameter information of it 67 ASBS Automatic School Bell System Project 3 1 2 3 MainActivity This class is Activity for bell controller o Attributes N A o Operations void initContext Initiate context variables for activity such as Context Activity list of connected bell from database Parameters and return om Bb mam qw void initView Initiate main layout of activity Parameters and return Dopo a Bab mam e 3 1 2 4 SendSocket Class extend from AsyncTask using for send command to bell while setup a new bell o Attributes N A o Operations void SendSocket String ssid int port Constructor of class Parameters and return DU tame a ba ssid String o IP address of bell which want to setup Parameter 68 ASBS Automatic School Bell System Project EEE boolean dolnBackground String param Method ru
59. ll screen Main screen appears with input selected time repeat day and icon represented to timer status mode changing mode is 27 ASBS Automatic School Bell System Project showed at selected bell s Timer option bar appears below the selected bell Active De active button is showed at De active status Exceptions Notes and Issues 2 2 2 6 Delete all timer Actor User Description Allow the user delete all timer in schedule screen Trigger Pres conditions 1 UC No 1 2 1 Main Success Scenario 2 UC No 1 2 5 Main Success Scenario Post conditions Clear schedule screen Main Success Scenario 1 The user click on Delete Show dialog Do you want to clear all list all button schedule The user tap on OK Clear all timer on the screen button Alternative Scenario No n None Exceptions ASBS Automatic School Bell System Project Notes and Issues 2 2 2 7 Delete selected timer USE CASE Delete selected timer SPECIFICATION Actor User Description Allow the user delete all timer in schedule screen Trigger Pres conditions 1 UC No 1 2 1 Main Success Scenario 2 UC No 1 2 5 Main Success Scenario Post conditions Remove selected timer from schedule screen Main Success Scenario 1 The user click on Edit Show check box to the left of timer item button The user check on delete Show dialog Do you
60. n while send command to bell Parameters and return tame he em boolean TRUE if send command success and FALSE in otherwise 3 1 2 5 SendSchedule Class extend from AsyncTask using for send command to bell system while setup a new schedule o Attributes N A o Operations void SendSchedule String ssid int port Constructor of class Parameters and return ow mme oo meme 0 IP address of bell which want to setup Parameter mot Cc Port of connection 9119 M er aaa boolean dolnBackground String param Method run while send command to bell Parameters and return eme one bm boolean TRUE if send command success and FALSE in otherwise 3 1 2 6 Bell Bell class using to hold bell information 69 ASBS Automatic School Bell System Project o Attributes int id Identify of the bell String name Name of the bell String status Status of the bell o Operations String getld Parameters and return Doom om Bab void setID String id Parameters and return P om ome sn wem We 0 We IR String getName Parameters and return Dopo om 0 Bb void setName String name Parameters and return tame a baa NN am p lak fa STATUS getStatus 70 ASBS Automatic School Bell System Project Parameters and return D ome oam bm Return STATUS Status of the bell void setStatus STATUS status Parameters and return ome ome 0
61. nce Sunday Monday Tuesday Wednesday Thursday Friday Effected Bells F test CJ laul lau2 Step 2 User click on OK button The lisst will be reloaded 4 Bell Manager Bells Schedule Setting Status Time _ Repeat 8 27 2015 1 53 00 AM 8 27 2015 1 53 00 AM Once 8 27 2015 1 55 00 AM 8 27 2015 1 55 00 AM Sunday Monday Tuesday Wednesday 2 4 Setting In setting screen is showing up 109 ASBS Automatic School Bell System Project Bell Manager Bells 3 Schedule Setting Status Setting Motion Temperature and Humidity Detection CD Current Time 01 54 AM 01 54AM About Limit Old password Temperature limit 1 00 New password Humidity limit 4 00 Change Password User can update time change password and update limit Temperature humiditylimit and turn on or off Motion temperature Humidity 2 5 Status Step 1 In Status Screen is showing Weather info Bell Manager Bells Schedule Setting Status Weather Info Temperature 32 00 C Humidity 41 0096 110
62. nd click on Show message Do not using empty name OK button in edit name dialog User input the same name with another bell Show message This name is already in use by another bell Two user input the same name with a bell The slower user device show message This or another bell by two diffence mobile name is already in use by another bell device User press on bell and slide to another Disappears the edit name dialog screen during the time of the edit text dialog showing Notes and Issues 37 ASBS Automatic School Bell System Project 2 2 3 5 Set timer for bell USE CASE Set timer for bell SPECIFICATION Actor User Description Allow the user set timer action and the time for action for bell User will be created ringing schedule Trigger Pres conditions UC No 1 2 1 Main Success Scenario Post conditions Timer is set for selected bells Main Success Scenario 1 The user slide to Show schedule screen with schedule list schedule screen The user taps on add timer bell screenappears button in the Timer option bar The user taps on Start time time picker to adjust time The user choose in group of check box to sellect bell in this schedule The user check on Turn ON check box to select the mode for timer The user taps on MON or Tapped button s color is changed TUE or WED or SUN button
63. oject N A o Operations void intContext Initiate context variables for activity such as Context Activity list of connected bulbs from database Parameters and return Ul tam e OO RN Ka Wh Ca void initView Initial the activity main view Parameters and return Lp e Do Do Bem pw qe aa Na 3 1 3 Sequence Diagram 3 1 3 1 View all bell connect sd View all bell connect View all bell connect 1 Ecc 2 requestAIIBell 2 1 RequestBuilder makeRequestAIIBell 2 2 requestAIIBell Figure 2 View all bell connect 3 1 3 2 Turn on bell remote using mobile application 78 ASBS Automatic School Bell System Project sd Turn on bell remote using mobile application 1 requestTurnOnBell 1 1 makeRequestTurnOnBell 1 2 requestTurnOnBell 1 2 1 turnBellOn Figure 3 Turn on bell remote using mobile application 3 1 3 3 Turn off bell remote using mobile application sd Turn off bell remote using mobile application 1 requestTurnOffBell stTurnOffBell 1 2 requestTurnOffBell 1 2 1 turnBellOff Figure 4 Turn off bell remote using mobile application 3 1 3 4 Change name of bell 79 ASBS Automatic School Bell System Project sd Change name of bell 1 1 makeRequestAddBell 1 requestAddBell 1 2 requestAddBell Figure 5 Change name of bell 3 1 3 5 Set alarm for bell sd Set alarm for bell 1 getAlarminfo 2 requestAddSche
64. ol User click on Cancel button The edit text change password disappear Button OK disappear Button Cancel disappear Exceptions User input much more than eight character Do not allow user input more than twelve character User input not enough six character Show message Wrong password format User input non alphabet character or non numberic character After user click on OK show message Wrong password format User input the same password with previous password Notes and Issues 2 2 2 10 Message list Connect to Arduino successfully Don t do anything Cannot connect to Arduino Do you want to turn on ringing This bell was turned off manually Do you want to turn off ringing This bell was turned on manually This bell was disabled Please input only alphabet character or numberic character Do not using empty name This name is already in use by another bell Do you want to clear all list schedule Do you want to delete this timer Authentication success Wrong password format Change password success 32 ASBS Automatic School Bell System Project 2 2 3 Functional Requirement for desktop 2 2 3 1 View all bell connect with connected Wi Fi hub Actor User Description Allow the user view all bell connect with connected Wi Fi hub
65. ologies introduce Automatic School Bells for the first time in India The school bells are designed with most reliable Micro Controller based technology The school bell system with good accuracy and unique features includes individual time settings from Sunday to Saturday timing Exam Weekend Timing etc It can be installed in Schools Colleges Mills and also in Industries ASBS Automatic School Bell System Project Automatic School Bell With Traditional Bell Sound Figure 1 Basic Ampletrails Automatic School Bell Features PC Interfacing with High Efficiency Design Two Time Schedules Available Each Schedules have individual 24 Time slots Each Time Slots can be assigned to have specific time durations LCD Display Indication for Day Date Time and Next Bell Time LED Indication for Schedule Status Technologically advanced overall design allows the machine to perform at its best This system has provided for individual keys for all application Auto and Manual modes are available in our system Compact and attractive panel for Easy Wall Mounting Installation ASBS Automatic School Bell System Project BETA TECHNOLOGIES BTSB 2397 Figure 2 System control of Ampletrails Automatic School Bell 4 2 BellMinder BellMinder is a fully automatic school bell system that is used to solve the common daily problem of ringing a bell on time every time and only when required Unlike other School Bell Syst
66. ontains all class are android widget customized Contains all adapter class are data binder of all Ibs fpt adapter M ListView Ibs fpt listener Contains all interface using in application Contains all xml file of project such as layout file of Resouces activity fragment and string xml define all message using in application 3 Detail Design 3 1 Control bell system This part is the detailed design for the following use cases Turn on off bell remote using mobile application Connect smart phone to Arduino 61 ASBS Automatic School Bell System Project Disconnect smart phone from Arduino View all group bell connect with connected Arduino Authentication with bell system Create new schedule Edit schedule Delete schedule Change name of bell on application 3 1 1 Class Diagram SendSocket MainActivity SettingPreference SS SExy SendSocket ssid String port int void initContextd void dolnBackground param String void initViewQ void alarmRepeat int minute int hour int repeatCount int bellid String SendSchedule o SendSchedule ssid String port int void dolnBackground param String void pri ListButtonAdapter id int name String status int ScheduleAdapter Config SSS Database SlidingTabTrip MainApplication ze insertBell bellList List Bell bool
67. quirements System testing of functional requirements starts by using the most appropriate specification based black box techniques for the aspect of the system to be tested For example a decision table may be created for combinations of effects described in business rules 2 Screen Shots Reference to Prototype 3 Test Plan 3 1 Feature to be tested Turn on off bell remote using mobile application Connect smart phone to modem View all bell connect with connected Arduino View all schedule Add new schedule Delete selected schedule Delete all schedule Change name of bell Authentication 3 2 Feature not to be tested Change password 3 3 Test strategy Functional testing Test Objective Ensure proper target of test functionality including navigation data entry processing and retrieval Verify system functional requirements Technique Execute each use case use case flow or function using valid and invalid data to verify the following The expected results occur when valid data is used The appropriate error or warning messages are displayed when invalid data is used 93 Completion Criteria Special Consideration User Interface testing Test Objective Technique Completion Criteria Special Consideration Testing environment Base Hardware Resource Laptop Android Smart Phone Wi Fi embedded module Wireless Access Point Base Software Resource Window 7 Android OS
68. r open the application This screen have a sliding menu bar a list of belling button with four status Stoping Preparing Ringing Disable Each button have to showing 3 information include button name next ringing schedule and status of button 0 v A 22 30 BELL LIST SCHEDULING SETTING BELLOO1 BELL002 BELL003 BELL004 BELL005 ADD BELL O Figure 2 Belling list screen 2 4 2 Change to ringing When user click on a stoping button or prepareing button this button will be change their status to ringing After that the application sending a ringing message to belling system 46 ASBS Automatic School Bell System Project 9 LIA ES 22 31 BELL LIST SCHEDULING SETTING BELLOO1 BELL002 BELL003 BELL004 BELL005 ADD BELL 9 Figure 3 Change to ringing 2 4 3 Change to stop ringing When user click on a ringing button this button will be change their status to stoping After that the application sending a stop ringing message to belling system rp LEUR EN 22 30 BELL LIST SCHEDULING SETTING BELLOO1 BELL002 BELL003 BELL004 BELL005 ADD BELL Figure 4 Change to stop ringing 2 4 4 Change belling dialog When user long clicked on bell name A change name dialog will apppear 47 ASBS Automatic School Bell System Project LEUR SE 22 43 Bell name Enter Bell name Input bell name Input bell id Figure 5 Change bell name dialog
69. ractions between software components and is done after component testing 2 System integration testing tests the inter actions between different systems or between hard ware and software and may be done after system testing In this case the developing organization may control only one side of the interface This might be considered as a risk 91 ASBS Automatic School Bell System Project Business processes implemented as workflows may involve a series of systems Cross platform issues may be significant The greater the scope of integration the more difficult it becomes to isolate defects to a specific component or system which may lead to increased risk and addition al time for troubleshooting Systematic integration strategies may be based on the system architecture such as top down and bottom up function al tasks transaction processing sequences or some other aspect of the system or components In order to ease fault isolation and detect defects early integration should normally be incremental rather than big bang Testing of specific non functional characteristics e g performance may be included in integration testing as well as functional testing At each stage of integration testers concentrate solely on the integration itself For example if they are integrating module A with module B they are interested in testing the communication between the modules not the functionality of the individual module as tha
70. reen is changed Soft keyboard disappears Alternative Scenario No 1 The user presses on bell Edit name dialog appear The user tap on text field in edit name dialog Keyboard appears The user input new name for bell and tap Cance button Edit name dialog appear The name represent for the bell in main screen is not changed Soft keyboard disappears 24 ASBS Automatic School Bell System Project Alternative Scenario No 1 The user presses on bell Edit name dialog appear The user tap on text field in edit name dialog Keyboard appears The user input new name for bell and tap OK button in edit name dialog The new name is the same name with previous name of this bell Edit name dialog appear The name represent for the bell in main_screen is not changed Soft keyboard disappears Exceptions User input much more than eight character Do not allow user input more than five character User input non alphabet character or non numberic character After user click on OK button in edit name dialog show message Please input only alphabet character or numberic character User clear text in edit text and click on OK button in edit name dialog Show message Do not using empty name User input the same name with another bell Show message This name is already in use by another bel
71. ributes static final boolean IS DEBUG The status of the application is debuging or not Operations N A 3 1 2 15 SettingPreference O class This class contain the setting of this application That is an local database store in xml file Attributes final String KEY IS GET NOTIFICATION XML key for is get notification or not data final String KEY IS NOTIFICATION NEXT RINGING XML key for is get notification next ringing data final String KEY IS GET NOTIFICATION FROM OTHER XML key for is get notification from another device or not data Operations SettingPreference getlnstance Singleton pattern for getting up the preference Parameters and return te TO enon Return SettingPreference Get the instance of this XML class SharedPreference getSharedPreference Get the shared preference from android Parameters and return p m om o mem 75 ASBS Automatic School Bell System Project SharedPreference Get the shared preference from android Editor getEditor Get editor class from shared peference for write the new data to the XML file Parameters and return seme oe eon Editor Get editor class from shared peference for write the new data to the XML file void saveGetNotification boolean isNotification Save the flag get notification to the xml file Parameters and return owe ome 0 memm isNotification boolean The flag get notification to s
72. rsresserstestessresresrenstrsresreesreseee 16 Dic I c 16 III System Requirement Specification SRS eseeeeeeneneeeeeeeene 18 l User Requirement Specification ues chc ten iride toI eade Oen inii ia 18 1 1 Control bell system by using mobile application eene 18 1 2 Control bell system by using PC AA AASA NG 19 2 System Requirement Specification s mgpa sa GN NAA ANA AA 19 2l External Interface Requirement NAAN PG GAGA 19 2 2 Functional requirement uei AA AA 20 2 2 Non functional Requiremiel o sse eti creuse e adn tx rex Dx Md EN A AA dna sed 45 24 PINOY cT aa iaaea 46 IV System Design Document SDD ases iau eei eod reo anna 37 System O VETVIOW MT M 57 Sa System eiiis vin Pm 58 2 1 Overall System Architecture AN seca ops Rp AA 58 2 2 Mobile Application Arelileet re sui bete becseis GAGA LA tpa duci E ni eR EE 59 ASBS Automatic School Bell System Project Sy Detal Desi aO ease eee 61 S l Control bell rame cct 61 4 User Interface DBSIBIL aaa AA adelante tenu eer bin 82 5 Hardware Interface Design mM E C 82 SL HardWAr DESCTIPUON AG PATAG NGANGA 82 5 2 HardWare OT GA sser tocar Dra qun Rea dam edi lesa tUe 85 5 3 Communication protocol ASBS Command eee 86 6 Data aeri rc E 89 6 1 Database structure design a coe
73. screen Show message Do you want to turn off ringing Show turn off button User click on turn off button Button ON OFF at main screen transfer to OFF state The bell is turned off Alternative Scenario No n None Exceptions User tap on ON OFF button ON state at the row represent to the bell at main screen but the build was turned off manually 1 Show message This bell was turned on manually 2 The button ON OFF at main screen is still at ON state 35 ASBS Automatic School Bell System Project User tap on ON OFF button OFF state at 1 Show message This bell was disabled the row represent to the bell at 2 The button ON OFF at main screen is still main screen but the build was disable at Disable state Notes and Issues 2 2 3 4 Change name of bell on application Amor Pham Nam Thang Actor User Description Allow the user change the name represented for the bell The bell name include text character and number This name have not over five character This name have to start with text character This name allow only alphabet and numberic character Don t have any two bell have the same name Trigger Pres conditions UC No 1 3 3 Main Success Scenario Post conditions The name of selected bells is changed Main Success Scenario 1 The user presses taps and Edit name dialog appears hold on bell The user tap on text field in Keyboar
74. t was done during component testing Both functional and structural approaches may b e used Ideally testers should understand the architecture and influence integration planning If integration tests are planned before components or systems are built those components can be built in t he order required for most efficient testing System test Test basis e System and software requirement specification e Use cases e Functional specification e Risk analysis report Typical test object e System user and operational manuals e System configuration and configuration data System testing is concerned with the behavior of a whole system pro duct The testing scope Shall be clearly addressed in the Master and or Level Test Plan for that test level In system testing the test environment should correspond to the final target or production environment as much as possible in order to minimize the risk of environment specific failures not being found in testing 92 ASBS Automatic School Bell System Project System testing may include tests based on risks and or on requirements specifications business processes use cases or other high level text descriptions or models of system behavior interactions with the operating system and system resources System testing should investigate functional and non functional requirements of the system and data quality characteristics Testers also need to deal with incomplete or undocumented re
75. the advantages of ASBS compare to them in section 4 Pays particular attention to the system overview in section 5 describe system s functions and the link among them Outline the scope of the project s scope in section 6 1 Team member DN Pham Nam Thang 60495 E thangpn60495 fpt edu vn Nguyen Huu Tai Huu Tai 60042 tainh60042 fpteduwn tainh60042 fpt eduvn vn 4 Nguyen Xuan Truong 60465 KE truongnx60465 fpt edu vn pay Le Viet Anh SE02219 mE anhlvSE02219 fpt edu vn 2 The initial idea Automatic School Bell System abbreviated as ASBS is an automatic system for queuing in any organizations such as School Banks Hospitals Service Companies Universities Building etc It is not newest version in this kind of product but quite suitable for some normal and small organizations which need a useful and cheap system Actually we develop this for our school FPT University where has many problems in servicing and consulting for students or others questions It help FPT University Staff easy to control dormitory and auditorium In our thinking ASBS is very useful for FPT University or other organizations It is not only necessary for staffs who servicing directly but also for whole stakeholders who related to this system because it will bring staffs comfortable in announcement convenience for customers and more professional for that firm really Therefore we aim to develop this system to improve work effect for
76. urn All the current schedules line by line each line is a schedule with format hour minute alarmRepeat repeatCount effectedBellCount effectedBells Get current time Function Get current time Format lt getTime gt Parameters getTime Api Return The current time of school bell system with format hour minute second day month year ASBS Automatic School Bell System Project Set new time Format lt settime gt lt second gt lt minute gt lt hour gt lt date gt lt month gt lt year gt Parameters settime Api second secound minute minute hour hour date date month month year year Return ok if success ERROR if failure Get the list bell Function Get the list bell Format lt getBells gt Parameters getBells Api Return all the current bells line by line each line is a bell with format belllD bellName Function Add a new bell to system Format lt addBell gt lt belllD gt lt bellName gt Parameters addBell Api bellID ID of the bell bellName Name of the bell Return ok if success ERROR if failure Function Remove a bell from system Format removeBell belllD Parameters removeBell Api bellID ID of the bell Return ok if success ERROR if failure 88 ASBS Automatic School Bell System Project 6 Data Structure 6 1 Database structure design 6 1 1 Table bell Column Type nu Unique P F Key Description
77. want to delete this selected check box timer The user tap on OK Remove selected timer from list button Alternative Scenario No 1 1 The user click on Edit Show check box to the left of timer item button The user check on delete Show dialog Do you want to delete this selected check box ofthe timer last timer The user tap on OK Clear all timer on the screen button 29 ASBS Automatic School Bell System Project Exceptions Notes and Issues 2 2 2 8 Authentication Actor User Description Allow user send password to authentication Allow the user input a password to authentication This password have not over twelve character This password have to have atlease six character This name allow only alphabet and numberic character Trigger Pre conditions 1 1 UC No 1 2 1 Main Success Scenario Post conditions User could use all of another feature Main Success Scenario Step Actoraction Systemrespond 1 User tap on edit text Keyboard appears password User input password Show bullet symbol User click on Submit Show Authentication success dialog button Alternative Scenario No n None Exceptions ASBS Automatic School Bell System Project User input much more than eight Do not allow user input more than twelve character character User input not enough six
78. was turned off manually 2 The button ON OFF at main screen is still at OFF state User tap on ON OFF button OFF state at the row represent to the bell at main_screen but the build was disable Notes and Issues 1 Show message This bell was disabled 2 The button ON OFF at main screen is still at Disable state 2 2 2 2 Turn off bell remote using mobile application USE CASE Turn off bell remote using mobile application SPECIFICATION 22 ASBS Automatic School Bell System Project Use case No 1 2 2 Use case Version 1 0 Use case Name Turn off bell remote using mobile application Pham Nam Thang Main_screen Related Prototype Actor User Description Allow the user to turn off bell using mobile application Trigger Pres conditions 1 Main success scenario UC No 1 2 1 2 The bell is turned on Post conditions The bell is turned off Main Success Scenario 1 User tap on ON OFF button ON state at the row represent to the bell at Show message Do you want to turn off ringing Show turn off button main_screen Button ON OFF at main_screen transfer to OFF state The bell is turned off User click on turn off button Alternative Scenario No n None Exceptions User tap on ON OFF button ON state at the row represent to the bell at main_screen but the build was turned off manually 1 Show message
79. wing and enter password Bell Manager Bells Schedule Setting Status Scanning 9 EnterPasswordForm Password Step 2 Waiting for Connector Application finding ASBS Belling system If correct password showing list bell screen 106 ASBS Automatic School Bell System Project 4 Bell Manager Bells Schedule Setting Status Step 3 First In Bells status User tap on Add button to add bell Bell Manager Bells Schedule Setting Status Cancel 2 2 Turn on bell ASBS Automatic School Bell System Project Bell Manager Bells Schedule Setting Status laul ex ex View schedule Remove View schedule Remove Step 2 If the icon change to green color the bellwill ringing anaget a A Bells Schedule Setting Status lau1 BELL101 J View schedule Remove View schedule Remove Add 2 3 Update schedule ASBS Automatic School Bell System Project Bell Manager Bells Schedule Setting Sta 2 AddOrUpdateSchedule Time Time 51 AM Repeat O

Download Pdf Manuals

image

Related Search

Related Contents

P485 User Manual V1.0_POSX_approv-sheet.indb  

Copyright © All rights reserved.
Failed to retrieve file