I am looking for a working & documented example project for iPhone 4S (BLE) communicating with the CC2540DK (not mini) based on the SmartRF05EB motherboard + CC2540 modules.. My final application is will be transferring simple binary data at low data rates between phone and CC2540 board.
I've encountered only examples for working with the keyfob + apple/android phones..
Why is the main (and more expensive) Devkit overlooked?
If such example does not exist - is there a recommended way to "port" the keyfob mini example into CC2540DK ?
You are going to have write your own code for the iPhone to CC2540DK. Everything should be almost identical since you are using the same CC2540 chip. The CC2540DK comes with CC2540EM modules. You should be able to program those with the iPhone 4S TI example, unless of course you really want to have the LCD option for your demonstration.
I know it's the same chip, the question is how do I port it from the keyfob (dk-mini) to the cc2540em as there are many hardware changes.
I just want the iphone to connect and transfer few KBs of proprietry data.LCD, peripherials are not relevant for me right now (though the module is powered from an smartRF05EB board)
The first thing to so would be to look at the schematics to determine how the differences in boards affects how the code will run. That is, if the code is looking for a button press to initiate or broadcast and the EM doesn't have buttons, well you'll have to change the code.
Look at the board configuration file for the different configurations. In the IAR, look at what changes are made when you switch from CC2540EM and the key fob. Like any other porting process, you just have to go through what files are used and how the define statements affect them.
More than likely though it has to do with the button to start advertising. The EM doesn't have any. Load the key fob code into the EM and connect switches to P0_0 and P0_1 and follow the startup procedure for connections to the key fob.
I made a board by CC2540 EM and just fully follows the CC2540 mini kit's design. However, TI Demo APP for iPhone 4s only can connect with the mini kit with KEYFOB hex file. Same hex file doesn't work with neither CC2540DK (not the mini one) nor my own board. TI Demo APP closes immediately when I try to connect.
ps: "BLE Scanner" APP on iPhone 4s can find the CC2540DK and my own board with KEYFOB hex file. But why TI original demo APP can't.....
Is anyone can connect CC2540DK or CC2540EM to iPhone4S?
Thank you so much
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.