Field agricultural decoding sensor system and algorithm based on random algorithm power supply

By adopting a decoding sensor system based on a random algorithm in field agriculture, using a random algorithm to control the sensor power supply, combined with signal isolation relay, the problem of insufficient sensor power supply and limited communication distance is solved, and large-area data collection and low power consumption characteristics are achieved. , extending the communication distance and ensuring the stability and security of the system.

CN114928625BActive Publication Date: 2024-09-27SHANGHAI LONGXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210334789.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-09-27
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

The existing technology has problems such as insufficient power supply and limited communication distance for sensors in field agriculture. There are potential power supply safety risks, and the ultimate communication distance cannot reach more than 1km.

Method used

A decoding sensor system based on a random algorithm is used to connect two power lines with shared signals and power through the decoding cloud stack and signal isolation relay. The random algorithm is used to control the switch of the sensor power supply, reducing the difficulty of construction and maintenance, and enhancing scalability. Signal Isolated relays increase communication distance without the need for external power supply.

Benefits of technology

It realizes large-area data collection, reduces the difficulty of project implementation, enhances scalability, and has low power consumption. The signal isolation relay extends the communication distance to 0~6km, ensuring the stability and security of the transmission distance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114928625B
    Figure CN114928625B
Patent Text Reader

Abstract

The present invention provides a field agricultural decoding sensor system powered by a random algorithm and its algorithm, the system comprising: a decoding sensor host, a signal isolation relay, a decoding sensor, and a sensor; the decoding sensor host also comprises a decoding cloud stack, the decoding cloud stack and the decoding sensor are connected by two power lines of a common signal and a power supply, and the decoding sensor and the sensor are connected by a power supply and a signal line. The decoding sensor system powered by a random algorithm provided by the present invention greatly reduces the construction difficulty and the later maintenance difficulty of the project, and at the same time greatly enhances the later scalability, and can reduce the loss of the communication transportation process while ensuring the transmission distance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of field agricultural Internet of Things, and in particular to a sensor power supply technology for large-scale agriculture, and more specifically to a field agricultural decoding sensor system powered by a random algorithm and a random algorithm thereof. Background Art

[0002] With the rapid implementation of IoT applications, the types of sensor data collection are becoming more and more diverse, and the amount is becoming larger and larger. Currently, IoT data collection is divided into the following three modes:

[0003] (1) The data collection gateway supplies power to a small number of sensors and collects sensor data through analog signals;

[0004] (2) The data collection gateway supplies power to a small number of sensors and collects sensor data through the RS485 bus;

[0005] (3) There are a large number of sensors, and the sensors are powered by external power supplies. The data collection gateway collects sensor data through the RS485 bus.

[0006] The above three modes have the following disadvantages respectively:

[0007] In the first method, the acquisition gateway can only connect and collect data in a limited number of sensors, because the acquisition gateway can only provide limited power and limited analog interfaces;

[0008] Compared with the first method, the second method changes the sensor interface from analog to digital, which makes it easier to expand more bus sensors through the bus. However, the number of sensors cannot be significantly increased because the power supply of the sensor is provided by the acquisition gateway.

[0009] The third method optimizes the sensor power supply compared to the second method. It increases the power supply at different points on the bus. The data acquisition gateway is only responsible for data communication and not for sensor power supply. After optimization, more sensors can be connected to the bus and the communication distance can be extended to about 1 km. However, the sensor power supply needs to be provided in the middle. Usually, there is only power supply next to the controller in general application scenarios, so the AC220V power supply must be connected from the controller to the middle power supply position, and then transformed into DC power supply for the sensor. Therefore, this method has the problem of power safety hazards and the maximum communication distance cannot reach more than 1 km.

[0010] Based on the above defects of the prior art, it is an urgent problem to be solved by those skilled in the art to propose a solution with less power supply and longer stable transmission distance. Summary of the invention

[0011] In view of the above-mentioned defects of the prior art, the purpose of the present invention is to provide a field agricultural decoding sensor system and its algorithm based on random algorithm power supply, the system includes: a decoding sensor host, a signal isolation relay, a decoding sensor, and a sensor. The decoding sensor host also includes a decoding cloud stack, and the decoding cloud stack is connected to the decoding sensor through two power lines of a shared signal and power supply, and the decoding sensor is connected to the sensor through a power supply and signal line. The random algorithm-powered decoding sensor system provided by the present invention greatly reduces the construction difficulty of the project and the difficulty of later maintenance, and at the same time greatly enhances the later scalability, which can reduce the loss of the communication transportation process while ensuring the transmission distance.

