I've been tasked with developing a BLE app for the iPhone 4S. A colleague (who lives and works about an hour away) will be using the TI CC2540 kit to develop the peripherals with which the iPhone will interact. I'd like to be able to use BTool and the CC2540 USBDongle to serve as a test peripheral, just to validate that the app under development can do the most elementary things. I have an old Windows XP system, bought the Dongle (and a CC Debugger to reflash it) and have installed what I think is all the necessary support, though not without a struggle (being a tyro here). At this point, BTool sees the Dongle, but I'm unclear as to how to get it to (1) tell the Dongle to be a slave and (2) advertise something (Generic Access would be fine).
Some stale advice on this general subject seems to be out of date, for instance referencing hex files other than cc2540_usbdongle_hosttestrelease_all.hex, which seemed to be the only really plausible candidate (assuming that cc2540minidkdemoslave.hex isn't suitable) when I used the CC Debugger to reflash the Dongle. In it (the older advice) mention was made of ways to use BTool to tell the Dongle to be a slave, but the ways mentioned don't seem to be applicable now.
If anyone at TI aspires to be a true benefactor to mankind (or at least to a subset of its geek subset), my recommendation would be to compose a Windows program (runnable on XP and up) which would, like BTool, use the CC2540 USBDongle, and, in addition, would automatically put it into slave mode, and then would use it to advertise a BLE Service, the hex string for which would be enterable (in the full standard form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). It would not be required to actually provide any Characteristics, only advertise the Service (since Core Bluetooth uses that to filter out candidates when it scans). However, it could usefully provide some simple Services, with Characteristics as described at https://developer.bluetooth.org/gatt/services/Pages/ServicesHome.aspx, and I'd recommend Generic Access, Device Information, Battery Service and Tx Power.
Making a case for such a tool, I offer the following: My colleague who is developing for the peripheral with the TI kit does not have as warm a feeling communicating ONLY with a master developed by TI, as he would were he to see communication with something else entirely, no easy task in itself. However, with Mountain Lion and a late-model Mac Mini, there is hope that he can now do so. My predicament isn't the mirror image of his, since I don't have anything at all with which to communicate, but my need for a warm feeling equally strong.
You will find the steps you are looking for in this post: http://e2e.ti.com/support/low_power_rf/f/538/p/187762/732079.aspx#732079. Essentially you need to issue three commands from the Adv. commands tab of BTool:
I hope that work things out for ya.
It did the trick. As evidence, I'll offer the image below (if I can get it in).
At some point, I'll try to put a reply on this thread that describes how an idiot (and I feel no shame about it) managed to get to the point where (without buying a Wahoo Heart Monitor for $80, but, instead, only spending $100 on the TI Dongle and CC Debugger) he managed to get his iPhone 4S to see something BLE.
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.