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.

RTOS/LAUNCHXL-CC2640R2: Stack Assert Spinlock Error While OAD is Starting

Part Number: LAUNCHXL-CC2640R2

Tool/software: TI-RTOS

Hi,

My CCS ver:  8.3.0.00009

My SDK Ver: 3.10.0.15

My basic problem is that: I cannot update my firmware that is a modified version of the SDK 3.10.0.15/blestack/OAD_OffChip example by using BTool.

I have a cc2640R2 launch board and I wrote code by your example under the SDK 2.40.0.32/blestack/simple_pheripheral and it works just as I want without any problem. 

Then, I needed to add OAD property to my firmware and (by the way, I upgrade my SDK to 3.10.0.15) I ported my code (that is not so small code, It uses internal flash, it has additional thread, multiple sensor driver codes, etc) under the SDK 3.10.0.15/blestack/OAD_Off_Chip example and its BLE interface works just like I expected. I can read and write characteristic values etc, (It has a problem by starting the thread as I mentioned under this issue: RTOS/LAUNCHXL-CC2640R2: Adding Second Thread to OAD Off-Chip Example) for example. In my application, I have 6 characteristics and to do that, I just changed a couple of lines in "simple_pheripheral_oad_offchip.c", "simple_gatt_profile.c" and "simple_gatt_profile.h". I do not think I corrupt somewhere related with OAD implementation. 

Then, I tried to update the firmware with BTool (I can do that with before with Off_chip example before I ported my code, so I think I know how to do that). I got the error "Stack Assert Spinlock Error" on serial terminal.

Could you please help me with this issue.

Thanks,

