Merge branch 'sdk650pathc0423' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0...
authorCaisking <Casiking@zhihuishixun.com>
Fri, 26 Sep 2025 06:56:02 +0000 (14:56 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Fri, 26 Sep 2025 06:56:02 +0000 (14:56 +0800)
1  2 
code/sdk/zhihui/leiniao/imsl_ln/leiniao_api_at.c
code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.cpp
code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.h

@@@ -1352,48 -1419,8 +1424,50 @@@ static uint32_t ln_get_device_version_a
      printf("deviceVersion: %s\n", deviceVersion);
      return ERRCODE_SUCC;
  }
 +
 +/* AT^LN_SET_FPS - 设置帧率 */
 +static uint32_t ln_set_fps_at(uint8_t *para, uint32_t paraLen, char *strCommonCmd)
 +{
 +    VAD_UNUSED(strCommonCmd);
 +    
 +    if (para == NULL || paraLen == 0) {
 +        printf("[LN][SET_FPS] Error: No parameter provided\n");
 +        printf("Usage: AT^LN_SET_FPS=<fps_value>\n");
 +        printf("Example: AT^LN_SET_FPS=60\n");
 +        return ERRCODE_FAIL;
 +    }
 +    
 +    // 解析参数
 +    char fps_str[16] = {0};
 +    if (paraLen >= sizeof(fps_str)) {
 +        printf("[LN][SET_FPS] Error: Parameter too long\n");
 +        return ERRCODE_FAIL;
 +    }
 +    
 +    memcpy(fps_str, para, paraLen);
 +    fps_str[paraLen] = '\0';
 +    
 +    // 转换为整数
 +    int fps_value = atoi(fps_str);
 +    
 +    // 验证帧率范围 (1-120 FPS)
 +    if (fps_value < 1 || fps_value > 120) {
 +        printf("[LN][SET_FPS] Error: FPS value must be between 1 and 120, got: %d\n", fps_value);
 +        return ERRCODE_FAIL;
 +    }
 +    
 +    printf("[LN][SET_FPS] Setting FPS to: %d\n", fps_value);
 +    
 +    // 调用统一的C接口设置帧率
 +    do_set_fps((uint32_t)fps_value);
 +    printf("[LN][SET_FPS] Successfully set FPS to: %d\n", fps_value);
 +    return ERRCODE_SUCC;
 +}
 +
 +/* AT^LN_GET_FPS - 获取当前帧率 */
 +static uint32_t ln_get_fps_at(uint8_t *para, uint32_t paraLen, char *strCommonCmd)
+ /* AT^LN_DOWNLOAD_EMOJI */
+ static uint32_t ln_download_emoji_at(uint8_t *para, uint32_t paraLen, char *strCommonCmd)
  {
      VAD_UNUSED(para);
      VAD_UNUSED(paraLen);