[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109660964B - Communication method, device, equipment and computer readable medium of sensor - Google Patents

Communication method, device, equipment and computer readable medium of sensor Download PDF

Info

Publication number
CN109660964B
CN109660964B CN201811493741.2A CN201811493741A CN109660964B CN 109660964 B CN109660964 B CN 109660964B CN 201811493741 A CN201811493741 A CN 201811493741A CN 109660964 B CN109660964 B CN 109660964B
Authority
CN
China
Prior art keywords
sensor
data
sensors
transmission condition
module
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811493741.2A
Other languages
Chinese (zh)
Other versions
CN109660964A (en
Inventor
曹洪伟
王晔
许岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811493741.2A priority Critical patent/CN109660964B/en
Publication of CN109660964A publication Critical patent/CN109660964A/en
Application granted granted Critical
Publication of CN109660964B publication Critical patent/CN109660964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • 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/10Protocols in which an application is distributed across nodes in the network
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention provides a communication method, a device, equipment and a computer storage medium of a sensor, wherein the method comprises the following steps: reading a current measurement index of the sensor; calculating differentiation data of a current measurement index of the sensor and a reference threshold value; storing each differential data of the sensor; and when at least one piece of differential data reaches a set transmission condition, uploading all stored differential data of the sensor to a cloud server. The embodiment of the invention can carry out data transmission by judging whether the measurement index of the sensor reaches the transmission condition, thereby reducing the transmission times. Meanwhile, when data are transmitted, only differential data need to be transmitted, the data volume of transmission can be greatly reduced, and therefore power consumption generated in the transmission process is reduced.

Description

Communication method, device, equipment and computer readable medium of sensor
Technical Field
The present invention relates to the field of sensor technologies, and in particular, to a communication method and apparatus for a sensor, a device, and a computer readable medium.
Background
In the internet of things, an important performance index of an intelligent sensor is power consumption. And conventional factors affecting power consumption include: use cases, hardware model selection, drivers, operating systems, software code, and the like. In practice, the impact of the communication mode on power consumption is also very important.
The current intelligent sensor generally uploads data periodically. Because the communication module needs to be started for many times when the data is uploaded periodically, the communication frequency is high, and the power consumption is high.
Disclosure of Invention
Embodiments of the present invention provide a communication method, apparatus, device and computer readable medium for a sensor, so as to solve or alleviate one or more technical problems in the prior art.
In a first aspect, an embodiment of the present invention provides a communication method for a sensor, including:
reading a current measurement index of the sensor;
calculating differentiation data of a current measurement index of the sensor and a reference threshold value;
storing each differential data of the sensor;
and when at least one piece of differential data reaches a set transmission condition, uploading all stored differential data of the sensor to a cloud server.
In one embodiment, the method further comprises:
and when the read time reaches the set transmission condition, uploading all the stored difference values to a cloud server.
In one embodiment, the method further comprises:
the method comprises the steps of obtaining configuration information of a sensor from a server in the cloud, wherein the configuration information comprises a reference threshold value and a transmission condition.
In one embodiment, the configuration information is dynamically adjusted based on the type and parameters of the sensor.
In one embodiment, when reading the current metric of the sensor, the current metric of the sensor is read in a periodic manner.
In one embodiment, the method further comprises:
when a plurality of sensors exist, storing the differentiated data of each sensor and the identification information of the sensor in a correlation manner;
when the data of one sensor meets the transmission condition, reading all the differentiated data of the sensor according to the identification information of the sensor, and uploading the differentiated data to a cloud server at one time.
In a second aspect, an embodiment of the present invention provides a communication device for a sensor, including:
the reading module is used for reading the current measurement index of the sensor;
the calculating module is used for calculating the difference data between the current measurement index of the sensor and a reference threshold value;
the storage module is used for storing various differential data of the sensors;
and the transmission module is used for uploading all the stored differentiated data of the sensor to a cloud server when at least one piece of the differentiated data reaches a set transmission condition.
In one embodiment, the transmission module is further configured to: and when the read time reaches the set transmission condition, uploading all the stored difference values to a cloud server.
In one embodiment, the method further comprises:
the acquisition module is used for acquiring configuration information of the sensor from a server at the cloud end, wherein the configuration information comprises a reference threshold value and a transmission condition.
In one embodiment, the configuration information is dynamically adjusted based on the type and parameters of the sensor.
In one embodiment, the reading module reads the current metric of the sensor in a periodic manner.
In one embodiment, the method further comprises:
the association storage module is used for associating and storing the differentiated data of each sensor with the identification information of the sensor when a plurality of sensors exist;
and the uploading module is used for reading all differentiated data of the sensor according to the identification information of the sensor when the data of one sensor meets the transmission condition, and uploading the differentiated data to the cloud server at one time.
In a third aspect, an embodiment of the present invention provides a communication device for a sensor, including one or more processors; storage means for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as in any one of the first aspects above.
In one possible design, the communication device of the sensor includes a processor and a memory, the memory is used for storing a program for the communication device supporting the sensor to execute the communication method of the sensor in the first aspect, and the processor is configured to execute the program stored in the memory. The communication means of the sensor may further comprise a communication interface for the communication means of the sensor to communicate with other devices or a communication network.
In a fourth aspect, an embodiment of the present invention provides a computer readable medium for storing computer software instructions for a communication device of a sensor, which includes a program for executing the communication method of the sensor of the first aspect.
In the above technical solution, the embodiment of the present invention may perform data transmission by determining whether the measurement index of the sensor reaches the transmission condition, so as to reduce the number of times of transmission. Meanwhile, when data are transmitted, only differential data need to be transmitted, the data volume of transmission can be greatly reduced, and therefore power consumption generated in the transmission process is reduced.
In another technical scheme, whether the data of the sensor is transmitted or not can be judged according to the time length for reading the data of the sensor, so that the situation that the current state of the sensor cannot be judged in real time due to the fact that the sensor is not triggered to upload due to damage and the like can be avoided. Meanwhile, the cloud server can dynamically generate and adjust the configured information to adapt to the running environment of the current sensor in time.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present invention will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
FIG. 1 is a flow chart of a communication method of a sensor according to an embodiment of the invention;
FIG. 2 is a flow chart illustrating a storage upload of multiple sensors according to an embodiment of the present invention;
FIG. 3 is a flow chart of a communication method of a sensor according to another embodiment of the present invention;
FIG. 4 is a flow chart of a communication method of a sensor according to another embodiment of the present invention;
FIG. 5 is a block diagram of the communication device of the sensor according to an embodiment of the present invention;
FIG. 6 is a connection block diagram of a communication device of a sensor according to another embodiment of the present invention;
FIG. 7 is a block diagram of a storage upload connection for multiple sensors in accordance with another embodiment of the present invention;
FIG. 8 is a system architecture diagram of a communication method of a sensor according to an embodiment of the present invention;
fig. 9 is a block diagram of a communication device of a sensor according to another embodiment of the present invention.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive. The embodiment of the invention mainly provides a method and a device for communication through a sensor, and the technical scheme is developed and described through the following embodiments respectively.
The invention provides a communication method and a communication device for a sensor, and the following detailed description describes a specific processing flow and a principle of the communication method and the communication device for the sensor according to the embodiment of the invention.
Fig. 1 is a flowchart of a communication method of a sensor according to an embodiment of the present invention. The communication method of the sensor of the embodiment of the invention can comprise the following steps:
s110: and reading the current metric of the sensor.
In one embodiment, the types of sensors may include a variety of types, including but not limited to, light sensitive sensors, acoustic sensitive sensors, gas sensitive sensors, chemical sensors, pressure sensitive sensors, temperature sensitive sensors, moisture sensitive sensors, fluid sensors, and the like. The metrics for different types of sensors may be different. For example, the temperature-sensitive sensor may include a temperature sensor, and the metric of the temperature sensor may include a temperature of the target object. As another example, the moisture-sensitive sensor may include a humidity sensor, and the metric of the humidity sensor may include humidity of the target object. The current measurement index of the sensor can be read from the sensor. For example, a current temperature value of the target object is read from a temperature sensor, a current humidity value of the target object is read from a humidity sensor, and the like.
In one embodiment, the metrics of the sensor may be read over a period of time. For example, the reading may be 1 time every 1 minute, or 1 time every 10 minutes, or 1 time every 1 hour, etc. The above time period is merely an example and is not limited, and in a practical application scenario, the time period for reading the metric index may be flexibly set according to the type, arrangement position, and the like of the sensor.
S120: and calculating the difference data of the current measurement index of the sensor and the reference threshold value.
In one embodiment, the reference threshold of the sensor to be compared may be obtained from the memory. For example, assuming that it is necessary to calculate whether the current metric of the temperature sensor is within a normal range, a preset reference threshold value may be acquired. For example, a reference threshold value of the temperature sensor is set at 30 degrees, and then a difference between a current temperature value of the temperature sensor and the reference threshold value is calculated. If the current temperature value of the temperature sensor is 29 degrees, the difference data between the two is 1 degree. And according to the calculation mode, performing differentiation calculation on the read temperature values of the temperature sensors and the reference threshold respectively.
S130: storing each differential data of the sensor.
In one embodiment, the plurality of difference data obtained by calculation is stored. For example, the temperature values of the temperature sensors are read in sequence every 1 minute, and the temperature values are stored in the memory after being differentiated from the reference threshold value.
In one embodiment, if there are multiple sensors, the differentiated data of each sensor may be stored in correspondence with the identification information of the sensor when stored. It is also possible to allocate a corresponding storage space for each sensor. And recording the differentiated data of each sensor in the storage space corresponding to the sensor.
S140: and when at least one piece of differential data reaches a set transmission condition, uploading all stored differential data of the sensor to a cloud server.
In one embodiment, the transmission condition may be: and judging whether the differentiated data is in a certain range. For example, the reference threshold of the temperature sensor is set to 30 degrees, and the transmission condition may be set to a deviation greater than 5 degrees, assuming that the deviation of the normal range is within 5 degrees. At this time, if the temperature value of the current temperature sensor is lower than 25 degrees or higher than 35 degrees, the transmission condition is satisfied. When the transmission condition is met, all the stored differentiated data of the sensor can be uploaded to the cloud server at one time. In this way, the number of times the sensor communicates with the server can be reduced.
As shown in fig. 2, in one embodiment, if there are multiple sensors, it may include:
s141: when a plurality of sensors exist, the differentiation data of each sensor is stored in association with the identification information of the sensor.
S142: when the data of one sensor meets the transmission condition, reading all the differentiated data of the sensor according to the identification information of the sensor, and uploading the differentiated data to a cloud server at one time.
After uploading, the locally stored differentiated data for the sensor may be emptied. And subsequently, if new differentiated data of the sensor exist, correspondingly storing the data according to the identification information. And after the transmission condition is met next time, uploading all the collected differentiated data of the sensor to the cloud server once again. The identification information of the sensor may include the type, name, factory number, etc. of the sensor, or may include other identifications. When data of a plurality of sensors are stored respectively, the data of different sensors can be distinguished through different identification information.
In one embodiment, if there are multiple sensors, and each sensor is allocated a corresponding storage space. And recording the differentiated data of each sensor in the storage space corresponding to the sensor. In this case, the transmission condition may further include that the storage space is full. If the storage space corresponding to a certain sensor is full, the differentiated data of the sensor can be uploaded at one time, and then the storage space corresponding to the sensor is emptied. And subsequently, if new differentiated data of the sensor exist, continuously storing the data in the storage space corresponding to the sensor. And after the transmission condition is met next time, uploading all the differentiated data of the sensor in the storage space to a cloud server once again.
As shown in fig. 3, in an embodiment, the communication method of the sensor may further include:
s150: and when the read time reaches the set transmission condition, uploading all the stored difference values to a cloud server.
In one embodiment, when the differentiated data of the sensor does not reach the set transmission condition, whether the reading time length reaches the set condition is judged. And when the reading time reaches a set condition, uploading the differential data of all the sensors to a cloud server. In addition to the measurement values of the current sensor as a basis for triggering the transmission, the time length of the reading can also be used as a basis for triggering the transmission. For example, the reading time can be set to 10 hours, that is, when the reading time reaches 10 hours, the differentiated data in the memory is automatically uploaded to the cloud, so that the situation that no data is uploaded to the cloud for a long time due to the abnormality of the sensor can be avoided.
As shown in fig. 4, in one embodiment, the communication method of the sensor further includes: s160: the method comprises the steps of obtaining configuration information of a sensor from a server in the cloud, wherein the configuration information comprises a reference threshold value and a transmission condition. In one embodiment, the configuration information may be dynamically adjusted according to the type and parameters of the sensor, and dynamically adjusted and updated by the cloud server. For example, the cloud server may automatically generate the corresponding reference threshold and transmission condition according to the collected data. For example, a reference threshold may be automatically generated based on the type of temperature sensor or the environment in which it is currently used. Meanwhile, a transmission condition of a temperature value range is generated according to the normal range of the temperature value of the current environment, and a time condition for uploading data is generated according to the temperature conversion speed of the current environment and the like.
In the above technical solution, the embodiment of the present invention may perform data transmission by determining whether the measurement index of the sensor reaches the transmission condition, so as to reduce the number of times of transmission. Meanwhile, when data are transmitted, only differential data need to be transmitted, the data volume of transmission can be greatly reduced, and therefore power consumption generated in the transmission process is reduced.
In another technical scheme, whether the data of the sensor is transmitted or not can be judged according to the time length for reading the data of the sensor, so that the situation that the current state of the sensor cannot be judged in real time due to the fact that the sensor is not triggered to upload due to damage and the like can be avoided. Meanwhile, the cloud server can dynamically generate and adjust the configured information to adapt to the running environment of the current sensor in time.
As shown in fig. 5, in another embodiment of the present invention, there is also provided a communication device for a sensor, including:
and a reading module 110, configured to read a current metric of the sensor. Specifically, the reading module 110 can read the current metric of the sensor in a periodic manner.
A calculating module 120, configured to calculate difference data between the current metric of the sensor and a reference threshold.
The storage module 130 is configured to store each difference data of the sensors.
The transmission module 140 is configured to upload all stored differentiated data of the sensors to a cloud server when at least one piece of the differentiated data meets a set transmission condition.
In one embodiment, the transmission module 140 is further configured to: and when the read time reaches the set transmission condition, uploading all the stored difference values to a cloud server.
As shown in fig. 6, in one embodiment, the communication device of the sensor further includes: the obtaining module 150 is configured to obtain configuration information of the sensor from a server in the cloud, where the configuration information includes a reference threshold and a transmission condition. In one embodiment, the configuration information is dynamically adjusted based on the type and parameters of the sensor.
As shown in fig. 7, in one embodiment, when there are a plurality of sensors, the communication device of the sensor further includes:
the association storage module 141 is configured to, when there are multiple sensors, perform association storage on the differentiated data of each sensor and the identification information of the sensor;
the uploading module 142 reads all the differentiated data of one sensor according to the identification information of the sensor when the data of the sensor meets the transmission condition, and uploads the data to the cloud server at one time.
The communication device of the sensor of the present embodiment is similar to the principle of the communication method of the sensor of the above embodiments, and therefore, the detailed description thereof is omitted.
As shown in fig. 8, it is a system architecture diagram of the communication method of the sensor of the present embodiment. In one embodiment, the transmission system of the sensor may include:
a plurality of sensor modules, which may include different types of sensors, such as temperature sensors, humidity sensors, concentration sensors, and the like;
the differential data calculation engine is equivalent to a comparator and judges whether to store and transmit the configuration information;
an information and configuration storage subsystem for storing data of the sensors and configuration data of the communication mechanism;
the communication subsystem may include various wired or wireless communication modes, including but not limited to BLE, Zigbee, Lora, etc. on a physical layer, and the protocol includes but not limited to CoAP, MQTT, XMPP, etc.
The cloud service system can adjust rules of data uploading and storing according to specific sensor requirements through strong machine learning capacity.
The working of the transmission system of the sensor is described below:
1. when the measurement index of the sensor changes, the measurement index is transmitted to the difference calculation engine subsystem through an event.
2. And the difference calculation engine subsystem reads the configuration information from the information and configuration storage subsystem user preference system and writes the difference data into the information and configuration storage subsystem according to the configuration rule.
3. At the same time, the difference calculation engine subsystem determines whether information transmission is required and, if so, notifies the communication subsystem.
4. And after receiving the notification, the communication subsystem starts information transmission with the cloud service.
5. The cloud service can dynamically generate configuration rules for data transmission and storage through a machine learning algorithm and transmit the configuration rules to the communication subsystem. Then, the communication subsystem writes the configuration rule of data transmission and storage into the information and configuration storage subsystem.
In another embodiment, the present invention also provides a communication apparatus of a sensor, as shown in fig. 9, the apparatus including: a memory 510 and a processor 520, the memory 510 having stored therein computer programs that are executable on the processor 520. The processor 520, when executing the computer program, implements the communication method of the sensor in the above embodiments. The number of the memory 510 and the processor 520 may be one or more.
The apparatus further comprises:
the communication interface 530 is used for communicating with an external device to perform data interactive transmission.
Memory 510 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 510, the processor 520, and the communication interface 530 are implemented independently, the memory 510, the processor 520, and the communication interface 530 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
Optionally, in an implementation, if the memory 510, the processor 520, and the communication interface 530 are integrated on a chip, the memory 510, the processor 520, and the communication interface 530 may complete communication with each other through an internal interface.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
The computer readable medium described in embodiments of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
In embodiments of the present invention, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, input method, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present invention, and these should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A method of communicating with a sensor, comprising:
reading a current measurement index of the sensor;
calculating differentiation data of a current measurement index of the sensor and a reference threshold value;
storing each differential data of the sensor;
when at least one piece of differential data reaches a set transmission condition, uploading all stored differential data of the sensor to a cloud server;
acquiring configuration information of a sensor from a server at the cloud, wherein the configuration information comprises a reference threshold and a transmission condition, and the configuration information is dynamically adjusted according to the type and parameters of the sensor;
when a plurality of sensors exist, corresponding storage spaces are respectively distributed for the sensors, the differentiated data of the sensors are recorded in the storage spaces corresponding to the sensors, and the differentiated data of the sensors and the identification information of the sensors are stored in a correlation mode;
when the data of one sensor meets the transmission condition, reading all differential data of the sensor according to the identification information of the sensor, and uploading the differential data to a cloud server at one time;
wherein the types of the sensors include a plurality of types; the identification information of the sensor comprises the type, the name and the factory number of the sensor; the transmission condition includes that the storage space is full.
2. The method of claim 1, further comprising:
and when the read time reaches the set transmission condition, uploading all the stored difference values to a cloud server.
3. The method of claim 1, wherein the reading of the current metric of the sensor is performed periodically.
4. A communication device for a sensor, comprising:
the reading module is used for reading the current measurement index of the sensor;
the calculating module is used for calculating the difference data between the current measurement index of the sensor and a reference threshold value;
the storage module is used for storing various differential data of the sensors;
the transmission module is used for uploading all stored differentiated data of the sensors to a cloud server when at least one piece of differentiated data reaches a set transmission condition;
the acquisition module is used for acquiring configuration information of the sensor from a server at the cloud end, wherein the configuration information comprises a reference threshold value and a transmission condition, and the configuration information is dynamically adjusted according to the type and parameters of the sensor;
the association storage module is used for respectively allocating corresponding storage spaces for each sensor when a plurality of sensors exist, recording the differential data of the sensor in the storage space corresponding to each sensor, and performing association storage on the differential data of each sensor and the identification information of the sensor;
the uploading module is used for reading all differential data of one sensor according to the identification information of the sensor when the data of the sensor meets the transmission condition, and uploading the data to the cloud server at one time;
wherein the types of the sensors include a plurality of types; the identification information of the sensor comprises the type, the name and the factory number of the sensor; the transmission condition includes that the storage space is full.
5. The apparatus of claim 4, wherein the transmission module is further configured to: and when the read time reaches the set transmission condition, uploading all the stored difference values to a cloud server.
6. The apparatus of claim 4, wherein the reading module reads the current metric of the sensor, in particular, in a periodic manner.
7. A communication device for a sensor, the device comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the communication method of the sensor of any of claims 1-3.
8. A computer-readable medium, in which a computer program is stored which, when being executed by a processor, carries out a method of communication of a sensor according to any one of claims 1-3.
CN201811493741.2A 2018-12-07 2018-12-07 Communication method, device, equipment and computer readable medium of sensor Active CN109660964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811493741.2A CN109660964B (en) 2018-12-07 2018-12-07 Communication method, device, equipment and computer readable medium of sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811493741.2A CN109660964B (en) 2018-12-07 2018-12-07 Communication method, device, equipment and computer readable medium of sensor

Publications (2)

Publication Number Publication Date
CN109660964A CN109660964A (en) 2019-04-19
CN109660964B true CN109660964B (en) 2021-01-05

Family

ID=66112876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811493741.2A Active CN109660964B (en) 2018-12-07 2018-12-07 Communication method, device, equipment and computer readable medium of sensor

Country Status (1)

Country Link
CN (1) CN109660964B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519720B (en) * 2019-08-23 2020-09-01 绍兴文理学院 Burst data stream mapping load capacity optimization method in sensing cloud environment
CN110996286A (en) * 2019-11-28 2020-04-10 的卢技术有限公司 Vehicle control method and system based on wireless sensor
CN113992717A (en) * 2021-10-28 2022-01-28 傲拓科技股份有限公司 Edge data acquisition system and method based on TSN technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932846A (en) * 2012-10-22 2013-02-13 南京大学 Data management system for distributed heterogeneous sensing network and data management method for data management system
CN106530599A (en) * 2016-11-30 2017-03-22 英业达科技有限公司 Home environment monitoring and alarming system
CN108922129A (en) * 2018-06-25 2018-11-30 深圳市中电数通智慧安全科技股份有限公司 A kind of method, apparatus, cloud and system adjusting security sensor alarm threshold value

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2483057B (en) * 2010-08-20 2012-11-28 Wireless Tech Solutions Llc Apparatus, method and system for managing data transmission
CN103118097A (en) * 2013-01-25 2013-05-22 电子科技大学 Data transmission method in wireless sensor network
EP3058490A4 (en) * 2013-10-17 2017-04-26 Hewlett-Packard Enterprise Development LP Storing data at a remote location based on predetermined criteria
CN105471914A (en) * 2016-01-06 2016-04-06 北京京东尚科信息技术有限公司 Information push method and device based on terminal abnormal states
CN107197078A (en) * 2016-03-15 2017-09-22 百度在线网络技术(北京)有限公司 A kind of method and apparatus according to sensing data pushed information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932846A (en) * 2012-10-22 2013-02-13 南京大学 Data management system for distributed heterogeneous sensing network and data management method for data management system
CN106530599A (en) * 2016-11-30 2017-03-22 英业达科技有限公司 Home environment monitoring and alarming system
CN108922129A (en) * 2018-06-25 2018-11-30 深圳市中电数通智慧安全科技股份有限公司 A kind of method, apparatus, cloud and system adjusting security sensor alarm threshold value

Also Published As

Publication number Publication date
CN109660964A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN109660964B (en) Communication method, device, equipment and computer readable medium of sensor
KR101262882B1 (en) Battery management system and method for transferring data within the battery management system
CN109274309B (en) Motor control method, motor control device, electronic device and storage medium
TWI754109B (en) Deterioration state judging device and degradation state judging method
CN101999101B (en) The defining method of system cloud gray model prediction
US9888298B2 (en) System, communications node, and determining method
WO2018066041A1 (en) Performance abnormality detection device, performance abnormality detection method, and performance abnormality detection program
JP7013712B2 (en) Data processing device and data processing method
KR101178669B1 (en) APPARATUS AND METHOD FOR ASSET TRACKING BASED ON Ubiquitous Sensor Network USING MOTION SENSING
CN107677967B (en) Method and device for determining electric quantity of battery
CN110660198A (en) Alarm information processing method and device and household appliance
CN114443412A (en) Method and apparatus for temperature detection and thermal management based on power measurement
CN113626293A (en) Intelligent reminding method and system for cleaning dust of fan of computer host
CN114061659A (en) Device monitoring method, device, electronic device, storage medium, and program product
CN110731766A (en) Health monitoring method and system
CN112331249B (en) Method, device, terminal equipment and storage medium for predicting service life of storage device
CN109862123A (en) Data processing method, Internet of Things module and equipment
JP2017162046A (en) Sensor data processing apparatus, sensor data processing system, sensor data processing method, and sensor data processing program
JP2013011987A (en) Abnormal state detection device and abnormal state detection method
CN110532148B (en) Monitoring method and device of micro-service system
CN115218432A (en) Air conditioner control method, air conditioner and medium
CN114152349B (en) Temperature measurement method and device, storage medium and electronic equipment
CN111836228A (en) Safety precaution analysis alarm system based on thing networking
CN112383614A (en) File transmission method and device
CN116881016B (en) Processing method and device of server process, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210510

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Patentee after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Patentee after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Patentee before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right