Questions tagged [bluecove]

Open Source Java Bluetooth API (JSR-82) implementation for various Bluetooth stacks on Windows, Linux, Mac OSX and Windows Mobile devices

143 questions
25
votes
1 answer

Send text through Bluetooth from Java Server to Android Client

First of all... don't redirect me to Bluetooth Chat and I have fully read it. I have an Android Client which stablishes the connection properly with the server, and what's most I can send text to the server in my pc and show it correctly, but I…
Joe Lewis
  • 948
  • 5
  • 18
  • 34
22
votes
2 answers

Sending a string via Bluetooth from a PC as client to a mobile as server

I need help by transferring a string from a PC to an Android mobile device via Bluetooth. The Android mobile device should act as a server and displays the string message on the screen of the device. The PC which is the client should send the string…
Elementary
  • 2,153
  • 2
  • 24
  • 35
14
votes
3 answers

Error in Bluetooth Device Discovery

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…
Ranveer
  • 6,683
  • 8
  • 45
  • 92
12
votes
2 answers

Send data from android bluetooth to PC with bluecove

I'm trying to send data from android (using API from its SDK) to a PC using Bluecove on windows, being this last one the server. I can get the android to connect to the server but when I write to the socket's output stream, nothing happens on…
Miguel Ribeiro
  • 8,057
  • 20
  • 51
  • 74
8
votes
1 answer

How to get information about a connected/paired Bluetooth device in Java?

I'm a beginner with Bluetooth. I'm trying to use Bluecove with Java. I would like to communicate with a device which is already connected/paired to my computer (such as retrieving device battery levels). The problem is that I can't find the…
8
votes
1 answer

Keeping Java Bluetooth connection alive

I’m building a simple Java Bluetooth server for my computer using the Bluecove API. I’m building an Android client side app as well but the problem seems to be stemming from the server side app. I’m sure someone has posted any answer already…
Kevin Lam
  • 81
  • 3
8
votes
2 answers

BlueCove, Laptop, and an Android tablet with Bluetooth

I'm trying to get the basics of using Bluetooth through a simple application. I'd also like a laptop application so I can debug Bluetooth comms simply. The code below is my attempt with the laptop being the client (using BlueCove 2.1.0) and the…
Doug
  • 775
  • 2
  • 11
  • 24
7
votes
1 answer

Bluetooth in java (J2SE)

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…
Tushar Agarwal
  • 521
  • 1
  • 16
  • 39
7
votes
1 answer

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

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…
Jonas
  • 121,568
  • 97
  • 310
  • 388
6
votes
2 answers

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

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…
William
  • 155
  • 2
  • 10
6
votes
1 answer

BlueCove library bluecove not available - Error using Bluecove/Java

How do I install Bluecove in Ubuntu 11/Eclipse IDE? As far as i was aware, all I had to do was add the bluecove.jar and bluecove-gpl.jar to the Build-Path of the project within Eclipse. I'm using some sample Bluecove code found here:…
Ryan Jones
  • 447
  • 1
  • 5
  • 14
6
votes
2 answers

Forcing 64 bit jvm to 32 bit jvm?

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…
Anu
  • 161
  • 2
  • 3
  • 11
6
votes
3 answers

Java BlueCove not discover all Devices, Windows 10 x64

I'm trying to connect from my Windows PC to my GPS-Running Watch (TomTom Runner 2), as there are only Android & iOS Apps available that support Syncing via Bluetooth. Windows need to use the USB-Cable, but I like to do this with BLTH. For Linux,…
KingPo
  • 93
  • 2
  • 6
6
votes
1 answer

Check the connected bluetooth devices status

How to know whether a Bluetooth device is still connected to a laptop or not before passing data? I wrote a java program using blue-cove lib to discover and pass the data through the laptop. After passing data for the first time, how can I check…
Janaka Pushpakumara
  • 4,769
  • 5
  • 29
  • 34
6
votes
1 answer

Bluetooth client/server communication between computer and mobile phone

I need just a basic example or tutorial of making a mobile phone and a computer communicate via Bluetooth. A good link/website to start from is also appreciated. Server part (computer part) can be made on many programming languages (Java, C++,…
Oleh Prypin
  • 33,184
  • 10
  • 89
  • 99
1
2 3
9 10