bluetooth

iOS Bluetooth background mode

こ雲淡風輕ζ 提交于 2020-07-17 08:03:51
问题 I wish to keep scanning for Bluetooth Devices and I want app to be alive in the background. Is it possible? It seems like if I have a connected Bluetooth device, and if there is data transfer, then the app stays awake in the background. However, if I am just scanning in the background, it seems like even if I have Uses Bluetooth LE accessories checked( bluetooth-central in plist), the app ends up not running. Is there a way to keep the app alive and continuous scan for devices when it is in

Is Bonding required for BLE <-> Android, iOS device communication?

邮差的信 提交于 2020-07-09 06:56:26
问题 We have a BLE device and android/ios app for communication with the device. The requirement is to have an android/ios app connect to the device without any pairing request. No security is required on the device. Hereafter a few questions around this: Q1. Is it possible at all to have an android/ios app connect to a BLE device without a pairing request? Q2. Does the bonding required for the BLE communication? Q3. What is the downside of having the device with no bonding? Is it going to drop

Use bluetooth headset device as audio source in ffmpeg

£可爱£侵袭症+ 提交于 2020-07-07 13:02:46
问题 I want use a bluetooth headset as audio source for recording a video. I can use arecord -D bluetooth -f s16_le -c1 -r8000 command and pipe audio to ffmpeg. But this cause sync problems in audio and video. so i want to capture audio without arecord. How can i define bluetooth device as audio source in ffmpeg command? My asoundrc file: pcm.bluetooth { type bluetooth profile "auto" } ctl.bluetooth { type bluetooth } 回答1: After some digging in the ffmpeg docs, i managed to record sound via

Android Bluetooth Le scanner stops after a time

守給你的承諾、 提交于 2020-07-05 01:57:28
问题 I am runnning an app or service with a active Bluetooth LE scanner and showing scan results on Log console. If I lock the phone in a table and not touching anymore. After a time it stops, and it doesn't give me more scan results. If I press power button and the screen wake up it gives me more scan results. If i lock again the screen or wait to lock automatically it stops and not give me more scan results. I test with service and an app that give me more results by Log and see the app is

Android Bluetooth Le scanner stops after a time

时间秒杀一切 提交于 2020-07-05 01:56:36
问题 I am runnning an app or service with a active Bluetooth LE scanner and showing scan results on Log console. If I lock the phone in a table and not touching anymore. After a time it stops, and it doesn't give me more scan results. If I press power button and the screen wake up it gives me more scan results. If i lock again the screen or wait to lock automatically it stops and not give me more scan results. I test with service and an app that give me more results by Log and see the app is

Android Bluetooth Le scanner stops after a time

随声附和 提交于 2020-07-05 01:56:32
问题 I am runnning an app or service with a active Bluetooth LE scanner and showing scan results on Log console. If I lock the phone in a table and not touching anymore. After a time it stops, and it doesn't give me more scan results. If I press power button and the screen wake up it gives me more scan results. If i lock again the screen or wait to lock automatically it stops and not give me more scan results. I test with service and an app that give me more results by Log and see the app is

Using pySerialTransfer over bluetooth sockets

旧巷老猫 提交于 2020-06-17 09:59:11
问题 I have working code that sends a struct from a Raspberry Pi to an Arduino using pySerialTransfer when the devices are connected via a USB cable. I'd like to do that over bluetooth instead of with a USB cable, however. Independently, using separate python code and a separate Arduino sketch, I've been able to get the Raspberry Pi & Arduino to communicate over bluetooth via a continuous stream of text or binary data. My issue is that I don't see how to combine the two approaches - i.e.: if I

Set Bluetooth device name in Flutter

本小妞迷上赌 提交于 2020-06-17 04:25:12
问题 It is possible to change the Bluetooth device name using BluetoothAdapter.getDefaultAdapter().setName() in Android, but I am unable to find how we can do it in Flutter. I've tried using the flutter_blue package; however, I don't see how we can achieve it. Thanks in advance! 回答1: // BT Rename // final String sNewName = "Syntactics"; final BluetoothAdapter myBTAdapter = BluetoothAdapter.getDefaultAdapter(); final long lTimeToGiveUp_ms = System.currentTimeMillis() + 10000; if (myBTAdapter !=

Is there a method to implement in flutter a sort of bluetooth broadcast like beacons?

馋奶兔 提交于 2020-06-17 02:04:07
问题 I would like to know how to realize a sort of "bluetooth broadcast" (using Bluetooth Low Energy) for a Flutter application. In particular, i want to achieve those points: I want to send random string and integers "in the air" using bluetooth. I want also to be able to receive those data by other devices The app must be able to send and receive simultaneously Now, i checked some beacon library from pub.dev (like this or this) but it turns out that probably i did not understand if and how those

Is there a method to implement in flutter a sort of bluetooth broadcast like beacons?

非 Y 不嫁゛ 提交于 2020-06-17 02:04:00
问题 I would like to know how to realize a sort of "bluetooth broadcast" (using Bluetooth Low Energy) for a Flutter application. In particular, i want to achieve those points: I want to send random string and integers "in the air" using bluetooth. I want also to be able to receive those data by other devices The app must be able to send and receive simultaneously Now, i checked some beacon library from pub.dev (like this or this) but it turns out that probably i did not understand if and how those