WO2019024592A1 - Temperature-information upload method, apparatus, system, electronic device, and storage medium - Google Patents

Temperature-information upload method, apparatus, system, electronic device, and storage medium Download PDF

Info

Publication number
WO2019024592A1
WO2019024592A1 PCT/CN2018/089225 CN2018089225W WO2019024592A1 WO 2019024592 A1 WO2019024592 A1 WO 2019024592A1 CN 2018089225 W CN2018089225 W CN 2018089225W WO 2019024592 A1 WO2019024592 A1 WO 2019024592A1
Authority
WO
WIPO (PCT)
Prior art keywords
temperature information
temperature
current
electronic device
preset
Prior art date
Application number
PCT/CN2018/089225
Other languages
French (fr)
Chinese (zh)
Inventor
贺长富
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2019024592A1 publication Critical patent/WO2019024592A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Definitions

  • the purpose of the embodiments of the present application is to provide a method, a device, a system, an electronic device, and a storage medium for uploading temperature information, so as to reduce the number of uploading of temperature information and reduce the frequency of occupying network bandwidth.
  • the embodiment of the present application provides a temperature information uploading method, which is applied to an electronic device, and the method includes:
  • the step of determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range includes:
  • the method further includes:
  • the reference temperature information is: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
  • the embodiment of the present application further provides a temperature information uploading device, which is applied to an electronic device, where the device includes:
  • a first determining module configured to determine whether a fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range
  • a first uploading module configured to upload the current temperature information to a server when the first determining module determines that the result is yes;
  • the first rejecting uploading module is configured to refuse to upload the current temperature information to the server when the first determining module determines that the result is negative.
  • the temperature collection area is a monitoring area of the electronic device, and the temperature collection area includes at least two sub-temperature collection areas, and the first determining module includes:
  • a determining unit configured to determine temperature information of each sub-temperature collecting area of the temperature collecting area from the current temperature information, as first temperature information of each sub-temperature collecting area
  • a first acquiring unit configured to obtain reference temperature information of each sub-temperature collecting area in the reference temperature information, as second temperature information of each sub-temperature collecting area;
  • a first calculating unit configured to calculate, according to the first temperature information and the second temperature information of each sub-temperature collecting region, a first temperature difference corresponding to each sub-temperature collecting region;
  • a first determining unit configured to determine whether the calculated first temperature difference has a temperature difference exceeding a first preset temperature range
  • the first determining module includes:
  • a second calculating unit configured to calculate an average temperature corresponding to the current temperature information, as a first average temperature
  • a second obtaining unit configured to obtain an average temperature corresponding to the reference temperature information, as a second average temperature
  • a third calculating unit configured to obtain a second temperature difference according to the first average temperature and the second average temperature
  • the device further includes:
  • a second determining module configured to: when the first determining module determines that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed a preset fluctuation range, determine that the uploading of the temperature information to the server last time is uploaded Whether the time interval between the time and the current time reaches a preset time threshold;
  • a second uploading module configured to upload the current temperature information to the server when the determining result of the second determining module is reached;
  • the reference temperature information is: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
  • the embodiment of the present application further provides a temperature information uploading system, where the system includes: an electronic device and a server;
  • the electronic device is configured to upload temperature information to the server according to the temperature information uploading method provided by the embodiment of the present application;
  • the server is configured to receive temperature information uploaded by the electronic device.
  • the server is further configured to: after receiving the temperature information uploaded by the electronic device, collect the electronic device that has received the preset time period before the current time. The number of times of the temperature information; determining whether the number of times is greater than a preset number of thresholds, and if so, discontinuing receiving temperature information uploaded by the electronic device.
  • the manner in which the electronic device obtains the current temperature information of the temperature collection area may be: the electronic device itself carries the temperature collecting device, and the temperature collecting device collects the temperature information and transmits the signal to the processor of the electronic device; the electronic device may also be collected by the external temperature.
  • the device collects the temperature information to obtain the current temperature information of the temperature collection area, that is, the external temperature collecting device collects the temperature information of the temperature collection area and transmits the temperature information to the electronic device, and then the electronic device can obtain the temperature collection area transmitted by the external temperature collecting device.
  • An external temperature acquisition device can be understood as a temperature acquisition device that is external to the electronic device. The following is an explanation of the implementation of an electronic device with a temperature acquisition device.
  • step S120 Determine whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range; if yes, execute step S130; if no, perform step S140.
  • the reference temperature information may be: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
  • the preset fluctuation range is a criterion for characterizing the magnitude of change in current temperature information with respect to the reference temperature information.
  • the preset fluctuation range can be a preset value range.
  • the preset fluctuation range needs to be greater than the temperature error range of the electronic device when collecting the temperature information, and the electronic device frequently uploads the temperature information. The situation to avoid affecting the normal operation of the electronic device.
  • the operation and maintenance personnel can obtain the temperature error of the electronic device through the error flag that is provided when the electronic device is shipped from the factory or through the error configuration.
  • the temperature information collected by the electronic device may be one temperature information or a group of temperature information.
  • the temperature information of the collected temperature collection region may have only one temperature information; and for an electronic device with high accuracy, the temperature collection region may include at least two sub-temperature collection regions.
  • the temperature information collected by the electronic device may include temperature information of each sub-temperature collection area.
  • the temperature collection area here generally refers to the area covered by the temperature image collected by the thermal imaging sensor, and the sub-temperature collection area refers to the smaller area obtained by dividing the temperature image according to a certain size.
  • the reference temperature information is a reference temperature information; and the temperature information includes temperature information of each sub-temperature collecting area.
  • the reference temperature information includes reference temperature information of each sub-temperature collection region. Therefore, the fluctuation of the current temperature information with respect to the reference temperature information in the embodiment may be: a difference between a temperature information collected at the current time and a certain reference temperature information; or a group collected at the current time. The overall difference in temperature information relative to a set of reference temperature information.
  • the server may analyze the temperature collection area according to the current temperature information, and obtain an analysis result.
  • the current temperature information may have a larger analysis result for the temperature collection region.
  • the electronic device uploads the current temperature information to the server; if the fluctuation of the current temperature information relative to the reference temperature information does not exceed the preset fluctuation range, it is considered that the current temperature information does not change much with respect to the reference temperature information, and the current temperature is The information has less influence on the analysis result of the temperature collection area, and the electronic device refuses to upload the current temperature information to the server.
  • the electronic device when the electronic device uploads current temperature information to the server, if the current temperature information is a temperature information, the electronic device uploads the temperature information to the server; if the current temperature information is a set of temperature information, the electronic device sends the server to the server. Upload the group temperature information.
  • the electronic device when the reference temperature information is the temperature information uploaded to the server last time, the electronic device adopts a cyclic manner, and the reference temperature compared with the current temperature information is updated once every time. information. For example, after the temperature information is uploaded to the server last time, the electronic device compares the temperature information as the reference temperature information with the current temperature information.
  • the temperature collection area is first divided to obtain a plurality of sub-temperature collection areas, and temperature information of each sub-temperature collection area is separately collected.
  • the temperature collecting region dividing process can be performed only once when the electronic device is turned on, and then each time the temperature information is collected, the divided sub-temperature collecting region is used to obtain each sub-temperature collecting region. Temperature information.
  • the temperature acquisition region division process can also be performed once before each temperature information is acquired.
  • S122a Obtain reference temperature information of each sub-temperature collection region in the reference temperature information as second temperature information of each sub-temperature collection region.
  • the reference temperature information may be: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
  • the electronic device stores the reference temperature information for the first time and stores it locally.
  • the step S122a the electronic device can directly obtain the local temperature information.
  • the reference temperature information is the temperature information uploaded to the server last time
  • the electronic device stores the reference temperature information and stores it locally. Before the temperature information is uploaded to the server next time, the step S122a may be directly performed. Get it locally.
  • the first temperature information and the second temperature information of the sub-temperature collection region are subtracted, and the result obtained after the subtraction operation is subjected to the first specified transformation to obtain The first temperature difference corresponding to the sub-temperature collection area.
  • the first specified transformation may be to multiply the result by the first preset value, or to add the result to the first preset value, which is not specifically limited in this application.
  • the first temperature difference is obtained by subtracting the second temperature information by using the first temperature information.
  • the first temperature difference may be a positive value or a negative value.
  • the first temperature difference may be obtained by calculating an absolute value of the first temperature information and the second temperature information difference.
  • the first preset temperature range may be a change interval from a negative value to a positive value, which may be based on actual conditions. Freely set, for example, the first preset temperature range may be (-3, 3). If the first temperature difference is in an absolute value, the first preset temperature range is a change interval from 0 to a positive value. For example, the first preset temperature range may be (0, 3).
  • S126a Determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
  • each sub-temperature collecting area corresponds to one first temperature information
  • the temperature variation in the temperature collecting area is relatively large.
  • a sub-temperature acquisition area at which time it is determined that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range; when there is no temperature difference exceeding the first preset temperature range among all the first temperature differences It is stated that there is no sub-temperature collecting area in which the temperature change is relatively large in the temperature collecting area, and it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
  • the change of the temperature of the area can be more accurately reflected. Therefore, in this embodiment, by determining the temperature information change of each sub-temperature collecting area, when the temperature is When there is a sub-temperature collection area where the temperature changes greatly in the collection area, the electronic device uploads the temperature information; when there is no sub-temperature collection area where the temperature changes greatly, the electronic device does not upload the temperature information, so the embodiment can be more By specifically determining the temperature change of each sub-temperature collecting region, it is more accurate and effective to determine whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds the preset fluctuation range.
  • FIG. 3 is a second schematic flowchart of determining whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset range according to an embodiment of the present application, where the process includes: Step S121b - step S126b.
  • S121b Calculate an average temperature corresponding to the current temperature information as a first average temperature.
  • the temperature information may be directly determined as the first average temperature.
  • the temperature information is averaged to obtain a first average temperature.
  • S122b Obtain an average temperature corresponding to the reference temperature information as a second average temperature.
  • the reference temperature information when the reference temperature information is a reference temperature information, the reference temperature information may be directly determined as the second average temperature.
  • the reference temperature information is a set of reference temperature information
  • the set of reference temperature information is averaged to obtain a second average temperature.
  • the first average temperature and the second average temperature are subtracted to obtain a second temperature difference. Since the first average temperature may be greater than the second average temperature, the first average temperature may not be greater than the second average temperature. Therefore, when the second average temperature is obtained by subtracting the second average temperature, the second The temperature difference may be positive or negative. Of course, the second temperature difference may be obtained by calculating the absolute value of the first average temperature and the second average temperature difference.
  • the present application is only described by way of example and is not intended to limit the application.
  • the first average temperature and the second average temperature may be subtracted, and the result obtained after the subtraction operation is subjected to a second specified transformation to obtain a second temperature difference.
  • the second specified transformation may be used to multiply the result by the second preset value, or the result is added to the second preset value, which is not specifically limited in this application.
  • the second specified transform may be the same as or different from the first specified transform.
  • the second preset value may be the same as or different from the first preset value.
  • step S124b Determine whether the second temperature difference exceeds a second preset temperature range. If it is exceeded, step S125b is performed; if not, step S126b is performed.
  • the second preset temperature range is a criterion for characterizing the magnitude of the second temperature difference.
  • the second temperature difference exceeds the second preset temperature range, indicating that the second temperature difference is large, indicating that the overall temperature difference between the current temperature information and the reference temperature information in the temperature acquisition region is large; when the second temperature difference does not exceed In the second preset temperature range, it indicates that the second temperature difference is not large, indicating that the overall temperature difference between the current temperature information and the reference temperature information in the temperature acquisition region is not large.
  • the second preset temperature range may be a preset value range.
  • the method further Including steps A1 - A3:
  • the preset time threshold is used to represent the length of the time interval between the uploading time and the current time at which the temperature information was last uploaded to the server.
  • the preset time threshold may be freely set in advance according to a specific situation, for example, the preset time threshold may be 1 hour.
  • the temperature information uploading method provided by the implementation of the present application is introduced by a specific example:
  • the above preset temperature threshold can be understood as a preset fluctuation range.
  • the electronic device collects temperature point 9 (90th minute, 39°C)
  • the difference between 39°C and the reference temperature information 30°C is greater than the preset temperature threshold of 3°C
  • the electronic device uploads temperature point 9, and uses 39°C as the reference temperature. information.
  • a determining unit 621a configured to determine, from the current temperature information, temperature information of each sub-temperature collecting area of the temperature collecting area as the first temperature information of each sub-temperature collecting area;
  • the first determining unit 625a is configured to determine, when the determination result of the first determining unit 624a is present, that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
  • the second determining unit 626a is configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range when the determination result of the first determining unit 624a is absent.
  • a third calculating unit 623b configured to obtain a second temperature difference according to the first average temperature and the second average temperature
  • the second determining unit 624b is configured to determine whether the second temperature difference exceeds a second preset temperature range
  • the third determining unit 625b is configured to determine, when the determination result of the second determining unit 624b is exceeded, that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
  • a second uploading module (not shown), configured to upload the current temperature information to the server when the determining result of the second determining module is reached;
  • the server 920 is configured to receive temperature information uploaded by the electronic device 910.
  • the server may directly discard the temperature information after receiving the temperature information uploaded by the electronic device, and the temperature information is not stored, and the temperature information is not processed.
  • the preset time period is a time period for counting the number of times the temperature information is received, and the preset time period can be freely set according to actual conditions.
  • the preset time period can be 1 minute.
  • the server is further configured to output an alarm message after determining that the number of times is greater than the preset number of times threshold.
  • the server when the server outputs the alarm information, the server may output the alarm information in the form of a voice or an electronic message.
  • the server is further configured to obtain to continue to receive the electronic device for uploading.
  • the instruction of the temperature information continues to receive the temperature information uploaded by the electronic device according to the instruction.
  • the device continues to receive the temperature information uploaded by the electronic device according to the instruction. Specifically, the server continues to receive the temperature information uploaded by the electronic device, and the temperature information is not discarded.
  • the operation and maintenance personnel may send, by using a client connected to the server, an instruction to continue to receive the uploading temperature information of the electronic device to the server, where the instruction may include the identification information of the electronic device.
  • the server may continue to receive the temperature information uploaded by the electronic device corresponding to the identifier information.
  • the server may determine the receiving time of the received temperature information, and store the received temperature information in a database in a first-to-last order according to the receiving time.
  • the electronic device uploads the temperature information to the server, so that the number of temperature information received and stored by the server is reduced, thereby saving The storage space.
  • the electronic device can transmit temperature information to the server through a network cable, wireless or Bluetooth.
  • the system may further comprise a client communicatively connected to the server, and the client may communicate with the server through a network cable, wireless or Bluetooth, and control the electronic device to collect temperature information of the specific region through the server.
  • FIG. 9a is a reference diagram of a temperature information uploading system provided by an embodiment of the present application.
  • the system includes: an infrared thermal imager (ie, an electronic device) and a content management system (CMS) platform (ie, a server).
  • CMS content management system
  • the CMS platform can store the received temperature information to a database.
  • the CMS platform can also be connected to the client.
  • the embodiment of the present application further provides an electronic device, as shown in FIG. 10, which is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • a memory 1020 configured to store a computer program
  • the processor 1010 is configured to implement the temperature information uploading method provided by the implementation of the present application when executing the program stored in the memory 1020.
  • the foregoing method for uploading temperature information includes:
  • the other implementation manners of the temperature information uploading method are the same as the temperature information uploading method provided in the embodiment of the temperature information uploading method described in FIG. 1 , FIG. 2 and FIG. 3 , and details are not described herein again.
  • the memory may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage.
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Ne twork processor, NP for short), or a digital signal processor (DSP). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • CPU central processing unit
  • Ne twork processor Network processor
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the other implementation manners of the temperature information uploading method are the same as the temperature information uploading method provided in the embodiment of the temperature information uploading method described in FIG. 1 , FIG. 2 and FIG. 3 , and details are not described herein again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The embodiments of the present application provide a temperature-information upload method, apparatus, system, electronic device, and storage medium, said method comprising: obtaining current temperature information of a temperature acquisition area; determining whether said current temperature information exceeds a preset fluctuation range relative to fluctuation of baseline temperature information; if so, then uploading the current temperature information to a server; if not, then refusing to upload the current temperature information to said server. The embodiments of the present application reduce the number of times temperature information is uploaded, thus reducing the frequency of occupation of network bandwidth.

