Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Bug in SimpleControls Mac App (OS X 10.9 Mavericks) and BLEShield #6

Open
jensmeder opened this issue Jan 24, 2014 · 0 comments

Comments

@jensmeder
Copy link

Hi,

I stumbled upon a bug in the bluetooth stack in Mac OS X 10.9 (also in 10.9.1) that prevents the current implementation of the SimpleControls app to send data back to the BLEShield. CoreBluetooth recognizes the writable characteristic as "writable without response" but produces an error when you try to use it.
The bug has already been filed at Apple (http://prod.lists.apple.com/archives/bluetooth-dev/2013/Oct/msg00051.html) and there is a workaround available. If you want to use the BLEShield with Mac OS X 10.9 and the RedBearLab library you need to alter the characteristic "UART RX" in "RBL_BLEShield.xml" to allow "Write" and "WriteWithoutResponse". After this change you need to recompile the services.h header by using nrfgostudio.

If you have used the BLEShield with Mac OS X before you also need to erase the Bluetooth cache in Mac OS X otherwise CoreBluetooth does not recognize the characteristic change. Therefore you have to switch off Bluetooth, delete the following files and then turn it on again.

/Macintosh HD/Library/Preferences/com.apple.Bluetooth.plist /username/Library/Preferences/ByHost/com.apple.Bluetooth.UnknownHostID.plist /username/Library/Preferences/com.apple.BluetoothAudio.plist /username/Library/Preferences/com.apple.BluetoothFileExchange.plist

I hope this information is useful to someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant