Merge #2598 into sdk650pathc0423 from refs/changes/2598/head 2601/target/2
author胡传军 <1224667075@qq.com>
Fri, 24 Oct 2025 11:15:42 +0000 (11:15 +0000)
committersnickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
Fri, 24 Oct 2025 11:15:42 +0000 (11:15 +0000)
Code review from 胡传军

* refs/changes/2598/head: (10 commits squashed)

  - 增加优化 EG810 雷鸟对话

  - Merge branch &#39;sdk650pathc0423&#39; of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk650pathc0423

  - Merge branch &#39;sdk650pathc0423&#39; of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk650pathc0423

  - Merge branch &#39;sdk650pathc0423&#39; of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk650pathc0423

  - 修改雷鸟 播放卡顿问题

  - sos修改

  - 合并

  - 修改 cat1 python的tcp控制逻辑

  - Merge branch &#39;sdk650pathc0423&#39; of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk650pathc0423

  - 同步雷鸟修改

Signed-off-by: aliyun8003852482 <1224667075@qq.com>
Reviewed-by: snickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
Merged-by: snickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/2598
cat1modem/leiniao/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_LN_PY_SRV_V25_20250919-1516_20251024-1731.zip [new file with mode: 0644]
cat1modem/n9/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_W9_20251024-1729.zip [new file with mode: 0644]
cat1modem/src/LeiNiao/cat1Service.py
cat1modem/src/LeiNiao/tcpserver.py
cat1modem/src/cat1Service.py
cat1modem/src/tcpserver.py
code/sdk/application/wearable/evb/service/msg_center/src/notify/makephone_notification.cpp
code/sdk/application/wearable/fd230/service/msg_center/src/notify/makephone_notification.cpp
code/sdk/application/wearable/fd272/service/msg_center/src/notify/makephone_notification.cpp
code/sdk/application/wearable/n9/service/msg_center/src/notify/makephone_notification.cpp
code/sdk/application/wearable/n9/service/msg_center/src/notify/phone_crt.cpp

diff --git a/cat1modem/leiniao/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_LN_PY_SRV_V25_20250919-1516_20251024-1731.zip b/cat1modem/leiniao/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_LN_PY_SRV_V25_20250919-1516_20251024-1731.zip
new file mode 100644 (file)
index 0000000..5bcc9c1
Binary files /dev/null and b/cat1modem/leiniao/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_LN_PY_SRV_V25_20250919-1516_20251024-1731.zip differ
diff --git a/cat1modem/n9/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_W9_20251024-1729.zip b/cat1modem/n9/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_W9_20251024-1729.zip
new file mode 100644 (file)
index 0000000..dc011e4
Binary files /dev/null and b/cat1modem/n9/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_TEST0725_W9_20251024-1729.zip differ
index 2491cac..aca9d61 100644 (file)
@@ -57,6 +57,7 @@ from usr.EventMesh import eventMesh
 from usr.httpota import httpota
 from usr.telecom_dmp import telecomDmpCb
 from usr.china_mobile_dmp import chinamobileCb
+from usr.tcpserver import TcpServiceInit
 
 from usr.china_mobile_ai_regulation import aiRegulation
 # 设置日志输出级别
@@ -414,6 +415,9 @@ class Cat1Service:
             # UDP_MSG_OTA
         elif cmd == "1C":# 
             self.read_dev_ai_id()
+        elif cmd== "1D":
+            TcpService = TcpServiceInit()
+            TcpService.start_socket_thread()
         elif cmd == "AC":#
             if self.ack_sem==1:
                 self.ack_sem=0
index d107056..aa0a0e5 100644 (file)
@@ -84,8 +84,7 @@ class TcpServiceInit:
         self.conn= None
         self.__sock_file = None
         self.__sock_file = self.__socket_file_init()
-        self.__thread_file = _thread.start_new_thread(self.__Socket_File_Thread, ())
-        self.conn_thread=_thread.start_new_thread(self._client_conn_proc, ())
+
 
     def __pack_tlv_format(self, head, content):
         head1 = head
@@ -596,7 +595,12 @@ class TcpServiceInit:
                     
     def otaTimeOut(self,*argc):
         clog.info("重启成功!!!!!!!!\r\n")
+        
+    def start_socket_thread(self):
+        __thread_file = _thread.start_new_thread(self.__Socket_File_Thread, ())
+        conn_thread=_thread.start_new_thread(self._client_conn_proc, ())
+
 
-TcpService = TcpServiceInit()
+# TcpService = TcpServiceInit()
 
 
index 5551b2c..979553f 100644 (file)
@@ -55,6 +55,7 @@ import ujson
 from usr.EventMesh import eventMesh
 
 from usr.httpota import httpota
