Questions tagged [iobluetooth]

82 questions
1
vote
0 answers

Swift MacOS IOBluetooth unable to connect to daemon

My problem is that on line 35, where I start IOBluetoothDeviceInquiry, it gives me the following error: Failed to create connection to the daemon: Distributed objects message send timed out Here is my code that is not working: import Cocoa import…
Aaronjam
  • 15
  • 1
  • 10
1
vote
1 answer

Segmentation fault when flag `-fobjc-arc` is used

I am using the IOBluetooth framework on Mac OSX to do device discovery. I have added some NSLog() inside the callback functions, so I know the progress. If I compile the code with gcc on command line like this, everything works fine (source file…
Nick Lee
  • 5,639
  • 3
  • 27
  • 35
1
vote
1 answer

IOBluetooth register for channel open notification not firing when channel is opened

I'm working on a project that requires bluetooth 2.1 and I am trying to make a testing client to connect to the hardware. So I have been pouring through the 'docs' for IOBluetooth and have managed to broadcast an SDP Service Record. Opening a…
TinfoilPancakes
  • 238
  • 1
  • 13
1
vote
0 answers

How to correctly construct A boot mouse BT HID Service record

I've being trying to build a simple HID mouse Service record based upon the example in the bluetooth document. https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=246761 I've pieced together the majority of the plist but it's not 100%…
B_B
  • 23
  • 5
1
vote
0 answers

IOBluetooth or CoreBluetooth | How to connect iOS with a non MFi medical bluetooth device

I'd like to setup a connection between a iPhone and a medical device which provides information about the heart. I will get information about the bluetooth protocol soon. At the moment I have trouble using apple's bluetooth library. Is CoreBluetooth…
1
vote
1 answer

Is it possible (and does it make sense) to have a bluetooth iOT device in peripheral mode listening to both, BLE and Bluetooth Classic connections

We are currently building a device that needs to be compatible with newer smartphones that run BLE but also be backwards compatible with Bluetooth 2.1. We are using a Mediatek Linkit ONE board for our prototype which can operate in dual mode. They…
1
vote
0 answers

Connect Bluetooth Devices using IOBluetooth for Mac Os x

I am creating Os x Application on Mavericks with Xcode 6. I want to do simple task in this Application like search for Bluetooth Devices and display List, Connect with device which is selected from list. I am using IOBluetooth Framework. I have…
nadim
  • 776
  • 1
  • 12
  • 26
1
vote
1 answer

How to use service soliciting with IOBluetooth/CoreBluetooth?

What I'm trying to do is use the Apple Notification Center Service (ANCS) from my iPhone on my Mac. To make my Mac show up on in my iPhone's Bluetooth settings, I apparently need to use service soliciting. What I've tried so far is initiate a…
Joost
  • 173
  • 3
  • 7
1
vote
1 answer

Mac OS X/Bluetooth: Programmatically disable simple pairing?

The Bluetooth Explorer app from the dev tools (/Developer/Applications/Utilities/Bluetooth/) allows you to turn off Simple Pairing on your device. (Run the app, select menu item: "Utilities>Get Local Device Info", and click on the "Simple Pairing"…
Josh Freeman
  • 2,262
  • 16
  • 14
1
vote
1 answer

IOBluetooth is returning no characteristics for some services

I’m trying to read characteristics from a service on a Bluetooth LE device. For some reason, for some characteristics, after calling -[CBPeripheralManager discoverCharacteristics:forService], the peripheral:didDiscoverServices: callback is getting 0…
yonran
  • 18,156
  • 8
  • 72
  • 97
1
vote
1 answer

How to send file from iPhone to mac over bluetooth

I have created universal device application to transfer any kind of files via bluetooth using GameKit Framework. My question is how to create on Desktop Application with same process or there any Framework? That can communicate also on the device.…
Default
  • 11
  • 1
1
vote
0 answers

IOBluetooth + Arduino: writeSync:length: data malformed?

I'm having trouble sending data from my mac to the bluetooth arduino board. It appears that the data being sent is being malformed in some way, as the arduino sees random values for each of the bytes being sent from the mac. NSData creation I create…
Niall Mccormack
  • 1,314
  • 13
  • 19
0
votes
1 answer

Android bluetooth game, need to transfer int[] across byte stream

Here's the situation: I am making a multiplayer version of pong for android. When my paddle connects with the ball, I want to send the other player the point of impact of the ball (as an x,y coordinate) so that the other player's screen can update…
0
votes
0 answers

Bluetooth LE / Classic capablilities of iOS and MacOS

I want to create an App that should transfer data via Bluetooth but I'm new to developing apps for Mac / iPhone. The app needs to... ... scan for and detect BLe advertisements with a specific manufacturerId (Not apples) (like I can on android) ...…
0
votes
0 answers

IOBluetooth: deviceInquiryStarted and deviceInquiryComplete never called

I'm scanning for Bluetooth devices on macOS 13.1 using IOBluetoothDeviceInquiry. The scanning itself works, but only the deviceInquiryDeviceFound delegate method gets called. For the remaining methods: deviceInquiryStarted never fires, even though…
mingwei
  • 93
  • 6