默认cat1 修改通话音量为8
authorSnickerSun <snickersun@163.com>
Thu, 31 Oct 2024 03:47:21 +0000 (11:47 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 31 Oct 2024 03:47:21 +0000 (11:47 +0800)
cat1modem/src/cat1Service.py
code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/system/cat1ota/cat1Service.py
code/sdk/build/config/target_config/brandy/mk_fs_image/fd230_4part/fs/system/cat1ota/cat1Service.py

index f80e24d..ecaa9d4 100644 (file)
@@ -50,6 +50,7 @@ import request
 import ql_fs
 import pm
 import sms
+
 from usr.EventMesh import eventMesh
 
 from usr.telecom_dmp import telecomDmpCb
@@ -73,7 +74,7 @@ sms.setCallback(msg_cb)#sms注册回调
 CAT1_SERVICE_HEAD = 'FE' #固定head 
 
 PROJECT_NAME = "Cat1SlipUDPService"
-PROJECT_VERSION = "PY_SRV_V14"
+PROJECT_VERSION = "PY_SRV_V15"
 CONFIG_JSON="/usr/system_config.json"
 CURRENT_APP_TYPE="pysrv"
 
@@ -82,6 +83,9 @@ CURRENT_APP_TYPE="pysrv"
 log.basicConfig(level=log.INFO)
 cat1service_log = log.getLogger("cat1service")
 
+#设置通话音量
+voiceCall.setVolume(8)
+print("voice call volume {}".format(voiceCall.getVolume()))
 # lpm_fd = pm.create_wakelock("system_lock", len("system_lock"))
 pm.autosleep(1)
 # pm.wakelock_lock(lpm_fd)
@@ -96,7 +100,7 @@ def get_default_versionvalue_by_py(app_type):
     elif (app_type == "pyota"):
         return  "PY_OTA_V14"
     elif (app_type == "pysrv"):
-        return  "PY_SRV_V14"
+        return  "PY_SRV_V15"
 
 #如果没有configfile则创建它
 if not ql_fs.path_exists(CONFIG_JSON):
@@ -287,6 +291,7 @@ class Cat1Service:
     def bootup_msg_to_bt(self):
         modem_ver = modem.getDevFwVersion() 
         self.reply_cmd('0F',"BOOTUP@pyVer:{}@modemVer:{}".format(PROJECT_VERSION,modem_ver))
+        self.reply_cmd('0F',"VOLUME:{}".format(voiceCall.getVolume()))
 
     def btmcu_cmd_handler(self,cmd,parm):
         
index f80e24d..ecaa9d4 100644 (file)
@@ -50,6 +50,7 @@ import request
 import ql_fs
 import pm
 import sms
+
 from usr.EventMesh import eventMesh
 
 from usr.telecom_dmp import telecomDmpCb
@@ -73,7 +74,7 @@ sms.setCallback(msg_cb)#sms注册回调
 CAT1_SERVICE_HEAD = 'FE' #固定head 
 
 PROJECT_NAME = "Cat1SlipUDPService"
-PROJECT_VERSION = "PY_SRV_V14"
+PROJECT_VERSION = "PY_SRV_V15"
 CONFIG_JSON="/usr/system_config.json"
 CURRENT_APP_TYPE="pysrv"
 
@@ -82,6 +83,9 @@ CURRENT_APP_TYPE="pysrv"
 log.basicConfig(level=log.INFO)
 cat1service_log = log.getLogger("cat1service")
 
+#设置通话音量
+voiceCall.setVolume(8)
+print("voice call volume {}".format(voiceCall.getVolume()))
 # lpm_fd = pm.create_wakelock("system_lock", len("system_lock"))
 pm.autosleep(1)
 # pm.wakelock_lock(lpm_fd)
@@ -96,7 +100,7 @@ def get_default_versionvalue_by_py(app_type):
     elif (app_type == "pyota"):
         return  "PY_OTA_V14"
     elif (app_type == "pysrv"):
-        return  "PY_SRV_V14"
+        return  "PY_SRV_V15"
 
 #如果没有configfile则创建它
 if not ql_fs.path_exists(CONFIG_JSON):
@@ -287,6 +291,7 @@ class Cat1Service:
     def bootup_msg_to_bt(self):
         modem_ver = modem.getDevFwVersion() 
         self.reply_cmd('0F',"BOOTUP@pyVer:{}@modemVer:{}".format(PROJECT_VERSION,modem_ver))
+        self.reply_cmd('0F',"VOLUME:{}".format(voiceCall.getVolume()))
 
     def btmcu_cmd_handler(self,cmd,parm):
         
index f80e24d..ecaa9d4 100644 (file)
@@ -50,6 +50,7 @@ import request
 import ql_fs
 import pm
 import sms
+
 from usr.EventMesh import eventMesh
 
 from usr.telecom_dmp import telecomDmpCb
@@ -73,7 +74,7 @@ sms.setCallback(msg_cb)#sms注册回调
 CAT1_SERVICE_HEAD = 'FE' #固定head 
 
 PROJECT_NAME = "Cat1SlipUDPService"
-PROJECT_VERSION = "PY_SRV_V14"
+PROJECT_VERSION = "PY_SRV_V15"
 CONFIG_JSON="/usr/system_config.json"
 CURRENT_APP_TYPE="pysrv"
 
@@ -82,6 +83,9 @@ CURRENT_APP_TYPE="pysrv"
 log.basicConfig(level=log.INFO)
 cat1service_log = log.getLogger("cat1service")
 
+#设置通话音量
+voiceCall.setVolume(8)
+print("voice call volume {}".format(voiceCall.getVolume()))
 # lpm_fd = pm.create_wakelock("system_lock", len("system_lock"))
 pm.autosleep(1)
 # pm.wakelock_lock(lpm_fd)
@@ -96,7 +100,7 @@ def get_default_versionvalue_by_py(app_type):
     elif (app_type == "pyota"):
         return  "PY_OTA_V14"
     elif (app_type == "pysrv"):
-        return  "PY_SRV_V14"
+        return  "PY_SRV_V15"
 
 #如果没有configfile则创建它
 if not ql_fs.path_exists(CONFIG_JSON):
@@ -287,6 +291,7 @@ class Cat1Service:
     def bootup_msg_to_bt(self):
         modem_ver = modem.getDevFwVersion() 
         self.reply_cmd('0F',"BOOTUP@pyVer:{}@modemVer:{}".format(PROJECT_VERSION,modem_ver))
+        self.reply_cmd('0F',"VOLUME:{}".format(voiceCall.getVolume()))
 
     def btmcu_cmd_handler(self,cmd,parm):