HCI Command of CYBT343026 Eval?

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

cross mob
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

    Hi  Cypress:

         as we know,BT stack of CYBT-343026 is already included in the ROM code.

   However you can run BT stack on any other host like any micro controller/Linux/Android and can send directly HCI commands to CYBT-343026 device via HCI UART.

  so customer want to use the BT stack and we don't need to down load any other code to the demo ??? what 's the HCI commands we can us ??

  In the CYBT343036 demo, the HCI interface connect to the CY7C65215, so we can send the HCI command via to serial port tools?? TKS

        when we use seial port tools to print the log, it show messy code when we press the reset button; Can you give some advice??

pastedImage_4.png

pastedImage_3.png

0 Likes
1 Solution

You have omitted the last word "build" in your make target.

View solution in original post

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

You can send all the standard HCI command defined in the SPEC. As the ROM code in the device is too old, you need to download an application to the flash or RAM for initialization. Please refer to the following blog for some details: Run CYW20706 in HCI Mode

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

hi  Owen:

     按照教程中进行操作,HCI模式下发送Reset 命令无法返回数据,请帮忙建议是否是操作有问题??

采用CYBT343026+CP2102 能正常将Hello_Sensor 的例子下载到开发板, 原理的开发板无论怎么尝试都不能正常下载;

       pastedImage_0.png

pastedImage_1.png

由于CYBT-343026-01 外部没有接Flash, 按照指导下载如下hcd 文件到内部RAM;

C:/Users/a89114/Documents/WICED-Studio-6.1/20706-A2_Bluetooth/build/hello_sensor-CYBT_343026_EVAL-rom-ram-Wiced-release/hello_sensor-CYBT_343026_EVAL-rom-ram-Wiced-release.hcd

pastedImage_2.png

在hello_sensor.c配置如下:

pastedImage_3.png

pastedImage_4.png

HCI 命令测试:

       COM33 作为HCI接口, PUART=COM34, 串口输出:

用串口工具发送Reset 命令:

pastedImage_5.png

理论正常返回如下:

pastedImage_6.png

实际无法数据输出:

pastedImage_7.png

0 Likes

Some pointers:

1) Do a clean

2) Build your app with DIRECT_LOAD=1, something like this: demo.hello_sensor-CYBT_343026_EVAL DIRECT_LOAD=1 build

3) Launch client control, choose 115200 as baud, enable Flow, and Open Port (select your HCI port number)

4) Select your HCD file (from your build in (2)), tick "Flow Control" and untick "Upgrade to 3M"

5) Download

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

hi  Bootn:

   按照你的建议, Clean 后修改,再 Bulid , 没有HCD文件生产;无法进行操作;另外CYBT343026-01 eval 内部是有Flash的需要进过这样操作吗??

pastedImage_2.png

pastedImage_0.png

0 Likes

You have omitted the last word "build" in your make target.

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

hi  BoonT:

   i  solve the issue , TKS;

0 Likes