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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

IObluetooth mac os doesn't sending commands to device. (swift, vapor, bluetooth, serialport)

We have been using Golang for a long time to communicate via Bluetooth with one of the devices. we use the go.bug.st/serial library.Now I decided to try something native from the Mac. I found Vapor as ...
tastytim's user avatar
  • 151
0 votes
0 answers
88 views

Connect to PyBluez server using Android SDK

I want to open RFCOMM socket connection between two devices, but nothing that I tried worked. This is what I have: Python script uses PyBluez to advertise SPP service and waits for connections. ...
Karolis's user avatar
  • 337
0 votes
0 answers
159 views

Why does connect() fail with "no route to host" for Bluetooth sockets on Linux?

I am learning how to implement Bluetooth communication between two programs in C, for the Linux operating system, using low level socket programming via the basic socket API. I already have good ...
Aravind A's user avatar
  • 386
0 votes
0 answers
56 views

Bluetooth LE / Classic capablilities of iOS and MacOS

I want to create an App that should transfer data via Bluetooth but I'm new to developing apps for Mac / iPhone. The app needs to... ... scan for and detect BLe advertisements with a specific ...
ShortDevelopment's user avatar
0 votes
0 answers
85 views

"Operation now in progress" exception when connecting bluetooth client to server with pybluez

I took the rfcomm-server.py and rfcomm-client.py from the PyBluez repository on github. The contents of these scripts is the following: rfcomm-server.py: import bluetooth server_sock = bluetooth....
S3gfault's user avatar
  • 308
0 votes
0 answers
112 views

Is device.getClass().getMethod("createRfcommSocket", int.class); not working anymore on Android 13?

---- EDIT ----- After some research and stuff, It seems that I also needed permissions from the manifest in order to use the bluetooth. <uses-permission android:name="android.permission....
Wephyr's user avatar
  • 1
0 votes
0 answers
14 views

Android Bluetooth - Connection monitor thinks connection is dead when it isn't

With the newest version of our software, I have some code to detect if there is no data being transferred from a Bluetooth connection. However, with our newest version of our software, some users are ...
Pink Jazz's user avatar
  • 794
0 votes
0 answers
111 views

Why does Bluetooth UWP app give access is denied during connection

I am trying to set-up an rfcomm connection with a mobile device and after that I want to set-up hfp service level connection so that I can call from my windows pc and it gives Failed to get Bluetooth ...
Aryaveer Chaudhary's user avatar
1 vote
1 answer
187 views

C++ rfcomm bluetooth problems

Im trying to create a bluetooth listener that accepts incoming bluetooth connect requests, im doing this on a linux computer (ubuntu 20.04),using vscode, here's the code: { struct sockaddr_rc ...
MGThegathering's user avatar
0 votes
0 answers
522 views

Linux : how to connect a bluetooth serial device and read the output of the serial device

I have a stm32wb55 as bluetooth serial device, and I can pair it with a phone and can get an output but on the PC with rfcomm it doesn't work. I want an rfcomm alternative because it doesnt work and ...
Hannes Campidell's user avatar
0 votes
2 answers
188 views

Android Slow Bluetooth RFCOMM Transfer Rate with RN4678

We are experimenting with a bunch of new tablets, and every one we tried is having issues with slow transfer rates with the RN4678 board. We currently use the Lenovo M10 FHD Plus. We tried a few such ...
Pink Jazz's user avatar
  • 794
2 votes
0 answers
215 views

How can we set up multiple classic Bluetooth connections simultaneously?

I am currently working on an application that requires the use of classic Bluetooth to transfer data between smartphones by making multiple connections. What do I mean by multiple connections? A ...
Michel Guth's user avatar
0 votes
0 answers
26 views

Bluetooth 2.0 Serial connection with RN270 and IOGEAR GBC232A

