CN114401338A - Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things - Google Patents

Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things Download PDF

Info

Publication number
CN114401338A
CN114401338A CN202210041151.6A CN202210041151A CN114401338A CN 114401338 A CN114401338 A CN 114401338A CN 202210041151 A CN202210041151 A CN 202210041151A CN 114401338 A CN114401338 A CN 114401338A
Authority
CN
China
Prior art keywords
message
monitoring
name
interface
user
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
CN202210041151.6A
Other languages
Chinese (zh)
Other versions
CN114401338B (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.)
Suzhou Huagao Automation Equipment Co ltd
Original Assignee
Suzhou Huagao Automation Equipment 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 Suzhou Huagao Automation Equipment Co ltd filed Critical Suzhou Huagao Automation Equipment Co ltd
Priority to CN202210041151.6A priority Critical patent/CN114401338B/en
Publication of CN114401338A publication Critical patent/CN114401338A/en
Application granted granted Critical
Publication of CN114401338B publication Critical patent/CN114401338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/02Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • H04M1/72421User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The invention provides a method for realizing automatic analysis of chemical substance parameters based on an industrial Internet of things, aiming at timely and efficiently acquiring the chemical substance parameters and realizing the automatic analysis of the chemical substance parameters, thereby improving the automation degree of the chemical substance parameters and improving the automatic analysis efficiency of the chemical substance parameters.

