32feet

C# 32feet.Net: Handling two bluetooth connections in seperate threads, gives SocketException

喜欢而已 提交于 2019-12-07 22:57:00
问题 I'm writing a C# console application using the 32feet.Net library that creates two threads to search for and connect to different Bluetooth devices and then open up TCP sockets so that data can be passed to the devices via a network connection. I know this situation sounds completely bizarre, but I've been asked to do this by a senior colleague. My code seems to work OK with only one device connected, although the Bluetooth connection does sometimes drop out after a couple of messages have

Setting up 32feet library

假如想象 提交于 2019-12-05 09:49:58
I'm trying to get started with this library: 32feet I have a Broadcomm Bluetooth Stack and haven't been able to figure out how to get this library set up. When I run my code, I get: Unhandled Exception: System.PlatformNotSupportedException: No supported Bluetooth protocol stack found. After digging around on their site, I found this: Installation instructions It says to copy the appropriate DLL's into the project and then run the Test32FeetWidcommWin32.exe . I've tried putting the files in every single folder in my Visual Studio project and then running that EXE, but I still get the same error

C# Establishing stream from laptop internal bluetooth 4.0 to Bluetooth Low Energy (BLE) peripheral

人盡茶涼 提交于 2019-12-04 21:07:58
问题 I am trying to write a program that connects to a Bluetooth Low Energy device (BLE), and then read a characteristic either on updates, or on a given interval. My Peripheral is a Texas instruments CC2540 BLE device. My starting point was looking at the example program from TI, that has a heart rate monitor: http://processors.wiki.ti.com/index.php/Category:HealthDemo However, this uses the dongle, and I am tasked at using the internal bluetooth 4.0 modem (going to make it on android later on,

Reading raw data via Bluetooth

两盒软妹~` 提交于 2019-12-04 09:10:40
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: var client = new BluetoothClient(); var dlg = new SelectBluetoothDeviceDialog(); DialogResult result

Bluetooth Pairing (SSP) on Windows 10 with 32feet.NET

眉间皱痕 提交于 2019-12-03 18:00:31
问题 I've just started a project that will require me to pair a Windows 10 tablet with another bluetooth device. I decided to start with a simple windows forms app to familiarise myself with the process. I added the 32feet.NET NuGet package to my solution, and quickly had success with searching for devices and populating a listbox. client = new BluetoothClient(); devices = client.DiscoverDevices(); if (devices.Length > 0) { foreach (var device in devices) { lstBTDevices.Items.Add(device.DeviceName

Bluetooth communication from PC to mobile phone, use laptop speaker and mic during voice call

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 16:28:04
I am using 32feet.net library for connecting with Bluetooth mobile phone. I have successfully discovered devices, successfully paired with device. I have successfully made a call using AT command with the help of Bluetooth dial with 32feet.net and c# I want to use the speaker and mic of laptop during the voice call going on the mobile phone. My C# code for dialing a call is BluetoothEndPoint bep = new BluetoothEndPoint(phone.DeviceAddress,BluetoothService.Handsfree); cli = new BluetoothClient(); cli.Connect(bep); peerStream = cli.GetStream(); peerStream = Listofdevices.cli.GetStream(); String

Get Data from Bluetooth device in C#

僤鯓⒐⒋嵵緔 提交于 2019-11-30 07:41:37
I'm trying to get data from a medical BT device that I already have pairing code and communication protocol. Looking for some code I've got this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using InTheHand.Net.Sockets; using InTheHand.Net; using InTheHand.Net.Bluetooth; using InTheHand.Windows.Forms; using System.Net.Sockets; using System.Diagnostics; using System.Threading; namespace dConsoleApp { static class Program { // My BT USB adapter private static BluetoothEndPoint EP = new BluetoothEndPoint(BluetoothAddress.Parse("00:02:72:CD:9A:33"),

Get Data from Bluetooth device in C#

牧云@^-^@ 提交于 2019-11-29 10:28:13
问题 I'm trying to get data from a medical BT device that I already have pairing code and communication protocol. Looking for some code I've got this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using InTheHand.Net.Sockets; using InTheHand.Net; using InTheHand.Net.Bluetooth; using InTheHand.Windows.Forms; using System.Net.Sockets; using System.Diagnostics; using System.Threading; namespace dConsoleApp { static class Program { // My BT USB adapter

Pair bluetooth devices to a computer with 32feet .NET Bluetooth library

十年热恋 提交于 2019-11-26 21:39:56
If you want to know how to use 32feet.NET library to communicate with bluetooth devices, read the solution I am currently trying to communicate via bluetooth between a computer and a self-built .NET Gadgeteer prototype. The Gadgeteer prototype consists of the mainboard, a power supply and a bluetooth module. The module is in discoverable mode. On the computer a custom bluetooth program based on 32feet .NET Bluetooth is running. The program detects all bluetooth devices in range and tries to pair with them. However, this is not done automatically at the moment, I have to enter a pairing code

Pair bluetooth devices to a computer with 32feet .NET Bluetooth library

纵然是瞬间 提交于 2019-11-26 09:17:14
问题 If you want to know how to use 32feet.NET library to communicate with bluetooth devices, read the solution I am currently trying to communicate via bluetooth between a computer and a self-built .NET Gadgeteer prototype. The Gadgeteer prototype consists of the mainboard, a power supply and a bluetooth module. The module is in discoverable mode. On the computer a custom bluetooth program based on 32feet .NET Bluetooth is running. The program detects all bluetooth devices in range and tries to