The invention belongs to the field of industrial gateway control, and discloses a ladder power-saving method of industrial Internet of Things gateway, which comprises the following steps: step 1: setting the time interval Tx of battery data collection in the operation cycle of Wx to Wx_1 and the time Ta needed to collect data once; wherein the number of gates in the collection is set; The power at the time is P, and the power at the interval between the two data collections is Ps; Step 2: When the gateway is powered by a battery, the current battery power data Wm is obtained; Step 3: Set the current data collection interval Tm according to Wm, and then calculate the power according to Tm, Ps, Ta, P, Wm, Wm 1. The number of times the battery runs from Wm to Wm_1 Xm; Wm_Wm_1 = (Tm*Ps+Ta*P)*Xm; Step 4: Continuously obtain the current battery power data until the battery power data is Wm_1; Step 5: Repeat step 2_4. The object of the present invention is to provide a ladder power saving method for industrial Internet of Things gateway, which can effectively improve the service ability of the gateway.
【技术实现步骤摘要】
一种工业物联网网关阶梯省电的方法
本专利技术涉及工业网关控制领域,具体为一种工业物联网网关阶梯省电的方法。
技术介绍
CN201711307575.8公开了一种有效预防断电的网关设备,包括网关设备本体,网关设备本体外部包覆有壳体,所述网关设备本体通过导线连接有插头,在导线上还设有电源适配器,所述壳体的上表面连接有一层光能发电层,所述光能发电层连接有太阳能蓄电池,太阳能蓄电池连接有控制器,所述控制器与电源适配器相连。该网关设备续航时间长,能够在停电状态下继续工作,提升网关设备使用的方便性。需要注意的是,在很多应用环境中,并不是都适于配备太阳能发电单元的。在这种情况下,如何提高网关的续航能力,需要有一套合理的网关的数据采集方法。
技术实现思路
本专利技术的目的在于提供一种有效提高网关续航能力的工业物联网网关阶梯省电的方法。为实现上述目的,本专利技术提供如下技术方案:一种工业物联网网关阶梯省电的方法,包括如下步骤:步骤1:设定电池在电量为Wx~Wx-1的运行周期内的数据收集的时间间隔Tx以及收集一次数据所需要的时间Ta;其中,在网关在收集数据时的功率为P,网关在两次数据收集之间的间隔时的功率为Ps;步骤2:当所述的网关采用电池供电的情况下,获取当前电池的电量数据Wm;步骤3:根据Wm设定当前的数据收集的时间间隔Tm,然后根据Tm、Ps、Ta、P、Wm、Wm-1计算电量从Wm降低至Wm-1期间运行的次数Xm;Wm-Wm-1=(Tm*Ps+Ta*P)*Xm;步骤4:不断获取当前电池电量数据直至电池电量数据为Wm-1;步骤5:重复步骤2-4,直至电池电量耗尽或外设电源恢复 ...
【技术保护点】
1.一种工业物联网网关阶梯省电的方法,其特征在于,包括如下步骤:步骤1:设定电池在电量为Wx~Wx‑1的运行周期内的数据收集的时间间隔Tx以及收集一次数据所需要的时间Ta;其中,在网关在收集数据时的功率为P,网关在两次数据收集之间的间隔时的功率为Ps;步骤2:当所述的网关采用电池供电的情况下,获取当前电池的电量数据Wm;步骤3:根据Wm设定当前的数据收集的时间间隔Tm,然后根据Tm、Ps、Ta、P、Wm、Wm‑1计算电量从Wm降低至Wm‑1期间运行的次数Xm;Wm‑Wm‑1=(Tm*Ps+Ta*P)*Xm;步骤4:不断获取当前电池电量数据直至电池电量数据为Wm‑1;步骤5:重复步骤2‑4,直至电池电量耗尽或外设电源恢复供电。
【技术特征摘要】
1.一种工业物联网网关阶梯省电的方法,其特征在于,包括如下步骤:步骤1:设定电池在电量为Wx~Wx-1的运行周期内的数据收集的时间间隔Tx以及收集一次数据所需要的时间Ta;其中,在网关在收集数据时的功率为P,网关在两次数据收集之间的间隔时的功率为Ps;步骤2:当所述的网关采用电池供电的情况下,获取当前电池的电量数据Wm;步骤3:根据Wm设定当前的数据收集的时间间隔Tm,然后根据Tm、Ps、Ta、P、Wm、Wm-1计算电量从Wm降低至Wm-1期间运行的次数Xm;Wm-Wm-1=(Tm*Ps+Ta*P)*Xm;步骤4:不断获取当前电池电量数据直至电池电量数据为Wm-1;步骤...
【专利技术属性】
技术研发人员:陈再明,陈小军,陶洋,
申请(专利权)人:广州鲁邦通物联网科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。