CN112003753B - Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway - Google Patents

Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway Download PDF

Info

Publication number
CN112003753B
CN112003753B CN202010863302.7A CN202010863302A CN112003753B CN 112003753 B CN112003753 B CN 112003753B CN 202010863302 A CN202010863302 A CN 202010863302A CN 112003753 B CN112003753 B CN 112003753B
Authority
CN
China
Prior art keywords
instruction
expected value
gateway
cloud platform
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010863302.7A
Other languages
Chinese (zh)
Other versions
CN112003753A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202010863302.7A priority Critical patent/CN112003753B/en
Publication of CN112003753A publication Critical patent/CN112003753A/en
Application granted granted Critical
Publication of CN112003753B publication Critical patent/CN112003753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • 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
    • 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
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an expected value judging, collecting, transmitting and monitoring system based on a configurable gateway, which is characterized by comprising a cloud platform, the gateway and a plurality of instruction devices, wherein the gateway is respectively in communication connection with the cloud platform and the instruction devices; the gateway is used for receiving an instruction issued by the cloud platform, sending a data acquisition and control instruction to the instruction device and reporting data to the cloud platform, wherein the timing task instruction comprises expected value setting information, after receiving the timing task setting instruction from the cloud platform, the gateway acquires a corresponding expected value result from an execution result according to expected value preset parameters in the execution of the timing task instruction, compares the acquired expected value result data with a preset expected value contained in the received expected value setting information, and performs the next operation according to the comparison result. The system of the invention can realize that the gateway processes the result of the specific expected value, and solves the problem that the major problem caused by partial network unsmooth cannot be processed.

