Wi-Fi Combo Forum Discussions
on the bcm94331 eval board I have connected a modem on one of the uart ports. I need to use the modem to communicate with a mqtt broker.
I tried looking through the mqtt protocol code provided but got lost following the tcp calls that lead into the wifi driver. I need to replace the wifi driver with a modem driver that communicates over the uart connection through at commands. Any pounters would be greatly appreciated.
Show LessHi,
I searched the website but didn't see those documents. Would you please provide the following documents:
Schematic, BOM and PCB files for
BCM943341WCD1_3 and BCM9WCD5EVAL1_3
Thanks and best regards,
Tim Qian
Brady Corporation
414-228-5955
Show LessWICED-SDK\resources\config\scan_page_outer.html
function join_manual()
{
/* var s = 'as0=' + encodeURIComponent(hex2a(document.getElementById('manual_ssid').value)); */
var s = 'as0=' + encodeURIComponent(document.getElementById('manual_ssid').value);
s += '&at0=' + document.getElementById('manual_sec').value;
if ( document.getElementById('manual_sec').value != 0 )
{
s += '&ap0=' + encodeURIComponent(document.getElementById('manual_pass').value);
}
do_ajax( protocol +'://' + window.location.hostname + '/connect?' + s, join_handler );
}
The hex2a function call in the above function, first line that I commented out, is not needed. The SSID is user entered text box so it is already in ASCII text. If the SSID came from the scan then it would be in binary and it would conversion. Need to remove the hex2a call to make it work.
I have seen this bug in 3.1.2 through 3.5.2 SDKs. It might affected earlier versions, I only started at 3.1.2
Show LessI'm having some issues getting NFC to work properly in SDK 3.3.1. The demo apps (snip.nfc.tag_reader and snip.nfc.tag_writer) work properly on my BCM943341 development board. However, these example apps call the wiced_nfc_read_tag and wiced_nfc_write_tag APIs forever in a while (1) loop. I would like to implement these calls in an interrupt-driven fashion, starting by using the two buttons on the demo board. I placed these two calls in a routine assigned to the hardware worker thread as follows - this routine is called once a second and checks the status of the two buttons:
// Fire up the worker thread for NFC read and write | |
wiced_rtos_register_timed_event( &nfc_worker_event, WICED_HARDWARE_IO_WORKER_THREAD, nfc_worker, 1000, 0 ); |
....
static void nfc_worker ( )
{
wiced_result_t result;
int i;
WPRINT_APP_INFO (("NFC worker called. %d\n", timeout++));
wiced_gpio_output_low( WICED_LED1 );
wiced_gpio_output_low( WICED_LED2 );
// NFC Read
if (start_nfc_read == WICED_TRUE)
{
start_nfc_read = WICED_FALSE;
wiced_gpio_output_high( WICED_LED2 );
WPRINT_APP_INFO (("Starting NFC Read.\n"));
/* Reset the buffer_length variable. Note that this is used for both input and output */
buffer_length = NFC_DATA_LENGTH;
/* Wait for, and read, and NFC tag */
result = wiced_nfc_read_tag( buffer, &buffer_length, NFC_READ_TIMEOUT );
if ( result != WICED_SUCCESS )
{
if ( result == WICED_TIMEOUT )
{
WPRINT_APP_INFO( ( "Tag not detected\n" ) );
}
return;
}
WPRINT_APP_INFO( ( "Received %lu bytes:\n", buffer_length ) );
/* Print the contents of the NFC tag */
for ( i = 0; i < buffer_length; i++ )
{
/* Check if the character is printable, otherwise use hex notation*/
if ( buffer[ i ] >= 0x20 && buffer[ i ] <= 0x7E )
{
WPRINT_APP_INFO( ( "%c", buffer ) );
}
else
{
WPRINT_APP_INFO( ( "\\%02x", buffer ) );
}
}
WPRINT_APP_INFO( ( "\n" ) );
}
else if (start_nfc_write == WICED_TRUE)
{
start_nfc_write = WICED_FALSE;
wiced_gpio_output_high( WICED_LED1 );
WPRINT_APP_INFO (("Starting NFC Write.\n"));
WPRINT_APP_INFO( ("\nWaiting for tag...\n") );
result = wiced_nfc_write_tag( &tag_write_message, NFC_WRITE_TIMEOUT );
if ( result == WICED_SUCCESS )
{
WPRINT_APP_INFO( ("Tag write successful\n") );
/* Delay for a short time to allow tag to be removed */
//wiced_rtos_delay_milliseconds( 1000 );
}
else if ( result == WICED_TIMEOUT )
{
WPRINT_APP_INFO( ( "Tag not detected\n" ) );
}
}
}
Ultimately the hardware works and I can read or write an NFC tag but it only works once: It gets stuck somewhere in the above routine and the design crashes.
Is there a recommended way of calling the NFC tag read and write API? The NFC stuff appears to run within a separate thread of its own.
Show LessTrying to hook up an accelerometer over I2C on the BCM9WCD5EVAL1_2 board.
1. I could not find any header pins where the I2C signals come out.
2. It seems like the IO on this board is at 3V, is there any way to set it up to be 1.8V ?
3. Is this the right sequence to setup I2c
wiced_i2c_device_t accel =
{
.port = WICED_I2C_1,
.address = 0x1d,
.address_width = I2C_ADDRESS_WIDTH_7BIT,
.flags = 0,
.speed_mode = I2C_HIGH_SPEED_MODE,
};
wiced_i2c_init(&accel);
if (wiced_i2c_probe_device(&accel, RETRIES) != WICED_TRUE)
WPRINT_LIB_INFO( ("I2C device not found\n") );
4. Looking through the examples I could not find a way to do a write_read over i2c
- I saw a wiced_i2c_read and wiced_i2c_write api, but no write_read
5. Is this how would do a write_read ?
static wiced_i2c_message_t msg[2];
/* Some I2C masters might not support combined messages. */
/* Reset device's register counter by issuing a TX. */
WICED_VERIFY( wiced_i2c_init_tx_message( &msg[0], ®, sizeof(reg), I2C_XFER_RETRY_COUNT, I2C_DISABLE_DMA ) );
/* Initialize RX message. */
WICED_VERIFY( wiced_i2c_init_rx_message( &msg[1], value, sizeof(*value), I2C_XFER_RETRY_COUNT, I2C_DISABLE_DMA ) );
/* Transfer. */
return wiced_i2c_transfer( device, msg, ARRAYSIZE( msg ) );
Sajid
Show LessHi all,
I am working on WiCED SDK 3.3.1. My board equipped with STM32F417 + BCM43341, but no FT2232. I was using an external debugger (JLINK) to program the WiCED bootloader, DCT, and APP BIN files into STM32's internal flash. It works well so far. However, in OTA app, I need to program the external SPI flash (MX25L1606E, 2MB) by WiCED SDK IDE. When I building my target with "download download_apps run", the IDE console displays OpenOCD error message below.
Downloading Bootloader ...
Building apps lookup table
"**** OpenOCD failed - ensure you have installed the driver from the drivers directory, and that the debugger is not running **** In Linux this may be due to USB access permissions. In a virtual machine it may be due to USB passthrough settings. Check in the task list that another OpenOCD process is not running. Check that you have the correct target and JTAG device plugged in. ****"
Downloading DCT ...
"**** OpenOCD failed - ensure you have installed the driver from the drivers directory, and that the debugger is not running **** In Linux this may be due to USB access permissions. In a virtual machine it may be due to USB passthrough settings. Check in the task list that another OpenOCD process is not running. Check that you have the correct target and JTAG device plugged in. ****"
Downloading Application ...
"**** OpenOCD failed - ensure you have installed the driver from the drivers directory, and that the debugger is not running **** In Linux this may be due to USB access permissions. In a virtual machine it may be due to USB passthrough settings. Check in the task list that another OpenOCD process is not running. Check that you have the correct target and JTAG device plugged in. ****"
Downloading apps lookup table at 0x0000...
tools/makefiles/wiced_apps.mk:143: recipe for target 'APPS_LUT_DOWNLOAD' failed
make.exe[1]: *** [APPS_LUT_DOWNLOAD] Error 1
Makefile:190: recipe for target 'main_app' failed
make: *** [main_app] Error 2
Is there any hint for me to solve the OpenOCD problem? Or, is any other way to program the external flash by JLINK debugger?
Regards,
Clark
Show LessHi,
What's the maximum number BLE connections possible when using SDK 3.3.1+ on a BCM43340 or BCM4343W? Is it possible to connect to more than one central at a time?
Show LessHello,
We have customized SN8205 module and when We'd tested apsta app on this it's working fproperly.
But when we had modified app to our requirement its not working properly.
commented below line in apsta.mk so we can configure device at runtime.
#WIFI_CONFIG_DCT_H := wifi_config_dct.h
Please find below flow of new app:
1) Write config SSID and PASSPHRASE to dct.
2) Start config interface
3) Configure module using html pages through phone
4) Connect to the STA SSID and PASSPHRASE given by user
5) Write softap SSID and PASSPHRASE to dct
6) Start softap interface
Above all the steps are worked properly.But when i'm trying to connect with softap it's not connecting with my PC or Phone.
Please find attached apsta.c file.
Any help in this case will be appreciated.
Thanks & Regards
prashant
Show LessSunculture-Manish-Kochhal:WICED-SDK-3.4.0-AWS sunculturesolar$ ./make snip.ota_fr-BCM943341WCD1 download download_apps run
Building Bootloader
Building Serial Flash Loader App
waf.sflash_write-NoOS-BCM943341WCD1-SDIO
----------------------------------|---------|---------|
| | Static |
Module | Flash | RAM |
----------------------------------+---------+---------|
App | 0 | 21126 |
Host MCU-family library | 0 | 11302 |
Interrupt Vectors | 0 | 388 |
libc | 0 | 548 |
platform | 0 | 908 |
Ring_Buffer | 0 | 36 |
SPI_Flash_Library_BCM943341WCD1 | 0 | 924 |
Startup Stack & Link Script fill | 0 | 486 |
WWD | 0 | 174 |
----------------------------------+---------+---------|
TOTAL (bytes) | 0 | 35892 |
----------------------------------|---------|---------|
Build complete
Finished Building Bootloader
Finished Building Serial Flash Loader App
snip.ota_fr-BCM943341WCD1
----------------------------------|---------|---------|
| | Static |
Module | Flash | RAM |
----------------------------------+---------+---------|
App | 293 | 0 |
base64 | 523 | 0 |
crypto_open | 42480 | 0 |
DHCP_Server | 1538 | 132 |
DNS | 68 | 84 |
Host MCU-family library | 13972 | 2484 |
Interrupt Vectors | 388 | 0 |
libc | 33815 | 3136 |
micro_ecc | 5850 | 0 |
Networking | 4624 | 13184 |
NetX-Duo - Interfaces & Stacks | 0 | 16 |
OTA_Server | 8235 | 684 |
Other | 43528 | 535 |
Packet Buffers | 0 | 23086 |
platform | 1036 | 172 |
RAM Initialisation | 2428 | 0 |
resources | 16 | 0 |
Ring_Buffer | 92 | 0 |
SPI_Flash_Library_BCM943341WCD1 | 880 | 0 |
Startup Stack & Link Script fill | 67 | 7 |
Supplicant - BESL | 15431 | 484 |
ThreadX | 8596 | 396 |
Wi-Fi Firmware | 370096 | 0 |
WICED | 2900 | 824 |
WWD | 12912 | 3024 |
----------------------------------+---------+---------|
TOTAL (bytes) | 567340 | 48248 |
----------------------------------|---------|---------|
Downloading Bootloader ...
Building apps lookup table
No changes detected
Download complete
Downloading DCT ...
Download complete
Downloading Application ...
No changes detected
Download complete
Downloading FR_APP build/snip.ota_fr-BCM943341WCD1/binary/snip.ota_fr-BCM943341WCD1.stripped.elf at sector 1 address 4096...
make[1]: *** [FR_APP_DOWNLOAD] Error 1
make: *** [main_app] Error 2
Sunculture-Manish-Kochhal:WICED-SDK-3.4.0-AWS sunculturesolar$
Show Less