Continuing the previous question,
KW36A OTA
Now there is an idea:
We want to integrate the two OTA updates as following
A. BLE Demo Applications User Guide.pdf , ch 5.19.5 with IOT toolbox
B. BLE Demo Applications User Guide.pdf , ch 5.19.4 with Test tool
Based on the original two OTAs update(A. B.), the architecture is modified as follows
Step 1:
Master(pre-burn BL+AP1).
AP1 and AP2 are packaged into one Image(AP1+AP2).
Master (AP1) [ use the receive function in "bootloader_otap" ] for receive Image from the OTA phone.
Step 2:
OTA update from phone to external Flash via Master(AP1) with one package(AP1+AP2).
The purpose is to transfer data to external flash for storage.
Step 3:
After reset the Master, the Master(Bootloader) will update Master(AP1) from external flash to AP1.
Step 4:
Master(AP1) reads external flash and send AP2 to 4 Slave via OTA.
Step 5:
After Slave(Bootloader) receiving the Image(AP2) from the Master, Slave does the Image update by itself.
Question:
1. Because Master(AP1) needs to be in a different role (peripheral or central),
can Master(AP1) be switched from peripheral to central without reset chip?
2. What function to switch between the two roles?
Thank you for providing a good example explanation for my reference, thanks
Hi Daniel!
Please let me know if you need any more information.
Best regards,
Sebastian
Hi Daniel, I hope you're doing well!
It is possible to change the Bluetooth role of a device without resetting it. Could you please take a look at the Wireless UART SDK example?
<…\SDK_2.2.2_FRDM-KW36 - MCUXpresso\boards\frdmkw36\wireless_examples\bluetooth\w_uart>
This example allow for the device to change roles by pressing a SW3 and then pressing SW2. This calls two different events in the BleApp_HandleKeys (located in the wireless_uart.c source file):
Please let me know if you need any more information.
Best regards,
Sebastian