[0012] In order to achieve the above-mentioned purpose, on the one hand, the present invention provides a field agricultural decoding sensor system powered by a random algorithm, including: a decoding sensor host, a signal isolation relay, a decoding sensor, and a sensor; the decoding sensor host also includes a decoding cloud stack, and the decoding cloud stack is connected to the decoding sensor through two power lines that share a signal and a power supply, and whether to turn on or off the sensor power is determined by a random algorithm control, and the decoding sensor is connected to the sensor through a power supply and a signal line.

[0013] Preferably, the output voltage of the decoding cloud stack on the power line is DC36V. In the present invention, the decoding cloud stack is equivalent to the acquisition host, and the decoding sensor is equivalent to the acquisition node. The decoding cloud stack controls the number of sensors that are powered simultaneously on the power line bus through a random power supply algorithm. The decoding sensor that has not yet powered the sensor will cache the sensor data read when the sensor was powered for the last time, until the cached data is refreshed after the sensor is powered for the next time; the decoding sensor encodes the digital signal onto the DC36V power supply through the power line carrier chip. The decoding sensor will decode the data on the power line in real time and convert it into a digital signal. When the decoding cloud stack needs to access the current decoding sensor, the decoding sensor will transmit the sensor data connected to it to the decoding cloud stack through the power line; the algorithm for each decoding sensor to power the sensor connected to it is controlled by the decoding cloud stack, and the decoding cloud stack will send the operation results of the algorithm to the decoding sensor through the communication protocol interaction. After receiving the control command, the decoding sensor controls whether the sensor is powered.

[0014] Preferably, the communication transmission distance range of the system of the present invention is 0 to 6 km, and can at least reach 0 to 4 km.

[0015] Preferably, the decoding cloud stack of the system of the present invention also includes a reading module, a timer module and a communication module.

[0016] More preferably, the decoding cloud stack encodes the digital signal via the power line carrier chip onto the DC36V power supply through the communication module to communicate with the decoding sensor.

[0017] Preferably, the decoding sensor of the system of the present invention can control the power supply of the sensor connected thereto, and when the sensor does not need power supply, the decoding sensor will turn off the power supply of the sensor.

[0018] More preferably, the decoding sensor will decode the data on the power line in real time, convert it into a digital signal to communicate with the sensor connected to it, and each decoding sensor has its own coding ID.

[0019] More preferably, the decoding sensor uses the stm32L010C6T6 chip as the main acquisition and control chip, and is connected to the sensor via an RS485 four-core cable.

[0020] Preferably, the signal isolation relay in the system of the present invention has the function of increasing the communication distance and does not require external power supply.

[0021] On the other hand, the present invention provides the random algorithm of the field agricultural decoding sensor system powered by the random algorithm, characterized in that it includes:

[0022] The decoding cloud stack reads the decoding sensor list through the reading module, randomly extracts N sensors and marks them with power supply tags through the communication module, and the timer module starts timing at the same time. Within the specified time t, the corresponding N sensors turn on the sensor power and collect the latest sensor data; when the specified time t is exceeded, the decoding cloud stack marks the power-off tags on the N sensors through the communication module, and re-extracts N sensors from the sensors and marks them with power supply tags for collection.

[0023] Preferably, after the decoding sensor is marked with a power-off tag, the random algorithm will strip these numbers from the array and continue to randomly select the same number of numbers until the entire array is empty, representing the end of a complete power cycle.

[0024] The technical solution provided by the present invention has at least the following beneficial technical effects:

[0025] (1) Using decoding sensors to realize large-area data collection: The invention of a large-scale decoding sensor system and its algorithm based on random algorithm power supply can realize long-distance and large-scale sensor data collection through two wires, and there can be multiple bifurcation points on the bus, which greatly reduces the difficulty of project construction and subsequent maintenance, and greatly enhances the subsequent scalability. The decoding sensor is non-polar when connected to the bus, and does not distinguish between the positive and negative of the power supply, which further reduces the difficulty of project implementation;

[0026] (2) The decoding sensor has low power consumption: The present invention achieves low power consumption in two aspects. First, the decoding sensor itself uses an ultra-low power processor, which uses a cotex M0+ core processor, which ensures that the static power consumption of the decoding sensor itself is very low; second, the decoding sensor can control the power supply of the sensor connected to it. When the sensor does not need power supply, the decoding sensor will turn off the power supply of the sensor to minimize the power consumption of the entire system;

