Part Number: CC2640R2L
Other Parts Discussed in Thread: CC2640
Hi,
We had a requirement where the TI bt chip CC2640 needed to be controlled from the host CPU and the TI bt chip CC2640 needed to act both as a peripheral and central, based on the need. We figured out that running "Host Test sample application" on CC2640 and write a application code which will send HCI/GAP/GAAT messages.
- Central: We are clear on this and were able to verify the same with the "btool" using a launchpad.
- Peripheral : We have 2 options to get this working
- Compile with GATT_DB_OFF_CHIP and have the gatt server controlled from the external application. The problem with this is
- We could not find an example where the same is implememted.
- Forums discourage going this route.
- Not sure what are pit falls we may encounter. For example after we add a service using GATT_AddService (0xFDFC), while adding an attribute using GATT_AddAttribute (0xFDFE) could not figure out how to enable NOTIFY ( looking at doc TI BLE Vendor Specific HCI Reference Guide Version 3.0.0) .
- Unfortunately btool also dose not support to validate this mode
- Reading in the forum , we see advice as to add a service in the firmware it self and use the same example (https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1096805/cc2652r-how-to-use-gatt-server-from-btool-host_test-app) . Wanted to know what is the best way to achieve the following two ( assuming service is added in the firmware itself)
- Our requirement was that what ever data that is written to this Peripheral should be sent to the application processor.
- Our requirement was that the application processor will send the data to the connected central device using notify.
- Compile with GATT_DB_OFF_CHIP and have the gatt server controlled from the external application. The problem with this is
Can you guide us with the approach to take to get the Peripheral implemented?
Regards,
Sumanth N