Studio Bluetooth Forum Discussions
Keep getting those errors when connecting bonded Cysmart to CYW20719:
Status : Connection Terminated Due to MIC Failure (0x3d)
Encryption Status Event: bd ( 5a 10 0c ef 51 aa ) res 8109
The CYW20719 hardware is CYBT_413034_EVAL.
Clients are Samsung TAB E 7” and Tab A 8” tablets with Android 4.4.4, 5.0.1 and 6.0.1
This error happens:
- Always if I pair let say Cysmart client1 on Android device 1 and disconnect, then pair another let say Cysmart client2 on Android device 2 and disconnect, RESET the CYW20719, then when return back to device1 and try to connect to CYW20719 (on Cysmart button on the right side shows ‘Paired’) so just click on the name of the CYW20719 a.k.a ‘Hello’ to reconnect and always (100%) will get ‘Connection Terminated Due to MIC Failure (0x3d)’. So there is some logic to get error in this situation, because ‘hello_sensor’ code stores bonding info only for 1 bonding, but why this error will be MIC – isn’t MIC (message integrity check) something similar to CRC?
- Random – this is the most annoying problem, because it happens when only one Device is bonded and only this device trying to reconnect – sometimes connect, sometimes fail with the same MIC failure error (0x3d). And I tried plenty of different devices and Android OS versions: 4.4.4, 5.0.1, 6.0.1 and happened only with CYW20719.
So I already rise this problem couple months ago, but haven’t receive any solution (neither on any of the bugs I reported so far ☹ ), but at least:
Do you have some sniffer tool that could capture raw packets (incl. MIC) in the communication client <> server so to compare what is the difference when reconnecting go smooth and when fail?
Either there is something wrong on the Cypresses BT stack side or something in the timing parameters/syncs in the connection ☹ The only clue I could guess – slower processors with Android have more MIC failures than faster ones ☹ , but when I try reconnecting bonded CC2540 from TI, don’t have any problems neither with Cysmart, nor nRf Connect or other BLE Android clients on the same Android devices that fails with CYW20719 ☹
….
17:29:09.988 1 hello_sensor_management_cback: 17
17:29:09.992 1 Advertisement State Change: 0
17:29:09.992 1 ADV stop
17:29:09.994 RCVD [1] Event from HCI. Name: HCI_Encryption_Change (Hex Code: 0x08 Param Len: 4)
17:29:09.994 Status : Connection Terminated Due to MIC Failure (0x3d)
17:29:09.994 Connection Handle : 64 (0x0040)
17:29:09.994 Encryption Enable : 0 (0x00)
17:29:09.996 1 hello_sensor_management_cback: c
17:29:10.003 1 Encryption Status Event: bd ( 5a 10 0c ef 51 aa ) res 8109
17:29:10.007 1 encryp change bd ( 5a 10 0c ef 51 aa ) res: 8109
17:29:10.010 RCVD [1] Event from HCI. Name: HCI_Disconnection_Complete (Hex Code: 0x05 Param Len: 4)
17:29:10.010 Status : Success (0x00)
17:29:10.010 Connection Handle : 64 (0x0040)
17:29:10.010 Reason : 61 (0x3d)
17:29:10.010 Connection Terminated Due to MIC Failure
17:29:10.014 1 connection_down 5a 10 0c ef 51 aa conn_id:1 reason:61
…
Show LessHi
WICED platform: 6.0.0.43
Chip Platform: CYW20719-B1
Issue Description:
When invoke the wiced_bt_dev_get_bonded_devices() API, the always return 0x1FA7 error code, and the input value of *p_num_devices didn't been set to 0 even failed.
So doesn't this API really supported? If it's supported, how to fix this issue.
Thanks,
Dudley
Show LessHello Infineon support team.
Our customer requests us AAC codec support for both A2DP/SINK and A2DP/SRC.
According to following thread, CYW20721 support AAC for A2DP/SINK. But no mention for A2DP/SRC.
https://community.infineon.com/t5/Studio-Bluetooth/Does-WICED-6-2-support-A2DP-AAC-codec-on-CYW20706-and-CYW20719/td-p/138910
https://community.infineon.com/t5/Bluetooth-SDK/The-kinds-of-bluetooth-audio-codec-of-CYW20721/td-p/245281
Please tell me which BT chip support AAC codec for both A2DP/SINK and A2DP/SRC.
Thanks,
Tayo
Hello
I would like to download the program for CYBT-353027-EVAL and I have installed the following
WICED Studio 6.6
WICED Smart SDK 2.2.3
Platform files for CYBT-353027
But it seems that the Platform files only support the old version of the project folder - 20706-A2_Bluetooth, I try to download the sample program Hello_Sensor under WICED Smart SDK and it will report an error (as shown in the picture).
Thanks
你好
我想对CYBT-353027-EVAL开发套件进行烧录,我安装了以下
- WICED Studio 6.6
- WICED Smart SDK 2.2.3
- Platform files for CYBT-353027
但貌似Platform files只支持老版本的项目文件夹 - 20706-A2_Bluetooth,我 在WICED Smart SDK 下尝试烧录示例程序Hello_Sensor就会报错(如图)。
请问有什么解决办法?
祝好
Yaodong
Show Less
When sending data from PC via USB serial port to CYSPP CYBT-483039-EVAL, it appears to be over-running the CYBT, without CYBT ever asserting PUART_RTS low.
- CYSPP CYBT-483039-EVAL is connected to iOS app using EZ-Serial BLE CYSPP
- Data is being sent using the Acknowledged Characteristic (101)
- PUART SW5 are all turned On
- After press reset switch on eval board, I see UART RTS pin Arduino J7-P6 go high on oscilloscope
- I set CYBT and flow control by sending following command to PUART from the PC.
-
"STU,B=1C200,D=8,F=1,P=0,S=1\r\n"
When PC starts sending file data to PUART over USB serial, I see the data being received on the iOS side, however, some data is missing.
I expected PUART RTS to be asserted low to prevent 3 MB of file data from over-running the CYBT, when sending data to PUART_RX ?
I do not see UART_RTS on pin Arduino J7-P6 being set low during the 3MB file transmission.
What are potential solutions to prevent data over-running when sending data to PUART RX for transmission to iOS device?
Thank you,
-Ed
Show Less
Hi,
As title. How to build ClientControl source code in WICED Studio SDK??
If anyway to modify and build custom ClientControl tool based on code in WICED Studio?
Thanks.
Austin
Show LessHello,
I am using the CYBT-213043-mesh-2 kit and programmed the HCI_loop_back test. I open the clientcontrol and looks like BR/EDR is disabled. I tried using FIND_ME app but no luck.
I am looking to connect the CYBT-213043 to external devices making it discoverable for other devices to connect. Also, please let me know how to enable the diagnostic mode on this board.
Thanks!
Show Less- CYBT-483056-EVAL arrived from factory with latest EZ-Serial 1.0.10 installed.
- My CYBT device has reached the limit of four (4) bonded devices.
- I cannot bond with new devices before removing a device from the bond list.
- This issue is easily reproduced after Bluetooth Classic RFCOMM pairing to a CYBT-483056-02 device from a Windows or Android device.
- Multiple people, on multiple CYBT-483056-02 devices, using various pairing devices have reproduced this issue of not being able to delete bonds once a RFCOMM pairing has been made to the CYBT-483056-02 device.
# EZSerial 1.0.10 (build 21)
@E,0040,BOOT,E=01000A15,S=02072276,P=0100,H=E8,C=00,A=E6BF3B0F0C3C,T=01
@E,000E,ASC,S=03,R=01
Using smp_delete_bond (/BD, ID=7/2) does not work. After /BD command sent, a /QB command displays count is still 4.
Am I using the '/BD' command properly?
# Query bond list displays 4 devices bonded, 3 duplicates, 1 unique
/QB
@R,000E,/QB,0000,C=04
@E,0020,B,C=00,A=C403A8CF7884,T=FF,D=01 // Win11
@E,0020,B,C=00,A=C403A8CF7884,T=FF,D=01 // Win11
@E,0020,B,C=00,A=C403A8CF7884,T=FF,D=01 // Win11
@E,0020,B,C=00,A=58CB523B58FA,T=FF,D=01 // Android Pixel 3A
# Remove address for Windows 11 bond
/BD,A=C403A8CF7884,T=FF
@R,000E,/BD,0403,C=04
# Remove address for Android Pixel 3A 11 bond
/BD,A=58CB523B58FA,T=FF
@R,000E,/BD,0403,C=04
# Query bond list is unchanged ??
/QB
@R,000E,/QB,0000,C=04
@E,0020,B,C=00,A=C403A8CF7884,T=FF,D=01
@E,0020,B,C=00,A=C403A8CF7884,T=FF,D=01
@E,0020,B,C=00,A=C403A8CF7884,T=FF,D=01
@E,0020,B,C=00,A=58CB523B58FA,T=FF,D=01
I have tried:
- Removing a bonded device by using smp_delete_bond "/BD" and specifying a MAC address does not change bond list
- Factory reset "/RFAC" does NOT erase bonding
- Device reset does not erase bonding. This is correct expected behavior.
- Attempt to remove a bonded device by telling Windows or Android to forget the device does not change CYBT bond list
Re-flashing is not an option for clearing a bond list for our end customers.
Can you please recommend a working API method to remove bonded devices on CYBT-483056-02 modules?
Thank you,
-Ed
Show LessWhere can we get Old Versions of the WICED IDE SDK?
My goal is to delete bonding by reflashing. The smp_delete_bond command is not working for anyone on my team.
What I Tried Using WICED_MOD_Programmer
I am using Windows 11.
- I downloaded ezserial_CYBT-483056-02.hex
- WICED_MOD_Programmer does not have an option to select CYBT-483056-02 so I selected CYBT-483039-02 instead
- Selected UART Adapter board
- Selected DUT #1, Configure, and selected WICED HCUI UART (COM12), 115200, CTS, then Connect button
- Set Firmware File Path to ezserial_CYBT-483056-02.hex
- Checked "program BD Address" and checked "Gen a random address"
- When I press Program button it quickly failed
29-09-2022 11:11:06.204: ProgramManager: Selecting_DUT 1/8
29-09-2022 11:11:07.575: Prog[0]COM12 : Reset (COM12) Timeout!
29-09-2022 11:11:07.580: Prog[0]COM12 : Soft-Reset Fail COM12
29-09-2022 11:11:07.581: Prog[0]COM12 : Failed to reset on baudrate = 115200
29-09-2022 11:11:07.582: Prog[0]COM12 : Failed to reset DUT
29-09-2022 11:11:07.582: ProgramManager: ---->SetResult [1,1] = TestFailed
29-09-2022 11:11:07.613: ProgramManager: Selecting_DUT 2/8
29-09-2022 11:11:07.735: ProgramManager: Selecting_DUT 8/8
29-09-2022 11:11:07.818: WICEDModuleProg: Test program stopped.
29-09-2022 11:22:47.505: PortSetDlg[42]COM12DUT: 4 serial ports found.
29-09-2022 11:23:37.285: PortSetDlg[42]COM12DUT: Connected to "COM12 - WICED HCI UART (COM12)" (115200, RequestToSend)
WICED Studio programming of a CYBT-483056-EVAL does not seem to be a supported platform?
Thanks in advance,
-Ed
References:
- https://community.infineon.com/t5/Knowledge-Base-Articles/Programming-an-EZ-BT-WICED-Module-KBA223428/ta-p/254274
- https://community.infineon.com/t5/Knowledge-Base-Articles/WICED-Module-Programmer-User-Guide-KBA225060/ta-p/253337
Show Less