Home
Abstract
Contents
1. Figure 6 Select the database which is store in the messageServer v Step 6 Give any name for this database and then press the OK button to finish the install the database ODBC Nicrosoft Access Xt Stee OD WE BH 3 HEE IT perfect MessageServer idb1 mdb mee aeo paw ew Er 4 70 2 C AEE IT Figure 6 Select the database which is store in the messageServer 15 36 Mobile Phone Chat Room System ODBC HORR E Hie FAP sw nsw Ieee nsu SRabIEAR Bee eI F HP RSS QD E ESHA emo db kt adaptive server anywhere 8 l dbi Driver do Microsoft Access mdb AIRE E dBASE Files Microsoft dBase Driver X dbf l Excel Files Microsoft Excel Driver xls MS Access Database Microsoft Access Driver mdb AcE C zh Figure 9 After you finish all steps you will get the new database name appear in your ODBC database manage such as the db1 16 36 Mobile Phone Chat Room System Run the Server V Step 1 Open the ChartRoomServer java pus JO BessageServer XFO 380 B60 BEW TAG EBH Oa O B OOl A gyrum we xe Hitt 0 B I perfect MessageServer PEAS PRES m Beste iy Babess Eater RREME Web CQ METAR MRT c3 perfect C Biri D ee q EDEA lt Q PLES Waits a Char tERoomServer Java Source File terez ABA geri 13 00 HEE ze 881 m Js Lu I mE agire ant
2. Design Register Table Field Name Date Type Field Size Validation Rule Pasw Text 6 Cmudes Name Text Protocol Design Client request MRGI LoginID Passwordl NickNamel Name LGNI LoginID Password CPII LoginID Password Password againl NickName IName MSGI MoblieNo Message OLLI LoginID Characters NaWme 0n e mem 0 Server response MRGI Status 1 01 Successful Register Q2 LoginID is existed LGNI Status 1 01 Successful Login 02 LoginID or Password is error 03 Password is less than 6 character CPI Status 2 01 Successful change 02 Error MSGI Status 3 01 Successful 02 Delay OLLI Status 4 01 Online 02 Offline 9 36 Mobile Phone Chat Room System Client Interface Design For Login Interface Login ID Password For Register Interface LoginID __ Password Password Agan Nick Name Nam For Chatting Interface Mobile Nek Message Get Message For Change Personal Information Login ID Password Password Again Nick Name Nme 10 36 Mobile Phone Chat Room System Installation Guide Software Installation lt 6 JCreator lt p J2me_wireless_toolkit 2_ 1 amp Server Installation P Set the path of the Database Before you set the path of the Database We suggest that you copy the file Message Ser
3. Source File 2 KB 1 KB ession v g ra rA gometi ient priae yer dn ovs Cuarto kohia sa ChartRoom 26H Java S e File LientList class eS arr 7 23 FRA 2006 1 20 13 00 HEEK ASS AFF P Ae 881 F Cli jen 4053 bie 2 Ja Fil ZEE Java Source File AHA 2006 1 20 13 00 HEZK Ab 881 FP S881 FP g EBORE Figure 9 open the ChatRoomServer java Y Step2 Compile the File X ICreator ChartRoomServer java File Edit Search Alia t dires rz e inl File View Vig ET x EE Tork spa kepara efa EUR fl External Files J Char thoomsery View 2 E MEDAKA AAA AA ANE EB Et S Project Build Tool Configure Window Help E id A sm Category A to ul A ae Ey ChartRoomServer jayva m Compile File 1 Ebmport jJava iao VD cC Cn cram 03 n3 10 12 13 14 15 16 17 18 p3 A import java net import java zgl import java util E public class ChartEoomS5erver public static void main String args throws IOExcer SeryerSocket serverSocket null ClientList clientList new ClientList Ux i serverSocket new ServerSocket 9999 catch IOException e System cout printlnf Could not listen on port 7 Svetem exit i l Figure 10 compile the file 17 36 V Step 3 Execute File Mobile Phone Chat Room System 1 JCreator ChartRoomServer java File Edit Searc
4. The memory is very small so mobile phone can t store all the chatting records Mobile phone supports the low bandwidth Bandwidth is still a problem especially across organizational boundaries Maybe the project environment itself might provide good connectivity but the external connections are often limited to mail and browser traffic It is not good to communicate with large volume data Thus users only send 50 characters in each message 4 Different kinds of Mobile phone have different interface because the control key is different Limited screens for the Mobile Phone Limited screen display space for data Limited bandwidth Mobile phone can t support many picture in the system 35 36 Mobile Phone Chat Room System Conclusion The Mobile Phone Chat Room is created by 4 months At the First month we try to design the protocol and try to connect the server but the work is very slowly Now there are two wireless data network on the market there are CSD Circuit Switched data and PSD Packet Switched data For the Java Technique it used the Datagram and socket to achieve to connect the Internet Of course in the MIDP2 0 it support the socketConnection ServerSocketconnection and UDPDatagramconnection through the Socket or Datagram over the TCP IP There are three ways to connection with the Internet there are that Http Programming Socket Programming and the Datagram Programming Many people are ad
5. 22 36 Mobile Phone Chat Room System Actually our Mobile Phone Cha Room System is droved the two parts One Part is allowed user must be connecting the Internet and other Part is store the address book at local Part I Connect the Internet Part Y Step 1 Open the ChatRoom Taal Select one to launch Chatrioorn AddressBook Figure 18 Select the ChatRoom to used the Mobile Phone Chat Room System 23 36 Mobile Phone Chat Room System Y Step 2 Connect the Internet must be press YES T uii EZ RERA EAnEd 7 Figure 19 Connect the Internet and then could sent the require to Server v Step 3 Welcome to Use the Mobile Phone Chat Room System elcome Figure 20 Welcome page for user to use the mobile phone system 24 36 Mobile Phone Chat Room System If you are not a member Please Register See the Step 4 If you are a member please Login See the Step 5 v Step 4 if you selects the Register from the welcome page Please register be a member LoginiD Password Password agagin Nickwame Figure 21 Register page v Step 5 Select the Login from the Welcome Page Please register be a member Logini D Passvord Password agagin Nickiame hme Figure 22 Select the Login go to Login Page Figure 23 Login Page 25 36 Mobile Phone Chat Room System Y Step 6 Input your LoginID and Password and then press the Login If you are not a member y
6. 3 Open the KToolBar to execute the ChatRoom 19 36 Mobile Phone Chat Room System v Step 1 Open the Programming Project ChatRaaom Open Project Figure 14 Select the ChatRoom Programm v Step 2 Build the Programming ZH T2NE Wireless Toolkit ChatRoom Kak File Edit Project Help qu Mew Project a Open Project i settings t Build gh Run Clear Console Device DetauttColorPhone bull Build tha current prajact Project ChatRoom loaded Figure 15 Now begin to Build the Project 20 36 Mobile Phone Chat Room System Y Step 3 Run the Programming Sal T2NE Wireless Toolkit ChatRoom File Edit Project Help M Mew Project a Open Project e settings e Build Oh Run z Clear Console Device DefauttColorPhone Run application Project ChatRoot loaded Project settings saved Building ChatRoon Build complete Figure 16 After you build the project and no any error you could to run the project 21 36 Mobile Phone Chat Room System User Manual After you run the Programming with the KToolBar you will see the Picture such as Figure 17 145550000 DefaultCo E fF f MIDlet FEHN ID AddressBook Figure 17 Use the Mobile Phone Chat Room System with the simulator
7. Mobile Phone Chat Room System Abstract Nowadays more and more people use the Computer to Browse the Web page through the Internet Some Web page supports the Chat Room for people to communication with others More and more Chat Room appears on your PC such as the Yahoo Message MSN ICQ and OICQ and so on We use those communication tools to communicate with our friends When the first Mobile phone was appeared it only supports to call friends at anytime anywhere But now People who use the mobile phone to browser the Internet are not news Mobile phone has become an important and popular way to communicate It is much related to our life work and education In fact there is a large potential market for design the project about the Mobile Phone There is not a chat room system for mobile phone Of course the mobile phone support people to send SMS message to user But we also hope a very simple Chat Room could install on the Mobile phone it is very easy to used and also hope to convenient people s life Also we hope our system is the lower cost and also effective 1 36 Mobile Phone Chat Room System Introduction Web based chat rooms emerged as one of the services in the Internet A chat room is a place on the Internet where people with similar interests can meet and communicate together by typing messages on their computer More and more chat room appeared on you PC but there is no chat room on the Mobile phones Ma
8. h View Project Build Took Configure Window Help Go Sos d Category Moo 3B RAL AKLARARAAA AD AB File View aX ChartRoomServer java Execute File E 1Elhmport java io EH External Files 2 import java net J ChartkoomServ 3 import java sql 4 import java util E 6 El public class ChartRoomServer 10 E public static void main String arga throws IOEs T1 2 Servyersocket serverSocket null 13 Clientlist clientlist new Clientlisti 14 L5j try 16 serverSocket new ServerSocket 9999 nx Package view 17 catch IOException e f 1i System out printin Could not listen on port 7 13 vstem exit 1 20 Y 22 cyztem out println ChartEoomServer is up now Figure 11 Execute the File V Step 4 Start the Server work ce C XPROGRA 1 EZINOXZS 1 JCREAT 1 GE2001 exe LhartHoomserver is up now Figure 12 Support the client what to do 18 36 Mobile Phone Chat Room System Client Installation Before you run the Client programming make sure you install the J2me_wireless_toolkit and then copy the file ChatRoom to CAWTK2 apps may be is the WTK22 And then select the KTool Bar mercury O Rees ES Internet LJ RUNE Tencent Traveler e Xm 5 tdt lcrosaft Office Out JP eame Seer waa TERT FF H ERG I ian 3 d Access LEM jaa Microsoft Office Saf PowerPoint 2003 Pes Osman oo _ i 3 I Figure 1
9. h by full name T ul ABC EE Search a person by first name Enter a frst name PO Figure 32 Search by first name 30 36 Mobile Phone Chat Room System Tu HEC EX Search Person by telephone number Figure 33 Search by telephone number v Step 3 Select list all person skyhuanga Figure 34 the screen will display the person from the RMS 31 36 Mobile Phone Chat Room System Contact Information Mame skyhuang Home number 117211 Office number 1111111 Mobile number 555777 Fax number 23 333 Email slc ahoo cam cm Category Family Figure 35 after you press OK of the Figure 34 you will get the people information Contact Inform ation Mame skyhuang Home number 1147211 Office number 1111111 habile number 555777 Fax number z333 nt 1 Nisi Email zkvieivahoo 2 Egit Category Family Figure 36 User could edit the person information and also could delete the person 32 36 Mobile Phone Chat Room System Last Mame huang Home number 1111 Office number 111 11 Mobile number 1111 Fax number 1111 E mail 111i yahoa com cn Category Friend JFamily Classmate Back H Change Figure 37 Edit the Personal information 33 36 Mobile Phone Chat Room System Delete this person skyhuang Are you sure Figure 38 Delete the Personal 34 36 Mobile Phone Chat Room System System Limitations 4
10. nal Software J2me wireless toolkit 2 1 Microsoft Office 2003 Programming Language Java 2 Micro Edition Develop tools JCreator Technique employed Socket Programming Over GPRS Multi User Multithreading e Other Software employed at System Adobe Photoshop 8 0 4 36 System Architecture The Mobile Phone Chat Room System is support the multi user to use the system Such as the Figure 2 show you that client use the socket programming to over GPRS to connect the Internet and Server also use the socket Programming to connect the Internet Client is sent the request to the server and the server must be response the client request The Database 1s for server to store the information about the client such as the register table User must be login every time and the server must validated the loginId and Password 1s correct or not Figure 2 How do the Mobile Phone Chat Room System work 5 36 Mobile Phone Chat Room System Function Requirement 4 Users must register to be members before they can use the chatting functions 4 User must have the LoginID and Password to login the Mobile Phone Chat Room System After User Login he she could Change the personal information and Chat with friend 4 For Change the Personal information user could reset the password change the phone number nickname and real name For Chat with friend we allow user could send message to friend User can send message
11. opting the Http Connection to connect the Internet But we don t use the Http Programming to connect the Internet we adopt the Socket Programming to connect the Server and design our protocol for Client to connect the Server This is the special place in our project For the Mobile Phone Chat Room System the very basic function for we support to the User is Chatting with the other people who also use the Mobile Phone Chat Room System And the special place 1s that we allow the user to send the message to all the online people We define the online people is who 1s login the Mobile Phone Chat Room System System is display that this people s statue is Online After he leaved he is the online people The System s stability is very lower sometimes you must re run the programming again 36 36
12. ou could select the Register and then go to the Register Page Figure 24 Login v Step 7 Two function on the List Change Personal information Chat vith Friend Figure 25 The function for the System support to user 26 36 Mobile Phone Chat Room System Y Step 8 Select the Change the Personal Information Change the personal information LoginiD 1 Pas iVYord PassiVord Again Phone Back Change Figure 26 Page for the Change the personal information v Step 9 Select the Chat with friend You could put the Friends Mobile Number in the MobileNo Box input the message And then Press the Sent If your friend is online he will get your message at once 27 36 Mobile Phone Chat Room System Figure 27 Chatting Page v Step 10 Select the Online List Figure 27 Show you who are online now Part II Address Book Fall Select one to launch AddressBook Figure 28 Select the AddressBook 28 36 Mobile Phone Chat Room System Add Mew person Search a person Figure 29 the function of the Address Book Y Step 1 Select the Add New Person F atl HEC EE Aulo a newr person Last Name Home Number Ofhli ce Number Mobile um ber Fax Humber Email Address Classmate Figure 30 Add a new person 29 36 Mobile Phone Chat Room System v Step 2 Select Search a person 2 Search by First Mame 3 Search by Telephone Figure 31 Searc
13. to his online friends at once and the online friends also could get the message at once User also could send message to his offline friends when the offline friends login he she could get the message User could send message to single user also allow send the message to all online friends at once When a user is login his name will display at online list 6 36 Mobile Phone Chat Room System New Technology applied The Mobile Phone Chat Room System is created by J2SE and J2ME The J2SE 1s the programming language for develop the Server Side and the J2ME is the programming language for develop the Client Side There are two principal products in the J2SE platform family J2SE Runtime Environment JRE and J2SE Development Kit JDK The JRE provides the Java APIs Java virtual machine and other components necessary to run applets and applications written in the Java programming language It is also the foundation for the technologies in the Java 2 Platform Enterprise Edition J2EE for enterprise software development and deployment The JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications The JDK is a superset of the JRE and contains everything that is in the JRE plus tools such as the compilers and debuggers necessary for developing applets and applications This conceptual diagram illustrates all the component technologies in J2SE platform and how they fit
14. together Although enterprise mobility solutions can be implemented over J2SE laptops and J2ME devices the J2ME solutions have significantly lower costs The Java 2 Platform Micro Edition J2ME provides a robust flexible environment for applications running on consumer devices such as mobile phones PDAs and TV set top boxes as well as a broad range of embedded devices Like its counterparts for the enterprise J2EE desktop J2SE and smart card Java Card environments J2ME includes Java virtual machines and a set of standard Java APIs 7 36 Mobile Phone Chat Room System defined through the Java Community Process by expert groups whose members include leading device manufacturers software vendors and service providers J2ME delivers the power and benefits of Java technology to consumer and embedded devices It includes flexible user interfaces a robust security model a broad range of built in network protocols and extensive support for networked and offline applications that can be downloaded dynamically Applications based on J2ME specifications are written once for a wide range of devices yet exploit each device s native capabilities The J2ME platform is deployed on millions of devices supported by leading tool vendors and used by companies worldwide In short it is the platform of choice for today s consumer and embedded devices 8 36 Mobile Phone Chat Room System Design of System Database
15. ver from the ProjectCD to store your local harddisk v Step 1 Begin the Window s Start and Chose the Control Panel d He PE Microsoft OF E1rce Out eS VEXEXEERUAISPIUEELAEI lt 2 A Rha Ss FF CH ia ET oolbar f ma Et Dffice zm FowerFoaint 2003 Sra P iiid O H Set ap E M ur e RI Figure 3 Open the Control Panel 11 36 Mobile Phone Chat Room System v Step 2 Open the Manage tool and then select the Database ODBC HPO REO SEW KEO IAM ea w Qse O F x Z yreex Pee Dre MPA PRES Hitt 0 aa SET A th E VENUES 3 Bees HEDH HESE HEFE p Re 2 KB 0i 2 KB 7 2 KB tz gor eC ERE FIRS HEDE EE KEE n e D felis O mrs D sERS q mem G ERE PERS B SHIA RALHA 8 THA 8 88 KB Y EAER Figure 4 Open the manage tool and Select the Database ODBC ODBC HERES FAP DSH i DSH ott DSH SEzb4EFE rR Eisi gt F FH rF3 38d IER oO HE E zt BRA adaptive server anywhere 5 0 7 IBASE Files Microsoft dBase Driver k dbf Excel Files DE xls iles CE Microsoft Excel Driver MS Access Database Microsoft Access Driver Ck mdbJ ACE CI Figure 5 after select the database ODBC 12 36 Mobile Phone Chat Room System V Step 3 Add the new Database ODBC ake E FAP DSN a DSN iee nsw SERbie HR Bee ENE ORT FH Pici dfe QD ay mue lU lll o pm 14H Y ICM PICO ORT AS aote red inis adaptive server an
16. ybe Customers can dial in and choose topics ranging from Sports Politics Philosophy and Technology etc Each chat room has a maximum number of participants It s very similar to tradition way With this application you want to keep communicating with friends and family you can dial in This system that is focus on Mobile Phone because the mobile phone affords user could possibility of contacting friends at any time Users could send and get the message to online friends at once It helps user communicate with their friends easily Customers could chat with others anytime anywhere Figure 1 Programming language applied 2 36 Mobile Phone Chat Room System System Overview Below we describe the process for setting up and running using the Mobile Phone Chat Room System e Develop Environment about Server 4 Hardware Intel Pentium III 800HZ 256MB RMB 40GB Hard Disk Operating System Microsoft Windows XP Professional Database Microsoft Access 2003 Software J2SE 1 4 2 SDK Microsoft Office 2003 Programming Language Java 2 SDK Standard Edition Develop tools JCreator Technique employed Socket Programming connect Internet JDBC ODBC Bridge for data access Multi User server Multithreading 3 36 Mobile Phone Chat Room System e Develop Environment about Client e Hardware Internet Pentium III 800HZ Operation System Microsoft Windows XP Professio
17. ywhere 8 l dBASE Files Microsoft dBase Driver dbf ARIS R3 Excel Files Microsoft Excel Driver xls a MS Access Database Microsoft Access Driver C mdb BOE tc Figure 5 Add a new database V Step 4 Select one kinds of the Database pk E Em See foe AS ALB euer BB AP E yer da Microsoft para arquivos texto Driver do Microsoft Access mdb Driver do Microsoft dBase dbf Driver do Microsoft Excel xls Driver do Microsoft Faradox t db J Iriver para o Microsoft Visual FoxPro Microsoft Access Driver mdb Microsoft Access Treiber mdb Microsoft dBase Driver dbf Microsoft dBase WFF Driver dbf Figure 6 Select one kinds of the Database 13 36 Mobile Phone Chat Room System v Step5 the installation of the Microsoft Access Database ODBC NHicrosoft Access A seis wo BH D gi iuge SUBE fh OD Wed 81 EIER C3 ES GI GE SB D Baw i FE C AEETI AERE QU ET 2 Figure 7 After you Press Finish of the figure 6 ODBC Wicrosoft Access A SS fo We BH qu eee E AE Bh QD EX ao ET 2 Figure 7 Select the path of the database you could get the database from the Project CD 14 36 Mobile Phone Chat Room System Z4 BESS OA Be qi db1 mdb 1 5 imessageserver a Bis gt perfect pim MascageServer Ape 485 E SPREM T O OO ae i i sTUDY Fia
Download Pdf Manuals
Related Search
Related Contents
Definer220 Manual 8.5x11 RNX119 Manual HS-873P - Commell SPEEDLINK Carex TEAC HR-S101 fortificante protector Copyright © All rights reserved.
Failed to retrieve file