Forums/BLE Shield SDK

BLE SDK b0.4

RedBearLab
posted this on November 16, 2012 17:43

Please post questions and comments about SDK beta version on this forum.

This is a beta version of our SDK, therefore you may encounter some bugs/issues, thank you for your patient and understanding.

We have started to host all our open source projects on GitHub. You can download our SDK beta 0.4 at https://github.com/RedBearLab/Release/tree/master/BLEShield.

New in this release:
- A new demo "Simple Controls" showing how to create controls for common Arduino pin settings
- Our framework is now compatible with both Mac OS X and iOS (We have renamed the forum because of this)

We hope you enjoy it and looking forward to your valuable feedback.

Best regards,
RedBearLab

 

Comments

User photo
Denys

Hi, I have tried the SimpleControls app on my iphone but none of the controls worked. I have loaded your BLE Arduino iOS app on my phone and confirmed everything worked there. I believe my hardware setup is the same as on the youtube video (Arduino Uno, BLE Shield and Grove board). It would be awesome if I could just get the digital out on pin 4 to turn on/off an LED. Please advise the possible error. UUID? Thanks

November 27, 2012 10:56
User photo
RedBearLab
RedBearLab

Dear Denys,

Have you uploaded the SimpleControls sketch to your Arduino?

Best regards,
RedBearLab Support

November 27, 2012 12:16
User photo
Peter Betz

Hello,

 

 My BLE shield from Seedstudio is due to arrive tomorrow. One stupid question to start me off on the right foot:

 

When we create an app either for OSx or IOs on Xcode (using your simple controls app as a guide), we will not actually be able to use it to interface with the BLE shield until we sign up to the MAC developer program?? Is that an accurate statement?

 

Thanks in advance.

Peter.

December 04, 2012 06:50
User photo
Denys
Not sure about Mac but there are unofficial ways to get apps on the iOS devices without the dev license. Then again, where is the fun if you can't share what you created ?? :) redbear's product and code works like a charm two thumbs up from me.
December 04, 2012 08:53
User photo
Peter Betz
I agree, I was just wondering if I needed to buy the development license before I even got to test the application !!
December 04, 2012 09:13
User photo
RedBearLab
RedBearLab

Hi Peter,

You could compile and run Mac OSX version without any issue.

As for iOS, you need to enroll in Apple's iOS Developer Program in order to download your own program into your iDevice, otherwise you can only run it inside the simulator and there are issues regarding BLE support inside simulator.  Please refer to Technical Note TN2295: Technical Note TN2295 http://developer.apple.com/library/ios/#technotes/tn2295/_index.html.

Best regards,
RedBearLab Support

December 04, 2012 12:05
User photo
Peter Betz
Thanks for the info. My MacBook Pro is pre BLE so I assume I would need a BLE USB adapter to run an osx app? That would be half the price of the dev license so I guess it makes the most sense to just sign up for it and test on iOS ! Can't wait to start playing with it, we are working on something that will be featured on the discovery channel early next year.
December 04, 2012 13:11
User photo
RedBearLab
RedBearLab

Hi Peter,

Yes, you need a "compatible" BLE USB dongle (*not all of them work in iOS Simulator, we had some bad experiences).

Best regards,
RedBearLab Support

December 04, 2012 23:04
User photo
Steven Davis

I have recently begun to play with my BLE Shield and with every example app I am having a problem.  When watching the log in XCode (running in the simulator with the proper BLE dongle -- no problems there), I keep discovering 1 peripheral, but the UUID is always NULL.  Is this an issue with my iOS BLE stack, or an issue on the Arduino board?  Thanks for the help!

February 16, 2013 11:11
User photo
David Crook

 I'd like to have some flexibility to prototype on the simulator .   Above, it mentions trouble around needing:  'a "compatible" BLE USB dongle' . 

I am having trouble determining which Bluetooth LE dongle will work for this with Mountain Lion.  Much of the information I have googled is incomplete and/or not using Mountain Lion.

Do you know (or have pointer information) compatible dongles for Mac OS X Mountain Lion and Bluetooth LE for iOS SDK simulator support? 

February 17, 2013 01:29
User photo
Steven Davis

I only have Lion but using the Cirago Adapter works for me in the simulator...

February 17, 2013 03:41
User photo
RedBearLab
RedBearLab

Hi David,

We have tested SeeedStudio's "Bluetooth CSR4.0 USB Dongle" and it works with iOS simulator.

http://www.seeedstudio.com/depot/bluetooth-csr40-usb-dongle-p-1320....

