cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

hagrc_4249881
New Contributor II

Hello

I am having problem with mbt sw on CYW20719 Eval board.

Flashing via USB went fine.

Disconnect jumpers at J5 to interface 20719 HCI UART to PC host.

The PC HOST COM port, Baudrate, parity Bit are set correct.

Using 4ch oscilloscope on the UART bus to monitor the data and handshake.

sending  "mbt reset" cmd is succesful. any following command is failing, as Cypress 20719 does not set RTS high after last "mbt reset" cmd.  As other have problem with the mbt program, different setting of "WICED_BT_TRACE_ENABLE" are tried out in "hello_sensor.c"  As well  "C_FLAGS" are omitted in makefile.

Performing a master recovery, solve the issue, but only once as the."mbt reset" cmd can only be performed once. A second "mbt reset" fail as RTS isn't enabled for Host handshake.

Any inputs or comments are appreciated.

Thanks Hans

0 Likes
1 Solution
hagrc_4249881
New Contributor II

Hi

I got it to work, based on Cypress code from: (Reported  Jul 26 2018 by: nagakotapaidivenkatesh.budde_3529051)

hw 20719 Eval board, WICED Studio 6.2.1

Thanks a lot.

View solution in original post

13 Replies
Owen_Zhang123
Moderator
Moderator

Please pull the CTS pin to high in the power on procedure.

0 Likes
hagrc_4249881
New Contributor II

Cypress_20721_Eval.jpg

Using a FTDI serial cable directly to the HCI UART.

The 20721 Vsup is setup to 3.3Volt

The FTDI serial cable is 3.3Volt

Connected as:

CTS(Host) <-> RTS(20721)

RTS(Host) <-> CTS(20721)

TXD(Host) <-> RXD(20721)

RXD(Host) <->TXD(20721)

HCI UART levels after hw Recovery Reset:

CTS(20721):  3.3V high level

RTS(20721):  0.0V low level

TXD(20721):  3.3V high level

RXD(20721):  3.3V high level

”mbt reset” command  work one time

Send as second "mbt reset" or other cmd, and the UART is ”hanging”

(RTS is never enabled, never trigger high)  

HCI UART levels after hw Reset:

CTS(20721):  3.3V high level

RTS(20721):  3.3V high level

TXD(20721):  3.3V high level

RXD(20721):  3.3V high level

”mbt reset” command  does not work

Monitoring the HCI UART using oscilloscope. The RTS(20721) is never enabled.

Why? 

0 Likes
Owen_Zhang123
Moderator
Moderator

Are you using a 20721 board, not 20719?

The 20721 is not a broad market product. Please contact your local Cypress sales team or Local FAE to get support on this issue.

0 Likes
hagrc_4249881
New Contributor II

We both have have 20719 and 20721 boards.

I will check with local sales team.

Best Regards

Hans

0 Likes
hagrc_4249881
New Contributor II

Same problem with 20719 board and 20719 sw.

The problem is that the 20719 pull the RTS low. It do never go high in the communication.

First command after Recover Reboot, went ok.

MBT_TRANSPORT: COM13

DOWNLOAD_BAUDRATE: 115200 <default>

APPLICATION_BAUDRATE 115200 <default>

Sending HCI Command:

0000 < 03 0C 00 >

Received HCI Event:

0000 <0E 04 01 03 0C 00>

Success

Second command fail since RTS is never enabled.

MBT_TRANSPORT: COM13

DOWNLOAD_BAUDRATE: 115200 <default>

APPLICATION_BAUDRATE 115200 <default>

Sending HCI Command:

0000 < 03 0C 00 >

^C

(The communication is stalled and terminated with Cntr C)

0 Likes
hagrc_4249881
New Contributor II

Exactly same problem as

https://community.cypress.com/thread/35595?start=0&tstart=0

Reported  Jul 26 2018 by:

nagakotapaidivenkatesh.budde_3529051

0 Likes
Owen_Zhang123
Moderator
Moderator

Can you send the command successfully by following the resolution in the thread?

Failed to execute of HCI Commands

0 Likes
hagrc_4249881
New Contributor II

I downloaded the file zip file from. 

https://community.cypress.com/thread/35595?start=0&tstart=0

and made customer folder as suggested.  I can send one sucessfull mbt command, second command stall the HCI UART. The Host (PC) never get a RTS knowledge from 20719. Using 4ch oscilloscope, the HCI UART is monitored.

Cypress HCI UART:

Yellow trace: CTS

Green trace: RTS

Blue trace: TXD

Pink: trace: RXD

Triggered on CTS high to low transicion. 2Volt/div. The Cypress 20719 level jumper set to 3.3Volt. The FTDI cable to host is 3.3Volt.

   Scop_First_Cmd.jpg

Picture above, first mbt reset cmd. The Cypress does not give a RTS aknowledge (Green trace always low)

mbt.jpg 

First mbt reset cmd went fine, second reset cmd and the UART in stalled.

Scop_Second_Cmd.jpg

Second mbt reset command. The Cypresse 20719 does not send a TXD aknowledge back, not enable the RTS.

The HCI UART set is tried out on three different PC's (Win7 and 2*Win10) All with same HCI UART problem. 

Are there any special sw HCI UART setting in the code, I am missing?

0 Likes
Owen_Zhang123
Moderator
Moderator

You may need to unplug the USB interface and re-plug it again. Per my test, the mbt can work normal after re-plug the device.

Do you intend to test the RF with the MBT tool? You may try to test with CYBluetool: CyBluetool (Windows Installer) . The CYBluetool has all the command supported by the mbt and it is more convenient. Please use the CyBluetool as follows:

1. Download an application(hello_sensor for example) to the 20719 device.

2. Reset the device with Reset Pin.

3. Open the HCI UART port with CyBluetool.

4. Choose command in the CyBluetool and send it.

Please notice that the sequence of step 2 and step 3 can't be reversed.

Please try the CyBluetool and let me know if you can run it successfully.

0 Likes
hagrc_4249881
New Contributor II

Yes I do re-plug the USB. I only use the USB as power supply, as I intend to use the HCI UART for communication.

The is the same for CTBluettol. I can sen done cmd, second cmd and the communication is stalling.

Which version of WICED Studio do you test with?

I use WICED Studio 6.2.1

0 Likes
hagrc_4249881
New Contributor II

Hi

I got it to work, based on Cypress code from: (Reported  Jul 26 2018 by: nagakotapaidivenkatesh.budde_3529051)

hw 20719 Eval board, WICED Studio 6.2.1

Thanks a lot.

View solution in original post

hagrc_4249881
New Contributor II

Hi Cypress

"Set_Tx_Carrier_Frequency_ARM" command works fine in CyBluetool.

Is it possible to run the command from "Flash", as I need to disconnect the power supply for integration. And do wireless TX test after product integration.

My wish is:

1) Program 20719 device

2) Set_TX_Carrier_Frequency_ARM in Flash

3) Disconnect power supply and Integrate product

4) Connect power supply, and 20719 TX transmit as specified in 2)

5) After TX test, the 20719 is set back in factory mode by Recovery Reset.

Best Regards

Hans

0 Likes
Owen_Zhang123
Moderator
Moderator

The command can only be sent from the HCI interface. It can't be sent from the application.