Wi-Fi Combo Forum Discussions
text.format{('custom.tabs.no.results')}
Hello All,
I am working on wiced SDK3.5.2. I getting the problem with not receive the packet from the terminal. in this i transmit the data from he docklight terminal. in this when i send the data print on the docklight terminal ok.
my code is:
/*------------------------------------------------------------------------------------------------*/
ring_buffer_init(&rx_buffer, rx_data, RX_BUFFER_SIZE );
/* Initialise UART. A ring buffer is used to hold received characters */
wiced_uart_init( STDIO_UART, &uart_config, &rx_buffer );
/* Send a test string to the terminal */
wiced_uart_transmit_bytes( STDIO_UART, TEST_STR, sizeof( TEST_STR ) - 1 );
/* Wait for user input. If received, echo it back to the terminal */
while ( wiced_uart_receive_bytes( STDIO_UART, &ch, 1 , WICED_NEVER_TIMEOUT ) == WICED_SUCCESS )
{
WPRINT_APP_INFO(("UART Rx\r\n"));
}
/*--------------------------------------------------------------------------------------------------------*/
i execute code it does not enter in the while loop. check from the hardware site it is ok.
i am stuck here help me...
Show LessHi All,
More and more platforms are capable of SWD flashing. (ex. STM32) it's more compact and faster.
But current SDK requires some patch for openocd driver and configuration for that.
Would you please add such SWD flashing support patch on further SDK ?
Regards,
Sam
Show LessHi,
Please help me how to enable or disable the Radio in BCM43XX device
Hello,
I see in the platforms folder that there is a board called BCM943907AEVAL1_1, it has a BCM943907 MCU + a BCM5241 transceiver.
Where/from whom can I order this board ?
Thank you.
Show LessHi
I have been testing the ofa. (WICED OTA Upgrade and Factory Reset (SDK 3.1.2) )
Connected to the otp web server, and the file was opened.
\WICED-SDK-3.3.1\WICED-SDK\build\demo_temp_control-MurataTypeYD\binary\demo_temp_control-MurataTypeYD.stripped.elf
proceeded to "start upgrade".
Receiving the data properly and then came the reboot messages.
But is not a reboot. Press the reset key, but this should not work.
Why does this happen?
Download ota_fr again and had access to a web server. And I've tried downloading progress.
The error occurred in the source below.
wiced_ota_server.c
static int process_upgrade_chunk( ota_http_request_message_t* request, wiced_tcp_stream_t* stream, void* arg )
if (wiced_framework_app_set_size( &app, file_size) != WICED_SUCCESS)
{
printf("wiced_framework_app_set_size err - file_size:%d \r\n", file_size );
return -1;
}
Download ota_fa again and tried to upgrade, but the same error occurs.
What is the reason?
SDK : 3.3.1
serial flash : winbond w25q32bv
Show LessHi vik86 and peter_fenn
Per this thread: OTA upgrade stuck at Restarting.. on the terminal window
I am working on avnet iot kit and i also facing the same issue of getting stuck at the restart point. Now if I do a hard reboot the device doesn't show any logs at all. I need to flash a new application if I need to get it work again. Can anyone help on this one
Thanks in advance for your help
Show LessI try the aws shadow example in 3.5.2 and it worked fine .Now I want to add BLE function to the example.Here is my code:
/******************************************************
* Function Definitions
******************************************************/
void application_start( void )
{
wiced_result_t ret = WICED_SUCCESS;
int connection_retries = 0;
wiced_init( );
ret = aws_app_init(&app_info);
wiced_JSON_parser_register_callback(parse_json_shadow_status);
wiced_gpio_input_irq_enable( SETUP_BUTTON, IRQ_TRIGGER_RISING_EDGE, setpoint_control_keypad_handler, NULL );
wiced_gpio_init(USER_LED, OUTPUT_PUSH_PULL);
do
{
ret = aws_mqtt_conn_open( app_info.mqtt_object, mqtt_connection_event_cb );
connection_retries++ ;
} while ( ( ret != WICED_SUCCESS ) && ( connection_retries < WICED_MQTT_CONNECTION_NUMBER_OF_RETRIES ) );
aws_mqtt_app_publish( app_info.mqtt_object, WICED_MQTT_QOS_DELIVER_AT_LEAST_ONCE, (uint8_t*)app_info.shadow_state_topic, (uint8_t*)SHADOW_INIT ,sizeof(SHADOW_INIT) );
wiced_rtos_delay_milliseconds( MQTT_DELAY_IN_MILLISECONDS * 2 );
aws_mqtt_app_subscribe( app_info.mqtt_object, app_info.shadow_delta_topic , WICED_MQTT_QOS_DELIVER_AT_LEAST_ONCE );
/* Initialize Bluetooth controller and host stack */
wiced_bt_stack_init( ble_scan_management_callback, &wiced_bt_cfg_settings, wiced_bt_cfg_buf_pools );
while ( 1 )
{
/* Wait forever on wake semaphore until the wake button is pressed */
wiced_rtos_get_semaphore( &app_info.wake_semaphore, WICED_NEVER_TIMEOUT );
/* Toggle the LED */
if ( strcasecmp( led_status, "ON" ) == 0 )
{
wiced_gpio_output_low( USER_LED );
led_status = "OFF";
strcpy(req_led_status, led_status);
aws_mqtt_app_publish( app_info.mqtt_object, WICED_MQTT_QOS_DELIVER_AT_LEAST_ONCE, (uint8_t*)app_info.shadow_state_topic, (uint8_t*)SHADOW_PUBLISH_MESSAGE_STR_OFF_DESIRED_AND_REPORTED ,sizeof(SHADOW_PUBLISH_MESSAGE_STR_OFF_DESIRED_AND_REPORTED) );
}
else
{
wiced_gpio_output_high( USER_LED );
led_status = "ON";
strcpy(req_led_status, led_status);
aws_mqtt_app_publish( app_info.mqtt_object, WICED_MQTT_QOS_DELIVER_AT_LEAST_ONCE, (uint8_t*)app_info.shadow_state_topic, (uint8_t*)SHADOW_PUBLISH_MESSAGE_STR_ON_DESIRED_AND_REPORTED ,sizeof(SHADOW_PUBLISH_MESSAGE_STR_ON_DESIRED_AND_REPORTED) );
}
}
}
After I set the cer/ private key/router config,I set the BLE as central too scan some peripheral device.But got error .Here is the information it print
[MQTT] Connecting to broker 52.77.134.96 ...
Thing Name:....
Shadow State Topic: $aws/thing...
Shadow Delta Topic: $aws/thing...
Reading the certificate and private key from DCT...
[MQTT] Connecting to MQTT Broker...
[MQTT] Successfully connected MQTT Broker
Publish SUCCEEDED for topic...
Subscribe SUCCEEDED for topic...
00020784 GKI_create_task func=0x803ddb9 id=1 name=BTU stack=0x0 stackSize=6144
00020792 GKI_create_task func=0x8044465 id=0 name=HCISU stack=0x0 stackSize=4096
00020800 GKI_create_task thread_id failed(8), HCISU!
00060905 GKI_exception(): Task State Table
00060909 GKI_exception 65524 getbuf: out of buffers
00064905 GKI_exception(): Task State Table
Who can tell me the reason?Thanks
Show LessHello all,
I am working on mqtt and I use the wiced sdk 3.5.2.
when i subscribe. it is working ok and it is subscribe the message from the mqtt but after some time it is not working.
I am not find the whats the actual problem is ?
waiting for reply....
Show LessHi,
I occurred some problem after "make snip.ota_fr-SSBWMN01 download download_apps run" and the error message are as follows:
----------------------Below are error message----------------------
Downloading Bootloader ...
Illegal division by zero at ./tools/text_to_c/sector_count.pl line 27.
Building apps lookup table
./WICED/platform/MCU/wiced_apps_lut.c:63:46: error: expected expression before ',' token
.sectors = { {FR_APP_SECTOR_START,FR_APP_SECTOR_COUNT} }
^
tools/makefiles/wiced_apps.mk:64: recipe for target 'build/snip_ota_fr-SSBWMN01/APPS.elf' failed
make.exe[1]: *** [build/snip_ota_fr-SSBWMN01/APPS.elf] Error 1
make.exe[1]: *** Waiting for unfinished jobs....
No changes detected
Can someone tell me what's going on and what I can do to solve it? Or this snip only can run BCM943362WCD4 evaluation board?
Thank you.
Kevin.
Show Less