Hi,
I would like to replicate Onboard demo without cloud mode with two QCA4020 development kits.
The build command I use is build.bat t 4020 1 1 cdb.
What I see by default in qca_onboarding application is that Radio Mode is set to Coordinator.
My question is: How can I program one development kit to be End Device? Do I set it in qca_onboarding application or do I use some other build command?
Best regards,
JBloom
Hi raja_pedada,
Thanks for the answer! I still cannot make this work. When I try to onboard the second device, after "Fetching Zigbee details..." I see that the Capability field is set to "Coordinator". I tried to click on the field and change it to "End device" but it wasn't possible. I only managed to onboard both devices in Coordinator mode and to read sensor data separately frrom one another.
Kind regards,
JBloom
Hi,
Here are the steps I took for this demo:
4. Then the second device is onboarded and here it is already observed in the mobile app that the mode is set to Coordinator once again. Please find logs for the end device below:
Thank you for sharing the logs,
As part of onboard we assign the device name based on last 8bytes if the Device BLE MAC address in case of onboard without cloud mode demo.
Since both devices have same last 8 bytes ( 99:f0:fd:8c): you are not able to assign as end device
Device 1 : BD_ADDR: 23:99:99:f0:fd:8c
Device 2: BD_ADDR: 04:93:99:f0:fd:8c
you can verify this by seeing the Zigbee initialization part of both log captures:
Device 1:
In order to resolve the above issue, you can use a different device where the BLE MAC address(last 8bits) doesnt match or
You can rewrite the BLE MAC address in NVM and flash on other device.
To rewrite the BLE address using NVM file:
Edit @target\quartz\nvm\config\2.0\4040\CDB\QCA4020_2p0.nvm file and rewrite the TagNum 5 (Tag number 5 is used to allow a customer to program their own public Bluetooth address to differentiate from the one stored in OTP.)
Hi raja_pedada,
I've changed the MAC address as you described and the demo works!
Thanks a lot!
Regards,
JBloom