Вы находитесь на странице: 1из 4

BLUETOOTH ENABLED REMOTE DEVICE

Suryakant Rahate, Viral Desai, Krunal Patel


Students, Fourth Year, Information Technology, K.J.Somaiya Institute of Engineering & Information Technology
ABSTRACT The project is to implement a smart

phone bluetooth device which enables user to interact with their PC through their mobile phone.All is required to have a bluetooth in mobile and in a laptop.The interaction between the mobile and laptop makes user comfortable and reliable by opening enumber if computer application, The mobile phone provide functions such as play song in windows media player, minimize or maximize any running application,opening as well as terminating any Microsoft office apps, access the internet on mobile phone from PC , browse for artists, albums, change volume and much more.

Keywords

IPtables,

NAT

I. INTRODUCTION Bluetooth is one of the hottest technologies these days Its a very short range low power communication technology. Almost all handheld devices are now equipped with bluetooth technology. A remote control is a perfect application of bluetooth. Since most mobile phones are bluetooth enabled and programmable via java or symbian, a remote control can be developed in 100% code. The program will connect to bluetooth devices around where the remote server program is running.The server application can be run on any PC device. We can issue various commands to the device from the bluetooth mobile via the program. We can create different server applications to control various programs on a PC like winamp, media player, powerpoint etc. We can either use java or .net to develop the server program.

Mobile Phone allows us to perform :


Search It search the Bluetooth device connected to PC. Connect Connect mobile phone with PC Send the command to pc from mobile for particular operation

Operation

II.

Bluetooth

Bluetooth is a wireless communication protocol mainly used for short distance and in devices with Bluetooth is a wireless communication protocol mainly used for short distance and in devices with low power consumption. Because Bluetooth is capable of communicating in an omni-directional manner of up to 30 feet at 1 Mb/s it is far superior to infrared. Where infrared requires a distance of a few feet or less and requires a direct line of site for transmissions.

The Bluetooth protocol stack The Bluetooth stack and Bluetooth hardware has close relationship. It works as the driver for the Bluetooth hardware. The Bluetooth stack is a controlling agent (it could be software, firmware, hardware, or a combination of all three) that implements the Bluetooth protocol and also allows you to control your Bluetooth device programmatically. The Bluetooth stack allows to do these two things: 1. Communicate with other Bluetooth devices 2. Control host Bluetooth device
For example the Bluetooth protocol stack similar with the HTTP protocol stack . A Web browser uses an HTTP protocol stack so that it can receive Web content like HTML pages, images, files, and best of all, Java applets. A Web server also uses an HTTP protocol stack to send out Web content to Web browsers over the network. So, like the HTTP protocol stack, a Bluetooth protocol stack will allow Bluetooth clients and servers to send and receive data over a wireless network.

The Bluetooth core system consists of a radio frequency (RF) transceiver, baseband, and protocol stack. The system offers services that enable the connection of devices and the exchange of a variety of classes of data between these devices. Actually it's a wireless communication protocol that, like HTTP or FTP, operates in a client/server architecture. It uses the 2.4 GHz band. If there are multiple. peripherals to be connected to a computer using RS232 or USB, then Bluetooth is the ideal solution to use those devices wirelessly.

Layers of the Protocol Stack:


1. Host Controller Interface (HCI) 2. Logical Link Control and Adaptation Protocol (L2CAP) (packet data) 3. Service Discovery Protocol (SDP) 4. RFCOMM (stream data) 5. Wireless Access Protocol (WAP) 6. Object Exchange (OBEX) (object data)

The Basic features of Bluetooth:

1. 100 Feet Range (Exception Bluetooth Class 1 has 300 feet range). 2. Data transfer speed 1 MB/s. 3. Low power consumption. 4. Omni-directional radio signa 5. Uses 2.4 Ghz-2.482 Ghz radio frequency band

7. Bluetooth Network Encapsulation Protocol (BNEP) 8 . Human Interface Device Protocol (HID)

RFCOMM RFCOMM is commonly known as the wireless serial port, or the cable replacement protocol.

The name is derived from the fact that the serial ports are called COMM1, COMM2, etc. RFCOMM simulates the functionality of a standard serial port. For instance, a Bluetooth-enabled mobile would use the RFCOMM

III.

Working

