CN112130499A - Sensor configuration device, sensor and sensor configuration method - Google Patents

Sensor configuration device, sensor and sensor configuration method Download PDF

Info

Publication number
CN112130499A
CN112130499A CN202011017527.7A CN202011017527A CN112130499A CN 112130499 A CN112130499 A CN 112130499A CN 202011017527 A CN202011017527 A CN 202011017527A CN 112130499 A CN112130499 A CN 112130499A
Authority
CN
China
Prior art keywords
circuit
sensor
nfc
configuration data
configuration
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.)
Granted
Application number
CN202011017527.7A
Other languages
Chinese (zh)
Other versions
CN112130499B (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.)
Singularity Xinyuan International Technology Development Beijing Co ltd
Original Assignee
Singularity Xinyuan International Technology Development Beijing 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 Singularity Xinyuan International Technology Development Beijing Co ltd filed Critical Singularity Xinyuan International Technology Development Beijing Co ltd
Priority to CN202011017527.7A priority Critical patent/CN112130499B/en
Publication of CN112130499A publication Critical patent/CN112130499A/en
Application granted granted Critical
Publication of CN112130499B publication Critical patent/CN112130499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • H04B5/70
    • H04B5/77
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition
    • 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

Abstract

The application provides a sensor configuration device, a sensor and a sensor configuration method, wherein the sensor configuration device comprises an NFC circuit and an NFC communication antenna, wherein the NFC circuit comprises an internal memory; the NFC circuit is electrically connected with the NFC communication antenna; the NFC circuit is electrically connected with the MCU circuit in the sensor, and the method comprises the following steps: the NFC circuit receives a wireless signal transmitted by user equipment through an NFC communication antenna, and the wireless signal carries configuration data; and the NFC circuit writes the configuration data into the internal memory, so that when the MCU circuit is communicated with the NFC circuit, the MCU circuit reads the configuration data from the internal memory and carries out sensor data acquisition according to the configuration data. The sensor configuration device is arranged in the sensor, and non-contact communication is realized through the NFC circuit, so that data are interactively configured, the shell structure of the sensor cannot be damaged, and the waterproof performance of the sensor cannot be influenced.

Description

