Wi-Fi Combo Forum Discussions
Hi,
With 3.5.2. When connecting to a MQTT broker over wifi, if the network is disconnected the connection to the MQTT broker is not resumed when the network comes back up. I tried different things (bring everything down and back up, reuse the MQTT connection, etc) but I'm not sure the MQTT library handles the broken connection correctly.
Is there a newer version of the SDK I can try or an example on how to do this?
Thank you
Show Lessmy os is windows10 and develope environment is WICED Studio 4.1.1 IDE.
my board is BCM43907(CYW43907).
I want to use load cell on BCM43907(CYW43907). board.
First, I bought the product.
(Hx711 breakout board : https://www.sparkfun.com/products/13879
Load senseor Combinator : https://www.sparkfun.com/products/13878
Load cell : https://www.sparkfun.com/products/10245 )
Second,
I checked the normal operation of the load cell through the "redbear duo" board (IDE: arduino).
(refer to "SparkFun_HX711_test.zip (arduino code)" and "hx711.zip(library)" )
Finally, After properly connecting the pins (GPIO x2, GND, VDD3v3) and writing the library and code(using arduino code,library) , I tested it with the BCM43907 board, but there was a problem with the output of the value.(refer to "load_cell_test.zip ( wiced studio code ) " )
The weight value is not stable.
Is there a difference between the behavior of arduino code and the behavior of wiced studio code?
Please help me figure out what's wrong.
(left : arduino IDE output right : wiced studio output)
Show LessHi,
It's the first time I use the CYW43907,I want to download a demo to the chip,I use the jtag to download but it failed.
Just see the picture below(I can compile it but cannot download).
Can anyone give me some advice?
Many thanks.
Show LessHi,
I'm using WICED SDK 4.0 to develop a prototype on AVNET BCM4343W IOT Starter Kit.
The example demo/bt_smartbridge works very well now.
Then, I try to enable sensor via I2C interface using the set of wiced_i2c_xxxx APIs,
but the compiler tell me there's error:
C:\Users\brian_chen\Documents\WICED\WICED-Studio-4.0\43xxx_Wi-Fi/WICED/platform/MCU/STM32F4xx/../wiced_platform_common.c:276: undefined reference to `platform_i2c_write'
tools/makefiles/wiced_elf.mk:262: recipe for target 'build/demo.bc_I2C_sensor-BCM94343W_AVN/binary/demo.bc_I2C_sensor-BCM94343W_AVN.elf' failed
make.exe[1]: *** [build/demo.bc_I2C_sensor-BCM94343W_AVN/binary/demo.bc_I2C_sensor-BCM94343W_AVN.elf] Error 1
Makefile:308: recipe for target 'main_app' failed
make: *** [main_app] Error 2
Does this mean an wrong platform file? or I lose something? please advise.
Thank you.
Brian
Show Less
Hi,
We have one critical issue, that is system crash after calling the wiced_tcp_delete_socket.
In our application, we have a secured tcp socket which connects to out side Server, and this connection is always connected unless there is network problem or close from Server or stop from user.
Whenever there is connection close (other than user) we need to re-try connecting to the Server .
We observer that after device is running for few hours and if network is in bad condition sometime we get a 7014 error from wiced_tcp_receive, here we noticed that 7014 is received by the netx_duo , Server or user did not send any TCP disconnect( This 7014 error already looking by Broadcom network engineer).
In our application we retry connection after 10 second, before making new connection with the server we tried to clean the previously created socket. When we tested it works well even after few creating and deleting few hundreds times, but some times we can see crash after application is running for few hours and getting some un-usual close from netx_duo .
below is the code used for clean Socket .
And we can see the crash after wiced_tcp_delete_socket
APPLN_LOG_INFO("Socket state is [%d] result [%d]", socket_state, result);
if(socket->socket_magic_number == WICED_SOCKET_MAGIC_NUMBER && socket->socket.nx_tcp_socket_id !=0) /* delete only if it is not Already deleted*/
result = wiced_tcp_delete_socket(socket);
With our observation the crash is after calling nx_tcp_socket_disconnect, we verified that socket pointer is not NULL and it is already created.
Please help to debug this crash, our application is rejectd by our testing team to this crticial issue, below is the code related socket delete and Crash Log
wiced_result_t DisConnectSokcet(wiced_tcp_socket_t *sockets)
{
wiced_socket_state_t socket_state;
wiced_result_t result = WICED_SUCCESS;
wiced_tcp_socket_t *socket = NULL;
int tryCount = 0;
TRY_AGAIN:
socket = msgpstmCISocket->tcp_client_socket;
if(socket != NULL)
{
tryCount ++;
result =
wiced_tcp_get_socket_state( socket, &socket_state );
if(result == WICED_SUCCESS)
{
if (socket_state == WICED_SOCKET_DATA_PENDING &&
tryCount <10)
{
SN_SleepTask(1000); /** 10 sec
Wait for socket Transaction*/
goto TRY_AGAIN;
}
else if(socket_state ==WICED_SOCKET_CONNECTED)
{
SHPNANO_LOG_INFO("Socket
state [%d] ", socket_state);
if(socket->socket_magic_number ==
WICED_SOCKET_MAGIC_NUMBER && socket->socket.nx_tcp_socket_id !=0)
result = wiced_tcp_disconnect(socket);
if(result != WICED_SUCCESS)
{
SHPNANO_LOG_WARNING("Disconnect
result [%d] ", result);
}
}
}
else
{
SHPNANO_LOG_WARNING("socket
Might Have already Closed [%d] ", socket_state);
}
}
return result;
}
/**
*
* @param socket
*/
void CleanSokcet(wiced_tcp_socket_t *sockets)
{
SHPNANO_LOG_FUNC_ENTRY();
wiced_tcp_socket_t * socket =
sockets;
if(socket != NULL)
{
wiced_socket_state_t socket_state;
wiced_result_t result;
int tryCount = 0;
TRY_AGAIN:
result =
wiced_tcp_get_socket_state( socket, &socket_state );
tryCount ++;
if(result == WICED_SUCCESS)
{
if(socket_state != WICED_SOCKET_CLOSED)
{
SHPNANO_LOG_INFO("Sokcet
state is [%d], Need to wait", socket_state);
if(tryCount <10)
{
SN_SleepTask(1000); /** Standard
Wait for Sokcet Transcation*/
if(socket_state !=WICED_SOCKET_CLOSING)
goto TRY_AGAIN;
}
DisConnectSokcet(socket);
//SN_SleepTask(WICED_TCP_DISCONNECT_TIMEOUT)
;/** Standard Wait for Sokcet Disconnection */
goto TRY_AGAIN;
}
if(socket != NULL) /* Added
Double NULL check*/
{
result = wiced_tcp_get_socket_state( socket,
&socket_state );
SHPNANO_LOG_INFO("Socket
state is [%d] result [%d]", socket_state, result);
if(socket->socket_magic_number ==
WICED_SOCKET_MAGIC_NUMBER && socket->socket.nx_tcp_socket_id !=0) /* delete only
if it is not Already deleted*/
{
SHPNANO_LOG_INFO("Calling
Delete Socket");
result =
wiced_tcp_delete_socket(socket);
}
}
if(result != WICED_SUCCESS)
{
SHPNANO_LOG_WARNING("Delete
Socket Warning [%d]", result);
}
//memset(socket, 0 ,
sizeof(wiced_tcp_socket_t));
}
else
{
SHPNANO_LOG_WARNING("Failed
to get the Socket state [%d] ", result);
}
}
SHPNANO_LOG_FUNC_EXIT();
}
|06:49:27.012|[tid
: 5550672] E palCIServer.c:553|readDataFromNetwork(): Socket return [7014]
|06:49:27.021|[tid
: 5550672] W palCIServer.c:569|readDataFromNetwork(): Packet reception failed
on CI Channel, CI Socket read return
[7014]
|06:49:27.035|[tid
: 5550672] W palCIServer.c:684|readDataFromNetwork(): Server [52.69.94.74]
Returned empty Response or Connection got Broken
|06:49:27.049|[tid
: 5550672] I CoapServerAdaptor.c:480|CoapResponseHandler(): Respone Code:[731]
|06:49:27.059|[tid
: 5550672] E CoapServerAdaptor.c:543|CoapResponseHandler(): Connection
terminated by ci server :(, Will Try ReConnecting
|06:49:27.073|[tid
: 5550672] D DawitControl.c:216|DeviceConnStatusCallBack():
DeviceConnStatusCallBack [0]
|06:49:27.084|[tid
: 5550672] I CoapUtil.c:310|TryNextReconnectWithRIV(): Timer for [2000] ms
|06:49:27.392|[tid
: 5548832] E CoapClientAdaptor.c:161|CoapClientPost(): Remote Connection for
Coap is not yet Ready
|06:49:27.403|[tid
: 5548832] E SubscriptionManagerUtil.c:149|SendNotification(): Failed to send
Notification..
|06:49:29.084|[tid
: 5550856] D CoapUtil.c:184|CoapEventHandler(): Event : 2
|06:49:29.191|[tid
: 5550856] D CoapServerAdaptor.c:782|RegisterUtil(): CI Registration start
|06:49:30.200|[tid
: 5550856] T CoapServerAdaptor.c:944|__RegisterCI(): Entry
|06:49:30.207|[tid
: 5550856] I palCIServer.c:433|_palSendCIRequest(): Server Connection is not
Alive, Make Sure this is Registration Request
|06:49:30.221|[tid
: 5550856] D palCIServer.c:263|_palDelSocket():
Deleting the CI Server Socket Called
|06:49:30.232|[tid
: 5550856] T palCIServer.c:1095|CleanSocket (): Entry
|06:49:30.239|[tid
: 5550856] I palCIServer.c:1125|CleanSocket (): Socket state is [0] result [0]
|06:49:30.239|[tid
: 5550856] I palCIServer.c:1127|CleanSocket (): Calling Delete Socket
===
EXCEPTION ===
data_abort_handler
LR : 0x004F08E9
DFSR :
0x0000080D
DFAR :
0x00000005
IFSR :
0x00000000
IFAR :
0x00000000
CPSR :
0x600001D7
=================
Show LessHi,
I'm planning to use Murata 1LD module (43438 + STM32F412) connected via SPI to an MCU powered motherboard.
WICED is fully integrated within 1LD.
I'd like to use this product as an AD2P source, to stream audio to a bluetooth speaker.
WICED 4.1.1 ReadMe.txt indicates that it supports only "Sink functionality".
Will "A2DP Source functionality" come in a future version of WICED ?
Best regards,
Karim.
Show LessHi,
Would you provide me information about BCM4343W?
Wihch version of SDK and FW is oldest one which supports BCM4343W?
I found the SDK-3.5.2 (FW version 7.45.45.1) may be oldest. But I couldn't find other SDK-3.5.x on Cypress web sight.
Thanks,
Ken Ryu
Show LessHi,
getting the error "Could not find appropriate Java Runtime Environment (JRE). WICED JRE requires JRE version 1.6.0 or higher..."
I have this installed:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\IBM_ADMIN>java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pwi3270sr9fp40-20160422_01(SR9 FP40))
IBM J9 VM (build 2.6, JRE 1.7.0 Windows 7 x86-32 20160406_298397 (JIT enabled, A
OT enabled)
J9VM - R26_Java726_SR9_20160406_0949_B298397
JIT - tr.r11_20160328_114192
GC - R26_Java726_SR9_20160406_0949_B298397
J9CL - 20160406_298397)
JCL - 20160421_01 based on Oracle jdk7u101-b14
C:\Users\IBM_ADMIN>
Windows 7 Pro, SP1, 64-bit
How can I tell if it's the "32-bit" error described elsewhere or is this an issue with WICED being too particular about the version reported by the secure IBM Java system?
/Greg
Show LessHello,
just installed Windows 8.1 and WiCED-SDK-2.4.1-IDE-installer.exe doesnt work, it says missing Java RE and asks to install version 1.6 or above. I have installed 1.8(latest) and nothing changed!
Please help me to solve this.
Thank you
Show LessHi,
I need to check FW information for CYW4343W. Could you answer my question?
Is FW ver 7.45.45.17 which is included in SDK 3.7.0 newer than FW ver 7.45.41.34 (non WICED FW)?
Are all changes for FW ver 7.45.41.34 applied to FW ver 7.45.45.17?
Thanks,
Ken Ryu
Show Less