Hi,
We're currently working with the `CYW920721B2EVK-02` devkit off of the `mtb-example-btsdk-audio-handsfree` example in the SDK. I've been having trouble getting my phone to reconnect to the device both after reset, and after simply turning bluetooth off, and then on again on my phone.
I'm not very familiar with bluetooth, but I tried simply storing my phone's 6 byte `bd_addr` and calling `wiced_bt_connect(my_phone_addr);` after disconnecting my phone. Which did not work.
Does anyone have any suggestions?
Thanks
Show LessCurrently our product solution is using SDK 2.9 and are waiting for an update to 3.0 to take care of some bug fixes.
We are about to start the qualification process and intend to refer to the prequalified components:
controller: https://launchstudio.bluetooth.com/ListingDetails/108621
bt stack: https://launchstudio.bluetooth.com/ListingDetails/120227
Will the stack get a new version with the new SDK 3.0 so that we need to qualify the entire stack?
or can we still refer to the prequalified 4.1 mentioned above?
regards
/Martin
Show LessPlease show me how to read-out the firmware data written in CYW20819 flash memory with HCI_UART.
It is required to obtain the dump of data in non-volatile memory to set up a test facilities for mass production.
We would like to check that firmware is written to DUT (Device under test) correctly from dump data.
Regards,
Show Less
https://community.cypress.com/t5/ModusToolbox-Bluetooth-SDK/CYW20819-LPM-and-UART/m-p/93362
On my previous thread, I got the following message.
"Please note that PUART hardware flow control has some in the current SDK. Our dev team has already fixed the issue, and the fix will be available on the next SDK."
Could I have the information whether the issue is fixed on SDK v2.9?
It seems that Hardware flow is disabled by LPM (ePDS) even if I use SDK v2.9.
Show Less
Hello,
I would like to enable ERTM on the L2CAP services over BR/EDR link.
I have tried to enable FCR through the wiced_bt_l2cap_appl_information_t structure (fcr_present set to true and fcr.mode set to 0x3) but it does not seem to work. I also tried to call wiced_bt_l2cap_ertm_enable function, but its documentation is not clear so I am not really sure but it actually does.
Does anyone know how to enable ERTM properly on my link? Do you know what wiced_bt_l2cap_ertm_enable does?
Thanks for your help.
Show LessI found that "post_sleep_cback_handler" is not called by BT stack at waking up from LPM at the following condition.
[Condition]
(1) Have enter CYW20819 into slave state (Inquiry / Page scan enable: ON)
(2) Permit LPM (Return WICED_SLEEP_ALLOWED_WITHOUT_SHUTDOWN: ePDS)
(3) A peer device tries to pair --> (Fail: PIN code mismatch, Passkey error)
(4) A peer device re-tries to pair --> (Success)
(5) Forbids LPM (Return WICED_SLEEP_NOT_ALLOWED)
With paring operation and WICED_SLEEP_NOT_ALLOWED, CYW20819 must wake up from LPM. But "post_sleep_cback_handler" is NOT called with "restore_configuration: True".
Briefly when re-pairing is performed on LPM state, wake-up callback with "restore_configuration: True" is NOT called.
I re-initialize UART (RTS/CTS) in the callback, so I faced the problem with UART by above issue.
Please check this issue.
---------------------------------------------
void lpm_init(void){
wiced_result_t ret;
wiced_sleep_config_t lpm_config;
lpm_config.sleep_mode = WICED_SLEEP_MODE_NO_TRANSPORT;
lpm_config.device_wake_mode = WICED_SLEEP_WAKE_ACTIVE_LOW;
lpm_config.device_wake_source = 0;
lpm_config.device_wake_gpio_num = 0;
lpm_config.host_wake_mode = WICED_SLEEP_WAKE_ACTIVE_HIGH;
lpm_config.sleep_permit_handler = lpm_permit_handler;
lpm_config.post_sleep_cback_handler = lpm_post_sleep_callback;
ret = wiced_sleep_configure(&lpm_config);
if(ret != WICED_SUCCESS) while(1);
return;
}
void lpm_post_sleep_callback(wiced_bool_t restore_configuration){
if(restore_configuration){
uart_reinit();
wiced_auth_chip_reinit();
}
return;
}
Hi,
I want to implement the process of sending an arbitrary key code based on the sample code HID_Dual_Mode_Keyboard.
I tried to implement the following code, but even though WICED_BT_GATT_SUCCESS is returned in wiced_blehidd_send_report(), no characters are entered in the peer device (PC).
* If the sample code has not been changed, "a1" is entered.
Would you tell me how to implement?
#define SEND_DATA_LENGTH 8
static uint8_t m_send_data[SEND_DATA_LENGTH] = {0x00, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00}; /* 'h' */
/*
* Handle interrupt generated due to change in the GPIO state
*/
static void hal_gpio_app_interrrupt_handler(void *data, uint8_t pin)
{
static bool led_state = false;
if (wiced_blehidd_is_link_encrypted() != WICED_FALSE)
{
if (wiced_blehidd_send_report(0x0000, 0x00, WICED_HID_REPORT_TYPE_INPUT, m_send_data, SEND_DATA_LENGTH) == WICED_BT_GATT_SUCCESS)
{
/* LED ON */
}
}
}
static void gpios_init(void)
{
wiced_hal_gpio_register_pin_for_interrupt(0, hal_gpio_app_interrrupt_handler, NULL); /* D2 button */
wiced_hal_gpio_configure_pin(0, WICED_GPIO_BUTTON_SETTINGS(GPIO_EN_INT_RISING_EDGE), GPIO_PIN_OUTPUT_LOW);
}
wiced_result_t app_start(void)
{
...
#if 0
key_init(NUM_KEYSCAN_ROWS, NUM_KEYSCAN_COLS, APP_pollReportUserActivity, APP_keyDetected);
#else
debug_init();
#endif
...
}
HW: CYW920735Q60EVB-01
PC: Windows 10
IDE: Eclipse IDE for ModusToolbox Version 2.2.0
SW: Based on HID_Dual_Mode_Keyboard.
Regards, Gotoda
Show Less
Hi,
I'm using CYW20721. My application which supports OTA is around 750Kb. Since the total internal flash is 1Mb, I think it's not possible to do a OTA FW Upgrade coz my new app will also be around the same size.
Is there a provision to connect an external flash to the CYW20721? I want to connect an external flash of size 2Mb (Will stop using Internal flash 1Mb then).
If connecting an External flash is possible, does this need any changes in the SDK?
Thanks,
Kartheek Adivi
Show LessIn SPP, if the MTU of the connection destination is small, that value will be used.
Therefore, it seems that the length sent by wiced_bt_spp_send_session_data cannot exceed the negotiated MTU value.
If the MTU value is exceeded, no transmission will be performed.
wiced_bt_spp_rfcomm_get_peer_mtu will result in a link error.
How do I get the MTU value used when connecting?
Show Less
Employee
Contributor
Contributor II
Contributor II
Employee
Employee
Honored Contributor II
New Contributor
New Contributor II
New Contributor II