Other Parts Discussed in Thread: CC2540, BLE-STACK
I am having trouble understanding how to read or write GAPROLE parameters from my iPhone app. To get started, I simply want to read GAPROLE_MAX_CONN_INTERVAL (0x312) from the keyfob by modifying TI-BLE-Demo.xcode. I see which commands are sent/received using BTool, I see how these commands are processed in the firmware (with the IAR tools), and I see how the commands correlate with “TI BLE HCI Vendor Specific HCI Guide.pdf.” That all makes perfect sense. But I don’t understand how to send the same commands from my iPhone.
Do I need to create an interface in the iPhone app for the UART?
Can I use readValue somehow?
Should this be a trivial effort, or is there a complex interface that needs to be created?
I do know how to use readValue and writeValue from the xcode example using the UUIDs for the services and characteristics, but the GAPROLE commands don’t have UUIDs.
Is there anyone who could provide a very brief overview as to how to read a GAPROLE parameter from the iPhone? Or at least point me in the right direction? Any insight would be greatly appreciated!