[0027] (3) The decoding cloud stack has a random algorithm to control the power supply of the sensors connected to the decoding sensor: When the bus distance is relatively long and there are many decoding sensors connected to the bus, all sensors cannot be powered at the same time, otherwise the bus voltage drop will be very large, resulting in bit errors or garbled codes in the power line communication. The decoding cloud stack is the gateway for all decoding sensors. It uses a random algorithm to control the number of fixed sensors on the bus at the same time. In addition, in one acquisition cycle, the algorithm can ensure that all sensors are powered and the decoding sensors have obtained the data of the corresponding sensors.

[0028] (4) The signal isolation relay has the function of increasing the communication distance without the need for external power supply: The signal isolation relay can increase the bus communication distance from the previous 2km to 4km, and it does not require external power supply. The signal isolation relay is a two-way signal enhancer. Its core principle is that when the power line signal is weak, the power line chip restores the power signal to a digital signal and then re-encodes it and sends it to the power line. The signal isolation relay supports secondary relay, so that the communication distance can exceed 4km. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0030] Figure 1 A framework diagram of a field agricultural decoding sensor system powered by a random algorithm according to a preferred embodiment of the present invention;

[0031] Figure 2 A flowchart of a decoding cloud stack software implementation of a field agricultural decoding sensor system powered by a random algorithm according to a preferred embodiment of the present invention;

[0032] Figure 3 A signal isolation and relay architecture diagram of a field agricultural decoding sensor system powered by a random algorithm according to a preferred embodiment of the present invention;

[0033] Figure 4 This is a software flow chart of random algorithm-based sensor power supply control for a decoding cloud stack of a field agriculture decoding sensor system powered by a random algorithm according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0034] See also Figure 1 , is a framework diagram of the system of the present invention:

[0035] A field agricultural decoding sensor system powered by a random algorithm is provided, comprising: a decoding sensor host, a signal isolation relay, a decoding sensor, and a sensor. The decoding sensor host also comprises a decoding cloud stack. The decoding cloud stack is connected to the decoding sensor through two power lines for a common signal and a power supply, and whether to turn on or off the sensor power supply is determined by a random algorithm control. The output voltage of the decoding cloud stack on the power line is DC36V, and the decoding sensor is connected to the sensor through a power supply and a signal line.

[0036] In the present invention, the decoding cloud stack is equivalent to the acquisition host, and the decoding sensor is equivalent to the acquisition node. The decoding cloud stack controls the number of sensors that are powered simultaneously on the power line bus through a random power supply algorithm. The decoding sensor that has not yet powered the sensor will cache the sensor data read when the sensor was powered for the last time, until the cached data is refreshed after the sensor is powered for the next time; the decoding sensor encodes the digital signal to the DC36V power supply through the power line carrier chip. The decoding sensor will decode the data on the power line in real time and convert it into a digital signal. When the decoding cloud stack needs to access the current decoding sensor, the decoding sensor will transmit the sensor data connected to it to the decoding cloud stack through the power line; the algorithm for each decoding sensor to power the sensor connected to it is controlled by the decoding cloud stack, and the decoding cloud stack will send the operation results of the algorithm to the decoding sensor through the communication protocol interaction. After receiving the control command, the decoding sensor controls whether the sensor is powered.

[0037] The communication transmission distance range of the system of the present invention can reach at least 4km.

[0038] The decoding cloud stack of the system of the present invention also includes a reading module, a timer module and a communication module.

[0039] The decoding cloud stack encodes the digital signal via the power line carrier chip onto the DC36V power supply through the communication module to achieve communication with the decoding sensor.

[0040] The decoding sensor of the system of the present invention can control the power supply of the sensor connected thereto, and when the sensor does not need power supply, the decoding sensor will turn off the power supply of the sensor.

[0041] The decoding sensor will decode the data on the power line in real time, convert it into a digital signal to communicate with the sensor connected to it, and each decoding sensor has its own coding ID.

[0042] The decoding sensor uses the stm32L010C6T6 chip as the main acquisition and control chip, and is connected to the sensor via an RS485 four-core cable.

[0043] The signal isolation relay of the system of the present invention has the function of increasing the communication distance and does not require external power supply.

[0044] See also Figure 2 , decoding cloud stack software implementation flow chart:

