Click here to Skip to main content
15,886,844 members
Everything / Bluetooth

Bluetooth

Bluetooth

Great Reads

by raddevus
Steps for building a device you can add to your existing garage door, which implements an atmega328, bluetooth (hc-05) and relay module which will allow you to open your garage door from any paired Android device.
by Intel
This article covers and expands upon the material from the Hands-on Lab Intel® Internet of Things (IoT) Developer Kit SFTL005 presented at the Intel® Developer Forum 2015
by Intel
Connecting the Intel® Edison board to your Android Phone with Serial Port Profile (SPP)
by deangi
A Bluetooth LE scanner gathers data on a schedule from one or more BLE servers and forwards it to WiFi.

Latest Articles

by deangi
A Bluetooth LE scanner gathers data on a schedule from one or more BLE servers and forwards it to WiFi.
by deangi
An ESP32 with a temperature/humidity sensor are configured as a bluetooth low energy server to provide remote monitoring
by Minh Danh Nguyen (ToughDev)
Dual-system Bluetooth keyboard setup: Seamless pairing with Windows 11 and Ubuntu 22
by André Marcos (Advisor), Gabriel Trepak, Vinícius Barauna Santana
Automating the Residential Lighting Activation Process Using Arduino

All Articles

Sort by Updated

Bluetooth 

