Wi-Fi Combo Forum Discussions
Hi,
So, as best I can tell the Wiced SDK runs entirely on the host MCU. There are references to firmware but as far as I can tell it's "upload the blob" and nothing else.
Is this right? How can I develop apps that run directly on the BCM43362 or can that not be done? Is the source for the firmware at least available?
Thanks,
Dave
Show Lesscan some one tell me what the packet format about wiced_network_send_ethernet_data() function's first parameter ?
i want to use wiced_network_send_ethernet_data() send out a packet, but it never succeed.
wiced_buffer_t newBuffer;
host_buffer_get(&newBuffer, WICED_NETWORK_TX, eap_packet_len, EAP+WICED_LINK_OVERHEAD_BELOW_ETHERNET_FRAME, WICED_TRUE) ;
((NX_PACKET*) newBuffer)->nx_packet_data_start = ((NX_PACKET*) newBuffer)->nx_packet_prepend_ptr - WICED_LINK_OVERHEAD_BELOW_ETHERNET_FRAME;
memcpy(((NX_PACKET*) newBuffer)->nx_packet_prepend_ptr, &pkt, eapol_packet_head_len);
memcpy(((NX_PACKET*) newBuffer)->nx_packet_prepend_ptr+ eapol_packet_head_len, pkt.eapdata, len);
wiced_network_send_ethernet_data( newBuffer, interface );
RTOS: ThreadX
Net Stack: NetX duo
Processor: STM32F205
Wifi Chip: 43362
Bus: SDIO
Show LessHi,
I can easily reproduce memory leak issue with the following sequence:
1) Connect to Wifi AP with wiced_wifi_join & wicked_network_up to bring up the connection.
2) delay for 1 second or 2... actually this is not necessary.
3) disconnect the wifi connection by calling wiced_network_down
4) call scan networks by calling wicked_wifi_scan_networks (NOTE: this will always timeout after a scan success)
5) print system memory
6) Go back to step 1.
PS. by executing above step you will see system memory total allocated spec increases on each loop... the issue seems to be scan timeout after wiced_network_down. When scan failed with timeout the memory increases... By the way, scan timeout can only be reproduced after you call wiced_network_down.
Here is the code if needed:
void application_start( )
{
uint8_t FirstTimeConneced = 0;
wiced_init( );
while(1)
{
//Sleep for 1 seconds
wiced_rtos_delay_milliseconds(1*SECONDS);
if (!FirstTimeConneced)
{
char SSIDToConnect[32] = "AP_2.4G"; //Change to connect your AP
char PassWord[32] = "8888888888"; //Change to connect your AP
wiced_result_t result = wiced_wifi_join( SSIDToConnect, WICED_SECURITY_WPA2_MIXED_PSK, (uint8_t*)PassWord, 10, NULL ); //Change the security type according to your AP
WPRINT_APP_INFO( ( "AP Connect Result = %d\r\n", result) );
if (result == WICED_SUCCESS)
{
if (wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL ) == WICED_SUCCESS)
{
FirstTimeConneced = 1;
}
}
}
if (wiced_network_is_up( WICED_STA_INTERFACE ) == WICED_TRUE)
{
wiced_network_down(WICED_STA_INTERFACE);
WPRINT_APP_INFO( ( "NetworkConnection is DOWN\r\n") );
FirstTimeConneced = 0;
}
print_System_memory();
wiced_result_t scanApiResult = wiced_wifi_scan_networks(scan_result_handler, NULL );
if (scanApiResult != WICED_SUCCESS)
{
WPRINT_APP_INFO( ( "wiced_wifi_scan_networks failed with error code = %d\r\n", scanApiResult) );
}
}
}
static void print_System_memory( void )
{
volatile struct mallinfo mi = mallinfo( );
WPRINT_APP_INFO( ("\r\n-------------------SYS DBG MEM HEAP DIAGNOSTIC-----------------------\r\n") );
WPRINT_APP_INFO( ("malloc_info {\r\n"
"\tarena: \t%5d;\t/* total space allocated from system */\r\n"
"\tordblks: \t%5d;\t/* number of non-inuse chunks */\r\n"
"\tsmblks: \t%5d;\t/* unused -- always zero */\r\n"
"\thblks: \t%5d;\t/* number of mmapped regions */\r\n"
"\thblkhd: \t%5d;\t/* total space in mmapped regions */\r\n"
"\tusmblks: \t%5d;\t/* unused -- always zero */\r\n"
"\tfsmblks: \t%5d;\t/* unused -- always zero */\r\n"
"\tuordblks:\t%5d;\t/* total allocated space */\r\n"
"\tfordblks:\t%5d;\t/* total non-inuse space */\r\n"
"\tkeepcost:\t%5d;\t/* top-most, releasable (via malloc_trim) space */\r\n"
"};\r\n",
mi.arena,
mi.ordblks,
mi.smblks,
mi.hblks,
mi.hblkhd,
mi.usmblks,
mi.fsmblks,
mi.uordblks,
mi.fordblks,
mi.keepcost ));
}
/*
* Callback function to handle scan results
*/
wiced_result_t scan_result_handler( wiced_scan_handler_result_t* malloced_scan_result )
{
malloc_transfer_to_curr_thread( malloced_scan_result );
if (malloced_scan_result->scan_complete != WICED_TRUE)
{
wiced_scan_result_t* record = &malloced_scan_result->ap_details;
record->SSID.val[record->SSID.len] = 0; /* Ensure the SSID is null terminated */
WPRINT_APP_INFO( ( "%3d ", record_count ) );
print_scan_result(record);
++record_count;
}
else
{
wiced_time_t scan_end_time;
wiced_time_get_time(&scan_end_time);
WPRINT_APP_INFO( ("\r\nScan complete in %lu milliseconds\r\n", scan_end_time - scan_start_time) );
}
free( malloced_scan_result );
return WICED_SUCCESS;
}
Show LessThat's right, from now until September 30th, you can participate in the Broadcom Community Forums (WICED Wi-Fi, WICED Smart, Ethernet Switch and Ethernet PHY) and earn a $50 Amazon Gift Certificate for your efforts!
It's really quite simple as the award will be issued to the first 20 forum members who complete the following missions:
Badge | Description | Points |
---|---|---|
Teammate | A good teammate always tries to help other users. Have 2 of your responses marked as Correct answers to earn this badge. | 100 |
Veteran | You're a veteran now, so have 3 of your responses marked as Helpful to complete this mission. | 100 |
Q2 Winner | Automatically awarded upon completion of the 3 missions defined above. | 50 |
Coach | A good coach always leads by example. Provide a snippet of code to another user to help solve a problem and earn this supplemental badge. Note: Not required to earn the $50 Amazon Gift Certificate. | 200 |
Prior to participation, please make sure you review the Terms and Conditions located here: Broadcom Community Website Gamification Terms and Conditions
Note that you review and monitor your badges earned by going to to top level menu beneath your name at the top right of the browser window. Select View Profile. On the Profile Page, select More->Reputation
Show LessThe schematic for the module is included in the SDK. The motherboard (assembly) for the Wiced development system has some connectors (J7, J8) and I am hoping I can use some GPIO lines from that to create a prototype.
Show LessHello,
In the example given in snip.uart I use the UART1 and UART2 simultaneously, the first one is used for debugging while the second one is used for communication with a device. I correctly receive the data sent by UART 1 to UART, however, I am unable to send data using UART2.
The platform used is the BCM943362 with the SDK 2.4.1.
Thank you in advance for your help
Show LessHello,
I'm trying to make a sample application for the BCM943362 module and wondering how does one go about setting up the environment to add .cpp application files to the project? (WICED SDK 2.4.1)
I'm getting the following compile error:
/Applications/WICED/WICED-SDK-2.4.1/Wiced/RTOS/ThreadX/wiced/wiced_rtos.c:156: undefined reference to `application_start'
Any pointers will be helpful!
Thanks!
Mohit
Show LessIn order to continuously improve our standard offering and speed up the design review process, we would love to know which EDA tool (PCB/Schematic) vendor you prefer to use within your own designs.
The survey can be found here: http://community.broadcom.com/polls/1012
Show Less