This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2340R5:ZIGBEE OTA 速度可以更快吗?

Guru**** 2343490 points
Other Parts Discussed in Thread: CC2340R5, SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1529755/cc2340r5-can-the-zigbee-ota-speed-be-faster

器件型号:CC2340R5
主题: SysConfig 中讨论的其他器件

工具/软件:

Zigbee 安全功能

我已根据文档使用 C2340 和 CC2652 使用例程完成了 OTA 函数。

目前,我有一些问题要咨询:
_ota_2nd_slot.bin 是否用于升级?
onoff_switch_ota_client_onchip_LP_EM_CC2340R5_freertos_ticlang.bin 有何用途?
2. OTA 的速度可以更快吗? 现在大约是一个小时。 我根据文档调整了 DL_OTA_IMAGE_BLOCK_DATA_SIZE_MAX
但是、OTA_Server 仍以 32 字节进行响应

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    _ota_2nd_slot.bin 是否用于升级?

    从 F3 SDK v9.11 onoff_switch_ota_client_onchip 工程自述文件 (simplelink_lowpower_f3_sdk_9_11_00_18\examples\rtos\LP_EM_CC2340R5\big\onoff_switch_ota_client_onchip\README.html) 中:

    This OTA Client requires two images to be flash to the device:
    
    MCUBoot Image
    
    Example: <SDK_INSTALL_DIR>/examples/nortos/<PLATFORM>/mcuboot/mcuboot
    Signed on_off_switch_ota_client image binary. This will be writen into image slot 1 in flash.
    
    This image is created with the post build steps. Look for the file "Project name"_ota_1st_slot.bin.This image will always be uncompressed.
    
    The "Project name"_ota_2nd_slot.bin is meant for the secondary slot and may be compressed if enabled. This image is meant to be signed with a Zigbee OTA header and used in the OTA upgrade.

    onoff_switch_ota_client_onchip_LP_EM_CC2340R5_freertos_ticlang.bin 的使用方法是什么?

    这是编译后步骤之前的第一个二进制输出文件、应用 MCUBoot imgtool 来创建*_OTA_*_slot.bin 映像、因此它是编译过程中的一个额外文件、不会影响 OTA 升级过程。

    i 根据文档调整了 DL_OTA_image_block_data_size_MAX
    但是、OTA_Server 仍以 32 字节
    进行响应

    您能否将 F3 SDK OTA 客户端的 on_off_switch_ota_client.h 中的 DL_OTA_image_block_data_size_MAX 以及 F2 SDK OTA 服务器的 zcl_ota.h 中的 OTA_MAX_MTU 增加到 64、然后清理并重新编译工程?

    此致、
    Ryan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Ryan
    感谢您的回答。 我还有两个问题要问。
    1.我更改了 OTA_MAX_MTU 和 DL_OTA_IMAGE_BLOCK_DATA_SIZE_MAX、以使速度更快。 是否有其他方法可以提高速度?

    2.升级时,我发现似乎只能从较低版本升级到较高版本,而不能从较高版本升级到较低版本。 它似乎与映像版本有关? 是否有方法从较高版本升级到较低版本

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    1.您可以尝试略微减少   ZB_ZCL_DECLAT_OTA_UPDATE_ATTRIB_list 的 QUERY_TIMER 参数(即示例中的 DL_OTA_UPDATE_QUERY_TIMER_COUNTER 定义)。  另一种选择是减小 Zigbee 应用 SysConfig 文件的 MCUboot 应用模块中的时隙大小、具体取决于最终应用程序构建剩余的闪存大小、但是 MCUboot 应用程序本身也需要了解这些区域大小。

    2.您可以从 OtaServer 工具的“选项“选项卡中禁用“版本检查映像文件“,并同样禁用应用程序代码中的任何版本检查(如果存在)。

    此致、
    Ryan