Description

温度信息上传方法、装置、系统、电子设备及存储介质Temperature information uploading method, device, system, electronic device and storage medium
本申请要求于2017年08月03日提交中国专利局、申请号为201710655836.9、发明名称为“温度信息上传方法、装置、系统、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on August 3, 2017, the Chinese Patent Office, the application number is 201710655836.9, and the invention is entitled "temperature information uploading method, device, system, electronic device and storage medium". This is incorporated herein by reference.
技术领域Technical field
本申请涉及通信技术领域,特别是涉及一种温度信息上传方法、装置、系统、电子设备及存储介质。The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for uploading temperature information.
背景技术Background technique
随着社会的发展,场景监控越来越多地走进人们的生活。例如,带有温度信息采集功能的电子设备采集场景的温度信息,并将采集到的温度信息上传至服务器,服务器会根据接收到的温度信息的变化来描述所监控的场景的变化。With the development of society, scene monitoring is increasingly entering people's lives. For example, the electronic device with the temperature information collecting function collects the temperature information of the scene, and uploads the collected temperature information to the server, and the server describes the change of the monitored scene according to the change of the received temperature information.
相关的带有温度信息采集功能的电子设备(如红外热成像摄像仪),在工作状态下,会实时采集所拍摄对象的温度信息,并将采集到的温度信息实时上传至服务器。Related electronic equipment with temperature information collection function (such as infrared thermal imaging camera), in the working state, will collect the temperature information of the captured object in real time, and upload the collected temperature information to the server in real time.
由于温度信息上传方式为实时上传,每次电子设备采集到温度信息后都会上传一次,因此,温度信息的上传过程会频繁地占用设备的网络带宽。Since the temperature information uploading method is real-time uploading, each time the electronic device collects the temperature information, it will be uploaded once. Therefore, the temperature information uploading process frequently occupies the network bandwidth of the device.
发明内容Summary of the invention
本申请实施例的目的在于提供一种温度信息上传方法、装置、系统、电子设备及存储介质,以减少温度信息的上传次数,减少占用网络带宽的频率。The purpose of the embodiments of the present application is to provide a method, a device, a system, an electronic device, and a storage medium for uploading temperature information, so as to reduce the number of uploading of temperature information and reduce the frequency of occupying network bandwidth.
为达到上述目的,本申请实施例提供了一种温度信息上传方法,应用于电子设备,所述方法包括:To achieve the above objective, the embodiment of the present application provides a temperature information uploading method, which is applied to an electronic device, and the method includes:
获得温度采集区域的当前温度信息;Obtaining current temperature information of the temperature collection area;
判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;Determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
如果是,向服务器上传所述当前温度信息;If yes, upload the current temperature information to the server;
如果否,拒绝向所述服务器上传所述当前温度信息。If not, the upload of the current temperature information to the server is refused.
在本申请实施例提供的具体实现方式中,所述温度采集区域为所述电子设备的监控区域,所述温度采集区域包括至少两个子温度采集区域,所述判 断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围的步骤,包括:In a specific implementation manner provided by the embodiment of the present application, the temperature collection area is a monitoring area of the electronic device, the temperature collection area includes at least two sub-temperature collection areas, and the determining the current temperature information is relative to a reference. The step of whether the fluctuation of the temperature information exceeds the preset fluctuation range includes:
从当前温度信息中确定温度采集区域的各个子温度采集区域的温度信息,作为各个子温度采集区域的第一温度信息;Determining, from the current temperature information, temperature information of each sub-temperature collecting area of the temperature collecting area as the first temperature information of each sub-temperature collecting area;
获得所述基准温度信息中各个子温度采集区域的基准温度信息,作为各个子温度采集区域的第二温度信息;Obtaining reference temperature information of each sub-temperature collection area in the reference temperature information as second temperature information of each sub-temperature collection area;
根据各个子温度采集区域的第一温度信息和第二温度信息,计算各子温度采集区域对应的第一温度差值;Calculating, according to the first temperature information and the second temperature information of each sub-temperature collecting region, a first temperature difference corresponding to each sub-temperature collecting region;
判断计算得到的第一温度差值中是否存在超出第一预设温度范围的温度差值;Determining whether there is a temperature difference value exceeding the first preset temperature range among the calculated first temperature difference values;
如果存在,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;If yes, determining that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
如果不存在,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。If not present, it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
在本申请实施例提供的具体实现方式中,所述判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围的步骤,包括:In the specific implementation manner provided by the embodiment of the present application, the step of determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range includes:
计算所述当前温度信息对应的平均温度,作为第一平均温度;Calculating an average temperature corresponding to the current temperature information as a first average temperature;
获得所述基准温度信息对应的平均温度,作为第二平均温度;Obtaining an average temperature corresponding to the reference temperature information as a second average temperature;
根据所述第一平均温度和所述第二平均温度,获得第二温度差值;Obtaining a second temperature difference according to the first average temperature and the second average temperature;
判断所述第二温度差值是否超出第二预设温度范围;Determining whether the second temperature difference exceeds a second preset temperature range;
如果超出,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;If it is exceeded, determining that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
如果未超出,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。If not exceeded, it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
在本申请实施例提供的具体实现方式中,所述方法还包括:In a specific implementation manner provided by the embodiment of the present application, the method further includes:
当判定出所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围时,判断上一次向所述服务器上传温度信息的上传时刻与当前时刻的时间间隔是否达到预设时间阈值;When it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range, determining whether the time interval between the uploading time and the current time of uploading the temperature information to the server last time reaches a preset Time threshold
如果达到,向服务器上传所述当前温度信息;If so, upload the current temperature information to the server;
如果未达到,拒绝向服务器上传所述当前温度信息。If not, refuse to upload the current temperature information to the server.
在本申请实施例提供的具体实现方式中,所述基准温度信息为:所述电 子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息。In a specific implementation manner provided by the embodiment of the present application, the reference temperature information is: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
本申请实施例还提供了一种温度信息上传装置,应用于电子设备,所述装置包括;The embodiment of the present application further provides a temperature information uploading device, which is applied to an electronic device, where the device includes:
获取模块,用于获得温度采集区域的当前温度信息;Obtaining a module, configured to obtain current temperature information of the temperature collection area;
第一判断模块,用于判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;a first determining module, configured to determine whether a fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
第一上传模块,用于当所述第一判断模块判断结果为是时,向服务器上传所述当前温度信息;a first uploading module, configured to upload the current temperature information to a server when the first determining module determines that the result is yes;
第一拒绝上传模块,用于当所述第一判断模块判断结果为否时,拒绝向所述服务器上传所述当前温度信息。The first rejecting uploading module is configured to refuse to upload the current temperature information to the server when the first determining module determines that the result is negative.
在本申请实施例提供的具体实现方式中,所述温度采集区域为所述电子设备的监控区域,所述温度采集区域包括至少两个子温度采集区域,所述第一判断模块,包括:In a specific implementation manner provided by the embodiment of the present application, the temperature collection area is a monitoring area of the electronic device, and the temperature collection area includes at least two sub-temperature collection areas, and the first determining module includes:
确定单元,用于从当前温度信息中确定温度采集区域的各个子温度采集区域的温度信息,作为各个子温度采集区域的第一温度信息;a determining unit, configured to determine temperature information of each sub-temperature collecting area of the temperature collecting area from the current temperature information, as first temperature information of each sub-temperature collecting area;
第一获取单元,用于获得所述基准温度信息中各个子温度采集区域的基准温度信息,作为各个子温度采集区域的第二温度信息;a first acquiring unit, configured to obtain reference temperature information of each sub-temperature collecting area in the reference temperature information, as second temperature information of each sub-temperature collecting area;
第一计算单元,用于根据各个子温度采集区域的第一温度信息和第二温度信息,计算各子温度采集区域对应的第一温度差值;a first calculating unit, configured to calculate, according to the first temperature information and the second temperature information of each sub-temperature collecting region, a first temperature difference corresponding to each sub-temperature collecting region;
第一判断单元,用于判断计算得到的第一温度差值中是否存在超出第一预设温度范围的温度差值;a first determining unit, configured to determine whether the calculated first temperature difference has a temperature difference exceeding a first preset temperature range;
第一判定单元,用于当所述第一判断单元的判断结果为存在时,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;a first determining unit, configured to determine, when the determination result of the first determining unit is present, that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
第二判定单元,用于当所述第一判断单元的判断结果为不存在时,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。a second determining unit, configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range when the determination result of the first determining unit is absent.
在本申请实施例提供的具体实现方式中,所述第一判断模块,包括:In the specific implementation manner provided by the embodiment of the present application, the first determining module includes:
第二计算单元,用于计算所述当前温度信息对应的平均温度,作为第一平均温度;a second calculating unit, configured to calculate an average temperature corresponding to the current temperature information, as a first average temperature;
第二获取单元,用于获得所述基准温度信息对应的平均温度,作为第二平均温度;a second obtaining unit, configured to obtain an average temperature corresponding to the reference temperature information, as a second average temperature;
第三计算单元,用于根据所述第一平均温度和所述第二平均温度,获得第二温度差值;a third calculating unit, configured to obtain a second temperature difference according to the first average temperature and the second average temperature;
第二判断单元,用于判断所述第二温度差值是否超出第二预设温度范围;a second determining unit, configured to determine whether the second temperature difference exceeds a second preset temperature range;
第三判定单元,用于当所述第二判断单元的判断结果为超出时,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;a third determining unit, configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range when the determination result of the second determining unit is exceeded;
第四判定单元,用于当所述第二判断单元的判断结果为未超出时,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。And a fourth determining unit, configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range when the determination result of the second determining unit is not exceeded.
在本申请实施例提供的具体实现方式中,所述装置还包括:In a specific implementation manner provided by the embodiment of the present application, the device further includes:
第二判断模块,用于当所述第一判断模块判定出所述当前温度信息相对于所述基准温度信息的波动未超出预设波动范围时,判断上一次向所述服务器上传温度信息的上传时刻与当前时刻的时间间隔是否达到预设时间阈值;a second determining module, configured to: when the first determining module determines that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed a preset fluctuation range, determine that the uploading of the temperature information to the server last time is uploaded Whether the time interval between the time and the current time reaches a preset time threshold;
第二上传模块,用于当所述第二判断模块的判断结果为达到时,向服务器上传所述当前温度信息;a second uploading module, configured to upload the current temperature information to the server when the determining result of the second determining module is reached;
第二拒绝上传模块,用于当所述第二判断模块的判断结果为未达到时,拒绝向服务器上传所述当前温度信息。The second reject uploading module is configured to refuse to upload the current temperature information to the server when the determining result of the second determining module is not reached.
在本申请实施例提供的具体实现方式中,所述基准温度信息为:所述电子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息。In a specific implementation manner provided by the embodiment of the present application, the reference temperature information is: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
本申请实施例还提供了一种温度信息上传系统,所述系统包括:电子设备和服务器;The embodiment of the present application further provides a temperature information uploading system, where the system includes: an electronic device and a server;
所述电子设备,用于根据本申请实施例提供的温度信息上传方法向所述服务器上传温度信息;The electronic device is configured to upload temperature information to the server according to the temperature information uploading method provided by the embodiment of the present application;
所述服务器,用于接收所述电子设备上传的温度信息。The server is configured to receive temperature information uploaded by the electronic device.
在本申请实施例提供的具体实现方式中,所述服务器,还用于在接收到所述电子设备上传的温度信息后,统计当前时刻之前的预设时间段内已接收到所述电子设备上传的温度信息的次数;判断所述次数是否大于预设次数阈值,如果是,中止接收所述电子设备上传的温度信息。In a specific implementation manner provided by the embodiment of the present application, the server is further configured to: after receiving the temperature information uploaded by the electronic device, collect the electronic device that has received the preset time period before the current time. The number of times of the temperature information; determining whether the number of times is greater than a preset number of thresholds, and if so, discontinuing receiving temperature information uploaded by the electronic device.
在本申请实施例提供的具体实现方式中,所述服务器,还用于在判定所述次数大于所述预设次数阈值后,输出报警信息。In a specific implementation manner provided by the embodiment of the present application, the server is further configured to output alarm information after determining that the number of times is greater than the preset number of times threshold.
在本申请实施例提供的具体实现方式中,所述服务器,还用于获得继续接收所述电子设备上传温度信息的指令,根据所述指令继续接收所述电子设 备上传的温度信息。In a specific implementation provided by the embodiment of the present application, the server is further configured to obtain an instruction for continuing to receive the temperature information of the electronic device, and continue to receive the temperature information uploaded by the electronic device according to the instruction.
本申请实施例还提供了一种电子设备,包括处理器和存储器,其中,处理器和存储器通信连接;The embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the processor and the memory are communicatively coupled;
存储器,用于存放计算机程序;a memory for storing a computer program;
处理器,用于执行存储器上所存放的程序时,实现本申请实施例提供的温度信息上传方法。该方法包括:The temperature information uploading method provided by the embodiment of the present application is implemented when the processor is configured to execute the program stored in the memory. The method includes:
获得温度采集区域的当前温度信息;Obtaining current temperature information of the temperature collection area;
判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;Determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
如果是,向服务器上传所述当前温度信息;If yes, upload the current temperature information to the server;
如果否,拒绝向所述服务器上传所述当前温度信息。If not, the upload of the current temperature information to the server is refused.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例提供的温度信息上传方法。该方法包括:The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the temperature information uploading method provided by the embodiment of the present application is implemented. The method includes:
获得温度采集区域的当前温度信息;Obtaining current temperature information of the temperature collection area;
判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;Determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
如果是,向服务器上传所述当前温度信息;If yes, upload the current temperature information to the server;
如果否,拒绝向所述服务器上传所述当前温度信息。If not, the upload of the current temperature information to the server is refused.
本申请实施例提供的一种温度信息上传方法、装置、系统、电子设备及存储介质,通过获得温度采集区域的当前温度信息;判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;如果是,向服务器上传所述当前温度信息;如果否,拒绝向所述服务器上传所述当前温度信息。较相关的温度信息的实时上传方式,本申请实施例在当前温度信息相对于基准温度信息的波动超出预设波动范围时,向服务器上传当前温度信息,并不会每次采集到温度信息都上传,因此,能够减少温度信息的上传次数,减少占用网络带宽的频率。The temperature information uploading method, device, system, electronic device and storage medium provided by the embodiment of the present application obtain the current temperature information of the temperature collection area, and determine whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset. The fluctuation range; if yes, uploading the current temperature information to the server; if not, refusing to upload the current temperature information to the server. In the real-time uploading manner of the related temperature information, in the embodiment of the present application, when the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, the current temperature information is uploaded to the server, and the temperature information is not uploaded every time the temperature information is collected. Therefore, it is possible to reduce the number of uploads of temperature information and reduce the frequency of occupying network bandwidth.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本申请实施例提供的温度信息上传方法的一种流程示意图;FIG. 1 is a schematic flowchart of a method for uploading temperature information according to an embodiment of the present application;
图2为本申请实施例提供的判断当前温度信息相对于基准温度信息的波动是否超出预设范围的第一种流程示意图;2 is a schematic diagram of a first process for determining whether fluctuations of current temperature information with respect to reference temperature information exceed a preset range according to an embodiment of the present application;
图3为本申请实施例提供的判断当前温度信息相对于基准温度信息的波动是否超出预设范围的第二种流程示意图;FIG. 3 is a schematic diagram of a second process for determining whether fluctuations of current temperature information with respect to reference temperature information exceed a preset range according to an embodiment of the present disclosure;
图4为本申请实施例提供的温度信息随时间变化的第一种散点图;4 is a first scatter diagram of temperature information according to an embodiment of the present application;
图5本申请实施例提供的温度信息随时间变化的第二种散点图;FIG. 5 is a second scatter diagram of temperature information according to an embodiment of the present application;
图6为本申请实施例提供的温度信息上传装置的一种结构示意图;FIG. 6 is a schematic structural diagram of a temperature information uploading apparatus according to an embodiment of the present application;
图7为本申请实施例提供的第一判断模块的第一种结构示意图;FIG. 7 is a schematic diagram of a first structure of a first determining module according to an embodiment of the present disclosure;
图8为本申请实施例提供的第一判断模块的第二种结构示意图;FIG. 8 is a schematic diagram of a second structure of a first determining module according to an embodiment of the present disclosure;
图9为本申请实施例提供的温度信息上传系统的一种结构示意图;FIG. 9 is a schematic structural diagram of a temperature information uploading system according to an embodiment of the present application;
图9a为本申请实施例提供的温度信息上传系统的一种参考图;FIG. 9a is a reference diagram of a temperature information uploading system according to an embodiment of the present application;
图10为本申请实施例提供的电子设备的一种结构示意图。FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
为了减少温度信息的上传次数,减少占用网络带宽的频率,本申请实施例提供了一种温度信息上传方法,该方法应用于电子设备。图1为本申请实施例提供的温度信息上传方法的一种流程示意图,所述方法包括步骤S110-步骤S140:In order to reduce the frequency of uploading the temperature information and reduce the frequency of occupying the network bandwidth, the embodiment of the present application provides a temperature information uploading method, and the method is applied to an electronic device. FIG. 1 is a schematic flowchart of a method for uploading temperature information according to an embodiment of the present disclosure, where the method includes steps S110 to S140:
S110,获得温度采集区域的当前温度信息。S110: Obtain current temperature information of the temperature collection area.
本实施例中,电子设备可以为红外热成像摄像仪。红外热成像摄像仪可通过红外辐射的原理采集监控区域内的温度信息。所述温度采集区域即为所述电子设备的监控区域。当前温度信息为当前时刻电子设备所采集到的温度信息。当前时刻为获得温度采集区域的当前温度信息时的时刻。In this embodiment, the electronic device may be an infrared thermal imaging camera. The infrared thermal imaging camera can collect temperature information in the monitoring area by the principle of infrared radiation. The temperature collection area is a monitoring area of the electronic device. The current temperature information is the temperature information collected by the electronic device at the current time. The current time is the time when the current temperature information of the temperature collection area is obtained.
具体地,电子设备获得温度采集区域的当前温度信息的方式可以为:电子设备自身携带温度采集器件,利用温度采集器件采集温度信息并传输至电子设备的处理器;电子设备还可以通过外部温度采集器件采集温度信息的方 式获得温度采集区域的当前温度信息,也就是,外部温度采集器件采集温度采集区域的温度信息后传输至电子设备,进而电子设备可以获得外部温度采集器件传输的温度采集区域的当前温度信息。外部温度采集器件可以理解为处于电子设备之外的温度采集器件。下面以电子设备带有温度采集器件的实现方式进行阐述。Specifically, the manner in which the electronic device obtains the current temperature information of the temperature collection area may be: the electronic device itself carries the temperature collecting device, and the temperature collecting device collects the temperature information and transmits the signal to the processor of the electronic device; the electronic device may also be collected by the external temperature. The device collects the temperature information to obtain the current temperature information of the temperature collection area, that is, the external temperature collecting device collects the temperature information of the temperature collection area and transmits the temperature information to the electronic device, and then the electronic device can obtain the temperature collection area transmitted by the external temperature collecting device. Current temperature information. An external temperature acquisition device can be understood as a temperature acquisition device that is external to the electronic device. The following is an explanation of the implementation of an electronic device with a temperature acquisition device.
S120,判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;如果是,执行步骤S130;如果否,执行步骤S140。S120. Determine whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range; if yes, execute step S130; if no, perform step S140.
本实施例中,基准温度信息可以为:电子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息。In this embodiment, the reference temperature information may be: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
预设波动范围为用于表征当前温度信息相对于基准温度信息变化大小的标准。当前温度信息相对于基准温度信息的波动超出预设波动范围时,说明当前温度信息相对于基准温度信息变化较大;当前温度信息相对于基准温度信息的波动未超出预设波动范围时,说明当前温度信息相对于基准温度信息变化不大。预设波动范围可以为预先设定的数值范围。The preset fluctuation range is a criterion for characterizing the magnitude of change in current temperature information with respect to the reference temperature information. When the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, the current temperature information changes greatly with respect to the reference temperature information; when the fluctuation of the current temperature information relative to the reference temperature information does not exceed the preset fluctuation range, the current The temperature information does not change much with respect to the reference temperature information. The preset fluctuation range can be a preset value range.
进一步地,由于电子设备本身在采集温度信息时存在一定的温度误差,因此,预设波动范围在设定时,需要大于电子设备在采集温度信息时的温度误差范围,减少电子设备频繁上传温度信息的情况,以避免影响到电子设备的正常运行。本实施例中,运维人员可通过电子设备出厂时自带的误差标记或者通过误差配置得到电子设备的温度误差。Further, since the electronic device itself has a certain temperature error when collecting the temperature information, the preset fluctuation range needs to be greater than the temperature error range of the electronic device when collecting the temperature information, and the electronic device frequently uploads the temperature information. The situation to avoid affecting the normal operation of the electronic device. In this embodiment, the operation and maintenance personnel can obtain the temperature error of the electronic device through the error flag that is provided when the electronic device is shipped from the factory or through the error configuration.
需要说明的是,本实施例中,电子设备采集到的温度信息可以为一个温度信息,也可以为一组温度信息。举例而言,对于精度要求不高的电子设备,其采集到的温度采集区域的温度信息可能只有一个温度信息;而对于精度要求高的电子设备,其温度采集区域可包括至少两个子温度采集区域,电子设备采集到的温度信息可以包括各个子温度采集区域的温度信息。这里的温度采集区域一般是指热成像传感器所采集到的温度图像所覆盖的区域,而子温度采集区域是指上述温度图像按照一定尺寸进行划分得到的更小的区域。相对应的,当温度信息为一个温度信息时,即当温度信息不包括各个子温度采集区域的温度信息时,基准温度信息为一个基准温度信息;当温度信息包括各个子温度采集区域的温度信息时,基准温度信息包括各个子温度采集区域的基准温度信息。因此,本实施例中所述的当前温度信息相对于基准温度信息的波动可以为:当前时刻采集到的一个温度信息相对于某一个基准温度信 息的差值;或者,当前时刻采集到的一组温度信息相对于一组基准温度信息的整体差异效果。It should be noted that, in this embodiment, the temperature information collected by the electronic device may be one temperature information or a group of temperature information. For example, for an electronic device with low precision requirements, the temperature information of the collected temperature collection region may have only one temperature information; and for an electronic device with high accuracy, the temperature collection region may include at least two sub-temperature collection regions. The temperature information collected by the electronic device may include temperature information of each sub-temperature collection area. The temperature collection area here generally refers to the area covered by the temperature image collected by the thermal imaging sensor, and the sub-temperature collection area refers to the smaller area obtained by dividing the temperature image according to a certain size. Correspondingly, when the temperature information is a temperature information, that is, when the temperature information does not include the temperature information of each sub-temperature collecting area, the reference temperature information is a reference temperature information; and the temperature information includes temperature information of each sub-temperature collecting area. The reference temperature information includes reference temperature information of each sub-temperature collection region. Therefore, the fluctuation of the current temperature information with respect to the reference temperature information in the embodiment may be: a difference between a temperature information collected at the current time and a certain reference temperature information; or a group collected at the current time. The overall difference in temperature information relative to a set of reference temperature information.
S130,向服务器上传所述当前温度信息。S130. Upload the current temperature information to the server.
S140,拒绝向所述服务器上传所述当前温度信息。S140. Reject the current temperature information to the server.
本实施例中,所述的服务器为广义上的带有服务器功能的设备。例如,在特定场景下,带有强大运算功能的云端服务器或者带有简单运算功能的计算机均可视为广义上的服务器。In this embodiment, the server is a device with a server function in a broad sense. For example, in a specific scenario, a cloud server with powerful computing capabilities or a computer with simple computing capabilities can be considered a server in a broad sense.
服务器在接收到电子设备发送的当前温度信息时,可以根据该当前温度信息对温度采集区域进行分析,并得到分析结果。When receiving the current temperature information sent by the electronic device, the server may analyze the temperature collection area according to the current temperature information, and obtain an analysis result.
具体地,如果当前温度信息相对于基准温度信息的波动超出预设波动范围时,认为当前温度信息相对于基准温度信息变化较大,则当前温度信息对针对温度采集区域的分析结果可能产生较大影响,此时电子设备向服务器上传所述当前温度信息;如果当前温度信息相对于基准温度信息的波动未超出预设波动范围时,认为当前温度信息相对于基准温度信息变化不大,则当前温度信息对针对温度采集区域的分析结果产生的影响较小,此时电子设备拒绝向服务器上传当前温度信息。Specifically, if the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, and the current temperature information is considered to vary greatly with respect to the reference temperature information, the current temperature information may have a larger analysis result for the temperature collection region. In effect, the electronic device uploads the current temperature information to the server; if the fluctuation of the current temperature information relative to the reference temperature information does not exceed the preset fluctuation range, it is considered that the current temperature information does not change much with respect to the reference temperature information, and the current temperature is The information has less influence on the analysis result of the temperature collection area, and the electronic device refuses to upload the current temperature information to the server.
需要说明的是,在电子设备向服务器上传当前温度信息时,如果当前温度信息为一个温度信息,则电子设备向服务器上传该温度信息;如果当前温度信息为一组温度信息,则电子设备向服务器上传该组温度信息。It should be noted that, when the electronic device uploads current temperature information to the server, if the current temperature information is a temperature information, the electronic device uploads the temperature information to the server; if the current temperature information is a set of temperature information, the electronic device sends the server to the server. Upload the group temperature information.
本申请实施例提供的温度信息上传方法,通过获得温度采集区域的当前温度信息,判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围,如果是,向服务器上传所述当前温度信息,如果否,拒绝向所述服务器上传所述当前温度信息。较相关的温度信息的实时上传方式,本申请实施例在当前温度信息相对于基准温度信息的波动超出预设波动范围时向服务器上传当前温度信息,并不会每次采集到温度信息都进行上传,因此,能够减少温度信息的上传次数,减少占用网络带宽的频率。The temperature information uploading method provided by the embodiment of the present application determines whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range by obtaining current temperature information of the temperature collection area, and if yes, uploading the current to the server The temperature information, if not, refuses to upload the current temperature information to the server. In the real-time uploading manner of the related temperature information, the embodiment of the present application uploads the current temperature information to the server when the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, and does not upload the temperature information every time. Therefore, it is possible to reduce the number of uploads of temperature information and reduce the frequency of occupying network bandwidth.
由前面的描述可知,基准温度信息可以是电子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息,基于此,本申请实施例提供了如下电子设备上传温度信息的实现过程:It can be seen from the foregoing description that the reference temperature information may be the initial temperature information collected after the electronic device is started or the temperature information that is uploaded to the server last time. Based on this, the embodiment of the present application provides the following process for implementing the uploading temperature information of the electronic device. :
在本申请的一种实现方式中,当基准温度信息为电子设备启动后采集的初始温度信息时,电子设备上电并启动后,采集温度采集区域内的初始温度 信息,并将初始温度信息上传至服务器。之后,电子设备采集到当前温度信息,并判断当前温度信息相对于初始温度信息的波动是否超出预设波动范围,如果是,向服务器上传所述当前温度信息,并继续采集温度信息;如果否,拒绝向所述服务器上传所述当前温度信息,并继续采集温度信息,如此反复。In an implementation manner of the present application, when the reference temperature information is initial temperature information collected after the electronic device is started, after the electronic device is powered on and started, the initial temperature information in the temperature collection region is collected, and the initial temperature information is uploaded. To the server. After that, the electronic device collects the current temperature information, and determines whether the fluctuation of the current temperature information relative to the initial temperature information exceeds a preset fluctuation range. If yes, uploads the current temperature information to the server, and continues to collect the temperature information; if not, The uploading of the current temperature information to the server is refused, and the temperature information is continuously collected, and so on.
在本申请的另一种实现方式中,当基准温度信息为上一次向所述服务器上传的温度信息时,电子设备采用了循环的方式,每次循环更新一次与当前温度信息作比较的基准温度信息。例如,当上一次向所述服务器上传温度信息后,电子设备将该温度信息作为基准温度信息与当前温度信息进行比较。如果当前温度信息相对于上一次向所述服务器上传的温度信息的波动超出预设波动范围,电子设备向服务器上传所述当前温度信息,并继续采集温度信息,同时将该当前温度信息作为与下一次采集到的温度信息进行比较的基准温度信息;如果当前温度信息相对于上一次向所述服务器上传的温度信息的波动未超出预设波动范围,电子设备拒绝向服务器上传当前温度信息,并继续采集温度信息,如此反复。In another implementation manner of the present application, when the reference temperature information is the temperature information uploaded to the server last time, the electronic device adopts a cyclic manner, and the reference temperature compared with the current temperature information is updated once every time. information. For example, after the temperature information is uploaded to the server last time, the electronic device compares the temperature information as the reference temperature information with the current temperature information. If the fluctuation of the current temperature information relative to the temperature information uploaded to the server last time exceeds the preset fluctuation range, the electronic device uploads the current temperature information to the server, and continues to collect the temperature information, and simultaneously uses the current temperature information as The temperature information collected once is compared with the reference temperature information; if the fluctuation of the current temperature information relative to the temperature information uploaded to the server last time does not exceed the preset fluctuation range, the electronic device refuses to upload the current temperature information to the server, and continues Collect temperature information and repeat it.
在本发实施例提供的一种具体实现方式中,图2为本申请实施例提供的判断当前温度信息相对于基准温度信息的波动是否超出预设波动范围的第一种流程示意图。当温度采集区域包括至少两个子温度采集区域时,该过程包括:步骤S121a-步骤S126a。In a specific implementation manner provided by the embodiment of the present disclosure, FIG. 2 is a first schematic flowchart of determining whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range according to an embodiment of the present application. When the temperature collection region includes at least two sub-temperature collection regions, the process includes: step S121a - step S126a.
S121a、从当前温度信息中确定温度采集区域的各个子温度采集区域的温度信息,作为各个子温度采集区域的第一温度信息。S121a: Determine temperature information of each sub-temperature collection area of the temperature collection area from the current temperature information as first temperature information of each sub-temperature collection area.
在本实施例中,在获取温度信息之前,首先对温度采集区域进行划分,得到多个子温度采集区域,并分别采集每个子温度采集区域的温度信息。以带有温度采集器件的电子设备为例,温度采集区域划分过程可只在电子设备开启时刻执行一次,之后每次采集温度信息时利用已经划分好的子温度采集区域,获得各个子温度采集区域的温度信息。温度采集区域划分过程也可以在每次获取温度信息之前均执行一次。In this embodiment, before the temperature information is acquired, the temperature collection area is first divided to obtain a plurality of sub-temperature collection areas, and temperature information of each sub-temperature collection area is separately collected. Taking an electronic device with a temperature collecting device as an example, the temperature collecting region dividing process can be performed only once when the electronic device is turned on, and then each time the temperature information is collected, the divided sub-temperature collecting region is used to obtain each sub-temperature collecting region. Temperature information. The temperature acquisition region division process can also be performed once before each temperature information is acquired.
具体地,在当前时刻,电子设备获取当前温度信息后,从当前温度信息中确定温度采集区域的各个子温度采集区域的温度信息,作为各个子温度采集区域的第一温度信息。本实施例中,电子设备可以为每个子温度采集区域进行编号,当子温度采集区域采集到温度信息后同时对温度信息进行相应编号的标记,电子设备可根据标记确定各个子温度采集区域对应的温度信息。Specifically, at the current time, after the electronic device acquires the current temperature information, the temperature information of each sub-temperature collection region of the temperature collection region is determined from the current temperature information as the first temperature information of each sub-temperature collection region. In this embodiment, the electronic device may number each sub-temperature collecting area, and when the sub-temperature collecting area collects the temperature information, the temperature information is simultaneously numbered, and the electronic device may determine the corresponding sub-temperature collecting area according to the marking. Temperature information.
S122a、获得所述基准温度信息中各个子温度采集区域的基准温度信息,作为各个子温度采集区域的第二温度信息。S122a: Obtain reference temperature information of each sub-temperature collection region in the reference temperature information as second temperature information of each sub-temperature collection region.
本实施例中,所述基准温度信息是指一组基准温度信息(即各个子温度采集区域的基准温度信息)。In this embodiment, the reference temperature information refers to a set of reference temperature information (ie, reference temperature information of each sub-temperature collection area).
具体地,基准温度信息可以为:所述电子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息。当基准温度信息为所述电子设备启动后采集的初始温度信息时,电子设备在第一次得到基准温度信息后,将其存储在本地,执行步骤S122a时可直接从本地获取得到。当基准温度信息为上一次向所述服务器上传的温度信息时,电子设备在采集到基准温度信息后,将其存储在本地,在下一次向所述服务器上传温度信息之前,执行步骤S122a时可直接从本地获取得到。Specifically, the reference temperature information may be: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time. When the reference temperature information is the initial temperature information collected after the electronic device is started, the electronic device stores the reference temperature information for the first time and stores it locally. When the step S122a is performed, the electronic device can directly obtain the local temperature information. When the reference temperature information is the temperature information uploaded to the server last time, the electronic device stores the reference temperature information and stores it locally. Before the temperature information is uploaded to the server next time, the step S122a may be directly performed. Get it locally.
以基准温度信息为上一次向所述服务器上传的温度信息为例,当电子设备获得上一次向所述服务器上传的温度信息中某个子温度采集区域的温度信息后,将其作为该子温度采集区域的第二温度信息。Taking the reference temperature information as the temperature information uploaded to the server last time, when the electronic device obtains the temperature information of a sub-temperature collection area in the temperature information uploaded to the server last time, it is collected as the sub-temperature. The second temperature information of the area.
S123a、根据各个子温度采集区域的第一温度信息和第二温度信息,计算各子温度采集区域对应的第一温度差值。S123a: Calculate a first temperature difference corresponding to each sub-temperature collection area according to the first temperature information and the second temperature information of each sub-temperature collection area.
具体地,以某个子温度采集区域为例,将该子温度采集区域的第一温度信息与第二温度信息进行减法运算,得到该子温度采集区域对应的第一温度差值。Specifically, taking a certain sub-temperature collection area as an example, the first temperature information of the sub-temperature collection area and the second temperature information are subtracted to obtain a first temperature difference corresponding to the sub-temperature collection area.
本步骤中,还可以为,针对每个子温度采集区域,将该子温度采集区域的第一温度信息与第二温度信息进行减法运算,将经过减法运算之后得到的结果进行第一指定变换,得到该子温度采集区域对应的第一温度差值。上述第一指定变换可以为将结果乘以第一预设值,或者将结果加上第一预设值,本申请对此不做具体限定。In this step, for each sub-temperature collection region, the first temperature information and the second temperature information of the sub-temperature collection region are subtracted, and the result obtained after the subtraction operation is subjected to the first specified transformation to obtain The first temperature difference corresponding to the sub-temperature collection area. The first specified transformation may be to multiply the result by the first preset value, or to add the result to the first preset value, which is not specifically limited in this application.
需要说明的是,由于第一温度信息可能大于第二温度信息,第一温度信息也可能不大于第二温度信息,因此,采用第一温度信息减第二温度信息的方式得到第一温度差值时,上述第一温度差值可能为正值也可能为负值,当然也可以采用计算第一温度信息与第二温度信息差值绝对值的方式得到上述第一温度差值。本申请仅仅以此为例进行说明,并不对本申请构成限定。It should be noted that, because the first temperature information may be greater than the second temperature information, the first temperature information may not be greater than the second temperature information. Therefore, the first temperature difference is obtained by subtracting the second temperature information by using the first temperature information. The first temperature difference may be a positive value or a negative value. Of course, the first temperature difference may be obtained by calculating an absolute value of the first temperature information and the second temperature information difference. The present application is only described by way of example and is not intended to limit the application.
S124a、判断计算得到的第一温度差值中是否存在超出第一预设温度范围的温度差值;如果存在,执行步骤S125a;如果不存在,执行步骤S126a。S124a. Determine whether there is a temperature difference value exceeding the first preset temperature range among the calculated first temperature difference values; if yes, execute step S125a; if not, perform step S126a.
本实施例中,第一预设温度范围是用于表征第一温度差值大小的标准。当第一温度差值超出第一预设温度范围时,表明第一温度差值较大,说明子温度采集区域所处在的当前温度信息与该子温度采集区域的基准温度信息间的变化较大;当第一温度差值未超出第一预设温度范围时,表明第一温度差值不大,说明子温度采集区域所处在的当前温度信息与该子温度采集区域的基准温度信息的变化不大。第一预设温度范围可以为预先设定的数值范围。In this embodiment, the first preset temperature range is a criterion for characterizing the magnitude of the first temperature difference. When the first temperature difference exceeds the first preset temperature range, it indicates that the first temperature difference is larger, indicating that the current temperature information of the sub-temperature collection area is different from the reference temperature information of the sub-temperature collection area. Large; when the first temperature difference does not exceed the first preset temperature range, indicating that the first temperature difference is not large, indicating the current temperature information of the sub-temperature collection region and the reference temperature information of the sub-temperature collection region Has not changed much. The first preset temperature range may be a preset value range.
需要说明的是,由于第一温度差值可能为正值也可能为负值,本实施例中,第一预设温度范围可以为一个由负值到正值的变化区间,其可根据实际情况自由设定,例如,第一预设温度范围可以为(-3,3)。如果第一温度差值采用取绝对值的方式,则第一预设温度范围为一个由0到正值的变化区间,例如,第一预设温度范围可以为(0,3)。It should be noted that, because the first temperature difference may be a positive value or a negative value, in the embodiment, the first preset temperature range may be a change interval from a negative value to a positive value, which may be based on actual conditions. Freely set, for example, the first preset temperature range may be (-3, 3). If the first temperature difference is in an absolute value, the first preset temperature range is a change interval from 0 to a positive value. For example, the first preset temperature range may be (0, 3).
S125a、判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围。S125a. Determine that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range.
S126a、判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。S126a. Determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
具体地,当所有的第一温度差值中(即每个子温度采集区域对应一个第一温度信息)存在超出第一预设温度范围的温度差值时,说明温度采集区域中存在温度变化比较大的子温度采集区域,此时判定当前温度信息相对于所述基准温度信息的波动超出预设波动范围;当所有的第一温度差值中不存在超出第一预设温度范围的温度差值时,说明温度采集区域中不存在温度变化比较大的子温度采集区域,此时判定当前温度信息相对于所述基准温度信息的波动未超出预设波动范围。Specifically, when all the first temperature difference values (ie, each sub-temperature collecting area corresponds to one first temperature information) have a temperature difference exceeding the first preset temperature range, the temperature variation in the temperature collecting area is relatively large. a sub-temperature acquisition area, at which time it is determined that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range; when there is no temperature difference exceeding the first preset temperature range among all the first temperature differences It is stated that there is no sub-temperature collecting area in which the temperature change is relatively large in the temperature collecting area, and it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
由于子温度采集区域相对于整个温度采集区域而言,区域较小,能够更加准确地反应出这个区域温度的变化来,因此本实施例通过判断每个子温度采集区域的温度信息变化情况,当温度采集区域存在温度变化较大的子温度采集区域时,电子设备就上传温度信息;当不存在温度变化较大的子温度采集区域时,电子设备就不上传温度信息,因此本实施例能更具针对性地判断各子温度采集区域的温度变化情况,可更加准确有效地判断当前温度信息相对于基准温度信息的波动是否超出预设波动范围。Since the sub-temperature collecting area is smaller than the entire temperature collecting area, the change of the temperature of the area can be more accurately reflected. Therefore, in this embodiment, by determining the temperature information change of each sub-temperature collecting area, when the temperature is When there is a sub-temperature collection area where the temperature changes greatly in the collection area, the electronic device uploads the temperature information; when there is no sub-temperature collection area where the temperature changes greatly, the electronic device does not upload the temperature information, so the embodiment can be more By specifically determining the temperature change of each sub-temperature collecting region, it is more accurate and effective to determine whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds the preset fluctuation range.
在本发实施例提供的一种具体实现方式中,图3为本申请实施例提供的判断当前温度信息相对于基准温度信息的波动是否超出预设范围的第二种流程 示意图,该过程包括:步骤S121b-步骤S126b。In a specific implementation manner provided by the embodiment of the present disclosure, FIG. 3 is a second schematic flowchart of determining whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset range according to an embodiment of the present application, where the process includes: Step S121b - step S126b.
S121b、计算所述当前温度信息对应的平均温度,作为第一平均温度。S121b: Calculate an average temperature corresponding to the current temperature information as a first average temperature.
具体地,当当前温度信息为一个温度信息时,可将该温度信息直接确定为第一平均温度。当当前温度信息为一组温度信息时,对这些温度信息进行求平均,得到第一平均温度。Specifically, when the current temperature information is one temperature information, the temperature information may be directly determined as the first average temperature. When the current temperature information is a set of temperature information, the temperature information is averaged to obtain a first average temperature.
S122b、获得所述基准温度信息对应的平均温度,作为第二平均温度。S122b: Obtain an average temperature corresponding to the reference temperature information as a second average temperature.
具体地,当基准温度信息为一个基准温度信息时,可将该基准温度信息直接确定为第二平均温度。当基准温度信息为一组基准温度信息时,对该组基准温度信息进行求平均,得到第二平均温度。Specifically, when the reference temperature information is a reference temperature information, the reference temperature information may be directly determined as the second average temperature. When the reference temperature information is a set of reference temperature information, the set of reference temperature information is averaged to obtain a second average temperature.
S123b、根据所述第一平均温度和所述第二平均温度,获得第二温度差值。S123b. Obtain a second temperature difference according to the first average temperature and the second average temperature.
具体地,将第一平均温度和所述第二平均温度进行减法运算,得到第二温度差值。由于第一平均温度可能大于第二平均温度,第一平均温度也可能不大于第二平均温度,因此,采用第一平均温度减第二平均温度的方式得到第二温度差值时,上述第二温度差值可能为正值也可能为负值。当然也可以采用计算第一平均温度与第二平均温度差值绝对值的方式得到上述第二温度差值。本申请仅仅以此为例进行说明,并不对本申请构成限定。Specifically, the first average temperature and the second average temperature are subtracted to obtain a second temperature difference. Since the first average temperature may be greater than the second average temperature, the first average temperature may not be greater than the second average temperature. Therefore, when the second average temperature is obtained by subtracting the second average temperature, the second The temperature difference may be positive or negative. Of course, the second temperature difference may be obtained by calculating the absolute value of the first average temperature and the second average temperature difference. The present application is only described by way of example and is not intended to limit the application.
本步骤中,还可以将第一平均温度和所述第二平均温度进行减法运算,将经过减法运算之后得到的结果进行第二指定变换,得到第二温度差值。上述第二指定变换可以为将结果乘以第二预设值,或者将结果加上第二预设值,本申请对此不做具体限定。上述第二指定变换可以与第一指定变换相同,也可以不同。第二预设值可以与第一预设值相同,也可以不同。In this step, the first average temperature and the second average temperature may be subtracted, and the result obtained after the subtraction operation is subjected to a second specified transformation to obtain a second temperature difference. The second specified transformation may be used to multiply the result by the second preset value, or the result is added to the second preset value, which is not specifically limited in this application. The second specified transform may be the same as or different from the first specified transform. The second preset value may be the same as or different from the first preset value.
S124b、判断所述第二温度差值是否超出第二预设温度范围。如果超出,执行步骤S125b;如果未超出,执行步骤S126b。S124b. Determine whether the second temperature difference exceeds a second preset temperature range. If it is exceeded, step S125b is performed; if not, step S126b is performed.
本实施例中,第二预设温度范围是用于表征第二温度差值大小的标准。当第二温度差值超出第二预设温度范围时,表明第二温度差值较大,说明温度采集区域当前温度信息和基准温度信息的整体温度差异较大;当第二温度差值未超出第二预设温度范围时,表明第二温度差值不大,说明温度采集区域当前温度信息和基准温度信息的整体温度差异不大。第二预设温度范围可以为预先设定的数值范围。In this embodiment, the second preset temperature range is a criterion for characterizing the magnitude of the second temperature difference. When the second temperature difference exceeds the second preset temperature range, indicating that the second temperature difference is large, indicating that the overall temperature difference between the current temperature information and the reference temperature information in the temperature acquisition region is large; when the second temperature difference does not exceed In the second preset temperature range, it indicates that the second temperature difference is not large, indicating that the overall temperature difference between the current temperature information and the reference temperature information in the temperature acquisition region is not large. The second preset temperature range may be a preset value range.
需要说明的是,由于第二温度差值可能为正值也可能为负值,本实施例中,第二预设温度范围可以为一个由负值到正值的变化区间,其可根据实际 情况自由设定,例如,第二预设温度范围可以为(-2,2)。如果第二温度差值采用取绝对值的方式,则第二预设温度范围为一个由0到正值的变化区间,例如,第二预设温度范围可以为(0,2)。It should be noted that, because the second temperature difference may be a positive value or a negative value, in this embodiment, the second preset temperature range may be a change interval from a negative value to a positive value, which may be based on actual conditions. Free setting, for example, the second preset temperature range may be (-2, 2). If the second temperature difference adopts an absolute value, the second preset temperature range is a change interval from 0 to a positive value. For example, the second preset temperature range may be (0, 2).
S125b、判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围。S125b. Determine that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range.
S126b、判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。S126b. Determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
具体地,当第二温度差值超出第二预设温度范围时,说明温度采集区域当前温度信息和基准温度信息的整体温度差异较大,此时判定当前温度信息相对于所述基准温度信息的波动超出预设波动范围;当第二温度差值未超出第二预设温度范围时,说明温度采集区域当前温度信息和基准温度信息的整体温度差异不大,此时判定当前温度信息相对于所述基准温度信息的波动未超出预设波动范围。Specifically, when the second temperature difference exceeds the second preset temperature range, it indicates that the temperature difference between the current temperature information of the temperature collection area and the reference temperature information is large, and at this time, determining the current temperature information relative to the reference temperature information. The fluctuation exceeds the preset fluctuation range; when the second temperature difference does not exceed the second preset temperature range, it indicates that the temperature difference between the current temperature information of the temperature collection area and the reference temperature information is not large, and the current temperature information is determined relative to the The fluctuation of the reference temperature information does not exceed the preset fluctuation range.
本实施例中,通过计算当前温度信息的平均温度得到第一平均温度,计算基准温度信息的平均温度得到第二平均温度,并判断第一平均温度和第二平均温度的第二温度差值是否超出第二预设温度范围,能够整体反映温度采集区域的温度变化情况,从而实现判定当前温度信息相对于基准温度信息的波动是否超出预设波动范围。In this embodiment, the first average temperature is obtained by calculating the average temperature of the current temperature information, the average temperature of the reference temperature information is calculated to obtain a second average temperature, and it is determined whether the second temperature difference between the first average temperature and the second average temperature is Exceeding the second preset temperature range, the temperature variation of the temperature collection area can be reflected as a whole, thereby determining whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds the preset fluctuation range.
当电子设备经过长时间采集到的温度信息变化不大,电子设备拒绝向服务器上传温度信息的时间较长时,为了避免由于电子设备长时间不上传温度数据而使温度数据丢失,所述方法还包括步骤A1-步骤A3:When the temperature information collected by the electronic device for a long time does not change much, and the electronic device refuses to upload the temperature information to the server for a long time, in order to avoid the temperature data being lost due to the electronic device not uploading the temperature data for a long time, the method further Including steps A1 - A3:
A1、当判定出所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围时,判断上一次向所述服务器上传温度信息的上传时刻与当前时刻的时间间隔是否达到预设时间阈值;如果达到,执行步骤A2;如果未达到,执行步骤A3。当前时刻为获得温度采集区域的当前温度信息的时刻。A1. When it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range, determine whether the time interval between the uploading time and the current time of uploading the temperature information to the server last time is reached. The preset time threshold; if it is reached, step A2 is performed; if not, step A3 is performed. The current time is the time at which the current temperature information of the temperature collection area is obtained.
A2、向服务器上传所述当前温度信息;A2, uploading the current temperature information to the server;
A3、拒绝向服务器上传所述当前温度信息。A3. Rejecting the current temperature information to the server.
本实施例中,预设时间阈值用于表征上一次向所述服务器上传温度信息的上传时刻与当前时刻的时间间隔的长短。预设时间阈值可预先根据具体情况自由设定,例如,预设时间阈值可以为1小时。In this embodiment, the preset time threshold is used to represent the length of the time interval between the uploading time and the current time at which the temperature information was last uploaded to the server. The preset time threshold may be freely set in advance according to a specific situation, for example, the preset time threshold may be 1 hour.
具体地,当上一次向所述服务器上传温度信息的上传时刻与当前时刻的 时间间隔达到预设时间阈值时,说明该时间间隔较长,表明电子设备未上传温度信息的状态已经持续了较长时间,此时向服务器上传所述当前温度信息,能避免由于电子设备长时间不上传温度数据而使温度数据丢失;当该时间间隔未达到预设时间阈值时,说明该时间间隔不长,表明电子设备未上传温度信息的持续时间不长,此时拒绝向服务器上传当前温度信息,电子设备继续获取温度信息,以等待下一时刻到来后,继续判断当前温度信息相对于基准温度信息的波动是否超出预设波动范围。Specifically, when the time interval between the uploading time and the current time when the temperature information is uploaded to the server reaches the preset time threshold, the time interval is long, indicating that the state in which the electronic device does not upload the temperature information has continued for a long time. Time, when the current temperature information is uploaded to the server, the temperature data may be lost due to the electronic device not uploading the temperature data for a long time; when the time interval does not reach the preset time threshold, the time interval is not long, indicating that the time interval is not long. The duration of the electronic device not uploading the temperature information is not long. At this time, the current temperature information is refused to be uploaded to the server, and the electronic device continues to acquire the temperature information to wait for the next time to arrive, and continues to determine whether the fluctuation of the current temperature information relative to the reference temperature information is Exceeded the preset fluctuation range.
另外,当判断上一次向服务器上传温度信息的上传时刻与当前时刻的时间间隔达到预设时间阈值,电子设备向服务器上传所述当前温度信息,并将该当前温度信息作为与下一时刻采集到的温度信息进行比较的基准温度信息时,还可以在第一时间段后更新基准温度信息,尽可能提高基准温度的准确性。In addition, when it is determined that the time interval between the uploading time and the current time of uploading the temperature information to the server reaches the preset time threshold, the electronic device uploads the current temperature information to the server, and collects the current temperature information as the next time. When the temperature information is compared with the reference temperature information, the reference temperature information can be updated after the first time period to improve the accuracy of the reference temperature as much as possible.
下面通过具体实例对本申请实施提供的温度信息上传方法进行介绍:The temperature information uploading method provided by the implementation of the present application is introduced by a specific example:
图4为本申请实施例提供的温度信息随时间变化的第一种散点图,该散点图的横坐标表示时间,纵坐标表示温度,为了简单描述,图4中仅仅提供了电子设备采集到的12个温度点。4 is a first scatter diagram of temperature information according to an embodiment of the present application. The abscissa of the scatter plot represents time and the ordinate represents temperature. For simplicity of description, only electronic device acquisition is provided in FIG. 4 . 12 temperature points to.
具体的,图4中横坐标为电子设备采集温度点时的时刻,纵坐标为电子设备采集得到的温度点的温度。表1为电子设备针对12个温度点确定的是否上传信息和原因分析。Specifically, the abscissa in FIG. 4 is the time when the electronic device collects the temperature point, and the ordinate is the temperature of the temperature point collected by the electronic device. Table 1 shows whether the electronic device determines the upload information and cause analysis for 12 temperature points.
Figure PCTCN2018089225-appb-000001
Figure PCTCN2018089225-appb-000001
表1Table 1
如图4和表1所示,电子设备在开启时刻,采集到的温度信息为温度点①(第0分钟,35℃),然后电子设备将温度点①上传至服务器,并将35℃作为基准温度信息。As shown in Figure 4 and Table 1, when the electronic device is turned on, the collected temperature information is temperature point 1 (0th minute, 35°C), and then the electronic device uploads temperature point 1 to the server and uses 35°C as a reference. Temperature information.
电子设备下一次采集的温度点②(第10分钟,36℃),与基准温度信息35℃进行比较,二者的差值大小小于预设温度阈值3℃,则电子设备不上传温度点②。The temperature point 2 (10th minute, 36 ° C) of the next acquisition of the electronic device is compared with the reference temperature information of 35 ° C. If the difference between the two is less than the preset temperature threshold of 3 ° C, the electronic device does not upload the temperature point 2 .
上述预设温度阈值可以理解为预设波动范围。The above preset temperature threshold can be understood as a preset fluctuation range.
如此接下来依次采集到的温度点③、④和⑤分别为(第20分钟,34℃)、(第30分钟,37℃)和(第40分钟,34.5℃),且三者与基准温度信息的差值大小均小于预设温度阈值3℃,则电子设备均不上传温度点③、④和⑤。So, the temperature points 3, 4, and 5 collected sequentially are (20th minute, 34°C), (30th minute, 37°C), and (40th minute, 34.5°C), and the three are compared with the reference temperature information. The difference between the magnitudes of the difference is less than the preset temperature threshold of 3 ° C, then the electronic devices do not upload temperature points 3, 4 and 5.
当电子设备采集到温度点⑥(第60分钟,36.5℃)时,虽然温度点⑥与基准温度信息的差值大小小于预设温度阈值3℃,但此时温度点⑥的时刻距离温度点①的时刻已经达到了预设时间阈值60分钟,则此时电子设备上传温度点⑥,并将36.5℃作为基准温度信息。When the electronic device collects the temperature point 6 (60 minutes, 36.5 ° C), although the difference between the temperature point 6 and the reference temperature information is less than the preset temperature threshold of 3 ° C, at this time the temperature point 6 is away from the temperature point 1 The time has reached the preset time threshold of 60 minutes, at which time the electronic device uploads a temperature point of 6 and uses 36.5 ° C as the reference temperature information.
当电子设备采集到温度点⑦(第85分钟,30℃),30℃与基准温度信息36.5℃的差值大小大于预设温度阈值3℃,则此时电子设备上传温度点⑦,并将30℃作为基准温度信息。When the electronic device collects the temperature point 7 (85th minute, 30 ° C), the difference between the 30 ° C and the reference temperature information 36.5 ° C is greater than the preset temperature threshold of 3 ° C, then the electronic device uploads the temperature point 7 and will 30 °C is used as the reference temperature information.
当电子设备采集到温度点⑧(第87分钟,32.5℃),32.5℃与基准温度信息30℃的差值小于预设温度阈值3℃,电子设备不上传温度点⑧。When the electronic device collects the temperature point 8 (87 minutes, 32.5 ° C), the difference between the 32.5 ° C and the reference temperature information 30 ° C is less than the preset temperature threshold of 3 ° C, the electronic device does not upload the temperature point 8 .
当电子设备采集到温度点⑨(第90分钟,39℃),39℃与基准温度信息30℃的差值大于预设温度阈值3℃,电子设备上传温度点⑨,并将39℃作为基准温度信息。When the electronic device collects temperature point 9 (90th minute, 39°C), the difference between 39°C and the reference temperature information 30°C is greater than the preset temperature threshold of 3°C, the electronic device uploads temperature point 9, and uses 39°C as the reference temperature. information.
接下来电子设备依次采集到的温度点⑩和
Figure PCTCN2018089225-appb-000002
分别为(第110分钟,39.5℃)和(第115分钟,38℃),且二者与基准温度信息39℃的差值大小均小于预设温度阈值3℃,则电子设备不上传温度点⑩和
Figure PCTCN2018089225-appb-000003
Next, the electronic device sequentially collects the temperature point 10 and
Figure PCTCN2018089225-appb-000002
The difference is (110 minutes, 39.5 ° C) and (115 minutes, 38 ° C), and the difference between the two and the reference temperature information 39 ° C is less than the preset temperature threshold of 3 ° C, the electronic device does not upload the temperature point 10 with
Figure PCTCN2018089225-appb-000003
当电子设备采集到温度点
Figure PCTCN2018089225-appb-000004
(第150分钟,39℃),虽然39℃与基准温度信息39℃的差值大小小于预设温度阈值3℃,但此时温度点
Figure PCTCN2018089225-appb-000005
的时刻距离温度点⑨的时刻已经达到了预设时间阈值60分钟,则此时电子设备上传温度点
Figure PCTCN2018089225-appb-000006
When the electronic device collects the temperature point
Figure PCTCN2018089225-appb-000004
(150th minute, 39°C), although the difference between 39°C and the reference temperature information 39°C is less than the preset temperature threshold of 3°C, but the temperature point at this time
Figure PCTCN2018089225-appb-000005
The time from the temperature point 9 has reached the preset time threshold of 60 minutes, then the electronic device uploads the temperature point
Figure PCTCN2018089225-appb-000006
因此,在时间段第0分钟-第150分钟之间,最终电子设备上传的温度信息为温度点①、⑥、⑦、⑨和
Figure PCTCN2018089225-appb-000007
Therefore, between 0 minutes and 150 minutes of the time period, the temperature information uploaded by the final electronic device is temperature points 1, 6, 7, 9 and
Figure PCTCN2018089225-appb-000007
图5为本申请实施例提供的温度信息随时间变化的第二种散点图,该散点 图的横坐标表示时间,纵坐标表示温度,该散点图可通过与服务器连接的客户端绘制。具体地,用户可通过客户端向服务器发送获取某一时间段内服务器接收的温度信息,服务器从数据库中获取相应的温度信息并发送给客户端。FIG. 5 is a second scatter diagram of temperature information according to an embodiment of the present application. The abscissa of the scatter plot represents time, and the ordinate represents temperature. The scatter plot can be drawn by a client connected to the server. . Specifically, the user may send the temperature information received by the server within a certain period of time to the server, and the server obtains the corresponding temperature information from the database and sends the information to the client.
由于服务器存储的只是接收到的温度信息,因此与图4不同之处在于,图5中仅仅绘制了服务器所接收的温度点的信息,为了表征相邻温度点间的波动变化,客户端可采用折线的方式描述相邻温度点间的温度差异信息,以给用户一种直观感,增加用户的体验。Since the server only stores the received temperature information, the difference from FIG. 4 is that only the temperature point information received by the server is drawn in FIG. 5, and the client can adopt the information to indicate the fluctuation between adjacent temperature points. The way of dividing the line describes the temperature difference information between adjacent temperature points to give the user a sense of intuitiveness and increase the user experience.
与方法实施例相对应的,本申请实施例还提供了一种温度信息上传装置,该装置可应用于电子设备。图6为本申请实施例提供的温度信息上传装置的一种结构示意图,所述装置包括;Corresponding to the method embodiment, the embodiment of the present application further provides a temperature information uploading device, which can be applied to an electronic device. FIG. 6 is a schematic structural diagram of a temperature information uploading apparatus according to an embodiment of the present disclosure, where the apparatus includes:
获取模块610,用于获得温度采集区域的当前温度信息;The obtaining module 610 is configured to obtain current temperature information of the temperature collection area;
第一判断模块620,用于判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;The first determining module 620 is configured to determine whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
第一上传模块630,用于当所述第一判断模块620判断结果为是时,向服务器上传所述当前温度信息;The first uploading module 630 is configured to: when the first determining module 620 determines that the result is yes, upload the current temperature information to the server;
第一拒绝上传模块640,用于当所述第一判断模块620判断结果为否时,拒绝向所述服务器上传所述当前温度信息。The first reject uploading module 640 is configured to refuse to upload the current temperature information to the server when the first determining module 620 determines that the result is negative.
本申请实施例提供的一种温度信息上传装置,通过获得温度采集区域的当前温度信息;判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;如果是,向服务器上传所述当前温度信息;如果否,拒绝向所述服务器上传所述当前温度信息。较相关的温度信息的实时上传方式,本申请实施例在当前温度信息相对于基准温度信息的波动超出预设波动范围时,向服务器上传当前温度信息,并不会每次采集到温度信息都上传,因此,能够减少温度信息的上传次数,减少占用网络带宽的频率。The temperature information uploading device provided by the embodiment of the present application obtains the current temperature information of the temperature collecting area, determines whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range, and if so, uploads to the server. The current temperature information is described; if not, the current temperature information is rejected from being uploaded to the server. In the real-time uploading manner of the related temperature information, in the embodiment of the present application, when the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, the current temperature information is uploaded to the server, and the temperature information is not uploaded every time the temperature information is collected. Therefore, it is possible to reduce the number of uploads of temperature information and reduce the frequency of occupying network bandwidth.
图7为本申请实施例提供的第一判断模块的第一种结构示意图。其中,所述温度采集区域为所述电子设备的监控区域,所述温度采集区域包括至少两个子温度采集区域,所述第一判断模块620,包括:FIG. 7 is a schematic diagram of a first structure of a first determining module according to an embodiment of the present disclosure. The temperature collection area is a monitoring area of the electronic device, and the temperature collection area includes at least two sub-temperature collection areas, and the first determining module 620 includes:
确定单元621a,用于从当前温度信息中确定温度采集区域的各个子温度采集区域的温度信息,作为各个子温度采集区域的第一温度信息;a determining unit 621a, configured to determine, from the current temperature information, temperature information of each sub-temperature collecting area of the temperature collecting area as the first temperature information of each sub-temperature collecting area;
第一获取单元622a,用于获得所述基准温度信息中各个子温度采集区域 的基准温度信息,作为各个子温度采集区域的第二温度信息;The first obtaining unit 622a is configured to obtain reference temperature information of each sub-temperature collecting area in the reference temperature information as second temperature information of each sub-temperature collecting area;
第一计算单元623a,用于根据各个子温度采集区域的第一温度信息和第二温度信息,计算各子温度采集区域对应的第一温度差值;The first calculating unit 623a is configured to calculate, according to the first temperature information and the second temperature information of each sub-temperature collecting area, a first temperature difference corresponding to each sub-temperature collecting area;
第一判断单元624a,用于判断计算得到的第一温度差值中是否存在超出第一预设温度范围的温度差值;The first determining unit 624a is configured to determine whether there is a temperature difference value exceeding the first preset temperature range in the calculated first temperature difference value;
第一判定单元625a,用于当所述第一判断单元624a的判断结果为存在时,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;The first determining unit 625a is configured to determine, when the determination result of the first determining unit 624a is present, that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
第二判定单元626a,用于当所述第一判断单元624a的判断结果为不存在时,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。The second determining unit 626a is configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range when the determination result of the first determining unit 624a is absent.
本实施例中,通过判断每个子温度采集区域的温度信息变化情况,可更加准确有效地判断当前温度信息相对于基准温度信息的波动是否超出预设波动范围。In this embodiment, by determining the temperature information change of each sub-temperature collection area, it can be more accurately and effectively determined whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds the preset fluctuation range.
图8为本申请实施例提供的第一判断模块的第二种结构示意图,所述第一判断模块620,包括:FIG. 8 is a schematic diagram of a second structure of a first determining module according to an embodiment of the present disclosure, where the first determining module 620 includes:
第二计算单元621b,用于计算所述当前温度信息对应的平均温度,作为第一平均温度;a second calculating unit 621b, configured to calculate an average temperature corresponding to the current temperature information, as a first average temperature;
第二获取单元622b,用于获得所述基准温度信息对应的平均温度,作为第二平均温度;a second obtaining unit 622b, configured to obtain an average temperature corresponding to the reference temperature information, as a second average temperature;
第三计算单元623b,用于根据所述第一平均温度和所述第二平均温度,获得第二温度差值;a third calculating unit 623b, configured to obtain a second temperature difference according to the first average temperature and the second average temperature;
第二判断单元624b,用于判断所述第二温度差值是否超出第二预设温度范围;The second determining unit 624b is configured to determine whether the second temperature difference exceeds a second preset temperature range;
第三判定单元625b,用于当所述第二判断单元624b的判断结果为超出时,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;The third determining unit 625b is configured to determine, when the determination result of the second determining unit 624b is exceeded, that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
第四判定单元626b,用于当所述第二判断单元624b的判断结果为未超出时,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。The fourth determining unit 626b is configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range when the determination result of the second determining unit 624b is not exceeded.
本实施例中,通过计算当前温度信息的平均温度得到第一平均温度,计算基准温度信息的平均温度得到第二平均温度,并判断第一平均温度和第二平均温度的第二温度差值是否超出第二预设温度范围,能够简单易行地实现 判定当前温度信息相对于基准温度信息的波动是否超出预设波动范围。In this embodiment, the first average temperature is obtained by calculating the average temperature of the current temperature information, the average temperature of the reference temperature information is calculated to obtain a second average temperature, and it is determined whether the second temperature difference between the first average temperature and the second average temperature is Exceeding the second preset temperature range, it can be easily and easily determined whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds the preset fluctuation range.
在本申请实施例的一种实现方式中,所述装置还包括:In an implementation manner of the embodiment of the present application, the device further includes:
第二判断模块(图中未示出),用于当所述第一判断模块判定出所述当前温度信息相对于所述基准温度信息的波动未超出预设波动范围时,判断上一次向所述服务器上传温度信息的上传时刻与当前时刻的时间间隔是否达到预设时间阈值;a second determining module (not shown), configured to: when the first determining module determines that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed a preset fluctuation range, determine the last time Whether the time interval between the uploading time and the current time of the server uploading temperature information reaches a preset time threshold;
第二上传模块(图中未示出),用于当所述第二判断模块的判断结果为达到时,向服务器上传所述当前温度信息;a second uploading module (not shown), configured to upload the current temperature information to the server when the determining result of the second determining module is reached;
第二拒绝上传模块(图中未示出),用于当所述第二判断模块的判断结果为未达到时,拒绝向服务器上传所述当前温度信息。The second reject uploading module (not shown) is configured to refuse to upload the current temperature information to the server when the determining result of the second determining module is not reached.
在本申请实施例的一种实现方式中,所述基准温度信息为:所述电子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息。In an implementation manner of the embodiment of the present application, the reference temperature information is: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
与上述方法实施例相对应的,本申请实施例还提供了一种温度信息上传系统,图9为本申请实施例提供温度信息上传系统的一种结构示意图,所述系统包括;电子设备910和服务器920;Corresponding to the foregoing method embodiment, the embodiment of the present application further provides a temperature information uploading system, and FIG. 9 is a schematic structural diagram of a temperature information uploading system according to an embodiment of the present application, where the system includes: an electronic device 910 and Server 920;
所述电子设备910,获得温度采集区域的当前温度信息;判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;如果是,向服务器上传所述当前温度信息;如果否,拒绝向所述服务器上传所述当前温度信息;The electronic device 910 obtains current temperature information of the temperature collection area; determines whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range; if yes, uploads the current temperature information to the server; if not, Refusing to upload the current temperature information to the server;
所述服务器920,用于接收所述电子设备910上传的温度信息。The server 920 is configured to receive temperature information uploaded by the electronic device 910.
本申请实施例提供的温度信息上传系统,通过获得温度采集区域的当前温度信息;判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;如果是,向服务器上传所述当前温度信息;如果否,拒绝向所述服务器上传所述当前温度信息。较相关的温度信息的实时上传方式,本申请实施例在当前温度信息相对于基准温度信息的波动超出预设波动范围时,向服务器上传当前温度信息,并不会每次采集到温度信息都上传,因此,能够减少温度信息的上传次数,减少占用网络带宽的频率。The temperature information uploading system provided by the embodiment of the present application obtains current temperature information of the temperature collecting area, and determines whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range; if yes, uploads the current to the server Temperature information; if not, refusing to upload the current temperature information to the server. In the real-time uploading manner of the related temperature information, in the embodiment of the present application, when the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, the current temperature information is uploaded to the server, and the temperature information is not uploaded every time the temperature information is collected. Therefore, it is possible to reduce the number of uploads of temperature information and reduce the frequency of occupying network bandwidth.
在电子设备向所述服务器上传温度信息的其他实现方式中,所述电子设备,用于根据前述方法实施例部分图1、图2、图3所描述的温度信息上传方法向所述服务器上传温度信息,此处不再赘述。In another implementation manner in which the electronic device uploads the temperature information to the server, the electronic device is configured to upload a temperature to the server according to the temperature information uploading method described in the foregoing method embodiment, FIG. 1, FIG. 2, and FIG. Information, no more details here.
当电子设备发生故障时,有可能会出现在某一个时间段内上传多次温度信息的情况。为了避免该情况下电子设备上传大量的温度信息,从而减少温度信息的上传次数,减少占用网络带宽的频率,所述服务器还用于在接收到所述电子设备上传的温度信息后,统计当前时刻之前的预设时间段内已接收到所述电子设备上传的温度信息的次数;判断所述次数是否大于预设次数阈值,如果是,中止接收所述电子设备上传的温度信息。When an electronic device fails, there may be a case where the temperature information is uploaded multiple times within a certain period of time. In order to prevent the electronic device from uploading a large amount of temperature information in this case, thereby reducing the number of times of uploading the temperature information and reducing the frequency of occupying the network bandwidth, the server is further configured to collect the current time information after receiving the temperature information uploaded by the electronic device. The number of times the temperature information uploaded by the electronic device has been received in the previous preset time period; whether the number of times is greater than a preset number of times threshold, and if so, the temperature information uploaded by the electronic device is suspended.
中止接收电子设备上传的温度信息,可以理解为,暂时停止接收所述电子设备上传的温度信息。Suspension of the temperature information uploaded by the receiving electronic device can be understood as temporarily stopping receiving the temperature information uploaded by the electronic device.
中止接收电子设备上传的温度信息时,具体可以为,服务器接收到电子设备上传的温度信息后直接丢弃该温度信息,不存储该温度信息,也不处理该温度信息。When the temperature information uploaded by the electronic device is suspended, the server may directly discard the temperature information after receiving the temperature information uploaded by the electronic device, and the temperature information is not stored, and the temperature information is not processed.
本实施例中,预设时间段为用于统计所接收到温度信息的次数所在的时间段,预设时间段可根据实际情况自由设定。例如,预设时间段可以为1分钟。In this embodiment, the preset time period is a time period for counting the number of times the temperature information is received, and the preset time period can be freely set according to actual conditions. For example, the preset time period can be 1 minute.
预设次数阈值为用于表征电子设备上传频率快慢的标准(即在预设时间段内上传温度信息的快慢)。当电子设备在预设时间段内上传温度信息的次数大于该预设次数阈值时,说明电子设备上传频率较快,电子设备出现故障的可能性较大,此时服务器中止接收电子设备上传的温度信息,从而避免该情况下电子设备上传大量的温度信息,减少了温度信息的上传次数,减少了占用网络带宽的频率。当电子设备在预设时间段内上传温度信息的次数不大于该预设次数阈值时,说明电子设备上传频率不大,电子设备出现故障的可能性不大,此时继续接收电子设备上传的温度信息。The preset number of thresholds is a criterion for characterizing the uploading frequency of the electronic device (that is, the speed at which the temperature information is uploaded within a preset time period). When the number of times the electronic device uploads the temperature information in the preset time period is greater than the preset number of times, the uploading frequency of the electronic device is faster, and the electronic device is more likely to be faulty. At this time, the server stops receiving the temperature uploaded by the electronic device. Information, thereby avoiding the electronic device uploading a large amount of temperature information in this case, reducing the number of times the temperature information is uploaded, and reducing the frequency of occupying the network bandwidth. When the number of times the electronic device uploads the temperature information within the preset time period is not greater than the threshold of the preset number of times, it indicates that the upload frequency of the electronic device is not large, and the possibility that the electronic device is faulty is not large. At this time, the temperature of the electronic device is continuously received. information.
本实施例中,预设次数阈值可预先根据时间情况自由设定,例如,预设次数阈值可以为10次。In this embodiment, the preset number of times threshold may be freely set according to the time condition in advance. For example, the preset number of times threshold may be 10 times.
在本申请实施例的一种实现方式中,当预设时间段内,服务器已接收到的所述电子设备上传的温度信息的次数大于预设次数阈值后,为了及时通知运维人员修理电子设备,所述服务器还用于在判定所述次数大于所述预设次数阈值后,输出报警信息。In an implementation manner of the embodiment of the present application, after the number of times that the temperature information uploaded by the electronic device has been received by the server is greater than a preset number of thresholds in a preset time period, the operation and maintenance personnel are notified to repair the electronic device in time. The server is further configured to output an alarm message after determining that the number of times is greater than the preset number of times threshold.
本实施例中,服务器在输出报警信息时,可以采用语音或电子消息的形式输出报警信息。In this embodiment, when the server outputs the alarm information, the server may output the alarm information in the form of a voice or an electronic message.
在本申请实施例的一种实现方式中,当运维人员完成对电子设备的修理后,为了使服务器继续接收电子设备生成的温度信息,所述服务器还用于获 得继续接收所述电子设备上传温度信息的指令,根据所述指令继续接收所述电子设备上传的温度信息。In an implementation manner of the embodiment of the present application, after the operation and maintenance personnel complete the repair of the electronic device, in order to enable the server to continue to receive the temperature information generated by the electronic device, the server is further configured to obtain to continue to receive the electronic device for uploading. The instruction of the temperature information continues to receive the temperature information uploaded by the electronic device according to the instruction.
根据该指令继续接收电子设备上传的温度信息,具体可以为,服务器继续接收电子设备上传的温度信息,不再丢弃该温度信息。The device continues to receive the temperature information uploaded by the electronic device according to the instruction. Specifically, the server continues to receive the temperature information uploaded by the electronic device, and the temperature information is not discarded.
具体地,运维人员可通过与服务器连接的客户端,向服务器发送继续接收电子设备上传温度信息的指令,该指令中可以包括电子设备的标识信息。服务器在接收到该指令后,可以继续接收该标识信息对应的电子设备上传的温度信息。Specifically, the operation and maintenance personnel may send, by using a client connected to the server, an instruction to continue to receive the uploading temperature information of the electronic device to the server, where the instruction may include the identification information of the electronic device. After receiving the instruction, the server may continue to receive the temperature information uploaded by the electronic device corresponding to the identifier information.
在本申请实施例的一种实现方式中,服务器可确定接收到的温度信息的接收时刻,并按照接收时刻由先到后的顺序,将接收到的温度信息存储在数据库中。In an implementation manner of the embodiment of the present application, the server may determine the receiving time of the received temperature information, and store the received temperature information in a database in a first-to-last order according to the receiving time.
本实施例中,当当前温度信息相对于基准温度信息的波动超出预设波动范围时,电子设备才会向服务器上传温度信息,这样能够使得服务器接收并存储的温度信息的数量减小,从而节省了存储空间。In this embodiment, when the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, the electronic device uploads the temperature information to the server, so that the number of temperature information received and stored by the server is reduced, thereby saving The storage space.
在温度上传系统中,电子设备可以通过网线、无线或蓝牙等方式向服务器传输温度信息。该系统还可以包括与服务器通信连接的客户端,客户端可以通过网线、无线或蓝牙等方式与服务器通信连接,并通过服务器来控制电子设备对特定区域进行温度信息的采集。In the temperature uploading system, the electronic device can transmit temperature information to the server through a network cable, wireless or Bluetooth. The system may further comprise a client communicatively connected to the server, and the client may communicate with the server through a network cable, wireless or Bluetooth, and control the electronic device to collect temperature information of the specific region through the server.
图9a为本申请实施例提供的温度信息上传系统的一种参考图。该系统包括:红外热成像仪(即电子设备)和内容管理系统(Content Management System,CMS)平台(即服务器)。CMS平台可以将接收的温度信息存储至数据库。CMS平台还可以与客户端相连。FIG. 9a is a reference diagram of a temperature information uploading system provided by an embodiment of the present application. The system includes: an infrared thermal imager (ie, an electronic device) and a content management system (CMS) platform (ie, a server). The CMS platform can store the received temperature information to a database. The CMS platform can also be connected to the client.
与上述方法实施例相对应的,本申请实施例还提供了一种电子设备,如图10所示,图10为本申请实施例提供的电子设备的一种结构示意图,所述电子设备包括处理器1010和存储器1020,其中,处理器1010和存储器1020通信连接,Corresponding to the foregoing method embodiments, the embodiment of the present application further provides an electronic device, as shown in FIG. 10, which is a schematic structural diagram of an electronic device according to an embodiment of the present application. The device 1010 and the memory 1020, wherein the processor 1010 and the memory 1020 are communicatively connected,
存储器1020,用于存放计算机程序;a memory 1020, configured to store a computer program;
处理器1010,用于执行存储器1020上所存放的程序时,实现本申请实施提供的温度信息上传方法。The processor 1010 is configured to implement the temperature information uploading method provided by the implementation of the present application when executing the program stored in the memory 1020.
具体的,上述温度信息上传方法,包括:Specifically, the foregoing method for uploading temperature information includes:
获得温度采集区域的当前温度信息;Obtaining current temperature information of the temperature collection area;
判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;Determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
如果是,向服务器上传所述当前温度信息;If yes, upload the current temperature information to the server;
如果否,拒绝向所述服务器上传所述当前温度信息。If not, the upload of the current temperature information to the server is refused.
本申请实施例提供的电子设备,通过获得温度采集区域的当前温度信息;判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;如果是,向服务器上传所述当前温度信息;如果否,拒绝向所述服务器上传所述当前温度信息。较相关的温度信息的实时上传方式,本申请实施例在当前温度信息相对于基准温度信息的波动超出预设波动范围时,向服务器上传当前温度信息,并不会每次采集到温度信息都上传,因此,能够减少温度信息的上传次数,减少占用网络带宽的频率。The electronic device provided by the embodiment of the present application obtains current temperature information of the temperature collection area, determines whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range, and if so, uploads the current temperature information to the server. If not, the upload of the current temperature information to the server is refused. In the real-time uploading manner of the related temperature information, in the embodiment of the present application, when the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, the current temperature information is uploaded to the server, and the temperature information is not uploaded every time the temperature information is collected. Therefore, it is possible to reduce the number of uploads of temperature information and reduce the frequency of occupying network bandwidth.
上述温度信息上传方法的其他实现方式与前述图1、图2、图3所描述的温度信息上传方法实施例部分提供的温度信息上传方式相同,这里不再赘述。The other implementation manners of the temperature information uploading method are the same as the temperature information uploading method provided in the embodiment of the temperature information uploading method described in FIG. 1 , FIG. 2 and FIG. 3 , and details are not described herein again.
存储器可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Ne twork Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Applica tion Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Ne twork processor, NP for short), or a digital signal processor (DSP). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
与上述方法实施例相对应的,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施提供的温度信息上传方法。Corresponding to the foregoing method embodiments, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the implementation of the present application is implemented. The temperature information upload method provided.
具体的,上述温度信息上传方法,包括:Specifically, the foregoing method for uploading temperature information includes:
获得温度采集区域的当前温度信息;Obtaining current temperature information of the temperature collection area;
判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;Determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
如果是,向服务器上传所述当前温度信息;If yes, upload the current temperature information to the server;
如果否,拒绝向所述服务器上传所述当前温度信息。If not, the upload of the current temperature information to the server is refused.
本申请实施例提供的存储介质中存储的应用程序在运行时,通过获得温度采集区域的当前温度信息;判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;如果是,向服务器上传所述当前温度信息;如果否,拒绝向所述服务器上传所述当前温度信息。较相关的温度信息的实时上传方式,本申请实施例在当前温度信息相对于基准温度信息的波动超出预设波动范围时,向服务器上传当前温度信息,并不会每次采集到温度信息都上传,因此,能够减少温度信息的上传次数,减少占用网络带宽的频率。The application stored in the storage medium provided by the embodiment of the present application obtains current temperature information of the temperature collection area during operation; and determines whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range; if yes, Uploading the current temperature information to the server; if not, refusing to upload the current temperature information to the server. In the real-time uploading manner of the related temperature information, in the embodiment of the present application, when the fluctuation of the current temperature information relative to the reference temperature information exceeds the preset fluctuation range, the current temperature information is uploaded to the server, and the temperature information is not uploaded every time the temperature information is collected. Therefore, it is possible to reduce the number of uploads of temperature information and reduce the frequency of occupying network bandwidth.
上述温度信息上传方法的其他实现方式与前述图1、图2、图3所描述的温度信息上传方法实施例部分提供的温度信息上传方式相同,这里不再赘述。The other implementation manners of the temperature information uploading method are the same as the temperature information uploading method provided in the embodiment of the temperature information uploading method described in FIG. 1 , FIG. 2 and FIG. 3 , and details are not described herein again.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、系统、电子设备和存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, system, electronic device and storage medium embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above description is only the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are included in the scope of the present application.