Description

Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway
Technical Field
The invention relates to the technical field of equipment internet of things, in particular to a system and a method for judging, collecting, transmitting and monitoring an expected value based on a configurable gateway.
Background
With the further popularization of the internet of things technology, more and more devices need to be accessed to an internet platform through gateway devices to realize remote and intelligent acquisition and transmission, wherein the gateway is a key core device between the devices and the internet platform. In many cases, the gateway has many data items for acquisition control transmission of the device, wherein only part of the data items are very concerned by the user, the sensitive key data need to be processed in real time in the first time, the user is very sensitive to part of the key data of the gateway acquisition device, and the requirements for sensitive information of the user are different under different conditions, for example, the user is very concerned with the on-off information of the device in the production environment, and the user is also very concerned with the alarm information of smoke sensation and the like of the production workshop.
However, many existing gateways only have the capability of collecting the internet transmission of the specific device, are difficult to perform quick response processing in a weak network or network offline state, and cannot simultaneously have the capability of configuring the information of the collecting device and processing the result information of the specific expected value.
Meanwhile, the invention belongs to the technical scheme of the improvement of the prior application with the application number of 202010691758.X, in the technical scheme of the prior application, the data acquired and returned by the gateway is not identified and processed, the functions of acquiring transmission information and processing a specific expected value result cannot be simultaneously combined, and the problem that the gateway cannot process work under an off-line state exists.
Disclosure of Invention
The present invention aims to overcome the defects in the background art, and provides a system and a method for judging, collecting, transmitting and monitoring expected values based on a configurable gateway, which can give consideration to the collection of different devices adapted to a certain number range while giving consideration to the collection and transmission performance and the timeliness overhead, and can realize the purpose that the gateway can process the result of a specific expected value, thereby solving the problem that major problems caused by partial network unsmooth cannot be processed.
In order to achieve the technical effects, the invention adopts the following technical scheme:
the system for judging, acquiring, transmitting and monitoring the expected value based on the configurable gateway comprises a cloud platform, the gateway and a plurality of instruction devices, wherein the gateway is respectively in communication connection with the cloud platform and the instruction devices; the gateway is used for receiving the command issued by the cloud platform, sending a data acquisition and control command to the command device and reporting data to the cloud platform;
the cloud platform comprises a gateway, a plurality of cloud platforms, a plurality of network interfaces and a plurality of network interfaces, wherein the cloud platforms are distributed on the network interfaces, the network interfaces are distributed on the network interfaces, the cloud platforms send commands to the network interfaces, the network interfaces send commands to the cloud platforms, the cloud platforms send commands to the cloud platforms, the network interfaces send commands to the cloud platforms, the network interfaces send the commands to the cloud platforms, and the network interfaces;
after receiving the timing task setting instruction from the cloud platform, the gateway acquires a corresponding expected value result from an execution result according to an expected value preset parameter in the execution of the timing task instruction, compares the acquired expected value result data with a preset expected value contained in the received expected value setting information, and performs next execution according to the comparison result;
in the expected value judging, collecting, transmitting and monitoring system based on the configurable gateway, the purpose of receiving different instruction devices by gateway configuration is realized through different execution configuration execution instructions; the aim of executing a plurality of instruction functions of a plurality of instruction devices by the gateway is fulfilled through different timing task instructions; the cloud platform issues preset configuration content to the configurable gateway through a network, the gateway executes related operations including parameter configuration instructions, task clearing instructions, timing task instructions, real-time query control instructions, equipment communication instructions and the like according to the instruction content and preset instruction logic, wherein the timing task instructions comprise task content to be executed regularly, the cloud platform only needs to issue once and the gateway is stored after receiving the task content, so that the timed execution can be realized according to the specific instruction content and requirements, the real-time query control instructions are instant instructions, the cloud platform issues in real time when the gateway is required to execute, the gateway does not need to store after receiving the task content, the gateway executes the received feedback in real time, and meanwhile, the gateway in the scheme is a novel configurable gateway and can realize internal parameter configuration, sending acquisition and control instructions to the instruction equipment at regular time, and reporting the acquired data to the cloud platform at regular time according to a reporting period, so that the information of the instruction equipment can be acquired and transmitted at regular time by the configurable novel gateway through the acquisition and transmission operations in the two aspects;
more specifically, in the technical scheme of the invention, expected value setting information is also added to the timing task instruction, after the gateway receives the timing task setting instruction from the cloud platform, all information including the expected value setting information is analyzed and stored, in the process of executing the timing task instruction each time, the gateway acquires a corresponding expected value result from the result according to each preset parameter of the expected value, compares and judges a value in the selected acquisition result data with the preset expected value, and executes an expected result downlink instruction if a comparison expected result set of all the selected results and the preset expected value is true, namely, executes a command after the expected value setting and the expected value comparison, so that the gateway can realize the capabilities of configuring, acquiring, transmitting and monitoring equipment and executing downlink work in real time.
Further, the expected value setting information includes the total number of bytes of the expected value setting information, the total number of expected values, the number of bytes of the single expected value information, a single expected value selection start bit, a single expected value dereferencing mode, a single expected value selection byte length, and an expected downlink execution instruction, where the total number of bytes of the expected value setting information indicates the total number of bytes of a subsequent expected value setting information area, which facilitates separation of the expected value information from the whole timed task instruction packet in the analysis processing process of the gateway program and also facilitates judgment of the integrity of the expected value setting information, and the total number of expected values indicates the total number of expected values in one timed task instruction.
Further, one or more pieces of expected value information exist in one piece of the timed task instruction, and when a plurality of pieces of expected value information exist, the plurality of pieces of expected value information are arranged in the timed task instruction in sequence.
Further, the single expected value information byte number indicates a single expected value information byte number, the single expected value selection start bit indicates at which byte in the returned result the expected value starts to be selected, and the minimum start bit is 0 bit.
Further, the single expected value selecting byte length means that several bytes are selected as one expected value from the start bit, and the minimum byte length is 1.
Further, the value taking mode of the single expected value includes an and mode and an or mode, specifically, if the original result is true, the result of the expected value a is false, if the value taking mode a is and, the final result is false, and if the value taking mode a is or, the final value taking mode is true.
Further, sequentially taking values of the individual expected values according to the value taking mode of the individual expected value and the arrangement sequence in the timing task instruction, and obtaining a final value taking result as an expected result set, wherein if the following expected values and value taking modes are sequentially provided: expected values of A (and, true), B (and, false), C (and, true), then the expected result set is false; if so: expected values of A (and, true), B (and, false), C (or, true), then the expected result set is true. And so on.
Furthermore, parameters in the parameter configuration instruction, which represent the cloud platform connected with the gateway in an uplink mode, at least comprise a master station IP address and a port number, so that the gateway can be remotely changed to connect different uplink cloud platform master stations at any time by issuing the parameter configuration instruction to the gateway and executing the parameter configuration instruction by the gateway;
the timing task instruction at least comprises baud rate, data bits, check bits, stop bits, a reporting period, a timing task number and instruction content required by the gateway acquisition instruction device, wherein the timing task number is a unique identifier of each timing task contained in the timing task instruction, each timing task instruction represents an executable instruction, one or more timing task instructions, and the purpose of multi-instruction interaction between the gateway and a plurality of instruction devices can be achieved, namely, if a plurality of instruction functions of the plurality of devices mean that N devices exist, and each device needs to execute M instructions, the total number of the timing task instructions is a product of M multiplied by N (namely MN) timing task instructions, specifically, one instruction content represents one executable instruction of one instruction device, the instruction contents are different, corresponding to different execution instructions supported by the instruction device, the reporting period determines how much time the gateway uses the corresponding instruction to interact with the instruction device once, and returning the interactive result to the cloud platform master station instantly;
the real-time query control instruction at least comprises a baud rate, a data bit, a check bit, a stop bit and instruction contents required by gateway acquisition instruction equipment, and the equipment communication instruction at least comprises the baud rate, the data bit, the check bit, the stop bit, an execution interval and the instruction contents required by the gateway acquisition instruction equipment;
the instruction content of the timing task instruction, the equipment communication instruction and the instruction content of the real-time query control instruction all meet a question-answer communication protocol, and the instructions used in each question-answer interaction are independent.
Meanwhile, the invention also discloses a method for judging, collecting, transmitting and monitoring the expected value based on the configurable gateway, which is realized by the system for judging, collecting, transmitting and monitoring the expected value based on the configurable gateway and comprises the following steps:
the cloud platform judges whether the accessed gateway needs to update the configuration or not, and issues a parameter clearing instruction and a parameter configuration instruction to the accessed gateway when needed;
the gateway clears all internal configuration parameters after receiving the parameter clearing instruction and the parameter configuration instruction, performs parameter configuration again according to the content of the parameter configuration instruction, and stores configuration information;
the method comprises the steps that after a timed task instruction containing expected value setting information is received by a gateway, instruction content is stored and is sent to instruction equipment at regular time according to the timed task instruction content, the instruction equipment is controlled or instruction equipment information is obtained, and an execution instruction result is returned to a cloud platform at regular time under the condition that network conditions reach a preset standard, wherein in the execution of the timed task instruction, a corresponding expected value result is collected from the execution result according to expected value preset parameters, the collected expected value result data is compared with a preset expected value contained in the received expected value setting information, next step execution is carried out according to the comparison result, and the timed task instruction function enables the gateway to be connected with a plurality of equipment in a gateway configuration mode, and can also interact with the cloud platform at regular time to enhance network interactivity; meanwhile, the gateway can automatically judge the result of the executed instruction and implement corresponding downlink operation according to the judgment result by setting the expected value preset parameter in the timed task instruction, so that the waiting time for feeding back information to the cloud platform and waiting for the cloud platform to return to the next instruction operation is reduced, the processing efficiency is improved, and the problem that the information returned by the cloud platform cannot be timely acquired when the network state is not good is solved;
the gateway executes the real-time query control command in time after receiving the command, issues the command to the command equipment and immediately executes the command, and immediately returns an execution result returned by the equipment to the cloud platform; the real-time processing and returning of the instruction content can be realized by inquiring the control instruction in real time;
after receiving the device communication instruction, the gateway performs basic communication with the instruction device according to a certain frequency during operation, and if the return information of the instruction device is not obtained within the preset time, that is, the instruction device is judged to be offline, the return information is reported to the cloud platform in real time in a communication instruction feedback mode, so that the online state of the instruction device is processed in real time.
Further, the expected value setting information includes total byte number of the expected value setting information, total number of expected values, byte number of single expected value information, single expected value selection start bit, value mode of single expected value, length of single expected value selection byte, and expected downlink execution instruction;
the gateway collects corresponding expected value results from the execution results according to expected value preset parameters in the execution of the timing task instruction, compares the collected expected value result data with the preset expected values contained in the received expected value setting information, and performs the following specific operations in the next execution according to the comparison results:
the gateway configures and analyzes the execution instruction result according to the expected value setting information to obtain each expected value;
the gateway combines the single expected values according to the value mode of the single expected values to obtain an expected result set;
when the result of the expected result set is true, an expected downlink execution instruction is sent to downlink instruction equipment, and the downlink instruction equipment is controlled to execute an expected value downlink instruction, wherein the expected value downlink instruction and the timing task instruction act on the same equipment or different equipment, if the cigarette sensing equipment timing task expected value is judged to be smoke, the expected value downlink instruction and the timing task instruction act on different equipment when the downlink control instruction controls the power switch to perform power-off operation;
according to the expected value judging, collecting, transmitting and monitoring method based on the configurable gateway, the gateway can realize that one gateway can be configured and connected with a plurality of devices by setting the timed task instruction function, can also interact with the cloud platform at regular time, enhances network interactivity, simultaneously realizes command linkage execution among the devices, and even in an off-line state, the gateway can also judge and execute the expected value downlink execution through the expected value, and realizes linkage processing among the devices.
Compared with the prior art, the invention has the following beneficial effects:
firstly, in the technical scheme of the invention, the expected value downlink instruction can act on the same equipment with the timing task instruction, meets the expected value condition, immediately executes expected value downlink command operation, realizes timely processing of the sensitive value of the same equipment, and realizes that a feedback result is not required to be uploaded to a cloud platform and then is subjected to instruction issuing operation after being analyzed and processed by the cloud platform, thereby saving time and improving efficiency.
Secondly, in the technical scheme of the invention, the expected value downlink instruction can act on different equipment together with the timing task instruction, so that the equipment linkage effect of controlling the operation of the B equipment by the result of the A equipment is realized.
Thirdly, in the technical scheme of the invention, the gateway can execute the downlink command of the expected value by judging the value of the expected result set, can realize the continuous operation of the gateway under the condition of weak network or offline network disconnection, automatically process the operation of the expected value, and solve the problem that the major problems caused by partial network unsmooth cannot be processed.
Fourthly, in the technical scheme of the invention, the contents of the execution instructions in the expected value downlink instruction and the timing task are independent, each timing task instruction can realize the causal linkage execution of two instructions, and then through a plurality of timing task instructions, the one-to-one linkage execution between a plurality of instructions of one device can be realized, and the one-to-one linkage execution between a plurality of instructions of a plurality of devices can also be realized.
Drawings
Fig. 1 is a schematic diagram of an expected value judgment acquisition transmission monitoring system based on a configurable gateway according to the present invention.
Fig. 2 is a schematic flow chart of the method for monitoring transmission and collection based on expected value judgment of the configurable gateway.
Detailed Description
The invention will be further elucidated and described with reference to the embodiments of the invention described hereinafter.
Example (b):
the first embodiment is as follows:
as shown in fig. 1, an expected value judgment, acquisition, transmission and monitoring system based on a configurable gateway includes a cloud platform, a gateway and a plurality of instruction devices, where the cloud platform may be implemented by more than one device capable of providing cloud services, and the cloud platform includes capabilities of data storage, data analysis, data processing, and the like, and in this embodiment, the cloud platform is composed of one or more hardware servers and corresponding software systems, and has processing functions of classifying, analyzing, calculating, storing, and the like on data, on one hand, parameter configuration and instruction issue can be performed on the novel configurable gateway, and on the other hand, uploaded information from the novel configurable gateway can be received.
The gateway of this embodiment is configurable novel gateway, carry communication function's gateway equipment, can carry out interactive transmission with the cloud platform, also can carry out interactive transmission with instruction equipment, configurable novel gateway in this embodiment is for using communication modes such as wiFi, zigBee, NB, lora, 4G, 2G, 5G and the communication module equipment that the cloud platform is connected, can regard as the bridge, make cloud platform and instruction equipment carry out information transmission through configurable novel gateway, can receive the instruction that comes from the cloud platform, also can send collection and control command to instruction equipment.
At least one of the command devices can receive and execute command information from the configurable gateway and execute relevant corresponding operations according to the command information.
The configurable novel gateway is respectively in communication connection with the cloud platform and the instruction equipment; the cloud platform and the configurable novel gateway can be bidirectionally input and output; the configurable novel gateway and the instruction device can be bidirectionally input and output, the cloud platform can issue instruction information to the configurable novel gateway, and meanwhile, the cloud platform can also receive reported information from the configurable novel gateway.
The instructions issued by the cloud platform to the gateway include the following instructions, specifically, each instruction has a unique communication instruction identifier so that the cloud platform and the gateway can recognize the type of the received instruction conveniently:
the method comprises the steps that a parameter configuration instruction comprises acquisition parameters of a gateway and downlink instruction equipment of the gateway and parameters of a cloud platform connected with the gateway in an uplink mode, and the parameters of the cloud platform connected with the gateway in the parameter configuration instruction at least comprise a main station IP address and a port number, so that the gateway can be remotely changed to connect different uplink cloud platform main stations at any time by issuing the parameter configuration instruction to the gateway and executing the parameter configuration instruction by the gateway.
And a task clearing instruction, wherein the task clearing instruction is used for controlling the gateway to clear all contents of all timing task instructions.
And the timing task instruction is used for indicating the gateway to execute the timing task, and the real-time query control instruction is used for indicating the gateway to immediately execute the task and perform real-time feedback of an execution result.
Specifically, the timed task instruction at least includes baud rate, data bit, check bit, stop bit, reporting period, timed task number, instruction content and expected value setting information required by the gateway acquisition instruction device, the timed task number is a unique identifier of each timed task included in the timed task instruction, each timed task instruction represents an executable command and one or more timed task instructions, and the purpose of multi-instruction interaction between the gateway and a plurality of instruction devices can be achieved, that is, if a plurality of instruction functions of a plurality of devices mean that there are N devices, each device needs to execute M instructions, then the total number of the timed task instructions is a product of M times N (namely, MN) timed task instructions, specifically, one instruction content represents one executable command of one instruction device, the instruction content is different, and corresponds to different execution instructions supported by the instruction device, and the reporting period determines how much time the gateway interacts with the instruction equipment once by using the corresponding instruction, and returns the interaction result to the cloud platform master station immediately.
And inquiring a control instruction in real time, wherein the control instruction is generally issued when a cloud platform needs to acquire certain data of the instruction equipment in real time or the control instruction equipment executes certain operation, and the control instruction in real time at least comprises baud rate, data bits, check bits, stop bits and instruction content required by the gateway acquisition instruction equipment.
And the equipment communication instruction is used for indicating the gateway to confirm and report the communication state of the downlink instruction equipment, and at least comprises the baud rate, data bits, check bits, stop bits, execution intervals and instruction contents required by the gateway acquisition instruction equipment. In practice, the instruction content of the device communication instruction is generally a simple query instruction recognizable by the device (but not limited to a query instruction, and may be any instruction as required). And the command is executed at regular time, the timing time is generally short, the command is successfully executed, the communication of the equipment is considered to be normal, the execution is failed, the communication of the equipment is considered to be abnormal, when the communication is abnormal, a communication abnormal event is immediately sent to the cloud platform, and the cloud platform judges that the connection between the command equipment and the gateway is in an abnormal communication state.
Specifically, in this embodiment, each timing task has expected value setting information, which includes a total number of bytes of the expected value setting information, a total number of expected values, a number of bytes of a single expected value information, a single expected value selection start bit, a value mode of the single expected value, a single expected value selection byte length, and an expected downlink execution instruction.
Wherein the expected value sets the total number of bytes of information: the total number of bytes of the subsequent expected value setting information area is represented, so that the expected value information can be conveniently separated from the whole timing task instruction packet in the analysis processing process of the gateway program, and the completeness of the expected value setting information can be conveniently judged.
Total number of expected values: indicating the total number of expected values in a timed task instruction, where one or more pieces of expected value information may be present in a timed task instruction.
Single expected value information byte count: the number of bytes at the desired value.
Selecting a start bit for a single expected value: indicating which byte in the returned result the expected value started to be selected, the minimum start bit in this embodiment is 0 bits.
The single expected value selects the byte length: it is indicated that several bytes are selected as an expected value from the start bit, and the minimum byte length is 1 in this embodiment.
The value mode of the single expected value is as follows: it is referred to how the individual desired values are combined to achieve the desired result set, and there are specifically an and manner and an or manner in this embodiment.
The desired result set: the timing task instruction has one or more expected values, the expected values need to be combined, specifically, each single expected value is sequentially subjected to value taking according to the value taking mode of the single expected value and the arrangement sequence in the timing task instruction, and the obtained final value taking result is an expected result set.
An expected value downlink instruction: the specific instruction content is the same as the real-time query control instruction content, and specifically, the execution sequence of the expected value downlink instruction and the execution instruction in the timing task in the embodiment has a causal relationship, but the execution contents are independent of each other. The content of the downlink instruction of the expected value can act on the same equipment to realize the instruction query control of the same equipment; or the device can act on the other device to realize linkage fit between the two devices.
In the expected value judging, collecting, transmitting and monitoring system based on the configurable gateway, the purpose of receiving different instruction devices by gateway configuration is realized through different execution configuration execution instructions; the aim of executing a plurality of instruction functions of a plurality of instruction devices by the gateway is fulfilled through different timing task instructions; the cloud platform issues preset configuration content to the configurable gateway through a network, and the gateway executes related operations including parameter configuration instructions, task clearing instructions, timing task instructions, real-time query control instructions, equipment communication instructions, expected value increasing setting information and the like according to the instruction content and preset instruction logic, wherein the timing task instructions include task content to be executed regularly, the cloud platform only needs to issue once, and the gateway stores the task content after receiving the task content, so that the cloud platform can execute regularly according to the specific instruction content and the requirement.
And more prominently, in the process of executing the timing task instruction each time, the gateway acquires a corresponding expected value result from the fed-back interactive result according to each preset parameter of the expected value, compares and judges a value in the selected acquisition result data with a preset expected value, and executes an expected result downlink instruction if the comparison between all the selected results and the preset expected value is true, namely, executes a command after the expected value setting and the expected value comparison, thereby realizing the capability of configuring, acquiring, transmitting and monitoring equipment of the gateway and executing downlink work in real time.
Specifically, for the received feedback result, the gateway sets the total number of bytes of information, the total number of expected values, the number of bytes of single expected value information, a single expected value selection start bit, a single expected value dereferencing mode, and single expected value selection byte length information according to the expected values in the stored expected value setting information, collects and combines the results of the single expected values, and finally obtains an expected result set, and if the value of the expected result set is true, sends an expected value downlink instruction to the downlink device, so that the downlink device executes the expected value downlink instruction, thereby realizing the function of timing tasks. Command linkage execution among a plurality of devices is realized. And in an off-line state, the gateway can judge and execute the downlink execution of the expected value through the expected value, so as to realize the linkage processing among the devices.
The real-time query control instruction is an instant instruction, the cloud platform issues the real-time query control instruction in real time when the gateway is required to execute, the gateway executes the real-time query control instruction in real time without storing after receiving the real-time query control instruction, and reports the received feedback in real time.
Meanwhile, the gateway in the scheme is a configurable novel gateway, and can realize that acquisition and control instructions are sent to the instruction equipment at regular time through internal parameter configuration, and the acquired data is reported to the cloud platform at regular time according to the reporting period, so that the information of the instruction equipment can be acquired and transmitted at regular time through the acquisition and transmission operations in the two aspects.
Specifically, in the scheme of the application, the compatibility of the gateway to different command devices is increased through a parameter configuration command, the acquisition meeting requirements and device information can be changed at any time, the research and development cost and the generation and installation cost are reduced, the interactivity between the gateway and the cloud platform is increased through a timing task command, the devices can be acquired at regular time or monitored in real time according to requirements, expected values can be configured and analyzed from feedback results through expected value setting information, an expected result set is obtained, a downlink command of the executed expected values is judged, the offline use scene of the gateway is enhanced, and command result linkage execution between the downlink device commands is also realized through the gateway.
Through equipment communication instruction, the communication state of equipment is timely discovered, response is made quickly, the communication maintenance of the equipment is facilitated, the operation maintenance cost of the equipment is reduced, and the interaction between the cloud platform and the configurable gateway is in the form of instruction packet transmission, so that universal relevant modules and MCU (microprogrammed control unit) on the market can be adopted, the requirement on hardware is low, the cost on hardware is low, the universality is good, meanwhile, the instruction content is an instruction meeting a question-and-answer communication protocol, the equipment can comprise protocols such as modbus communication protocols, manufacturer-defined question-and-answer communication protocols and the like, and the equipment universality is wider.
In summary, the expected value judging, collecting, transmitting and monitoring system based on the configurable gateway issues instructions to the configurable novel gateway configuration parameters through the cloud platform, the novel gateway executes corresponding instructions to the instruction equipment and returns corresponding results to the cloud platform, compatibility of the gateway acquisition equipment is improved, timeliness of online states of the instruction equipment is improved, network transmission timeliness is enhanced, meanwhile, one-to-one linkage execution among multiple instructions of one equipment can be achieved by adding expected value setting information in timing task instructions, one-to-one linkage execution among multiple instructions among multiple equipment can also be achieved, continuous operation of the gateway under weak network or offline network disconnection conditions is achieved, expected value operation is automatically processed, and the problem that major problems caused by partial network unsmooth cannot be processed is solved.
Example two
As shown in fig. 2, a method for monitoring expected value judgment, acquisition, transmission and monitoring based on a configurable gateway is implemented by a system for monitoring expected value judgment, acquisition, transmission and monitoring based on a configurable gateway in the first embodiment, and includes the following steps:
when the cloud platform is in a normal operation state, the gateway is actively connected with the cloud platform, a login instruction is sent to the cloud platform, and the cloud platform verifies the instruction content; if the verification is passed, allowing the gateway to access, and maintaining the communication connection between the gateway and the cloud platform; if the authentication fails, disconnecting the gateway does not allow it to access the platform.
After the gateway is successfully accessed, the cloud platform judges whether the accessed gateway needs to update the configuration or not, and issues a parameter clearing instruction and a parameter configuration instruction to the accessed gateway when needed; specifically, when the access to the cloud platform is first performed or the command device for acquisition control needs to be replaced, the cloud platform determines that the accessed gateway needs to be updated and configured.
And after receiving the parameter clearing instruction and the parameter configuration instruction, the gateway clears all internal configuration parameters, performs parameter configuration again according to the content of the parameter configuration instruction, and stores configuration information.
The gateway stores the instruction content after receiving the timed task instruction, sends the instruction in the task to the instruction equipment at regular time according to the timed task instruction content, controls the instruction equipment or obtains the information of the instruction equipment, and returns the execution instruction result to the cloud platform when the network condition is stable; the timing task instruction of this embodiment specifically includes expected value setting information, and the expected value setting information specifically includes information such as a total number of bytes of the expected value setting information, a total number of expected values, a number of bytes of a single expected value information, a single expected value selection start bit, a single expected value dereferencing mode, a single expected value selection byte length, and an expected downlink execution instruction.
And after receiving the execution instruction result, the gateway analyzes the execution instruction result according to the rule in the expected value setting information to obtain each expected value, and simultaneously combines the expected values to obtain an expected result set.
The timed task instruction function enables the gateway to realize that one gateway is configured to be connected with a plurality of devices, and can also interact with the cloud platform at regular time, so that the network interactivity is enhanced, and command linkage execution among the devices is realized. In an offline state, the gateway can judge and execute the downlink execution of the expected value through the expected value, and linkage processing among the devices is realized.
The gateway executes the real-time query control command in time after receiving the command, issues the command to the command equipment and immediately executes the command, and immediately returns an execution result returned by the equipment to the cloud platform; real-time processing and returning of instruction contents can be realized by inquiring the control instructions in real time.
After receiving the device communication instruction, the gateway frequently performs basic communication with the instruction device in a second-level communication mode during operation, and if the return information of the instruction device is not acquired within the preset time, namely the instruction device is judged to be offline, the return information is reported to the cloud platform in real time in a return device communication instruction feedback mode, so that the real-time processing of the online state of the instruction device is realized.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (7)

