Wi-Fi Combo Forum Discussions
How do I dynamically change the SSID and write the new value into the DCT so it remains upon reboot?
I need a code snippet that does this. In my use case, it can be done before or after the wiced_network_up().
Show LessI am trying to use more than one ADC input in my application. I could not get all the ADC inputs sampled independent of each other.
I have connected ADC_1 to 3.3V and ADC_3 to ground for testing.
Here is my code snippet.
..
wiced_adc_init( WICED_ADC_1, 5 );
wiced_adc_init( WICED_ADC_3, 5 );
while(1) {
wiced_adc_take_sample(WICED_ADC_3, &adc3_value );
WPRINT_APP_INFO(("adc3 %d\r\n,", adc3_value));
wiced_adc_take_sample(WICED_ADC_1, &adc1_value );
WPRINT_APP_INFO(("adc1 %d,\r\n", adc1_value));
}
adc3_value and adc1_value are same and the value printed is 0 (0V)
Printed adc*value depends on which ADC is initialized latest.
Could it be a driver code issue?
Also I could not get the single step debug mode working to understand more on the issue.
Any help or pointers will be useful.
Apology for re posting Using more than one ADC input in WICED wifi board Problem but my problem is exactly.
That's why i'm re posting the problem.
Regards,
Prashant
Show LessI have a project based on the iot-shadow example that works. When I add the -debug to a clean build of the project and set a breakpoint at the beginning of application start the breakpoint is never tripped. The console output shows:
Starting WICED v3.5.2
Platform BCM94343W_AVN initialised
demo.aws_iot.shadow-BCM94343W_AVN-debug download download_apps
also tried
demo.aws_iot.shadow-BCM94343W_AVN-debug download download_apps run
also tried clicking debug icon after load
Any help would be appreciated.
Show LessNot able to connect with MQTT server for subscribing messages,after 10 second its disconnected,i am using paho mqtt embedded C libarary.Not getting ConnAck response from java Mqtt server running on windows platform.
Application code:
MQTT_func()
{
MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
int rc = 0;
// int mysock = 0;
unsigned char buf[200];
int buflen = sizeof(buf);
int msgid = 1;
MQTTString topicString = MQTTString_initializer;
int req_qos = 0;
char* payload = "mypayload";
int payloadlen = strlen(payload);
int len = 0;
//Socket creation
WPRINT_APP_INFO(("mysock_kuldeep = %d \n\r", mysock));
mysock = transport_open();
if(mysock < 0)
{
transport_close(mysock);
return mysock;
}
data.clientID.cstring = "hello";//"SampleJavaV3_subscribe";
data.keepAliveInterval = 20;
data.cleansession = 1;
data.MQTTVersion = 4;
len = MQTTSerialize_connect((unsigned char *)buf, buflen, &data);
WPRINT_APP_INFO(("lenth hello: %d\n",len));
transport_sendPacketBuffer(mysock, buf, len);
unsigned char sessionPresent, connack_rc,tempbuf[50];
if (MQTTDeserialize_connack(&sessionPresent, &connack_rc, buf, buflen) != 1 || connack_rc != 0)
{
WPRINT_APP_INFO(( "Unable to connect, return code %d\n", connack_rc));
// WPRINT_APP_INFO(("%s",tempbuf));
// transport_close(mysock);
//return 0;
}
else
{
WPRINT_APP_INFO(("Didnt reveive CONNACK \n"));
// transport_close(mysock);
// return 0;
}
topicString.cstring = "Smart";
len = MQTTSerialize_subscribe(buf, buflen, 0, msgid, 1, &topicString, &req_qos);
WPRINT_APP_INFO(("mysock = %d \n\r", mysock));
transport_sendPacketBuffer(mysock, buf, len);
if (MQTTPacket_read(buf, buflen, transport_getdata) == SUBACK) /* wait for suback */
{
WPRINT_APP_INFO(("After MQTTPacket_read \n"));
unsigned short submsgid;
int subcount;
int granted_qos;
MQTTDeserialize_suback(&submsgid, 1, &subcount, &granted_qos, buf, buflen);
if (granted_qos != 0)
{
WPRINT_APP_INFO(("granted qos != 0 \n"));
//transport_close(mysock);
//return 0;
}
}
else
{
WPRINT_APP_INFO(("Didnt reveive SUBACK \n"));
// transport_close(mysock);
//return 0;
}
}
logs:
Successfully joined : SMART_IOT
Obtaining IPv4 address via DHCP
Setting IPv6 link-local address
IPv4 network ready IP: 10.100.10.106
Getting NTP time...
failed, trying again...
failed, trying again...
failed, trying again...
Give up getting NTP time
BT SmartBridge application is running. Please go to the webpage
Connection with TCP server established successfully
wait for connack
Unable to connect, return code 115
mysock = 0
Before MQTTPacket_read
Didnt reveive SUBACK
Show Less1. I'm would like to know the most current SDK version for the BCM43362?
We are currently on SDK 2.4...
2. Does the BCM43362 H/W support the 20MHz / 40MHz bandwidths for 802.11n?
Show LessUh oh, working with some other SDK's that support writing/reading data to flash, I thought this would be well supported in WICED.
How do I write a string (or any BLOB) to a persistent location and also read that string (or BLOB) back? And then write a changed string (or BLOB) back to the location?
I understand underlying FLASH issues with re-writing - but I really don't want to have to deal with that.
Surely there is some support in WICED or at least some contributed code that deals with this need.
I don't need a lot of space.maybe just 1KB or so.
Show LessLooking to turn off modulation rates lower than 6Mb/s. Is it doable and on which WiFi chip set if any and how? Is there an GUI, SSH, Telnet or anything to review my options to adjust the modulation rate? Thanks!
Show LessI am serving larger pages on a soft AP in Wiced 3.3.1. It works well at short range, but as soon as there is some distance of packet loss, the pages essentially 'freeze' and don't load. I believe the main issue is either the DUP ACK as described here (https://community.broadcom.com/thread/5141), or "Fixed TCP restransmission for NetX_Duo" as described in the changelog to 3.5.2.
I tried Wiced 3.5.2 and the issue seems to be fixed or improved. HOWEVER, now i'm stuck with the incompatible DCT issue. There's doesn't seem to be any way for me to update my existing devices in the field without directly reprogramming them.
That problem is described here: https://community.broadcom.com/message/22724#22724
So, my question is, what's my best route of attack? Should I attempt to port the 3.3.1 DCT code forward into a custome 3.5.2c, or am I attempting to back-port the TCP retransmission netx_duo into 3.3.1?
Or is there a patch available somewhere for 3.3.1?
Show LessHi,
I am facing an issue when upgrading the SDK from 3.5.1 to 3.5.2.
The DCT header has changed, and is not backward compatible. Has both bootloader and application use DCT, but only application can be upgraded, how am I supposed to handle this situation ?
Bootloader creates a new DCT because it can't find a valid one, and application does the very exact thing. Hence I keep loosing the WiFi credentials of the board.
On a side note, there seems to be a bug in the function wiced_dct_generate_crc_from_flash, which fails to get the right position of the crc.
Show LessHi, we're preparing a new version of our product and would really much like to include 5Ghz wifi support.
Is there any WICED compatible 5GHz wifi ready modules available on the market?
Thanks
Show Less