A data processing method based on a reaction unit system
Patent Information
- Application Number
- CN202310305964.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-03-24
AI Technical Summary
[0002]现有的计算机网络多数是串行信息处理和存储功能的工作方式,这样的处理方式在某些情况下,其效率偏低下
1、本发明的特点是将用户布置的逻辑表达式(指令)分布在各个不同区间的本域服务器中,并通过网络的连接(如TCPIP,CAN,Modbus, Multicast,Mesh BLE等各种网络手段)做到各区域的数据的连通和共享。各个本域服务器在实时的每一个程序计算周期内实时计算并驱动执行电路执行计算结果。这样就造成了分布式大规模并行运算的效果,充分利用了每一块嵌入式SOC的算力。由于分布式布置,不会因为一点崩溃就造成整个系统崩溃,只会造成小部分的局布数据缺失而已,不会影响其它大部分的工作。而且,反应单元信息通道逻辑条件表达式这种具有多维特点的逻辑表达,使用户能设置出更为宏观及复杂的任务体系。
Smart Images

Figure CN116339947B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data computing and processing technology, specifically a data processing method based on a reaction unit system. Background Technology
[0002] Most existing computer networks operate on a serial data processing and storage model, which can be inefficient in certain situations. For example, when dealing with multiple data processing operations consisting of logical conditional expressions, these operations need to be executed sequentially step by step. Therefore, a new data processing method is desired. Summary of the Invention
[0003] To address the shortcomings of existing technologies, the present invention aims to provide a data processing method based on a reaction unit system, which can solve the technical problems described in the background art.
[0004] The technical solution for achieving the objective of this invention is: a data processing method based on a reaction unit system, wherein the reaction unit system includes: This domain server is used to connect to and interact with multiple reaction units located in the same region as the domain server. A domain server is used by local domain servers in different regions to enable cross-regional data exchange. The data processing method includes the following steps: Step 1: Pre-establish the logical condition expression for the reaction unit information channel. This is a multi-dimensional logical condition information. Send the logical condition expression for the reaction unit information channel to the corresponding local server. The local server checks if there is more than one logical condition expression for the reaction unit information channel with the same priority. If so, it votes to decide whether to execute. If the vote decides to execute, then the logical condition expression for the reaction unit information channel is executed; otherwise, it is not executed. If there is only one logical condition expression for the reaction unit information channel with the same priority, then this logical condition expression is directly evaluated. If it is true, the action described by the logical condition expression for the reaction unit information channel is executed; if it is false, it is not executed. The format for setting the logical condition expression of the reaction unit information channel is: if condition X is met, then execute instruction Y. Condition X and instruction Y are predefined by the user. Condition X includes a monitoring value, a comparison symbol, and a comparison value; that is, condition X is composed of these three parameters. Instruction Y includes the priority of the current reaction unit information channel logical condition expression, as well as the data specifying the reaction unit to be executed and describing how to obtain the execution. The priority is set according to the same-priority voting protocol. Therefore, a single reaction unit information channel logical condition expression has three-dimensional logical characteristics because its result serves as the data source for other reaction unit information channel logical condition expressions, and the results are infinitely superimposed. Thus, this method constitutes a multi-dimensional conditional logic characteristic. The following are examples of voting protocols with the same priority: 1) If all logical condition expressions of the information channels of reaction units of the same priority are true, the action set by the reaction unit will be executed. 2) If all logical condition expressions of the information channels of reaction units of the same priority are false, the action set by the reaction unit will be executed. 3) If more of the logical condition expressions in the information channel of a reaction unit of the same priority are true than false, then the action set by the reaction unit will be executed. 4) If fewer than fewer of the logical condition expressions in the information channel of a reaction unit of the same priority are true, then the action set by the reaction unit will be executed. 5) If the logical condition expression of the information channel of the reaction unit of the same priority is true or false, the action set by the reaction unit shall be executed. 6) If any one of the logical condition expressions in the information channel of a reaction unit of the same priority is true, the action set by the reaction unit will be executed. 7) If any one of the logical condition expressions in the information channel of a reaction unit of the same priority is false, the action set by the reaction unit will be executed. 8) If more than the set value of the logical condition expression of the information channel of the reaction unit of the same priority is true, then the action set by the reaction unit will be executed. 9) If fewer than the set value of the logical condition expression for the information channel of a reaction unit of the same priority is true, then the action set by the reaction unit will be executed. 10) If the logical condition expression of the information channel of the reaction unit with the same priority is true and equal to the set value, then the action set by the reaction unit is executed. 11) If the number of true logical condition expressions in the information channel of a reaction unit of the same priority exceeds the number of false expressions (a value n), then the action set by the reaction unit will be executed. 12) If the number of true logical condition expressions in the information channel of a reaction unit of the same priority is less than the number of false expressions (set value n), then the action set by the reaction unit is executed. 13) If the number of true logical condition expressions in the information channel of the reaction unit of the same priority is equal to the number of false expressions, and this equals the set value n, then the action set by the reaction unit will be executed. Step 2: Receive the response unit information channel logic condition expression issued by the user operation, and finally store it in the local server and all its superior servers.
[0005] Furthermore, step 2 also includes: The target reaction unit decides whether to execute the action described in the logical condition expression of the reaction unit information channel based on the logical condition expression of the reaction unit information channel and its priority voting protocol, and stores the execution action data described in the logical condition expression of the reaction unit information channel in the storage unit of the target reaction unit. If two or more reaction unit information channel logical condition expressions have the same priority, the voting protocol carried by the reaction unit information channel logical condition expression is used to vote on whether to execute the data in the expression. If the vote passes, the executed data is stored in the storage unit of the target reaction unit. After the instruction of the current reaction unit information channel logical condition expression is executed, the execution result is stored in the target reaction unit of the current instruction. If the monitoring value and comparison value of the condition of other reaction unit information channel logical condition expressions, or the value required for their execution actions, contain the execution result, then in the next task cycle, this value will be used by other reaction unit information channel logical condition expressions as the content value of their condition or the value of their executed actions. If the target response unit of the current instruction is a response unit device specified by the attribute data connection interface defined by the user as a hard connection or soft connection, then in this computer task cycle, the result will be directly sent to the attribute data connection interface and connected to the corresponding user circuit interface via the data connection protocol for use by the user-defined circuit.
[0006] Furthermore, step 2 also includes: If the monitoring or comparison value, or the data for the action execution, in the logical condition expression of the response unit information channel comes from data requiring a response unit in another domain, its superior server will broadcast this required response unit data to the region of this local response unit in real time when its value changes. If it does not change, the superior server will also broadcast this data periodically. Specifically, after the logical condition expression of the response unit information channel is sent to the user domain server or its superior server via the human-machine interface, it is immediately transmitted to the local server where the target response unit is located. The local server immediately stores the logical condition expression of the response unit information channel and loads it in the next task cycle for operation. Specifically, when a user domain server powers on and initializes, needs to modify the logical condition expression of the response unit information channel, or restarts, the user domain server will traverse the logical expression database stored in its own database to find the data sources for each local server that require non-local data. It will then list the local servers providing the data sources in a table and broadcast this table to all its subordinate local servers with the name "Data of Devices to be Broadcast". If there are no such reasons, the user domain server will periodically publish the data of devices to be broadcast. This "Data of Devices to be Broadcast" refers to a data table storing the unique ID of the response unit and its data. In this way, accessing local servers know from the broadcast whether they have any response units that need to broadcast data. If so, they will broadcast the data within their local domain when its data changes. If a different domain needs this data, it will be forwarded by the higher-level server.
[0007] Furthermore, the reaction unit includes two forms: Non-execution response unit: This type of response unit only receives data transmitted unidirectionally from physical devices and stores it as its own data. The data changes as the transmitted data changes. This type of response unit's data is prohibited from being connected to physical execution circuits. Execution response unit: The data of this response unit is directly connected to the physical execution circuit, and the circuit action changes as the data of the response unit changes.
[0008] Furthermore, the current reaction unit information channel logical condition expression is a set of instructions input by the user in the human-machine interface operation. It includes logical expressions, priorities, voting methods for the same priority, and how to obtain the action data of the reaction unit.
[0009] Furthermore, in the combination of logical condition expressions of the execution reaction unit information channel, a result of a user-expected concept is generated. This result is named after this concept and applied to the content of other logical condition expressions of the execution reaction unit information channel to generate a deeper, multi-dimensional conceptual result.
[0010] The beneficial effects of this invention are as follows: 1. The key feature of this invention is that user-defined logical expressions (instructions) are distributed across local servers in different regions, and data connectivity and sharing between these regions are achieved through network connections (such as TCP / IP, CAN, Modbus, Multicast, Mesh BLE, and other network technologies). Each local server calculates and drives the execution circuit to execute the calculation results in real time within each program calculation cycle. This creates the effect of distributed large-scale parallel computing, fully utilizing the computing power of each embedded SOC. Due to the distributed deployment, a single failure will not cause the entire system to crash; only a small portion of local data will be lost, without affecting most other operations. Moreover, the multi-dimensional logical expression of the reaction unit information channel logical condition expression allows users to set up more macroscopic and complex task systems.
[0011] 2. The combination of logical condition expressions and unconditional logical condition expressions for the information channels of reaction units allows users to set up very complex and large-scale logical tasks (a combination of logical condition expressions for the information channels of the same execution reaction unit can be called a task). Each task can have up to 256 logical condition expressions for the information channels of reaction units (of course, generally not too many, as this would exceed the logical design capabilities of ordinary users). These tasks exist in a distributed manner on various local servers, and they will be processed in parallel in real time. The efficiency and functionality are far higher than traditional centralized task processing methods because a large portion of public network traffic is saved, making it more economical than traditional IoT systems.
[0012] 3. The combination of the logical condition expression and the unconditional logical condition expression of the reaction unit information channel allows users to integrate their own designed electronic devices into the system through the logic condition expression of the reaction unit information channel they have built, via the "attribute data connection interface" and "attribute data connection protocol". Attached Figure Description
[0013] Figure 1 This is a schematic diagram of the process of the present invention; Figure 2 This is a schematic diagram of hard-linked reaction units; Figure 3 This is a schematic diagram of the soft connection of the reaction unit; Figure 4 This is a diagram illustrating the execution process of the processing code within this domain server; Figure 5 This is a schematic diagram illustrating the construction of the logical condition expression for the information channel of the reaction unit; Figure 6 This is a schematic diagram of the "logic condition expression for the information channel of the unconditional response unit". Detailed Implementation
[0014] The present invention will be further described below with reference to the accompanying drawings and specific embodiments: like Figures 1 to 5 As shown, a data processing method based on a reaction unit system is provided, the reaction unit system comprising: This domain server is used to connect to and interact with multiple reaction units located in the same region as the domain server. A domain server is used by local domain servers in different regions to enable cross-regional data exchange. The data processing method includes the following steps: Step 1: Pre-establish the logical condition expression for the reaction unit information channel. This is a multi-dimensional logical condition information. Send this logical condition expression to the corresponding local server. The local server determines whether to execute the expression based on whether there are more than one logical expression of the same priority. If so, a vote is held. If the decision passes, the logical condition expression is executed; otherwise, it is not executed. If there is only one logical expression of the same priority, it is directly evaluated. If the expression is true, the action described by the expression is executed; otherwise, it is not executed.
[0015] refer to Figure 5 , Figure 5 This is a schematic diagram illustrating the construction of the logical condition expression for the reaction unit information channel. The unconditionally true logical condition expression for the reaction unit information channel is an extension of one method for setting the logical condition expression for the reaction unit information channel. The setting format of the logical condition expression for the reaction unit information channel is: if condition X is met, then execute instruction Y. Condition X and instruction Y are predefined by the user. Condition X includes a monitoring value, a comparison symbol, and a comparison value, that is, condition X is composed of these three parameters. Instruction Y includes the priority of the current logical condition expression for the reaction unit information channel, as well as data specifying the reaction unit to be executed and describing how to obtain the execution. The priority is set according to the same priority voting protocol. Figure 5 The priority value in the context refers to the priority set under the same priority voting protocol. Figure 5The specified execution device and its execution data refer to the specific execution unit and the execution data in the instruction Y to be executed.
[0016] Step 2: Based on the target reaction unit pointed to by the received current reaction unit information channel logical condition expression, which can be the instruction entered by the user in the human-machine interface, send the current reaction unit information channel logical condition expression to the local domain server where the target reaction unit is located.
[0017] The logical condition expression for the response unit information channel is sent from the human-machine interface to the user domain server or all its superior servers. This expression is immediately transmitted to the local domain server where the target response unit resides. The local domain server stores this expression and loads it in the next task cycle for execution. The current logical condition expression for the response unit information channel is a set of instructions input by the user through the human-machine interface. It includes the logical expression, priority, voting method for units of the same priority, and how to obtain the response unit's execution action data.
[0018] The system receives logical condition expressions for response unit information channels from user operations and ultimately stores them on the local server and all its parent servers. In other words, these logical condition expressions are issued by the user and stored on the local server and its parent servers. After the instruction of the current logical condition expression is executed, the result is stored in the target response unit of the current instruction. If the monitoring and comparison values of other logical condition expressions contain this execution result, it will be used as the content value of other logical condition expressions in the next task cycle. For example, when instruction Y is executed, the result is stored in the target response unit of instruction Y. If this execution result is contained in the monitoring and comparison values of condition X of another logical condition expression, it will be used as the content of condition X in the next computer task cycle for other logical condition expressions.
[0019] If the target response unit of the current instruction is a response unit device specified by the attribute data connection interface defined by the user as a hard connection or soft connection, then in this computer task cycle, the execution result will be sent to the attribute data connection interface and connected to the corresponding user circuit interface via the data connection protocol for use by the user-defined circuit.
[0020] After the local server powers on, it first reads the logic condition expressions for the reaction unit information channels stored in flash memory. Then, according to the reaction unit number, it arranges the priority of the same reaction unit number into a group of logic condition expressions for the reaction unit information channels from high to low. It first judges the high priority ones. If all of them meet the conditions, it executes the action specified under this priority and stores the data in the target reaction unit. Then it judges the logic condition expression group for the next reaction unit information channel.
[0021] If two or more reaction unit information channel logical condition expressions have the same priority, the voting protocol carried by the reaction unit information channel logical condition expression is used to decide whether to execute the data in the expression (Note: According to the usage rules of reaction unit information channel logical condition expressions with the same priority, the execution data of the expression and the method of obtaining it must be the same). If the vote passes, the execution data is stored in the storage unit of the target reaction unit.
[0022] For example: The logical condition expression for the first group of reaction unit information channels: If the data of reaction unit A is less than 30, the data of reaction unit C is 0. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 1. The above is a conditional expression for the information channel logic of a conditional response unit. An unconditional expression is mandatory and will execute the data unconditionally. Only when there are two or more logical expression logics for the information channel of the same priority will a voting mechanism of the same priority be used.
[0023] The "Unconditional Response Unit Information Channel Logical Condition Expression" is an extension of the setting method for the "Response Unit Information Channel Logical Condition Expression". When setting the "Response Unit Information Channel Logical Condition Expression", the format is: if XXX is true, then execute YYY. Its structure is as follows: Figure 5 As shown.
[0024] "Unconditional reaction unit information channel logical condition expression" as follows Figure 6 As shown, when executing this logical expression, only the voting protocol settings and priority values with the same priority are considered. The specified execution device and its execution data will unconditionally change the execution data according to the setter's wishes. For example, refer to... Figure 4 , Figure 4 This diagram illustrates the execution process of the processing code within this domain server. The zone where this domain server resides includes three reaction units, as follows: Reaction Unit A, Local Server ID 01, Device ID 01, Data is temperature data range 0-100; Reaction Unit B, local server number 01, device number 02, data is humidity data range 0-100; Reaction Unit C, local server number 01, device number 03, data is switch data range value 0-1; Among them, reaction unit C involves two sets of logical condition expressions for reaction unit information channels with different priorities.
[0025] The logical condition expression for the first group of reaction unit information channels: If the data of reaction unit A is less than 30, the data of reaction unit C is 0. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 1. If the data of reaction unit B is less than 50, the data of reaction unit C is 0. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 1.
[0026] The logical condition expression for the second group of reaction unit information channels: If the data of reaction unit A is less than 40, the data of reaction unit C is 1. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 10. If the data of reaction unit B is less than 60, the data of reaction unit C is 1. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 10.
[0027] When the above two sets of reaction unit information channel logical condition expressions encounter the following three situations, there will be corresponding execution results: In the first scenario: if the data of reaction unit A is 29 and the data of reaction unit B is 49, both the logical condition expressions of the first and second groups of reaction unit information channels are true. However, since the priority 1 of the logical condition expression of the first group of reaction unit information channels is higher than the priority 10 of the logical condition expression of the second group of reaction unit information channels, the local server will set the data of reaction unit C to 0.
[0028] In the second scenario: if the data of reaction unit A is 35 and the data of reaction unit B is 49, the logical condition expression of the first group of reaction unit information channels does not meet the voting rules because the logical result of the logical condition expression of the first group of reaction unit information channels is negative. Therefore, although the priority 1 of the logical condition expression of the first group of reaction unit information channels is higher than the priority 10 of the logical condition expression of the second group of reaction unit information channels, the local server does not execute the logical condition expression of the first group of reaction unit information channels, but executes the logical condition expression of the second group of reaction unit information channels. Therefore, the data of reaction unit C is 1.
[0029] The third scenario: If the data of reaction unit A is 60 and the data of reaction unit B is 70, then the logical condition expressions of the information channels of the first and second groups of reaction units are not true. Therefore, the local server will not perform any action and will not change the value of reaction unit C. Reaction unit C will retain its original data value.
[0030] If the monitored or compared value, or the data for the action execution, in the logical condition expression of the response unit information channel comes from data requiring a response unit in another domain, its superior server will broadcast the data of this required response unit to the region of this local response unit in real time when the value changes. If it does not change, the superior server will also broadcast this data periodically. Specifically, after the logical condition expression of the response unit information channel is sent to the user domain server or the user domain server's superior server through the human-machine interface, it is immediately transmitted to the local server where the target response unit is located. The local server immediately stores the logical condition expression of the response unit information channel and loads it in the next task cycle for operation. When power-on initialization, when information needs to be changed in the logical condition expression of the reaction unit information channel, or when the local domain server restarts, the user domain server will broadcast the name "Data of Devices of Interest to be Broadcast" to all its subordinate local domain servers. If there is no such reason, the user domain server will periodically publish the data of devices of interest to be broadcast. The name "Data of Devices of Interest to be Broadcast" refers to a data table that stores the unique ID of the reaction unit and the reaction unit data.
[0031] If a local domain server's response unit information channel logical condition expression requires response unit data from other domains, the user domain server will broadcast the response unit data of that execution device across the entire domain managed by the user domain server when the data of that execution device in that domain changes. To prevent reception loss due to network fluctuations, the user domain server will create a table containing this relative data of foreign devices and periodically broadcast the data in this table.
[0032] When power-on initialization, when the information of the logical condition expression of the reaction unit information channel needs to be changed, or when the subordinate local server restarts the reaction unit information channel, the user domain server will broadcast a data table named "Data of Devices of Interest to be Broadcast" to all its subordinate local servers. If there is no such reason, the user domain server will periodically publish the data of devices of interest to be broadcast. The data of devices of interest to be broadcast contains the unique ID of the reaction unit and the reaction unit data.
[0033] For example, a user domain server has two local domain servers, referred to as local domain server A and local domain server B. Both local domain servers have the following response units: Reaction Unit A, local server chip number 01, reaction unit number 01, data is temperature data range 0-100; Reaction Unit B, local server chip number 02, reaction unit number 03, data is switch data range 0-1; Each domain server stores the logical condition expressions for all reaction unit information channels on its subordinate domain servers. Among them, domain server B contains the following logical condition expression for a reaction unit information channel: If the data of response unit A of this domain server A is greater than 30, the data of B is 0. The voting principle is that all logical expressions of the logical conditions of the information channel of response units with the same priority are true, and the priority is 1. If the data of device A on server A in this domain is less than 30, then the data of B is 1. The voting principle is that all logical expressions of the logical conditions of the packet reaction unit information channel with the same priority are true, and the priority is 2.
[0034] The domain server will then iterate through the response unit information channel logical condition expression database once upon power-on or when a user modifies the response unit information channel logical condition expression. The data table for the devices requiring broadcasting will store one record of data that needs to be broadcast, as follows: Instructions for monitoring reaction unit data: Local server A, chip number: 01, reaction unit number: 01.
[0035] After this data is broadcast, local server A receives the broadcast, knows that when response unit 01 is updated, it needs to be broadcast and records it. When response unit 01 changes, it will create a "Door Domain Interest Device Data Table", the contents of which are as follows: Command to view device datasheet within a user domain: Local server A, Chip code: 01, Device number: 01, Data: n.
[0036] When this domain server B receives this broadcast, it makes a copy and identifies the device it wants to focus on in the "Application Method of Data in Response Unit Information Channel Condition Filtering Database in This Domain Server". If there is one, it allocates several storage devices to record it and updates it in real time in the "Application Method of Data in Response Unit Information Channel Condition Filtering Database in This Domain Server" every time the "Door Domain Focus Device Data Table" is broadcast.
[0037] As mentioned above, when the data of device A is 40, the local server B receives the data of device A as 40 through network broadcast. Its "reaction unit information channel logic condition expression" is true. It will set the data of device B to 1, execute this data through the circuit, and store the result in its own memory.
[0038] The data application methods for the local domain server and the user domain server described above are the same for the working and application relationships between upper and lower level servers, such as between the user domain and the neighborhood domain service, and between the neighborhood domain and the metropolitan area server.
[0039] The reaction unit includes two forms: Non-execution response unit: This type of response unit only receives data transmitted unidirectionally from physical devices and stores it as its own data. The data of this type of response unit is generally not connected to the physical execution circuit. Execution response unit: The data of this response unit is directly connected to the physical execution circuit, and the circuit action changes as the data of the response unit changes.
[0040] The abstract space where the reaction unit resides is called the "reaction unit virtual space," and its existence is data. The corresponding circuit is called the "reaction unit real space," and its existence is physical devices. One execution circuit corresponds to at least one data point, and there is no upper limit to the number of corresponding data points. One data point can also correspond to more than one circuit, and there is no upper limit to the number of corresponding circuits.
[0041] refer to Figure 2 and Figure 3Data can be connected to the corresponding target circuit via hard connections and soft connections. Hard connections refer to a fixed connection of several reaction unit data points during operation; the connection method is set by the manufacturer. Hard connections primarily allow designers more flexibility in designing diverse devices. Soft connections allow users to freely define the reaction unit data in the system as primary and secondary attribute reaction unit data. Initially, these reaction units are only numbered, not named. Users register an "attribute data connection interface" through a human-machine interface or mobile app. Its main function is to name these blank reaction units, making them easier to manage. Then, the "attribute data connection interface" sends the primary and secondary attribute reaction unit data to the "attribute data connection protocol" according to the data order set during user registration and packages it for delivery to the user's private execution circuit. This can be done through the user circuit interface.
[0042] This invention enables the local server to execute corresponding data based on the logical condition expression of the reaction unit information channel, thereby completing data processing. The reaction unit does not rely on the traditional computer central control processing method, but on the calculation of the conditions in the logical condition expression of the reaction unit information channel distributed in various local servers. If the conditions are met, the data part is executed, resulting in more real-time data processing, better stability, and higher efficiency.
[0043] A user can use up to 256 logical condition expressions from a combination of several response unit information channel logical condition expressions to generate a desired, purposeful result data. This data can be understood as a concept. The following is a simple example: Assume there are 3 reaction units: The front door infrared human body detector R1 in area A has the local server chip number A1 and a data range of (0~1).
[0044] The front door infrared human body detector R2 in Zone B has the local server chip number B1 and a data range of (0~1).
[0045] Find any unused, non-executable reactive unit (actually a memory unit allocated by the SOC; typically, a domain server has several such empty reactive units available for user use) on any local server where the user has permission. A labeled reaction unit in region N, local server chip number B1, data range (0~65535).
[0046] The logic condition expression for the reaction unit information channel is as follows: 1. If the data of reaction unit A is equal to 0, the data of reaction unit N is 0. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 128. 2. If the data of reaction unit B is equal to 0, the data of reaction unit N is 0. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 128. 3. If the data of reaction unit A is equal to 1, the data of reaction unit N is 1. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 129. 4. If the data of reaction unit B is equal to 0, the data of reaction unit N is 1. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 129. 5. If the data of reaction unit A is equal to 0, the data of reaction unit N is 2. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 130. 6. If the data of reaction unit B is equal to 1, the data of reaction unit N is 2. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 130. 7. If the data of reaction unit A is equal to 1, the data of reaction unit N is 3. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 131. 8. If the data of reaction unit B is equal to 1, the data of reaction unit N is 3. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 131. In this way, the result of N is the target result data that the user wants to obtain. When conditions 1 and 2 are true, the value of N is 0. This indicates that there is no one in areas A and B.
[0047] When conditions 3 and 4 are true, the value of N is 1. This indicates that there are people in both areas A and no one in area B.
[0048] When 5 and 6 are true, the value of N is 2. This means that there are people in both areas B, but no one in area A.
[0049] When 7 and 8 are true, the value of N is 3. This indicates that there are people in both areas A and B.
[0050] In this way, the value of N serves as an indicator of a concept in the network. When the value is 0, the concept is that there are no people in areas A and B; when the value is 1, the concept is that there are people in area A and no people in area B; when the value is 2, the concept is that there are people in area B and no people in area A; and when the value is 3, the concept is that there are people in both area A and area B.
[0051] Users can name this conceptual result (data) through a human-computer interface, making it easier to use as a data source for logical condition expressions in other reaction unit information channels. It can participate in the next step of logical expression, generating a deeper level of concept.
[0052] In theory, this invention suggests that when users generate data for such concepts, they should layer the concepts, with each layer's concept being the data source for the layer above it. Therefore, in this invention, the concept of the local domain server is the lowest level. The next higher-level concept uses this as its data source to generate a higher-level concept, which is then stored in the user domain server. This process continues, with the neighborhood domain server storing data derived from the user domain server's concept results, the metropolitan area server storing data derived from the neighborhood domain server's concept results, the county domain server storing data derived from the metropolitan area server's concept results, and the star domain server storing data derived from the county domain server's concept results. Each layer of servers can utilize this data to implement better user services using algorithms. If this data is integrated into a user-designed driver circuit via an unconditional response unit logical expression through the "attribute data connection interface" and "attribute data connection protocol," it will extend to a more distant network (such as the user's own private network).
[0053] Examples are as follows: Each domain server has several blank response units used for data exchange with user-defined circuits. For example, a microwave oven with the features of this invention has three blank response units A and B (named by the user when registering the "Attribute Data Connection Interface"). The microwave oven itself has three self-defined response units: a power value response unit and a running time response unit. We use unconditional logical expressions to define the tasks of response units A and B.
[0054] 1. The value of A is unconditionally equal to the value of the firepower response unit. The voting rule is that all logical expressions of the information channel logical conditions of response units with the same priority are true, and the priority is 126; 2. The value of B is unconditionally equal to the running time. The voting rule is that all logical expressions of the logical conditions of the information channels of reaction units with the same priority are true, and the priority is 126; During the local server's calculation cycle, response units A and B are updated in real time. When these two values are updated, the "Attribute Data Connection Interface Processor" transmits the data to the user-defined interface via the "Attribute Data Connection Protocol" through various product-provided interfaces such as RS-232, RS-485, CAN, and LoRa. Similarly, user data can also be transmitted to blank response units (named by the user when registering the "Attribute Data Connection Interface") in this way. The user can then reference this transmitted data when defining the logical conditional expressions for the response unit's information channel. This is a very flexible method for connecting data with non-inventory characteristic electrical appliances. Intermediate devices with this protocol can be created to connect more different IoT devices.
[0055] The embodiments disclosed in this specification are merely illustrative of one aspect of the invention, and the scope of protection of the invention is not limited to these embodiments. Any other functionally equivalent embodiments fall within the scope of protection of the invention. Those skilled in the art can make various other corresponding changes and modifications based on the technical solutions and concepts described above, and all such changes and modifications should fall within the scope of protection of the claims of this invention.
Claims
1. A data processing method based on a reaction unit system, characterized in that, The reaction unit system includes: This domain server is used to connect to and interact with multiple reaction units located in the same region as the domain server. A domain server is used to enable data exchange between domain servers in different regions. The data processing method includes the following steps: Step 1: Pre-establish the logical condition expression for the reaction unit information channel. This is a multi-dimensional logical condition information. Send the logical condition expression for the reaction unit information channel to the corresponding local server. The local server checks if there is more than one logical condition expression for the reaction unit information channel with the same priority. If so, it votes to decide whether to execute. If the vote decides to execute, then the logical condition expression for the reaction unit information channel is executed; otherwise, it is not executed. If there is only one logical condition expression for the reaction unit information channel with the same priority, then this logical condition expression is directly evaluated. If it is true, the action described by the logical condition expression for the reaction unit information channel is executed; if it is false, it is not executed. The format for setting the logical condition expression of the reaction unit information channel is: if condition X is met, then execute instruction Y. Condition X and instruction Y are predefined by the user. Condition X includes a monitoring value, a comparison symbol, and a comparison value; that is, condition X is composed of these three parameters. Instruction Y includes the priority of the current reaction unit information channel logical condition expression, as well as data specifying the reaction unit to be executed and describing how it should be executed. The priority is set according to the same-priority voting protocol. A single reaction unit information channel logical condition expression has three-dimensional logical characteristics. Its result serves as the data source for the logical condition expressions of other reaction unit information channels, and the results are infinitely superimposed. This method constitutes a multi-dimensional conditional logic feature. The following are examples of voting protocols with the same priority: 1) If all logical condition expressions of the information channels of reaction units of the same priority are true, the action set by the reaction unit will be executed. 2) If all logical condition expressions of the information channels of reaction units of the same priority are false, the action set by the reaction unit will be executed. 3) If more of the logical condition expressions in the information channel of a reaction unit of the same priority are true than false, then the action set by the reaction unit will be executed. 4) If fewer than fewer of the logical condition expressions in the information channel of a reaction unit of the same priority are true, then the action set by the reaction unit will be executed. 5) If the logical condition expression of the information channel of the reaction unit of the same priority is true or false, the action set by the reaction unit shall be executed. 6) If any one of the logical condition expressions in the information channel of a reaction unit of the same priority is true, the action set by the reaction unit will be executed. 7) If any one of the logical condition expressions in the information channel of a reaction unit of the same priority is false, the action set by the reaction unit will be executed. 8) If more than the set value of the logical condition expression of the information channel of the reaction unit of the same priority is true, then the action set by the reaction unit will be executed. 9) If fewer than the set value of the logical condition expression for the information channel of a reaction unit of the same priority is true, then the action set by the reaction unit will be executed. 10) If the logical condition expression of the information channel of the reaction unit with the same priority is true and equal to the set value, then the action set by the reaction unit is executed. 11) If the number of true logical condition expressions in the information channel of a reaction unit of the same priority exceeds the number of false expressions (a value n), then the action set by the reaction unit will be executed. 12) If the number of true logical condition expressions in the information channel of a reaction unit of the same priority is less than the number of false expressions (set value n), then the action set by the reaction unit is executed. 13) If the number of true logical condition expressions in the information channel of the reaction unit of the same priority is equal to the number of false expressions, and this equals the set value n, then the action set by the reaction unit will be executed. Step 2: Receive the response unit information channel logic condition expression issued by the user operation, and finally store it in the local server and all its superior servers.
2. The data processing method based on a reaction unit system according to claim 1, characterized in that, Step 2 also includes: The target reaction unit decides whether to execute the action described in the logical condition expression of the reaction unit information channel based on the voting protocol of the same priority, and stores the execution action data described in the logical condition expression of the reaction unit information channel in the storage unit of the target reaction unit. If two or more reaction unit information channel logical condition expressions have the same priority, the voting protocol carried by the reaction unit information channel logical condition expression is used to vote on whether to execute the data in the expression. If the vote passes, the executed data is stored in the storage unit of the target reaction unit. After the instruction of the current reaction unit information channel logical condition expression is executed, the execution result is stored in the target reaction unit of the current instruction. If the monitoring value and comparison value of the condition of other reaction unit information channel logical condition expressions, or the value required for their execution actions, contain the execution result, then in the next task cycle, this value will be used by other reaction unit information channel logical condition expressions as the content value of their condition or the value of their executed actions. If the target response unit of the current instruction is a response unit device specified by the attribute data connection interface defined by the user as a hard connection or soft connection, then in this computer task cycle, the result will be directly sent to the attribute data connection interface and connected to the corresponding user circuit interface via the data connection protocol for use by the user-defined circuit.
3. The data processing method based on a reaction unit system according to claim 2, characterized in that, Step 2 also includes: If the monitoring or comparison value, or the data for the action execution, in the logical condition expression of the response unit information channel comes from data from a response unit in a different domain, its superior server will broadcast the data of this required response unit to the region of this local response unit in real time when the value changes. If it does not change, the superior server will also broadcast this data periodically. After the logical condition expression of the response unit information channel is sent to the user domain server or its superior server through the human-machine interface, it is immediately transmitted to the local server where the target response unit is located. The local server immediately stores the logical condition expression of the response unit information channel and loads it in the next task cycle for operation. Specifically, when a user domain server powers on and initializes, needs to modify the logical condition expression of the response unit information channel, or restarts, the user domain server traverses the logical expression database stored in its own database to find the data sources for non-domain data required by each local server. It then lists the local servers providing the data sources in a table and broadcasts this table to all its subordinate local servers with the name "Data of Devices to be Broadcast". If no such reason exists, the user domain server periodically publishes the data of devices to be broadcast. This "Data of Devices to be Broadcast" refers to a data table storing the unique ID of the response unit and its data. In this way, accessing local servers know from the broadcast whether they have any response units that need to broadcast data. If so, they broadcast the data within their domain when its data changes. If a local server outside the user domain needs this data, it is forwarded by the higher-level server.
4. The data processing method based on a reaction unit system according to claim 3, characterized in that, The reaction unit includes two forms: Non-execution response unit: This type of response unit only receives data transmitted unidirectionally from physical devices and stores it as its own data. The data changes as the transmitted data changes. The data of this type of response unit is prohibited from being connected to physical execution circuits. Execution response unit: The data of this response unit is directly connected to the physical execution circuit, and the circuit action changes as the data of the response unit changes.
5. The data processing method based on a reaction unit system according to claim 4, characterized in that, The current response unit information channel logical condition expression is a set of instructions input by the user through the human-machine interface. It includes logical expressions, priorities, voting methods for the same priority, and how to obtain the response unit's execution action data.
6. The data processing method based on a reaction unit system according to claim 5, characterized in that, In the combination of logical conditional expressions of the execution reaction unit information channel, a result of a user-expected concept is generated. This result is named after this concept and applied to the content of other logical conditional expressions of the execution reaction unit information channel to generate a deeper, multi-dimensional conceptual result.
Citation Information
Patent Citations
End-user application customization using rules
CN101410824A
Calculation realization method and system and server apparatus
CN105302556A