Sensor configuration device, sensor and sensor configuration method
Technical Field
The application relates to the technical field of agricultural internet of things sensors, in particular to a sensor configuration device, a sensor and a sensor configuration method.
Background
The application of sensors in the field of agricultural internet of things is increasing, wherein some sensors work in outdoor underground pipelines, open air and other environments, and the sensors are likely to be in contact with liquid, so that the use function is affected, and therefore the sensors need to have high waterproof performance. Before the sensor is deployed or in the using process, some necessary configuration work needs to be performed, for example, the communication address, the serial number, the acquisition period and the like of the sensor are configured, so that the sensor needs to be configured by arranging some communication devices in the sensor.
Generally, the sensor can be configured by means of wired transmission, so that a corresponding wiring port needs to be opened on a housing of the sensor, and during configuration, a wiring is inserted into the wiring port to realize electrical connection between the sensor and the control device, so as to configure the sensor. Or, the sensor is configured through the infrared remote controller, so that an infrared receiving tube needs to be installed on the shell of the sensor, and when the configuration is performed, the sensor receives a configuration signal transmitted by the infrared remote controller through the infrared receiving tube, and then transmits the configuration signal to the chip, so as to complete the configuration. Obviously, in the two configuration modes, the shell of the sensor needs to be provided with corresponding openings, so that the tightness of the shell is affected, and the waterproof performance of the sensor is seriously reduced.
In order to guarantee the waterproof performance of the sensor, the situation that a hole is formed in the shell of the sensor is avoided, and the Bluetooth wireless communication mode can be adopted for configuration. However, before configuration, bluetooth wireless communication needs to complete pairing between devices first, which is troublesome to operate, and in the use environment of the sensor, the situation that pairing cannot be performed is very likely to occur, and the configuration success rate is low.
Disclosure of Invention
The application provides a sensor configuration device, a sensor and a sensor configuration method, which are used for improving the configuration success rate of the sensor.
In a first aspect, the present application provides a sensor arrangement disposed within a housing of a sensor, the sensor arrangement comprising: the NFC circuit comprises an internal memory, and the internal memory is used for storing data; the NFC circuit is electrically connected with the NFC communication antenna and receives configuration data sent by user equipment through the NFC communication antenna; and the NFC circuit is electrically connected with the MCU circuit in the sensor and transmits the configuration data to the MCU circuit.
In a second aspect, the present application provides a sensor comprising: MCU circuitry, Lora wireless communication circuitry, a battery, a housing, a sensor chip, and the sensor configuration apparatus of claim 1; the Lora wireless communication circuit, the sensor configuration device, the battery and the sensor chip are all electrically connected with the MCU circuit; the MCU circuit, the Lora wireless communication circuit, the battery, the sensor chip and the sensor configuration device are all arranged in the shell, and the shell forms a closed structure; the MCU circuit acquires configuration data sent by user equipment through the sensor configuration device and carries out sensor data acquisition according to the configuration data.
In a third aspect, the present application provides a sensor configuration method, applied to the sensor as described above, the method including: the NFC circuit receives a wireless signal transmitted by user equipment through the NFC communication antenna, the wireless signal carries configuration data, and the user equipment is terminal equipment with an NFC function; the NFC circuit writes the configuration data to an internal memory; when the MCU circuit is communicated with the NFC circuit, the MCU circuit reads the configuration data from the internal memory; and the MCU circuit acquires sensor data according to the read configuration data.
As can be seen from the above technologies, the present application provides a sensor configuration apparatus, a sensor, and a sensor configuration method, wherein the sensor configuration apparatus includes an NFC circuit and an NFC communication antenna, wherein the NFC circuit includes an internal memory, and the internal memory is used for storing data; the NFC circuit is electrically connected with the NFC communication antenna; the sensor configuration device is arranged in the sensor, and the NFC circuit is electrically connected with the MCU circuit in the sensor. In this way, a wireless signal transmitted by the user equipment can be received through the NFC communication antenna, the wireless signal carries configuration data, and the wireless signal is transmitted to the NFC circuit, so that the NFC circuit writes the configuration data into the internal memory, and the MCU circuit can read the configuration data from the internal memory of the NFC circuit to operate using the configuration data. It can be seen that the sensor configuration device is arranged inside the sensor in the application, so that the shell structure of the sensor cannot be damaged, and the waterproof performance of the sensor cannot be influenced. Meanwhile, the NFC circuit can realize the transmission of configuration data with the user equipment through non-contact communication, a data transmission path is easy to establish, the data transmission is stable, and the configuration success rate of the sensor can be effectively improved.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic structural diagram of a sensor provided in an embodiment of the present application;
fig. 2 is a schematic diagram of interaction between a sensor and a user equipment according to an embodiment of the present application;
fig. 3 is a flowchart illustrating parameter configuration of a sensor chip according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a configuration data structure according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating transmission of physical quantity data according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a sensor according to an embodiment of the present application.
Illustration of the drawings:
the system comprises a sensor, a user device, a gateway device, a server, a 1-MCU circuit, a 2-Lora wireless communication circuit, a 3-battery, a 4-shell, a 5-sensor configuration device, a 51-NFC circuit, an 511-internal memory, a 52-NFC communication antenna, a 53-NFC communication antenna, a 6-sensor chip, a 100-receiving unit, a 200-writing unit, a 201-first electric energy acquisition unit, a 202-first power-off unit, a 300-sending unit, a 400-second electric energy acquisition unit and a 500-second power-off unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application of sensors in the field of agricultural internet of things is increasing, wherein some sensors work in outdoor underground pipelines, open air and other environments, and the sensors are likely to be in contact with liquid, so that the use function is affected, and therefore the sensors need to have high waterproof performance. Before the sensor is deployed or in the using process, some necessary configuration work needs to be performed, for example, the communication address, the serial number, the acquisition period and the like of the sensor are configured, so that the sensor needs to be configured by arranging some communication devices in the sensor.
Generally, the sensor can be configured by means of wired transmission, so that a corresponding wiring port needs to be opened on a housing of the sensor, and during configuration, a wiring is inserted into the wiring port to realize electrical connection between the sensor and the control device, so as to configure the sensor. Or, the sensor is configured through the infrared remote controller, so that an infrared receiving tube needs to be installed on the shell of the sensor, and when the configuration is performed, the sensor receives a configuration signal transmitted by the infrared remote controller through the infrared receiving tube, and then transmits the configuration signal to the chip, so as to complete the configuration. Obviously, in the two configuration modes, the shell of the sensor needs to be provided with corresponding openings, so that the tightness of the shell is affected, and the waterproof performance of the sensor is seriously reduced.
In order to guarantee the waterproof performance of the sensor, the situation that a hole is formed in the shell of the sensor is avoided, and the Bluetooth wireless communication mode can be adopted for configuration. However, before configuration, bluetooth wireless communication needs to complete pairing between devices first, which is troublesome to operate, and in the use environment of the sensor, the situation that pairing cannot be performed is very likely to occur, and the configuration success rate is low.
In order to solve the above problem, the present application provides a sensor configuration apparatus and a sensor, fig. 1 is a schematic structural diagram of a sensor provided in an embodiment of the present application, and as shown in fig. 1, the sensor includes: MCU circuit 1, Lora wireless communication circuit 2, battery 3, shell 4, sensor configuration device 5 and sensor chip 6. The interior of the sensor may also include means for performing or assisting in performing other functions, only those means relevant to the present embodiment being shown here, and the remainder will not be shown.
In the present embodiment, the Lora (long range) wireless communication circuit 2, the sensor configuration device 5, the battery 3, and the sensor chip 6 are electrically connected to an MCU (micro controller Unit) circuit 1. In this way, the battery 3 may power the MCU circuit 1, and the MCU circuit 1 may power and control the Lora wireless communication circuit 2, the sensor configuration device 5, and the sensor chip 6. Simultaneously, guarantee that MCU circuit 1, Lora wireless communication circuit 2, battery 3, sensor configuration device 5 and sensor chip 6 all set up in the inside of shell 4, form enclosed construction by shell 4, like this, the shell 4 of sensor is complete, does not have the trompil, can guarantee the seal of shell 4 from this to guarantee the waterproof performance of sensor.
In this embodiment, the MCU circuit 1 may be in the form of a chip, an integrated circuit board, etc., and mainly undertakes control functions such as data processing and generation and transmission of instructions, and includes a processor, a memory, and an interface, where the processor may include one or more processing units, such as a system on a chip (SoC), a Central Processing Unit (CPU), a Microcontroller (MCU), a memory controller, and the like. The different processing units may be separate devices or may be integrated into one or more processors. In this way, the MCU circuit 1 can perform processing of configuration data, generate configuration instructions, and transmit control commands to the Lora wireless communication circuit 2 and the sensor configuration device 5. The memory may include one or more memory units, for example, may include a volatile memory (volatile memory), such as: dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), and the like; non-volatile memory (NVM) may also be included, such as: read-only memory (ROM), flash memory (flash memory), and the like. The different memory units may be separate devices or may be integrated or packaged into one or more processors and become a part of the processors. Thus, the MCU circuit 1 can store the configuration data for subsequent use.
In the embodiment of the present application, the sensor chip 6 is used to collect physical quantity data outside the sensor, such as ambient temperature, humidity, carbon dioxide concentration, illumination intensity, and the like. The sensor chip 6 may be one or a combination of several of an infrared sensor, a temperature sensor, a pressure sensor, a light sensor, and the like. The sensor chip 6 can be assembled on the PCB where the MCU circuit 1 is located, and is electrically connected with the MCU circuit 1 through connecting parts such as wires or wiring on the PCB, so that the MCU circuit 1 can supply power for the sensor chip 6. Meanwhile, the sensor chip 6 may have a storage unit, so that the sensor chip 6 may store the collected physical quantity data, and the MCU circuit 1 may acquire the physical quantity data from the sensor chip 6 in real time or periodically for subsequent processing and analysis.
In the using process of the sensor, corresponding parameters need to be configured for the sensor chip 6 according to the actual environment and the actual application, for example, when a certain environment change needs to be closely monitored, a shorter acquisition period needs to be configured for the sensor chip 6; when the environmental changes are stable, a longer acquisition period can be configured for the sensor chip 6.
In one implementation, the sensor chip 6 may be pre-configured with data according to a pre-determination of the environment before being installed in a specific location, for example, the environment to be monitored is relatively stable, and when the change is relatively small, the sensor chip 6 may be pre-configured with a relatively long acquisition period. The configuration data can be directly written into the memory of the MCU circuit 1 according to the pre-judgment of the environment when the MCU circuit 1 is designed, and then the MCU circuit 1 is assembled in the shell 4 of the sensor, at the moment, the MCU circuit 1 uses the configuration parameters to control the sensor chip 6 to work, and the configuration data is equivalent to the default configuration data of the sensor chip 6.
In a first implementation manner, the MCU circuit 1 may obtain configuration data through the sensor configuration device 5, which is as follows:
as shown in fig. 1, the sensor configuration device 5 includes an NFC (Near Field Communication) circuit 51 and an NFC Communication antenna 52, wherein the NFC circuit 51 is electrically connected to the MCU circuit 1, so that the MCU circuit 1 can supply power to the NFC circuit 51 and control the operation of the NFC circuit 51. The NFC circuit 51 is electrically connected to the NFC communication antenna 52, so that data transmission can be performed between the NFC circuit 51 and the NFC communication antenna 52. In this embodiment, NFC circuit 51 may be in the form of a chip, an integrated circuit board, and as shown in fig. 1, NFC circuit 51 includes an internal memory 511, where internal memory 511 may include one or more storage units, for example, may include a volatile memory (volatile memory), such as: dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), and the like; non-volatile memory (NVM) may also be included, such as: read-only memory (ROM), flash memory (flash memory), and the like. The different memory cells may be independent devices, or may be integrated or packaged together. In this way, the NFC circuit 51 may store the received configuration data, facilitating subsequent use of the MCU circuit 1.
The NFC circuit 51 and the MCU circuit 1 may be provided with a digital bus interface, so that the NFC circuit 51 and the MCU circuit 1 may be electrically connected via a digital bus and transmit data via the digital bus. In addition, the NFC circuit 51 may be designed on the same PCB as the MCU circuit 1, so that the occupied space inside the sensor may be effectively reduced, thereby controlling the overall size of the sensor and adapting the sensor to a wider application scenario.
The NFC circuit 51 may store a set of configuration data in advance before assembly, after the MCU circuit 1, the Lora wireless communication antenna 2, the battery 3, the NFC circuit 51, the sensor chip 6, and other components are all assembled in the housing 4 of the sensor, the MCU circuit 1 communicates with the battery 3, the battery 3 supplies power, the MCU circuit 1 may communicate with the NFC circuit 51 by controlling an electrical switch between the MCU circuit 1 and the NFC circuit 51, and supply power to the NFC circuit 51, so that the NFC circuit 51 is in the first power-on mode, at this time, the NFC circuit 51 starts a function of reading the configuration data, that is, the NFC circuit 51 may supply the MCU circuit 1 to read the configuration data stored in advance from the memory of the NFC circuit 51. Further, after the MCU circuit 1 acquires the configuration data from the NFC circuit 51, the power switch may be controlled to cut off the communication with the NFC circuit 51 and stop supplying power to the NFC circuit 51, so that the NFC circuit 51 is powered off and in a sleep state, which may reduce the ineffective consumption of the NFC circuit 51 on the battery 3 and prolong the power supply life of the battery 3. After acquiring the configuration parameters from the NFC circuit 51, the MCU circuit 1 may use the configuration parameters to control the sensor chip 6 to perform physical quantity data acquisition.
In a second implementation, the MCU circuit 1 can acquire the configuration data needed to be used in real time through the sensor configuration device 5.
The NFC communications antenna 52 may be one or more antennas that have the capability to receive and transmit signals. The NFC communication antenna 52 may be a component disposed on the NFC circuit 51, or may be a device independent from the NFC circuit 51, and when the NFC communication antenna 52 is a component disposed on the NFC circuit 51, the NFC communication antenna may be electrically connected to the NFC circuit 51 through a trace on a PCB, so as to implement data transmission; when the NFC communication antenna 52 is a separate device, it may be electrically connected to the NFC circuit 51 through a connection member, such as a wire, a flexible circuit board, or the like, to realize data transmission.
In this implementation, the NFC circuit 51 may preset a set of configuration data, and the MCU circuit 1 obtains the configuration data according to the first implementation. After the MCU circuit 1 acquires the configuration data, the configuration data can be used to control the sensor chip 6 to perform the physical quantity data collection.
In a third implementation manner, the NFC circuit 1 may not set the configuration data in advance, and at this time, the user may set the configuration data in real time to flexibly adjust the configuration data of the sensor chip 6.
As shown in fig. 2, both the sensor 01 and the user device 02 are provided with NFC communication antennas, and the sensor 01 and the user device 02 can perform data interaction with the NFC communication antenna 53 through the NFC communication antenna 52. In the data interaction process, the sensor 01 and the user equipment 02 need to be located within the signal radiation range of the NFC communication antennas of each other, and at this time, the sensor 01 and the user equipment 02 can realize data transmission through non-contact communication. Specifically, as shown in fig. 3, the sensor chip 6 may be configured according to the following procedure:
and S1, the sensor receives a wireless signal transmitted by the user equipment through the NFC communication antenna, and the wireless signal carries configuration data.
S2, the sensor transmits the wireless signal to the NFC circuit through the NFC communication antenna to cause the NFC circuit to write the configuration data.
And S3, reading the configuration data from the NFC circuit through the MCU circuit by the sensor so as to work by using the configuration data.
The user device 02 may be a PC, a smart phone, a smart wearable device, or other device having functions of signal reception, signal processing, data processing, signal transmission, and the like. A configuration APP (Application program) is installed in the user equipment 02, and is used for a user to input configuration data, and the NFC communication antenna 53 in the user equipment is controlled to transmit a wireless signal by the configuration APP. Specifically, a user may input custom configuration data in the configuration APP, the configuration data may be dynamically set according to a real-time environment and a need, and after the user input is completed, the user equipment 02 may be placed at a position shown in fig. 2, so that the sensor 01 is connected to the NFC communication antenna in the user equipment 02. The user can transmit a wireless signal, which carries configuration data, through the NFC communication antenna 53 by clicking a transmission key or the like. The NFC antenna 52 may receive a wireless signal sent from the NFC antenna 53, and transmit the wireless signal to the NFC circuit 51, and because the wireless signal carries electric energy, the wireless signal may provide electric energy for a process of receiving the wireless signal by the NFC circuit 51, so that the NFC circuit 51 is in the second power-on mode, and at this time, the NFC circuit 1 starts a function of writing configuration data. After the NFC circuit 51 is powered on, the configuration data may be obtained from the wireless signal and written into the internal memory 511, and if a set of configuration data has been stored in the memory of the NFC circuit 51 in advance as in the scheme provided in the second implementation, the NFC circuit 51 may replace (overwrite) the configuration data (the original configuration data) stored in the memory in advance with the configuration data obtained from the wireless signal. When the user equipment 02 completes data transmission, the NFC communication antenna 53 will no longer transmit wireless signals, and at this time, the NFC circuit 51 will not continue to be powered by wireless signals, and the NFC circuit 51 is powered off.
In the process that the NFC circuit 51 executes the above process, the MCU circuit 1 has no currently used configuration data, or still uses the current configuration data (the configuration data stored in the NFC circuit 51 in advance), and after the NFC circuit 51 acquires the configuration data from the wireless signal, it needs to send an interrupt signal to the MCU circuit 1 at any time before power off, where the interrupt signal is used to instruct the MCU circuit 1 to interrupt the work performed based on the current configuration data, that is, to control the sensor chip 6 to perform the acquisition work using the current configuration data. After the MCU circuit 1 receives the interrupt signal, the MCU circuit 1 is connected to the NFC circuit 51 by controlling the electrical switch to supply power to the NFC circuit 51, and the NFC circuit 51 is in the first power-on mode, so that the NFC circuit 51 starts the function of reading the configuration data, and thus the MCU circuit 1 can obtain the configuration data written in through the above process from the internal memory 511, and the MCU circuit 1 can replace the current configuration data with the configuration data, for example, the current configuration data used by the MCU circuit 1 is data 1, and the configuration data obtained from the NFC circuit 51 is data 2, and at this time, the MCU circuit 1 can replace data 1 with data 2, and the sensor chip 6 is controlled by data 2 to perform the collection operation; or, if the MCU circuit 1 has no current configuration data, the MCU circuit 1 may directly use the data 2 to control the sensor chip 6 to perform the collection operation.
Further, after the MCU circuit 1 obtains the configuration data from the memory of the NFC circuit 1, the NFC circuit 51 may be powered off and put in a sleep state by controlling the electric switch to disconnect the connection with the NFC circuit 51, so that the useless consumption of the NFC circuit 51 on the battery 3 may be reduced.
It can be seen that the third implementation mode can be used for configuring the MCU circuit 1 for the first time, and of course, the first implementation mode and the third implementation mode can be combined, or the second implementation mode and the third implementation mode can be combined, so as to update the configuration data in real time, and thus, the configuration of the configuration data can be more flexible, and the acquisition work of the sensor chip 6 is closer to the actual requirement.
As can be seen from the above process, the NFC circuit 51 is powered by the user equipment 02 and the MCU circuit 1 in the whole process, and is in an intermittent power supply mode, that is, the NFC circuit 51 is powered only when it needs to operate (receive a wireless signal and provide configuration data), so that power consumption of the user equipment 02 and the battery 3 can be effectively reduced.
It can be seen that the sensor provided by the present application can realize contactless communication through the sensor configuration device 5, and thus, a user only needs to utilize the user equipment 02 to communicate with the sensor 01 only by being located within the radiation range of the sensor configuration device 5(NFC communication antenna 52), that is, the transmission of configuration data is realized, no extra wiring or opening on the sensor is needed, the integrity of the housing 4 of the sensor is not affected, thereby ensuring the sealing property of the housing 4, and improving the waterproof performance of the sensor. The NFC circuit 1 is a passive device, that is, the NFC circuit 1 itself does not have a power supply, and its power supply depends on the wireless signal transmitted by the user equipment 02 or the power transmitted by the MCU circuit 1, so that the required power is not all from the power transmitted by the MCU circuit 1, that is, not all is supplied by the battery 3, and it only consumes the power of the battery 3 in the process of acquiring the configuration data by the MCU circuit 1, and therefore, the power supply burden of the battery 3 can be effectively reduced, thereby prolonging the service life of the battery 3. In some cases, the sensor is installed in a relatively narrow area or underground, and therefore, it is inconvenient to frequently take out the sensor to replace the battery 3, and thus, the power supply life of the battery 3 is extended, the number of times of replacing the battery 3 can be reduced, and the burden on the operation can be effectively reduced. Meanwhile, because the battery 3 is arranged inside the shell 4, the shell 4 is required to be disassembled necessarily when the battery 3 is replaced, certain damage is caused to the shell 4 certainly in the process, and the waterproof performance of the shell is affected, so that the power supply service life of the battery 3 is prolonged, the frequency of replacing the battery 3 can be reduced, the damage to the shell 4 is reduced, and the damage to the waterproof performance of the shell 4 is reduced as much as possible.
Further, in view of the above, in order to minimize the number of times the battery 3 is replaced, the battery 3 may be a disposable high-capacity battery, so that the battery 3 can be used for 5-10 years of sensor operation. The battery has large capacity, can support long-time power supply, and does not need to be replaced frequently, thereby reducing the replacement frequency of the battery and lightening the operation burden of an installer.
Further, a configuration DATA structure as shown in fig. 4 may be adopted as a basis for the transmission of the configuration DATA, and as shown in fig. 4, the configuration DATA is composed of a Header (HEAD) field of 1 byte, a configuration DATA Length (LEN) field of 4 bytes, a configuration DATA content (DATA) field of N bytes, and a Cyclic Redundancy Check (CRC) field of 1 byte. The header field is an identification field used for identifying the initial position of valid data in the configuration data; a configuration data length field for indicating a byte length of the configuration data written after the header field; the configuration data content field is used for indicating specific content in the configuration data, such as a series of specific parameters; the check code field is used for calculating the check of the whole configuration data so as to ensure the storage validity of the configuration data. Such configuration data structure is simple and short, so that the writing speed of the configuration data in the NFC circuit 51 or the reading speed of the configuration data from the NFC circuit 51 by the MCU circuit 1 are both fast, which can reduce the communication time between the NFC circuit 51 and the user equipment 02 and the MCU circuit 1, thereby reducing the power consumption of the NFC circuit 51 to the user equipment 02 and the battery 3, and thus, the power supply life of the battery 3 can be correspondingly prolonged, and the number of times of replacing the battery 3 can be reduced.
As shown in fig. 5, the MCU circuit 1 uses the configuration data to control the sensor chip 6 to collect the relevant physical quantity data from the environment, after acquiring the collected physical quantity data from the sensor chip 6, the MCU circuit 1 sends the physical quantity data to the Lora wireless communication circuit 2, the Lora wireless communication circuit 2 continues to send the received physical quantity data to the upper gateway device 03, the gateway device 03 continues to send the received physical quantity data to the server 04, and the server 04 analyzes the environment according to the physical quantity data, so as to calculate and obtain more optimized configuration data, and continuously optimize the data collection work of the sensor 01.
The above process can be correspondingly realized through a software structure, which specifically comprises the following steps:
fig. 6 provides a schematic structural diagram of an NFC circuit, which includes, as shown in fig. 6: a receiving unit 100 and a writing unit 200;
the receiving unit 100 is configured to receive a wireless signal transmitted by a user equipment through the NFC communication antenna, where the wireless signal carries configuration data;
the writing unit 200 is configured to write the configuration data into an internal memory, so that when the MCU circuit is in communication with the NFC circuit, the MCU circuit reads the configuration data from the internal memory.
The writing unit 200 is specifically configured to overwrite the configuration data with original configuration data in the internal memory to replace the original configuration data.
As shown in fig. 6, the writing unit 200 further includes: a first power obtaining unit 201, where the first power obtaining unit 201 is configured to obtain power from the wireless signal, so that the NFC circuit is in a first power-on mode in a process of receiving the wireless signal, and the first power-on mode supports the NFC circuit to start a function of writing configuration data.
As shown in fig. 6, the writing unit 200 further includes a first power-off unit 202, where the first power-off unit 202 is configured to turn off the data writing function when the user equipment stops transmitting the wireless signal.
As shown in fig. 6, the NFC circuit further includes a sending unit 300, where the sending unit 300 is configured to send an interrupt signal to the MCU circuit after the NFC circuit writes the configuration data into the internal memory, where the interrupt signal is used to instruct the MCU circuit to interrupt using the current configuration data.
As shown in fig. 6, the NFC circuit further includes a second power obtaining unit 400, where the second power obtaining unit 400 is configured to receive power transmitted by the MCU circuit, so that the NFC circuit is in a second power-on mode, where the second power-on mode supports the NFC circuit to start a function of reading configuration data.
As shown in fig. 6, the NFC circuit further includes a second power-off unit 500, where the second power-off unit 500 is configured to turn off a readout function of the configuration data after the MCU circuit reads the configuration data from the internal memory.
Optionally, the configuration data is composed of a 1-byte header field, a 4-byte configuration data length field, an N-byte configuration data content field, and a 1-byte check code field.
As can be seen from the above technologies, the present application provides a sensor configuration apparatus, a sensor, and a sensor configuration method, wherein the sensor configuration apparatus includes an NFC circuit and an NFC communication antenna, wherein the NFC circuit includes an internal memory, and the internal memory is used for storing data; the NFC circuit is electrically connected with the NFC communication antenna; the sensor configuration device is arranged in the sensor, and the NFC circuit is electrically connected with the MCU circuit in the sensor. In this way, a wireless signal transmitted by the user equipment can be received through the NFC communication antenna, the wireless signal carries configuration data, and the wireless signal is transmitted to the NFC circuit, so that the NFC circuit writes the configuration data into the internal memory, and the MCU circuit can read the configuration data from the internal memory of the NFC circuit to operate using the configuration data. It can be seen that the sensor configuration device is arranged inside the sensor in the application, so that the shell structure of the sensor cannot be damaged, and the waterproof performance of the sensor cannot be influenced. Meanwhile, the NFC circuit can realize the transmission of configuration data with the user equipment through non-contact communication, a data transmission path is easy to establish, the data transmission is stable, and the configuration success rate of the sensor can be effectively improved.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A sensor arrangement disposed within a housing of a sensor, the sensor arrangement comprising: the NFC circuit comprises an internal memory, and the internal memory is used for storing data;
the NFC circuit is electrically connected with the NFC communication antenna and receives configuration data sent by user equipment through the NFC communication antenna;
and the NFC circuit is electrically connected with the MCU circuit in the sensor and transmits the configuration data to the MCU circuit.
2. A sensor, characterized in that the sensor comprises: MCU circuitry, Lora wireless communication circuitry, a battery, a housing, a sensor chip, and the sensor configuration apparatus of claim 1;
the Lora wireless communication circuit, the sensor configuration device, the battery and the sensor chip are all electrically connected with the MCU circuit;
the MCU circuit, the Lora wireless communication circuit, the battery, the sensor chip and the sensor configuration device are all arranged in the shell, and the shell forms a closed structure;
the MCU circuit acquires configuration data sent by user equipment through the sensor configuration device and carries out sensor data acquisition according to the configuration data.
3. A sensor configuration method, applied to the sensor according to claim 2, characterized in that the method comprises:
the NFC circuit receives a wireless signal transmitted by user equipment through the NFC communication antenna, the wireless signal carries configuration data, and the user equipment is terminal equipment with an NFC function;
the NFC circuit writes the configuration data to an internal memory;
when the MCU circuit is communicated with the NFC circuit, the MCU circuit reads the configuration data from the internal memory;
and the MCU circuit acquires sensor data according to the read configuration data.
4. The method of claim 3, wherein the NFC circuitry receiving the wireless signal transmitted by the user device via the NFC communications antenna further comprises:
the NFC circuit obtains electric energy from the wireless signal, so that the NFC circuit is in a first power-on mode in the process of receiving the wireless signal, wherein the first power-on mode supports the NFC circuit to start a writing function of the configuration data.
5. The method of claim 4, wherein the NFC circuitry receiving the wireless signal transmitted by the user device via the NFC communications antenna further comprises:
and when the user equipment stops transmitting the wireless signal, the NFC circuit is powered off and the writing function of the configuration data is closed.
6. The method of claim 3, wherein after the NFC circuit writes the configuration data to internal memory, the method further comprises:
and the NFC circuit sends an interrupt signal to the MCU circuit, wherein the interrupt signal is used for indicating the MCU circuit to interrupt the use of the current configuration data.
7. The method of claim 6, wherein after the MCU circuit receives the interrupt signal, the method further comprises:
the MCU circuit interrupts using the current configuration data;
the MCU circuit is communicated with the NFC circuit and transmits electric energy to the NFC circuit;
the NFC circuit receives the electric energy transmitted by the MCU circuit, so that the NFC circuit is in a second power-on mode, wherein the second power-on mode supports the NFC circuit to start a reading function of the configuration data.
8. The method of claim 7, wherein after the MCU circuit reads the configuration data from the internal memory, the method further comprises:
the MCU circuit stops transmitting electric energy to the NFC circuit and cuts off the communication with the NFC circuit;
the NFC circuit is powered off and the read function of the configuration data is turned off.
9. The method of claim 3, wherein the NFC circuit writing the configuration data to an internal memory comprises:
the NFC circuit overwrites the configuration data over the original configuration data in the internal memory to replace the original configuration data.
10. The method of claim 3, wherein the configuration data comprises a 1-byte header field, a 4-byte configuration data length field, an N-byte configuration data content field, and a 1-byte check code field.
CN202011017527.7A 2020-09-24 2020-09-24 Sensor configuration device, sensor and sensor configuration method Active CN112130499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017527.7A CN112130499B (en) 2020-09-24 2020-09-24 Sensor configuration device, sensor and sensor configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017527.7A CN112130499B (en) 2020-09-24 2020-09-24 Sensor configuration device, sensor and sensor configuration method

