Questions tagged [bluetoothlescanner]

23 questions
5
votes
1 answer

bluetoothctl don't find my device whereas hcitool can/Can't find device if not trusted

In relation to this post Is there any answers to this topic ? Because I have the same problem and HackToHell asked to continue on AskUbuntu chat which is not available anymore Actually i could find my device on Bluetoothctl, i trusted it once and i…
2
votes
1 answer

Sending data between two phones with bluetooth (I'm trying to use aritchie's Plugin.BluetoothLE plugin)

I'm trying to send data between two phones (e.g. two iPhones, or maybe even cross platform) via bluetooth. I've been trying to use Plugin.BluetoothLE from NuGet, which appears to have been updated recently (March 2020), however I can't seem to get…
1
vote
2 answers

BluetoothLeScanner running in a background worker class works on Android 9 device but does not work on Android 13 device

I use jetpack WorkManager to schedule a BLEScanWorker class to scan for BLE devices in the background every 15 minutes. BLEScanWorker scans BLE devices for 10 sec each time and saves the discovered BLE devices in a list. The code returns all the BLE…
1
vote
0 answers

Android bluetoothLeScanner doesn't stop scanning for devices

I am trying to develope an app, which needs to scan for BLE Advertisement packets. I am receiving packets from nearby devices, but I can't stop the scan. A similar question was already posted here: BluetoothAdapter won't stop scanning for BLE…
1
vote
1 answer

Bluetooth LE, unknown device settings

I have a bluetooth device that is measuring the force and basically sends one single value. There is an android app to connect to it, but I would like to develop my own since I would like to add some features. I managed to connect to it, but don't…
votopec
  • 53
  • 5
1
vote
0 answers

Android BLE scanning not parsing ScanRecord on some devices

My problem is the that on some devices the ScanResult.getDevice() or ScanResult.getScanRecord() both return null on some Android devices but works fine on most. If I can't call getDevice() reliably how can I connect? When I look at the toString of…
1
vote
1 answer

Bluetooth scanner not discovering devices

I am creating a Bluetooth scanner app and trying to find the available devices to pair. I have a Bluetooth headset which I am trying to find running the application on android 10. Permissions are set in manifest
WISHY
  • 11,067
  • 25
  • 105
  • 197
1
vote
0 answers

What is difference the service uuids and the service solicitation uuids from bluetooth scan result?

I'm studying for bluetooth advertising data. If I trigger bluetooth scan on my device, remote device's advertising data will be delivered as a result. There are service uuids and service solicitation uuids on advertising data. But, I don't know what…
1
vote
0 answers

Accessing Android List with Nativescript

The Short I am trying to create a List in JavaScript by accessing Android API, as shown below: var scanFilterList = new java.util.List; However, JavaScript gives me a SyntaxError due to an unexpected…
0
votes
0 answers

Android 13 BluetoothLEScanner doesn't return any scan results in scancallback

Test Device: Samsung M33 5G. OS: Android 13. Issue: Wen I init the BLuetoothLEScanner using native android classes, it doesn't return any scan result in registered scancallback. I have tested my code on other android version apart from 13. and my…
Spectra
  • 1
  • 2
0
votes
0 answers

enumerate and connect to Bluetooth LE device in a Visual Studio C++ MFC project

I have a Visual Studio 2017 C++ MFC project. I need to add code to enumerate and connect to a Bluetooth LE device. I can find sample code for connecting to Bluetooth Classic via C++ but everything I am finding for Bluetooth LE for Windows C++ is…
ehardin
  • 47
  • 6
0
votes
2 answers

How to refresh Bluetooth device name [Scan Cache]?

I am working on an application where I am connecting with the BLE device and sending commands. One of that commands we have a command for changing the Bluetooth device name. Communication is working fine, but the problem is when we send the command…
0
votes
1 answer

hcitool does not find ble device but blueman does and so does bettercap and bluetoothctl

I am confused with this issue. I have the following device (it is a Chinese smartwatch) with MAC address show up on blueman and bettercap but not on hcitool. I use: sudo hcitool lescan LE Scan ... C0:28:8D:D6:66:EA C0:28:8D:D6:66:EA…
user3236841
  • 1,088
  • 1
  • 15
  • 39
0
votes
0 answers

Bluetooth background scanning not working when the app is background in cordova application

I am initializing the blueeothle and peripheral using the foll code:- bluetoothle.initialize(function initializeResult(result) { console.log(result); }, { request: true, statusReceiver: true, restoreKey:…
0
votes
0 answers

Android bluetoothLeScanner and bluetoothLeAdvertiser not working together on some devices

I have 2 separate services, one for starting bluetoothLeAdvertiser and others for bluetoothLeScanner. Service class for using bluetoothLeScanner looks as follows override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { …
1
2