Device Management LocalDevice, RemoteDevice, and DeviceClass are the classes in the Java Bluetooth specification that form the Generic Access Profile and allow you to perform device management. These classes allow you to query some statistical information about your own Bluetooth device (LocalDevice) and also some information on the devices in the area (RemoteDevice). The DeviceClass object gives you information about the official class of device (CoD) as defined in the Bluetooth specification. A device class is simply a classification of Bluetooth devices. By simply calling the methods of this class, it can be determined what kind of devices are in the area, like computers, laptops, phones, PDAs, access points, etc. The methods provided to accomplish this task are getMinorDeviceClass() and getMajorDeviceClass(), both of which return an int. The following table shows some common major and minor device classes. Device Discovery The Bluetooth device has no idea of what other Bluetooth devices are in the area. Perhaps there are laptops, desktops, printers, mobile phones, or PDAs in the area. The possibilities are endless. In order to find out, the Bluetooth device will use the device discovery classes that are provided in the Java Bluetooth API. The two classes needed in order for your Bluetooth device to discover remote Bluetooth devices in the area: DiscoveryAgent and DiscoveryListener. The method DiscoveryAgent is used to make the Bluetooth device search for other devices in the area. The length of the inquiry is totally dependent upon the implementation of the Java Bluetooth specification. The accessCode can be one of the following DiscoveryAgent constants: NOT_DISCOVERABLE, LIAC, or GIAC.

layer to synchronize its data to a Bluetooth-enabled PC as if they were physically connected by a cable. Profiles Bluetooth profile is a designed set of functionality for Bluetooth devices. This enables two Bluetooth devices to interact properly. To interact Bluetooth-enabled devices , having a Bluetooth stack is not good enough. Those devices also need to implement the same profile. We used the Serial Port Profile that interacts directly with the RFCOMM layer in the Bluetooth protocol stack. This profile is used to create a virtual serial port on Bluetoothenabled device. For instance, some Bluetooth kits come with a driver that will allow the operating system to communicate over the virtual serial port as if it were an actual serial port. By using the serial port profile we were able to send stream data to PC. The Bluetooth device in PC receives the stream data through virtual com port. There are many profiles such as: 1. 2. 3. 4. 5. 6. Generic Access Profile Service Discovery Application Profile Serial Port profile Headset profile Object Push profile File Transfer profile

The Java Bluetooth API To control the Bluetooth device programmatically, we need J2ME optional package JSR 82. JSR-82 can only be implemented on the J2ME platform. JSR-82 cannot be implemented on the J2SE because the J2SE does not support the generic connection framework. The JSR-82 actually consists of two independent packages: 1. javax.bluetooth (the 13 classes and interfaces that are needed to perform wireless communication with the Bluetooth protocol) 2. javax.obex (the 8 classes that are needed to send objects between devices, independent of the transport mechanism between them)

A reference to a class that implements the DiscoveryListener interface is also passed.When new devices are discovered, event callbacks are passed back to this object. This method will return true if the device successfully went into discovery mode. The startInquiry() method is the only way to perform device discovery without blocking the current thread. Service Discovery After locating devices in the area, it would be really nice to see what services those devices offer. The service discovery-related classes in the Java Bluetooth specification implement the Service Discovery Application Profile. The Service Discovery Application Profile, in turn, uses the Service Discovery Protocol (SDP) layer in your Bluetooth stack to find services on remote Bluetooth devices. The following classes are provided in the Java Bluetooth specification for service discovery: Discovery Agent, Discovery Listener, Service Record, Data Element, and UUID. The Service Discovery Database (SDDB) is the central repository for all service records. If a particular JSR-82 implementation does not store Service records in the SDDB as Java objects, then it must convert them into Service Record objects when a client performs a search for services and a match is found. Communication As Bluetooth is a communication protocol the official Java Bluetooth API gives three ways to send and receive data. Here two of them are: RFCOMM for stream data and L2CAP for packet data. RFCOMM is the protocol layer that the serial port profile uses in order to communicate.

3. This software enables user to control various windows applications (ex: Restart , Log off , Turn off) from a remote place and no need to use keyboard or mouse. V . Conclusion This software is very much user-friendly. To use it one needs just to press button to control pc operation. User dont have to know the Bluetooth address of the server PC. It can discover any Bluetooth device and there services around it. This software is applicable for all versions of WINDOWS operating system. As maximum computer users feel comfort to use this operating system. We are looking forward to improve our software to make it truly platform independent and to implement the software in two way communication.

VI. References

1. 2.

The Complete Reference J2ME Jdk 5.5

3. en.wikipedia.org
IEEE papers

IV .

Advantages

1. We can explore all the drives and its subfolders and files. 2.We can see Text file and image file in mobile and play and control song in pc.

Вам также может понравиться