Questions tagged [rfcomm]

Radio frequency communication - the Bluetooth protocol. RFCOMM is a serial port emulation over Bluetooth. It provides a simple reliable data stream over Bluetooth, similar to RS232/TCP.

Links to more information

282 questions
90
votes
7 answers

Android: How do bluetooth UUIDs work?

I don't understand what a bluetooth UUID denotes. Do UUIDs denote protocols (e.g. RFCOMM)? If so, why do the createRfcommSocketToServiceRecord() methods require UUIDs, when they specify rfcomm right in their names? Why does the BluetoothChat sample…
ForeverWintr
  • 5,492
  • 2
  • 36
  • 65
49
votes
5 answers

How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()?

This problem has been solved! Thanks a lot to Brad, Denis and junkie! You're the heroes! :) This is the working code. It connects to Zeemote and reads data from it. ===== Code ===== public class ZeeTest extends Activity { @Override public…
Gilead
  • 1,516
  • 2
  • 18
  • 26
35
votes
5 answers

Receive audio via Bluetooth in Android

I want to create an Android application that is capable of receiving an audio stream. I thought of using the A2DP profile, but is seems as if Android doesn't support A2DP sink. Looks like there are a lot of people that's searching for a solution for…
Johnny
  • 351
  • 1
  • 4
  • 8
33
votes
2 answers

Setting up Bluetooth automatic pairing on Linux

I want to use any mobile phone to connect to a IoT device via Bluetooth Classic with the serial port protocol (SPP). The IoT device has no screen and no keyboard, and it's supposed to accept connections automatically as long as the connecting phone…
Jon Smark
  • 2,528
  • 24
  • 31
30
votes
3 answers

How to create an Android RFCOMM socket without any input from the user?

Here's the scenario: I need to write an application for Android to create a RFCOMM socket to a PC with a Bluetooth dongle (I'm going to write the server too). My requirement is that the user doesn't have to pair device manually. Actually, with a big…
20
votes
1 answer

Bluetooth protocol (RFCOMM, L2CAP and ACL)

From what I've read from Bluetooth Essentials for Programmers, this books mentions some points that I dont quite understand. RFCOMM is a reliable stream-based protocol. L2CAP is a packet-based protocol that can be configured with varying levels…
Sam
  • 4,521
  • 13
  • 46
  • 81
20
votes
5 answers

Bluetooth RFCOMM / SDP connection to a RS232 adapter in android

I am trying to use the Bluetooth Chat sample API app that google provides to connect to a bluetooth RS232 adapter hooked up to another device. Here is the app for reference: http://developer.android.com/resources/samples/BluetoothChat/index.html And…
ThePosey
  • 2,734
  • 2
  • 19
  • 20
17
votes
1 answer

RFCOMM without pairing using PyBluez on Debian?

I am trying to create an RFCOMM server process with Python that can be used without the need for pairing. Initially, I grabbed the two example scripts from the PyBluez documentation: Server: # file: rfcomm-server.py # auth: Albert Huang…
Tim Connolly
  • 499
  • 1
  • 3
  • 11
16
votes
3 answers

Android detect Bluetooth disconnect immediately Max 2 seconds

I'm looking for a way to detect the disconnection of a Bluetooth device immediately after it has happened (2 second max), typically in a "device too far" scenario or Device battery is dead. Currently I can detect it with a BroadcastReceiver by…
Hamad
  • 5,096
  • 13
  • 37
  • 65
15
votes
2 answers

Connect and use multiple bluetooth dongles on linux?

Is it possible to connect more than two bluetooth dongles(adapters) to the linux machine and use them for read/write/communication with other external bluetooth devices simultaneously? So that there are will be more than one bluetooth device bluez…
Geka P
  • 587
  • 1
  • 6
  • 22
12
votes
1 answer

When does android show a pairing dialog when using insecure RFCOMM bluetooth sockets?

I am trying to connect two unpaired android devices via Bluetooth for P2P networking purposes. MitM protection is not required. Android has the createInsecureRfcommSocketToServiceRecord and listenUsingInsecureRfcommWithServiceRecord for this (since…
Jan Schejbal
  • 4,000
  • 19
  • 40
11
votes
1 answer

How to make a Bluetooth SPP connection process more reliable?

We are about to release the new version of our software, and for the version afterward, our goal is to make the connection process for our Bluetooth SPP connections more reliable. We use the RN42 module in our products, and currently, at times it…
Pink Jazz
  • 784
  • 4
  • 13
  • 34
11
votes
0 answers

bt_btif_sock_rfcomm: find_rfc_slot_by_id unable to find RFCOMM slot id

I have problem with connecting blutooth RfComm. I was able to connect to bluetooth and communicate but sometimes it doesn't connect. I am using standard uuid-00001101-0000-1000-8000-00805F9B34FB please help me out :) private class ConnectThread…
Pratik
  • 741
  • 1
  • 6
  • 8
11
votes
2 answers

Data Transmisison error using SPP over Bluetooth on Android

I've been having an issue with data integrity using an RFCOMM socket over Bluetooth in Android. I don't have any issues connecting, but the data I receive is garbled and not the same as the data that is sent. The data is sent by an RS232 device over…
clinejj
  • 231
  • 3
  • 9
10
votes
2 answers

Android Bluetooth Serial/RFCOMM/SPP, How to Change the BAUD RATE?

This is very frustrating as I've been trying for weeks and not even a clue on the internet. I am working on a project that reads/writes bluetooth serial data on different farming hardware. most of these hardware are old and changing the baud rate of…
ZiGi
  • 754
  • 4
  • 11
  • 20
1
2 3
18 19