We have a new sample project, IPhone4SBLEDemo, which can connect and interact with our CC2540 keyfob. This is an iOS project and source code can be downloaded from the Texas Instruments Wiki;
The Application interacts with the CC2540 keyfob and can,
This is a first demo and we have not fully tested it, we just simply want to get you going as soon as possible.
Note that you would need to join the iOS Developer Program in order to build and download the App to your iPhone 4S.
Thanks and good luck
This is very usefull.
I have a few questions about the iPhone side :
1. Where is the command to start scanning for devices issued ?
2. Where you define the desired connection parameters (connection interval, slave latency, supervision timeout) for the master (which is the iPhone) ?
In the TIBLECBKeyfob.m you will find the answer for your first question. The scanning is initiated with scanForPeripheralsWithServices. The second question is a really good one ,unfortunately I dont have the answer. I believe we use some kind of default value for the connection parameters.
Please feel free to correct me or find an answer :)
1. I can"t download the demo.zip. Is there problem with it
2. Does the 4S support BLE (from the OS side not the HW) or do you run the BLE stock in the app?
Oded GlobermanI can"t download the demo.zip. Is there problem with it
Should work fine, just verified it.
Oded GlobermanDoes the 4S support BLE (from the OS side not the HW) or do you run the BLE stock in the app?
There is an API (Core Bluetooth) for basic stuff such as scan, connect and
exchange data (GATT).
have you guys tried that if the screen is locked or the application is not in the forground could a BLE still send data to the iphone? if I want to design something that keep transmitting discret data to iphone4s through BLE, the application that receives the data must be always alive. But as far as I know you can't do that by classic Bluetooth on iPhone since there is no background task in iOS unless you declear your device to be four kinds of application such as musci playing to geo related. I am not sure if Apple has changed that in iOS5 yet.
I am pretty sure that BLE data can be received when the application runs in the background. What I can tell you for sure is that, when application is running in the background or screen is locked, the application notifies the user if something has changed (for example BLE data has been recieved). So that could prove the theory :) But we haven't done any long term testing on this... yet.
thank you very much! by "application" do you mean the demo application showned in the video?
How could a device invoke the proper application which is associated with it? In the demo video the last part shows that the device is asking the phone to run the helloworld application. I know that it is possible to do it through classic bluetooth by using wirelessiAP. But there seems to be no mention of it in the coreBluetooth about this function. Is BLE also part of Accessory framework of iOS?
jie liu36614the device is asking the phone to run the helloworld application
No, the device is already running in the background :) The iOS application has simply been "minimized" and the screen locked before we send BLE data.
Does any body know if there any theoretical limitations to the number of BLE devices that can be paired with the CoreBluetooth.framework ?
Does it mean that just the IOS development licence is enough for using this demo?
Tony SiuDoes it mean that just the IOS development licence is enough for using this demo?
Yes, and the hardware of course (iPhone 4S and CC2540DK-MINI)
1. Does using BLE requires Apple chip on the board, like it used to be with the former bluetooth solution? (connecting iPhone to a bluetooth device, required an apple chip added to the chipset, as well as being a member in the MFI (made for iPod programm).
2. Does using BLE requires MFI membership (or only apple developer)
3. Is it possible that BLE event will "wake up" the application (bring it to forground) or at least will enable some background process (like navigation apps)? (I saw it was asked, but didn't see a confirmed answer)
Thanks a lot
the answer to your question is in:
Please, do not post the same thing in two places :) And please press the "verify" button in the answer Nick has given you in the other post in order to other people can learn of your experience.
Please click the Verify Answer button on a post if it answers your question! :)
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.