wmbt can't use wiced hci command successfully

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

cross mob
Leo_liu1
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Hi all,

我在使用wmbt去测试wiced hci命令的时候,发送一些命令,似乎没有正确的返回值。

我使用的是20706的开发板,下载的是watch的demo,MBT_BAUD_RATE=115200,COM口为puart(hci uart无效)。

1.如reset命令:

wmbt wiced_reset COM6

MBT_BAUD_RATE:  115200

TRANSPORT_MODE: 1 (WICED_HCI)

Opened COM6 at speed: 115200

Sending WICED HCI Command:

0000 < 19 01 00 00 00 >

Close Serial Bus

没有收到Received HCI Event

2.LE Receiver Test

wmbt le_receiver_test COM4 2406

TRANSPORT_MODE: 1 (WICED_HCI)

Opened COM6 at speed: 115200

Sending WICED HCI Command:

0000 < 19 10 08 05 00 01 1D 20 01 02 >

Received WICED HCI Event:

0000 < BA 97 0A 41 50 50 20 53 54 41 52 54 0A 68 63 69 >

0010 < 5F 63 6F 6E 74 72 6F 6C 5F 6D 61 6E 61 67 65 6D >

0020 < 65 6E 74 5F 63 61 6C 6C 62 61 63 6B 20 30 78 31 >

0030 < 35 0A 68 63 69 5F 63 6F 6E 74 72 6F 6C 5F 6D 61 >

0040 < 6E 61 67 65 6D 65 >

Received WICED HCI Event:

0000 < 6E 74 5F 63 61 6C 6C 62 61 63 6B 20 30 78 31 34 >

0010 < 0A 68 63 69 5F 63 6F 6E 74 72 6F 6C 5F 6D 61 6E >

0020 < 61 67 65 6D 65 6E 74 5F 63 61 6C 6C 62 61 63 6B >

0030 < 20 30 78 31 34 0A 68 63 69 5F 63 6F 6E 74 72 6F >

0040 < 6C 5F 6D 61 6E 61 67 65 6D 65 6E 74 5F 63 61 6C >

0050 < 6C 62 61 63 6B 20 30 78 30 30 0A 68 63 69 5F 63 >

0060 < 6F 6E 74 72 6F 6C 5F 77 >

返回的Received WICED HCI Event也不对,应该是19开头的。

所以,这是什么原因造成的,是否跟我的demo有关,如果是的话,有相关的demo可以进行测试吗

BR,

Leo

0 Likes
1 Solution

请问是想实现什么功能?如果要测试射频性能请使用mbt工具,或者cybluetool。所有测试需要用到的标准HCI指令都有的。

如果要测试WICED HCI指令,建议直接通过UART上位机输入WICED HCI指令。例如,reset可以直接从上位机输入19 01 00 00 00.我这边测试是没有问题的,wmbt可能会有一些问题,导致无法正常接收WICED HCI指令。

View solution in original post

0 Likes
6 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

wmbt是通过HCI uart发送标准的HCI指令,并不是wiced的指令。你使用HCI UART发送reset可以成功吗?

0 Likes
lock attach
Attachments are accessible only for community members.

Hi Owen,

之前我用过mbt,是可以正常发送标准的HCI命令的。我现在想要测试wiced hci,看到wiced的sdk里有wmbt这个工具,根据README.txt的说明,应该是支持wiced hci命令的,如附件所示,实际测试下来,不管是标准的HCI 还是wiced HCI都没有正确返回。

0 Likes

请问是想实现什么功能?如果要测试射频性能请使用mbt工具,或者cybluetool。所有测试需要用到的标准HCI指令都有的。

如果要测试WICED HCI指令,建议直接通过UART上位机输入WICED HCI指令。例如,reset可以直接从上位机输入19 01 00 00 00.我这边测试是没有问题的,wmbt可能会有一些问题,导致无法正常接收WICED HCI指令。

0 Likes

Hi Owen,

我是想测试我发的wiced hci命令的发送与接收是否正确,目前我用UART上位机直接发wiced hci命令可以测试了,谢谢。

BR,

Leo

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello Leo,

Please note the steps to use WMBT:

  • To use the WMBT tool for testing, you should program the device with any application that uses the WICED UART transport and handles WICED HCI commands (for example: hci_audio_remote_control project in WICED Studio apps/demo/audio folder or the watch)
  • WMBT exe is available in the location …………\WICED-Studio 6.0\wiced_tools\wmbt\Release
  • Run the WMBT from Command Prompt. (Note: Change directory to the folder containing wmbt.exe)
  • Make sure the test device is not in recovery mode. If the device is in Recovery mode, the HCI command will fail. Reset the device.
  • Do set the MBT_BAUD_RATE (as same as the application baud rate set in the application project), TRANSPORT_MODE (to 1). First step should be setting the baud rate and transport mode
  • Refer the Read me file for the usage of wmbt commands

Thanks,
Anjana

0 Likes

Hi Anjana,

I programmed the device with watch application, transport with WICED UART. MBT_BAUD_RATE is same as the application set,TRANSPORT_MODE  is set as 1 and it's not recovery mode.

But when i send :

wmbt wiced_reset COM5

there is no received hci event come back.

BR,

Leo

0 Likes