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.

LAUNCHXL-CC2640R2: Project Zero: Slave BDA address list does not match; Connection un-initiated in Task 2?

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: RF430FRL152H

Hello,

I had now initiated without errors, and successfully scanned in BTool after Host_Test device flashing/unplugging/plugging. But the list of Slave BDA (2C:00:16:2B:00:5A, for example) does not seem to match the device (GAP) address (0C:61:CF:47:63:53), obtained from PuTTy terminal (COM4) while flash the device with Project Zero. Besides, selecting/filling either of the addresses in Salve BDA area did not seem to establish connection successfully, with following messages:

[when selecting 2C:00:16:2B:00:5A from the dropdown]: Please note that status is "bleincorrectmode."

[21] : <Rx> - 12:51:00.654
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x14 (20) bytes(s)
Event : 0x0605 (1541) (GAP_EstablishLink)
Status : 0x12 (18) (bleIncorrectMode)                         
DevAddrType : 0x02 (2) (ADDRTYPE_PUBLIC_ID)
DevAddr : 2C:00:16:2B:00:5A
ConnHandle : 0x0000 (0)
ConnRole : 0x00 (0) (
ProfileRoles Bit Mask Is Not Set)
ConnInterval : 0x0000 (0)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x0000 (0)
ClockAccuracy : 0x00 (0)

Please note that status is "bleincorrectmode." Does this mean BLE is in correct mode or incorrect mode?

[when filling the device address 0C:61:CF:47:63:53 in the Slave BDA area]: 

[26] : <Rx> - 12:54:02.938
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x14 (20) bytes(s)
Event : 0x0605 (1541) (GAP_EstablishLink)
Status : 0x09 (9) (NV_ITEM_UNINIT)
DevAddrType : 0x02 (2) (ADDRTYPE_PUBLIC_ID)
DevAddr : 0C:61:CF:47:63:53
ConnHandle : 0x0000 (0)
ConnRole : 0x00 (0) (
ProfileRoles Bit Mask Is Not Set)
ConnInterval : 0x0000 (0)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x0000 (0)
ClockAccuracy : 0x00 (0)

Please note the status is "NV_ITEM_UNINIT". It mean it's un-initiated, right??

Furthermore, the COM4 port in the PuTTy terminal turned "inactive" or "unable to connect", after BTool is activated for scanning or connection establishing. So it would not show any "connected" PuTTy  status as depicted in training step 2 (Using BTool).

What could be the problems?  Thank you very much!

Albert

  • Hey Albert,

    I apologize for the issues you are seeing. Can you help me by elaborating on what you are trying to do at a higher level? It sounds like you have 2 boards and want to use host_test as a central device on one of the boards and connect to a peripheral (i.e. project zero) that uses the other board. Have you taken a look at the Bluetooth Low Energy Fundamentals Simplelink Academy module? There are instructions on using host_test as a central there.

    The bleincorrectmode error can mean that host_test is not configured correctly. If can share the entire BTOOL log, perhaps I can get more insight.

    A brief explanation on what I think might be happening could be: Project Zero may have RPAs enabled. If Project Zero is printing out the device address, then you will not be able to connect to it using the direct device address until after you have paired/bonded. If the slave is advertising using RPAs, the RPA will likely refresh periodically, meaning you will see a new address to connect to as long as you are unencrypted and not paired/bonded. I would recommend performing a scan to see if you can find Project Zero and connect using the RPA. I hope this makes sense.

  • Hi,  Ammar,

    Thank you for your quick response. I was going through the BLE Fundamental Training (https://dev.ti.com/tirex/explore/node?node=ADoEZBrWKWqhpyfpKc8WDw__krol.2c__LATEST). The problems arose in Task 2 while implementing with the option of "Expand instructions for connecting using BTool." Please refer to my last message for details of the implementation of Task 2.  

    I have only one board Launch-CC2640R2F connected. 

    Thank you!

    Albert

  • Hey Albert,

    Which SDK version are you using? Can you help me understand what device are you trying to connect to? You mention both project zero and host_test, but since you only use one launchpad I am still confused as to what your setup looks like. You can only have host_test running BTOOL OR project zero running with one launchpad, but not both..

  • Hi, Ammar,

    The Task 2 was followed after I completed Task 1 as detailed on the linked Training page (shown in last message). In Task 1, Project Zero was built and flashed while PuTTy was used to view the port traffic. "Take a note of the device address" was noted at the end of Task 1, which I did. The device (GAP) address was 0C:61:CF:47:63:53. 

    In Task 2 (using BTool option), however, Host_Test was built flashed according to the linked Training page. BTool was used to Scan and Establish connection. Supposedly, after scanning, the Slave BDA dropdown list, after scanning, should have at least one address match device address 0C:61:CF:47:63:53. But it did NOT. The only Slave BDA address in the dropdown list for the specific scan was 2C:00:16:2B:00:5A. Furthermore, either selection  or filling of either addresses do not seem to result in connection establishment. Please refer to my original message for specific questions regarding the error messages. Another question I had at the end of my original message was why the PuTTy terminal seemed disconnected when BTool was initiated for scanning and connection. If they are not supposed to be active at the same time, why the Task 2 says PuTTy should show "connection" established after BTool Scan and connection Establish?

    Please consult with your colleague Clement for more info, if you're still confused. He knew the story of my testing/training progress. Thank you!

    Albert 

  • Hey Albert,

    I believe there is some confusion here. If you choose to move on to Task 2 and use the BTOOL option, you must have a second launchpad to do this. The intended flow is to continue onto Task 2, leaving the first launchpad in Task 1 untouched. Then, with a second launchpad using BTOOL, you can connect to the first launchpad in Task 1 using the address you noted. Does this make sense?

    why the PuTTy terminal seemed disconnected when BTool was initiated for scanning and connection. If they are not supposed to be active at the same time, why the Task 2 says PuTTy should show "connection" established after BTool Scan and connection Establish?

    Again, it was intended to use 2 separate launchpads for this part as the Training page states in the prerequisites. Both BTOOL and PuTTy cannot be active at the same time because both tools will require serial input. Task 2 refers to the PuTTy terminal of the first board from Task 1. The board in Task 2, flashed with host_test running BTOOL, acts as a central device and connects to the board in Task 1. Upon connection, the board in Task 1, connected to the PuTTy terminal, will show connection establishment.

    I hope this clarifies things. I will follow up with the team internally to clarify the wording and be more explicit to avoid such confusion in the future.

  • Hello, Ammar, 

    Thank you for your clarification. That would make more sense. I assume that both boards have to be connected simultaneously running PuTTy and BTool separately, right? Also do the second host board have to be a Launchpad type of boards? I have a RF430FRL152H Eval board. Can it serve as the host board? Thanks!

    Albert

  • Hey Albert,

    The RF430FRL152H Eval board won't be able to run the host_test application unfortunately.

    At a high level, what are you trying to accomplish? You can complete the module without using BTOOL by using a cell phone instead. If you can shed some light as to the end application you are evaluating I can recommend how you can reach your goals using only one Launchpad.

  • Hi, Ammar,

    Thank you for the clarification. We are evaluating BLE controller for health monitoring. The Bluetooth-enabled PDAs shall be the device of data storage, analysis, etc. I will proceed to test PDA based scanning in the BLE training, but your reference designs seem lack functional apps for both iOS and Android. Is this correct? Do you have any suggestions? Thank you!

  • Hey Al,

    I would use Simplelink Starter (available on iOS and Android) when following the BLE training. You can also use Light Blue for most of the steps outlined in the guides.