Studio Bluetooth Forum Discussions
Hello,
We would like to do a custom app logic to wakeup the host system from suspend.
Is it possible to use the CYW20719 BT_HOST_WAKE (QFN-40 pin number 24) as a gpio output? If yes, how can it be muxed to a gpio, and to which gpio pin number?
Br, Pekka Ervasti
Show LessIt looks CYW20706 has GPIO input hysteresis feature.
----------
wiced_hal_gpio_configure_pin()
----------
// Input Hysteresis
// GPIO configuration bit 13, hysteresis control
GPIO_HYSTERESIS_MASK = 0x2000,
GPIO_HYSTERESIS_ON = 0x2000,
GPIO_HYSTERESIS_OFF = 0x0000,
----------
Is it able to set for each GPIO pin separately or for group of several pins ?
Show LessHi all,
我在使用wmbt去测试wiced hci命令的时候,发送一些命令,似乎没有正确的返回值。
我使用的是20706的开发板,下载的是watch的demo,MBT_BAUD_RATE=115200,COM口为puart(hci uart无效)。
1.如reset命令:
wmbt wiced_reset COM6
MBT_BAUD_RATE: 115200
TRANSPORT_MODE: 1 (WICED_HCI)
Opened COM6 at speed: 115200
Sending WICED HCI Command:
0000 < 19 01 00 00 00 >
Close Serial Bus
没有收到Received HCI Event
2.LE Receiver Test
wmbt le_receiver_test COM4 2406
TRANSPORT_MODE: 1 (WICED_HCI)
Opened COM6 at speed: 115200
Sending WICED HCI Command:
0000 < 19 10 08 05 00 01 1D 20 01 02 >
Received WICED HCI Event:
0000 < BA 97 0A 41 50 50 20 53 54 41 52 54 0A 68 63 69 >
0010 < 5F 63 6F 6E 74 72 6F 6C 5F 6D 61 6E 61 67 65 6D >
0020 < 65 6E 74 5F 63 61 6C 6C 62 61 63 6B 20 30 78 31 >
0030 < 35 0A 68 63 69 5F 63 6F 6E 74 72 6F 6C 5F 6D 61 >
0040 < 6E 61 67 65 6D 65 >
Received WICED HCI Event:
0000 < 6E 74 5F 63 61 6C 6C 62 61 63 6B 20 30 78 31 34 >
0010 < 0A 68 63 69 5F 63 6F 6E 74 72 6F 6C 5F 6D 61 6E >
0020 < 61 67 65 6D 65 6E 74 5F 63 61 6C 6C 62 61 63 6B >
0030 < 20 30 78 31 34 0A 68 63 69 5F 63 6F 6E 74 72 6F >
0040 < 6C 5F 6D 61 6E 61 67 65 6D 65 6E 74 5F 63 61 6C >
0050 < 6C 62 61 63 6B 20 30 78 30 30 0A 68 63 69 5F 63 >
0060 < 6F 6E 74 72 6F 6C 5F 77 >
返回的Received WICED HCI Event也不对,应该是19开头的。
所以,这是什么原因造成的,是否跟我的demo有关,如果是的话,有相关的demo可以进行测试吗
BR,
Leo
Show LessHi,
Is there any CAD library with schematic and footprint for CYBT 413034 (or similar module) that can be opened or imported in Eagle CAD?
Thanks
Show LessI am using CYBT-343026-EVAL with WICED 6.2 now.
When I inquiry,there are a lot of device address displayed,but there is no device name for them.
I can not specific which is the one I am I want to pair to.AjayB_76broadcomwiced-admincommunityadministratorMichaelF_56ahunter@
Show LessHow can get copy of older snips / examples?
I found this paper: WICED™ Display U8G Development https://www.cypress.com/file/386031/download which is for most common 0.96" I2C OLED display, but this snip doesn't exist already in the examples coming with the latest WICED studio
Is there any repository where can get those older examples?
Thanks
Show LessI was trying to reproduce example given in 002-23400_AN223400_Getting_Started_with_EZ-BT_WICED_Modules.pdf with WICED 6.2 and
CYBT-413034-EVAL, but 3 of the steps on page 21/22 are not applicable as the mentioned code is missing with what is actually provided with WICED studio 6.2:
There is no wiced_bt_app_init(); in hello_sensor_application_init() so cant make:
Comment out wiced_bt_app_init(); as required on page 21/22
There is no :
// wiced_hal_gpio_configure_pin( WICED_GPIO_BUTTON, WICED_GPIO_BUTTON_SETTINGS(
GPIO_EN_INT_RISING_EDGE ), WICED_GPIO_BUTTON_DEFAULT_STATE );
// wiced_hal_gpio_register_pin_for_interrupt( WICED_GPIO_BUTTON, hello_sensor_interrupt_handler,
NULL );
to comment out as required on page 22
instead I commented:
in hello_sensor.c:hello_sensor_application_init
// wiced_platform_register_button_callback( WICED_PLATFORM_BUTTON_1, hello_sensor_interrupt_handler, NULL, WICED_PLATFORM_BUTTON_RISING_EDGE);
But this probably is not enough as the result is not quite perfect - the app stalls if from the Android Client try to connect SPP mode, disconnect, then BLE or vise versa
Show LessHi All,
I'm new to Wiced, i'm stucked in debuging ota2_bootloader code.
Please let me know the procedure how I can creat make string and debug configuration.
Thanks and Regards,
Basava.
Show LessDear:
我的项目中需要用到IIS、IIC、SPI三个外设,但是我在调试过程中遇到了一些问题。
问题1:
在初始化IIC的时候使用wiced_hal_i2c_init,根据API中介绍Configure patch可以选择如下三个参数,但是我在设置过程中,如果使用WICED_I2C_SDA_P35_SCL_P37,就会出现系统复位
enum
{
/* Enable if configuring P35 and P37 for I2C */
WICED_I2C_SDA_P35_SCL_P37 = 0,
/* Enable if configuring I2S_DOUT/PCM_OUT and I2S_DIN/PCM_IN for I2C */
WICED_I2C_SDA_I2S_DOUT_PCM_OUT_SCL_I2S_DIN_PCM_IN = 1,
/* Enable if configuring SFLASH_MOSI/SDA and SFLASH_MISO/SCL for I2C */
WICED_I2C_SDA_SFLASH_MOSI_SCL_SFLASH_MISO = 2,
};
/******************************************************************************
*** Function prototypes.
******************************************************************************/
///////////////////////////////////////////////////////////////////////////////
/// Initializes the I2C driver and its private values. This initialization
/// sets the bus speed to 100KHz by default (I2CM_SPEED_100KHZ). To make
/// the bus run at another speed, call wiced_hal_i2c_setSpeed(<speed>)
/// right after this call.
///
/// (!) Note that it is the user's responsibility to configure the desired
/// GPIOs, since different HW platforms will have different configuration
/// parameters. Please see the Kit Guide for your device for more information.
///
/// \param configure_path : WICED_I2C_SDA_P35_SCL_P37 OR
/// WICED_I2C_SDA_I2S_DOUT_PCM_OUT_SCL_I2S_DIN_PCM_IN OR
/// WICED_I2C_SDA_SFLASH_MOSI_SCL_SFLASH_MISO
///
/// \return wiced_result_t : On success WICED_SUCCESS otherwise WICED_ERROR
///////////////////////////////////////////////////////////////////////////////
wiced_result_t wiced_hal_i2c_init(UINT8 configure_path);
问题二:
当IIS与SPI 的PIN冲突的时候,我参考了论坛中的帖子,修改了#define MASTER1_P36_CLK_P00_MOSI_P25_MISO 0x00240019,但是无效。
Show Less///
/// All the available GPIO combinations for SPI-1 Master mode.
///
typedef enum Spi1MasterGpioConfigType
{
//Generate SPIFFY-1 available combinations
//SPIFFY-1 Master Mode
MASTER1_P03_CLK_P00_MOSI_P01_MISO = 0x00030001,
MASTER1_P03_CLK_P00_MOSI_P05_MISO = 0x00030005,
MASTER1_P03_CLK_P02_MOSI_P01_MISO = 0x00030201,
MASTER1_P03_CLK_P02_MOSI_P05_MISO = 0x00030205,
MASTER1_P03_CLK_P04_MOSI_P01_MISO = 0x00030401,
MASTER1_P03_CLK_P04_MOSI_P05_MISO = 0x00030405,
MASTER1_P03_CLK_P27_MOSI_P01_MISO = 0x00031b01,
MASTER1_P03_CLK_P27_MOSI_P05_MISO = 0x00031b05,
MASTER1_P03_CLK_P38_MOSI_P01_MISO = 0x00032601,
MASTER1_P03_CLK_P38_MOSI_P05_MISO = 0x00032605,
MASTER1_P07_CLK_P00_MOSI_P01_MISO = 0x00070001,
MASTER1_P07_CLK_P00_MOSI_P05_MISO = 0x00070005,
MASTER1_P07_CLK_P02_MOSI_P01_MISO = 0x00070201,
MASTER1_P07_CLK_P02_MOSI_P05_MISO = 0x00070205,
MASTER1_P07_CLK_P04_MOSI_P01_MISO = 0x00070401,
MASTER1_P07_CLK_P04_MOSI_P05_MISO = 0x00070405,
MASTER1_P07_CLK_P27_MOSI_P01_MISO = 0x00071b01,
MASTER1_P07_CLK_P27_MOSI_P05_MISO = 0x00071b05,
MASTER1_P07_CLK_P38_MOSI_P01_MISO = 0x00072601,
MASTER1_P07_CLK_P38_MOSI_P05_MISO = 0x00072605,
MASTER1_P24_CLK_P00_MOSI_P25_MISO = 0x00180019,
MASTER1_P24_CLK_P02_MOSI_P25_MISO = 0x00180219,
MASTER1_P24_CLK_P04_MOSI_P25_MISO = 0x00180419,
MASTER1_P24_CLK_P27_MOSI_P25_MISO = 0x00181b19,
MASTER1_P24_CLK_P38_MOSI_P25_MISO = 0x00182619,
MASTER1_P36_CLK_P00_MOSI_P25_MISO = 0x00240019,
MASTER1_P36_CLK_P02_MOSI_P25_MISO = 0x00240219,
MASTER1_P36_CLK_P04_MOSI_P25_MISO = 0x00240419,
MASTER1_P36_CLK_P27_MOSI_P25_MISO = 0x00241b19,
MASTER1_P36_CLK_P38_MOSI_P25_MISO = 0x00242619,
//Total SPIFFYD_1 Master Available combinations=30
} Spi1MasterGpioConfigType;