An Android Chat Application Based on Wi-Fi Direct
Total Page:16
File Type:pdf, Size:1020Kb
Volume 3, Issue 6, June – 2018 International Journal of Innovative Science and Research Technology ISSN No:-2456-2165 Ether : An Android Chat Application Based on Wi-Fi Direct Amrita Nischal Reetanjan Manna BE Student, Dept of ISE, School of Engineering and B-Tech Student, Dept of ISE, School of Engineering and Technology, Jain University, Ramanagara, Karnataka, India Technology, Jain University, Ramanagara, Karnataka, India Sayeeqa Anjum Thejashwini .K. S B-Tech Student, Dept of ISE, School of Engineering and B-Tech Student, Dept of ISE, School of Engineering and Technology, Jain University, Ramanagara, Karnataka, India Technology, Jain University, Ramanagara, Karnataka, India Abstract:- Nowadays, most well liked social networking whereas keeping1:N affiliation elective feature. The useful services adopt centralized design, during which continual entity of Wi-Fi Direct design is named a “P2P Group” that's net property is necessity for every user to use those functionally corresponding to a Basic Service Set (BSS) in services, and centralized servers square measure used for bequest Wi-Fi network. A P2P cluster consists of a P2P cluster storage and process of all application/context information, Owner (P2P GO) and 0 or a lot of P2P shoppers. The P2P GO even if mobile users square measure among proximity (sometimes brought up as “GO”) is additionally referred to as space (like field, event spot, and community), and may a Soft-AP. AP functions area unit enforced among Wi-Fi P2P directly exchange media through numerous wireless devices. A P2P device will dynamically take the role of technologies (e.g., Bluetooth, Wi-Fi Direct, etc.). On one associate degree AP or shopper. The roles of P2P Devices (i.e. hand, the wise centralized server might cause serious P2P GO and P2P Client) area unit typically negotiated before privacy concern, because of the very fact that it collects making a P2P cluster and stay fastened whereas the P2P and stores all users' information (messages, profiles, cluster is active. Figure one illustrates the various roles of P2P location, relations, etc.), during this paper, our Devices. Device Discovery could be a necessary feature to be contributions square measure to develop an application. supported by all P2P Devices. Before type a P2P cluster, a We have a tendency to propose a Wi-Fi Direct based P2P Device runs the Device Discovery procedure to observe mostly P2P social networking framework, that permits the presence of alternative P2P Devices in its wireless vary. direct information exchange among users while not The procedure consists of 2 distinct phases: Scan and realize. mistreatment infrastructure network once users square Within the Scan part, the P2P Device performs ancient Wi-Fi measure situated in proximity. scan (passive scan) through all supported channels so as to gather data concerning the encompassing devices, P2P teams and bequest Wi-Fi networks. Once the Scan part is completed, I. INTRODUCTION the device enters into the realize part. Within the realize part, the P2P Device alternates between 2 states: Search and Listen. Wi-Fi has become a alternative for brief vary within the Search state, the P2P Device sends one or a lot of communication dying of Wi-Fi networks, its large-scale Probe Request (PREQ) frames on the social channel implementation and handiness of Wi-Fi devices e.g. smart particularly channels one, half dozen and eleven within the a phones, shop per natural philosophy and business sensors. The pair of.4 GHz band. within the Listen state, the P2P Device Wi-Fi Direct is turning into a motivating and appropriate dwells on one in every of the social channels (1, half dozen candidate for communication in many application domains and 11) referred to as the Listen channel and waits for Probe together with content distribution, resource sharing, Request (PREQ) frames from alternative P2P Devices. Thus, emergency communication, alert dissemination, on-line the success of the realize part is that once 2 devices come back gambling, proximity based mostly advertising and social to a typical channel to speak. it's noticeable that the P2P networking. Wi-Fi Direct allows Wi-Fi devices adore smart Device Discovery method will induce some delay to let a P2P phones, laptops, smart TVs, printers, cameras associate Device discovers all P2P Devices in its section. This delay, degreed alternative appliances to inter-connect quickly and termed as “Device Discovery delay”, is often comparatively handily while not incorporating an Access purpose (AP).Wi-Fi high if many P2P Devices area unit at the same time activity Direct is constructed on the infrastructure mode of local area Device Discovery within the same wireless vary. A facet good network. Wi-Fi Direct connections area unit secured with thing about Wi-Fi Direct is that it will operate at higher speeds Wireless Protected Access - a pair of (WPA2). Wi-Fi Direct and bigger distances than Bluetooth; Bluetooth usually uses supports a similar high knowledge rates as in Wi-Fi (up-to 250 way less power than Wi-Fi. What is more, the quality is Mbps). The vary of Wi-Fi Direct affiliation is two hundred geared toward enterprise use yet as shopper use, with the meters (this is theoretical vary and sensible vary can be inclusion of enterprise management options and WPA2 nominal of this).The specifications additionally need 1:1 security. affiliation necessary for Wi-Fi Direct certified devices, IJISRT18JU77 www.ijisrt.com 76 Volume 3, Issue 6, June – 2018 International Journal of Innovative Science and Research Technology ISSN No:-2456-2165 II. EXISTING SYSTEMS to the peers available around him/her. The other users using the application must select receive and they can select whether A. IPmsg for Android they accept what the other user has to send. If the “Accept” Wi-Fi File Transfer - IP Messenger (IPmsg) is an app option is selected, the connection is established. which can share messages/files/folders to other IPMSG devices (computers/tablets/smart phones) on the same D. Data Exchange local(Wi-Fi) network. You no longer need Wires to transfer After the connection has been successfully established, your music or videos across your devices. the sender can send the first message. This appears in a chat window on both the devices and the receiver can continue the B. Fire Chat for Android conversation. Users can also send/receive emoticons while Fire Chat creates a mesh network using Bluetooth and chatting and also the time the message is sent can also be seen. peer-to-peer Wi-Fi. Fire Chat transmits messages and pictures offline between devices that are located within 200 feet of one another. Freemessaging.No signal or mobile data needed.Fire Chat works even without an Internet connection or cellular phone coverage. Use it anywhere: planes, public transportation, cruise ships, campuses, and crowded events. All you need is a few people around you who are using Fire Chat. C. LAN Messenger LAN Messenger is a free and open source cross-platform instant messaging application for communication over a local network. It does not require a server. A number of useful features including event notifications, file transfer and message logging are provided.Currently the platforms Fig 1:- System Architecture supported are Windows, Mac and Linux. III. IMPLEMENTATION IV. OBJECTIVES A. Login/Registration Form To provide a platform on android based devices for This is the front end of the application and is created chatting without an internet connection or a service using Android Studio. A form appears on the application once provider. it is opened on an Android device. It asks the user to Login Usage of the device hardware and Wi-Fi direct for using an Email Id and Password. In case the user is not connectivity. registered, it displays a message: “User not registered”. The To establish a connection without the requirement of an user can use the link for registration which is available on the Access Point. Login Page. It navigates the user to the registration form To provide a secure flow of data with the availability of which has the following: Enter Email, Password and Confirm features such as Login ids, registration and passwords. password. The user needs to be connected to the internet for Faster communication and an easy means to exchange this step. data since it’s done digitally. B. Database To develop a secure platform for communication that can This is the back-end of the application. An online server be downloaded on handy android devices. is created. A database is created in the server. The database technology used here is MySQL. The link between the front- V. REQUIREMENTS end and back-end is established using PhpMyAdmin. When a user registers with the application, a table in the database gets A. Hardware used updated with the same. When the user tries to login, the MacBook Pro for application development username and password are verified using the same table. Remote server for the database Android device for running the application (Android 4.0 C. Connection Establishment or later versions) If the login credentials have been verified, the user is redirected to a page where there is an option to either send or B. Software receive data. Once one or more users are logged into the Database used: MySQL application within 200 meters of space they can find each Android IDE: Android Studio 3.2 other using the Wi-Fi capabilities of their respective Android Online Server: PhpMyAdmin devices. When a user selects send, they are sending a request Languages used: Php, Java IJISRT18JU77 www.ijisrt.com 77 Volume 3, Issue 6, June – 2018 International Journal of Innovative Science and Research Technology ISSN No:-2456-2165 VI. RESULTS [2]. Technology challenges for building Internet-scale ubiquitous computing, Tatsuo Nakajima, HiroIshik Awa, Eiji Tokunaga.