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.

CC2642R-Q1: Disable Channel Selection Algorithm #2

Part Number: CC2642R-Q1


Hi Team, 

My customer is trying to disable Channel Selection Algorithm #2 by the following link.

https://software-dl.ti.com/simplelink/esd/simplelink_cc13x2_26x2_sdk/3.40.00.02/exports/docs/ble5stack/ble_user_guide/html/ble-stack-5.x/channel-selection-algorithm-number-two.html?highlight=channel#undefined

But  they report that it can not work.

Please help to provide comments.

Thanks.

  • Hi Mike,

    Which SDK are they using? The method which you have linked to is correct. How have they concluded that it has not worked?

  • Hi Evan,

    The used SDK version is 6.10.01.01 and 6.10.00.29.

    And use "CC2642 LaunchPad" with BTool to check whether CSA #2 is disabled successfully or not.

    (How to disable CSA #2 ? Refer to https://software-dl.ti.com/lprf/simplelink_cc2640r2_sdk/1.35.00.33/exports/docs/ble5stack/ble_user_guide/html/ble-stack/channel-selection-algorithm-number-two.html)

  • Hi Karen,

    Can you please provide a sniffer log where they have disabled this feature on startup? Do you have their code example they have used to disable it?

    By the way, you are referring to documentation that is nearly 5 years old at this point. Here is the latest documentation we have in our SDK: 

    https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/docs/ble5stack/ble_user_guide/html/ble-stack-5.x/channel-selection-algorithm-number-two.html

  • Hi Evan,

    For the reference manual, I have referred the  the correct version.

    Please refer to the attached files. One is captured by using TI BTool and the other is captured by using the other BLE dongle.

    No.     Time           Source                Destination           Protocol Length Info
        130 5.977704       TexasIns_56:3c:80     Broadcast             LE LL    42     ADV_IND
    
    Frame 130: 42 bytes on wire (336 bits), 42 bytes captured (336 bits) on interface COM11-4.0, id 0
        Section number: 1
        Interface id: 0 (COM11-4.0)
            Interface name: COM11-4.0
            Interface description: nRF Sniffer for Bluetooth LE COM11
        Encapsulation type: nRF Sniffer for Bluetooth LE (186)
        Arrival Time: Dec 20, 2022 18:34:24.552833000 台北標準時間
        [Time shift for this packet: 0.000000000 seconds]
        Epoch Time: 1671532464.552833000 seconds
        [Time delta from previous captured frame: 0.000658000 seconds]
        [Time delta from previous displayed frame: 0.000658000 seconds]
        [Time since reference or first frame: 5.977704000 seconds]
        Frame Number: 130
        Frame Length: 42 bytes (336 bits)
        Capture Length: 42 bytes (336 bits)
        [Frame is marked: False]
        [Frame is ignored: False]
        [Protocols in frame: nordic_ble:btle:btcommon]
    nRF Sniffer for Bluetooth LE
        Board: 11
        Header Version: 3, Packet counter: 1688
            Length of payload: 35
            Protocol version: 3
            Packet counter: 1688
            Packet ID: 2
        Length of packet: 10
        Flags: 0x01
            .... ...1 = CRC: Ok
            .... ..0. = Reserved: 0
            .... .0.. = Reserved: 0
            .... 0... = Address Resolved: No
            .000 .... = PHY: LE 1M (0)
            0... .... = Reserved: 0
        Channel Index: 39
        RSSI: -42 dBm
        Event counter: 0
        Timestamp: 97350275µs
        [Packet time (start to end): 208µs]
        [Delta time (end to start): 97350275µs]
        [Delta time (start to start): 97350275µs]
    Bluetooth Low Energy Link Layer
        Access Address: 0x8e89bed6
        Packet Header: 0x1020 (PDU Type: ADV_IND, ChSel: #2, TxAdd: Public)
            .... 0000 = PDU Type: 0x0 ADV_IND
            ...0 .... = Reserved: 0
            ..1. .... = Channel Selection Algorithm: #2
            .0.. .... = Tx Address: Public
            0... .... = Reserved: 0
            Length: 16
        Advertising Address: TexasIns_56:3c:80 (d8:b6:73:56:3c:80)
        Advertising Data
            Flags
                Length: 2
                Type: Flags (0x01)
                000. .... = Reserved: 0x0
                ...0 .... = Simultaneous LE and BR/EDR to Same Device Capable (Host): false (0x0)
                .... 0... = Simultaneous LE and BR/EDR to Same Device Capable (Controller): false (0x0)
                .... .1.. = BR/EDR Not Supported: true (0x1)
                .... ..1. = LE General Discoverable Mode: true (0x1)
                .... ...0 = LE Limited Discoverable Mode: false (0x0)
            Manufacturer Specific
                Length: 6
                Type: Manufacturer Specific (0xff)
                Company ID: xxxxxx (0x0aaa)
                Data: 01fe03
                    [Expert Info (Note/Undecoded): Undecoded]
                        [Undecoded]
                        [Severity level: Note]
                        [Group: Undecoded]
        CRC: 0xdc9d8b
    
    0000  0b 23 00 03 98 06 02 0a 01 27 2a 00 00 83 72 cd   .#.......'*...r.
    0010  05 d6 be 89 8e 20 10 80 3c 56 73 b6 d8 02 01 06   ..... ..<Vs.....
    0020  06 ff 2b 02 01 fe 03 3b b9 d1                     ..+....;..
    
    No.     Time           Source                Destination           Protocol Length Info
        131 9.842944       TexasIns_56:3c:80     Broadcast             LE LL    42     ADV_IND
    
    Frame 131: 42 bytes on wire (336 bits), 42 bytes captured (336 bits) on interface COM11-4.0, id 0
        Section number: 1
        Interface id: 0 (COM11-4.0)
            Interface name: COM11-4.0
            Interface description: nRF Sniffer for Bluetooth LE COM11
        Encapsulation type: nRF Sniffer for Bluetooth LE (186)
        Arrival Time: Dec 20, 2022 18:34:28.418073000 台北標準時間
        [Time shift for this packet: 0.000000000 seconds]
        Epoch Time: 1671532468.418073000 seconds
        [Time delta from previous captured frame: 3.865240000 seconds]
        [Time delta from previous displayed frame: 3.865240000 seconds]
        [Time since reference or first frame: 9.842944000 seconds]
        Frame Number: 131
        Frame Length: 42 bytes (336 bits)
        Capture Length: 42 bytes (336 bits)
        [Frame is marked: False]
        [Frame is ignored: False]
        [Protocols in frame: nordic_ble:btle:btcommon]
    nRF Sniffer for Bluetooth LE
        Board: 11
        Header Version: 3, Packet counter: 1708
            Length of payload: 35
            Protocol version: 3
            Packet counter: 1708
            Packet ID: 2
        Length of packet: 10
        Flags: 0x01
            .... ...1 = CRC: Ok
            .... ..0. = Reserved: 0
            .... .0.. = Reserved: 0
            .... 0... = Address Resolved: No
            .000 .... = PHY: LE 1M (0)
            0... .... = Reserved: 0
        Channel Index: 37
        RSSI: -40 dBm
        Event counter: 0
        Timestamp: 101215515µs
        [Packet time (start to end): 208µs]
        [Delta time (end to start): 3865032µs]
        [Delta time (start to start): 3865240µs]
    Bluetooth Low Energy Link Layer
        Access Address: 0x8e89bed6
        Packet Header: 0x1020 (PDU Type: ADV_IND, ChSel: #2, TxAdd: Public)
            .... 0000 = PDU Type: 0x0 ADV_IND
            ...0 .... = Reserved: 0
            ..1. .... = Channel Selection Algorithm: #2
            .0.. .... = Tx Address: Public
            0... .... = Reserved: 0
            Length: 16
        Advertising Address: TexasIns_56:3c:80 (d8:b6:73:56:3c:80)
        Advertising Data
            Flags
                Length: 2
                Type: Flags (0x01)
                000. .... = Reserved: 0x0
                ...0 .... = Simultaneous LE and BR/EDR to Same Device Capable (Host): false (0x0)
                .... 0... = Simultaneous LE and BR/EDR to Same Device Capable (Controller): false (0x0)
                .... .1.. = BR/EDR Not Supported: true (0x1)
                .... ..1. = LE General Discoverable Mode: true (0x1)
                .... ...0 = LE Limited Discoverable Mode: false (0x0)
            Manufacturer Specific
                Length: 6
                Type: Manufacturer Specific (0xff)
                Company ID: xxxxx (0x0aaa)
                Data: 01fe03
                    [Expert Info (Note/Undecoded): Undecoded]
                        [Undecoded]
                        [Severity level: Note]
                        [Group: Undecoded]
        CRC: 0xdc9d8b
    
    0000  0b 23 00 03 ac 06 02 0a 01 25 28 00 00 1b 6d 08   .#.......%(...m.
    0010  06 d6 be 89 8e 20 10 80 3c 56 73 b6 d8 02 01 06   ..... ..<Vs.....
    0020  06 ff 2b 02 01 fe 03 3b b9 d1                     ..+....;..
    
    No.     Time           Source                Destination           Protocol Length Info
        132 9.843302       5c:e1:3d:c4:01:84     TexasIns_56:3c:80     LE LL    60     CONNECT_IND
    
    Frame 132: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) on interface COM11-4.0, id 0
        Section number: 1
        Interface id: 0 (COM11-4.0)
            Interface name: COM11-4.0
            Interface description: nRF Sniffer for Bluetooth LE COM11
        Encapsulation type: nRF Sniffer for Bluetooth LE (186)
        Arrival Time: Dec 20, 2022 18:34:28.418431000 台北標準時間
        [Time shift for this packet: 0.000000000 seconds]
        Epoch Time: 1671532468.418431000 seconds
        [Time delta from previous captured frame: 0.000358000 seconds]
        [Time delta from previous displayed frame: 0.000358000 seconds]
        [Time since reference or first frame: 9.843302000 seconds]
        Frame Number: 132
        Frame Length: 60 bytes (480 bits)
        Capture Length: 60 bytes (480 bits)
        [Frame is marked: False]
        [Frame is ignored: False]
        [Protocols in frame: nordic_ble:btle:btcommon]
    nRF Sniffer for Bluetooth LE
        Board: 11
        Header Version: 3, Packet counter: 1709
            Length of payload: 53
            Protocol version: 3
            Packet counter: 1709
            Packet ID: 2
        Length of packet: 10
        Flags: 0x01
            .... ...1 = CRC: Ok
            .... ..0. = Reserved: 0
            .... .0.. = Reserved: 0
            .... 0... = Address Resolved: No
            .000 .... = PHY: LE 1M (0)
            0... .... = Reserved: 0
        Channel Index: 37
        RSSI: -48 dBm
        Event counter: 0
        Timestamp: 101215873µs
        [Packet time (start to end): 352µs]
        [Delta time (end to start): 150µs]
        [Delta time (start to start): 358µs]
    Bluetooth Low Energy Link Layer
        Access Address: 0x8e89bed6
        Packet Header: 0x2265 (PDU Type: CONNECT_IND, ChSel: #2, TxAdd: Random, RxAdd: Public)
            .... 0101 = PDU Type: 0x5 CONNECT_IND
            ...0 .... = Reserved: 0
            ..1. .... = Channel Selection Algorithm: #2
            .1.. .... = Tx Address: Random
            0... .... = Rx Address: Public
            Length: 34
        Initiator Address: 5c:e1:3d:c4:01:84 (5c:e1:3d:c4:01:84)
        Advertising Address: TexasIns_56:3c:80 (d8:b6:73:56:3c:80)
        Link Layer Data
            Access Address: 0x613e6a27
            CRC Init: 0x8378f8
            Window Size: 8 (10 msec)
            Window Offset: 6 (7.5 msec)
            Interval: 39 (48.75 msec)
            Latency: 0
            Timeout: 500 (5000 msec)
            Channel Map: ffffffff1f
                .... ...1 = RF Channel 1 (2404 MHz - Data - 0): True
                .... ..1. = RF Channel 2 (2406 MHz - Data - 1): True
                .... .1.. = RF Channel 3 (2408 MHz - Data - 2): True
                .... 1... = RF Channel 4 (2410 MHz - Data - 3): True
                ...1 .... = RF Channel 5 (2412 MHz - Data - 4): True
                ..1. .... = RF Channel 6 (2414 MHz - Data - 5): True
                .1.. .... = RF Channel 7 (2416 MHz - Data - 6): True
                1... .... = RF Channel 8 (2418 MHz - Data - 7): True
                .... ...1 = RF Channel 9 (2420 MHz - Data - 8): True
                .... ..1. = RF Channel 10 (2422 MHz - Data - 9): True
                .... .1.. = RF Channel 11 (2424 MHz - Data - 10): True
                .... 1... = RF Channel 13 (2428 MHz - Data - 11): True
                ...1 .... = RF Channel 14 (2430 MHz - Data - 12): True
                ..1. .... = RF Channel 15 (2432 MHz - Data - 13): True
                .1.. .... = RF Channel 16 (2434 MHz - Data - 14): True
                1... .... = RF Channel 17 (2436 MHz - Data - 15): True
                .... ...1 = RF Channel 18 (2438 MHz - Data - 16): True
                .... ..1. = RF Channel 19 (2440 MHz - Data - 17): True
                .... .1.. = RF Channel 20 (2442 MHz - Data - 18): True
                .... 1... = RF Channel 21 (2444 MHz - Data - 19): True
                ...1 .... = RF Channel 22 (2446 MHz - Data - 20): True
                ..1. .... = RF Channel 23 (2448 MHz - Data - 21): True
                .1.. .... = RF Channel 24 (2450 MHz - Data - 22): True
                1... .... = RF Channel 25 (2452 MHz - Data - 23): True
                .... ...1 = RF Channel 26 (2454 MHz - Data - 24): True
                .... ..1. = RF Channel 27 (2456 MHz - Data - 25): True
                .... .1.. = RF Channel 28 (2458 MHz - Data - 26): True
                .... 1... = RF Channel 29 (2460 MHz - Data - 27): True
                ...1 .... = RF Channel 30 (2462 MHz - Data - 28): True
                ..1. .... = RF Channel 31 (2464 MHz - Data - 29): True
                .1.. .... = RF Channel 32 (2466 MHz - Data - 30): True
                1... .... = RF Channel 33 (2468 MHz - Data - 31): True
                .... ...1 = RF Channel 34 (2470 MHz - Data - 32): True
                .... ..1. = RF Channel 35 (2472 MHz - Data - 33): True
                .... .1.. = RF Channel 36 (2474 MHz - Data - 34): True
                .... 1... = RF Channel 37 (2476 MHz - Data - 35): True
                ...1 .... = RF Channel 38 (2478 MHz - Data - 36): True
                ..0. .... = Reserved: False
                .0.. .... = Reserved: False
                0... .... = Reserved: False
            ...0 1010 = Hop: 10
            001. .... = Sleep Clock Accuracy: 151 ppm to 250 ppm (1)
        CRC: 0xc7710c
    
    0000  0b 35 00 03 ad 06 02 0a 01 25 30 00 00 81 6e 08   .5.......%0...n.
    0010  06 d6 be 89 8e 65 22 84 01 c4 3d e1 5c 80 3c 56   .....e"...=.\.<V
    0020  73 b6 d8 27 6a 3e 61 f8 78 83 08 06 00 27 00 00   s..'j>a.x....'..
    0030  00 f4 01 ff ff ff ff 1f 2a e3 8e 30               ........*..0
    
    No.     Time           Source                Destination           Protocol Length Info
        133 9.858732       Master_0x613e6a27     Slave_0x613e6a27      LE LL    35     Control Opcode: LL_FEATURE_REQ
    
    Frame 133: 35 bytes on wire (280 bits), 35 bytes captured (280 bits) on interface COM11-4.0, id 0
        Section number: 1
        Interface id: 0 (COM11-4.0)
            Interface name: COM11-4.0
            Interface description: nRF Sniffer for Bluetooth LE COM11
        Encapsulation type: nRF Sniffer for Bluetooth LE (186)
        Arrival Time: Dec 20, 2022 18:34:28.433861000 台北標準時間
        [Time shift for this packet: 0.000000000 seconds]
        Epoch Time: 1671532468.433861000 seconds
        [Time delta from previous captured frame: 0.015430000 seconds]
        [Time delta from previous displayed frame: 0.015430000 seconds]
        [Time since reference or first frame: 9.858732000 seconds]
        Frame Number: 133
        Frame Length: 35 bytes (280 bits)
        Capture Length: 35 bytes (280 bits)
        [Frame is marked: False]
        [Frame is ignored: False]
        [Protocols in frame: nordic_ble:btle]
    nRF Sniffer for Bluetooth LE
        Board: 11
        Header Version: 3, Packet counter: 1710
            Length of payload: 28
            Protocol version: 3
            Packet counter: 1710
            Packet ID: 6
        Length of packet: 10
        Flags: 0x03
            .... ...1 = CRC: Ok
            .... ..1. = Direction: Master -> Slave
            .... .0.. = Encrypted: No
            .... 0... = MIC (not relevant): 0
            .000 .... = PHY: LE 1M (0)
            0... .... = Reserved: 0
        Channel Index: 18
        RSSI: -49 dBm
        Event counter: 0
        Timestamp: 101231302µs
        [Packet time (start to end): 152µs]
        [Delta time (end to start): 15077µs]
        [Delta time (start to start): 15429µs]
    Bluetooth Low Energy Link Layer
        Access Address: 0x613e6a27
        [Master Address: 5c:e1:3d:c4:01:84 (5c:e1:3d:c4:01:84)]
        [Slave Address: TexasIns_56:3c:80 (d8:b6:73:56:3c:80)]
        Data Header
            .... ..11 = LLID: Control PDU (0x3)
            .... .0.. = Next Expected Sequence Number: 0 [ACK]
            .... 0... = Sequence Number: 0 [OK]
            ...1 .... = More Data: True
            ..0. .... = CTE Info: Not Present
            00.. .... = RFU: 0
            Length: 9
        Control Opcode: LL_FEATURE_REQ (0x08)
        Feature Set: 0x0000000000017ffd
            .... ...1 = LE Encryption: True
            .... ..0. = Connection Parameters Request Procedure: False
            .... .1.. = Extended Reject Indication: True
            .... 1... = Slave Initiated Features Exchange: True
            ...1 .... = LE Ping: True
            ..1. .... = LE Data Packet Length Extension: True
            .1.. .... = LL Privacy: True
            1... .... = Extended Scanner Filter Policies: True
            .... ...1 = LE 2M PHY: True
            .... ..1. = Stable Modulation Index - Transmitter: True
            .... .1.. = Stable Modulation Index - Receiver: True
            .... 1... = LE Coded PHY: True
            ...1 .... = LE Extended Advertising: True
            ..1. .... = LE Periodic Advertising: True
            .1.. .... = Channel Selection Algorithm #2: True
            0... .... = LE Power Class 1: False
            .... ...1 = Minimum Number of Used Channels Procedure: True
            0000 000. = Reserved: 0
            Reserved: 0000000000
        [Connection Parameters in: 132]
        CRC: 0x3bb727
    
    0000  0b 1c 00 03 ae 06 06 0a 03 12 31 00 00 c6 aa 08   ..........1.....
    0010  06 27 6a 3e 61 13 09 08 fd 7f 01 00 00 00 00 00   .'j>a...........
    0020  dc ed e4                                          ...
    
    [1] : <Tx> - 07:41:43.796
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE62 (GapInit_connect)
    -Data Length    : 0x0A (10) byte(s)
     PeerAddrType   : 0x00 (0) (PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID)
     PeerAddr       : D8:B6:73:56:44:99
     InitiatingPhy  : 0x01 (1) (
                      INIT_PHY_1M)
     Timeout        : 0x0000 (0)
    Dump(Tx):
    0000:01 62 FE 0A 00 99 44 56 73 B6 D8 01 00 00       .b....DVs.....
    --------------------------------------------------------------------
    [2] : <Rx> - 07:41:43.805
    -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         : 0xFE62 (GapInit_connect)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 62 FE 00                      ......b..
    --------------------------------------------------------------------
    [3] : <Rx> - 07:41:43.905
    -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        : D8:B6:73:56:44:99
     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 99 44 56 73 B6 D8 00 00 08 ........DVs.....
    0010:50 00 00 00 D0 07 00                            P......
    --------------------------------------------------------------------
    [4] : <Tx> - 07:41:43.905
    -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.
    --------------------------------------------------------------------
    [5] : <Info> - 07:41:43.950
    Device Connected
    Handle = 0x0000
    Addr Type = 0x00 (ADDRTYPE_PUBLIC)
    BDAddr = D8:B6:73:56:44:99
    --------------------------------------------------------------------
    [6] : <Rx> - 07:41:43.935
    -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                      ...." ...
    --------------------------------------------------------------------
    [7] : <Rx> - 07:41:44.205
    -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       : 0x00000000000059FF (23039) (
                      Encryption
                      Connection_Parameters_Request
                      Reject_Extended_Indication
                      Slave_Features_Exchange
                      Ping
                      Data_Packet_Length_Extension
                      Privacy
                      Extended_Scanner_Filter_Policies
                      PHY_2M
                      Coded_PHY
                      Extended_Advertising
                      Channel_Selection_Algorithm_2)
    Dump(Rx):
    0000:04 3E 0C 04 00 00 00 FF 59 00 00 00 00 00 00    .>......Y......
    --------------------------------------------------------------------
    [8] : <Rx> - 07:41:50.105
    -Type           : 0x04 (Event)
    -EventCode      : 0x000E (HCI_CommandCompleteEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Packets        : 0x01 (1)
     OpCode         : 0x2020 (HCI_LE_RemoteConnectionParameterRequestReply)
     Status         : 0x00 (0) (SUCCESS)
     Handle         : 0x0000 (0)
    Dump(Rx):
    0000:04 0E 06 01 20 20 00 00 00                      ....  ...
    --------------------------------------------------------------------
    [9] : <Rx> - 07:41:51.305
    -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   : 0x0320 (800)
     ConnLatency    : 0x0000 (0)
     ConnTimeout    : 0x0258 (600)
    Dump(Rx):
    0000:04 FF 0B 07 06 00 00 00 20 03 00 00 58 02       ........ ...X.
    --------------------------------------------------------------------
    

  • Hi Evan, 

    Karen has provided the related log via BTOOL and BLE dongle.

    Please help to provide comments.

    Thanks.

  • Hi Mike,

    the section in the documentation about disabling CSA2 is outdated. We will first have to check this internally before we can provide an updated guide for you.

    Regards, Werner

  • Update:
    I was able to get the described code running, here is what you need to add for example in the simple peripheral code inside Application/simple_peripheral.c

    1. Add below line to the end of the function SimplePeripheral_init(void)

    HCI_LE_ReadLocalSupportedFeaturesCmd();

    2. Add below code in the switch statement of SimplePeripheral_processCmdCompleteEvt(hciEvt_CmdComplete_t *pMsg)

        case HCI_LE_READ_LOCAL_SUPPORTED_FEATURES:
        {
            uint8_t featSet[8];
    
            // get current feature set from received event (bits 1-9 of
            // the returned data
            memcpy( featSet, &pMsg->pReturnParam[1], 8 );
    
            // clear the CSA#2 feature bit
            CLR_FEATURE_FLAG( featSet[1], LL_FEATURE_CHAN_ALGO_2 );
    
            // Update controller with modified features
            HCI_EXT_SetLocalSupportedFeaturesCmd( featSet );
        }

    Regards, Werner

  • Hello Werner,

    I have tried it, and CSA #2 is disabled. Thanks a lot.

    I still have two questions, and need your help :

    1) How to remove "LL_LENGTH_REQ" from Master's request ? I hope Master will not issue this request to my CC2642 BLE stack.

    2) About CC2642 replying the attribute "Device Name" and "Appearance", how do I let these two attributes can be responded twice , not in the same response ?

    ---> currently (my program) : 

           Master --> Slave  ATT    37    Sent Read By Type Request, GATT Characteristic Declaration, Handles: 0x0001..0x0005

           Slave --> Master  ATT    46    Rcvd Read By Type Response, Attribute List Length: 2, Device Name, Appearance

    ---> Expected  :

           Master --> Slave  ATT    37    Sent Read By Type Request, GATT Characteristic Declaration, Handles: 0x0001..0x0005

           Slave --> Master  ATT    39    Rcvd Read By Type Response, Attribute List Length: 1, Device Name

           Master --> Slave  ATT    37    Sent Read By Type Request, GATT Characteristic Declaration, Handles: 0x0003..0x0005

           Slave --> Master  ATT    39    Rcvd Read By Type Response, Attribute List Length: 1, Appearance

  • Hi Karen,

     Please create another E2E thread since the two questions are not related to the disabling CSA #2.