Android to PC/ PC to android bluetooth/wifi live audio stream - c#

I've searched for this for some time, but I can't find anything about my problem. What I would like to do is to connect an android phone to PC via bluetooth or wifi (already done using sockets) and use the PC's headset (with microphone) to talk on the phone.
I've found some examples/tutorials on how to stream music but I would need live audio from the microphone and it should be full duplex.
Is this possible?Any comments are appreciated

I think you may be able to accomplish this in the bluetooth settings for the device (in this case, the device is your PC)
On your android phone, you go to your bluetooth settings, select settings icon next to the the paired device (probably the PC name), and then select with the check boxes what activities you want to use the device for. All available activities such as phone calls and media will and keyboard will show up here. If it does not show up, then it must not be a supported bluetooth capability either on your phone or the PC.

Related

Discover Nearby Smartphone Devices on Android

Problem Statement
I am trying to make an application for Android that can detect nearby smartphone devices. I need to discover smartphone devices regardless of their connection to a WLAN or their operating system. The only requirement is that their bluetooth or wifi setting is enabled. I am trying to capture the MAC Address and maybe RSSI of these devices. An example of an application I am trying to emulate is Meshlium.
Methods Already Considered
Android Classic Bluetooth:
I have followed the guide to discover devices that aren't currently paired with my device.
The smartphones I am trying to discover need to be in "discovery" mode in order to be found. For most modern phones that means they need to be on their bluetooth settings page.
Android P2P (Wifi Direct):
I have followed the guide again and can't discover smartphones nearby.
Similar to bluetooth, both devices (mine and the device I am trying to find) need to be both trying to discover wifi direct devices.
Also it seems iOS doesn't support wifi direct anyways.
Google Nearby:
Nearby Connections works only with devices running an application that is using the nearby connections api. So only devices with the app currently running the advertising or discovery feature will be available for detection.
Wifi Network Service Discovery:
This lets me see devices that are currently advertising services on a network and not the actual devices themselves.
Device Specifications
The device I am using is running android version 6.0.1 and Model number rk3368-box. The device also has root permissions.
Question
Is there a way on my android device to discover the nearby smartphones with the only requirement being their wifi or bluetooth is enabled? Perhaps packet sniffing the probe requests of the devices? I have researched packet sniffing but can't find any solid resources for Android. Also I would love to be able to do so in c# and Xamarin.Android if possible.
Update
Is a custom ROM an option? I am not looking to make an application for the play store, but one for custom hardware. Perhaps when I enable the wifi hotspot on the device it logs the probe requests from the devices nearby and saves as a file to export later?
There is no way to do this. And there shouldn't be- unless I'm working with you (in which case multiple of the above will work) its a massive invasion of my privacy for you to be able to detect my device.
If you are able to find mac address for WLAN adaptor of a device than try to search for bluetooth devices having mac address same as WLAN adaptor but last digit changed by 1.
This way you can find a Bluetooth device even if it's visibility is hidden

Stream audio from device to computer (Windows 10) via bluetooth & 32feet lib

I would like stream audio from a smartphone-device to the computerspeakers(Windows 10)
So far, I can make a connection between the two devices with the Bluetooth headset-service. Whilst the sound on the smartphone is muted because of the active Bluetooth-connection I can't hear any sound coming out of the computer. I don't receive a bitstream with the 32feet getStream-method either.
Windows 10 does not support the Bluetooth A2DP SNK profile, so streaming music will not work unless you build the profile yourself.
When audio is streaming between to Bluetooth devices, the host (in your case the smartphone) uses A2DP SRC to send the audio. The endpoint (Windows 10) has to support A2DP SNK to correctly receive the audio. You can find the full specification for A2DP here.
Finally. Here's the solution I found:
First, pair your android to your PC, then, make sure that audio stream option is enabled in bluetooth preferences (this is in the Android device. You might need to change some stuff in developer options for bluetooth).
Finally, install Bluetooth Audio Receiver from Microsoft store. Open it, select your android device and click on "open connection" and you're done!

Get list of connected microphone devices in Xamarin.forms Android

Is there a way to get the list of connected audio device in Xamarin android? My app is basically to record the conversation, meetings etc. I would want to get list of audio recording devices available in Android.
I suppose we can connect a usb microphone to a android device(not sure though). So in that case what will happen? When Android device will try to record a sound which audio device will it take? Or is it by default that only one audio device can be plugged in anytime?
I want user to select the device from which he would like to record sound on Android. So would I have to put a drop-down for user to select the audio device or would it be only 1 option all the time? If multiple options then how do I get list of available device?

Is there a way to find out if a barcode scanner is installed or plugged in a Windows 8.1 PC?

i am developing a windows universal app using C# and xaml. My app uses barcode scanner to read the barcode values.
I want to know is there a way to find out if a barcode scanner is installed or plugged in a Windows 8.1 PC?
Anyone please help me out in this.
Thanks in advance.
I'm guessing your Scanner will be a USB device ? In which case I'd use the WMI library to enumerate your USB devices and look for the expected scanner device. The basics are shown here http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/15/how-can-i-determine-which-usb-devices-are-connected-to-a-computer.aspx . Ultimately I think your user is going to need to let your application know at configuration time which device is the Barcode Scanner (you will have many USB devices) and you need to store the ID of the device in some config file, and re-use it later.
If you google "WMI USB C#" you should get a number of hits showing how to capture newly connected USB devices etc.

windows phone 7 wifi , bluetooth

I have few queries aboubt network statistics for application development on windows phone.
1)Is there any way(APIS), we can scan wifi AP in windows?
If it is connected to AP how to get SSID,BSSID and MAC address?
2)how to get CELL ID and local information?
3)Application Layer (TCP, UDP & ICP throughput, latency, etc)?
4) Bluetooth apis for device connected and device?
I was finding very info from msdn.
like Bluetooth connect and discover able devices.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207007(v=vs.105).aspx
coming to (wifi,cellular,ethernet) they have mention common class networkinformatio will it be helpful?
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202867(v=vs.105).aspx
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.net.networkinformation(v=vs.105).aspx
Short answers to big questions:
You cannot find WiFi SSIDs and Mac address directly from the WP8 SDK.
You cannot get information on the physical layout of the cellular netwrok directly from the WP8 SDK.
You cannot get network transport statistics directly from the WP8 SDK.
You can use Bluetooth APIs to enumerate over paired devices and open BT-SPP sockets.

Categories