Description

Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things
Technical Field
The invention relates to an implementation method, in particular to an implementation method for automatic analysis of chemical substance parameters based on an industrial Internet of things.
Background
The chemical substance parameter automatic analysis system aims to achieve rapid automatic analysis by rapidly obtaining chemical substance parameters, so that the degree of automation of the chemical substance parameters is improved, and the automatic analysis efficiency of the chemical substance parameters is improved. However, at present, the delay of obtaining the automatic analysis of the chemical parameter is long, the success rate of obtaining the automatic analysis of the chemical parameter is low, and the degree of automation of the chemical parameter is also low, so that it is necessary to greatly improve the performance of obtaining the chemical parameter to successfully implement the automatic analysis of the chemical parameter.
Disclosure of Invention
The purpose of the invention is as follows: the invention aims to solve the technical problem of providing a method for automatically analyzing chemical substance parameters based on an industrial Internet of things, aiming at the defects of the prior art.
The technical scheme is as follows: the invention discloses a method for realizing automatic analysis of chemical substance parameters based on an industrial Internet of things, wherein the industrial Internet of things comprises mobile equipment and edge equipment; for example, the mobile device is a smart phone, and the edge device is a server, a router, and the like; the automatic analysis result of the chemical substance parameters can be applied to an automatic dosing system;
each type of chemical parameter is uniquely identified by a name; such as total acid, total base, conductivity, etc.,
each mobile device is provided with an interface which is a wireless interface and is linked with the edge device, each edge device is provided with more than two interfaces, each interface comprises a wireless interface and more than two wired interfaces, the wireless interfaces are linked with the mobile devices, and the wired interfaces are connected with other edge devices;
each wireless interface and each wired interface are uniquely identified by an interface ID;
a mobile device having authority to obtain a chemical parameter is called a user device of the chemical parameter;
the mobile device which has the authority to generate and provide a chemical parameter is called a monitoring device of the chemical parameter;
each mobile device is uniquely identified by a device ID; the device ID may be a hardware ID, such as a MAC address;
the device ID of the monitoring device is referred to as the monitoring ID of the monitoring device;
the device ID of the user equipment is referred to as a provisioning ID of the user equipment;
each message in the industrial Internet of things is uniquely identified by a message ID;
each edge device stores a user table and a monitoring table, wherein one user table item comprises a user ID, a name, an interface ID and a life cycle; one monitoring table entry comprises a monitoring ID, a name, an interface ID and a life cycle;
monitoring information in the industrial Internet of things comprises a message ID, a monitoring ID and a name;
the user message in the industrial Internet of things comprises a message ID, a user ID, a monitoring ID and a name;
the monitoring device MD1 has the authority to generate and provide chemical parameters defined by the name NA1, the monitoring device MD1 periodically performs the following operations:
s101: starting;
s102: the monitoring equipment MD1 sends a monitoring message, the message ID of the monitoring message is 1, the monitoring ID is the own equipment ID and is named as NA 1;
s103: if the mobile device receives the monitoring message, executing S107, otherwise executing S104;
s104: the edge device receiving the monitoring message from the interface f1 judges whether a monitoring table entry exists, the monitoring ID and the name of the table entry are respectively equal to the monitoring ID and the name of the monitoring message, the life cycle is greater than a threshold LF0, the value range of the threshold LF0 is 95% -99% of the maximum life cycle, if yes, S109 is executed, otherwise S105 is executed;
s105: the edge device receiving the monitoring message from the interface f1 judges whether a monitoring table entry exists, the monitoring ID and the name of the monitoring table entry are respectively equal to the monitoring ID and the name of the monitoring message, if yes, the interface ID of the monitoring table entry is set to be f1, the life cycle is set to be the maximum value, otherwise, a monitoring table entry is created, the monitoring ID and the name of the monitoring table entry are respectively equal to the monitoring ID and the name of the monitoring message, the interface ID of the monitoring table entry is set to be f1, and the life cycle is set to be the maximum value;
s106: the edge device that receives the supervision message from the interface f1 forwards the supervision message from each interface other than the interface f1, sets a clock, and performs S103;
s107: the mobile device receiving the monitoring message judges whether the mobile device is the user equipment of the chemical substance parameter defined by the name of the monitoring message, if so, S108 is executed, otherwise, S113 is executed;
s108: the mobile equipment receiving the monitoring message sends a user message, the message ID of the user message is 2, the user ID is the equipment ID of the user, the monitoring ID is the monitoring ID in the monitoring message, and the name is equal to the name in the monitoring message;
s109: the edge device receiving the monitoring message judges whether a user message is received in a set clock, if so, S110 is executed, otherwise, S113 is executed;
s110: the edge device receiving the user message judges whether a user table entry exists, the user ID and the name of the user table entry are respectively equal to the user ID and the name in the user message, if yes, the interface ID of the user table entry is set to be f2, f2 is the interface ID of the interface of the edge device receiving the user message, the life cycle is set to be the maximum value, otherwise, a user table entry is created, the user ID and the name of the user table entry are respectively equal to the user ID and the name in the user message, the interface ID of the user table entry is set to be f2, and the life cycle is set to be the maximum value;
s111: the edge device receiving the user message selects a monitoring table item, the monitoring ID of the monitoring table item is equal to the monitoring ID in the user message, whether the interface identified by the interface ID of the monitoring table item is a wireless interface is judged, if so, S113 is executed, otherwise, S112 is executed;
s112: the edge device receiving the user message selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the monitoring ID in the user message, the user message is forwarded from the interface identified by the interface ID of the monitoring table entry, and S110 is executed;
s113: and (6) ending.
The monitoring device establishes the monitoring table by sending the monitoring message, and the user device establishes the user table by sending the user message, so that the monitoring device can acquire chemical substance parameters from each user device through the user table, and the user device can transmit the chemical substance parameters to each monitoring device through the monitoring table, thereby realizing the real-time acquisition and automatic analysis operation of the real-time chemical substance parameters. The validity of the monitoring table and the user table is confirmed through the life cycle of the monitoring table and the user table in the process, the broadcast storm is effectively inhibited, and therefore the chemical substance parameters can be quickly obtained and accurately, effectively and automatically analyzed in real time.
In the method of the present invention, the first step,
the search message in the industrial Internet of things comprises a message ID and a name;
the confirmation message in the industrial Internet of things comprises a message ID and a monitoring table;
the discovery message in the industrial Internet of things comprises a message ID and a name;
the data message in the industrial Internet of things comprises a monitoring ID, a name and a chemical substance parameter;
each edge device stores an aggregation table, and an aggregation table item comprises a name, a monitoring ID and an interface ID;
the user device UD1 is linked with the edge device ED1, the user device UD1 has the right to obtain chemical parameters defined by the name NA1, the user device UD1 obtains chemical parameters provided by all monitoring nodes by the following procedure:
s201: starting;
s202: the user device UD1 sends a lookup message with a message ID of 3 and a name of NA1, the edge device ED1, after receiving the lookup message, selects all monitoring entries with names equal to the name in the lookup message, and sends a confirmation message from the wireless interface, the message ID of the confirmation message is 4, and the monitoring table contains all the selected monitoring entries;
s203: after receiving the confirmation message, the user device UD1 sets a monitoring ID variable p0, where the variable p0 contains the monitoring ID of each monitoring table entry in the confirmation message, and the user device UD1 sends a discovery message, where the message ID of the discovery message is 5 and the name is NA 1;
s204: if the mobile device receives the discovery message, performing S217, otherwise performing S205;
s205: the edge device which receives the discovery message from the interface x1 sets a monitoring ID variable p1 and p2, the values of the variables p1 and p2 are null sets, all monitoring table entries with names equal to the name of the discovery message are selected, and the monitoring ID of each selected monitoring table entry is added into the variable p 1;
s206: the edge device which receives the discovery message from the interface x1 randomly selects a monitoring ID PID1 from a variable p1, judges whether an aggregation table item exists, the name of the aggregation table item is equal to the name in the discovery message, the interface ID is equal to x1, the monitoring ID is equal to PID1, if the aggregation table item exists, S210 is executed, otherwise, S207 is executed;
s207: the edge device receiving the discovery message from the interface x1 determines whether there is an aggregation table entry, the name of the aggregation table entry is equal to the name in the discovery message, and the monitoring ID is equal to the PID1, if there is, S208 is executed, otherwise S209 is executed;
s208: the edge device receiving the discovery message from the interface x1 creates an aggregation table entry, the name of which is equal to the name in the discovery message, the interface ID is equal to x1, and the monitoring ID is equal to PID1, and S210 is performed;
s209: the edge device receiving the discovery message from the interface x1 creates an aggregation table entry, the name of the aggregation table entry is equal to the name in the discovery message, the interface ID is equal to x1, and the monitor ID is equal to PID1, and adds the monitor ID PID1 to the variable p 2;
s210: the edge device which receives the discovery message from the interface x1 deletes the monitoring ID PID1 from the variable p1, determines whether the variable p1 is an empty set, if yes, executes S211, otherwise executes S206;
s211: the edge device receiving the discovery message from the interface x1 determines whether the variable p2 is an empty set, if so, performs S219, otherwise performs S212;
s212: the edge device which receives the discovery message from the interface x1 sets an interface ID set variable p3, and the value of the variable p3 is a null set;
s213: the edge device which receives the discovery message from the interface x1 randomly selects a monitoring ID PID2 from a variable p2, selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the PID2, judges whether the interface ID of the monitoring table entry is contained in the variable p3, if so, executes S215, otherwise, executes S214;
s214: the edge device which receives the discovery message from the interface x1 selects a monitoring table entry, the monitoring ID of which is equal to PID2, and adds the interface ID of the monitoring table entry into the variable p 3;
s215: the edge device which receives the discovery message from the interface x1 deletes the PID2 from the variable p2, determines whether the variable p2 is an empty set, if yes, executes S216, otherwise executes S213;
s216: the edge device that receives the discovery message from interface x1 performs the following for each interface ID in variable p 3: the edge device forwards the discovery message from the interface identified by the interface ID, and executes S204;
s217: the mobile device receiving the discovery message judges whether the mobile device is a monitoring device of the chemical substance parameter identified by the name of the discovery message, if so, the step S218 is executed, otherwise, the step S223 is executed;
s218: the mobile equipment receiving the discovery message sends a data message, the message ID of the data message is 6, the monitoring ID is equal to the equipment ID of the mobile equipment, the name is equal to the name in the discovery message, and the chemical substance parameter is equal to the chemical substance parameter defined by the name in the discovery message;
s219: if the user device UD1 receives the data message, S222 is performed, otherwise S220 is performed;
s220: the edge device receiving the data message selects all aggregation table entries with names and monitoring IDs respectively equal to the names and the monitoring IDs in the data message, and for each aggregation table entry AE1, the edge device forwards the data message from an interface identified by an interface ID in an aggregation table entry AE 1;
s221: the edge device receiving the data message selects all the aggregation table entries whose names and monitoring IDs are respectively equal to the names and monitoring IDs in the data message, deletes the aggregation table entries, and executes S219;
s222: the user device UD1 that receives the data message saves the chemical substance parameter in the data message, deletes the monitoring ID in the data message from the variable p0, determines whether the variable p0 is an empty set, if yes, performs S223, otherwise performs S219;
s223: and (6) ending.
The user equipment can quickly acquire the chemical substance parameters from the monitoring equipment through the aggregation table and the monitoring table by utilizing the search message, the confirmation message, the discovery message and the data message through the processes, so that the real-time acquisition and automatic analysis of the chemical substance parameters are implemented. In the process, the user equipment can quickly acquire the chemical substance parameters of each monitoring device through the monitoring table, so that the broadcast storm is effectively avoided, the chemical substance parameters can be quickly acquired from each monitoring device, the chemical substance parameter automatic analysis can be efficiently implemented, the chemical substance parameter automatic analysis efficiency is improved, and the chemical substance parameter automatic analysis time is shortened.
In the method of the present invention, the first step,
the request message in the industrial Internet of things comprises a message ID, a name and a monitoring ID;
the response message in the industrial Internet of things comprises a message ID, a monitoring ID, a name and a chemical substance parameter;
the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
the user device UD1 has authority to obtain chemical parameters defined by name NA1, and the user device UD1 obtains chemical parameters provided by all monitoring nodes by the following procedure:
s301: starting;
s302: the monitoring device CD1 sends a request message with a message ID of 7, named NA1, which equals the monitoring ID of the monitoring device CD 1;
s303: if the mobile device receives the request message, executing S308, otherwise executing S304;
s304: the edge device receiving the request message from the interface y1 determines whether there is an aggregation table entry, the name of the aggregation table entry is equal to the name in the request message, the interface ID is equal to y1, and the monitoring ID is equal to the monitoring ID in the request message, if yes, S310 is executed, otherwise S305 is executed;
s305: the edge device receiving the request message from the interface y1 determines whether there is an aggregation table entry, where the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, if yes, S306 is executed, otherwise S307 is executed;
s306: the edge device receiving the request message from the interface y1 creates an aggregation table entry, the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, the interface ID is equal to y1, and S310 is executed;
s307: the edge device receiving the request message from the interface y1 creates an aggregation table entry, the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, the interface ID is equal to y1, selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the monitoring ID in the request message, forwards the request message from the interface identified by the interface ID of the monitoring table entry, and executes S303;
s308: the mobile device receiving the request message judges whether the own device ID is equal to the monitoring ID in the request message, if so, S309 is executed, otherwise, S314 is executed;
s309: the mobile equipment receiving the request message sends a response message, the message ID of the response message is 8, the monitoring ID is equal to the equipment ID of the mobile equipment, the name is equal to the name in the request message, and the chemical substance parameter is equal to the chemical substance parameter defined by the name of the request message;
s310: if the user device UD1 receives the response message, S313 is performed, otherwise S311 is performed;
s311: the edge device receiving the response message selects all aggregation table entries with names and monitoring IDs respectively equal to the names and the monitoring IDs in the response message, and for each aggregation table entry AE2, the edge device forwards the response message from the interface identified by the interface ID in the aggregation table entry AE 2;
s312: the edge device receiving the response message selects all the aggregation table entries whose names and monitoring IDs are respectively equal to the names and monitoring IDs in the response message, deletes the aggregation table entries, and executes S310;
s313: the user device UD1 that received the response message saves the chemical parameter in the response message;
s314: and (6) ending.
The user equipment can quickly acquire the chemical substance parameters from the specified monitoring equipment through the aggregation table and the monitoring table by utilizing the request message and the response message through the process, and can efficiently, quickly and automatically analyze the chemical substance parameters. In the process, the user equipment can quickly acquire the chemical substance parameters of the appointed monitoring equipment through the monitoring table, so that the broadcast storm is effectively avoided, the chemical substance parameters can be quickly acquired from the monitoring equipment, the automatic analysis of the chemical substance parameters is implemented, the automatic analysis efficiency of the chemical substance parameters is improved, and the automatic analysis delay of the chemical substance parameters is reduced.
In the method of the present invention, the first step,
the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
the abnormal message in the industrial Internet of things comprises a message ID, a name and a chemical substance parameter;
if the monitoring device CD1 detects an abnormality in the chemical parameter defined by the name NA1, the following operations are performed:
s401: starting;
s402: the monitoring device CD1 sends an exception message, the message ID of which is 8 and the name of which is NA1, and the chemical parameter is the chemical parameter defined by the name of NA 1;
s403: if the mobile device receives the abnormal message, executing S407, otherwise executing S404;
s404: the edge device which receives the abnormal message selects all user table entries with names equal to the names in the abnormal message, an interface ID set variable r1 is set, the variable r1 is a null set, whether the interface ID of the user table entry is contained in the variable r1 or not is judged aiming at each selected user table entry, if yes, no operation is executed, otherwise, the interface ID of the user table entry is added into the variable r 1;
s405: the edge device that receives the exception message performs the following for each interface ID in the variable r 1: forwarding the exception message from the interface identified by the interface ID;
s406: the edge device that receives the exception message clears the variable r1, and S403 is executed;
s407: the mobile equipment receiving the abnormal message judges whether the mobile equipment is the user equipment of the chemical substance parameter defined by the name of the abnormal message, if so, S408 is executed, otherwise, S409 is executed;
s408: the mobile equipment receiving the abnormal message stores the chemical substance parameters in the abnormal message;
s409: and (6) ending.
The monitoring device can rapidly feed back the abnormal chemical substance parameters obtained by automatic analysis to the user equipment through the user table by utilizing the abnormal messages in the process, so that the user equipment can implement real-time monitoring and take corresponding measures.
In the method of the present invention, the first step,
the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
user device UD1 has the right to obtain chemical parameters defined by name NA 1;
the alarm message in the industrial Internet of things comprises a message ID, a user ID, a name and a chemical substance parameter;
the monitoring device CD1 feeds back chemical parameters to the user device UD1 by:
s501: starting;
s502: the monitoring device CD1 sends an alarm message with a message ID of 9, named NA1, a user ID of the user device UD1 and chemical parameters defined by the name NA 1;
s503: if the mobile device receives the alarm message, executing S505, otherwise executing S504;
s504: the edge device receiving the alarm message selects a user table entry whose name and user ID are respectively equal to the name and user ID in the alarm message, forwards the alarm message from the interface identified by the interface ID of the user table entry, and executes S503;
s505: the mobile equipment receiving the alarm message judges whether the equipment ID of the mobile equipment is equal to the user ID in the alarm message, if so, S506 is executed, otherwise, S507 is executed;
s506: the mobile equipment receiving the alarm message stores the chemical substance parameters in the alarm message;
s507: and (6) ending.
The monitoring device can rapidly feed back the abnormal chemical substance parameters to the appointed user equipment through the user table by utilizing the alarm message in the process, so that the user equipment can implement real-time monitoring and take corresponding measures.
Has the advantages that: the invention provides a method for realizing automatic analysis of chemical substance parameters based on an industrial Internet of things, aiming at timely and efficiently acquiring the chemical substance parameters and realizing the automatic analysis of the chemical substance parameters, thereby improving the automation degree of the chemical substance parameters and improving the automatic analysis efficiency of the chemical substance parameters.
Drawings
The foregoing and/or other advantages of the invention will become further apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
FIG. 1 is a schematic flow diagram of pretreatment chemistry parameters according to the present invention.
FIG. 2 is a schematic diagram of a process for obtaining chemical parameters according to the present invention.
FIG. 3 is a schematic flow chart of the process and analysis of chemical parameters according to the present invention.
Fig. 4 is a schematic flow chart of the method for obtaining abnormal chemical parameters according to the present invention.
FIG. 5 is a schematic flow chart of the present invention for processing abnormal chemical parameters.
The specific implementation mode is as follows:
the invention provides a method for realizing automatic analysis of chemical substance parameters based on an industrial Internet of things, aiming at timely and efficiently acquiring the chemical substance parameters and realizing the automatic analysis of the chemical substance parameters, thereby improving the automation degree of the chemical substance parameters and improving the automatic analysis efficiency of the chemical substance parameters.
FIG. 1 is a schematic flow diagram of pretreatment chemistry parameters according to the present invention. The industrial Internet of things comprises mobile equipment and edge equipment; for example, the mobile device is a smart phone, and the edge device is a server, a router, and the like; the automatic analysis result of the chemical substance parameters can be applied to an automatic dosing system;
each type of chemical parameter is uniquely identified by a name; such as total acid, total base, conductivity, etc.,
each mobile device is provided with an interface which is a wireless interface and is linked with the edge device, each edge device is provided with more than two interfaces, each interface comprises a wireless interface and more than two wired interfaces, the wireless interfaces are linked with the mobile devices, and the wired interfaces are connected with other edge devices;
each wireless interface and each wired interface are uniquely identified by an interface ID;
a mobile device having authority to obtain a chemical parameter is called a user device of the chemical parameter;
the mobile device which has the authority to generate and provide a chemical parameter is called a monitoring device of the chemical parameter;
each mobile device is uniquely identified by a device ID; the device ID may be a hardware ID, such as a MAC address;
the device ID of the monitoring device is referred to as the monitoring ID of the monitoring device;
the device ID of the user equipment is referred to as a provisioning ID of the user equipment;
each message in the industrial Internet of things is uniquely identified by a message ID;
each edge device stores a user table and a monitoring table, wherein one user table item comprises a user ID, a name, an interface ID and a life cycle; one monitoring table entry comprises a monitoring ID, a name, an interface ID and a life cycle;
monitoring information in the industrial Internet of things comprises a message ID, a monitoring ID and a name;
the user message in the industrial Internet of things comprises a message ID, a user ID, a monitoring ID and a name;
the monitoring device MD1 has the authority to generate and provide chemical parameters defined by the name NA1, the monitoring device MD1 periodically performs the following operations:
s101: starting;
s102: the monitoring equipment MD1 sends a monitoring message, the message ID of the monitoring message is 1, the monitoring ID is the own equipment ID and is named as NA 1;
s103: if the mobile device receives the monitoring message, executing S107, otherwise executing S104;
s104: the edge device receiving the monitoring message from the interface f1 judges whether a monitoring table entry exists, the monitoring ID and the name of the table entry are respectively equal to the monitoring ID and the name of the monitoring message, the life cycle is greater than a threshold LF0, the value range of the threshold LF0 is 95% -99% of the maximum life cycle, if yes, S109 is executed, otherwise S105 is executed;
s105: the edge device receiving the monitoring message from the interface f1 judges whether a monitoring table entry exists, the monitoring ID and the name of the monitoring table entry are respectively equal to the monitoring ID and the name of the monitoring message, if yes, the interface ID of the monitoring table entry is set to be f1, the life cycle is set to be the maximum value, otherwise, a monitoring table entry is created, the monitoring ID and the name of the monitoring table entry are respectively equal to the monitoring ID and the name of the monitoring message, the interface ID of the monitoring table entry is set to be f1, and the life cycle is set to be the maximum value;
s106: the edge device that receives the supervision message from the interface f1 forwards the supervision message from each interface other than the interface f1, sets a clock, and performs S103;
s107: the mobile device receiving the monitoring message judges whether the mobile device is the user equipment of the chemical substance parameter defined by the name of the monitoring message, if so, S108 is executed, otherwise, S113 is executed;
s108: the mobile equipment receiving the monitoring message sends a user message, the message ID of the user message is 2, the user ID is the equipment ID of the user, the monitoring ID is the monitoring ID in the monitoring message, and the name is equal to the name in the monitoring message;
s109: the edge device receiving the monitoring message judges whether a user message is received in a set clock, if so, S110 is executed, otherwise, S113 is executed;
s110: the edge device receiving the user message judges whether a user table entry exists, the user ID and the name of the user table entry are respectively equal to the user ID and the name in the user message, if yes, the interface ID of the user table entry is set to be f2, f2 is the interface ID of the interface of the edge device receiving the user message, the life cycle is set to be the maximum value, otherwise, a user table entry is created, the user ID and the name of the user table entry are respectively equal to the user ID and the name in the user message, the interface ID of the user table entry is set to be f2, and the life cycle is set to be the maximum value;
s111: the edge device receiving the user message selects a monitoring table item, the monitoring ID of the monitoring table item is equal to the monitoring ID in the user message, whether the interface identified by the interface ID of the monitoring table item is a wireless interface is judged, if so, S113 is executed, otherwise, S112 is executed;
s112: the edge device receiving the user message selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the monitoring ID in the user message, the user message is forwarded from the interface identified by the interface ID of the monitoring table entry, and S110 is executed;
s113: and (6) ending.
FIG. 2 is a schematic diagram of a process for obtaining chemical parameters according to the present invention. The search message in the industrial Internet of things comprises a message ID and a name;
the confirmation message in the industrial Internet of things comprises a message ID and a monitoring table;
the discovery message in the industrial Internet of things comprises a message ID and a name;
the data message in the industrial Internet of things comprises a monitoring ID, a name and a chemical substance parameter;
each edge device stores an aggregation table, and an aggregation table item comprises a name, a monitoring ID and an interface ID;
the user device UD1 is linked with the edge device ED1, the user device UD1 has the right to obtain chemical parameters defined by the name NA1, the user device UD1 obtains chemical parameters provided by all monitoring nodes by the following procedure:
s201: starting;
s202: the user device UD1 sends a lookup message with a message ID of 3 and a name of NA1, the edge device ED1, after receiving the lookup message, selects all monitoring entries with names equal to the name in the lookup message, and sends a confirmation message from the wireless interface, the message ID of the confirmation message is 4, and the monitoring table contains all the selected monitoring entries;
s203: after receiving the confirmation message, the user device UD1 sets a monitoring ID variable p0, where the variable p0 contains the monitoring ID of each monitoring table entry in the confirmation message, and the user device UD1 sends a discovery message, where the message ID of the discovery message is 5 and the name is NA 1;
s204: if the mobile device receives the discovery message, performing S217, otherwise performing S205;
s205: the edge device which receives the discovery message from the interface x1 sets a monitoring ID variable p1 and p2, the values of the variables p1 and p2 are null sets, all monitoring table entries with names equal to the name of the discovery message are selected, and the monitoring ID of each selected monitoring table entry is added into the variable p 1;
s206: the edge device which receives the discovery message from the interface x1 randomly selects a monitoring ID PID1 from a variable p1, judges whether an aggregation table item exists, the name of the aggregation table item is equal to the name in the discovery message, the interface ID is equal to x1, the monitoring ID is equal to PID1, if the aggregation table item exists, S210 is executed, otherwise, S207 is executed;
s207: the edge device receiving the discovery message from the interface x1 determines whether there is an aggregation table entry, the name of the aggregation table entry is equal to the name in the discovery message, and the monitoring ID is equal to the PID1, if there is, S208 is executed, otherwise S209 is executed;
s208: the edge device receiving the discovery message from the interface x1 creates an aggregation table entry, the name of which is equal to the name in the discovery message, the interface ID is equal to x1, and the monitoring ID is equal to PID1, and S210 is performed;
s209: the edge device receiving the discovery message from the interface x1 creates an aggregation table entry, the name of the aggregation table entry is equal to the name in the discovery message, the interface ID is equal to x1, and the monitor ID is equal to PID1, and adds the monitor ID PID1 to the variable p 2;
s210: the edge device which receives the discovery message from the interface x1 deletes the monitoring ID PID1 from the variable p1, determines whether the variable p1 is an empty set, if yes, executes S211, otherwise executes S206;
s211: the edge device receiving the discovery message from the interface x1 determines whether the variable p2 is an empty set, if so, performs S219, otherwise performs S212;
s212: the edge device which receives the discovery message from the interface x1 sets an interface ID set variable p3, and the value of the variable p3 is a null set;
s213: the edge device which receives the discovery message from the interface x1 randomly selects a monitoring ID PID2 from a variable p2, selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the PID2, judges whether the interface ID of the monitoring table entry is contained in the variable p3, if so, executes S215, otherwise, executes S214;
s214: the edge device which receives the discovery message from the interface x1 selects a monitoring table entry, the monitoring ID of which is equal to PID2, and adds the interface ID of the monitoring table entry into the variable p 3;
s215: the edge device which receives the discovery message from the interface x1 deletes the PID2 from the variable p2, determines whether the variable p2 is an empty set, if yes, executes S216, otherwise executes S213;
s216: the edge device that receives the discovery message from interface x1 performs the following for each interface ID in variable p 3: the edge device forwards the discovery message from the interface identified by the interface ID, and executes S204;
s217: the mobile device receiving the discovery message judges whether the mobile device is a monitoring device of the chemical substance parameter identified by the name of the discovery message, if so, the step S218 is executed, otherwise, the step S223 is executed;
s218: the mobile equipment receiving the discovery message sends a data message, the message ID of the data message is 6, the monitoring ID is equal to the equipment ID of the mobile equipment, the name is equal to the name in the discovery message, and the chemical substance parameter is equal to the chemical substance parameter defined by the name in the discovery message;
s219: if the user device UD1 receives the data message, S222 is performed, otherwise S220 is performed;
s220: the edge device receiving the data message selects all aggregation table entries with names and monitoring IDs respectively equal to the names and the monitoring IDs in the data message, and for each aggregation table entry AE1, the edge device forwards the data message from an interface identified by an interface ID in an aggregation table entry AE 1;
s221: the edge device receiving the data message selects all the aggregation table entries whose names and monitoring IDs are respectively equal to the names and monitoring IDs in the data message, deletes the aggregation table entries, and executes S219;
s222: the user device UD1 that receives the data message saves the chemical substance parameter in the data message, deletes the monitoring ID in the data message from the variable p0, determines whether the variable p0 is an empty set, if yes, performs S223, otherwise performs S219;
s223: and (6) ending.
FIG. 3 is a schematic flow chart of the process and analysis of chemical parameters according to the present invention. The request message in the industrial Internet of things comprises a message ID, a name and a monitoring ID;
the response message in the industrial Internet of things comprises a message ID, a monitoring ID, a name and a chemical substance parameter;
the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
the user device UD1 has authority to obtain chemical parameters defined by name NA1, and the user device UD1 obtains chemical parameters provided by all monitoring nodes by the following procedure:
s301: starting;
s302: the monitoring device CD1 sends a request message with a message ID of 7, named NA1, which equals the monitoring ID of the monitoring device CD 1;
s303: if the mobile device receives the request message, executing S308, otherwise executing S304;
s304: the edge device receiving the request message from the interface y1 determines whether there is an aggregation table entry, the name of the aggregation table entry is equal to the name in the request message, the interface ID is equal to y1, and the monitoring ID is equal to the monitoring ID in the request message, if yes, S310 is executed, otherwise S305 is executed;
s305: the edge device receiving the request message from the interface y1 determines whether there is an aggregation table entry, where the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, if yes, S306 is executed, otherwise S307 is executed;
s306: the edge device receiving the request message from the interface y1 creates an aggregation table entry, the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, the interface ID is equal to y1, and S310 is executed;
s307: the edge device receiving the request message from the interface y1 creates an aggregation table entry, the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, the interface ID is equal to y1, selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the monitoring ID in the request message, forwards the request message from the interface identified by the interface ID of the monitoring table entry, and executes S303;
s308: the mobile device receiving the request message judges whether the own device ID is equal to the monitoring ID in the request message, if so, S309 is executed, otherwise, S314 is executed;
s309: the mobile equipment receiving the request message sends a response message, the message ID of the response message is 8, the monitoring ID is equal to the equipment ID of the mobile equipment, the name is equal to the name in the request message, and the chemical substance parameter is equal to the chemical substance parameter defined by the name of the request message;
s310: if the user device UD1 receives the response message, S313 is performed, otherwise S311 is performed;
s311: the edge device receiving the response message selects all aggregation table entries with names and monitoring IDs respectively equal to the names and the monitoring IDs in the response message, and for each aggregation table entry AE2, the edge device forwards the response message from the interface identified by the interface ID in the aggregation table entry AE 2;
s312: the edge device receiving the response message selects all the aggregation table entries whose names and monitoring IDs are respectively equal to the names and monitoring IDs in the response message, deletes the aggregation table entries, and executes S310;
s313: the user device UD1 that received the response message saves the chemical parameter in the response message;
s314: and (6) ending.
Fig. 4 is a schematic flow chart of the method for obtaining abnormal chemical parameters according to the present invention. The monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
the abnormal message in the industrial Internet of things comprises a message ID, a name and a chemical substance parameter;
if the monitoring device CD1 detects an abnormality in the chemical parameter defined by the name NA1, the following operations are performed:
s401: starting;
s402: the monitoring device CD1 sends an exception message, the message ID of which is 8 and the name of which is NA1, and the chemical parameter is the chemical parameter defined by the name of NA 1;
s403: if the mobile device receives the abnormal message, executing S407, otherwise executing S404;
s404: the edge device which receives the abnormal message selects all user table entries with names equal to the names in the abnormal message, an interface ID set variable r1 is set, the variable r1 is a null set, whether the interface ID of the user table entry is contained in the variable r1 or not is judged aiming at each selected user table entry, if yes, no operation is executed, otherwise, the interface ID of the user table entry is added into the variable r 1;
s405: the edge device that receives the exception message performs the following for each interface ID in the variable r 1: forwarding the exception message from the interface identified by the interface ID;
s406: the edge device that receives the exception message clears the variable r1, and S403 is executed;
s407: the mobile equipment receiving the abnormal message judges whether the mobile equipment is the user equipment of the chemical substance parameter defined by the name of the abnormal message, if so, S408 is executed, otherwise, S409 is executed;
s408: the mobile equipment receiving the abnormal message stores the chemical substance parameters in the abnormal message;
s409: and (6) ending.
FIG. 5 is a schematic flow chart of the present invention for processing abnormal chemical parameters. The monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
user device UD1 has the right to obtain chemical parameters defined by name NA 1;
the alarm message in the industrial Internet of things comprises a message ID, a user ID, a name and a chemical substance parameter;
the monitoring device CD1 feeds back chemical parameters to the user device UD1 by:
s501: starting;
s502: the monitoring device CD1 sends an alarm message with a message ID of 9, named NA1, a user ID of the user device UD1 and chemical parameters defined by the name NA 1;
s503: if the mobile device receives the alarm message, executing S505, otherwise executing S504;
s504: the edge device receiving the alarm message selects a user table entry whose name and user ID are respectively equal to the name and user ID in the alarm message, forwards the alarm message from the interface identified by the interface ID of the user table entry, and executes S503;
s505: the mobile equipment receiving the alarm message judges whether the equipment ID of the mobile equipment is equal to the user ID in the alarm message, if so, S506 is executed, otherwise, S507 is executed;
s506: the mobile equipment receiving the alarm message stores the chemical substance parameters in the alarm message;
s507: and (6) ending.
Example 1
The embodiment simulates an implementation method of the chemical substance parameter automatic analysis based on the industrial internet of things, and the simulation time is 120 minutes. If the monitoring device MD1 has the authority to generate and provide the chemical parameters defined by the name NA1, the monitoring device MD1 periodically performs S101-103 to send monitoring messages and user messages to create monitoring tables and user tables to achieve rapid acquisition and automatic analysis of the chemical parameters. The monitoring device establishes the monitoring table by sending the monitoring message, and the user device establishes the user table by sending the user message, so that the monitoring device can acquire chemical substance parameters from each user device through the user table, and the user device can transmit the chemical substance parameters to each monitoring device through the monitoring table, thereby realizing the real-time acquisition and automatic analysis operation of the real-time chemical substance parameters. The validity of the monitoring table and the user table is confirmed through the life cycle of the monitoring table and the user table in the process, the broadcast storm is effectively inhibited, and therefore the chemical substance parameters can be quickly obtained and accurately, effectively and automatically analyzed in real time. The user device UD1 is linked with the edge device ED1, has authority to acquire chemical parameters defined by name NA1, and the user device UD1 acquires chemical parameters provided by the monitoring node by sending search messages, acknowledgement messages, discovery messages and data messages through S201-S223. The user device UD1 may quickly obtain chemical parameters from the monitoring devices through the aggregation table and the monitoring table using look-up messages, acknowledgement messages, discovery messages and data messages to perform real-time acquisition and automatic analysis of the chemical parameters. In the process, the user equipment can quickly acquire the chemical substance parameters of each monitoring device through the monitoring table, so that the broadcast storm is effectively avoided, the chemical substance parameters can be quickly acquired from each monitoring device, the chemical substance parameter automatic analysis can be efficiently implemented, the chemical substance parameter automatic analysis efficiency is improved, and the chemical substance parameter automatic analysis time is shortened. If the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA1 and the user device UD1 has the authority to obtain chemical parameters defined by the name NA1, the user device UD1 obtains the chemical parameters provided by the monitoring node through S301-S314. The user equipment can quickly acquire the chemical substance parameters from the specified monitoring equipment through the aggregation table and the monitoring table by utilizing the request message and the response message, and can efficiently, quickly and automatically analyze the chemical substance parameters. In the process, the user equipment can quickly acquire the chemical substance parameters of the appointed monitoring equipment through the monitoring table, so that the broadcast storm is effectively avoided, the chemical substance parameters can be quickly acquired from the monitoring equipment, the automatic analysis of the chemical substance parameters is implemented, the automatic analysis efficiency of the chemical substance parameters is improved, and the automatic analysis delay of the chemical substance parameters is reduced. If the monitoring device CD1 has authority to generate and provide the chemical substance parameters defined by the name NA1 and the monitoring device CD1 monitors that the chemical substance parameters defined by the name NA1 are abnormal, S401-S409 are performed to quickly feed back the abnormal chemical substance parameters obtained by the automatic analysis to the user device using an abnormal message. The monitoring device can rapidly feed back the abnormal chemical substance parameters obtained by automatic analysis to the user equipment through the user table by utilizing the abnormal messages, so that the user equipment can implement real-time monitoring and take corresponding measures. If the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA1 and the user device UD1 has the authority to obtain chemical parameters defined by the name NA1, the monitoring device CD1 feeds back the chemical parameters to the user device UD1 through S501-507. The monitoring equipment can rapidly feed back the abnormal chemical substance parameters to the appointed user equipment through the user table by utilizing the alarm message, so that the user equipment can implement real-time monitoring and take corresponding measures. According to the simulation result, the accuracy of the automatic analysis of the chemical substance parameters in the invention is ninety-nine-six percent.
The invention provides a thought of a method for automatically analyzing chemical substance parameters based on an industrial internet of things, and a plurality of methods and ways for specifically implementing the technical scheme, and the above description is only a preferred embodiment of the invention, and it should be noted that, for a person skilled in the art, a plurality of improvements and decorations can be made without departing from the principle of the invention, and these improvements and decorations should also be regarded as the protection scope of the invention. The components not specified in this embodiment can be implemented by the prior art.

