bluecove

Example connecting Android and Bluecove on a Mac

白昼怎懂夜的黑 提交于 2019-12-11 09:21:14
问题 I have an Android device (HTC Incredible) and I would like to setup bluetooth communication between the android phone and a MacBook Pro. I have got bluecove to start on the Mac and I have done coding using Sockets in Android, but I can not get a connection working. Here is my andriod code BluetoothDevice device = reciever.getDevice("00:25:00:XX:XX:XX"); //my bluetooth address UUID generalUuid = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); socket = device

bluecove stack shutdown completely

我的未来我决定 提交于 2019-12-11 07:07:58
问题 I am new to blueocve and I am working on finding my android based phone via bluecove java library in netbeans . I paired my phone and laptop via bluetooth and when I run the below code I get this exception bluecove stack shutdown completed and I can't see any result in output window I use bluecove 2.1.1 snapshot on winsock....(win 8.1 64 bit) below code package bluetooth; import static java.sql.DriverManager.println; import javax.bluetooth.*; public class Bluetooth { public static Object lock

Can you establish multiple Bluetooth connections between the same two devices in Android?

ぃ、小莉子 提交于 2019-12-10 13:09:19
问题 I have two Android devices. One is acting as a server and the other as a client. The client connects to the server and requests a file - this is done in one thread on the client and one thread on the server so that both can continue doing what they want. The client then attempts to connect to the server again to request another file. Right now I am getting a java.io.IOException: Device or resource busy when attempting to connect ( socket.connect() ). Is it because Bluetooth (on Android) only

My Java bluetooth server on raspberry pi running debian wheezy needs bluecove native library - where can I find it?

帅比萌擦擦* 提交于 2019-12-07 20:19:25
问题 I have a Java bluetooth server running on a Windows box which I want to port to the Raspberry pi. I have lots of experience with Java but little with Bluetooth or Linux. The pi currently has Debian Wheezy operating system and I've installed bluetooth and Java ok, and placed the bluecove-gpl and bluecove jars in the classpath. When I try to run the server, however, Java complains Native library bluecove_arm not available. I've tried renaming libbluecove_arm.so from the gpl jar without success,

Access Android's OBEX server and read data

徘徊边缘 提交于 2019-12-07 19:12:25
问题 I was wondering if it's possible to read data (contacts, missed calls, etc.) from Android's OBEX server from windows with Bluecove. I tried the following code from windows, but it returns OBEX_HTTP_NOT_ACCEPTABLE when connecting. Device address and channel are correct as I can tell since when running this test, android pops up a dialog asking if I allow the other device to access it's contacs. Thanks! code: import java.io.IOException; import javax.microedition.io.Connector; import javax.obex.

Access Android's OBEX server and read data

China☆狼群 提交于 2019-12-06 07:54:06
I was wondering if it's possible to read data (contacts, missed calls, etc.) from Android's OBEX server from windows with Bluecove. I tried the following code from windows, but it returns OBEX_HTTP_NOT_ACCEPTABLE when connecting. Device address and channel are correct as I can tell since when running this test, android pops up a dialog asking if I allow the other device to access it's contacs. Thanks! code: import java.io.IOException; import javax.microedition.io.Connector; import javax.obex.*; public class PBAPTest1 { public static void main(String[] args) { String deviceAddress =

Connecting pc to android phone using bluetooth

六月ゝ 毕业季﹏ 提交于 2019-12-04 15:28:42
I want to establish a bluetooth connection between my pc and android phone and want to send a string from my pc to android phone. I am using Bluecove 2.1.0. I am able to discover nearby bluetooth devices Now I want to pair the devices and send string from pc to android phone Thanks in advance This is the code i am using for searching device import java.io.OutputStream; import java.util.ArrayList; import javax.bluetooth.DataElement; import javax.bluetooth.DeviceClass; import javax.bluetooth.DiscoveryAgent; import javax.bluetooth.DiscoveryListener; import javax.bluetooth.LocalDevice; import

Error in Bluetooth Device Discovery

十年热恋 提交于 2019-12-04 00:25:38
I tried the following code for discovering a bluetooth device import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Vector; import javax.bluetooth.DeviceClass; import javax.bluetooth.DiscoveryAgent; import javax.bluetooth.DiscoveryListener; import javax.bluetooth.LocalDevice; import javax.bluetooth.RemoteDevice; import javax.bluetooth.ServiceRecord; import javax.bluetooth.UUID; /** * * Class that discovers all bluetooth devices in the neighbourhood, * * Connects to the chosen device and checks for the presence of OBEX push service in it.

How do I use BlueCove to use Bluetooth on a MacBook with Java?

徘徊边缘 提交于 2019-12-03 20:04:57
问题 I would like to implement an Java application that uses Bluetooth on my MacBook Air laptop. I try to use the Java bluetooth library BlueCove. I tried to implement the first example DeviceDiscovery but it throws an BluetoothStateException with the message: BlueCove library bluecove not available . I have added bluecove-2.1.0.jar to my Build Path in Eclipse. What is the problem? How can I use BlueCove with my MacBook Air? 回答1: BlueCove requires the 32-bit JVM to run. Adding the -d32 argument to

Bluetooth in java (J2SE)

大城市里の小女人 提交于 2019-12-03 06:45:20
I am a newbie to bluetooth and this is the thing i want to do , I want to to get the device information that gets connected to the Bluetooth on my pc and write the info in a file. which api should i use and how to implement . I came across bluecove but on a few searches i found that bluecove doesn't work on 64 bit pc's. what should i do now .i want this to work on both 32 bit and 64 bit pcs. Thankx The bluetooth apis recommended in the oracle tutorials are included in the JSR 82 API specification. I think though, that the latest release of the BlueCove (2.1.1)includes the driver for windows 7