1. The method is realized by adopting a system for judging, collecting, transmitting and monitoring the expected value based on the configurable gateway, and is characterized in that the system comprises a cloud platform, the gateway and a plurality of instruction devices, wherein the gateway is respectively in communication connection with the cloud platform and the instruction devices; the gateway is used for receiving the command issued by the cloud platform, sending a data acquisition and control command to the command device and reporting data to the cloud platform;
the cloud platform comprises a gateway, a plurality of cloud platforms, a plurality of network interfaces and a plurality of network interfaces, wherein the cloud platforms are distributed on the network interfaces, the network interfaces are distributed on the network interfaces, the cloud platforms send commands to the network interfaces, the network interfaces send commands to the cloud platforms, the cloud platforms send commands to the cloud platforms, the network interfaces send commands to the cloud platforms, the network interfaces send the commands to the cloud platforms, and the network interfaces;
after receiving the timed task setting instruction from the cloud platform, the gateway acquires a corresponding expected value result from an execution result according to an expected value preset parameter in the execution of the timed task instruction, compares the acquired expected value result data with a preset expected value contained in the received expected value setting information, and performs the next operation according to the comparison result;
the method comprises the following steps:
the cloud platform judges whether the accessed gateway needs to update the configuration or not, and issues a parameter clearing instruction and a parameter configuration instruction to the accessed gateway when needed;
the gateway clears all internal configuration parameters after receiving the parameter clearing instruction and the parameter configuration instruction, performs parameter configuration again according to the content of the parameter configuration instruction, and stores configuration information;
the method comprises the steps that after a timed task instruction containing expected value setting information is received by a gateway, instruction content is stored and is sent to instruction equipment at regular time according to the timed task instruction content, the instruction equipment is controlled or instruction equipment information is obtained, and an execution instruction result is returned to a cloud platform at regular time under the condition that network conditions reach a preset standard, wherein in the execution of the timed task instruction, a corresponding expected value result is collected from the execution result according to expected value preset parameters, the collected expected value result data is compared with a preset expected value contained in the received expected value setting information, and the next step of execution is carried out according to the comparison result;
the expected value setting information comprises the total number of bytes of the expected value setting information, the total number of expected values, the number of bytes of single expected value information, a single expected value selection start bit, a single expected value dereferencing mode, a single expected value selection byte length and an expected downlink execution instruction;
the gateway collects corresponding expected value results from the execution results according to expected value preset parameters in the execution of the timing task instruction, compares the collected expected value result data with the preset expected values contained in the received expected value setting information, and performs the following specific operations in the next execution according to the comparison results:
the gateway configures and analyzes the execution instruction result according to the expected value setting information to obtain each expected value;
the gateway combines the single expected values according to the value mode of the single expected values to obtain an expected result set;
when the result of the expected result set is true, an expected downlink execution instruction is sent to downlink instruction equipment, and the downlink instruction equipment is controlled to execute the expected value downlink instruction, wherein the expected value downlink instruction and the timed task instruction act on the same equipment or different equipment;
the gateway executes the real-time query control command in time after receiving the command, issues the command to the command equipment and immediately executes the command, and immediately returns an execution result returned by the equipment to the cloud platform;
after receiving the device communication instruction, the gateway performs basic communication with the instruction device according to a certain frequency during operation, and if the return information of the instruction device is not acquired within the preset time, that is, the instruction device is determined to be offline, the return information is reported to the cloud platform in real time in a return device communication instruction feedback mode.
2. The configurable gateway-based expected value judgment acquisition transmission monitoring method according to claim 1, wherein the total number of expected values indicates the total number of expected values in one of the timed task instructions, one or more pieces of expected value information are present in one of the timed task instructions, and when a plurality of pieces of expected value information are present, each of the plurality of pieces of expected value information are sequentially arranged in the timed task instruction.
3. The configurable gateway-based expected value judgment acquisition transmission monitoring method of claim 1, wherein the single expected value information byte number represents a single expected value information byte number, the single expected value selection start bit represents which byte in the returned result the expected value starts to be selected, and the minimum start bit is 0 bit.
4. The method of claim 3, wherein the byte length selected for the single expected value indicates that several bytes are selected as an expected value from a start bit, and the minimum byte length is 1.
5. The method for judging, collecting, transmitting and monitoring the expected values based on the configurable gateway as claimed in claim 2, wherein the value-taking modes of the single expected value include an and mode and an or mode.
6. The expected value judging, collecting, transmitting and monitoring method based on the configurable gateway as claimed in claim 5, wherein each single expected value is sequentially subjected to value taking according to the value taking mode of the single expected value and the arrangement sequence in the timing task instruction, and the obtained final value taking result is an expected result set.
7. The method for judging, collecting, transmitting and monitoring the expected value based on the configurable gateway according to any one of claims 1 to 6, wherein the parameter indicating the cloud platform connected to the gateway in the parameter configuration instruction at least includes a master station IP address and a port number;
the timing task instruction at least comprises a baud rate, a data bit, a check bit, a stop bit, a reporting period, a timing task number and instruction content required by gateway acquisition instruction equipment, wherein the timing task number is a unique identifier of each timing task contained in the timing task instruction;
the real-time query control instruction at least comprises a baud rate, a data bit, a check bit, a stop bit and instruction contents required by gateway acquisition instruction equipment, and the equipment communication instruction at least comprises the baud rate, the data bit, the check bit, the stop bit, an execution interval and the instruction contents required by the gateway acquisition instruction equipment;
and the instruction content of the timing task instruction, the equipment communication instruction and the instruction content of the real-time query control instruction all meet a question-answering communication protocol.
CN202010863302.7A 2020-08-25 2020-08-25 Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway Active CN112003753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010863302.7A CN112003753B (en) 2020-08-25 2020-08-25 Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010863302.7A CN112003753B (en) 2020-08-25 2020-08-25 Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway

