bluetooth

How to mute Microphone when recording from headset

北战南征 提交于 2020-01-23 17:06:07
问题 I am making a application to record audio from bluetooth headset. After that, the signal sound from headset will be played in to speaker of android phone. However, my problem is that some signal from microphone of android phone is also played. I want to mute microphone of android during playing. Is it possible. I am refering some link but it does not useful. Please give me one solution to turn of my microphone. This is my setting _audioManager = (AudioManager) getSystemService(Context.AUDIO

How to mute Microphone when recording from headset

倾然丶 夕夏残阳落幕 提交于 2020-01-23 17:03:02
问题 I am making a application to record audio from bluetooth headset. After that, the signal sound from headset will be played in to speaker of android phone. However, my problem is that some signal from microphone of android phone is also played. I want to mute microphone of android during playing. Is it possible. I am refering some link but it does not useful. Please give me one solution to turn of my microphone. This is my setting _audioManager = (AudioManager) getSystemService(Context.AUDIO

Bluetooth concurrent connections

喜欢而已 提交于 2020-01-23 08:22:26
问题 For a fest at my college, we are planning a quiz contest. For the buzzer round, I was thinking of writing 2 app for android (we have a few handsets), one for the quiz master and the other for the contestants The contestants will be connected to the quiz master through bluetooth. After reading the question, the quiz-master clicks a button in his/her app, the button in the contestant apps will be enabled for X seconds. As soon as a contestant clicks his/her button, the quiz master's app will

Android BLE: “Scan failed, reason app registration failed for UUID”

自闭症网瘾萝莉.ら 提交于 2020-01-23 06:37:13
问题 I am developing an application using the RxAndroidBle library that performs BLE scans regularly about every 30 seconds, and some BLE operations every minute or so. After a couple of hours, usually between 5 and 24h, the scan stops working. Every time a scan is supposed to be started, I get: 09-05 09:08:37.160 8160-8160/myapp D/BluetoothAdapter: startLeScan(): null 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09

Android BLE: “Scan failed, reason app registration failed for UUID”

爱⌒轻易说出口 提交于 2020-01-23 06:35:45
问题 I am developing an application using the RxAndroidBle library that performs BLE scans regularly about every 30 seconds, and some BLE operations every minute or so. After a couple of hours, usually between 5 and 24h, the scan stops working. Every time a scan is supposed to be started, I get: 09-05 09:08:37.160 8160-8160/myapp D/BluetoothAdapter: startLeScan(): null 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09

Bluez 5 - initiate avrcp connection to iPhone from Bluez

徘徊边缘 提交于 2020-01-23 02:55:31
问题 Bluez 5.28 Goal - Control iOS track skip, and initiate connection from Bluez programmatically. Do not want a2dp. Everything works fine if I initiate connection from iPhone/iPad (go to BT settings, click on Pi device), which I want to avoid and not have to fiddle with the phone. (car setup with Pi). I have control, track metadata, etc. Doing a connect xx:xx:xx:xx:xx:xx in bluetoothctl yields: a2dp-source profile connect failed for 6C:70:9F:7E:EF:A8: Protocol not available Ok. It needs

Bluetooth low energy low rate on Windows?

爷,独闯天下 提交于 2020-01-23 02:50:06
问题 I have a device with a custom service which sends sensor data in a very high rate using the BLE notification feature. I'm using the the following API on a Windows 10 machine: https://msdn.microsoft.com/en-us/library/windows/hardware/jj159880(v=vs.85).aspx I'm searching the device by the custom service ID using SetupDi API, and then "connect" to it using CreateFile. When I pair the device with Windows for the first time it immediately shows "Connected" in the Bluetooth Settings window, and

Reading raw data via Bluetooth

这一生的挚爱 提交于 2020-01-23 01:32:05
问题 I have a digital Human Interface Device that I'm trying to connect to using 32feet.net so I can read input data from it and process an output in my application. I've never programmed with bluetooth before and am learning as I go. I can connect my device to Windows 7 using the microsoft/broadcom stack no problem. I can also discover the device using 32feet.net but when I try to connect it I get an error. I made sure my stack was supported using BluetoothRadio.IsSupported Here is a code snippet

Android Bluetooth: java.io.IOException: Service discovery failed

随声附和 提交于 2020-01-22 15:25:12
问题 I'm trying to develop an Android application which transfers images from one device to another. The received image would then be shown on the ImageView inside my application. To achieve my task, I thought to send a byte array of the bitmap. I'm able to get the first image on the imageview. But, as soon as I click on the button to send another image the application fails to send the bitmap. It shows me an exception "java.io.IOException: Service fiscovery failed." To send any image successfully

Transfer NSString between two devices via bluetooth in iOS

╄→尐↘猪︶ㄣ 提交于 2020-01-22 06:58:33
问题 I want to transfer NSString between two iOS device, via bluetooth. Can anybody please help how to do transfer NSString via bluetooth? I searched for specific answer and for sample code, but couldn't find it. Please guide me. Thanks in Advance.!! 回答1: I'm going to comment more extensively on how you can use MCSession for this sort of simple case since when I was first familiarizing myself with MCSession , I was amazed at how little information was available on how to utilize a simple MCSession