Doıgus

  • Hi Dogus,

    Assigning this to our OAD expert for follow-up

  • Hi Dogus,

    Can you look at the call stack once this spinlock occurs?

    This might give us the best clue to what function call failed.

    Best Regards,
    Yuval

  • Hi,

    Program calls HCI_BLE_HARDWARE_ERROR_EVENT_CODE case in "SimplePeripheral_processStackMsg" function. 

    If this reply is not helpful to you, please explain a little bit how can I do that.

    Thanks,

    Dogus

  • Hi Dogus,

    Is this the same issue as the issue in the following link?

    e2e.ti.com/.../812961

    Best Regards,
    Yuval

  • Hi,

    No, this is not the same problem.

    My main aim is to add OAD property to my existing project and I encountered several problems by doing that and I created several issues of course. But the problems are not the same. They are different.

    Thanks,

    Dogus.

  • Hi Dogus,

    Sounds like you might have strained the system to it's peak.

    You can open the map file generated by CCS and see statistics about flash and RAM usage.

    Please send over your BTool log.

    Also, while debugging, can you look at the message that was sent to SimplePeripheral_processStackMsg ? I'm interested to see what the 3rd byte of the message is in particular.

    Best Regards,
    Yuval

  • Hi,

    Thanks for your reply.

    I think you are right. Because of that, I will try to clean my code and re-write the code with a fresh start.

    To do that, I imported the blestack/off_chip example to my CCS and I added a second thread. Since I created an issue named "Adding Second Thread to OAD Off-Chip Example" and I finally can add a second thread to the project. After that, everything is fine but when the second thread while running, BTool cannot update the code via BLE-OAD.

    I mean, if my thread runs and ends with "return NULL", after that I can update my code with OAD but if I want to do successively (reading sensor data in while(1) for example), it means while the thread running, BTool cannot update the program.

    I think I need to destroy the thread just before OAD starting and then re-create it.

    Is that right or I missed something? This is my final question for this issue.

    Thanks for your help.

    Dogus

  • I forgot to add bTool log files. Here are the fils; The first one (log1.log) is successful attempting, log2 is not successful.

    log1txt.txt

    [1] : <Info> - 03:02:53.553
    Port opened at 3.07.2019 15:02:53
    --------------------------------------------------------------------
    [2] : <Tx> - 03:02:53.656
    -Type           : 0x01 (Command)
    -OpCode         : 0xFC1D (HCIExt_ResetSystemCmd)
    -Data Length    : 0x01 (1) byte(s)
     Type           : 0x00 (0) (Chip Reset)
    Dump(Tx):
    0000:01 1D FC 01 00                                  .....
    --------------------------------------------------------------------
    [3] : <Rx> - 03:02:53.916
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x05 (5) bytes(s)
     Event          : 0x041D (1053) (HCIExt_ResetSystemCmdDone)
     Status         : 0x00 (0) (SUCCESS)
     CmdOpCode      : 0xFC1D (HCIExt_ResetSystemCmd)
    Dump(Rx):
    0000:04 FF 05 1D 04 00 1D FC                         ........
    --------------------------------------------------------------------
    [4] : <Tx> - 03:02:54.478
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE00 (GAP_DeviceInit)
    -Data Length    : 0x26 (38) byte(s)
     ProfileRole    : 0x08 (8) (
                      Central)
     MaxScanRsps    : 0x14 (20)
     IRK            : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
     CSRK           : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
     SignCounter    : 0x00000001 (1)
    Dump(Tx):
    0000:01 00 FE 26 08 14 00 00 00 00 00 00 00 00 00 00 ...&............
    0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    0020:00 00 00 00 00 00 01 00 00 00                   ..........
    --------------------------------------------------------------------
    [5] : <Rx> - 03:02:54.597
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE00 (GAP_DeviceInit)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 00 FE 00                      .........
    --------------------------------------------------------------------
    [6] : <Rx> - 03:02:54.608
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x0600 (1536) (GAP_DeviceInitDone)
     Status         : 0x00 (0) (SUCCESS)
     DevAddr        : 54:6C:0E:A0:47:14
     DataPktLen     : 0x00FF (255)
     NumDataPkts    : 0x05 (5)
     IRK            : B7:C1:4E:30:08:27:5C:C2:CE:FC:F2:72:E1:8C:0D:7A
     CSRK           : 12:99:6C:BD:3D:C5:87:12:B0:9C:88:E7:A6:A6:E5:8A
    Dump(Rx):
    0000:04 FF 2C 00 06 00 14 47 A0 0E 6C 54 FF 00 05 B7 ..,....G..lT....
    0010:C1 4E 30 08 27 5C C2 CE FC F2 72 E1 8C 0D 7A 12 .N0.'\....r...z.
    0020:99 6C BD 3D C5 87 12 B0 9C 88 E7 A6 A6 E5 8A    .l.=...........
    --------------------------------------------------------------------
    [7] : <Tx> - 03:02:54.637
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x15 (21) (TGAP_CONN_EST_INT_MIN)
    Dump(Tx):
    0000:01 31 FE 01 15                                  .1...
    --------------------------------------------------------------------
    [8] : <Tx> - 03:02:54.648
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x16 (22) (TGAP_CONN_EST_INT_MAX)
    Dump(Tx):
    0000:01 31 FE 01 16                                  .1...
    --------------------------------------------------------------------
    [9] : <Tx> - 03:02:54.659
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x1A (26) (TGAP_CONN_EST_LATENCY)
    Dump(Tx):
    0000:01 31 FE 01 1A                                  .1...
    --------------------------------------------------------------------
    [10] : <Rx> - 03:02:54.659
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x0050 (80)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 50 00                ......1..P.
    --------------------------------------------------------------------
    [11] : <Tx> - 03:02:54.669
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x19 (25) (TGAP_CONN_EST_SUPERV_TIMEOUT)
    Dump(Tx):
    0000:01 31 FE 01 19                                  .1...
    --------------------------------------------------------------------
    [12] : <Rx> - 03:02:54.680
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x0050 (80)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 50 00                ......1..P.
    --------------------------------------------------------------------
    [13] : <Rx> - 03:02:54.691
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x0000 (0)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 00 00                ......1....
    --------------------------------------------------------------------
    [14] : <Rx> - 03:02:54.723
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x07D0 (2000)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 D0 07                ......1....
    --------------------------------------------------------------------
    [15] : <Tx> - 03:02:56.650
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE04 (GAP_DeviceDiscoveryRequest)
    -Data Length    : 0x03 (3) byte(s)
     Mode           : 0x03 (3) (All)
     ActiveScan     : 0x01 (1) (Enable)
     WhiteList      : 0x00 (0) (All)
    Dump(Tx):
    0000:01 04 FE 03 03 01 00                            .......
    --------------------------------------------------------------------
    [16] : <Rx> - 03:02:56.659
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE04 (GAP_DeviceDiscoveryRequest)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 04 FE 00                      .........
    --------------------------------------------------------------------
    [17] : <Rx> - 03:02:56.670
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2A (42) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 0D:CD:0E:BB:87:9C
     Rssi           : 0xBA (186)
     DataLength     : 0x1D (29)
     Data           : 1C:FF:06:00:01:09:21:0A:79:60:B6:9A:F3:34:4D:53:
                      53:4B:2D:59:47:42:2D:4C:54:35:31:32:38
    Dump(Rx):
    0000:04 FF 2A 0D 06 00 03 01 9C 87 BB 0E CD 0D BA 1D ..*.............
    0010:1C FF 06 00 01 09 21 0A 79 60 B6 9A F3 34 4D 53 ......!.y`...4MS
    0020:53 4B 2D 59 47 42 2D 4C 54 35 31 32 38          SK-YGB-LT5128
    --------------------------------------------------------------------
    [18] : <Rx> - 03:02:56.681
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 2A:42:E0:AC:FD:BF
     Rssi           : 0xC6 (198)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:97:EF:B7:81:A7:C9:C4:92:
                      F1:59:1B:B1:2F:93:92:8D:9D:A1:EB:A7:F9:CC:CA
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 BF FD AC E0 42 2A C6 1F ..,.........B*..
    0010:1E FF 06 00 01 09 20 02 97 EF B7 81 A7 C9 C4 92 ...... .........
    0020:F1 59 1B B1 2F 93 92 8D 9D A1 EB A7 F9 CC CA    .Y../..........
    --------------------------------------------------------------------
    [19] : <Rx> - 03:02:56.694
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 1B:1C:09:6F:D3:C1
     Rssi           : 0xC5 (197)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:DE:84:AB:A1:C9:DE:76:03:
                      83:65:23:8F:E5:6A:E5:1E:18:CD:1B:1A:65:0D:48
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 C1 D3 6F 09 1C 1B C5 1F ..,.......o.....
    0010:1E FF 06 00 01 09 20 02 DE 84 AB A1 C9 DE 76 03 ...... .......v.
    0020:83 65 23 8F E5 6A E5 1E 18 CD 1B 1A 65 0D 48    .e#..j......e.H
    --------------------------------------------------------------------
    [20] : <Rx> - 03:02:56.705
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 09:F2:C4:B0:75:53
     Rssi           : 0xC2 (194)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:DC:60:52:28:EE:49:49:93:
                      66:0F:83:ED:5A:60:3A:9D:D8:DB:91:E2:8A:9F:7C
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 53 75 B0 C4 F2 09 C2 1F ..,.....Su......
    0010:1E FF 06 00 01 09 20 02 DC 60 52 28 EE 49 49 93 ...... ..`R(.II.
    0020:66 0F 83 ED 5A 60 3A 9D D8 DB 91 E2 8A 9F 7C    f...Z`:.......|
    --------------------------------------------------------------------
    [21] : <Rx> - 03:02:56.716
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 18:41:79:EF:74:53
     Rssi           : 0xC2 (194)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:3B:FE:EA:BA:01:FB:46:E3:
                      33:C9:CB:6E:58:DF:68:82:E1:60:40:2B:3E:9F:28
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 53 74 EF 79 41 18 C2 1F ..,.....St.yA...
    0010:1E FF 06 00 01 09 20 02 3B FE EA BA 01 FB 46 E3 ...... .;.....F.
    0020:33 C9 CB 6E 58 DF 68 82 E1 60 40 2B 3E 9F 28    3..nX.h..`@+>.(
    --------------------------------------------------------------------
    [22] : <Rx> - 03:02:56.726
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : F1:08:EC:20:F3:8C
     Rssi           : 0xD8 (216)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:51:2F:AC:8A:D3:BB:76:DA:
                      48:25:9F:16:BE:6C:2F:8F:02:87:1B:A0:2F:5B:76
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 8C F3 20 EC 08 F1 D8 1F ..,....... .....
    0010:1E FF 06 00 01 09 20 02 51 2F AC 8A D3 BB 76 DA ...... .Q/....v.
    0020:48 25 9F 16 BE 6C 2F 8F 02 87 1B A0 2F 5B 76    H%...l/...../[v
    --------------------------------------------------------------------
    [23] : <Rx> - 03:02:56.736
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x16 (22) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x00 (0) (CONN_UNDIRECT_AD)
     AddrType       : 0x00 (0) (ADDRTYPE_PUBLIC)
     Addr           : 54:6C:0E:A0:49:25
     Rssi           : 0xD1 (209)
     DataLength     : 0x09 (9)
     Data           : 02:01:06:05:02:C0:FF:F0:FF
    Dump(Rx):
    0000:04 FF 16 0D 06 00 00 00 25 49 A0 0E 6C 54 D1 09 ........%I..lT..
    0010:02 01 06 05 02 C0 FF F0 FF                      .........
    --------------------------------------------------------------------
    [24] : <Rx> - 03:02:56.747
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x29 (41) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x04 (4) (SCAN_RESPONSE)
     AddrType       : 0x00 (0) (ADDRTYPE_PUBLIC)
     Addr           : 54:6C:0E:A0:49:25
     Rssi           : 0xD1 (209)
     DataLength     : 0x1C (28)
     Data           : 12:09:53:42:50:20:4F:41:44:20:41:50:50:20:76:30:
                      30:30:31:05:12:08:00:08:00:02:0A:00
    Dump(Rx):
    0000:04 FF 29 0D 06 00 04 00 25 49 A0 0E 6C 54 D1 1C ..).....%I..lT..
    0010:12 09 53 42 50 20 4F 41 44 20 41 50 50 20 76 30 ..SBP OAD APP v0
    0020:30 30 31 05 12 08 00 08 00 02 0A 00             001.........
    --------------------------------------------------------------------
    [25] : <Rx> - 03:02:56.758
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 02:6B:07:78:BD:15
     Rssi           : 0xC1 (193)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:AE:D3:7E:42:9E:77:35:4A:
                      DA:C9:3E:E8:9C:12:4D:52:94:D2:27:BB:69:20:F5
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 15 BD 78 07 6B 02 C1 1F ..,.......x.k...
    0010:1E FF 06 00 01 09 20 02 AE D3 7E 42 9E 77 35 4A ...... ...~B.w5J
    0020:DA C9 3E E8 9C 12 4D 52 94 D2 27 BB 69 20 F5    ..>...MR..'.i .
    --------------------------------------------------------------------
    [26] : <Rx> - 03:02:56.769
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 3A:FE:7D:2C:1E:CF
     Rssi           : 0xC6 (198)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:77:7F:A4:C4:0A:36:D8:12:
                      F8:36:C1:2A:F0:8B:EC:7B:0A:66:8D:62:5F:59:ED
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 CF 1E 2C 7D FE 3A C6 1F ..,.......,}.:..
    0010:1E FF 06 00 01 09 20 02 77 7F A4 C4 0A 36 D8 12 ...... .w....6..
    0020:F8 36 C1 2A F0 8B EC 7B 0A 66 8D 62 5F 59 ED    .6.*...{.f.b_Y.
    --------------------------------------------------------------------
    [27] : <Rx> - 03:02:56.780
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 30:A8:CB:AB:FC:4C
     Rssi           : 0xB9 (185)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:00:69:62:BC:36:F7:F4:48:48:
                      A5:E3:49:89:E7:EE:DB:44:4B:70:EE:E8:7E:1B:34
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 4C FC AB CB A8 30 B9 1F ..,.....L....0..
    0010:1E FF 06 00 01 09 20 00 69 62 BC 36 F7 F4 48 48 ...... .ib.6..HH
    0020:A5 E3 49 89 E7 EE DB 44 4B 70 EE E8 7E 1B 34    ..I....DKp..~.4
    --------------------------------------------------------------------
    [28] : <Rx> - 03:02:56.791
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 03:AD:04:C2:0E:CE
     Rssi           : 0xC3 (195)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:FD:8F:57:EE:D0:80:43:69:
                      4A:C4:12:5B:E2:91:42:37:20:35:1C:E5:E6:69:21
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 CE 0E C2 04 AD 03 C3 1F ..,.............
    0010:1E FF 06 00 01 09 20 02 FD 8F 57 EE D0 80 43 69 ...... ...W...Ci
    0020:4A C4 12 5B E2 91 42 37 20 35 1C E5 E6 69 21    J..[..B7 5...i!
    --------------------------------------------------------------------
    [29] : <Rx> - 03:02:56.802
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 27:A4:DB:D7:EC:50
     Rssi           : 0xBF (191)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:24:8D:D1:9D:EF:70:5E:38:
                      B7:69:D8:A8:F3:FC:DF:35:A0:D9:EC:C0:3E:C6:3F
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 50 EC D7 DB A4 27 BF 1F ..,.....P....'..
    0010:1E FF 06 00 01 09 20 02 24 8D D1 9D EF 70 5E 38 ...... .$....p^8
    0020:B7 69 D8 A8 F3 FC DF 35 A0 D9 EC C0 3E C6 3F    .i.....5....>.?
    --------------------------------------------------------------------
    [30] : <Rx> - 03:02:56.812
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 66:DD:E7:5C:9E:9C
     Rssi           : 0xC3 (195)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:7B:47:47:C3:8F:9A:9B:4E:
                      75:B5:DD:71:2A:1E:FC:56:D9:E3:C6:5A:AC:35:C5
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 9C 9E 5C E7 DD 66 C3 1F ..,.......\..f..
    0010:1E FF 06 00 01 09 20 02 7B 47 47 C3 8F 9A 9B 4E ...... .{GG....N
    0020:75 B5 DD 71 2A 1E FC 56 D9 E3 C6 5A AC 35 C5    u..q*..V...Z.5.
    --------------------------------------------------------------------
    [31] : <Rx> - 03:02:56.823
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 28:D4:18:83:AF:3B
     Rssi           : 0xC8 (200)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:F0:E2:1C:65:04:60:E5:72:
                      F7:3F:EF:76:E1:9D:F3:30:90:8D:AF:7F:4B:F4:AC
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 3B AF 83 18 D4 28 C8 1F ..,.....;....(..
    0010:1E FF 06 00 01 09 20 02 F0 E2 1C 65 04 60 E5 72 ...... ....e.`.r
    0020:F7 3F EF 76 E1 9D F3 30 90 8D AF 7F 4B F4 AC    .?.v...0....K..
    --------------------------------------------------------------------
    [32] : <Rx> - 03:02:56.833
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 0A:4F:2D:54:C4:16
     Rssi           : 0xB7 (183)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:D8:3A:F9:BF:2E:A0:DA:AB:
                      E3:BB:61:99:55:D2:B4:88:A4:0F:E4:9B:72:91:D1
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 16 C4 54 2D 4F 0A B7 1F ..,.......T-O...
    0010:1E FF 06 00 01 09 20 02 D8 3A F9 BF 2E A0 DA AB ...... ..:......
    0020:E3 BB 61 99 55 D2 B4 88 A4 0F E4 9B 72 91 D1    ..a.U.......r..
    --------------------------------------------------------------------
    [33] : <Rx> - 03:02:56.844
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 1D:48:2F:B0:61:38
     Rssi           : 0xB1 (177)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:00:97:81:61:C8:11:92:C5:F6:
                      C2:A5:0B:17:A1:78:06:05:80:BE:0A:A9:4B:40:53
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 38 61 B0 2F 48 1D B1 1F ..,.....8a./H...
    0010:1E FF 06 00 01 09 20 00 97 81 61 C8 11 92 C5 F6 ...... ...a.....
    0020:C2 A5 0B 17 A1 78 06 05 80 BE 0A A9 4B 40 53    .....x......K@S
    --------------------------------------------------------------------
    [34] : <Rx> - 03:02:56.855
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 10:FF:8A:4A:32:2A
     Rssi           : 0xB3 (179)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:4C:47:77:2D:B2:DB:4E:09:
                      A8:54:71:FE:0A:48:46:82:40:70:C6:E0:4B:04:53
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 2A 32 4A 8A FF 10 B3 1F ..,.....*2J.....
    0010:1E FF 06 00 01 09 20 02 4C 47 77 2D B2 DB 4E 09 ...... .LGw-..N.
    0020:A8 54 71 FE 0A 48 46 82 40 70 C6 E0 4B 04 53    .Tq..HF.@p..K.S
    --------------------------------------------------------------------
    [35] : <Rx> - 03:02:56.866
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 29:02:7D:7C:B7:84
     Rssi           : 0xB9 (185)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:87:2D:40:89:FB:8B:B5:86:
                      34:18:79:C3:22:9B:B0:B1:2B:BD:07:DE:AC:C4:A9
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 84 B7 7C 7D 02 29 B9 1F ..,.......|}.)..
    0010:1E FF 06 00 01 09 20 02 87 2D 40 89 FB 8B B5 86 ...... ..-@.....
    0020:34 18 79 C3 22 9B B0 B1 2B BD 07 DE AC C4 A9    4.y."...+......
    --------------------------------------------------------------------
    [36] : <Rx> - 03:02:56.876
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 21:2E:9F:7A:64:FD
     Rssi           : 0xAE (174)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:A4:7E:35:65:48:D5:FD:B5:
                      AE:CB:E4:7C:92:31:05:FF:52:BB:D6:65:3D:7A:7A
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 FD 64 7A 9F 2E 21 AE 1F ..,......dz..!..
    0010:1E FF 06 00 01 09 20 02 A4 7E 35 65 48 D5 FD B5 ...... ..~5eH...
    0020:AE CB E4 7C 92 31 05 FF 52 BB D6 65 3D 7A 7A    ...|.1..R..e=zz
    --------------------------------------------------------------------
    [37] : <Rx> - 03:02:56.886
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 1C:45:95:5B:14:9A
     Rssi           : 0xB1 (177)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:CC:11:48:E6:3E:B8:41:8B:
                      80:53:B7:27:18:DC:0F:4C:4F:D0:F7:3F:49:61:7F
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 9A 14 5B 95 45 1C B1 1F ..,.......[.E...
    0010:1E FF 06 00 01 09 20 02 CC 11 48 E6 3E B8 41 8B ...... ...H.>.A.
    0020:80 53 B7 27 18 DC 0F 4C 4F D0 F7 3F 49 61 7F    .S.'...LO..?Ia.
    --------------------------------------------------------------------
    [38] : <Rx> - 03:03:06.912
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0xA4 (164) bytes(s)
     Event          : 0x0601 (1537) (GAP_DeviceDiscoveryDone)
     Status         : 0x00 (0) (SUCCESS)
     NumDevs        : 0x14 (20)
     Device #0
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 0D:CD:0E:BB:87:9C
     Device #1
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 2A:42:E0:AC:FD:BF
     Device #2
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 1B:1C:09:6F:D3:C1
     Device #3
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 09:F2:C4:B0:75:53
     Device #4
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 18:41:79:EF:74:53
     Device #5
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : F1:08:EC:20:F3:8C
     Device #6
     EventType      : 0x00 (0) (CONN_UNDIRECT_AD)
     AddrType       : 0x00 (0) (ADDRTYPE_PUBLIC)
     Addr           : 54:6C:0E:A0:49:25
     Device #7
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 02:6B:07:78:BD:15
     Device #8
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 3A:FE:7D:2C:1E:CF
     Device #9
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 30:A8:CB:AB:FC:4C
     Device #10
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 03:AD:04:C2:0E:CE
     Device #11
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 27:A4:DB:D7:EC:50
     Device #12
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 66:DD:E7:5C:9E:9C
     Device #13
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 28:D4:18:83:AF:3B
     Device #14
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 0A:4F:2D:54:C4:16
     Device #15
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 1D:48:2F:B0:61:38
     Device #16
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 10:FF:8A:4A:32:2A
     Device #17
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 29:02:7D:7C:B7:84
     Device #18
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 21:2E:9F:7A:64:FD
     Device #19
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 1C:45:95:5B:14:9A
    Dump(Rx):
    0000:04 FF A4 01 06 00 14 03 01 9C 87 BB 0E CD 0D 03 ................
    0010:01 BF FD AC E0 42 2A 03 01 C1 D3 6F 09 1C 1B 03 .....B*....o....
    0020:01 53 75 B0 C4 F2 09 03 01 53 74 EF 79 41 18 03 .Su......St.yA..
    0030:01 8C F3 20 EC 08 F1 00 00 25 49 A0 0E 6C 54 03 ... .....%I..lT.
    0040:01 15 BD 78 07 6B 02 03 01 CF 1E 2C 7D FE 3A 03 ...x.k.....,}.:.
    0050:01 4C FC AB CB A8 30 03 01 CE 0E C2 04 AD 03 03 .L....0.........
    0060:01 50 EC D7 DB A4 27 03 01 9C 9E 5C E7 DD 66 03 .P....'....\..f.
    0070:01 3B AF 83 18 D4 28 03 01 16 C4 54 2D 4F 0A 03 .;....(....T-O..
    0080:01 38 61 B0 2F 48 1D 03 01 2A 32 4A 8A FF 10 03 .8a./H...*2J....
    0090:01 84 B7 7C 7D 02 29 03 01 FD 64 7A 9F 2E 21 03 ...|}.)...dz..!.
    00A0:01 9A 14 5B 95 45 1C                            ...[.E.
    --------------------------------------------------------------------
    [39] : <Tx> - 03:03:10.485
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE09 (GAP_EstablishLinkRequest)
    -Data Length    : 0x09 (9) byte(s)
     HighDutyCycle  : 0x00 (0) (Disable)
     WhiteList      : 0x00 (0) (Disable)
     AddrTypePeer   : 0x00 (0) (ADDRTYPE_PUBLIC)
     PeerAddr       : 54:6C:0E:A0:49:25
    Dump(Tx):
    0000:01 09 FE 09 00 00 00 25 49 A0 0E 6C 54          .......%I..lT
    --------------------------------------------------------------------
    [40] : <Rx> - 03:03:10.501
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE09 (GAP_EstablishLinkRequest)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 09 FE 00                      .........
    --------------------------------------------------------------------
    [41] : <Rx> - 03:03:10.564
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x14 (20) bytes(s)
     Event          : 0x0605 (1541) (GAP_EstablishLink)
     Status         : 0x00 (0) (SUCCESS)
     DevAddrType    : 0x00 (0) (ADDRTYPE_PUBLIC)
     DevAddr        : 54:6C:0E:A0:49:25
     ConnHandle     : 0x0000 (0)
     ConnRole       : 0x08 (8) (
                      Central)
     ConnInterval   : 0x0050 (80)
     ConnLatency    : 0x0000 (0)
     ConnTimeout    : 0x07D0 (2000)
     ClockAccuracy  : 0x00 (0)
    Dump(Rx):
    0000:04 FF 14 05 06 00 00 25 49 A0 0E 6C 54 00 00 08 .......%I..lT...
    0010:50 00 00 00 D0 07 00                            P......
    --------------------------------------------------------------------
    [42] : <Tx> - 03:03:10.566
    -Type           : 0x01 (Command)
    -OpCode         : 0x2022 (HCI_LE_SetDataLength)
    -Data Length    : 0x06 (6) byte(s)
     Handle         : 0x0000 (0)
     TxOctets       : 0x00FB (251)
     TxTime         : 0x0848 (2120)
    Dump(Tx):
    0000:01 22 20 06 00 00 FB 00 48 08                   ." .....H.
    --------------------------------------------------------------------
    [43] : <Rx> - 03:03:10.597
    -Type           : 0x04 (Event)
    -EventCode      : 0x000E (HCI_CommandCompleteEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Packets        : 0x01 (1)
     OpCode         : 0x2022 (HCI_LE_SetDataLength)
     Status         : 0x00 (0) (SUCCESS)
     Handle         : 0x0000 (0)
    Dump(Rx):
    0000:04 0E 06 01 22 20 00 00 00                      ...." ...
    --------------------------------------------------------------------
    [44] : <Rx> - 03:03:10.807
    -Type           : 0x04 (Event)
    -EventCode      : 0x003E (HCI_LE_GenericReportEvent)
    -Data Length    : 0x0B (11) bytes(s)
     LE Event Code  : 0x07 (7) (HCI_LE_DataLengthChangeEvent)
     LE Event Code  : 0x07 (7) (HCI_LE_DataLengthChangeEvent)
     Handle         : 0x0000 (0)
     MaxTxOctets    : 0x00FB (251)
     MaxTxTime      : 0x0848 (2120)
     MaxRxOctets    : 0x001B (27)
     MaxRxTime      : 0x0148 (328)
    Dump(Rx):
    0000:04 3E 0B 07 00 00 FB 00 48 08 1B 00 48 01       .>......H...H.
    --------------------------------------------------------------------
    [45] : <Info> - 03:03:10.850
    Device Connected
    Handle = 0x0000
    Addr Type = 0x00 (ADDRTYPE_PUBLIC)
    BDAddr = 54:6C:0E:A0:49:25
    --------------------------------------------------------------------
    [46] : <Info> - 03:03:15.089
    OAD - Update Connection Settings
    --------------------------------------------------------------------
    [47] : <Info> - 03:03:15.098
    Start OAD Download
    --------------------------------------------------------------------
    [48] : <Info> - 03:03:15.100
    Image Service Discovery
    --------------------------------------------------------------------
    [49] : <Info> - 03:03:15.102
    OAD Send UUID Discovery
    --------------------------------------------------------------------
    [50] : <Tx> - 03:03:15.093
    -Type           : 0x01 (Command)
    -OpCode         : 0x2016 (HCI_LEReadRemoteUsedFeatures)
    -Data Length    : 0x02 (2) byte(s)
     Handle         : 0x0000 (0)
    Dump(Tx):
    0000:01 16 20 02 00 00                               .. ...
    --------------------------------------------------------------------
    [51] : <Tx> - 03:03:15.107
    -Type           : 0x01 (Command)
    -OpCode         : 0xFD86 (GATT_DiscPrimaryServiceByUUID)
    -Data Length    : 0x12 (18) byte(s)
     ConnHandle     : 0x0000 (0)
     Value          : 00:00:00:00:00:00:00:B0:00:40:51:04:C0:FF:00:F0
    Dump(Tx):
    0000:01 86 FD 12 00 00 00 00 00 00 00 00 00 B0 00 40 ...............@
    0010:51 04 C0 FF 00 F0                               Q.....
    --------------------------------------------------------------------
    [52] : <Rx> - 03:03:15.132
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFD86 (GATT_DiscPrimaryServiceByUUID)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 86 FD 00                      .........
    --------------------------------------------------------------------
    [53] : <Rx> - 03:03:15.506
    -Type           : 0x04 (Event)
    -EventCode      : 0x003E (HCI_LE_GenericReportEvent)
    -Data Length    : 0x0C (12) bytes(s)
     LE Event Code  : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
     LE Event Code  : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
     Status         : 0x00 (0) (SUCCESS)
     ConnectionId   : 0x0000 (0)
     Features       : 0x00000000000000FD (253) (
                      Encryption
                      Reject_Extended_Indication
                      Slave_Features_Exchange
                      Ping
                      Data_Packet_Length_Extension
                      Privacy
                      Extended_Scanner_Filter_Policies)
    Dump(Rx):
    0000:04 3E 0C 04 00 00 00 FD 00 00 00 00 00 00 00    .>.............
    --------------------------------------------------------------------
    [54] : <Rx> - 03:03:45.137
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x0507 (1287) (ATT_FindByTypeValueRsp)
     Status         : 0x17 (23) (bleTimeout)
     ConnHandle     : 0x0000 (0)
     PduLen         : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 07 05 17 00 00 00                      .........
    --------------------------------------------------------------------
    [55] : <Info> - 03:03:45.154
    OAD - Restore Connection Settings
    --------------------------------------------------------------------
    [56] : <Error> - 03:03:45.159
    OAD Download Not Successful
    --------------------------------------------------------------------
    [57] : <Tx> - 03:03:45.137
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE11 (GAP_UpdateLinkParamReq)
    -Data Length    : 0x0A (10) byte(s)
     ConnHandle     : 0x0000 (0)
     IntervalMin    : 0x0006 (6)
     IntervalMax    : 0x0006 (6)
     ConnLatency    : 0x0000 (0)
     ConnTimeout    : 0x0032 (50)
    Dump(Tx):
    0000:01 11 FE 0A 00 00 06 00 06 00 00 00 32 00       ............2.
    --------------------------------------------------------------------
    [58] : <Tx> - 03:03:45.158
    -Type           : 0x01 (Command)
    -OpCode         : 0x2016 (HCI_LEReadRemoteUsedFeatures)
    -Data Length    : 0x02 (2) byte(s)
     Handle         : 0x0000 (0)
    Dump(Tx):
    0000:01 16 20 02 00 00                               .. ...
    --------------------------------------------------------------------
    [59] : <Rx> - 03:03:45.200
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE11 (GAP_UpdateLinkParamReq)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 11 FE 00                      .........
    --------------------------------------------------------------------
    [60] : <Rx> - 03:03:45.212
    -Type           : 0x04 (Event)
    -EventCode      : 0x003E (HCI_LE_GenericReportEvent)
    -Data Length    : 0x0C (12) bytes(s)
     LE Event Code  : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
     LE Event Code  : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
     Status         : 0x00 (0) (SUCCESS)
     ConnectionId   : 0x0000 (0)
     Features       : 0x00000000000000FD (253) (
                      Encryption
                      Reject_Extended_Indication
                      Slave_Features_Exchange
                      Ping
                      Data_Packet_Length_Extension
                      Privacy
                      Extended_Scanner_Filter_Policies)
    Dump(Rx):
    0000:04 3E 0C 04 00 00 00 FD 00 00 00 00 00 00 00    .>.............
    --------------------------------------------------------------------
    [61] : <Tx> - 03:03:45.212
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE11 (GAP_UpdateLinkParamReq)
    -Data Length    : 0x0A (10) byte(s)
     ConnHandle     : 0x0000 (0)
     IntervalMin    : 0x0050 (80)
     IntervalMax    : 0x0050 (80)
     ConnLatency    : 0x0000 (0)
     ConnTimeout    : 0x07D0 (2000)
    Dump(Tx):
    0000:01 11 FE 0A 00 00 50 00 50 00 00 00 D0 07       ......P.P.....
    --------------------------------------------------------------------
    [62] : <Rx> - 03:03:45.264
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE11 (GAP_UpdateLinkParamReq)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 11 FE 00                      .........
    --------------------------------------------------------------------
    [63] : <Rx> - 03:03:45.275
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x0B (11) bytes(s)
     Event          : 0x0607 (1543) (GAP_LinkParamUpdate)
     Status         : 0x3A (58) (Unknown StatusTypes #58)
     ConnHandle     : 0x0000 (0)
     ConnInterval   : 0x0000 (0)
     ConnLatency    : 0x0000 (0)
     ConnTimeout    : 0x0000 (0)
    Dump(Rx):
    0000:04 FF 0B 07 06 3A 00 00 00 00 00 00 00 00       .....:........
    --------------------------------------------------------------------
    [64] : <Rx> - 03:03:45.801
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x0B (11) bytes(s)
     Event          : 0x0607 (1543) (GAP_LinkParamUpdate)
     Status         : 0x00 (0) (SUCCESS)
     ConnHandle     : 0x0000 (0)
     ConnInterval   : 0x0006 (6)
     ConnLatency    : 0x0000 (0)
     ConnTimeout    : 0x0032 (50)
    Dump(Rx):
    0000:04 FF 0B 07 06 00 00 00 06 00 00 00 32 00       ............2.
    --------------------------------------------------------------------
    

  • Hi Dogus,

    I would try to avoid thread creation and destruction all the time, I can assume your computation and energy consumption overhead would be significant higher as a result.

    Have you seen this chapter in the BLE user's guide? :

    http://dev.ti.com/tirex/content/simplelink_cc2640r2_sdk_3_10_00_15/docs/blestack/ble_user_guide/html/ble-stack-3.x/creating-a-custom-bluetooth-low-energy-application.html#creating-additional-icall-enabled-tasks

    It refers to adding additional tasks to your TI-RTOS environment that are icall aware. This might be a better way instead of creating additional threads.

    I would give the new task a lower priority than your OAD enabled task to be sure that no OAD related event is missed.

    Best Regards,
    Yuval

  • Hi,

    Thank you for your answer.

    Since I have a backup way to solve it, I will try to make your answer my first way. If I face any problem, I will ask it later.

    Thanks,

    Dogus