Publications (2)

Publication Number Publication Date
CN112003753A CN112003753A (en) 2020-11-27
CN112003753B true CN112003753B (en) 2022-02-22

Family

ID=73470796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010863302.7A Active CN112003753B (en) 2020-08-25 2020-08-25 Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway

Country Status (1)

Country Link
CN (1) CN112003753B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938512B (en) * 2021-10-15 2023-06-09 四川启睿克科技有限公司 Multi-device linkage control method and system based on configurable gateway

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140054791A (en) * 2012-10-29 2014-05-09 삼성전자주식회사 Image forming apparatus and control method thereof
US11397801B2 (en) * 2015-09-25 2022-07-26 Argus Cyber Security Ltd. System and method for controlling access to an in-vehicle communication network
CN108667807B (en) * 2018-04-11 2020-12-11 华南师范大学 Protocol self-adaption method and system based on monitoring cloud platform and gateway
CN108768724B (en) * 2018-05-30 2021-11-16 上海顺舟智能科技股份有限公司 Gateway control method and intelligent gateway
CN110557448A (en) * 2019-08-29 2019-12-10 宁波智轩物联网科技有限公司 Control method and system for smart home
CN111127255B (en) * 2019-11-22 2024-02-27 青岛海信智慧生活科技有限公司 Intelligent hotel management system

