Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Studio Bluetooth

KoSh_4652521
Level 2
First like received First like given
Level 2

Hello,

I'm trying to send test commands to CYW920721Q40EVB-01.

My test command - Tx_Test:

0x3f 0x0051 0x00 0x01 0x02 0x03 0x04 0x05 0x01 0x00 0x03 0x01 0x00 0x02 0x00 0x00 0x00 0x00

If i use evaluation board and send this commands using wiced_bt_dev_vendor_specific_command()  function embedded in the Bluetooth application - response is correct:

0E 04 01 51 FC 00

Also i have a handset with mounted Bluetooth chip and trying to send the same test command by UART, but i receive wrong responses:

The request breaks in the middle and I immediately begin to receive the wrong response (see request_response attachment):

0x19 0x03 0x00 0x04 0x00 0x00 0x10 0x01 0x00 0x19 0x03 0x00 0x04 0x00 0x01 0x03 0x03 0x00

After 1ms i receive one more response:

0x19 0x03 0x00 0x07 0x00 0x00 0x0e 0x04 0x01 0x03 0x0c 0x00

After 35ms i receive the sequence of responses.

The UART connection is correct, i can upgrade Bluetooth chip using the same enviroment (with HCI command for upgrade).

I'm using Logical analyser connected to the Bluetooth chip to see logs.

Logs are attached as screenshots from Logical analyser.

Could you please explain, why do i receive this incorrect responses? why don't i receive 0E 04 01 51 FC 00 ? !

0 Likes
1 Solution
KoSh_4652521
Level 2
First like received First like given
Level 2

Hi,

The problem was solved by adding HCI_Reset as first command.

Was changed the format of request (test command): 01 51 FC 10 05 04 03 02 01 00 00 00 04 01 0F 00 00 00 00 00

01 - was added as first byte

Was changed a verification of the response: 04 0E 04 01 51 FC 00

04 - was added as first byte

Now i use this sequence:

1. Send HCI_Reset 01 03 0C 00

2. Wait for correct response: 04 0E 04 01 03 0C 00

3. Send any test command

I hope it'll helpful for someone)

View solution in original post

0 Likes
4 Replies