cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

New Contributor

I'm having an issue where the RSSI data for LE scan results coming from my CYW20706 seems to be incorrect.

I'm using the chip in H4 HCI UART mode and interrogating it from Linux, It connects fine and I'm able to run commands on it without any problems. However, when running a Bluetooth Low-Energy scan, none of the returned RSSI values look valid. If the device is scanning just after a reboot, all the RSSI byte values are 0x00. But if I do a regular (Bluetooth Classic) scan before a LE scan, all the LE scan results RSSI's are the same as the last Bluetooth Classic scan result.

For example, the below LE scan was initiated by running "hcitool lescan" and the output was captured from "btmon" after a classic bluetooth scan was done and the last device reported an RSSI of -74dBm (0xb6)

@ RAW Open: hcitool (privileged) version 2.22                                                              {0x0003} [hci0] 1005.001455

< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                      #16 [hci0] 1005.002545

        Type: Active (0x01)

        Interval: 10.000 msec (0x0010)

        Window: 10.000 msec (0x0010)

        Own address type: Public (0x00)

        Filter policy: Accept all advertisement (0x00)

> HCI Event: Command Complete (0x0e) plen 4                                                                     #17 [hci0] 1005.004964

      LE Set Scan Parameters (0x08|0x000b) ncmd 1

        Status: Success (0x00)

< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                          #18 [hci0] 1005.006539

        Scanning: Enabled (0x01)

        Filter duplicates: Enabled (0x01)

> HCI Event: Command Complete (0x0e) plen 4                                                                     #19 [hci0] 1005.010391

      LE Set Scan Enable (0x08|0x000c) ncmd 1

        Status: Success (0x00)