Publications (2)

Publication Number Publication Date
CN112130499A true CN112130499A (en) 2020-12-25
CN112130499B CN112130499B (en) 2022-09-23

Family

ID=73839754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017527.7A Active CN112130499B (en) 2020-09-24 2020-09-24 Sensor configuration device, sensor and sensor configuration method

Country Status (1)

Country Link
CN (1) CN112130499B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2481290A2 (en) * 2012-12-03 2014-07-29 Julio Ángel Serrano Pérez System for the provision of digital information and authentication of the origin of said information (Machine-translation by Google Translate, not legally binding)
CN105147308A (en) * 2015-09-21 2015-12-16 上海奕瑞光电子科技有限公司 Quick configuration startup available wireless X-ray flat panel detector based on NFC (near field communication)
CN205142288U (en) * 2015-07-30 2016-04-06 广州奥翼电子科技有限公司 Take electronic paper display's mobile terminal dorsal scale and have mobile terminal of this dorsal scale
CN107134151A (en) * 2016-02-29 2017-09-05 胡睿 Using NFC technique and the method for geomagnetic type vehicle checker data interaction
CN110992668A (en) * 2019-12-18 2020-04-10 上海硕物天成信息科技有限公司 Low-power-consumption wireless temperature and humidity sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2481290A2 (en) * 2012-12-03 2014-07-29 Julio Ángel Serrano Pérez System for the provision of digital information and authentication of the origin of said information (Machine-translation by Google Translate, not legally binding)
CN205142288U (en) * 2015-07-30 2016-04-06 广州奥翼电子科技有限公司 Take electronic paper display's mobile terminal dorsal scale and have mobile terminal of this dorsal scale
CN105147308A (en) * 2015-09-21 2015-12-16 上海奕瑞光电子科技有限公司 Quick configuration startup available wireless X-ray flat panel detector based on NFC (near field communication)
CN107134151A (en) * 2016-02-29 2017-09-05 胡睿 Using NFC technique and the method for geomagnetic type vehicle checker data interaction
CN110992668A (en) * 2019-12-18 2020-04-10 上海硕物天成信息科技有限公司 Low-power-consumption wireless temperature and humidity sensor

