bluecove

Bluecove : restart bluetooth stack programmatically

时光怂恿深爱的人放手 提交于 2020-01-14 19:30:50
问题 I'm trying to close bluetooth service, but Bluecove has bug on Connection close method (https://code.google.com/p/bluecove/issues/detail?id=90) and I am trying to do some workaround to restart service. I think restarting bluetooth stack will solve my problem. Can I do it programmatically? I'am using microsoft bluetooth stack. 回答1: Problem solved in this way. I restart the application, but firstly shut down bluecove manually. BlueCoveImpl.shutdown(); If I only restart application, bluecove

Detect hidden bluetooth device with known ID

被刻印的时光 ゝ 提交于 2019-12-29 08:58:40
问题 I have the target bluetooth device MAC-ID and would like to see if it is in range. How can I establish a connection to the target device, if i have it's ID and it's in hidden mode? I'm using bluecove (java) for this. 回答1: I'm not sure what you mean by "hidden mode." You can connect to a device that is not discoverable, but you cannot connect to a device that is not connectable. Generally, using JSR-82 (or Bluecove, a JSR-82 implementation) you need to have a RemoteDevice object in order to

Advertising Bluetooth Raspberry Pi Peripheral and iOS Central

吃可爱长大的小学妹 提交于 2019-12-24 07:36:03
问题 I'm trying to connect a Raspberry Pi to an iPhone. I've come a long way but have been hitting the same brick wall for the last couple of days. Perhaps someone here could help me figure out what I'm missing. So far, I have: Created an iOS app that broadcasts as a peripheral Created an iOS app that acts as a Central When testing on an iPhone 5 and iPhone 6, both devices can talk to each other. Created a Java App using the Bluecove library that broadcasts as a peripheral on a Raspberry Pi.

Connecting pc to android phone using bluetooth

£可爱£侵袭症+ 提交于 2019-12-21 21:43:46
问题 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

Error in Bluetooth Device Discovery

断了今生、忘了曾经 提交于 2019-12-21 07:15:13
问题 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

Bluetooth in java (J2SE)

拜拜、爱过 提交于 2019-12-20 20:41:22
问题 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 回答1: The bluetooth apis recommended in the oracle tutorials are included in the JSR 82 API

Bluetooth error: Native Library bluecove_arm not available

↘锁芯ラ 提交于 2019-12-19 03:59:09
问题 I'm having some difficulty running a leJOS pc program on my Raspberry Pi. It works on my PC. I get an error stating: "Native Library bluecove_arm not available" Bluetooth works fine otherwise using: "hcitool scan" I can't find a compiled version of Bluecove for ARMv6 / Raspberry Pi. I've installed Maven on my PC and installed the Maven Eclipse plug-in, in an attempt to compile Bluecove from the source files: though I can't see how to choose what platform I want to target (ARM11). I noticed

Forcing 64 bit jvm to 32 bit jvm?

末鹿安然 提交于 2019-12-19 02:51:27
问题 Would anyone please give me ideas about forcing 64 bit jvm to run as 32-bit jvm? I need to write a jse desktop application for bluetooth connection. For that i need to implement Bluecove jar . It has 32-bit files only. So i included -D32 under VM arguments in eclipse pulsar. But still i am getting the same error that displayed before adding the argument: bluecove_x64.dll missing. I tried with -d32, and it showed me "unrecognized option: d32". And it seems like i should install a 32-bit jvm

Java - Bluetooth API Bluecove Issue

做~自己de王妃 提交于 2019-12-13 14:27:41
问题 I'm having an issue using the Bluecove API in Java. I plan to create a basic BT listener in order to receive some data from a homemade device (Arduino powered). I've the following code which is quite easy to understand: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import javax.bluetooth.*; import javax.microedition.io.*; public

Detect hidden bluetooth device with known ID

我是研究僧i 提交于 2019-12-11 12:34:12
问题 I have the target bluetooth device MAC-ID and would like to see if it is in range. How can I establish a connection to the target device, if i have it's ID and it's in hidden mode? I'm using bluecove (java) for this. 回答1: I'm not sure what you mean by "hidden mode." You can connect to a device that is not discoverable, but you cannot connect to a device that is not connectable. Generally, using JSR-82 (or Bluecove, a JSR-82 implementation) you need to have a RemoteDevice object in order to