Wi-Fi Combo Forum Discussions
static wwd_result_t download_resource( wwd_resource_t resource, uint32_t address )
{
uint32_t transfer_progress;
wiced_buffer_t buffer;
uint32_t buffer_size = INDIRECT_BUFFER_SIZE;
uint32_t size;
wwd_result_t result = WWD_SUCCESS;
result = host_platform_resource_size( resource, &size );
if( result != WWD_SUCCESS )
{
WPRINT_WWD_ERROR(("Fatal error: download_resource doesn't exist\n"));
goto exit;
}
if ( size <= 0 )
{
WPRINT_WWD_ERROR(("Fatal error: download_resource cannot load with invalid size\n"));
result = WWD_BADARG;
goto exit;
}
/* Transfer firmware image into the RAM */
transfer_progress = 0;
do
{
result = host_buffer_get( &buffer, WWD_NETWORK_TX, (unsigned short) ( buffer_size + sizeof(wwd_buffer_header_t) ), WICED_FALSE );
} while ( ( result == WWD_BUFFER_UNAVAILABLE_PERMANENT ) && ( ( buffer_size >>= 1 ) > 1 ) );
while ( transfer_progress < size )
{
uint8_t* packet;
uint16_t transfer_size;
uint32_t segment_size;
if ( result != WWD_SUCCESS )
{
WPRINT_WWD_ERROR(("Fatal error: download_resource cannot allocate buffer\n"));
goto exit;
}
packet = (uint8_t*) host_buffer_get_current_piece_data_pointer( buffer );
host_platform_resource_read_indirect( resource, transfer_progress, packet + sizeof(wwd_buffer_header_t), buffer_size, &segment_size );
#ifdef WLAN_ARM_CR4
if ( ( resource == WWD_RESOURCE_WLAN_FIRMWARE ) && ( reset_instr == 0 ) )
{
reset_instr = *((uint32_t*)(packet + sizeof(wwd_buffer_header_t)));
}
#endif /* WLAN_ARM_CR4 */
for ( ; segment_size != 0; segment_size -= transfer_size, packet += transfer_size, transfer_progress += transfer_size, address += transfer_size )
{
if ( resource_download_abort == WICED_TRUE )
{
WPRINT_WWD_ERROR(("Download_resource is aborted; terminating after %lu iterations\n", transfer_progress));
host_buffer_release( buffer, WWD_NETWORK_TX );
result = WWD_UNFINISHED;
goto exit;
}
transfer_size = (uint16_t) MIN( WWD_BUS_MAX_TRANSFER_SIZE, segment_size );
result = wwd_bus_set_backplane_window( address );
if ( result != WWD_SUCCESS )
{
host_buffer_release( buffer, WWD_NETWORK_TX );
goto exit;
}
result = wwd_bus_transfer_bytes( BUS_WRITE, BACKPLANE_FUNCTION, ( address & BACKPLANE_ADDRESS_MASK ), transfer_size, (wwd_transfer_bytes_packet_t*) ( packet + sizeof(wwd_buffer_queue_ptr_t)) );
if ( result != WWD_SUCCESS )
{
host_buffer_release( buffer, WWD_NETWORK_TX );
goto exit;
}
}
}
host_buffer_release( buffer, WWD_NETWORK_TX );
exit:
return result;
}
In above function,
result = wwd_bus_transfer_bytes( BUS_WRITE, BACKPLANE_FUNCTION, ( address & BACKPLANE_ADDRESS_MASK ), transfer_size, (wwd_transfer_bytes_packet_t*) ( packet + sizeof(wwd_buffer_queue_ptr_t)) );
the result will be WWD_TIMEOUT(0x0002), what will cause this issue, and how to fix it?
My hardware is Inventek ISM43362 module connected to host platform via SDIO with fly wires. My Wiced version is WICED-Studio-6.2.
Show LessHi I'm currently using a Murata Type 1LD module on a device I'm working with, I'm looking for ways to lower the power consumption. I'm wondering if there's a way to select only one Tx mode (802.11n) instead of mixed mode (802.11 b/g/n)? Also, is there a way to change the Tx power / Gain settings in firmware somewhere?
Thanks in Advance,
- AT -
Show Lesshttp://www.cypress.com/documentation/application-notes/an225347-cypress-wi-fi-clm-regulatory-manual
AN225347 introduces you to the Cypress CLM regulatory compliance process and the steps required to submit a regulatory configuration to Cypress. This application note will provide background on various WiFi requirements and technical details as it pertains for regulatory certification. At the end of this application note, you will understand how to test your Cypress WiFi system to confirm output power targets, how to transfer confirmed power targets to the Cypress submission template, and how to integrate the resulting output into your final product. In addition, this application note will provide guidance related to SKU planning related to manufacturing your WiFi enabled product.
Show LessOn the CYW943907AEVAL1F evaluation board, I want to use an external JTAG device plugged into the J3 connector. I have looked at the example given in "OpenOCD-WICED", but I still have a question about the hardware connection. Aren't you driving against the JTAG signals coming from the FTDI chip if you close the SW4 switches and plug in a JTAG device?
Show LessI am testing for certification using CYW43907 product.
I knew that this product is certified as 2.4G & 5G 802.11n
But It has problem for HT40 MCS.
What's the problem?
I set up device with following command.
wl4343WA1.exe --serial 5 down
wl4343WA1.exe --serial 5 mpc 0
wl4343WA1.exe --serial 5 phy_watchdog 0
wl4343WA1.exe --serial 5 country ALL
wl4343WA1.exe --serial 5 band a
wl4343WA1.exe --serial 5 5g_rate -h 0 -b 40
wl4343WA1.exe --serial 5 channel 36/40
wl4343WA1.exe --serial 5 mimo_txbw 4
wl4343WA1.exe --serial 5 scansuppress 1
wl4343WA1.exe --serial 5 phy_txpwrctrl 1
wl4343WA1.exe --serial 5 txpwr1 -1
wl4343WA1.exe --serial 5 phy_txpwrctrl 0
wl4343WA1.exe --serial 5 up
wl4343WA1.exe --serial 5 phy_forcecal 1
wl4343WA1.exe --serial 5 pkteng_start 00:11:22:33:44:55 tx 100 1024 0
Then I measured the TX radio.
The result is bad. that spectrum was only 20MHz band, not 40MHz.
I attached it.
The firmware & Wiced version of the device I used is as follows.
Starting WICED vWiced_006.001.000.0085
Platform MVT001A initialised
Started ThreadX v5.8
Initialising NetX_Duo v5.10_sp3
Creating Packet pools
WLAN MAC Address : 44:91:60:28:5A:3C
WLAN Firmware : wl0: Feb 12 2018 23:35:27 version 7.15.168.108 (r683813) FWID 01-81fd72af
WLAN CLM : API: 12.2 Data: 9.10.74 Compiler: 1.31.3 ClmImport: 1.36.3 Creation: 2018-02-12 23:30:46
Show LessHi Cypress, and inoue_tomohiro_1742091 from Murata,
Compal project (CTI3) build-in Murata Type1LD module withour external flash, however wifi malfunction after download "test.console-MurataType1LD download run" through WICED-Studio-6.2 with commentout two line in MurataType1LD.mk (*3) in N1- 4629_Type1LD-Quick_Start_Guide_1.3.pdf (page 10) on both [Murata Type1LD Evaluation board with external flash], and [CTI3 Type1LD w/o external flash]
(*3) commentout two line in MurataType1LD.mk
#ifneq ($(NO_WIFI_FIRMWARE),)
#endif
Could you please tell me how to build and run test.console without external flash to make wifi work on both [CTI3 Type1LD] without external flash?
After (*3) commentout two line in MurataType1LD.mk with
Starting WICED vWiced_006.002.001.0002
Platform MurataType1LD initialised
Started ThreadX v5.8
Initialising NetX_Duo v5.10_sp3
Creating Packet pools
fail: func=wwd_bus_write_backplane_value line=613
fail: func=wwd_bus_sdio_download_firmware line=801
Console app
> status
WICED Version : Wiced_006.002.001.0002
Platform : MurataType1LD
Many thanks.
Caspar
Show LessGood day, i have measured TCP transmission speed, and im very surprised.
I got only around 250KB/s, why speed is so slow, I tried 5G and 2.4G WIFI, transfered locally with 1Gb router?
Actually i tried to measure MicroSD speed and got good results.
I think 320-MHz Arm Cortex-R4 should be much faster...
Maybe Im doing something wrong?
Here is my code:
#include "wiced.h"
#define TCP_PACKET_MAX_DATA_LENGTH 1024
#define TCP_CLIENT_INTERVAL 10
#define TCP_SERVER_PORT 111
#define TCP_CLIENT_CONNECT_TIMEOUT 60000
#define TCP_CLIENT_RECEIVE_TIMEOUT 60000
#define TCP_CONNECTION_NUMBER_OF_RETRIES 10
#define TCP_SERVER_IP_ADDRESS MAKE_IPV4_ADDRESS(192,168,31,10)
static wiced_result_t tcp_client1();
static wiced_tcp_socket_t tcp_client_socket1;
#define TCP_SERVER_THREAD_PRIORITY (WICED_DEFAULT_LIBRARY_PRIORITY)
#define TCP_SERVER_STACK_SIZE (1024*10)
#define BUFFER_SIZE 512
typedef struct
{
wiced_bool_t quit;
wiced_tcp_socket_t socket;
}tcp_server_handle_t;
static wiced_thread_t tcp_thread1;
static tcp_server_handle_t tcp_server_handle1;
void application_start(void)
{
wiced_result_t result;
wiced_init( );
wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL );
wiced_tcp_create_socket( &tcp_client_socket1, WICED_STA_INTERFACE);
wiced_tcp_bind( &tcp_client_socket1, TCP_SERVER_PORT );
wiced_rtos_create_thread(&tcp_thread1, TCP_SERVER_THREAD_PRIORITY, "speed_test", tcp_client1, TCP_SERVER_STACK_SIZE, &tcp_server_handle1);
WPRINT_APP_INFO(("\ntcp speed task created!"));
while(1);
}
wiced_result_t tcp_client1( void* arg )
{
wiced_result_t result;
wiced_packet_t* packet;
char* tx_data;
uint16_t available_data_length;
const wiced_ip_address_t INITIALISER_IPV4_ADDRESS( server_ip_address, TCP_SERVER_IP_ADDRESS );
int connection_retries;
char data_buffer[BUFFER_SIZE];
uint32_t i = 0;
wiced_time_t scan_start_time;
wiced_time_t scan_end_time;
UNUSED_PARAMETER( arg );
connection_retries = 0;
do
{
result = wiced_tcp_connect( &tcp_client_socket1, &server_ip_address, TCP_SERVER_PORT, TCP_CLIENT_CONNECT_TIMEOUT );
connection_retries++;
}
while( ( result != WICED_SUCCESS ) && ( connection_retries < TCP_CONNECTION_NUMBER_OF_RETRIES ) );
if( result != WICED_SUCCESS)
{
WPRINT_APP_INFO(("Unable to connect to the server! Halt.\n"));
}
if (wiced_packet_create_tcp(&tcp_client_socket1, TCP_PACKET_MAX_DATA_LENGTH, &packet, (uint8_t**)&tx_data, &available_data_length) != WICED_SUCCESS)
{
WPRINT_APP_INFO(("TCP packet creation failed\n"));
return WICED_ERROR;
}
for(i = 0; i < BUFFER_SIZE; i++)
{
data_buffer = 'w';
}
wiced_time_get_time(&scan_start_time);
i = 0;
while(1){
wiced_tcp_send_buffer( &tcp_client_socket1, &data_buffer[0], BUFFER_SIZE);
i++;
if(i >= 250){
i = 0;
wiced_time_get_time(&scan_end_time);
WPRINT_APP_INFO(("\nspeed: %d KBs", (int)(((BUFFER_SIZE*250000) / 1024) / (int)(scan_end_time - scan_start_time))));
wiced_time_get_time(&scan_start_time);
}
}
wiced_tcp_disconnect(&tcp_client_socket1);
return WICED_SUCCESS;
}
Show LessHello Support,
I am evaluating the cypress module CYW94343WWCD1. And I have started using the power save example in the demo apps. I modified the application and Makefile as per the instruction is given in the case: Application compatibility for cypress CYW94343WWCD1 .
Now I am able to compile the app properly and also load into the module.
In this app, I have enabled the macro POWERSAVE_STANDALONE_TEST_DEEPSLEEP_ASSOC for standby associated sleep mode.
After WLAN connection is done I am getting the print as ERROR: Unknown Command in the serial terminal. So I am guessing that the module is not going to power save.
I am attaching the teraterm logs, Modified Makefile and modified application for reference.
Do I need to make some more changes in the application to make it compatible?
Thanks
Akash
Show LessI added MyCode.cpp to this path 43xxx_Wi-Fi\apps\snip\scan.
Contents of MyCode.cpp is as follows.
/************start of MyCode.cpp************/
#include "wiced.h"
/************End of MyCode.cpp************/
Contents of scan.mk is as follows.
NAME := App_Scan
$(NAME)_SOURCES := scan.c
$(NAME)_SOURCES += MyCode.cpp
While compiling following error is coming.
Why this error ?
As per my understanding compilation should happen successfully.
Show Lesswhen I search for this I see several links in the forum, but am not sure which one I should follow i.e where can I get the latest set of directions.
I am using SDK 3.3.1 on MacOSX and have a BCM943341WCD1_EVB board.
I am going through the getting started guide
Verify MQTT Subscribe and Publish - AWS IoT for aws_iot
and want to run the following (equivalent) command on the eval board:
mosquitto_sub --cafile
"path-to-cert\rootCA.pem"
--cert "path-to-cert\cert.pem"
--key "path-to-cert\privateKey.pem"
-h "your-aws-account-specific-iot-endpoint"
-p 8883 -q 1 -d -t "topic/test"
-i "clientid1"
Sajid
Show Less