Also Published As

Publication number Publication date
CN112130499B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN105310660A (en) Body temperature detection device and body temperature detection method thereof
CN112130499B (en) Sensor configuration device, sensor and sensor configuration method
CN111381010A (en) Monitoring system
CN107307853B (en) Capsule monitoring device
CN111044172B (en) Electric power pipe well cable information acquisition and storage device and method
US11829221B2 (en) Sealed enclosure power control system
CN205691243U (en) Bluetooth moisture recorder
CN212083944U (en) Dam safety monitoring data acquisition unit
CN213695279U (en) Bluetooth ear tag capable of detecting internal temperature
CN209326822U (en) A kind of novel intelligent thermometer
CN211744735U (en) Industrial and agricultural production environment data acquisition device based on NB-IoT technology
CN207982769U (en) A kind of numerically-controlled machine tool equipment
CN207850413U (en) A kind of wireless authentication probe and detection verification system
CN216852367U (en) Wireless vibration sensor and equipment state monitoring device based on NFC
CN210400454U (en) Environment-friendly humiture recorder
CN110716416A (en) Connector type power-on timing device and power-on timing method
CN205506118U (en) An environment monitor
CN217521575U (en) Intelligent pen
CN109029561A (en) A kind of ambient temperature and humidity and VOC multi-parameter monitor terminal on-line
CN217585865U (en) Wireless humiture recorder
CN109029563A (en) A kind of ambient temperature and humidity and PM2.5, PM10 multi-parameter monitor terminal on-line
CN211291566U (en) Environmental temperature monitoring device
CN215990945U (en) Wireless camera and wireless monitoring system
CN210036813U (en) Remote environment measuring system
CN219041992U (en) Low-power consumption node equipment and low-power consumption industrial-grade internet of things platform

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