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 is hosted on a com port and a Bluetooth adaptor. I want to connect to that Bluetooth adaptor and fetch/read data in my mobile app.
I had explored Bluetooth Low Energy(BLE) using ble.net plugin but I need to connect to a port i.e. Bluetooth SPP and read data in the mobile app.
There's no classic Bluetooth communication APIs in Xamarin.forms. You would have to use the UWP built-in Bluetooth RFCOMM APIs to communicate.
You could check the Bluetooth RFCOMM chat sample to learn how to use these APIs.
Related
I have a BLE Gatt server, which is setup using the d-bus bluez interface (version 5.54).
Advertising is working using org.bluez.LEAdvertisingManager1 and can be viewed using a BLE scanner Android app.
Making a connection to the server stops the device from advertising, and it is no longer visible on a BLE scanner.
Disconnecting doesn't start advertising again.
I've seen the same issue described here, with a solution using hcitool commands.
Is there a way to re-enable advertising using the d-bus interface only?
I have created a BLE peripheral that exposes a GATT service. It uses BlueZ 5.50, but it seems that only one device can connect to the GATT service. When the device is connected, then other devices can't see it anymore. It's not showing up in a scan anymore and if it was already scanned, then I can't connect to it anymore.
It seems to be a limitation or configuration issue in BlueZ, because when using the Paypal GATT library it can handle multiple connections. As far as I know, the RPi3 BLE chip should be able to handle up to 10 connections.
Does anyone know if this can be done using BlueZ?
The Paypal GATT library directly connects to the HCI device and bypasses most of the kernel stuff. BlueZ depends on kernel drivers and user-space applications and is capable if the driver reports that the controller allows multiple connections. You need a decent BLE controller and a recent kernel to make it work.
More information can be found in https://github.com/bluez/bluez/issues/12.
We seek your help in implementing bluetooth on our smart home controller. Our current scenarios is described below:
We want secure communication between our embedded linux controller(our smart home hub) and user's mobile phones running android/iOS.Our system is in home automation.
The hub in turn communicates with home devices that support a different protocol - we need to make communication between hub and mobile devices using bluetooth.
Currently there is not direct communication between our hub and mobile phone except through the internet.
We will use Bluetooth 4.x, not 5 for hardware support on the controller.
We are using nodejs on our controller and standard bluethooth OS libraries on android/iOS. We are open to suggestions.
Our main concern is to establish secure communication between phone and the hub. With this regard we are looking for implementation guidance on pairing and communicating securely. We have been able to establish unsecure communication - exposing characteristics and services on the hub. Our understanding of the bluetooth protocol is limited and we have only used libraries available for users.
Please provide specific pointers as to what we should do and what is possible.
I have a UWP app which will display values of sensors connected to Arduino which will be connected to that UWP app. I have a I2C device connected to that Arduino. I want to communicate to that I2C device from my UWP application. But, I can't find a way to do that. Can Someone can help me with that.
There is a technology called Windows Remote Arduino that allows you to control Arduino microcontroller connected to your Windows 10 UWP App. It uses FIRMATA protocol underneath, and I believe it allows you to control I2C sensors as well. If not, you can tweak the source code, because both FIRMATA implementation and Windows Remote Arduino are open source.
With Qt Bluetooth module (qt 5.2 and up) is it possible to use a Linux computer as a audio gateway?
Basically, I want to use computer as a headset and handle digital audio which comes from a mobile phone and send digital audio over bluetooth using qt bluetooth api.
If this isn't posibble to be done with qtbluetooth which api can handle it?