Also Published As

Publication number Publication date
CN112003753A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN111031034A (en) Multi-protocol convergence edge computing gateway
CN112671638B (en) Gateway structure for multi-protocol conversion
CN104580424B (en) The data reporting method and device of smart home system
CN111865736B (en) Equipment control method and device
CN108092847B (en) A kind of electric power LTE wireless terminal remote on-line monitoring method
CN103200070A (en) Control terminal and control method thereof
CN112003753B (en) Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway
CN101110772B (en) Device and method for handling message
CN106953891A (en) A kind of advertisement screen long-range control method and system
CN111541606A (en) Gateway processing method, gateway device and gateway system
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN111817897A (en) Acquisition transmission monitoring system and acquisition transmission monitoring method capable of configuring gateway
CN113282587B (en) Method and device for transmitting state data, storage medium and electronic device
KR102475542B1 (en) Gateway system for heterogeneous fieldbus network
CN102238571B (en) Apparatus of Internet of Things machine to machine/man (M2M) business processing, system and method thereof
CN106130787B (en) Service processing system based on software defined network
CN109343488A (en) Fieldbus monitoring early-warning system and method based on wechat and FDT technology
CN116955232A (en) Hardware identification method and device based on control system
CN114817671A (en) Log analysis method and system for air conditioner Internet of things
CN106790076B (en) Electric power telecontrol original data transmission method
CN109560612A (en) A kind of intelligent power distribution cabinet system
CN114168414A (en) Energy consumption control system based on mqtt protocol and equipment authority autonomous control method
CN108243231B (en) Industrial network information interconnection method and system based on network monitoring
CN110798242A (en) Circuit, multi-channel device and multi-channel short message sending method
CN114079322A (en) Breaker data management method and smart grid system

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