Hi,
I would like to make Onboard demo with cloud mode with two QCA4020 development kits. I use the software version qca4020.or_.3.0_00011.1 and the build command is: build.bat t 4020 1 1 1 cdb.
I use mobile application for onboarding and to connect to WiFi, but I receive this error:
Onboard: Waiting for Onboard events ...Onboard: DHCPv4c: IP=11.11.91.13 Subnet Mask=255.255.0.0 Gateway=11.11.0.1Onboard: IPADDR:d5b0b0b, MSK:ffff, GW:1000b0bOnboard: Iface has the IP addrOnboard: Sntpc start success: 0Onboard: SNTP ADD SVR CalledOnboard: Zigbee LinkKey qMH56vxhNLnhjV6hOnboard: Zigbee Mode cOnboard: Initiate Zigbee OnboardingOnboard: Op_Mode:cOnboard: Master_key=qMH56vxhNLnhjV6hOnboard: bytes_written num = 1Onboard: bytes_written num = 16Onboard: Rised signal: 4Onboard: Add server return value : 0Onboard: SNTP client is started.Onboard: 0: pool.ntp.org ****Onboard: 1: pool.ntp.org ****Onboard: waiting on Monitor threadOnboard: config_zigbeeOnboard: Starting ZigbeeOnboard: Starting ZB CO-OrdinatorOnboard: FAILED qapi_ZB_InitializeOnboard: Failed to Initialize Zigbee StackOnboard: Failed to config ZigbeeOnboard: Waiting for Onboard events ...Onboard: IPADDR:d5b0b0b, MSK:ffff, GW:1000b0bOnboard: Iface has the IP addrOnboard: etGATT_Connection_Device_Disconnection with size 16:Onboard: Connection ID: 1.Onboard: Connection Type: LE.Onboard: Remote Device: 0x5A504399292F.>Onboard: etLE_Disconnection_Complete with size 16.Onboard: Status: 0x00.Onboard: Reason: 0x13.Onboard: BD_ADDR: 0x5A504399292F.Onboard: GAP_LE_Advertising_Enable success, Advertising Interval Range: 100 - 200.>Onboard: try to resolve ....Onboard: e Value: 0Onboard: amdraynnbl3cv-ats.iot.eu-central-1.amazonaws.com -->Onboard: START AWS: running(0)Onboard: total used freeOnboard: Shadow InitOnboard: Heap: 161792 134328 27464Onboard: Shadow ConnectOnboard: mutex unlock done ---------Onboard: waiting on Monitor threadOnboard: Shadow Connection ErrorOnboard: : rc = -19Onboard: IPADDR:d5b0b0b, MSK:ffff, GW:1000b0bOnboard: Iface has the IP addr
When I build with freertos: build.bat f 4020 1 1 1 cdb, then even before onboarding this error gets printed:
Onboard: AWS IoT SDK Version 3.0.1-Onboard: Stack rc=1009700c ret=10097018Onboard: Malloc mqttClient=100a8e80Onboard: AWS shadow_init doneOnboard: Hostname:amdraynnbl3cv-ats.iot.eu-central-1.amazonaws.comOnboard: Client crt file name:certOnboard: Client Thing name:MyIoTButtonOnboard: bytes_written num = 1Onboard: GAP_LE_Advertising_Enable success, Advertising Interval Range: 100 - 200.Onboard: Thread creation is failedOnboard: Failed to create Onboard ThreadOnboard: certificate store is success ......................Onboard: certificate store is success ......................
You only need to adjust the heap size as listed in document for ThreadX/FreeRTOS based build and edit the file under src\include\cert_buf.h to include legacy rootCA.
Hi raja_pedada,
I made the changes you suggested. Shadow Connection was successful only after the third attempt and then the following error occurred:
Since we are using the legacy Root CA, we can expect the client to connect with AWS server using multiple tries, however the connection should establish and everything should work as expected. Will try to check if I can repoduce the issue internally.
The error which you reported is due to wifi network which you are trying to connect to.
Error -13 refers to NETWORK_DISCONNECTED_ERROR ( you can check error information under @target\thirdparty\aws\awsiot\includ\aws_iot_error.h)