Forums Login/signup

how to access bluetooth dongle through a j2se code

1
+Pie Number of slices to send: Send
i need to know how i can get to access the bluetooth dongle i am using through a java code.
i need to built an application in java where i can send and receive files from a bluetooth wireless device (cell phones) to my pc.
i dont understand how can i access the dongle from my pc USING A JAVA CODE.


is there any port number/ip address or as such. if yes how can i establish the connection.


thanks.
+Pie Number of slices to send: Send
While J2ME has an implementation of the JSR 82 (Java Bluetooth API), J2SE has none.

There are two ways. Either your device is handled transparently by the operating system /drivers. Then you don't (and can't) access it by hand. You would use the device as it is known to the OS, e.g. as a serial port or using a supplied internet connection.

Or you use a JSR 82 implementation for J2SE, namely Bluecove (http://www.bluecove.org). This way you have access to the raw bluetooth data and operations like device and service discovery.

reply
reply
This thread has been viewed 3445 times.
Similar Threads
make your pc bluetooth server
Detect Bluetooth Devices from PC
Bluetooth Messages from Desktop to Mobile
Developing J2ME app for sony ericsson w810i
Looking to connect a mobile phone to a bluetooth dongle
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 30, 2025 18:21:56.