Claims (16)

  1. 一种温度信息上传方法,其特征在于,应用于电子设备,所述方法包括:A temperature information uploading method is characterized in that it is applied to an electronic device, and the method includes:
    获得温度采集区域的当前温度信息;Obtaining current temperature information of the temperature collection area;
    判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;Determining whether the fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
    如果是,向服务器上传所述当前温度信息;If yes, upload the current temperature information to the server;
    如果否,拒绝向所述服务器上传所述当前温度信息。If not, the upload of the current temperature information to the server is refused.
  2. 根据权利要求1所述的方法,其特征在于,所述温度采集区域为所述电子设备的监控区域,所述温度采集区域包括至少两个子温度采集区域,所述判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围的步骤,包括:The method according to claim 1, wherein the temperature collection area is a monitoring area of the electronic device, the temperature collection area includes at least two sub-temperature collection areas, and the determining the current temperature information is relative to The step of whether the fluctuation of the reference temperature information exceeds the preset fluctuation range includes:
    从当前温度信息中确定温度采集区域的各个子温度采集区域的温度信息,作为各个子温度采集区域的第一温度信息;Determining, from the current temperature information, temperature information of each sub-temperature collecting area of the temperature collecting area as the first temperature information of each sub-temperature collecting area;
    获得所述基准温度信息中各个子温度采集区域的基准温度信息,作为各个子温度采集区域的第二温度信息;Obtaining reference temperature information of each sub-temperature collection area in the reference temperature information as second temperature information of each sub-temperature collection area;
    根据各个子温度采集区域的第一温度信息和第二温度信息,计算各子温度采集区域对应的第一温度差值;Calculating, according to the first temperature information and the second temperature information of each sub-temperature collecting region, a first temperature difference corresponding to each sub-temperature collecting region;
    判断计算得到的第一温度差值中是否存在超出第一预设温度范围的温度差值;Determining whether there is a temperature difference value exceeding the first preset temperature range among the calculated first temperature difference values;
    如果存在,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;If yes, determining that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
    如果不存在,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。If not present, it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
  3. 根据权利要求1所述的方法,其特征在于,所述判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围的步骤,包括:The method according to claim 1, wherein the step of determining whether the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range comprises:
    计算所述当前温度信息对应的平均温度,作为第一平均温度;Calculating an average temperature corresponding to the current temperature information as a first average temperature;
    获得所述基准温度信息对应的平均温度,作为第二平均温度;Obtaining an average temperature corresponding to the reference temperature information as a second average temperature;
    根据所述第一平均温度和所述第二平均温度,获得第二温度差值;Obtaining a second temperature difference according to the first average temperature and the second average temperature;
    判断所述第二温度差值是否超出第二预设温度范围;Determining whether the second temperature difference exceeds a second preset temperature range;
    如果超出,判定所述当前温度信息相对于所述基准温度信息的波动超出 预设波动范围;If it is exceeded, determining that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
    如果未超出,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。If not exceeded, it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    当判定出所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围时,判断上一次向所述服务器上传温度信息的上传时刻与当前时刻的时间间隔是否达到预设时间阈值;When it is determined that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range, determining whether the time interval between the uploading time and the current time of uploading the temperature information to the server last time reaches a preset Time threshold
    如果达到,向所述服务器上传所述当前温度信息;If so, uploading the current temperature information to the server;
    如果未达到,拒绝向所述服务器上传所述当前温度信息。If not reached, the current temperature information is refused to be uploaded to the server.
  5. 根据权利要求1-3中任一项所述的方法,其特征在于,所述基准温度信息为:所述电子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息。The method according to any one of claims 1 to 3, wherein the reference temperature information is: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
  6. 一种温度信息上传装置,其特征在于,应用于电子设备,所述装置包括;A temperature information uploading device is characterized in that it is applied to an electronic device, and the device comprises:
    获取模块,用于获得温度采集区域的当前温度信息;Obtaining a module, configured to obtain current temperature information of the temperature collection area;
    第一判断模块,用于判断所述当前温度信息相对于基准温度信息的波动是否超出预设波动范围;a first determining module, configured to determine whether a fluctuation of the current temperature information relative to the reference temperature information exceeds a preset fluctuation range;
    第一上传模块,用于当所述第一判断模块判断结果为是时,向服务器上传所述当前温度信息;a first uploading module, configured to upload the current temperature information to a server when the first determining module determines that the result is yes;
    第一拒绝上传模块,用于当所述第一判断模块判断结果为否时,拒绝向所述服务器上传所述当前温度信息。The first rejecting uploading module is configured to refuse to upload the current temperature information to the server when the first determining module determines that the result is negative.
  7. 根据权利要求6所述的装置,其特征在于,所述温度采集区域为所述电子设备的监控区域,所述温度采集区域包括至少两个子温度采集区域,所述第一判断模块,包括:The device according to claim 6, wherein the temperature collection area is a monitoring area of the electronic device, the temperature collection area includes at least two sub-temperature collection areas, and the first determining module comprises:
    确定单元,用于从当前温度信息中确定温度采集区域的各个子温度采集区域的温度信息,作为各个子温度采集区域的第一温度信息;a determining unit, configured to determine temperature information of each sub-temperature collecting area of the temperature collecting area from the current temperature information, as first temperature information of each sub-temperature collecting area;
    第一获取单元,用于获得所述基准温度信息中各个子温度采集区域的基准温度信息,作为各个子温度采集区域的第二温度信息;a first acquiring unit, configured to obtain reference temperature information of each sub-temperature collecting area in the reference temperature information, as second temperature information of each sub-temperature collecting area;
    第一计算单元,用于根据各个子温度采集区域的第一温度信息和第二温度信息,计算各子温度采集区域对应的第一温度差值;a first calculating unit, configured to calculate, according to the first temperature information and the second temperature information of each sub-temperature collecting region, a first temperature difference corresponding to each sub-temperature collecting region;
    第一判断单元,用于判断计算得到的第一温度差值中是否存在超出第一 预设温度范围的温度差值;a first determining unit, configured to determine whether there is a temperature difference value exceeding the first preset temperature range in the calculated first temperature difference value;
    第一判定单元,用于当所述第一判断单元的判断结果为存在时,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;a first determining unit, configured to determine, when the determination result of the first determining unit is present, that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range;
    第二判定单元,用于当所述第一判断单元的判断结果为不存在时,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。a second determining unit, configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range when the determination result of the first determining unit is absent.
  8. 根据权利要求6所述的装置,其特征在于,所述第一判断模块,包括:The device according to claim 6, wherein the first determining module comprises:
    第二计算单元,用于计算所述当前温度信息对应的平均温度,作为第一平均温度;a second calculating unit, configured to calculate an average temperature corresponding to the current temperature information, as a first average temperature;
    第二获取单元,用于获得所述基准温度信息对应的平均温度,作为第二平均温度;a second obtaining unit, configured to obtain an average temperature corresponding to the reference temperature information, as a second average temperature;
    第三计算单元,用于根据所述第一平均温度和所述第二平均温度,获得第二温度差值;a third calculating unit, configured to obtain a second temperature difference according to the first average temperature and the second average temperature;
    第二判断单元,用于判断所述第二温度差值是否超出第二预设温度范围;a second determining unit, configured to determine whether the second temperature difference exceeds a second preset temperature range;
    第三判定单元,用于当所述第二判断单元的判断结果为超出时,判定所述当前温度信息相对于所述基准温度信息的波动超出预设波动范围;a third determining unit, configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information exceeds a preset fluctuation range when the determination result of the second determining unit is exceeded;
    第四判定单元,用于当所述第二判断单元的判断结果为未超出时,判定所述当前温度信息相对于所述基准温度信息的波动未超出所述预设波动范围。And a fourth determining unit, configured to determine that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed the preset fluctuation range when the determination result of the second determining unit is not exceeded.
  9. 根据权利要求6-8任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 6-8, wherein the device further comprises:
    第二判断模块,用于当所述第一判断模块判定出所述当前温度信息相对于所述基准温度信息的波动未超出预设波动范围时,判断上一次向所述服务器上传温度信息的上传时刻与当前时刻的时间间隔是否达到预设时间阈值;a second determining module, configured to: when the first determining module determines that the fluctuation of the current temperature information with respect to the reference temperature information does not exceed a preset fluctuation range, determine that the uploading of the temperature information to the server last time is uploaded Whether the time interval between the time and the current time reaches a preset time threshold;
    第二上传模块,用于当所述第二判断模块的判断结果为达到时,向所述服务器上传所述当前温度信息;a second uploading module, configured to upload the current temperature information to the server when the determination result of the second determining module is reached;
    第二拒绝上传模块,用于当所述第二判断模块的判断结果为未达到时,拒绝向所述服务器上传所述当前温度信息。The second reject uploading module is configured to refuse to upload the current temperature information to the server when the determining result of the second determining module is not reached.
  10. 根据权利要求6-8任一项所述的装置,其特征在于,所述基准温度信息为:所述电子设备启动后采集的初始温度信息或上一次向所述服务器上传的温度信息。The device according to any one of claims 6-8, wherein the reference temperature information is: initial temperature information collected after the electronic device is started or temperature information uploaded to the server last time.
  11. 一种温度信息上传系统,其特征在于,所述系统包括:电子设备和 服务器;A temperature information uploading system, characterized in that the system comprises: an electronic device and a server;
    所述电子设备,用于根据权利要求1-5任一项所述的温度信息上传方法向所述服务器上传温度信息;The electronic device is configured to upload temperature information to the server according to the temperature information uploading method according to any one of claims 1-5;
    所述服务器,用于接收所述电子设备上传的温度信息。The server is configured to receive temperature information uploaded by the electronic device.
  12. 根据权利要求11所述的系统,其特征在于,The system of claim 11 wherein:
    所述服务器,还用于在接收到所述电子设备上传的温度信息后,统计当前时刻之前的预设时间段内已接收到所述电子设备上传的温度信息的次数;判断所述次数是否大于预设次数阈值,如果是,中止接收所述电子设备上传的温度信息。The server is further configured to: after receiving the temperature information uploaded by the electronic device, count the number of times that the temperature information uploaded by the electronic device has been received within a preset time period before the current time; and determine whether the number of times is greater than The preset number of thresholds, if yes, the suspension of receiving temperature information uploaded by the electronic device.
  13. 根据权利要求12所述的系统,其特征在于,The system of claim 12 wherein:
    所述服务器,还用于在判定所述次数大于所述预设次数阈值后,输出报警信息。The server is further configured to output alarm information after determining that the number of times is greater than the preset number of times threshold.
  14. 根据权利要求12或13所述的系统,其特征在于,A system according to claim 12 or claim 13 wherein:
    所述服务器,还用于获得继续接收所述电子设备上传温度信息的指令,根据所述指令继续接收所述电子设备上传的温度信息。The server is further configured to obtain an instruction to continue to receive the temperature information of the electronic device, and continue to receive the temperature information uploaded by the electronic device according to the instruction.
  15. 一种电子设备,其特征在于,包括处理器和存储器,其中,处理器和存储器通信连接;An electronic device, comprising: a processor and a memory, wherein the processor and the memory are in communication connection;
    所述存储器,用于存放计算机程序;The memory is configured to store a computer program;
    所述处理器,用于执行所述存储器上所存放的程序时,实现权利要求1-5任一所述的方法步骤。The processor, when used to execute a program stored on the memory, implements the method steps of any of claims 1-5.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-5任一所述的方法步骤。A computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program being executed by a processor to implement the method steps of any of claims 1-5.
