Questions tagged [bluetooth-socket]

45 questions
1
vote
0 answers

How to transfer data securly via bluetooth classic using TLS

I'm a developing mobile application (using Android) in which I want to transfer data to the other application (Desktop) via Bluetooth. I can enable search, pair and establish connection between the Bluetooth devices and able to send data. But I…
1
vote
0 answers

Sending a simple string via bluetooth over Android

I want to develop an application which sends a simple string, like "Hello World" to a different android device at the click of a Button, via Bluetooth. I looked at Google's BluetoothChat sample but it was too complicated for me to understand. I also…
Jay Ghosh
  • 674
  • 6
  • 24
1
vote
0 answers

BluetoothServerSocket is not returning from the Accept method

BluetoothServerSocketInstance.accept() not returning anything And next step is not executing Thread blocks at the same place I have seen many similar questions but unfortunately none of them were helpful to me I am creating Accept Thread like…
1
vote
1 answer

Send stream to already connected device over Bluetooth

I'll try to explain my problem as best possible, since my English is a little rusty. I need to make an application to communicate via bluetooth (sending streams) to a device that has been already connected by the user. I mean, I need to have a…
1
vote
1 answer

how to use bluetooth in android throughout different activity without connecting and disconnecting the socket?

I am trying to make an app in which several activity requires communication with bluetooth module. So for now i am doing it by making and disconnecting RFCOMM connection while entering the activity and leaving respectively. But i want to have a…
AndroidEngineX
  • 975
  • 1
  • 9
  • 22
1
vote
1 answer

Android read and write data from glucose meter which have cp2103 and bluetooth

I have an glucose meter VerioSync Which support USB and Bluetooth both. I have protocol for data exchange. Via USB I successfully read data from Meter by sending some commands and receiving data. But via Bluetooth I can scan device and connect it, I…
YasirSE
  • 161
  • 1
  • 10
1
vote
2 answers

unable to connect bluetooth device

I am trying to connect bluetooth device and want to send data to that device and also want to receive data from that device. To achieve this I follow android developer bluetooth document but seems I unable to connect another device because while…
Sandip Armal Patil
  • 6,241
  • 21
  • 93
  • 160
0
votes
1 answer

How can i send/receive data over bluetooth between ANDROID app and Raspberry Pi?

My goal is : send via bluetooth certain string comand from my Android app to a Raspberry Pi device so it can runs a script,and after it is done, send back the message to my Android app My approach: 1.I used this tutorial for inspiration of my…
0
votes
0 answers

PDF file write issue - BluetoothSocket OutputStream.write()

I'm facing an issue writing PDF file to BluetoothSocket OutputStream in my android project. Text file write(print) is working fine but when I'm writing PDF file, it prints out some gibberish text not the data inside the PDF file. Here is my code…
Tohedul
  • 29
  • 1
  • 7
0
votes
1 answer

Android studio - stay connected to a bluetooth socket at all times

I am building an Android app that uses Bluetooth. For a couple of weeks now I've been trying to create service that could provide Bluetooth connection to a socket at all times, but nothing worked for me. The goal: Bluetooth service that is connected…
0
votes
0 answers

How can I send data through an Android BluetoothSocket with pyjnius?

I'm trying to send data through a BluetoothSocket between two Android tablets. I've created one using 'createRfcommSocketToServiceRecord', and on both devices 'isConnected()' returns True and 'getRemoteDevice().getName()' returns with the other…
0
votes
1 answer

Bluetoothsocket affects thread that plays and record audio

I have an app that runs 3 threads at the same time. One thread is for stablishing a bluetooth connection between the phone and another bluetooth device (Arduino). Thread 2 plays audio incoming from another phone via bluetooh. Thread 3 records and…
0
votes
1 answer

BluetoothDevice.createrfcommsockettoservicerecord is Null

I have successfully recognised the bluetooth device (HC-05), I got its name, MAC address, and bond state, but when I'm trying to create a client socket in order to initiate a bluetooth connection with it I got a null socket. //initializing bluetooth…
0
votes
1 answer

Android - Initiate Bluetooth Socket - connection timeout

I need to connect to a bluetooth device which acts as a server. I know its UUID (at least the device's documentation contains it). However, I get an exception when I try to connect to it. The discovery part takes place successfully. In the…
Horvath Adam
  • 67
  • 1
  • 6
0
votes
0 answers

What's a good way to keep a bluetooth connection alive and available?

What I've tried so far is to close the socket and open a new one every 15 seconds. Is that reliable? Trying to keep a connection with a bluetooth printer
JaviOverflow
  • 1,434
  • 2
  • 14
  • 31