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 ?
Please help
Hello Ido,
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)
Any direction?
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.
Hi,
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
HD