PCT/CN2018/089225 2017-08-03 2018-05-31 Temperature-information upload method, apparatus, system, electronic device, and storage medium WO2019024592A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710655836.9 2017-08-03
CN201710655836.9A CN109391641A (en) 2017-08-03 2017-08-03 Temperature information method for uploading, device, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019024592A1 true WO2019024592A1 (en) 2019-02-07

Family

ID=65232251

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089225 WO2019024592A1 (en) 2017-08-03 2018-05-31 Temperature-information upload method, apparatus, system, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN109391641A (en)
WO (1) WO2019024592A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138001A (en) * 2021-04-23 2021-07-20 三川智慧科技股份有限公司 Sampling method for real-time temperature verification on pipe section

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310351A (en) * 2020-02-26 2020-06-19 深圳市青柠互动科技开发有限公司 Method and device for monitoring state of workshop equipment, terminal equipment and storage medium
CN111829488A (en) * 2020-08-03 2020-10-27 成都华睿晶元电子科技有限公司 Power transmission line iron tower inclination monitoring system based on spatial attitude sensor and control method
CN112971735B (en) * 2021-02-08 2023-05-12 天空社科技(深圳)有限公司 Monitoring method for heatstroke and dizziness and motion sickness caused by heat and wearable equipment
CN112971734B (en) * 2021-02-08 2023-05-12 天空社科技(深圳)有限公司 Heatstroke monitoring and alarming method based on external environment and wearable device
CN113992717A (en) * 2021-10-28 2022-01-28 傲拓科技股份有限公司 Edge data acquisition system and method based on TSN technology
CN116847223A (en) * 2023-09-01 2023-10-03 山东溯源安全科技有限公司 Temperature monitoring system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390338A (en) * 2013-07-30 2013-11-13 国家电网公司 Device for acquiring temperature of substation equipment
CN104023356A (en) * 2014-06-26 2014-09-03 南京农业大学 Facilitate environmental control-oriented wireless sensor network data transmission method
CN104132732A (en) * 2014-07-22 2014-11-05 国家电网公司 Monitoring system and monitoring method for acquiring temperatures of substation control cubicles in real time based on screen cabinet temperature
CN104320334A (en) * 2014-11-03 2015-01-28 电子科技大学 Centralized routing algorithm in wireless Mesh network
CN106376048A (en) * 2016-11-03 2017-02-01 中国矿业大学(北京) Event-driven coal mine underground wireless sensor network system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8719327B2 (en) * 2005-10-25 2014-05-06 Fisher-Rosemount Systems, Inc. Wireless communication of process measurements
CN102601987A (en) * 2012-03-17 2012-07-25 广东达诚机械有限公司 Temperature control method and system of air-pressure thermoforming machine
CN103868552A (en) * 2014-03-25 2014-06-18 成都国科海博信息技术股份有限公司 Wireless sensor network node with high practicality
US9565081B2 (en) * 2014-05-19 2017-02-07 Ebay Inc. Phone thermal context
CN204374747U (en) * 2015-01-21 2015-06-03 深圳万慧通自动化有限公司 A kind of remote energy-saving self-actuated controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390338A (en) * 2013-07-30 2013-11-13 国家电网公司 Device for acquiring temperature of substation equipment
CN104023356A (en) * 2014-06-26 2014-09-03 南京农业大学 Facilitate environmental control-oriented wireless sensor network data transmission method
CN104132732A (en) * 2014-07-22 2014-11-05 国家电网公司 Monitoring system and monitoring method for acquiring temperatures of substation control cubicles in real time based on screen cabinet temperature
CN104320334A (en) * 2014-11-03 2015-01-28 电子科技大学 Centralized routing algorithm in wireless Mesh network
CN106376048A (en) * 2016-11-03 2017-02-01 中国矿业大学(北京) Event-driven coal mine underground wireless sensor network system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138001A (en) * 2021-04-23 2021-07-20 三川智慧科技股份有限公司 Sampling method for real-time temperature verification on pipe section
CN113138001B (en) * 2021-04-23 2023-01-06 三川智慧科技股份有限公司 Sampling method for real-time temperature verification on pipe section

