This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC256x + MSP430 ANP/ANS Profile



Hi,

We're currently experimenting with the PAN1323EMK wireless module on the MSP-EXP430F5438a board using the ANP demo from the wiki (http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_ANPDemo_APP).

We're trying to pair a phone with the PAN1323EMK but right after we pair with the server the pairing is disconnected. Here is the output from our terminal:

LE>RegisterANS
Successfully registered ANP Service.
LE>AdvertiseLE 1
GAP_LE_Advertising_Enable success.
LE>
etLE_Connection_Complete with size 18.
Status: 0x00.
Role: Slave.
Address Type: Random.
BD_ADDR: 0x79B8E3EA63AE.
LE>
etGATT_Connection_Device_Connection with size 12:
Connection ID: 1.
Connection Type: LE.
Remote Device: 0x79B8E3EA63AE.
Connection MTU: 23.
LE>
etLE_Authentication with size 36.
Pairing Request: 0x79B8E3EA63AE.
IO Capability: lcKeyboardDisplay.
MITM: TRUE.
Bonding Type: Bonding.
OOB: OOB Not Present.
Encryption Key Size: 16.
Sending Keys:
LTK: YES.
IRK: YES.
CSRK: YES.
Receiving Keys:
LTK: YES.
IRK: YES.
CSRK: YES.
Sending Pairing Response to 0x79B8E3EA63AE.
GAP_LE_Authentication_Response returned 0.
LE>
etLE_Authentication with size 36.
latConfirmationRequest.
Invoking Just Works.
LE>
etLE_Encryption_Change with size 10.
LE>
etLE_Authentication with size 36.
Encryption Information Request 0x79B8E3EA63AE.
Calling GAP_LE_Generate_Long_Term_Key.
Encryption Information Request Response.
GAP_LE_Authentication_Response (larEncryptionInformation) success.
LE>
etLE_Authentication with size 36.
Encryption Information from RemoteDevice: 0x79B8E3EA63AE.
Key Size: 16.
LE>
etLE_Authentication with size 36.
Pairing Status: 0x79B8E3EA63AE.
Status: 0x00.
Key Size: 16.

At this point things stay connected for about 1 or 2 seconds, then immediately after we are disconnected:

LE>
etGATT_Connection_Device_Disconnection with size 10:
Connection ID: 1.
Connection Type: LE.
Remote Device: 0x79B8E3EA63AE.
LE>
etLE_Disconnection_Complete with size 10.
Status: 0x00.
Reason: 0x13.
BD_ADDR: 0x79B8E3EA63AE.

Does anyone have any insight into why the disconnects are happening?

Thanks!

  • Hi Evan,

    It looks like the remote device is initiating the disconnect.

    Could you please let me know what is the remote device(if smart phone: Also let me know what is the OS/app? ) you are using? As I have not faces any problem with Nexus 4(android 4.4)+BLE explorer(app). I have also tried with another MSP430 as the client without any disconnect.

    Can you also confirm that you are using “Stonestreet One BT+BLE Stack on MSP430 v1.4”?

  • Hi Sundeep,

    The remote devices we've tried with are a Blackberry Q10 (BB10.2) and a Nexus 4 (Android 4.4), both exhibit the exact same results when we try to pair with the device via the system bluetooth dialog.

    I will try on the Nexus 4 with BLE explorer, though I thought the point of the ANP profile was so that the phone will send beacons for alerts (such as new text messages), is that not correct?

    Confirmed. We are using the Stonestreet SDK v1.4.

  • Hi Evan,

    what do you mean by system bluetooth dialog. Do you mean Bluetooth setting's page?

    if yes, As far as I know from the settings page you can not connect to a BLE Profile - you can discover it in the settings page if you enable advertising on the PAN 1323.

    You need to have a APP/profile running on your phone to connect to the profile. For Eg, you can try running the BLEExplorer app available on the android market.

    ANP profile defines two roles: 1. Alert Notification Server and 2. Alert Notification Client.

    Client role will receive the notifications.

    See: https://www.bluetooth.org/en-us/specification/adopted-specifications -> Alert Notification Profile

    ANP Demo app can act as both client and server.