> HCI Event: LE Meta Event (0x3e) plen 36                                                                       #20 [hci0] 1005.023423

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: DB:A4:26:80:01:68 (Static)

        Data length: 24

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VCX12345RRP01-01200

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 28                                                                       #21 [hci0] 1005.025406

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: EA:7B:52:25:80:C9 (Static)

        Data length: 16

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VCL03250GGW

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 28                                                                       #22 [hci0] 1005.030062

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: E2:EF:83:A9:29:DE (Static)

        Data length: 16

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VCL02456GGW

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 32                                                                       #23 [hci0] 1005.037595

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: D4:C4:13:04:DF:2D (Static)

        Data length: 20

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VLA12345-ID0202

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 35                                                                       #24 [hci0] 1005.047096

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: D7:85:02:DB:89:34 (Static)

        Data length: 23

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VLoraPacketSniffer

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 43                                                                       #25 [hci0] 1005.055331

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: 66:31:EF:3A:27:1F (Resolvable)

        Data length: 31

        Company: Microsoft (6)

          Data: 01092002f13c3b78b2f1db2975a36a96c82a484571444f648ec427

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 26                                                                       #26 [hci0] 1005.062635

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 73:03:26:97:1F:0C (Resolvable)

        Data length: 14

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 0318b59d9b

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 16                                                                       #27 [hci0] 1005.066434

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: D7:85:02:DB:89:34 (Static)

        Data length: 4

        Appearance: Computer (0x0080)

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 32                                                                       #28 [hci0] 1005.076113

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: CF:81:D5:2A:48:94 (Static)

        Data length: 20

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VCL00119NIG0001

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 31                                                                       #29 [hci0] 1005.108070

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 6E:66:91:1D:42:2D (Resolvable)

        Data length: 19

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 111fef68f0ed18

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 43                                                                       #30 [hci0] 1005.114740

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: 04:0D:D5:B2:26:53 (Non-Resolvable)

        Data length: 31

        Company: Microsoft (6)

          Data: 01092002fee8019861a8526ebbc72da554a38a0ae4a10f3ad029d7

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 28                                                                       #31 [hci0] 1005.118428

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: F0:9B:61:7D:9E:6C (Static)

        Data length: 16

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VCL90459GGW

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 26                                                                       #32 [hci0] 1005.119526

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 7A:0D:F4:75:A5:00 (Resolvable)

        Data length: 14

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 0318493bf6

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 28                                                                       #33 [hci0] 1005.143821

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: D8:10:B8:DD:C4:A1 (Static)

        Data length: 16

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VCL04764GGW

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 43                                                                       #34 [hci0] 1005.150902

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: 34:36:2E:41:99:86 (Non-Resolvable)

        Data length: 31

        Company: Microsoft (6)

          Data: 010920025d8149e7b52de6004d21858f8526be639c23d46a1a65c1

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 43                                                                       #35 [hci0] 1005.161441

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: 6B:8F:85:A3:49:EC (Resolvable)

        Data length: 31

        Company: Microsoft (6)

          Data: 01092002a128f5533fc416842878efee32fde07e752328b653f2a4

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 43                                                                       #36 [hci0] 1005.295249

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: 24:10:77:62:86:D9 (Non-Resolvable)

        Data length: 31

        Company: Microsoft (6)

          Data: 01092002386ff11c54940533ca540fa38e38620f7e1f8136b1e172

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 29                                                                       #37 [hci0] 1005.340308

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 55:D6:33:5E:75:B7 (Resolvable)

        Data length: 17

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 401c5a1fcc

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 12                                                                       #38 [hci0] 1005.435018

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: 55:D6:33:5E:75:B7 (Resolvable)

        Data length: 0

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 30                                                                       #39 [hci0] 1005.440847

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 53:86:DA:6B:6D:DE (Resolvable)

        Data length: 18

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 131eb573b83e

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 30                                                                       #40 [hci0] 1005.462896

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 4E:06:BE:91:AB:7A (Resolvable)

        Data length: 18

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 111ee4473f92

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 16                                                                       #41 [hci0] 1005.711510

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: F0:9B:61:7D:9E:6C (Static)

        Data length: 4

        Appearance: Computer (0x0080)

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 12                                                                       #42 [hci0] 1005.713135

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: 53:86:DA:6B:6D:DE (Resolvable)

        Data length: 0

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 16                                                                       #43 [hci0] 1005.716429

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: E2:EF:83:A9:29:DE (Static)

        Data length: 4

        Appearance: Computer (0x0080)

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 28                                                                       #44 [hci0] 1005.829984

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: D4:52:E8:6E:82:D9 (Static)

        Data length: 16

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        Name (complete): VCL14382GGW

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 19                                                                       #45 [hci0] 1005.889235

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: DE:25:D8:9E:F0:32 (Static)

        Data length: 7

        Flags: 0x06

          LE General Discoverable Mode

          BR/EDR Not Supported

        16-bit Service UUIDs (complete): 1 entry

          Tile, Inc. (0xfeed)

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 30                                                                       #46 [hci0] 1006.226465

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 58:53:F9:D0:9C:8E (Resolvable)

        Data length: 18

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 0a1e65581307

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 43                                                                       #47 [hci0] 1006.728202

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: 22:40:CE:10:35:A4 (Non-Resolvable)

        Data length: 31

        Company: Microsoft (6)

          Data: 010f2006659c43b1d9725f9390b249b732c90baa951b03e958eb3b

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 12                                                                       #48 [hci0] 1006.751581

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: 7A:0D:F4:75:A5:00 (Resolvable)

        Data length: 0

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 29                                                                       #49 [hci0] 1006.907600

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 7A:55:37:EE:69:E6 (Resolvable)

        Data length: 17

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 031c98dd80

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 29                                                                       #50 [hci0] 1007.012698

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 61:39:F5:0A:EA:04 (Resolvable)

        Data length: 17

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 0318df7fb4

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 29                                                                       #51 [hci0] 1007.034536

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Connectable undirected - ADV_IND (0x00)

        Address type: Random (0x01)

        Address: 78:A8:B9:2E:30:47 (Resolvable)

        Data length: 17

        Flags: 0x1a

          LE General Discoverable Mode

          Simultaneous LE and BR/EDR (Controller)

          Simultaneous LE and BR/EDR (Host)

        TX power: 12 dBm

        Company: Apple, Inc. (76)

          Type: Unknown (16)

          Data: 0118801f98

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 12                                                                       #52 [hci0] 1007.034741

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: 78:A8:B9:2E:30:47 (Resolvable)

        Data length: 0

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 12                                                                       #53 [hci0] 1007.937059

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: 4E:06:BE:91:AB:7A (Resolvable)

        Data length: 0

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 31                                                                       #54 [hci0] 1008.629646

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: F7:B9:75:61:E7:0E (Static)

        Data length: 19

        Flags: 0x04

          BR/EDR Not Supported

        Name (complete): Felix 24714406

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 33                                                                       #55 [hci0] 1008.904322

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: 73:03:26:97:1F:0C (Resolvable)

        Data length: 21

        Company: Apple, Inc. (76)

          Identifier:

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 16                                                                       #56 [hci0] 1009.111578

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: D4:C4:13:04:DF:2D (Static)

        Data length: 4

        Appearance: Computer (0x0080)

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 16                                                                       #57 [hci0] 1009.170535

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: EA:7B:52:25:80:C9 (Static)

        Data length: 4

        Appearance: Computer (0x0080)

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 12                                                                       #58 [hci0] 1010.303639

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Scan response - SCAN_RSP (0x04)

        Address type: Random (0x01)

        Address: 61:39:F5:0A:EA:04 (Resolvable)

        Data length: 0

        RSSI: -74 dBm (0xb6)