Also Published As

Publication number Publication date
CN109391641A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
WO2019024592A1 (en) Temperature-information upload method, apparatus, system, electronic device, and storage medium
WO2016037579A1 (en) Ddos attack detection method and apparatus
WO2018059247A1 (en) Monitoring method, device, and system
AU2019257323A1 (en) Automated detection of features and/or parameters within an ocean environment using image data
JP2012230667A5 (en)
US20160182816A1 (en) Preventing photographs of unintended subjects
US10366103B2 (en) Load balancing for elastic query service system
WO2018120705A1 (en) Data processing method, apparatus and system
US20160080267A1 (en) Monitoring device, server, monitoring system, monitoring method and program recording medium
WO2021035645A1 (en) Sensing system, sensing device and control method therefor, movable platform, and storage medium
US9948532B2 (en) Information processing apparatus, information processing method, and computer readable medium
CN110690988A (en) Bandwidth control method, bandwidth control platform, server and storage medium
WO2018142703A1 (en) Anomaly factor estimation device, anomaly factor estimation method, and program
WO2020125544A1 (en) Distributed image analysis method and system, and storage medium
JP7127525B2 (en) DETECTION DEVICE, DETECTION METHOD, AND DETECTION PROGRAM
CN106789723B (en) Method and device for limiting forwarding speed of multi-core network
CN110543509B (en) Monitoring system, method and device for user access data and electronic equipment
CN103974037A (en) Real-time retrieval system and method based on network video cloud
US20160143082A1 (en) Method for detecting a message from a group of packets transmitted in a connection
WO2016161577A1 (en) Method, apparatus and device for determining optimal heartbeat period
US9678849B2 (en) Processing method, processing apparatus, and recording medium to determine operational state of processing element
US20170127356A1 (en) Method and apparatus for prolonging lasting time of inactive mode
JP6295850B2 (en) Information processing apparatus, information processing method, and information processing program
CN110572299B (en) Equipment testing method, system, device, network node, terminal and storage medium
JP6828971B2 (en) Information processing equipment, control methods, and programs

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18842110

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18842110

Country of ref document: EP

Kind code of ref document: A1