Claims (10)

1. An implementation method for automatic analysis of chemical substance parameters based on an industrial Internet of things is characterized in that the industrial Internet of things comprises mobile equipment and edge equipment;
each type of chemical parameter is uniquely identified by a name;
each mobile device is provided with an interface which is a wireless interface and is linked with the edge device, each edge device is provided with more than two interfaces, each interface comprises a wireless interface and more than two wired interfaces, the wireless interfaces are linked with the mobile devices, and the wired interfaces are connected with other edge devices;
each wireless interface and each wired interface are uniquely identified by an interface ID;
a mobile device having authority to obtain a chemical parameter is called a user device of the chemical parameter;
the mobile device which has the authority to generate and provide a chemical parameter is called a monitoring device of the chemical parameter;
each mobile device is uniquely identified by a device ID;
the device ID of the monitoring device is referred to as the monitoring ID of the monitoring device;
the device ID of the user equipment is referred to as a provisioning ID of the user equipment;
each message in the industrial Internet of things is uniquely identified by a message ID;
each edge device stores a user table and a monitoring table, wherein one user table item comprises a user ID, a name, an interface ID and a life cycle; one monitoring table entry comprises a monitoring ID, a name, an interface ID and a life cycle;
monitoring information in the industrial Internet of things comprises a message ID, a monitoring ID and a name;
the user message in the industrial Internet of things comprises a message ID, a user ID, a monitoring ID and a name;
the monitoring device MD1 has the authority to generate and provide chemical parameters defined by the name NA1, the monitoring device MD1 periodically performs the following operations:
s101: starting;
s102: the monitoring equipment MD1 sends a monitoring message, the message ID of the monitoring message is 1, the monitoring ID is the own equipment ID and is named as NA 1;
s103: if the mobile device receives the monitoring message, executing S107, otherwise executing S104;
s104: the edge device receiving the monitoring message from the interface f1 determines whether there is a monitoring table entry, the monitoring ID and the name of the table entry are respectively equal to the monitoring ID and the name of the monitoring message, and the life cycle is greater than the threshold LF0, if there is, S109 is executed, otherwise S105 is executed;
s105: the edge device receiving the monitoring message from the interface f1 judges whether a monitoring table entry exists, the monitoring ID and the name of the monitoring table entry are respectively equal to the monitoring ID and the name of the monitoring message, if yes, the interface ID of the monitoring table entry is set to be f1, the life cycle is set to be the maximum value, otherwise, a monitoring table entry is created, the monitoring ID and the name of the monitoring table entry are respectively equal to the monitoring ID and the name of the monitoring message, the interface ID of the monitoring table entry is set to be f1, and the life cycle is set to be the maximum value;
s106: the edge device that receives the supervision message from the interface f1 forwards the supervision message from each interface other than the interface f1, sets a clock, and performs S103;
s107: the mobile device receiving the monitoring message judges whether the mobile device is the user equipment of the chemical substance parameter defined by the name of the monitoring message, if so, S108 is executed, otherwise, S113 is executed;
s108: the mobile equipment receiving the monitoring message sends a user message, the message ID of the user message is 2, the user ID is the equipment ID of the user, the monitoring ID is the monitoring ID in the monitoring message, and the name is equal to the name in the monitoring message;
s109: the edge device receiving the monitoring message judges whether a user message is received in a set clock, if so, S110 is executed, otherwise, S113 is executed;
s110: the edge device receiving the user message judges whether a user table entry exists, the user ID and the name of the user table entry are respectively equal to the user ID and the name in the user message, if yes, the interface ID of the user table entry is set to be f2, f2 is the interface ID of the interface of the edge device receiving the user message, the life cycle is set to be the maximum value, otherwise, a user table entry is created, the user ID and the name of the user table entry are respectively equal to the user ID and the name in the user message, the interface ID of the user table entry is set to be f2, and the life cycle is set to be the maximum value;
s111: the edge device receiving the user message selects a monitoring table item, the monitoring ID of the monitoring table item is equal to the monitoring ID in the user message, whether the interface identified by the interface ID of the monitoring table item is a wireless interface is judged, if so, S113 is executed, otherwise, S112 is executed;
s112: the edge device receiving the user message selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the monitoring ID in the user message, the user message is forwarded from the interface identified by the interface ID of the monitoring table entry, and S110 is executed;
s113: and (6) ending.
2. The method for realizing the automatic analysis of the parameters of the chemical substances based on the industrial Internet of things as claimed in claim 1,
the search message in the industrial Internet of things comprises a message ID and a name;
the confirmation message in the industrial Internet of things comprises a message ID and a monitoring table;
the discovery message in the industrial Internet of things comprises a message ID and a name;
the data message in the industrial internet of things contains a monitoring ID, a name and chemical parameters.
3. The method for realizing the automatic analysis of the parameters of the chemical substances based on the industrial Internet of things as claimed in claim 1,
each edge device maintains an aggregation table, one aggregation table entry containing a name, a monitoring ID, and an interface ID.
4. The method for realizing the automatic analysis of the chemical substance parameters based on the industrial Internet of things as claimed in claims 2 and 3,
the user device UD1 is linked with the edge device ED1, the user device UD1 has the right to obtain chemical parameters defined by the name NA1, the user device UD1 obtains chemical parameters provided by all monitoring nodes by the following procedure:
s201: starting;
s202: the user device UD1 sends a lookup message with a message ID of 3 and a name of NA1, the edge device ED1, after receiving the lookup message, selects all monitoring entries with names equal to the name in the lookup message, and sends a confirmation message from the wireless interface, the message ID of the confirmation message is 4, and the monitoring table contains all the selected monitoring entries;
s203: after receiving the confirmation message, the user device UD1 sets a monitoring ID variable p0, where the variable p0 contains the monitoring ID of each monitoring table entry in the confirmation message, and the user device UD1 sends a discovery message, where the message ID of the discovery message is 5 and the name is NA 1;
s204: if the mobile device receives the discovery message, performing S217, otherwise performing S205;
s205: the edge device which receives the discovery message from the interface x1 sets a monitoring ID variable p1 and p2, the values of the variables p1 and p2 are null sets, all monitoring table entries with names equal to the name of the discovery message are selected, and the monitoring ID of each selected monitoring table entry is added into the variable p 1;
s206: the edge device which receives the discovery message from the interface x1 randomly selects a monitoring ID PID1 from a variable p1, judges whether an aggregation table item exists, the name of the aggregation table item is equal to the name in the discovery message, the interface ID is equal to x1, the monitoring ID is equal to PID1, if the aggregation table item exists, S210 is executed, otherwise, S207 is executed;
s207: the edge device receiving the discovery message from the interface x1 determines whether there is an aggregation table entry, the name of the aggregation table entry is equal to the name in the discovery message, and the monitoring ID is equal to the PID1, if there is, S208 is executed, otherwise S209 is executed;
s208: the edge device receiving the discovery message from the interface x1 creates an aggregation table entry, the name of which is equal to the name in the discovery message, the interface ID is equal to x1, and the monitoring ID is equal to PID1, and S210 is performed;
s209: the edge device receiving the discovery message from the interface x1 creates an aggregation table entry, the name of the aggregation table entry is equal to the name in the discovery message, the interface ID is equal to x1, and the monitor ID is equal to PID1, and adds the monitor ID PID1 to the variable p 2;
s210: the edge device which receives the discovery message from the interface x1 deletes the monitoring ID PID1 from the variable p1, determines whether the variable p1 is an empty set, if yes, executes S211, otherwise executes S206;
s211: the edge device receiving the discovery message from the interface x1 determines whether the variable p2 is an empty set, if so, performs S219, otherwise performs S212;
s212: the edge device which receives the discovery message from the interface x1 sets an interface ID set variable p3, and the value of the variable p3 is a null set;
s213: the edge device which receives the discovery message from the interface x1 randomly selects a monitoring ID PID2 from a variable p2, selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the PID2, judges whether the interface ID of the monitoring table entry is contained in the variable p3, if so, executes S215, otherwise, executes S214;
s214: the edge device which receives the discovery message from the interface x1 selects a monitoring table entry, the monitoring ID of which is equal to PID2, and adds the interface ID of the monitoring table entry into the variable p 3;
s215: the edge device which receives the discovery message from the interface x1 deletes the PID2 from the variable p2, determines whether the variable p2 is an empty set, if yes, executes S216, otherwise executes S213;
s216: the edge device that receives the discovery message from interface x1 performs the following for each interface ID in variable p 3: the edge device forwards the discovery message from the interface identified by the interface ID, and executes S204;
s217: the mobile device receiving the discovery message judges whether the mobile device is a monitoring device of the chemical substance parameter identified by the name of the discovery message, if so, the step S218 is executed, otherwise, the step S223 is executed;
s218: the mobile equipment receiving the discovery message sends a data message, the message ID of the data message is 6, the monitoring ID is equal to the equipment ID of the mobile equipment, the name is equal to the name in the discovery message, and the chemical substance parameter is equal to the chemical substance parameter defined by the name in the discovery message;
s219: if the user device UD1 receives the data message, S222 is performed, otherwise S220 is performed;
s220: the edge device receiving the data message selects all aggregation table entries with names and monitoring IDs respectively equal to the names and the monitoring IDs in the data message, and for each aggregation table entry AE1, the edge device forwards the data message from an interface identified by an interface ID in an aggregation table entry AE 1;
s221: the edge device receiving the data message selects all the aggregation table entries whose names and monitoring IDs are respectively equal to the names and monitoring IDs in the data message, deletes the aggregation table entries, and executes S219;
s222: the user device UD1 that receives the data message saves the chemical substance parameter in the data message, deletes the monitoring ID in the data message from the variable p0, determines whether the variable p0 is an empty set, if yes, performs S223, otherwise performs S219;
s223: and (6) ending.
5. The method for realizing the automatic analysis of the parameters of the chemical substances based on the industrial Internet of things as claimed in claim 1,
the request message in the industrial Internet of things comprises a message ID, a name and a monitoring ID;
the response message in the industrial internet of things contains a message ID, a monitoring ID, a name and chemical parameters.
6. The method for realizing the automatic analysis of the parameters of the chemical substances based on the industrial Internet of things as claimed in claim 5,
the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
the user device UD1 has authority to obtain chemical parameters defined by name NA1, and the user device UD1 obtains chemical parameters provided by all monitoring nodes by the following procedure:
s301: starting;
s302: the monitoring device CD1 sends a request message with a message ID of 7, named NA1, which equals the monitoring ID of the monitoring device CD 1;
s303: if the mobile device receives the request message, executing S308, otherwise executing S304;
s304: the edge device receiving the request message from the interface y1 determines whether there is an aggregation table entry, the name of the aggregation table entry is equal to the name in the request message, the interface ID is equal to y1, and the monitoring ID is equal to the monitoring ID in the request message, if yes, S310 is executed, otherwise S305 is executed;
s305: the edge device receiving the request message from the interface y1 determines whether there is an aggregation table entry, where the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, if yes, S306 is executed, otherwise S307 is executed;
s306: the edge device receiving the request message from the interface y1 creates an aggregation table entry, the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, the interface ID is equal to y1, and S310 is executed;
s307: the edge device receiving the request message from the interface y1 creates an aggregation table entry, the name and the monitoring ID of the aggregation table entry are respectively equal to the name and the monitoring ID in the request message, the interface ID is equal to y1, selects a monitoring table entry, the monitoring ID of the monitoring table entry is equal to the monitoring ID in the request message, forwards the request message from the interface identified by the interface ID of the monitoring table entry, and executes S303;
s308: the mobile device receiving the request message judges whether the own device ID is equal to the monitoring ID in the request message, if so, S309 is executed, otherwise, S314 is executed;
s309: the mobile equipment receiving the request message sends a response message, the message ID of the response message is 8, the monitoring ID is equal to the equipment ID of the mobile equipment, the name is equal to the name in the request message, and the chemical substance parameter is equal to the chemical substance parameter defined by the name of the request message;
s310: if the user device UD1 receives the response message, S313 is performed, otherwise S311 is performed;
s311: the edge device receiving the response message selects all aggregation table entries with names and monitoring IDs respectively equal to the names and the monitoring IDs in the response message, and for each aggregation table entry AE2, the edge device forwards the response message from the interface identified by the interface ID in the aggregation table entry AE 2;
s312: the edge device receiving the response message selects all the aggregation table entries whose names and monitoring IDs are respectively equal to the names and monitoring IDs in the response message, deletes the aggregation table entries, and executes S310;
s313: the user device UD1 that received the response message saves the chemical parameter in the response message;
s314: and (6) ending.
7. The implementation method of the automatic dosing real-time monitoring system based on the industrial Internet of things as claimed in claim 1,
the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
the exception message in the industrial internet of things contains a message ID, a name and a chemical substance parameter.
8. The method for implementing the automatic medicine feeding real-time monitoring system based on the industrial Internet of things as claimed in claim 7,
if the monitoring device CD1 detects an abnormality in the chemical parameter defined by the name NA1, the following operations are performed:
s401: starting;
s402: the monitoring device CD1 sends an exception message, the message ID of which is 8 and the name of which is NA1, and the chemical parameter is the chemical parameter defined by the name of NA 1;
s403: if the mobile device receives the abnormal message, executing S407, otherwise executing S404;
s404: the edge device which receives the abnormal message selects all user table entries with names equal to the names in the abnormal message, an interface ID set variable r1 is set, the variable r1 is a null set, whether the interface ID of the user table entry is contained in the variable r1 or not is judged aiming at each selected user table entry, if yes, no operation is executed, otherwise, the interface ID of the user table entry is added into the variable r 1;
s405: the edge device that receives the exception message performs the following for each interface ID in the variable r 1: forwarding the exception message from the interface identified by the interface ID;
s406: the edge device that receives the exception message clears the variable r1, and S403 is executed;
s407: the mobile equipment receiving the abnormal message judges whether the mobile equipment is the user equipment of the chemical substance parameter defined by the name of the abnormal message, if so, S408 is executed, otherwise, S409 is executed;
s408: the mobile equipment receiving the abnormal message stores the chemical substance parameters in the abnormal message;
s409: and (6) ending.
9. The implementation method of the automatic dosing real-time monitoring system based on the industrial Internet of things as claimed in claim 1,
the monitoring device CD1 has the authority to generate and provide chemical parameters defined by the name NA 1;
user device UD1 has the right to obtain chemical parameters defined by name NA 1;
the alarm message in the industrial internet of things comprises a message ID, a user ID, a name and a chemical substance parameter.
10. The method for implementing the automatic dosing real-time monitoring system based on the industrial Internet of things as claimed in claim 9,
the monitoring device CD1 feeds back chemical parameters to the user device UD1 by:
s501: starting;
s502: the monitoring device CD1 sends an alarm message with a message ID of 9, named NA1, a user ID of the user device UD1 and chemical parameters defined by the name NA 1;
s503: if the mobile device receives the alarm message, executing S505, otherwise executing S504;
s504: the edge device receiving the alarm message selects a user table entry whose name and user ID are respectively equal to the name and user ID in the alarm message, forwards the alarm message from the interface identified by the interface ID of the user table entry, and executes S503;
s505: the mobile equipment receiving the alarm message judges whether the equipment ID of the mobile equipment is equal to the user ID in the alarm message, if so, S506 is executed, otherwise, S507 is executed;
s506: the mobile equipment receiving the alarm message stores the chemical substance parameters in the alarm message;
s507: and (6) ending.
CN202210041151.6A 2022-01-14 2022-01-14 Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things Active CN114401338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210041151.6A CN114401338B (en) 2022-01-14 2022-01-14 Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210041151.6A CN114401338B (en) 2022-01-14 2022-01-14 Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things