4 Mar 2024 by deangi
A Bluetooth LE scanner gathers data on a schedule from one or more BLE servers and forwards it to WiFi.
26 Feb 2024 by deangi
An ESP32 with a temperature/humidity sensor are configured as a bluetooth low energy server to provide remote monitoring
23 Jan 2024 by Minh Danh Nguyen (ToughDev)
Dual-system Bluetooth keyboard setup: Seamless pairing with Windows 11 and Ubuntu 22
28 Aug 2023 by John Draper 2023
I have a M! Mac 13.1 running Python 3.10. I'm trying to write Python code that discovers any bluetooth devices near me. This is the code... import objc from Cocoa import NSObject from IOBluetooth import IOBluetoothDeviceInquiry ...
24 Aug 2023 by Richard MacCutchan
See PyObjC protocol support — PyObjC - the Python to Objective-C bridge[^].
8 May 2023 by Aryaveer Chaudhary
this is my code i am trying to setup a rfcomm connection with a mobile device and after that i wanna setup hfp service level connection so that i can call frommy windows pc and it gives Failed to get Bluetooth device from ID...
25 Apr 2023 by Aryaveer Chaudhary
DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(PhoneLineTransportDevice.GetDeviceSelector(PhoneLineTransport.Bluetooth)); for (int i = 0; i
23 Apr 2023 by Aryaveer Chaudhary
i have established a HFP connection between my mobile device and windows but for phone call audio over pc i need a SCO connection as well i am reading this docs given by microsoft...
20 Apr 2023 by Aryaveer Chaudhary
I wanted to know on which sim i am getting a call if i have a dual sim device over a bluetooth connection with AT commands.I am sending AT commands to an android/ios device from windows over a bluetooth(hfp) connection and when I checked some AT...
20 Apr 2023 by Dave Kreskowiak
Did you Google for "AT+CNUM" and start looking at the discussions other people are having on it and its responses? I'm guessing you didn't.
7 Apr 2023 by Richard MacCutchan
You need to consult the documentation for that device. It is impossible for anyone here to guess what its requirements are. You may also take a look at SPP 2.0: Simple Packet Protocol for ultra low cost wired networks[^]
15 Dec 2021 by Priyanka S Jigalur
I'm trying to write the C++ code in order to transfer a text file from Desktop to phone via Bluetooth given the device paired. Windows::Devices::Enumeration::DeviceInformationCollection services{ co_await...
18 Nov 2021 by Master PC
I followed this site: Communicating with Bluetooth devices over JavaScript[^] and written an API that will read in data from a skincare device. Connect with BLE device function...
15 Nov 2021 by Master PC
The WIndows .NET Framework form version of the BLE Watcher is running fine, so I am making a ASP.NET version of the BLE Watcher, but I kept getting this error: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).​...
12 Nov 2021 by Stafford Martin 2021
Hi, I am using the InTheHand GitHub package. One of the classes provided by that package is the BluetoothInfo class. One of the properties provided by this class is the DeviceAddress property. This property is of class BluetoothAddress. It ...
12 Nov 2021 by Richard MacCutchan
Assuming an IP address of the form A:B:C:D, where each field can be in the range 0-255, it is a simple matter to convert it into a 32 bit unsigned integer: uint[] ip = { 192,168,2,1}; uint num = ip[0]
18 Oct 2021 by Member 14968771
I added -L COLLECT_GCC_OPTIONS='-L/usr/lib/x86_64-linux-gnu' '-v' '-o' 'RPI_Bluetooth' '-shared-libgcc' '-march=armv6' '-mtune=arm1176jz-s' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' Reinstalled libbluetooth-dev PACKAGE (?) ...
17 Oct 2021 by Richard MacCutchan
Look at the name of the library that is being installed: sudo apt-get install libbluetooth-dev So your build should include the library option -lbluetooth-dev
9 Sep 2021 by OriginalGriff
This is the wrong site to ask: we are hear for software development problems, not tech support on ear buds. Start with the people you bought them from, and if they don't help then go to the people who made the devices. They are the ones who can...
3 May 2021 by Richard MacCutchan
See Bluetooth® Technology Website[^]
17 Apr 2021 by Richard MacCutchan
Scanning for devices is when the Bluetooth system sends network broadcast messages that may be answered by any nearby device, after which pairing can occur. and pairing of devices is when two devices establish a connection, at which point one can...
9 Dec 2020 by André Marcos (Advisor), Gabriel Trepak, Vinícius Barauna Santana
Automating the Residential Lighting Activation Process Using Arduino
9 Nov 2020 by wim4you
Introduction micro:bit and hobby example. Several Remote Controls (Infrared, Bluetooth Android App, serial port PC)
31 Jul 2020 by Alisher Abdisattar
Hello everone! I need to communicate an arduino and windows through bluetooth by application in C#. I do not know how to do C# programm. I can make GUI in WinForm. Can you suggest me some tutorials, books, guides to learn C# serial port...
31 Jul 2020 by Richard MacCutchan
C# serial port communication by bluetooth - Google Search[^]
31 Jul 2020 by Sandeep Mewara
You need to go through details and try off, here refer: Bluetooth Simulation in C# with Serial Ports[^]
3 Mar 2020 by Vaclav_
This is a lazy man , KISS , Linux question. Is there a simple command to obtain JUST the address? For example somethingsimilar to system("hciconfig name "); I have no issues extracting required data from temporary files, just curious if...
3 Mar 2020 by Vaclav_
Using grep still requires C++ code to get JUST the address or name of BT remote device. The KISS solution is here: hci_read_remote_name returns both address and name
2 Mar 2020 by phil.o
You could use grep[^] to isolate the part of output you are interested in. hciconfig name | grep "(isolating regular expression)" Here is the actual implementation of the solution . The task was to extract a line from hciconfig output...
10 Feb 2020 by Vaclav_
This is not a solutions, but 1. I am tired to squint to read "comment' 2. So far it looks as "the problem" was binding the socket to WRONG "address" But my code is broken and I need to recover from that (IDE quit big time ) before I can get back...
10 Feb 2020 by Vaclav_
I like to do LIFO , so here is small addendum. I need to verify that the "address" in question is either the remote BT device address or local BT device address. Logically since it works as expected on first clear boot/ initial run it should be the remote address - the bluetooth devices are...
7 Feb 2020 by Vaclav_
Using bluetoothctl without any options gives some basic info about bluetooth. What is the difference between bluetooth controller and device ? Controller and device are related. Controller 00:50:B6:80:4D:5D z-desktop #1 [default] There in no device z-desktop in bluetoothctl ...
6 Feb 2020 by Richard MacCutchan
See python Bluetooth - How to use Socket address more than once on windows - Stack Overflow[^].
6 Feb 2020 by Dave Kreskowiak
Quote: So how do I reset " the address " if my only working code is - "socket(..."? If your code doesn't properly close the socket, your only real option is to restart the machine.
29 Jan 2020 by OriginalGriff
This is the same question you asked yesterday: How do I start this program?[^] and the answer you got hasn't changed since then. Read the solution Maciej Los gave you, follow the link, and start learning. Then start here: BluetoothDevice Class (Windows.Devices.Bluetooth) - Windows UWP...
20 Jan 2020 by Vaclav_
I am using plain "socket" to initialize bluetooth connection - from client to server. This is not a problem, just need some better description of receiving messages. If you are accustomed to answering questions , please , do not read any further. This is NOT simple question post. I am...
20 Jan 2020 by Richard MacCutchan
Quote: This is NOT simple question post. Yes it is. Connection refused: the target system did not accept a connection request. The actual reason can only be found by inspecting the system which refused the connection. Maybe the two partners were not paired correctly, part of the address was...
10 Jan 2020 by Member 10376725
I want to collect data from a Blood Glucose Meter via Bluetooth using VB .Net. I've looked in a couple of Visual Basic and Visual Studio sites and all I find are programs written in C# and C++. Is there any to do it in Visual Basic? What I have tried: Haven't tried anything yet as I cant find...
10 Jan 2020 by OriginalGriff
If you find it working in C#, it will work in VB. There are a couple of sites that can convert the code for you: www.converter.telerik.com[^] is the one I use. But ... even easier is to use the C# code as is: add a reference to the assembly in your VB code and you can use the classes as if they...
14 May 2019 by Richard MacCutchan
See the answer to your other question on this subject.
21 Apr 2019 by Michael Haephrati
You can check the following source code examples which focus on WiFi as you requested (though Richard MacCutchan is right about the clarity of your question). windows - Connect to Wi-Fi C++ - Stack Overflow[^] and also check: WlanGetAvailableNetworkList function (wlanapi.h) | Microsoft Docs[^]
21 Apr 2019 by Elder Scrolls
How can i start with wireless programming in C++ or VC++ without MFC and without any third party library. I just want to use the prebuilt libraries provided in visual studio by Microsoft. What I have tried: googled. Not found anything.
13 Jan 2019 by dansica
Hello, I have tried many ways to make the connection of 2 Arduino to an App but I still can't get it to run smoothly. Is there any experts out there that can help me out? I just want to connect one Arduino for 5 seconds and disconnects and then connect to the other Arduino continuously. My code...
20 Nov 2018 by Richard MacCutchan
Your question does not really mean anything. But I suspect you are referring to sockets. Google for samples.
26 Oct 2018 by Smit Modi
I am working with Polar H10 to get the Heart Rate Variability from it. I am running Bluetooth Low Energy Sample from Microsoft. I have used this sample to get the heart rates from another polar device (Polar OH1) and it worked fine. But now I want to get the HRV from Polar H10. But BLE...
26 Sep 2018 by Dave Kreskowiak
Your code is written to expect an entire message in one "receive packet" but that's not how communication, over ANY network, works. Your receive code has to buffer whatever is gets and keeps on adding to the buffered content on subsequent receive events until a complete message has been...
26 Sep 2018 by w8Ball
Hello. I have a tiny Arduino sketch that sends random data via Bluetooth Module (I am using HC-06) every 5 seconds and I have a VB.NET windows Application that receives and manages the data. The data would look like this for example: "(255**255**255)" My VB.Net Application receives current data...
6 Aug 2018 by taifur
A password protected door lock based on Arduino which can be controlled by a smartphone over Bluetooth
2 Jul 2018 by mbarsott
Every time a security problem emerges, an army of bright minds try to find a clever fix. Fortunately, collaboration among these solution finders have also increased exponentially.
30 Jun 2018 by Brad1141
How to send data from a TMP36 to a Bluetooth terminal using the HC-05 module
16 Jun 2018 by Gerry Schmitz
UWP: Working with Bluetooth devices (part 1) – Canadian Developer Connection[^]
16 Jun 2018 by Member 13718582
Bluetooth Communication I didn't searched yet. its my first question to the internet I am trying to make a small car with arduino. I am using the HC-05, I know how I can send data to it, like a letter a word ... But what if I need to send a command by by serial from my C# application. For...
31 May 2018 by Samira Radwan
Hi All, As a new android developer, I'm working on an app that connect to Bluetooth device (BLE). I'm using Java Bluetooth classes including BlutoothGatt to connect/disconnect to that device. Everything works fine. The problem: I have a binary file which I'm trying to send to the Bluetooth...
1 Apr 2018 by JavaScrptMaster
I am trying to write a Power Shell script which will check the connection status of paired Bluetooth devices in a certain interval (15 sec) and if found the device is out of range then will lock the users system. What I have tried: In the following code I am not able to figure out how to list...
26 Feb 2018 by Member 13698171
What we want to do is when the arduino will send a signal to the C# app that we are making and when the arduino sent the A signal, a notification popup should appear, if it did not send, the notification box will not appear. What I have tried: { public partial class Form1 : Form { ...
26 Feb 2018 by phil.o
if (serialPort1.WriteLine("A")) ; You are not reading from the serial port, you are writing to it. Please have a look at SerialPort.Read Method[^] or SerialPort.ReadByte Method[^] or SerialPort.ReadChar Method[^].
15 Feb 2018 by /n software
This article covers general Bluetooth Low Energy (BLE) concepts and gives practical instructions for using / nsoftware IPWorks BLE
29 Jan 2018 by Phokaeas
WOW!!! I had no Idea that this was such a tough question or are you all asleep out there. If this is a forbidden question please let me know. Thanks
11 Jan 2018 by waj1206
Hi all,I am planning to develop a windows application (Note: NOT a windows store application) but i want to make use of Windows.Devices.Bluetooth this namespace to read the bluetooth devices and send and receive information from...
26 Oct 2017 by Oliverar
I am using Xamarin in C#, to build a cross platform BLE app. It is based on this example app using the Monkey.Robotics plugin. All the examples use a ObservableCollection devices; line, to populate a ListView with all the scanned results which the user can then manually select, setting...
26 Oct 2017 by Chris Maunder
Doing it in this manner allows the list to be updated as the devices are found. So, how you do it depends on what you're trying to achieve. In this case the demo app is scanning for and listing devices, so in this case it's appropriate.
23 Oct 2017 by marimir
I want to change the baud rate of a Bluetooth device (optical probe >> optical-probe.de/Optical%20probes/op700.html ). I don't know if it is possible or not, but I tried to do it with AT commands from the serial monitor of the Arduino IDE and no luck. What I have tried: The IDE detects my...
16 Oct 2017 by marimir
I am developing an android application.I need to get data from meter by optical probe via bluetooth. As I know I should connect to probe with bluetooth and send some request to that for getting the meter values. Please if anybody knows about how to do it .. help me. I used...
16 Oct 2017 by Wessel Beulink
First of all, did you update the manifest with the right permissions? The following permissions needed to be included:
10 Oct 2017 by Gedarius
if this service was an API or Web Service, this message is telling that you don't have a key to access the service. you can try enter in the service website and ask for an API key
6 Oct 2017 by Member 13339709
i'm able to pairing bluetooth devices but i can't connect, send and receive data, any help please? i'm using xamarin What I have tried: BluetoothDevice bdDevice = mBluetoothAdapter.GetRemoteDevice(devAdd); Toast.MakeText(BaseContext, "Connect to " + devName,...
3 Oct 2017 by David Crow
Brief example on how to use Android and Arduino to control a DC motor and LEDs over Bluetooth
22 Aug 2017 by Member 13373387
Hi , I'd like to write a program in Windows to hook up to an iphone and play music , make a call etc .. exactly like a car bluetooth connection does but from a PC. I think it should be do-able but since I'm completely new to BLE I'd really like some example code to make a start .. I used to...
12 Jul 2017 by Member 13294153
Hi there! I'm creating windows application in C++, which connect's PC with mobile via bluetooth and winsock. Allow's you to call and send messages from mobile via computer. I'm using AT command's to tell mobile what i want to do. Pair with mobile device and force a call with At command ...
12 Jul 2017 by KarstenK
Sending modem commands to a bluetooth device sounds a bit weired. I think you are using bad commands, so read the article Send and Read SMS through a GSM Modem using AT Commands to learn more about this issue.
5 Jul 2017 by cjecje
This seems like it should be simple but I'm having problem correlating multiple services for a device. I need to read characteristics for I have multiple devices, each has a custom service as well as implementations for some of the generic services. I thought that if I enumerated based on my...
26 Jun 2017 by code_enthusiast
Is it possible to develop Bluetooth low energy applications in C++ using Bluetooth low energy functions which should work on both windows 8.1 and windows 10 ?? What I have tried: If it is possible, Is there any code sample that i can use?
26 Jun 2017 by Richard MacCutchan
You already posted this question at Bluetooth low energy - windows programming[^]; please do not repost.
26 Jun 2017 by code_enthusiast
I am a newbie in Windows application development. Currently I'm working on a project to write a communication layer using Bluetooth low energy which should work on both windows 8.1 and windows 10. Below is the code that I used to run to list the BLE services, #include "stdafx.h" #include...
26 Jun 2017 by Jochen Arndt
You will probably never get a valid handle from GetBLEHandle. Your code in main() does not check the return value and the function itself is not working as expected: if (!SetupDiGetDeviceInterfaceDetail(hDI, &did, NULL, 0, &size, 0)) { int err = GetLastError(); if (err == ERROR_NO_MORE_ITEMS)...