I am currently trying to read data from a sensor at 100Hz at Baud 115200 with each frame at 60 bytes, while connecting the sensor through Bluetooth 2.0 adapter that is set as slave. The reading of the ...
user2808458's user avatar
0 votes
1 answer
758 views

Using a custom UUID when connecting an Android phone and a Raspberry Pi through bluetooth

I created a custom app to connect via bluetooth to my Raspberry Pi. All it does is it scans for bluetooth devices and connects to them through an RFCOMM socket. As per this Android documentation I ...
santiago's user avatar
  • 123
0 votes
0 answers
1k views

IOException: read failed, socket might closed or timeout, read ret: -1

I've been facing this issue while connecting OBDII devices. This issue's occurrence is very random varied across cheap Chinese OBD devices to expensive branded ones. For Bluetooth communication in ...
vibu's user avatar
  • 77
0 votes
0 answers
240 views

rfcomm socket cannot connect due to File descriptor in bad state

I am trying to connect sockets using rfcomm protocol. but it fails and I get "File descriptor in bad state" error. this is my code: void rfComm_peach_header(char *bdstr_addr) { char *...
chana's user avatar
  • 193
2 votes
0 answers
296 views

What is causing my image to corrupt during transfer via Bluetooth RFCOMM using FTP?

I'm developing two separate applications for data transfer over Bluetooth RFCOMM using the Obex File Transfer protocol. On one side, a Windows C# Console Application running on a PC listens for ...
galligio's user avatar
0 votes
1 answer
813 views

Raspberry PI Bluetooth RFcomm Immediately Disconnects

I am trying to create a connection between a Raspberry Pi, and a .NET application, on a Windows 10 computer. Thus far, I have managed to pair the 2 devices. The next step is to send data between them. ...
Éndoxos's user avatar
4 votes
1 answer
719 views

Cannot create a Bluetooth SPP connection on MacOS Monterey

Since upgrading to macOS Monterey, we have been unable to create a Bluetooth SPP connection to any hardware device. The SPP service does not appear to be supported. When listing the services for the ...
h4bit's user avatar
  • 91
0 votes
2 answers
1k views

How to connect to a bluetooth profile using dbus APIs

I have a python3 script that successfully opens a RFCOMM socket to a server using old-style bluetooth. I'm trying to accomplish the same thing using dbus, which is the way I'm reading you're supposed ...
eehouse's user avatar
  • 23
1 vote
0 answers
41 views

Phone BluetoothService can't keep bluetooth

I want use phone bluetooth to connect raspberry pi in RFCOMM to send and read some data, I try searched some answer on the net and this website,but still can't solve my problem. I use this ...
Sean's user avatar
  • 11
0 votes
0 answers
822 views

Why are there two different socket options (RFCOMM and L2CAP) in BlueZ?

I'm doing bluetooth socket programming, and I have few questions about sockets provided by BlueZ. When we're dealing with TCP/IP socket programming, we can usually choose either TCP or UDP as our ...
KaiwenJon's user avatar
0 votes
1 answer
613 views

Reflection and Invoking Method from Java to Kotlin

I'm trying to convert the following reflection into Kotlin. The following uses reflection to call an RFCOMMs function so it can take a port/channel as an input instead of UUID. I have all my program ...
Stigma's user avatar
  • 341
0 votes
2 answers
568 views

Set Bluetooth discoverability in UWP App for HoloLens2

I have written an app that provides a Bluetooth RFCOMM service on HoloLens 2. Without using the settings app, can I make HoloLens2 discoverable for any devices looking for the service? I don't want to ...
ChrisM's user avatar
  • 45
0 votes
0 answers
370 views

Binding Python Bluetooth Socket to Virtual Port

I have created a Bluetooth communication between Arduino and Raspberry Pi. I am using D-BUS API that is used by BlueZ to pair and trust, and Python socket module to establish a rfcomm communication. I ...
Mr. Panda's user avatar
  • 483
2 votes
0 answers
951 views

iOS CoreBluetooth scanForPeripherals() not showing device

I need to connect to a device in my iOS app using Bluetooth in order to fetch data. The app is developed using Flutter SDK, but for this specific task I decided to go native. The device from which I ...
Gabriele's user avatar
2 votes
0 answers
179 views

Howto read Voice Data from Amazon Fire TV Remote Control?

I am using a Fire TV Remote Control Version 1, the old one which has no volume and power buttons. What I want to achieve is, receive audio samples from the build in mic of this remote. I am using a ...
Dennis Zierahn's user avatar
1 vote
2 answers
353 views

Unable to Discover Bluetooth Devices in UWP application but works in WPF application

I am trying scan the Bluetooth devices using 32feet.NET library using the following code. private void Button_Click(object sender, RoutedEventArgs e) { BluetoothClient client = new BluetoothClient(...
Kumar M's user avatar
  • 1,004
0 votes
0 answers
157 views

Error trying to establish bluetooth connection from android device C# Xamarin

I am trying to connect my android device to another device over bluetooth using rfcomm. I am working in C#/xamarin. Here is my code.... BluetoothDevice btDevice = null; ...
turtlesndbox's user avatar
0 votes
0 answers
169 views

StreamSocket: datareader.LoadAsync() closes the connection when no data is available; dataReader.UnconsumedBufferLength is always 0

I'm facing with an old known issue related with Bluetooth RFCOMM SPP serial port devices but I couldn't find a reasonable solution/workaround to detect if the DataReader socket is empty without ...
Munteanu Laura Loredana's user avatar
1 vote
1 answer
391 views

Running two Bluetooth programs on one machine using two adapters

New Post I now understand my problem slightly better and rather than making a new thread I'll just update this one. So using hci_open_dev is erroneous as it opens a socket to the local BT adapter only....
Robert's user avatar
  • 175
0 votes
1 answer
537 views

SOLVED QT Bluetooth communication via RFCOMM to Raspberry PI 3

i am trying to communicate with my mobile app to my raspberry pi 3 and I am using QT to build an app. I used for the first steps the example project "Bluetooth Chat Example", which is using ...
Mathursan Vijayakumar's user avatar
0 votes
2 answers
7k views

Raspberry Pi and ESP32 communication over bluetooth

This is my first time trying to establish a connection between a Raspberry Pi Zero and an ESP32 over bluetooth and I can't get it work. The goal is to just exchange simple text (not more, not less) My ...
agentsmith's user avatar
  • 1,246
1 vote
1 answer
7k views

Bind Bluetooth device programmatically to rfcomm via python in

i wrote a script in python for serial communication between my M5Stack Stick C (like raduino) and the raspberry pi. all work fine. i can send "X","Y" or "Z" from ...
michurebmann's user avatar
0 votes
1 answer
823 views

Did something change with Bluetooth Serial in Android 10?

I have a Google Pixel 3a XL on Android 10 that is unable to make a good Bluetooth serial connection to a Bluetooth SPP module using Bluetooth 2.0. However, I can connect to a module with Bluetooth 1.2....
Lance Lefebure's user avatar
0 votes
0 answers
108 views

Why does closing stdin file descriptor give not running on RPi error?

I am making an application where a Raspberry Pi reads serial data from the /dev/rfcomm0 file. I have created a daemon to listen for incoming RFCOMM connections and launch the Python program ...
Prowtons McBishop's user avatar
1 vote
0 answers
415 views

How to select bluetooth protocol a react native library?

I have a bluetooth le server running on an embedded linux system listening on RFCOMM port and I can connect to it using apps from playstore that emulate serial terminal. I want to write an app in ...
mega_creamery's user avatar
1 vote
0 answers
67 views

UWP Bluetooth RfComm - System.Exception

I am trying to connect Server (UWP) to Client (UWP). I have written all the code, but when the server app is running it shows this exception after few seconds at this line: await socketListener....
Asher Ahsan's user avatar
2 votes
1 answer
444 views

OSX bluetooth openRFCOMMChannelAsync claims to have connected but connection is not established and delegate is never called

I have written a C++ wrapper for the objc bluetooth framework for OSX. The wrapper works so far that it can a) obtain a list of all paired devices, b) get one device, c) print its name, d) open the ...
B Porr's user avatar
  • 305
