The following code is not working for me, and I can't figure out why:
if(sdk_bt_visible == SDK_DISC_ON) break; retval = BT_hci_write_scan_enable(0x03); if (API_SUCCESS == retval) { set_led(LED_DISCOVERABLE); sdk_bt_visible = SDK_DISC_ON; }
retval returns API_SUCCESS, but I'm unable to discover my device from remote hosts. The strange part is that when I first boot the chip, this code works correctly and I can discover/pair/connect to the device with no problem. The discoverable period times out after a minute, and then I run this code:
retval = BT_hci_write_scan_enable(0x00); if(retval == API_SUCCESS) { sdk_bt_visible = SDK_DISC_OFF; set_led(LED_IDLE); }
Which functions fine - retval equals API_SUCCESS and the device is not discoverable. I use a button sequence to call the first code block again, but the device does not show up when I try to discover it from any remote device.
My hardware is a custom board similar to the PAN1315/MSP-EXP430F5529.
Any ideas on what could be going on here?
Which device and service pack are you using?
Arild
I'm using MSP430F5528 and CC2560. Which service pack are you asking about?
Nick,
Please refer to this wiki to get the information regarding the service packs.
http://processors.wiki.ti.com/index.php/CC256x_Bluetooth_Versions_and_Service_Packs
Miguel
I'm not actually using the PAN1315, my board is just a similar layout. I'm not sure if the service pack is for the CC2560, or the PAN1315. Either way, my project is using libTI_init_script_BT_CC2560.r43 which seems to mean that I'm not using the service pack.
The service pack is for the CC2560. What do you mean that you are not using the PAN1315? What are you using? The library above is the service pack that is used for the PAN1315. There is another lib, libTI_init_script_BT_CC256x.r43 , which is for PAN1315A or CC2560A.