Wi-Fi Combo Forum Discussions
Hello All,
We are working on wiced sdk 3.5.2. we are facing the problem of the udp packet send fail every time.
sometime it work fine but i didn't understand what is the problem.
need help ....
Show LessI rebuild FT2232 circuit pcb for usb to JTAG , when downloading onto our HW stm32f207VCT6 pcb ,no error occure ,
but the pcb is not correct running
Show LessI have wrote an example which is change the ble advertising data over interval base on SDK 3.5.2.But when I run the program in SDK 3.7.0 ,It did't work.It advertise nothing.
Show LessUsing SDK 3.5.2 and 3.7.0 I'm able to trigger a packet pool starvation by send 2 or more consecutive packets to the same destination ip and port. Example below:
void application_start(void) {
wiced_init();
if (wiced_network_up(WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL) != WICED_SUCCESS) {
printf("Unable to bring up network\n");
while(1);
}
wiced_udp_socket_t s;
if (wiced_udp_create_socket(&s, 12345, WICED_STA_INTERFACE) != WICED_SUCCESS) {
printf("Unable to create UDP socket\n");
while(1);
}
wiced_ip_address_t address;
if (wiced_ip_get_ipv4_address(WICED_STA_INTERFACE, &address) != WICED_SUCCESS) {
printf("Unable to get local IPv4 address\n");
while(1);
}
const char *payload = "hello world!";
size_t size = strlen(payload);
// random range, ignoring netmask.
for (int i = 0; i < 100; i++) {
char *data;
uint16_t available_data_length;
printf("sending packet %d\n", i);
wiced_packet_t *packet;
if (wiced_packet_create_udp(&s, size, &packet, (uint8_t **)&data, &available_data_length) != WICED_SUCCESS) {
printf("UDP tx packet creation failed\n");
continue;
}
memcpy(data, payload, size);
wiced_packet_set_data_end(packet, (uint8_t *)data + size);
// send 2 packets back to back to same dst ip, port.
wiced_ip_address_t dst = {
.version = WICED_IPV4,
.ip.v4 = (address.ip.v4 & 0xFFFFFF00) | (((i >> 1) + 1) & 0xFF)
};
if (wiced_udp_send(&s, &dst, 34567, packet) != WICED_SUCCESS) {
printf("UDP packet send failed\n");
wiced_packet_delete(packet);
}
}
Logs:
Show LessStarting WICED v3.5.2
Platform EMW3165 initialised
Started ThreadX v5.6
Initialising NetX_Duo v5.7_sp2
Creating Packet pools
WWD SDIO interface initialised
WLAN MAC Address : D0:BA:E4:00:E8:4A
WLAN Firmware : wl0: Oct 22 2015 15:05:09 version 5.90.230.15 FWID 01-ffee4f57
Joining : TestAP
Successfully joined : TestAP
Obtaining IPv4 address via DHCP
DHCP CLIENT hostname WICED IP
IPv4 network ready IP: 10.0.0.208
sending packet 0
sending packet 1
sending packet 2
sending packet 3
sending packet 4
sending packet 5
sending packet 6
sending packet 7
sending packet 8
sending packet 9
UDP tx packet creation failed
sending packet 10
UDP tx packet creation failed
sending packet 11
UDP tx packet creation failed
sending packet 12
Hello,
I can't figure out how to use the WICED API for the following task: I want to create 2 sockets - one for IPv4 and one for IPv6 on the same port. After that, I want to receive IPv4 data on IPv4 socket and of course IPv6 data on the IPv6 socket. I want to be able to send IPv4 and IPv6 packets as well. When I create IPv4 socket using wiced_udp_create_socket on a given port, I can't create another socket because I'm getting "port unavailable" error. I even cannot specify to which IP (4 or 6) I want to bind. I'm using ThreadX+NetXDuo.
How can I send data on the same port on both IPv4 and IPv6?
BR.
/ Michal
Show LessI am working on BCM943907WAE2_1 EVM and using WICED SDK 3.7.0. It seems all BT app/test examples in this SDK don't support this EVM.
Does anyone know how to run BT application on this EVM?
I am most interested in bluetooth_audio and bt_mfg_test.
Thanks,
Show LessI'm a bit confused about the WICED wifi/ble modules and cypress MCU? Do these modules have a MCU and if so why don't they have cypress Cortex chip?
My question is?
Do i just need BCM4343W to create a self running wireless device?
If i need a MCU to connect to the module, can i i use a cypress chip or use a STM chip? Hence, is this supported through the Cypress IDE?
Show LessIs it possible to operate as a BLE Central and Peripheral simultaneously?
Whenever my design is in an active ADV state, or if the design has an active connection as a Peripheral (GATT Server), I am not able to connect to anything as a Central. I can initiate scanning and attempt a connection by calling wiced_bt_gatt_le_connect() but the connection never completes - I never get a GATT callback, ie, this callback never happens:
gatt_status = wiced_bt_gatt_register( sensortag_cloud_gatts_callback );
This used to work on previous SDK releases.
Show Less