1 vote
0 answers
1k views

Bluetooth RFCOMM socket is not writable while another socket is connecting (Linux, blueZ, C++)

I am implementing a C++ program that communicates via Bluetooth RFCOMM with several different robots via bluetooth. In this communication scenario the robots are servers and my program consists of ...
Jan Weber's user avatar
0 votes
0 answers
968 views

is it possible to open an RFCOMM channel on iOS

is it possible to open an RFCOMM channel for bluetooth Connectivity between Mac OS and iOS for sending and receiving data.Any sample code available
md12's user avatar
  • 111
0 votes
1 answer
338 views

How can I cancel LoadAsync() without closing the underlying socket?

I have an app that communicates to some hardware over rfcomm on bluetooth. My app works on Android and am in the process of getting things working on UWP. Here's how I set up the stream reader/...
ejwipp's user avatar
  • 371
0 votes
1 answer
115 views

rfComm Bluetooth connect to insulin pump

I use 32feet.Net to connect to insulin pump which talks through rfComm protocol. I wrote a simple code to connect public void Listen() { server = new BluetoothListener(mUUID) { ...
Alexander Man's user avatar
1 vote
1 answer
155 views

How to get two Android devices to connect to the same Bluetooth device without unpairing?

I have an app that I communicate with a Bluetooth device via SPP, and I made a discovery that when I try to connect to the same Bluetooth device using another Android device, the other Android device ...
Pink Jazz's user avatar
  • 794
1 vote
1 answer
518 views

Unable to set SDP Record for Rfcomm Service Provider (InTheHand, uwp)

I want to create a two-way Bluetooth Rfcomm connection. The server side is implemented in UWP. Using InTheHand.Devices.Bluetooth (NuGet v4.0.1803.22-preview) I find no way to attach an SDP record to ...
ChrisM's user avatar
  • 45
0 votes
1 answer
599 views

How can i get Rssi Value using bluetooth(RFCOMM) with raspberry pi?

i'm trying to get rssi value using rfcomm with raspberry pi in C Code. Below is my code (server.c) that server is waiting client for communication. How can i add code that can get rssi value? I found ...
 Cheol's user avatar
  • 21
2 votes
1 answer
2k views

Classic Bluetooth communication (RFCOMM) in Xamarin.Forms

I am looking for Classic Bluetooth communication (RFCOMM)/ serial port communication using classic Bluetooth and not Bluetooth Low Energy(BLE) in Xamarin.Forms preferably. I have some emulator which ...
Prajakta Shinde's user avatar
0 votes
1 answer
854 views

How to send BluetoothRFCommSocket with Scapy?

I set up a BluetoothRFCommSocket with this code: from scapy.layers.bluetooth import * from scapy.all import * bt = BluetoothRFCommSocket('68:A0:3E:CC:24:06',2) And the error is: ...
n3k0's user avatar
  • 3
0 votes
0 answers
1k views

How to implement serial-communication via bluetooth in c++ on windows?

I am planning to write two programs in c++ (IDE is VS2019 Community) which is sending data to a raspberry pi 3 (Windows Iot). So one program is on a computer and sending data, and the second program ...
DatenDenker's user avatar
0 votes
1 answer
333 views

How can I advertise RFCOMM Bluetooth service programmatically with swift/Objective-C? or Connecting through ExternalAccessory Framework

I Need to advertise RFCOMM Bluetooth service programmatically from iPhone, I know that iPhone supports BLE only unless there is membership in MFI program, I have POS Device licensed from iPhone under ...
Omar Samir's user avatar

1
2 3 4 5 6