> HCI Event: LE Meta Event (0x3e) plen 43                                                                       #59 [hci0] 1011.205205

      LE Advertising Report (0x02)

        Num reports: 1

        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)

        Address type: Random (0x01)

        Address: 6B:CF:0F:E8:5A:54 (Resolvable)

        Data length: 31

        Company: Apple, Inc. (76)

          Type: Unknown (7)

          Data: 01022002f98f0000005675cab53d6768b017e798f87d46789f

        RSSI: -74 dBm (0xb6)

Any help of information would be greatly appreciated!

0 Likes
Reply
1 Solution
Moderator
Moderator

Hi AdWa_4752861 ,

Sorry I missed to update on your query.

As you reproduced same issue with 20706 EVAL board , I am not able to understand the root cause.

what exactly is the peer devices you are trying ? Did you check if you are receiving correct RSSI values for those peer devices on any mobile apps (say for example on CySmart mobile app) ? This is just make sure if the problem is with the peer devices or test setup.

One last suggestion is program the 20706 EVAL board with an empty application (as in the thread Re: CYW20719 in HCI mode ) from WICED SDK / Modus IDE first.

- Then open the CyBluetool and run the test

- when running the bluetool , don't do recovery steps (7,8,9 in your previous response). Because recovery procedure is only required for making the device to  enter in programming mode. Don't use this mode to send normal HCI commands other than programming commands. Follow the below steps:

1. Program the EVAL with empty project .(For this if the EVAL is not getting detected, then you may use recovery procedure prior to download)

2. press reset button

3. open cybluetool and send reset command first

4. once you get success for reset , then do LE scan test

If possible, please contact your Cypress Local FAE , so that they can help you for some onsite debug.

Regards,
Anjana

View solution in original post

0 Likes
Reply
9 Replies
Moderator
Moderator

Hi AdWa_4752861 ,

So you are trying to run LE Scan on 20706 by HCI commands (on Linux) and seeing constant RSSI values from all of the LE peripherals right?

Not sure why you are facing the issue.

