Wi-Fi Combo Forum Discussions
Hello,
Is there a way to accomplish the following using the existing library features?:
- Once a BLE peripheral is bonded to a central, it will not accept connections from any other device except the one we're bonded with. The bonded central can connect and disconnect as needed, but all other central devices would not be allowed to connect at any time.
- The bonded central device may support any of the valid BLE addressing schemes (private static/resolvable static etc. we can't control this part)
- I am implementing this on the MurataType1LD module: (CYW43438) + STM32 (ARM Cortex-M4F)
Show Less
Hello,
It seems that support of chips such as CYW4343W or CYW43438 on non-PSOC devices (e.g. STM32) will be slowly moved from WICED to WHD (as told in other posts).
I just checked the "STM32 Connectivity Expansion Pack 1.0.1" provided by Infineon. It's a special port of the WHD package v1.93 and seems to fit very well for what we need.
Just a question about Bluetooth part of the Combo: these packages (WHD or STM32 Connectivity) don't contain any bluetooth stack such as what was present in WICED. How to use the BT features of these chips? Do you have a separated package with the firmware related stuffs and the stack part (over the HCI link) ?
Show Less
I added spi master code in Wiced scan example code with CYW943012EVB(STM32L4A6+CYW43438) ,
and connect it to CY8CPROTO-062-4343W to control led via spi interface.
It seems spi master not work in CYW943012EVB, does Cypress have any spi master example code?
Code:
SPI_HandleTypeDef SPI1_Handler;
void SPI1_Init(void)
{
SPI1_Handler.Instance=SPI1;
SPI1_Handler.Init.Mode=SPI_MODE_MASTER;
SPI1_Handler.Init.Direction=SPI_DIRECTION_2LINES;
SPI1_Handler.Init.DataSize=SPI_DATASIZE_8BIT;
SPI1_Handler.Init.CLKPolarity=SPI_POLARITY_HIGH;
SPI1_Handler.Init.CLKPhase=SPI_PHASE_2EDGE;
SPI1_Handler.Init.NSS=SPI_NSS_SOFT;
SPI1_Handler.Init.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_16;
SPI1_Handler.Init.FirstBit=SPI_FIRSTBIT_MSB;
SPI1_Handler.Init.TIMode=SPI_TIMODE_DISABLE;
SPI1_Handler.Init.CRCCalculation=SPI_CRCCALCULATION_DISABLE;
HAL_SPI_Init(&SPI1_Handler);
}
void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi)
{
GPIO_InitTypeDef GPIO_Initure;
if(hspi->Instance==SPI1)
{
__HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_SPI1_CLK_ENABLE();
GPIO_Initure.Pin=GPIO_PIN_1|GPIO_PIN_6|GPIO_PIN_7;
GPIO_Initure.Mode=GPIO_MODE_AF_PP;
GPIO_Initure.Pull=GPIO_PULLUP;
GPIO_Initure.Speed=GPIO_SPEED_HIGH;
GPIO_Initure.Alternate=GPIO_AF5_SPI1;
HAL_GPIO_Init(GPIOA,&GPIO_Initure);
}
}
void application_start( )
{
uint8_t txData=0x00;
wiced_init( );
SPI1_Init();
HAL_SPI_Init(&SPI1_Handler);
while(1)
{
wiced_time_t scan_start_time;
wiced_time_t scan_end_time;
app_scan_data_t scan_data;
/* Initialize the semaphore that will tell us when the scan is complete */
wiced_rtos_init_semaphore(&scan_data.semaphore);
scan_data.result_count = 0;
WPRINT_APP_INFO( ( "Waiting for scan results...\n" ) );
WPRINT_APP_INFO( (" # Type BSSID RSSI Rate Chan Security SSID CCode Flag\n" ) );
WPRINT_APP_INFO( ("------------------------------------------------------------------------------------------------------------------\n" ) );
/* Start the scan */
wiced_time_get_time(&scan_start_time);
wiced_wifi_scan_networks(scan_result_handler, &scan_data );
/* Wait until scan is complete */
wiced_rtos_get_semaphore(&scan_data.semaphore, WICED_WAIT_FOREVER);
wiced_time_get_time(&scan_end_time);
WPRINT_APP_INFO( ("\nScan complete in %lu milliseconds\n", (unsigned long )(scan_end_time - scan_start_time) ) );
/* Clean up */
wiced_rtos_deinit_semaphore(&scan_data.semaphore);
/* Issuing next scan after some delay (optional) */
txData = 0;
WPRINT_APP_INFO( ( "txData=%d\n", txData ) );
HAL_SPI_Transmit(&SPI1_Handler, &txData, 1, 1000);
wiced_rtos_delay_milliseconds(DELAY_BETWEEN_SCANS);
txData = 1;
WPRINT_APP_INFO( ( "txData=%d\n", txData ) );
HAL_SPI_Transmit(&SPI1_Handler, &txData, 1, 1000);
}
}
Hello,
When using the Wiced HTTP Client, occasionally when calling http_client_connect(), it returns an error. Typically the error code is #4.
Laird Sterling EWB ( Cypress CYW4343W + STM32F412)
Wiced Studio 6.6
-Rocko
Show LessHello, I have a Portenta H7 board with MCU STM32H747 connected to Type1DX via SDIO and UART.
I want to communicate to Type1DX with STM32H747 but I can't find any source codes (like a driver,...) or documents (like reference manual,...) that can instruct me.
Can anyone help me, pls?
Thank you
Show LessHello.
I notice that if you connect 1KOhm resistor between PWM_5 (J6-2) and GND (SW3-4) in CYW954907AEVAL1F
or in CYW943907AEVAL1F and
try to program the demo board with WICED STUDIO...
after programming LED_1 start to blink and the processor doesn't start ...
Can someone help me ?
Show LessHi all
I try to operate my Sterling -EWB development kit with SPI ,
I want to active WICED_SPI_2,
I initialize the spi with the API : res = wiced_spi_init(&IMU_SPI);
I can't see the signal of SPI clock,
The pin of SPI clock of WICED_SPI_2 is PB13,
The pin PB13 exist in J7.2 if it isnt correct olease let me know with wich document you use.
I set a scope on this pin but I dont see anything pleas ehelp me.
Note:
I try to active other SPI (SPI_4) his lines exist at J6 port, butthis also not worked.
Please hellp me
Harel T
Show LessHi guys,
I'm using WICED_SPI_2 in cyw54907 but got unexpected issues that:
my external SPI slave transfer 8 byte
{0x01, 0x02, 0x03...,0x08}
but cyw54907 received 8 byte:
{0x81, 0x02, 0x03, 0x04, 0xFF, 0xFF, 0xFF, 0xFF}
And in the external SPI slave side i got event that only transfer 4 byte data
This is my setup in cyw54907:
init
spi_device.bits = 8;
spi_device.port = WICED_SPI_2;
spi_device.speed = 1000000; //1Mhz
spi_device.mode = (SPI_CLOCK_RISING_EDGE | SPI_CLOCK_IDLE_LOW| SPI_MSB_FIRST);
auto result = wiced_spi_init(&spi_device);
received data
wiced_spi_message_segment_t message;
memset(&message, 0, sizeof message);
message.rx_buffer = data;
message.tx_buffer = 0;
message.length = len;
if (wiced_spi_transfer(&spi_device, &message, 1) != WICED_SUCCESS) {
return 1;
}
Show Less
When EPD occurs after receiving the user's voice input, I try to send the voice data to the Google REST API.
By the way, Google does not provide SDKs made in C language.
I wonder if there is a way to do End Point Detection of voice data received from users in CYW43907.
Show Less