From: SnickerSun Date: Thu, 31 Oct 2024 03:47:21 +0000 (+0800) Subject: 默认cat1 修改通话音量为8 X-Git-Tag: fd230_release_V1.3.102~152^2^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=750f1583a8cb3f87cdd443be9165d9851ddcaa17;p=mirrors%2FFD230.git 默认cat1 修改通话音量为8 --- diff --git a/cat1modem/src/cat1Service.py b/cat1modem/src/cat1Service.py index f80e24d18..ecaa9d40d 100644 --- a/cat1modem/src/cat1Service.py +++ b/cat1modem/src/cat1Service.py @@ -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): diff --git a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/system/cat1ota/cat1Service.py b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/system/cat1ota/cat1Service.py index f80e24d18..ecaa9d40d 100644 --- a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/system/cat1ota/cat1Service.py +++ b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/system/cat1ota/cat1Service.py @@ -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): diff --git a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230_4part/fs/system/cat1ota/cat1Service.py b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230_4part/fs/system/cat1ota/cat1Service.py index f80e24d18..ecaa9d40d 100644 --- a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230_4part/fs/system/cat1ota/cat1Service.py +++ b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230_4part/fs/system/cat1ota/cat1Service.py @@ -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):