[0045] In one embodiment, the decoding cloud stack is locally configured with a list of decoding sensors, each decoding sensor has its own unique ID, and the decoding cloud stack will continuously and periodically query the data of each decoding sensor, and the decoded sensor being queried will report the latest sensor data. Since the decoding cloud stack may be connected to dozens or even hundreds of decoding sensors and sensors, and the sensors have a certain power consumption, the sensors cannot be powered at the same time, otherwise the output voltage of the decoding cloud stack will be pulled down, causing the power line carrier data to be prone to bit errors or unable to transmit data. Therefore, during the active polling process of the decoding cloud stack, there is a specific random power supply algorithm that controls the number of sensors that are powered on the power line bus at the same time. Those decoding sensors that do not power the sensors will cache the sensor data read when the sensor was last powered until the cached data is refreshed after the sensor is powered next time.

[0046] In addition, the decoding sensor is the bridge between the decoding cloud stack and the sensor. The decoding sensor is connected to the decoding cloud stack through the power line, and the decoder is connected to the sensor through the RS485 four-core line. The power consumption of the decoding sensor is a critical factor for the system to achieve a transmission distance of 2km or more. If the power consumption of the decoding sensor is too large, the static power consumption on the entire bus will be relatively large, which will cause the current of the bus to increase, and then the voltage drop of the bus will increase, and finally the transmission distance will not reach the offline value. The decoding sensor in this system uses the stm32L010C6T6 chip as the main acquisition and control chip. The chip has the characteristics of low operating power consumption and the normal operating power consumption is 76uA / MHz. Its normal operating main frequency is 32MHz. Since the power consumption of the decoding sensor is more important than the logic to the entire system, the power consumption of the decoding sensor is controlled by reducing the operating main frequency of the MCU during implementation. Finally, we control the main frequency of the MCU to run at 2MHz, and its static power consumption is 3.3V / 150uA. The following picture shows the operating power consumption of a single decoding sensor. The external voltage is 36V and its operating current is 1.28mA.

[0047] In one embodiment, the output voltage of the decoding cloud stack is 36V, the bus uses a 2.5 square (referring to square millimeters) cable, the total length is 2km, and 100 decoding sensors are connected; the second case uses a 1.5 square cable, the total length is 2km, and 100 decoding sensors are connected. These two cases consider the worst case, and all decoding sensors are connected at the end of the bus.

[0048] Cable specifications Cable length Cable resistance Number of decoders Voltage loss Residual voltage 2.5 square 2km 40 ohms 100 5.12V 30.88V 1.5 square 2km 48 ohms 100 6.16V 29.84V

[0049] The voltage loss calculation formula = (decoder operating voltage * decoder operating current * number of decoders / decoding cloud stack output voltage) * cable resistance.

[0050] From the table above, we can see that no matter it is a 2.5 square wire or a 1.5 square wire, there is still about 30V voltage left at the end of 2km when 100 decoding sensors are connected. This voltage can power some of the 100 sensors, but it cannot power all 100 sensors at the same time, so a random algorithm is needed to control the number of sensors powered at the same time.

[0051] From the above experimental data, it can be concluded that the decoding sensor of the system of the present invention has very low power consumption, so it can support 100 decoding sensors working simultaneously on the power line. However, the power consumption of general sensors is much higher than that of decoding sensors. If 100 sensors are also powered at the same time, the entire decoding system will not be able to transmit power line data. Therefore, during normal operation, only a part of the sensors need to be powered, and the other sensors are in a power-off state. Based on this, each decoding sensor can control the power supply state of the sensor connected to it. The algorithm by which each decoding sensor powers the sensor connected to it is controlled by the decoding cloud stack. The decoding cloud stack will send the running results of the algorithm to the decoding sensor through protocol interaction. The decoding sensor controls whether the sensor is powered after receiving the control command.

[0052] See also Figure 3 , which is the signal isolation relay architecture diagram:

[0053] In one embodiment, when the bus transmission distance exceeds 2km, the communication between the decoding cloud stack and the decoder begins to lose packets, so an isolation relay is designed to be installed at 2km. Its main function is to decode all the data on the first 2km bus into digital signals through the power line, and then restore them to power line signals through the carrier chip and send them to the bus behind. Similarly, when data from the 2km bus behind arrives at the isolation relay, the isolation relay will convert the power line signal into a digital signal and then convert it into a power line signal and send it to the front 2km. It is a two-way signal enhancer. Its core principle is that when the power line signal is relatively weak, the power signal is restored to a digital signal through the power line chip and then re-encoded and sent. In this way, the communication distance of the decoding cloud stack can be extended from 2km to 4km. If a secondary relay is performed, the distance can be farther. In addition, the signal isolation relay does not require an external power supply, and its power supply is powered by the power line bus. It solves the problem that the traditional 485 signal relay requires an external power supply.

[0054] See also Figure 4 , is the flowchart of the random power supply algorithm of the decoding cloud stack, a field agricultural decoding sensor algorithm based on random algorithm power supply:

