From 588a99a2ec5ddf3abd49bd6d63b1a87d327e9128 Mon Sep 17 00:00:00 2001 From: d15521469561 Date: Tue, 16 May 2023 14:49:29 +0800 Subject: [PATCH] =?utf8?q?=E6=8F=90=E4=BA=A4=E8=A1=A5=E5=85=85=E6=8A=A5?= =?utf8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../microPython/ports/quectel/core/mgr.py | 35 +++++++++--------- .../images/firmware_base_release_pack.zip | Bin 5359587 -> 5359587 bytes 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/mgr.py b/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/mgr.py index 91915a34..4ae047a6 100644 --- a/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/mgr.py +++ b/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/mgr.py @@ -758,15 +758,13 @@ class DeviceInfoManager(Abstract): self.sms_full_flag=0 if msg_nums >= 50: EventMesh.publish("load_screen", {"screen": "message_full"}) - - if EventMesh.publish(constants.EVENT.GET_CONNECT) == 1 and battery[1] != 1: + get_temp_time = EventMesh.publish("get_temp_time") + get_temp_state = EventMesh.publish("get_temp_state") - get_temp_time = EventMesh.publish("get_temp_time") - get_temp_state = EventMesh.publish("get_temp_state") + if EventMesh.publish(constants.EVENT.GET_CONNECT) == 1 and battery[1] != 1: # print("get_temp_time:{} self.temp_one_state:{}".format(get_temp_time,self.temp_one_state)) if get_temp_time != None:#定时测量体温 - if get_temp_time > 0: if get_temp_state != None: if get_temp_state == 0 or get_temp_state == 2 or get_temp_state == 3 : @@ -855,7 +853,6 @@ class DeviceInfoManager(Abstract): EventMesh.publish("set_temp_state",0) EventMesh.publish(constants.PROTOCOL.TEMP_SEND,[tmp_f_tmp,tmp_d_tmp]) - if hr_time != None: # print("hr......01....{}\r\n".format(hr_time)) if hr_time > 0: @@ -1116,18 +1113,20 @@ class DeviceInfoManager(Abstract): elif self.get_spo2_state != 0: EventMesh.publish("set_spo2_state",0)#2代表后台进入测试 EventMesh.publish(constants.EVENT.STOP_BLOOD_OXYGEN) - if get_temp_state != 0: - self.temp_one_state = 0 - self.temp_state = 0 - temp = EventMesh.publish(constants.EVENT.GET_TEMP) - tmp_f = str(temp).split('.')[0] - tmp_f_tmp = int(tmp_f) - - tmp_d = str(temp).split('.')[1][:1] - tmp_d_tmp = int(tmp_d) - EventMesh.publish("set_temp_state",0) - EventMesh.publish(constants.PROTOCOL.TEMP_SEND,[tmp_f_tmp,tmp_d_tmp]) - EventMesh.publish(constants.EVENT.STOP_TEMP) + + if get_temp_time != None: + if get_temp_state != 0: + self.temp_one_state = 0 + self.temp_state = 0 + temp = EventMesh.publish(constants.EVENT.GET_TEMP) + tmp_f = str(temp).split('.')[0] + tmp_f_tmp = int(tmp_f) + + tmp_d = str(temp).split('.')[1][:1] + tmp_d_tmp = int(tmp_d) + EventMesh.publish("set_temp_state",0) + EventMesh.publish(constants.PROTOCOL.TEMP_SEND,[tmp_f_tmp,tmp_d_tmp]) + EventMesh.publish(constants.EVENT.STOP_TEMP) self.SENSOR_time = time_tmp self.HR_Onestate = 0 self.HR_OneTime = 0 diff --git a/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip b/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip index 0101a61af41cc2398d6a1ade58cc68ac8d40bdd4..6ea890b932735a382171841d9d008038d678f57a 100644 GIT binary patch delta 484 zcmY+lN>^PS`r9zK-gGAb?)DfN91{p)5>uGQ3}!Khd4#Zl zMLTPR&%OL-sb&~USjGxgv4(X-uz@Hxu>~F5*g?!z&G^}U=}@W|$1e7;j{_udh$9^1 z#7-5HKi?EGx+6l~*!9PgWBtm(3~ApvA}yC@?wruI%dhwHtRgcPIq?`MuT%T4Clj&~ bmHd(jK ziFcr}rla-(d?B%*c=8qJd?z`T$4{k#=ND56-sWsGZ<{g{xX^@Vw7?AyTG57fbU;NX zy5NNm-ROZI8hX)(ehgp`Lm0*g0vN>@#xa3OOko-`n8h6C5yS!(v4mx;U=?dvM+h6( zbZj$xt@2;qmkDDF+t@(_yVye%`-mZq1L!!!5sn>S#<+T@9kQwhPH>7doFjn?Byow9 zV^!1NUla;@QG`@Oe@}koe`G65I`>79lWQ|~N$6VS_pLr_$ihuYJO%3O)c)(~gsj9Q Zza&W>iMqEeqFOffTCX>xlPQZk*B{<$$XEaX -- 2.17.1