+from usr.tcpserver import TcpServiceInit
 # from usr.telecom_dmp import telecomDmpCb
 # from usr.china_mobile_dmp import chinamobileCb
 
@@ -81,7 +82,7 @@ sms.setCallback(msg_cb)#sms注册回调
 CAT1_SERVICE_HEAD = 'FE' #固定head 
 
 PROJECT_NAME = "Cat1SlipUDPService"
-PROJECT_VERSION = "PY_SRV_V21"
+PROJECT_VERSION = "PY_SRV_V22"
 CONFIG_JSON="/usr/system_config.json"
 CURRENT_APP_TYPE="pysrv"
 
@@ -408,6 +409,9 @@ class Cat1Service:
             # UDP_MSG_OTA
         elif cmd == "1C":# 
             self.read_dev_ai_id()
+        elif cmd== "1D":
+            TcpService = TcpServiceInit()
+            TcpService.start_socket_thread()
         elif cmd == "AC":#
             if self.ack_sem==1:
                 self.ack_sem=0
@@ -916,7 +920,7 @@ class Cat1Service:
                 clog.info("Socket_SEND_Thread data:{} {}".format(data[0],data[1]))
                 count=20
                 
-                while count and self.ack_sem :
+                while count & self.ack_sem :
                     utime.sleep_ms(1)
                     count=count-1
                     # if data[2]:
index 080331b..aa0a0e5 100644 (file)
@@ -84,8 +84,7 @@ class TcpServiceInit:
         self.conn= None
         self.__sock_file = None
         self.__sock_file = self.__socket_file_init()
-        self.__thread_file = _thread.start_new_thread(self.__Socket_File_Thread, ())
-        self.conn_thread=_thread.start_new_thread(self._client_conn_proc, ())
+
 
     def __pack_tlv_format(self, head, content):
         head1 = head
@@ -153,7 +152,7 @@ class TcpServiceInit:
                 self.conn=cli_conn
                 clog.info('[serveice] accept a client: %s, %s' % (cli_ip_addr, cli_port))
             except :
-                utime.sleep_ms(2000) 
+                utime.sleep_ms(2000)
     
     def cat1FileTimerCb(self,*argc):
         clog.info("timer test\r\n")
@@ -596,7 +595,12 @@ class TcpServiceInit:
                     
     def otaTimeOut(self,*argc):
         clog.info("重启成功!!!!!!!!\r\n")
+        
+    def start_socket_thread(self):
+        __thread_file = _thread.start_new_thread(self.__Socket_File_Thread, ())
+        conn_thread=_thread.start_new_thread(self._client_conn_proc, ())
+
 
-TcpService = TcpServiceInit()
+# TcpService = TcpServiceInit()
 
 
index c0929b0..1c150c2 100644 (file)
@@ -769,6 +769,10 @@ bool CallViewEventListener::OnClick(UIView& view, const ClickEvent& event)
             return false;\r
         }\r
     }\r
+    if (strcmp(view.GetViewId(), "SOS_FAIL") == 0) {\r
+        NotificationManager::GetInstance()->StopNotify();\r
+    }\r
+\r
     return true;\r
 }\r
 }  // namespace OHOS\r
index 118bb32..8d3b492 100644 (file)
@@ -774,6 +774,9 @@ bool CallViewEventListener::OnClick(UIView& view, const ClickEvent& event)
             return false;\r
         }\r
     }\r
+    if (strcmp(view.GetViewId(), "SOS_FAIL") == 0) {\r
+        NotificationManager::GetInstance()->StopNotify();\r
+    }\r
     return true;\r
 }\r
 }  // namespace OHOS\r
index 118bb32..8d3b492 100644 (file)
@@ -774,6 +774,9 @@ bool CallViewEventListener::OnClick(UIView& view, const ClickEvent& event)
             return false;\r
         }\r
     }\r
+    if (strcmp(view.GetViewId(), "SOS_FAIL") == 0) {\r
+        NotificationManager::GetInstance()->StopNotify();\r
+    }\r
     return true;\r
 }\r
 }  // namespace OHOS\r
index 118bb32..8d3b492 100644 (file)
@@ -774,6 +774,9 @@ bool CallViewEventListener::OnClick(UIView& view, const ClickEvent& event)
             return false;\r
         }\r
     }\r
+    if (strcmp(view.GetViewId(), "SOS_FAIL") == 0) {\r
+        NotificationManager::GetInstance()->StopNotify();\r
+    }\r
     return true;\r
 }\r
 }  // namespace OHOS\r