Publications (2)

Publication Number Publication Date
CN114401338A true CN114401338A (en) 2022-04-26
CN114401338B CN114401338B (en) 2022-09-20

Family

ID=81230509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210041151.6A Active CN114401338B (en) 2022-01-14 2022-01-14 Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things

Country Status (1)

Country Link
CN (1) CN114401338B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100303081A1 (en) * 2009-05-26 2010-12-02 Fujitsu Limited Communication system and method for forwarding a packet among a plurality of edge routers
CN103581966A (en) * 2013-10-08 2014-02-12 北京工商大学 Real-time monitoring optimizing configuration method for smart phone
CN112953828A (en) * 2021-02-07 2021-06-11 常熟理工学院 Method for realizing environment monitoring system based on Internet of things
CN112968838A (en) * 2021-02-07 2021-06-15 常熟理工学院 Irrigation monitoring system implementation method based on Internet of things
CN113852685A (en) * 2021-09-23 2021-12-28 常熟理工学院 Implementation method of intelligent Internet of things monitoring system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100303081A1 (en) * 2009-05-26 2010-12-02 Fujitsu Limited Communication system and method for forwarding a packet among a plurality of edge routers
CN103581966A (en) * 2013-10-08 2014-02-12 北京工商大学 Real-time monitoring optimizing configuration method for smart phone
CN112953828A (en) * 2021-02-07 2021-06-11 常熟理工学院 Method for realizing environment monitoring system based on Internet of things
CN112968838A (en) * 2021-02-07 2021-06-15 常熟理工学院 Irrigation monitoring system implementation method based on Internet of things
CN113852685A (en) * 2021-09-23 2021-12-28 常熟理工学院 Implementation method of intelligent Internet of things monitoring system

