//开始播放开机动画,并启动ohos系统\r
ohos_startup();\r
#endif\r
-// #ifdef CUSTOM_UTILS\r
-// startup_post_init();\r
-// #endif\r
+#ifdef CUSTOM_UTILS\r
+ startup_post_init();\r
+#endif\r
set_startup_finish_flag();\r
}\r
\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "type = %d", type);
#ifdef SUPPORT_BLE_SERVICE
streamingRecordAndSend_AI(type);//实时发送录音数据
+ #endif
#else
std::string audioPath = AiVoiceModel::GetInstance().GetAIAudioPath();
if (uapi_delete_files(audioPath.c_str())) // 先删除文件
#endif
uapi_save_runtime_log(RUNTIME_LOG_RECORD_START_AI);//TOOD*
AudioCaptureSample(6, (const char **)defaultArgs);
-#endif
#endif
}
return;
bool OnDrag(UIView& view, const DragEvent& event) override;\r
bool OnDragEnd(UIView& view, const DragEvent& event) override;\r
bool OnKeyAct(UIView &view, const KeyEvent &event) override;\r
- void OnStart() override;\r
- void OnPause() override;\r
- void OnResume() override;\r
void OnStop() override;\r
void ClickRescanButton(void);\r
void ClickNewEquipmentButton(void);\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothPresenter::~BluetoothPresenter");\r
}\r
\r
-void BluetoothPresenter::OnStart()\r
-{\r
- Presenter<MainBluetoothView>::OnStart();\r
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothPresenter::On Start ");\r
-}\r
-\r
-void BluetoothPresenter::OnPause(void) {}\r
-\r
-void BluetoothPresenter::OnResume(void) {}\r
-\r
void BluetoothPresenter::OnStop(void)\r
{\r
BluetoothEarPhoneView *bluetoothEarPhoneView = BluetoothEarPhoneView::GetInstance();\r
}
/* ------------------------------- AI录音数据上传接口 ------------------------------- */
-#define AI_RECORD_TEST 0 //若需要调试可以打开该宏
+#define AI_RECORD_TEST 1 //若需要调试可以打开该宏
#ifdef SUPPORT_BLE_SERVICE
#include "bleService.h"
static uint32_t AI_audio_size=0;
{
#ifdef SUPPORT_BLE_SERVICE
PRINT("stop custom protocol classic bt ble service !\r\n");
-#ifdef FD230_COMPONENT
+// #ifdef FD230_COMPONENT
bluetooth_close_all();
-#endif
+// #endif
#endif
//if(!uapi_dev_runtime_get_saveele_status())
// cm_initializeVoLTECall();
//initialize4GCapability();
//initializeMotionRecognition();
-#ifdef FD230_COMPONENT
cm_initBluetoothDeviceList();
-#endif
LOS_Msleep(5000);
#endif
#endif
- ble_SOS_data_init();
+ // ble_SOS_data_init();//开启会死机需适配
#ifdef SUPPORT_CAT1_SERVICE
// up_report_timer();
#endif
read_jsonHistory_weather();
- ota_updata_init();
+ // ota_updata_init();//开启会死机需适配
#ifdef FD230_COMPONENT
system_init_uart();//配置uartat