Please note that we are running Xcode 4.6 on Mac OS 10.8.2 on a machine with built-in Bluetooth 4.0 hardware support. Don't forget to read Apple's Technical Note TN2295 http://developer.apple.com/library/ios/#technotes/tn2295/_index.html.

Best regards,
RedBearLab Support

February 22, 2013 20:38
User photo
Steven Davis

Dear RBL,

 

Any ideas on my problem?  Anyone else having the same?  I honestly cannot understand how the UUIDs would be "null" unless there is a problem with our shield.

February 22, 2013 23:33
User photo
David Crook

 

Just reporting back on the part of the thread related to the Bluetooth 4.0 LE dongle.  I was able to successfully use the above mentioned $10 SeeedStudio "Bluetooth CSR4.0 USB Dongle" in the Xcode iOS 6.1 Simulator.  

I _did_ have to reboot the host Mac (Early 2008 MBP, running OS X 10.8.2 (12C60)) before the iOS Simulator app was able to find the BLE Shield...

March 05, 2013 12:55
User photo
Steven Davis

Awesome to hear.  Now -- anyone have any ideas on why I keep seeing "UUID = null"?  I don't even know where to begin with this.  Is it a problem with the sketch?  With the Arduino libraries?  With the hardware?!?!  Someone PLEASE help!!!

March 05, 2013 23:32
User photo
Maneesh S

I have the same problem as Steven Davis. I keep getting a "UUID=null" after connecting through the iOS simulator. I am using the Cirago Adapter as well.


This is the console log in Xcode:

Status of CoreBluetooth central manager changed 5 (State powered up and ready (CBCentralManagerStatePoweredOn))

2013-05-01 15:09:08.288 SimpleControls[1123:c07] scanForPeripheralsWithServices

didDiscoverPeripheral

Stopped Scanning

Known peripherals : 1

List of currently known peripherals : 

0  |  NULL

------------------------------------

Peripheral Info :

UUID : NULL

Name : BLE Shield

-------------------------------------

Connecting to peripheral with UUID : NULL


May 02, 2013 06:09
User photo
Steven Davis

I couldn't solve this problem (no one responded to me :(... ) So I just started testing on the iPad and it worked right away.  Good luck! Let me know if you figure it out.

May 02, 2013 22:40
User photo
arduone

I've downloaded the sdk but how can i configurate an xcode project and start to comunicate with arduino?

Can you provide a very simple xcode project or someone can share it? thank you

June 13, 2013 22:11
User photo
Steven Davis

There is one (two actually) in the SDK.  Did you download, unzip, and look at the package?

June 13, 2013 22:34
User photo
arduone

i can see just one, and it's for macosx not for iphone target.

Also there are 7 incompatible issues.

the @interface AppDelegate : NSObject <NSApplicationDelegate>

 

do this [self appendString:@"Something went wrong"];

but NSObject can't appendString...

June 13, 2013 23:20
User photo
arduone

excuse me i can't modify my previows post, i was looking inside the wrong folder.

June 13, 2013 23:22
User photo
arduone

ok I'm in now :) how can i setup my arduino and shield to run for example BLE Chat project?

June 13, 2013 23:24
User photo
arduone

what are minimum requirement of IOS and Xcode version?

I'm running on IOS 5.0 simulator without arduino connected and it crashes. I was waiting for a "connection..." text label

June 13, 2013 23:36
User photo
Steven Davis

I will be sincerely surprised if you get this to work in the simulator, even with the proper dongle (see my posts above about this).  Also you should need ios6 to get CoreBluetooth support I believe...

June 14, 2013 01:11
User photo
arduone
i belive my macbook pro supports bluetooth 4.0 so i should't need the adaptor. but why the simulstor crashes?
June 14, 2013 05:50
User photo
Steven Davis

@arduone -- it doesn't matter.  Read the notes from Apple: http://developer.apple.com/library/ios/#technotes/tn2295/_index.html

June 17, 2013 23:02
User photo
arduone

Is the shield compatible with my iphone 4?

June 17, 2013 23:58
User photo
Steven Davis

iPhone 4S has BLE, I don't think iPhone 4 does.  So no :(

June 18, 2013 00:36
User photo
James Egan

I've just received the BLE shield, tested it using the BLE Firmata sketch and its all functional.  I uploaded the Simple Controls sketch, but there doesnt seem to be functionality on the iOS side (that is, the BLE Arduino app in ios doesnt seem to be the right app to use).  Is there a simplecontrols app available for testing ?

thanks

February 06, 2014 05:02