Also Published As

Publication number Publication date
CN114401338B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN110049014B (en) OpenAPI conversion system and method based on multiple Modbus bus protocols
EP3145148B1 (en) Resource subscription processing method and device
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
CN105897860A (en) Network device and information processing method
CN109151997B (en) Method and device for sending paging message and storage medium
CN105099763B (en) Equipment goes offline based reminding method and device
EP2629572B1 (en) Method and device of data interaction
CN112087468A (en) Message processing method, related equipment and readable storage medium
CN114401338B (en) Method for realizing automatic analysis of chemical substance parameters based on industrial Internet of things
CN111614557A (en) Data transmission method and device of Mesh network, gateway and storage medium
CN110737981B (en) Production monitoring system of fuel cell
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN117278592B (en) Implementation method of intelligent Internet of things system
CN107333279B (en) Minimization of drive tests method, base station and network management system
CN112615726A (en) Low-power-consumption processing method and device with variable wake-up time
CN116156609A (en) Data communication method, device, electronic equipment and storage medium
CN112968783B (en) Low-power-consumption processing method and device based on transmitted data
CN111240904A (en) Database backup method and device, electronic equipment and storage medium
CN114884975B (en) Service message processing method and device, storage medium and electronic device
CN112788592B (en) Data transmission processing method for adding wake-up time
CN114980365A (en) WiFi keep-alive method, WiFi keep-alive device and WiFi chip
CN105681208B (en) Message centralized processing method and system of intelligent router
CN110578989B (en) Debugging method and device of air conditioner, air conditioner and storage medium
CN112788654B (en) Information reporting method, terminal and base station
CN112152885B (en) Equipment control method and device, household appliance and remote control equipment

Legal Events

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