新增获取imei
authorp15692025051 <846603105@qq.com>
Wed, 7 May 2025 08:58:06 +0000 (16:58 +0800)
committerp15692025051 <846603105@qq.com>
Wed, 7 May 2025 08:58:06 +0000 (16:58 +0800)
2.code/aicos/app/AI_AMP_2_5/AI_AMP_2_5.c
2.code/aicos/app/AI_AMP_2_5/AI_AMP_2_5.h

index e8d54b7..f24708f 100644 (file)
@@ -20,6 +20,7 @@
 #include "opus/guixin/opus_interface.h"
 #include "dev_authentication.h"
 // #include "opus/include/opus.h"
+char dev_imei[20] = {0};
 typedef enum
 {
     inbound_attributes_format_PCM,
@@ -111,6 +112,13 @@ int play_data_len = 0;
 void VC_Play_End(void);
 //打开音频播放
 void VC_Play_Start(void);
+int bk_get_imei(char *imei)
+{
+    if(imei == NULL)
+        return -1;
+    strcpy(imei,dev_imei);
+    return 0;
+}
 int bk_printf(const char *format, ...)
 {
     int ret=0;
@@ -1359,7 +1367,10 @@ static void AI_AMP_2_5_task(void *thread_input)//做逻辑线程
         bk_printf("AI_AMP_2_5_init 等待注网..... \n");
         aos_sleep(1000);
     }
+    aic_srv_tele_radio_get_current_slot_imei_sync(dev_imei);
+    bk_printf("IMEI:%s",dev_imei);
     active_md5_sign_demo();
+    
     aic_network_enable_pdp_nic_capdump();//打开网络调试log
     char *tts_str = "你好!我是小瑞";
     VC_TTS_Play(tts_str);//开启vc播放tts
index 65f84ef..d7bfdf3 100644 (file)
@@ -61,4 +61,5 @@ int bk_printf(const char *format, ...);
 void bk_print_hex(u8 *data,int data_len);
 //用于定时器打印
 int bk_msg_printf(const char *format, ...);
-aos_status AI_AMP_MSG_put(const char *data,u32 len,AI_AMP_MSG_Type MSG_Type);
\ No newline at end of file
+aos_status AI_AMP_MSG_put(const char *data,u32 len,AI_AMP_MSG_Type MSG_Type);
+int bk_get_imei(char *imei);
\ No newline at end of file