[0055] Since different sensors may be connected to the decoding sensor, the power consumption of different sensors is also different. The number of sensors that can be powered at the same time can be configured on the decoding cloud stack. When the decoding cloud stack polls the decoding sensor data, a power supply flag will be added to the queried protocol. After receiving the protocol data, the decoder uses the power supply flag to decide whether to turn on or off the sensor power. In this way, the power supply of each decoder to the sensors below is controlled by the decoding cloud stack, and the number is configurable.

[0056] In one embodiment, it is assumed that the number of sensors that are powered at the same time configured by the decoding cloud stack is N, and a total of M decoding sensors are connected under the decoding cloud stack. The starting seed array is an array of 1 to M. First, N numbers are selected from these M numbers through a random algorithm, and then the timer module is started for countdown. When the decoding cloud stack sends a protocol to the decoders with N random numbers, it is marked with a label that requires power supply. The corresponding N decoders turn on the sensor power supply and collect the latest sensor data after receiving the message. When the timer times out, the decoding cloud stack marks the sensor power supply off in the protocol. Then remove the N numbers that have just been randomly generated from the array of 1 to M, and the remaining (MN) numbers are new random algorithm seeds. The random algorithm is selected instead of the sequentially sorted algorithm because the IDs generated by the random algorithm are random and dispersed, which means that the decoding sensors that power the sensors at the same time are also dispersed on the bus, which will reduce the voltage drop loss of the entire cable, and at any time, the current on the bus is stable and unchanged.

[0057] The random algorithm above will randomly generate several numbers (such as N) at a time, and the decoding cloud stack will control the decoding sensor with the corresponding number ID to power the sensor according to these numbers. After turning off the decoding sensor to power the decoder, the random seed algorithm will strip these numbers from the seed array and continue to randomly generate the same number of numbers until the entire seed array is empty, indicating the end of a complete power cycle. In a complete sensor power cycle, each decoder is selected and its sensor is powered and updated. The decoding cloud stack will execute this complete cycle cyclically.

[0058] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

Claims

1. A field agricultural decoding sensor system powered by a random algorithm, characterized in that: include: A decoding sensor host, a signal isolation relay, a decoding sensor and a sensor; the decoding sensor host also includes a decoding cloud stack, the decoding cloud stack and the decoding sensor are connected through two power lines for sharing signals and power, and a random algorithm is used to control whether to turn on or off the sensor power supply, and the decoding sensor and the sensor are connected through a power supply and signal line; The decoding cloud stack also includes a reading module, a timer module and a communication module; The decoding cloud stack controls the random algorithm to decide whether to turn on or off the sensor power supply through the following steps: the decoding cloud stack reads the decoding sensor list through the reading module, randomly extracts N sensors and marks them with power supply tags through the communication module, and the timer module starts timing at the same time. Within the specified time t, the corresponding N sensors are turned on and the latest sensor data is collected; When the specified time t is exceeded, the decoding cloud stack marks N sensors with power-off tags through the communication module, and removes the N sensors with power-off tags from the decoding sensor list, and continues to randomly select N sensors from the remaining decoding sensor list and mark them with power-on tags for collection until the entire decoding sensor list is empty, indicating the end of a complete power cycle.

2. A field agricultural decoding sensor system powered by a random algorithm as claimed in claim 1, characterized in that: The output voltage of the decoding cloud stack on the power line is DC36V.

3. A field agricultural decoding sensor system powered by a random algorithm as claimed in claim 2, characterized in that: The decoding cloud stack encodes the digital signal via the power line carrier chip onto the DC36V power supply through the communication module to achieve communication with the decoding sensor.

4. A field agricultural decoding sensor system powered by a random algorithm as claimed in claim 1, characterized in that: The decoding sensor can control the power supply of the sensor connected thereto. When the sensor does not need power supply, the decoding sensor will turn off the power supply of the sensor.

5. A field agricultural decoding sensor system powered by a random algorithm as claimed in claim 4, characterized in that: The decoding sensor will decode the data on the power line in real time, convert it into a digital signal to communicate with the sensor connected to it, and each decoding sensor has its own coding ID.

6. A field agricultural decoding sensor system powered by a random algorithm as claimed in claim 4, characterized in that: The decoding sensor uses the stm32L010C6T6 chip as the main acquisition and control chip, and is connected to the sensor via an RS485 four-core cable.

7. A field agricultural decoding sensor system powered by a random algorithm as claimed in claim 1, characterized in that: The signal isolation relay does not require external power supply.