However can you just check with a CyBluetool (CyBluetool (Linux Installer) CyBluetool User's Guide ) and check the results there?

Do you have an additional 20706 chip / EVAL to test and verify ?

Other helpful reference : Running BlueZ on CY Part

Regards,

Anjana

0 Likes
Reply
New Contributor

Hi Anjana,

So you are trying to run LE Scan on 20706 by HCI commands (on Linux) and seeing constant RSSI values from all of the LE peripherals right?

Yes, that's correct. If I run the command after the CYW20706 starts up all the RSSI's returned at 0x00 and if lescan is run after a bluetooth classic scan, all the RSSIs returned are the same value as the last RSSI from the regular scan. Otherwise RSSI's are received without any problems when doing a classic bluetooth scan "hcitool scan".

I've tried this on two separate devices and noticed the same problem with each of them (BT addresses: 1B:03:AD:95:AF:B0 and 00:D5:51:95:02:E7)

Below is a photo of the package markings for the device with bt address 00:D5:51:95:02:E7 (in case this is a silicon version issue).

unnamed (3).jpg

Unfortunately, the board we've designed that uses the CYW20706 does not have a display output, so I'm unable to test with a GUI application.

But below I've pasted some examples of the bytes sent over the HCI uart from the communications to and from the device during an lescan. (Lines starting with '<' are transmitted from linux to the CYW20706, Lines starting with '>' are bytes received from the CYW20706)

< 01 0B 20 07 01 10 00 10 00 00 00

> 04 0E 04 01 0B 20 00

< 01 0C 20 02 01 01

> 04 0E 04 01 0C 20 00

> 04 3E 2B 02 01 03 01 BF 76 2E 8A B5 6A 1F 1E FF 06 00 01 09

  20 02 ED 5F 3C EE FE EC 19 92 9A 0B 3D E4 01 4B 30 C6 08 F6

  22 CA 43 29 50 00

> 04 3E 24 02 01 00 01 5A 0E 8B E9 2B FF 18 02 01 06 14 09 56

  43 4C 32 33 34 35 36 52 52 50 31 31 2D 30 30 35 30 30 00

> 04 3E 20 02 01 00 01 2D DF 04 13 C4 D4 14 02 01 06 10 09 56

  4C 41 31 32 33 34 35 2D 49 44 30 32 30 32 00

> 04 3E 1A 02 01 00 01 A5 66 3D 35 9E 79 0E 02 01 1A 0A FF 4C

  00 10 05 03 18 82 B9 CB 00

> 04 3E 1C 02 01 00 01 DE 29 A9 83 EF E2 10 02 01 06 0C 09 56

  43 4C 30 32 34 35 36 47 47 57 00

> 04 3E 23 02 01 00 01 34 89 DB 02 85 D7 17 02 01 06 13 09 56

  4C 6F 72 61 50 61 63 6B 65 74 53 6E 69 66 66 65 72 00

> 04 3E 1C 02 01 00 01 D9 82 6E E8 52 D4 10 02 01 06 0C 09 56

  43 4C 31 34 33 38 32 47 47 57 00

> 04 3E 20 02 01 00 01 26 BE 8D AB BD DB 14 02 01 06 10 09 56

  4C 41 31 32 33 34 35 2D 49 44 30 32 30 31 00

> 04 3E 1C 02 01 00 01 B3 37 67 BE E0 FD 10 02 01 06 0C 09 56

  43 4C 30 33 33 37 31 47 47 57 00

> 04 3E 1C 02 01 00 01 C9 80 25 52 7B EA 10 02 01 06 0C 09 56

  43 4C 30 33 32 35 30 47 47 57 00

> 04 3E 2B 02 01 03 01 50 D4 7B 8B 52 05 1F 1E FF 06 00 01 09

  20 02 4C 8E 17 F1 C4 11 FE D8 06 56 A0 1D 60 AE 8E B1 D4 EA

  E9 BC FB 3B 8C 00

> 04 3E 1D 02 01 00 01 10 70 86 96 21 55 11 02 01 1A 02 0A 0C

  0A FF 4C 00 10 05 02 18 8E DB 75 00

> 04 3E 2B 02 01 03 01 D7 F4 FC 00 44 39 1F 1E FF 06 00 01 09

  20 02 1D E4 E7 3D CD B2 53 B2 01 07 EA 61 64 CB 12 99 7C B0

  0A EA D3 EB 54 00

> 04 3E 1D 02 01 00 01 FD 35 49 C0 1A 45 11 02 01 1A 02 0A 0C

  0A FF 4C 00 10 05 03 18 68 88 F9 00

> 04 3E 0C 02 01 04 01 FD 35 49 C0 1A 45 00 00

> 04 3E 10 02 01 04 01 34 89 DB 02 85 D7 04 03 19 80 00 00

> 04 3E 20 02 01 00 01 94 48 2A D5 81 CF 14 02 01 06 10 09 56

  43 4C 30 30 31 31 39 4E 49 47 30 30 30 31 00

> 04 3E 2B 02 01 03 01 87 C7 BC 79 4D 55 1F 1E FF 06 00 01 09

  20 02 7D AD 4E 39 D9 CF 85 9B 2A 0F 04 4E 00 65 D7 FA CB 1E

  AD BA 65 D1 20 00

> 04 3E 1D 02 01 00 01 0F 96 88 EF 41 69 11 02 01 1A 02 0A 0C

  0A FF 4C 00 10 05 41 1C 9A F0 26 00

> 04 3E 1E 02 01 00 01 A9 E9 BA 0A 90 52 12 02 01 1A 02 0A 0C

  0B FF 4C 00 10 06 13 1E F6 5A DE DF 00

> 04 3E 2B 02 01 03 01 A9 C1 14 F8 7D 13 1F 1E FF 06 00 01 09

  20 02 95 0A 76 DE 51 58 60 FA 37 9E 4E 6B C7 73 8A 03 1C 3C

  D6 16 6C F3 05 00

> 04 3E 1A 02 01 00 01 7F 21 DF 70 00 53 0E 02 01 1A 0A FF 4C

  00 10 05 03 18 DD 34 E2 00

> 04 3E 1C 02 01 00 01 6C 9E 7D 61 9B F0 10 02 01 06 0C 09 56

  43 4C 39 30 34 35 39 47 47 57 00

> 04 3E 1E 02 01 00 01 57 B9 19 83 3F 72 12 02 01 1A 02 0A 0C

  0B FF 4C 00 10 06 57 1E 11 EE B4 93 00

> 04 3E 1F 02 01 00 01 B4 3B 13 1E 4A 59 13 02 01 1A 02 0A 0C

  0C FF 4C 00 10 07 4E 1F 70 0D 71 26 80 00

> 04 3E 1D 02 01 00 01 C5 0A E1 72 A1 53 11 02 01 1A 02 0A 0C

  0A FF 4C 00 10 05 01 18 9F 76 1D 00

> 04 3E 2B 02 01 03 01 7E 4A 29 74 4C 24 1F 1E FF 06 00 01 09

  20 02 6C F1 4D 33 73 76 FF EB 19 D1 2B 9E A6 1A 5A 21 FD 7E

  21 96 6F 83 8C 00

> 04 3E 2B 02 01 03 01 DB D4 21 5B D1 2C 1F 1E FF 06 00 01 0F

  20 06 12 97 04 87 DD 0F BD 1C E6 C7 50 8E 30 67 22 E0 28 28

  1A 1B E7 CF 78 00

> 04 3E 1D 02 01 00 01 EB AB 3F 7C D3 59 11 02 01 1A 02 0A 0C

  0A FF 4C 00 10 05 03 1C 40 46 65 00

> 04 3E 1F 02 01 00 01 D7 4C BA 2C 70 5C 13 02 01 1A 02 0A 0C

  0C FF 4C 00 10 07 18 1F D2 E6 55 8E 48 00

> 04 3E 1C 02 01 00 01 A1 C4 DD B8 10 D8 10 02 01 06 0C 09 56

  43 4C 30 34 37 36 34 47 47 57 00

Let me know if you can do anything with the information I've provided or if you need anything additional.

Regards,

Adrian

0 Likes
Reply
New Contributor

Hi AnjanaM_61​,

Just checking in to see if you've made any sort of progress on figuring out what might be going wrong with my ICs?

Let me know if you need any further information.

0 Likes
Reply
Moderator
Moderator

Hi AdWa_4752861 ,

Not sure what is the issue.

Can you try only LE scan . Don't initiate any classic bluetooth scan.

- First send an HCI reset

- then do a LE scan and check the results.

Inorder to run CyBluteool , you don't need any display. Please have a look at user guide. The GUI will show all the raw HCI packets. For example attached is the test result for Le_scan on cybluetool I tried at my side.

CyBluetool (CyBluetool (Linux Installer) CyBluetool User's Guide )

Can you please try once with CyBluetool and check if it works?

If still it fails,

1. Do you have any 20706 EVAL board at your side to test ? This will confirm if the issue is with the custom board you are using

2. If you see it works on 20706 EVAL and not on custom board, please share the schematics of the custom board

3. You may also try preload an application from our SDK on your custom board , so that it will ensure patch fixes for FW bugs . Refer Run CYW20706 in HCI Mode

Other useful reference: Re: In HCI Mode, CYW20706 does not LE Connect

Regards,

Anjana

0 Likes
Reply
New Contributor

Thanks for the reply, after a bunch of UART redirection we were able to run our CYW20706 through CyBluetool running on a windows machine and we got the same results (RSSI's are all zero after reset), logs are below.

11/12/20 13:18:50.933 com15@115200 c> Reset

HCI Command

com15@115200

[03 0C 00 ]

opcode = 0x0C03 (3075, "Reset")

11/12/20 13:18:50.942 com15 <c Reset

HCI Command Complete Event

com15@115200

[0E 04 ]: 01 03 0C 00

event = 0x0E (14,"Command Complete")

Num_HCI_Command_Packets = 0x1 (1)

Command_Opcode = 0xC03 (3075, "Reset")

Status = 0x0 (0, "Success", "Success")

11/12/20 13:19:05.597 com15@115200 c> LE_Set_Scan_Parameters

HCI Command

com15@115200

[0B 20 07 ]: 00 10 00 10 00 00 00

opcode = 0x200B (8203, "LE_Set_Scan_Parameters")

LE_Scan_Type = 0x0 (0, "Passive Scanning")

LE_Scan_Interval = 0x10 (16, in slots. Range: 2.5ms to 10.24s)

LE_Scan_Window = 0x10 (16, in slots. Range: 2.5ms to 10.24s)

Own_Address_Type = 0x0 (0, "Public Address")

Scanning_Filter_Policy = 0x0 (0, "Accept all advertisement packets except Directed Adv not directed to you")

11/12/20 13:19:05.601 com15 <c LE_Set_Scan_Parameters

HCI Command Complete Event

com15@115200

[0E 04 ]: 01 0B 20 00

event = 0x0E (14,"Command Complete")

Num_HCI_Command_Packets = 0x1 (1)

Command_Opcode = 0x200B (8203, "LE_Set_Scan_Parameters")

Status = 0x0 (0, "Success", "Success")

11/12/20 13:19:23.381 com15@115200 c> LE_Set_Scan_Enable

HCI Command

com15@115200

[0C 20 02 ]: 01 00

opcode = 0x200C (8204, "LE_Set_Scan_Enable")

LE_Scan_Enable = 0x1 (1, "Scanning is enabled")

Filter_Duplicates = 0x0 (0, "Duplicate filtering is disabled")

11/12/20 13:19:23.392 com15 <c LE_Set_Scan_Enable

HCI Command Complete Event

com15@115200

[0E 04 ]: 01 0C 20 00

event = 0x0E (14,"Command Complete")

Num_HCI_Command_Packets = 0x1 (1)

Command_Opcode = 0x200C (8204, "LE_Set_Scan_Enable")

Status = 0x0 (0, "Success", "Success")

11/12/20 13:19:23.395 com15 <e LE Event

HCI Event

com15@115200

[3E 2B ]: 02 01 03 01 13 CC 40 3F E4 13 1F 1E FF 06 00 01 0F 20 06 7E CC AC 12 00 11 DC 99 FF AC 8D FD 5E AB 2D C4 3C E8 97 C7 99 65 01 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x3 (3, "Non-connectable Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "13E43F40CC13"

Data_Len[0] = 0x1F (31)

Data[0] = "1E FF 06 00 01 0F 20 06 7E CC AC 12 00 11 DC 99 FF AC 8D FD 5E AB 2D C4 3C E8 97 C7 99 65 01"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.399 com15 <e LE Event

HCI Event

com15@115200

[3E 23 ]: 02 01 00 01 34 89 DB 02 85 D7 17 02 01 06 13 09 56 4C 6F 72 61 50 61 63 6B 65 74 53 6E 69 66 66 65 72 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "D78502DB8934"

Data_Len[0] = 0x17 (23)

Data[0] = "02 01 06 13 09 56 4C 6F 72 61 50 61 63 6B 65 74 53 6E 69 66 66 65 72"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.401 com15 <e LE Event

HCI Event

com15@115200

[3E 24 ]: 02 01 00 01 5A 0E 8B E9 2B FF 18 02 01 06 14 09 56 43 4C 32 33 34 35 36 52 52 50 31 31 2D 30 30 35 30 30 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "FF2BE98B0E5A"

Data_Len[0] = 0x18 (24)

Data[0] = "02 01 06 14 09 56 43 4C 32 33 34 35 36 52 52 50 31 31 2D 30 30 35 30 30"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.409 com15 <e LE Event

HCI Event

com15@115200

[3E 1C ]: 02 01 00 01 DE 29 A9 83 EF E2 10 02 01 06 0C 09 56 43 4C 30 32 34 35 36 47 47 57 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "E2EF83A929DE"

Data_Len[0] = 0x10 (16)

Data[0] = "02 01 06 0C 09 56 43 4C 30 32 34 35 36 47 47 57"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.426 com15 <e LE Event

HCI Event

com15@115200

[3E 24 ]: 02 01 00 01 5A 0E 8B E9 2B FF 18 02 01 06 14 09 56 43 4C 32 33 34 35 36 52 52 50 31 31 2D 30 30 35 30 30 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "FF2BE98B0E5A"

Data_Len[0] = 0x18 (24)

Data[0] = "02 01 06 14 09 56 43 4C 32 33 34 35 36 52 52 50 31 31 2D 30 30 35 30 30"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.430 com15 <e LE Event

HCI Event

com15@115200

[3E 1C ]: 02 01 00 01 6C 9E 7D 61 9B F0 10 02 01 06 0C 09 56 43 4C 39 30 34 35 39 47 47 57 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "F09B617D9E6C"

Data_Len[0] = 0x10 (16)

Data[0] = "02 01 06 0C 09 56 43 4C 39 30 34 35 39 47 47 57"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.452 com15 <e LE Event

HCI Event

com15@115200

[3E 1F ]: 02 01 03 01 0E E7 61 75 B9 F7 13 02 01 04 0F 09 46 65 6C 69 78 20 32 34 37 31 34 34 30 36 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x3 (3, "Non-connectable Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "F7B97561E70E"

Data_Len[0] = 0x13 (19)

Data[0] = "02 01 04 0F 09 46 65 6C 69 78 20 32 34 37 31 34 34 30 36"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.456 com15 <e LE Event

HCI Event

com15@115200

[3E 1C ]: 02 01 00 01 6C 9E 7D 61 9B F0 10 02 01 06 0C 09 56 43 4C 39 30 34 35 39 47 47 57 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "F09B617D9E6C"

Data_Len[0] = 0x10 (16)

Data[0] = "02 01 06 0C 09 56 43 4C 39 30 34 35 39 47 47 57"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.476 com15 <e LE Event

HCI Event

com15@115200

[3E 1D ]: 02 01 00 01 62 F2 9F DF 48 6B 11 02 01 1A 02 0A 0C 0A FF 4C 00 10 05 03 18 91 BC C5 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "6B48DF9FF262"

Data_Len[0] = 0x11 (17)

Data[0] = "02 01 1A 02 0A 0C 0A FF 4C 00 10 05 03 18 91 BC C5"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:23.480 com15 <e LE Event

HCI Event

com15@115200

[3E 23 ]: 02 01 00 01 34 89 DB 02 85 D7 17 02 01 06 13 09 56 4C 6F 72 61 50 61 63 6B 65 74 53 6E 69 66 66 65 72 00

event = 0x3E (62,"LE Event")

LE_Event_Code = 0x2 (2, "LE Advertising Report Event")

Num_Reports = 0x1 (1)

Event_Type[0] = 0x0 (0, "Connectable Undirected Event")

Address_Type[0] = 0x1 (1, "Random Address")

Address[0] = "D78502DB8934"

Data_Len[0] = 0x17 (23)

Data[0] = "02 01 06 13 09 56 4C 6F 72 61 50 61 63 6B 65 74 53 6E 69 66 66 65 72"

RSSI[0] = 0x0 (0, 127 means RSSI is not available, Range from -127 to 20 dbm)

11/12/20 13:19:26.651 com15@115200 c> LE_Set_Scan_Enable

HCI Command

com15@115200

[0C 20 02 ]: 00 00

opcode = 0x200C (8204, "LE_Set_Scan_Enable")

LE_Scan_Enable = 0x0 (0, "Scanning is disabled")

Filter_Duplicates = 0x0 (0, "Duplicate filtering is disabled")

11/12/20 13:19:26.654 com15 <c LE_Set_Scan_Enable

HCI Command Complete Event

com15@115200

[0E 04 ]: 01 0C 20 00

event = 0x0E (14,"Command Complete")

Num_HCI_Command_Packets = 0x1 (1)

Command_Opcode = 0x200C (8204, "LE_Set_Scan_Enable")

Status = 0x0 (0, "Success", "Success")

Regards,

Adrian

0 Likes
Reply
Moderator
Moderator

Hi AdWa_4752861

Seems like there is some issue with the chip / custom board you are using.

Can you check other suggestions from my previous response?

1. Do you have any 20706 EVAL board at your side to test ? This will confirm if the issue is with the custom board you are using

2. If you see it works on 20706 EVAL and not on custom board, please share the schematics & PCB of your custom board

3. You may also try preload an application from our SDK on your custom board , so that it will ensure patch fixes for FW bugs . Refer Run CYW20706 in HCI Mode

Other useful reference: Re: In HCI Mode, CYW20706 does not LE Connect

Regards,

Anjana

0 Likes
Reply
New Contributor

Hi Anjana,

We've got our hands on a CYW920706WCDEVAL board and have also managed to reproduce the behaviour we're seeing on out board with the evaluation board.

We've done the following to reproduce the RSSI problem with the CYW920706WCDEVAL:

  1. Verify that SW5 DIP switches 1, 3, 5, and 6 are set to the OFF position, and SW5 switches 2 and 4 are set to the ON position.
  2. Verify that SW7 DIP switches 1-5 are set to the ON position to enable on-board serial flash memory. SW7 switches6-8 are set to the OFF position.
  3. Verify that J3, J9, J10, J12, J17, and J26 shorted, and J29 and J30 open.
  4. Verify that SW4 is set to the ON position to enable USB power.
  5. Connect J25 of the WICED evaluation board to a Windows 10 PC with a USB cable. The USB UART driver loads automatically.
  6. Press and hold the Recovery button (SW3).
  7. Press and hold the Reset (SW2) button for 1 second.
  8. Release SW2.
  9. Release SW3.
  10. Run cybluetool.exe.
  11. Select device -> Transport: UART -> Device Name COM24 -> Baud Rate: 115200 -> Flow Control: None -> Connect.
  12. Command Name -> 7.8: LE Controller Commands -> LE_Set_Scan_Enable ->Scanning is enabled -> Duplicate filtering is disabled -> Send.
  13. RSSI[0] = 0x0 for all LE Advertising Report Events.
  14. Screenshots and photos are below.

download.png

For the schematics for our custom board see the attached image below:

btsch.PNG

Let me know if you can figure any way to fix this issue.

Regards,

Adrian

0 Likes
Reply
New Contributor

Hi AnjanaM_61,

Just wondering if you've gotten any further on figuring out what could be going wrong with our chips?

Let me know if you need any further information.

Adrian

0 Likes
Reply
Moderator
Moderator

Hi AdWa_4752861 ,

Sorry I missed to update on your query.

As you reproduced same issue with 20706 EVAL board , I am not able to understand the root cause.

what exactly is the peer devices you are trying ? Did you check if you are receiving correct RSSI values for those peer devices on any mobile apps (say for example on CySmart mobile app) ? This is just make sure if the problem is with the peer devices or test setup.

One last suggestion is program the 20706 EVAL board with an empty application (as in the thread Re: CYW20719 in HCI mode ) from WICED SDK / Modus IDE first.

- Then open the CyBluetool and run the test

- when running the bluetool , don't do recovery steps (7,8,9 in your previous response). Because recovery procedure is only required for making the device to  enter in programming mode. Don't use this mode to send normal HCI commands other than programming commands. Follow the below steps:

1. Program the EVAL with empty project .(For this if the EVAL is not getting detected, then you may use recovery procedure prior to download)

2. press reset button

3. open cybluetool and send reset command first

4. once you get success for reset , then do LE scan test

If possible, please contact your Cypress Local FAE , so that they can help you for some onsite debug.

Regards,
Anjana

View solution in original post

0 Likes
Reply