Studio Bluetooth Forum Discussions
Hi
Could you list the encryption key name and key length for CYW20819?
AES 128bit is described on the data sheet.
Is BT E0 128bit also available?
Please tell me everything else.
Thanks,
Yang
Show LessHello.
Module: CYBT-413034-02
Wiced Studio: 6.4 with MFi
iPad: iPad mini 4, iOS 13.6.1
Sample source: \20719-B1_Bluetooth\apps\demo\apple_mfi\hci_iap2_spp
Changes
LocalName, ExternalAccessoryProtocolName in hci_iap2.c
My experience
Most of cases, Pairing and connection was made well at first time.
But "Reconnection" is issue, most of reconnection try was failed. Or connected for 10~15 seconds and then disconnected.
I also prepare iOS log but I cannot tell appropriate log in console.(Please let me know if you need)
How to recover
When the error happen, I remove the pairing from iPad list, then made connect it was working well.
Snoop log was made with BTSpy.
Reproduce Steps
1. Search and make a connection in iPad settings(bluetooth).
Connection was made in Settings and iPad app connected
(Log 1.pairing_connect_in_app)
2. disconnect from App
(Log 2.disconnect_in_app)
3. disconnect bt connection in iPad settings(bluetooth)
(Log 3.disconnect_in_settgins)
4. Try to connect again in iPad settings(bluetooth)
(Log 4.reconnect_try)
We also have another Bluetooth module(CSR, One of our company's product) and it connect & reconnect well with same iPad and app.
Please review log and provide a solution.
Show Lesshi sir/madam,
when i connected cybt-343026-01 evalution kit usb to windows 7 ports are not recognised. see the attachment.
thanks,
harikrishna g
Show LessHi,
We have a project specifications where audio routing capabilities are required.
We want to know if is possible to put the profile A2DP of CYW20721 in SINK and SOURCE at same time and route the SCO from one role to the other one.
We want to know if is possible the same behaviour in the HFP profile (put the chipset in AG and HF at same time and route the SCOs).
We want to know if chipset can maintain the commented architecture plus SPP profile at same time.
That's all
Regards
Show LessHi,
I am using this module for LED lighting application and configured pins for PWM(P28), relay(P26) and on board led indication(P17). Enclosed my schematic for your understanding.
1. How to configure pin P17 as GPIO to light up indication led LED1 because the following code does not work in WICED6.4
wiced_hal_gpio_configure_pin(WICED_P17, GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_HIGH);
wiced_hal_gpio_set_pin_output(WICED_P17, GPIO_PIN_OUTPUT_HIGH);
2. How to configure pin P28 as PWM because the following code does not work in WICED 6.4
wiced_hal_aclk_enable(PWM_INP_CLK_IN_HZ, ACLK1, ACLK_FREQ_24_MHZ);
wiced_hal_gpio_select_function(WICED_P28, PWM1);
// wiced_hal_pwm_configure_pin(WICED_P28, PWM1);
wiced_hal_pwm_get_params(PWM_INP_CLK_IN_HZ, 0, PWM_FREQ_IN_HZ, &pwm_config);
wiced_hal_pwm_start(PWM1, PMU_CLK, pwm_config.toggle_count, pwm_config.init_count, 1);
//set pwm duty cycle
wiced_hal_pwm_get_params(PWM_INP_CLK_IN_HZ, brightness_level, PWM_FREQ_IN_HZ, &pwm_config);
wiced_hal_pwm_change_values(PWM1, pwm_config.toggle_count, pwm_config.init_count);
3. I am getting the following PUART message in the terminal with baudrate 115200, could we get meaningful starting message instead of some junk message?
Ý_öûöý[KöÛÚûÉÚ?Ýòù½ÛÚû{¶ýÛÉÛéûÉÛÉkééIserver trans start time:0 target:3490 present:0 state:2648a8
server trans complete:3490
mesh light srv set level element:0 actual/target:15123/3490 linear/target:15123/3490 remaining_time:0
***** Free mem after app_init:142128
Best regards,
NK
Show LessHi,
关于scan的命令发送后,会有hci_control_le_scan_result_cback回调函数来罗列出被搜到的蓝牙设备。
我的问题是
1. 被搜到的这些设备是根据什么值被依次罗列出来的呢?是按照rssi有信号的强到弱被list出来?还是其他的方式?
2. 如果一轮的scan_duration结束后(如果设备A被搜到了),那么第二轮后,这个A设备会优先被再次搜到吗?有这种优先级吗
BR,
Treacy
Show LessHi,
Could anyone please suggest how to upgrade the CYBT-343026 module with an OTA file. Also, I just want to know any OTA code to be added to the main application code (say ON/OFF server) by WICED 6.4 because OTA failed for CYBT-343026 module in both Android and IOS mobile. Attached snapshot for your reference.
FYI, I am using the latest version of WICED 6.4 and with the same version OTA upgrade successful for the CYBT-483039 module.
Regards,
NK
REa343026
Show LessHi,
Is there a sample code library for the text mode API of EZ-serial. There is one for the binary, but couldn't find one for the text mode.
Thanks,
Se
Show LessHi,
I've another thread with the same question but that thread is locked so I cannot reply at that thread. So I re-created it here.
I'm using CYW43012, which is controlled by another MCU through UART flow-control with standard HCI protocol (not Wiced).
Currently, I'm able to make it advertise normally. However, when I'm using a phone to connect to it, it always fails.
When I look into the HCI data, here is the result when phone is trying to connect to Cypress:
---------------------------------
BLE_GAP_EVT_ADV_START --------------------------> Start advertising normally
hciEvtProcessMsg: evt=3E, data=0A00400001010FBA4B90174200000000000000000000000018000000480001
DM_CONN_OPEN_IND, r=0, cid=1 -------------------> Phone is trying to connect
hciEvtProcessMsg: evt=3E, data=14400000 --------> Channel selection Algorithm event
hciEvtProcessMsg: evt=FF, data=5500004000 ------> 0xFF as event code indicates that this is a Cypress vendor specific event. I don't know what the meaning of this event.
hciEvtProcessMsg: evt=05, data=00400008 --------> Disconnect event with reason 0x08 (Supervision timeout)
DM_CONN_CLOSE_IND, r=0, cid=1 ------------------> Connection close
hciEvtProcessMsg: evt=0E, data=01082000
hciEvtProcessCmdCmpl: 2008
hciEvtProcessMsg: evt=0E, data=01092000
hciEvtProcessCmdCmpl: 2009
hciEvtProcessMsg: evt=0E, data=01062000
hciEvtProcessCmdCmpl: 2006
hciEvtProcessMsg: evt=0E, data=010A2000
hciEvtProcessCmdCmpl: 200A
BLE_GAP_EVT_ADV_START --------------------------> Start advertising again
---------------------------------
As you can see, when the phone is trying to connect to Cypress, the Cypress sent back a vendor-specific HCI event along with the event data (marked as RED above).
I've tried finding on google if there is any document about this event code and event data but no luck.
I doubt that this is the reason why the disconnection happens, as the MCU does not handle this event correctly, thus, there is no communication between host and the Cypress board, which leads to disconnect with supervision timeout.
Could you please help explain what is the meaning of this event and what steps do I need to make it connect successfully?
Thank you very much.
Show Less