CN109241020B - Data processing method and system, storage medium and processor - Google Patents

Data processing method and system, storage medium and processor Download PDF

Info

Publication number
CN109241020B
CN109241020B CN201811020241.7A CN201811020241A CN109241020B CN 109241020 B CN109241020 B CN 109241020B CN 201811020241 A CN201811020241 A CN 201811020241A CN 109241020 B CN109241020 B CN 109241020B
Authority
CN
China
Prior art keywords
data
voice information
equipment
target
protocol
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
CN201811020241.7A
Other languages
Chinese (zh)
Other versions
CN109241020A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Gree Intelligent Equipment Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811020241.7A priority Critical patent/CN109241020B/en
Publication of CN109241020A publication Critical patent/CN109241020A/en
Application granted granted Critical
Publication of CN109241020B publication Critical patent/CN109241020B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The invention discloses a data processing method and system, a storage medium and a processor. Wherein, the method comprises the following steps: receiving input voice information indicating at least one of: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment; inquiring a corresponding database according to the voice information to obtain an inquiry result; and executing the operation indicated by the voice information according to the query result. The invention solves the technical problems of insufficient intelligence and inconvenience in configuration caused by adopting a text file mode for configuration.

Description

Data processing method and system, storage medium and processor
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method and system, a storage medium, and a processor.
Background
With the rapid development of industrial informatization and intellectualization, the field production condition is more accurately mastered by an informatization means, data in the production process is collected in real time, the production process is supervised and controlled, an enterprise information system and an acquisition control system are fused, and the whole process is completely covered. However, the underlying devices have raised various problems during configuration.
In the traditional process of configuring bottom-layer equipment, text files are mostly adopted for configuration, for example, configuration personnel writes code files and then connects the equipment in a manual clicking mode to complete corresponding configuration, which causes that the configuration is not intelligent enough and inconvenient.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data processing method and system, a storage medium and a processor, which at least solve the technical problems of insufficient intelligence and inconvenience in configuration caused by adopting a text file mode for configuration.
According to an aspect of an embodiment of the present invention, there is provided a data processing method including: receiving input voice information indicating at least one of: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment; inquiring a corresponding database according to the voice information to obtain an inquiry result; and executing the operation indicated by the voice information according to the query result.
Optionally, in a case that the voice information is used for indicating a configuration target protocol and a device to be connected, the voice information includes at least one of: the target protocol, the IP address, the port number, the device to be connected, and the start connection indication.
Optionally, the receiving the input voice information, querying a corresponding database according to the voice information to obtain a query result, and executing the operation indicated by the voice information according to the query result includes: receiving voice information containing the target protocol; inquiring the target protocol from a protocol library; outputting voice information for indicating a feedback IP address; receiving voice information containing the IP address; checking the format of the IP address; if the format is correct, outputting voice information used for indicating a feedback port number; receiving voice information containing the port number; checking whether the port number is legal; under the condition that the port number is legal, outputting voice information for indicating and feeding back equipment to be connected; receiving voice information containing equipment to be connected; inquiring whether the equipment configuration library contains equipment to be connected; if not, storing the configuration information; when voice information including a connection start instruction is received, the data distributor reads connection information of a device to be connected and then connects the device to be connected.
Optionally, in a case that the voice information is used for indicating a configuration target data point, the voice information includes at least one of: the target data point, the device name, the data type, and the device address.
Optionally, the receiving the input voice information, querying a corresponding database according to the voice information to obtain a query result, and executing the operation indicated by the voice information according to the query result includes: receiving voice information containing the equipment name; outputting voice information indicating a feedback data point in case of inquiring the device name from a device configuration library; receiving voice information containing the target data point; querying from a data point configuration library whether the target data point is included; outputting voice information indicating a feedback data type in a case where the data point configuration library contains the target data point; receiving voice information containing the data type; judging whether the data type is legal or not according to a type support library; under the condition that the data type is legal, outputting voice information for indicating the address of the feedback equipment; receiving voice information containing the equipment address; and inquiring an address support library according to the equipment address, and configuring the target data point.
Optionally, in a case that the voice information is used to indicate a connection target device, the voice information includes at least one of: the target device.
Optionally, the receiving the input voice information, querying a corresponding database according to the voice information to obtain a query result, and executing the operation indicated by the voice information according to the query result includes: receiving voice information containing the target equipment; inquiring whether the device configuration library contains the connection information of the target device; and under the condition that the equipment configuration library contains the connection information of the target equipment, reading the connection information of the target equipment through a data distributor, and then establishing connection between a data acquisition server and the target equipment.
Optionally, when the data acquisition server is successfully connected to the target device, the data acquisition server starts a data point reading thread, and reads data point data configured by the target device to a memory.
Optionally, the data acquisition server is a message queue telemetry transmission MQTT data acquisition server.
According to another aspect of the embodiments of the present invention, there is also provided a data processing method, including: receiving binary data sent by an upper application system, wherein the binary data is obtained by compiling a first data file with a first format by the upper application system, and the first data file comprises a protocol type, equipment, at least one data point and a reading object; performing decompiling on the binary data to obtain the first data file; converting the first data file into an industrial protocol; inquiring connection information corresponding to the equipment from an equipment configuration library; sending the industrial protocol to the equipment according to the connection information; receiving protocol data returned by the equipment; converting the protocol data into a second data file having the first format; compiling the second data file to obtain a compiling result; and sending the compiling result to the upper application system, performing decompiling on the compiling result by the upper application system to obtain the second data file, and executing the operation indicated by the second data file.
Optionally, the converting the first data file into an industrial protocol includes: analyzing the first data file; and calling a protocol converter corresponding to the protocol type according to the protocol type, and converting the first data file into the industrial protocol.
Optionally, the first format is a protobuf format.
According to another aspect of the embodiments of the present invention, there is also provided a data processing method, including: acquiring a first data file with a first format; compiling a first data file with a first format to obtain binary data; sending the binary data to a data acquisition server, wherein the data acquisition server decompiles the binary data to obtain a first data file, converts the first data file into an industrial protocol, inquires connection information corresponding to the equipment from an equipment configuration library, sends the industrial protocol to the equipment according to the connection information, receives protocol data returned by the equipment, converts the protocol data into a second data file with the first format, and compiles the second data file to obtain a compilation result; receiving the compiling result sent by the data acquisition server; performing decompiling on the compiling result to obtain the second data file; and executing the operation indicated by the second data file.
Optionally, the data acquisition server is an MQTT data acquisition server.
Optionally, the first format is a protobuf format.
According to another aspect of the embodiments of the present invention, there is also provided a data processing system, including a data acquisition server, wherein the data acquisition server includes: a voice configurator for receiving input voice information indicating at least one of: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment; inquiring a corresponding database according to the voice information to obtain an inquiry result; and executing the operation indicated by the voice information according to the query result.
Optionally, in a case that the voice information is used for indicating a configuration target protocol and a device to be connected, the voice information includes at least one of: the target protocol, the IP address, the port number, the device to be connected, and the start connection indication.
Optionally, the voice configurator is configured to receive voice information including the target protocol; inquiring the target protocol from a protocol library; outputting voice information for indicating a feedback IP address; receiving voice information containing the IP address; checking the format of the IP address; if the format is correct, outputting voice information used for indicating a feedback port number; receiving voice information containing the port number; checking whether the port number is legal; under the condition that the port number is legal, outputting voice information for indicating and feeding back equipment to be connected; receiving voice information containing equipment to be connected; inquiring whether the equipment configuration library contains equipment to be connected; if not, storing the configuration information; when voice information including a connection start instruction is received, the data distributor reads connection information of a device to be connected and then connects the device to be connected.
Optionally, in a case that the voice information is used for indicating a configuration target data point, the voice information includes at least one of: the target data point, the device name, the data type, and the device address.
Optionally, the voice configurator is configured to receive voice information including the device name; outputting voice information indicating a feedback data point in case of inquiring the device name from a device configuration library; receiving voice information containing the target data point; querying from a data point configuration library whether the target data point is included; outputting voice information indicating a feedback data type in a case where the data point configuration library contains the target data point; receiving voice information containing the data type; judging whether the data type is legal or not according to a type support library; under the condition that the data type is legal, outputting voice information for indicating the address of the feedback equipment; receiving voice information containing the equipment address; and inquiring an address support library according to the equipment address, and configuring the target data point.
Optionally, in a case that the voice information is used to indicate a connection target device, the voice information includes at least one of: the target device.
Optionally, the voice configurator is configured to receive voice information including the target device; inquiring whether the device configuration library contains the connection information of the target device; and under the condition that the equipment configuration library contains the connection information of the target equipment, reading the connection information of the target equipment through a data distributor, and then establishing connection between a data acquisition server and the target equipment.
Optionally, the system further includes: the upper application system is used for acquiring a first data file with a first format; compiling a first data file with a first format to obtain binary data; sending the binary data to the data acquisition server; the data acquisition server is used for decompiling the binary data to obtain the first data file, converting the first data file into an industrial protocol, inquiring connection information corresponding to the equipment from an equipment configuration library, sending the industrial protocol to the equipment according to the connection information, receiving protocol data returned by the equipment, converting the protocol data into a second data file with the first format, and compiling the second data file to obtain a compiling result; the upper application system is further configured to receive the compiling result sent by the data acquisition server; decompiling the compilation result to obtain the second data file; and executing the operation indicated by the second data file.
Optionally, the data collection server further comprises at least one of: data converter, data distributor, protocol converter.
Optionally, the data acquisition server is an MQTT data acquisition server.
Optionally, the first format is a protobuf format.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program executes the data processing method described above.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes the data processing method described above.
In the embodiment of the invention, the voice information for receiving input is adopted, and the voice information is used for indicating at least one of the following: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment; inquiring a corresponding database according to the voice information to obtain an inquiry result; according to the query result, the operation mode indicated by the voice information is executed, the corresponding database is searched according to the input voice information, and the data required to be collected is intelligently configured according to the query result, so that the purpose of intelligent voice adaptation industrial protocol is achieved, the technical effects of industrial informatization and intellectualization and configuration convenience improvement are achieved, and the technical problems of insufficient intelligence and inconvenience in configuration caused by the adoption of a text file mode are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic flow chart diagram of an alternative data processing method according to an embodiment of the invention;
FIG. 2 is a flow diagram of an alternative intelligent voice industry protocol configuration interaction in accordance with an embodiment of the present invention;
FIG. 3(a) is an alternative intelligent voice data point configuration interaction flow diagram according to an embodiment of the present invention;
FIG. 3(b) is an alternative intelligent voice connection apparatus interaction flow diagram according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram of an alternative data processing method according to an embodiment of the invention;
FIG. 5 is a schematic flow chart diagram of yet another alternative data processing method according to an embodiment of the present invention;
FIG. 6 is a block diagram of an alternative data processing system in accordance with embodiments of the present invention;
FIG. 7 is a block diagram of an alternative data processing system in accordance with an embodiment of the present invention;
fig. 8 is a schematic diagram of an alternative protobuf data format according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a data processing method, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a data processing method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, receiving the input voice information.
Wherein the voice information is used to indicate at least one of: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment.
And step S104, inquiring a corresponding database according to the voice information to obtain an inquiry result.
And step S106, executing the operation indicated by the voice information according to the query result.
Through the steps, the corresponding database is searched according to the input voice information, the data required to be collected is intelligently configured according to the query result, and the purpose of intelligent voice adaptation industrial protocol is achieved, so that the technical effects of industrial informatization and intellectualization and configuration convenience improvement are achieved, and the technical problems of insufficient intelligence and inconvenience in configuration caused by the adoption of a text file configuration mode are solved.
As an optional implementation manner, in the case that the voice information is used for indicating a configuration target protocol and a device to be connected, the voice information includes at least one of the following: the target protocol, the IP address, the port number, the device to be connected, and the start connection indication.
Optionally, the receiving the input voice information, querying a corresponding database according to the voice information to obtain a query result, and executing the operation indicated by the voice information according to the query result includes: receiving voice information containing the target protocol; inquiring the target protocol from a protocol library; outputting voice information for indicating a feedback IP address; receiving voice information containing the IP address; checking the format of the IP address; if the format is correct, outputting voice information used for indicating a feedback port number; receiving voice information containing the port number; checking whether the port number is legal; under the condition that the port number is legal, outputting voice information for indicating and feeding back equipment to be connected; receiving voice information containing equipment to be connected; inquiring whether the equipment configuration library contains equipment to be connected; if not, storing the configuration information; when voice information including a connection start instruction is received, the data distributor reads connection information of a device to be connected and then connects the device to be connected.
As shown in fig. 2, the intelligent voice industry protocol configuration interaction flow is as follows:
and S1, the Xiaoming classmates help me to select a protocol.
And S2, inquiring the protocol library.
And S3, claiming the I IP address.
S4,198.168.1.1。
S5, check format.
And S6, claiming the port number of the meter.
S7,3600。
S8, checking port number validity.
And S9, claiming the name of the equipment.
S10, device No. 5.
S11, query the device configuration to see if there is any device.
S12, if not, storing the configuration information.
S13, whether the connection is now initiated.
S14, yes, help me start connection.
And S15, starting to connect the No. 5 device.
And S16, inquiring the device configuration library and reading the connection information of the No. 5 device.
S17, the device of the corresponding address is turned on/connected.
S18, start state.
And S19, the connection is successful.
Based on this, the user configures the protocol and the address of the device to be connected, and the associated parameters, through a small smart voice configurator (i.e., the voice configurator described above).
As another optional implementation manner, in a case that the voice information is used for indicating a configuration target data point, the voice information includes at least one of: the target data point, the device name, the data type, and the device address.
Optionally, the receiving the input voice information, querying a corresponding database according to the voice information to obtain a query result, and executing the operation indicated by the voice information according to the query result includes: receiving voice information containing the equipment name; outputting voice information indicating a feedback data point in case of inquiring the device name from a device configuration library; receiving voice information containing the target data point; querying from a data point configuration library whether the target data point is included; outputting voice information indicating a feedback data type in a case where the data point configuration library contains the target data point; receiving voice information containing the data type; judging whether the data type is legal or not according to a type support library; under the condition that the data type is legal, outputting voice information for indicating the address of the feedback equipment; receiving voice information containing the equipment address; and inquiring an address support library according to the equipment address, and configuring the target data point.
As shown in fig. 3(a), the intelligent voice data point configuration interaction flow is as follows:
and S1, assisting the Xiaoming classmates to configure a data point.
S2, which device you want to configure?
S3, device No. 4.
And S4, inquiring the device configuration library.
S5, please reselect the device without the device.
S6, device No. 5.
And S7, inquiring the device configuration library.
And S8, claiming the appeal' S data point name.
S9,Number One。
S10, inquiring the data point configuration library to determine whether the data point exists.
S11, please select the data type.
S12,int。
And S13, inquiring the type support library and judging the validity.
And S14, claiming the address of the device.
S15,D12。
S16, inquiring the address support library.
S17, the configuration is successful.
Based on this, the user configures the data points and related parameters of the device that he wants to collect through the smart voice configurator.
As a further optional implementation manner, in a case that the voice information is used for indicating a connection target device, the voice information includes at least one of: the target device.
Optionally, the receiving the input voice information, querying a corresponding database according to the voice information to obtain a query result, and executing the operation indicated by the voice information according to the query result includes: receiving voice information containing the target equipment; inquiring whether the device configuration library contains the connection information of the target device; and under the condition that the equipment configuration library contains the connection information of the target equipment, reading the connection information of the target equipment through a data distributor, and then establishing connection between a data acquisition server and the target equipment.
And under the condition that the data acquisition server is successfully connected with the target equipment, the data acquisition server starts a data point reading thread and reads data point data configured by the target equipment to a memory.
As shown in fig. 3(b), the intelligent voice connection device interaction flow is as follows:
and S1, the Xiaoming classmates please help me to connect the No. 4 device.
S2, inquiring the device configuration library whether the device has the connection information of the device.
S3, without the device.
And S4, the Xiaoming classmates please help me to connect the No. 5 device.
S5, inquiring the device configuration library whether the device has the connection information of the device.
And S6, starting to connect the No. 5 device.
S7, inquiring the connection information of device No. 5.
S8, the device of the corresponding address is turned on/connected.
S9, start state.
And S10, the connection is successful.
Based on this, the user lets the data acquisition server connect to the equipment according to the configuration parameter through xiaoming intelligent voice configurator, and the data acquisition server starts the data point and reads the thread, constantly reads the data point data of this equipment configuration to the memory, reads once in 500 milliseconds.
Optionally, the data acquisition server is an MQTT (Message queue Telemetry Transport) data acquisition server.
Example 2
In accordance with an embodiment of the present invention, there is provided a method embodiment of a data processing method, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 4 is a data processing method according to an embodiment of the present invention, as shown in fig. 4, the method including the steps of:
step S402, receiving binary data sent by the upper application system.
The binary data is obtained by compiling a first data file with a first format by the upper application system, wherein the first data file comprises a protocol type, equipment, at least one data point and a reading object.
Optionally, the first format is a protobuf format.
Step S404, performing decompiling on the binary data to obtain the first data file.
Step S406, converting the first data file into an industrial protocol.
Optionally, the converting the first data file into an industrial protocol includes: analyzing the first data file; and calling a protocol converter corresponding to the protocol type according to the protocol type, and converting the first data file into the industrial protocol.
Step S408, querying connection information corresponding to the device from the device configuration library.
And step S410, sending the industrial protocol to the equipment according to the connection information.
Step S412, receiving the protocol data returned by the device.
Step S414, converting the protocol data into a second data file having the first format.
Step S416, compiling the second data file to obtain a compilation result.
And step S418, sending the compiling result to the upper application system.
And the upper application system decompiles the compiling result to obtain the second data file and executes the operation indicated by the second data file.
According to an embodiment of the present invention, there is also provided a method embodiment of a data processing method, and fig. 5 is a data processing method according to an embodiment of the present invention, as shown in fig. 5, the method includes the following steps:
step S502, a first data file having a first format is acquired.
Wherein the first format is a protobuf format.
Step S504, a first data file with a first format is compiled to obtain binary data.
Step S506, the binary data is sent to a data acquisition server.
The data acquisition server decompiles the binary data to obtain a first data file, converts the first data file into an industrial protocol, inquires connection information corresponding to the equipment from an equipment configuration library, sends the industrial protocol to the equipment according to the connection information, receives protocol data returned by the equipment, converts the protocol data into a second data file with the first format, and compiles the second data file to obtain a compiling result.
Optionally, the data acquisition server is an MQTT data acquisition server
Step S508, receiving the compiling result sent by the data acquisition server.
Step S510, performing decompiling on the compilation result to obtain the second data file.
Step S512, executing the operation indicated by the second data file.
Through the steps, the data of the corresponding equipment is collected and configured, and the data is transmitted to other upper-layer application software such as a management system, a front end and cloud service in a data standard with high transmission efficiency, small data quantity, safety and cross-language, so that high-efficiency and low-bandwidth transmission is realized.
Example 3
According to an embodiment of the present invention, an embodiment of a data processing system is provided, and fig. 6 is a data processing system according to an embodiment of the present invention, as shown in fig. 6, the system including:
a data collection server 60, wherein the data collection server 60 comprises:
a speech configurator 600 for receiving input speech information indicating at least one of: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment; inquiring a corresponding database according to the voice information to obtain an inquiry result; and executing the operation indicated by the voice information according to the query result.
Optionally, in a case that the voice information is used for indicating a configuration target protocol and a device to be connected, the voice information includes at least one of: the target protocol, the IP address, the port number, the device to be connected, and the start connection indication.
Optionally, the voice configurator is configured to receive voice information including the target protocol; inquiring the target protocol from a protocol library; outputting voice information for indicating a feedback IP address; receiving voice information containing the IP address; checking the format of the IP address; if the format is correct, outputting voice information used for indicating a feedback port number; receiving voice information containing the port number; checking whether the port number is legal; under the condition that the port number is legal, outputting voice information for indicating and feeding back equipment to be connected; receiving voice information containing equipment to be connected; inquiring whether the equipment configuration library contains equipment to be connected; if not, storing the configuration information; when voice information including a connection start instruction is received, the data distributor reads connection information of a device to be connected and then connects the device to be connected.
Optionally, in a case that the voice information is used for indicating a configuration target data point, the voice information includes at least one of: the target data point, the device name, the data type, and the device address.
Optionally, the voice configurator is configured to receive voice information including the device name; outputting voice information indicating a feedback data point in case of inquiring the device name from a device configuration library; receiving voice information containing the target data point; querying from a data point configuration library whether the target data point is included; outputting voice information indicating a feedback data type in a case where the data point configuration library contains the target data point; receiving voice information containing the data type; judging whether the data type is legal or not according to a type support library; under the condition that the data type is legal, outputting voice information for indicating the address of the feedback equipment; receiving voice information containing the equipment address; and inquiring an address support library according to the equipment address, and configuring the target data point.
Optionally, in a case that the voice information is used to indicate a connection target device, the voice information includes at least one of: the target device.
Optionally, in a case that the voice information is used to indicate a connection target device, the voice information includes at least one of: the target device.
The voice configurator is used for receiving voice information containing the target equipment; inquiring whether the device configuration library contains the connection information of the target device; and under the condition that the equipment configuration library contains the connection information of the target equipment, reading the connection information of the target equipment through a data distributor, and then establishing connection between a data acquisition server and the target equipment.
Optionally, as also shown in fig. 6, the system further comprises:
an upper layer application system 62 for obtaining a first data file having a first format; compiling a first data file with a first format to obtain binary data; sending the binary data to the data acquisition server;
the data acquisition server 60 is configured to decompile the binary data to obtain the first data file, convert the first data file into an industrial protocol, query connection information corresponding to the device from a device configuration library, send the industrial protocol to the device according to the connection information, receive protocol data returned by the device, convert the protocol data into a second data file having the first format, and compile the second data file to obtain a compilation result;
the upper application system 62 is further configured to receive the compiling result sent by the data acquisition server; performing decompiling on the compiling result to obtain the second data file; and executing the operation indicated by the second data file.
Optionally, the data collection server further comprises at least one of: data converter, data distributor, protocol converter.
Optionally, the data acquisition server is an MQTT data acquisition server.
Optionally, the first format is a protobuf format.
Next, as shown in fig. 7, the data acquisition process of this embodiment is described in detail based on the data processing system:
the first step is as follows: the user configures the protocol and the address of the device to be connected, and the related parameters through the smart voice configurator, and the specific steps are as shown in fig. 2.
The second step is that: the user configures the data points and related parameters of the device to be collected through the smart voice configurator, and the specific steps are shown in fig. 3 (a).
The third step: a user enables a data acquisition server to be connected to the equipment according to the configuration parameters through the Xiaoming intelligent voice configurator, the data acquisition server starts a data point reading thread, data point data configured by the equipment is continuously read to a memory, and the data point data is read once in 500 milliseconds, and the specific steps are shown in fig. 3 (b).
The fourth step: the upper application system is connected to the MQTT data acquisition service (equivalent to the MQTT server) through the MQTT client, and the system of the embodiment uses low power consumption and low bandwidth, and can provide reliable network service MQTT in an unstable network environment.
The upper application system may include, but is not limited to, an enterprise management system, PC host computer software, cloud services, and a mobile device.
The fifth step: the proto suffix (as shown in fig. 8) is included in the data file, which includes a protocol type, a device, and one or more data points, and can select whether to read memory data or device data.
And a sixth step: and the proto file in the fifth step is compiled into binary data by the upper application system by using a protobuf encoder, and then the binary data is sent to the MQTT data acquisition service through the network transmission layer. The transmission in the efficient binary mode has low bandwidth, high efficiency, 10 times faster than that of xml and high safety.
The seventh step: the MQTT data acquisition service receives the binary data of the client and reversely compiles the binary data into the protobuf data by using a protobuf decoder.
Eighth step: the data distribution and equipment connector (equivalent to the data distributor) of the MQTT data acquisition service calls a corresponding protocol converter to convert the data into a bottom-layer industrial protocol according to the used protocol information by analyzing protobuf.
The protocol converter of this embodiment may include protocol converters of different manufacturers, such as a Modbus protocol converter, a mitsubishi Melsec protocol converter, an ohrons FINS protocol converter, and other common protocol converters.
The ninth step: and the data distribution and equipment connector of the MQTT data acquisition service inquires an equipment configuration library through equipment specified by protobuf, inquires the corresponding connection of the equipment, and sends the industrial protocol converted in the eighth step to the corresponding equipment in the equipment layer through the equipment interface layer.
The device interface layer includes but is not limited to a network port and a serial port; the device layer may contain devices of different manufacturers, such as Modbus devices, Mitsubishi PLC controllers, Ohlong PLC controllers, and other scalable devices.
It should be added that data interaction between the network port and the device layer can be performed through switches (e.g. switch 1, switch 2, switch 3).
The tenth step: the industrial field device replies protocol data to a data distribution and device connector of the MQTT data acquisition service, and the data distribution and device connector converts the replied data into protobuf data through a protobuf standard data converter.
The eleventh step: the MQTT data acquisition service compiles protobuf data into binary data through a protobuf encoder and sends the binary data to an upper application system.
The twelfth step: and the upper application system inversely compiles the binary data into protobuf format data through a protobuf decoder for subsequent operation.
The data type support library, the data point configuration library, the address support library and the protocol support library in fig. 7 are used for realizing the configuration operation of the smart voice configurator.
The data processing system of the embodiment can realize common industrial protocol intelligent voice selection configuration, collect and configure data of corresponding equipment, and transmit the data to upper application software such as other management systems, front ends, cloud services and the like by a data standard which is high in transmission efficiency, small in data quantity, safe and cross-language. The standard data format between upper application software and an acquisition server can be unified, the coupling between an upper application system or software and industrial control equipment is reduced, various common types of PLC control equipment and common general Modbus protocol equipment are compatible, and intelligent voice adaptation industrial protocols can be realized; various common industrial protocols are integrated, and the controllers with various models of different equipment manufacturers are compatible; data acquisition is carried out on various industrial equipment at the bottom layer, and reliable network service can be provided under the environment with low power consumption and unstable network; providing a secure, cross-language standardized data format for upper-level application software; high efficiency, low bandwidth transmission.
There is also provided, according to an embodiment of the present invention, a storage medium including a stored program, wherein the program executes the data processing method described above.
The embodiment of the invention also provides a processor, which is used for running the program, wherein the program executes the data processing method when running.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (24)

1. A data processing method, comprising:
receiving input voice information indicating at least one of: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment;
inquiring a corresponding database according to the voice information to obtain an inquiry result;
according to the query result, executing the operation indicated by the voice information, wherein under the condition that the voice information is used for indicating configuration of a target protocol and equipment to be connected, the input voice information is received, a corresponding database is queried according to the voice information to obtain a query result, and according to the query result, executing the operation indicated by the voice information comprises: receiving voice information containing the target protocol; inquiring the target protocol from a protocol library; outputting voice information for indicating a feedback IP address; receiving voice information containing the IP address; checking the format of the IP address; if the format is correct, outputting voice information used for indicating a feedback port number; receiving voice information containing the port number; checking whether the port number is legal; under the condition that the port number is legal, outputting voice information for indicating and feeding back equipment to be connected; receiving voice information containing equipment to be connected; inquiring whether the equipment configuration library contains equipment to be connected; if not, storing the configuration information; under the condition of receiving voice information containing a connection starting instruction, reading connection information of equipment to be connected through a data distributor, and then connecting the equipment to be connected; and the number of the first and second groups,
under the condition that the voice information is used for indicating the configuration of the target data point, the receiving of the input voice information, the query of the corresponding database according to the voice information to obtain a query result, and the execution of the operation indicated by the voice information according to the query result comprises the following steps: receiving voice information containing the equipment name; outputting voice information indicating a feedback data point in case of inquiring the device name from a device configuration library; receiving voice information containing the target data point; querying from a data point configuration library whether the target data point is included; outputting voice information indicating a feedback data type in a case where the data point configuration library contains the target data point; receiving voice information containing the data type; judging whether the data type is legal or not according to a type support library; under the condition that the data type is legal, outputting voice information for indicating the address of the feedback equipment; receiving voice information containing the equipment address; and inquiring an address support library according to the equipment address, and configuring the target data point.
2. The method of claim 1, wherein if the voice message is used to indicate a configuration target protocol and a device to be connected, the voice message comprises at least one of: the target protocol, the IP address, the port number, the device to be connected, and the start connection indication.
3. The method of claim 1, wherein in the case that the voice information is used to indicate a configuration target data point, the voice information comprises at least one of: the target data point, the device name, the data type, and the device address.
4. The method of claim 1, wherein in the case that the voice information is used for indicating a connection target device, the voice information comprises at least one of: the target device.
5. The method of claim 4, wherein the receiving the input voice information, querying a corresponding database according to the voice information to obtain a query result, and performing the operation indicated by the voice information according to the query result comprises:
receiving voice information containing the target equipment;
inquiring whether the device configuration library contains the connection information of the target device;
and under the condition that the equipment configuration library contains the connection information of the target equipment, reading the connection information of the target equipment through a data distributor, and then establishing connection between a data acquisition server and the target equipment.
6. The method according to claim 5, wherein when the data acquisition server is successfully connected to the target device, the data acquisition server starts a data point reading thread to read data point data configured by the target device to a memory.
7. The method of claim 5 or 6, wherein the data acquisition server is a Message Queue Telemetry Transport (MQTT) data acquisition server.
8. A data processing method, comprising:
receiving binary data sent by an upper application system, wherein the binary data is obtained by compiling a first data file with a first format by the upper application system, and the first data file comprises a protocol type, equipment, at least one data point and a reading object;
performing decompiling on the binary data to obtain the first data file;
converting the first data file into an industrial protocol;
the data acquisition server inquires the connection information corresponding to the equipment from an equipment configuration library, wherein the data acquisition server is further used for determining the equipment according to the voice information, the data acquisition server comprises a voice configurator, and the data acquisition server determines the equipment according to the voice information and comprises: receiving voice information containing the target protocol; inquiring the target protocol from a protocol library; outputting voice information for indicating a feedback IP address; receiving voice information containing the IP address; checking the format of the IP address; if the format is correct, outputting voice information used for indicating a feedback port number; receiving voice information containing the port number; checking whether the port number is legal; under the condition that the port number is legal, outputting voice information for indicating and feeding back equipment to be connected; receiving voice information containing equipment to be connected; inquiring whether the equipment configuration library contains equipment to be connected; if not, storing the configuration information; under the condition of receiving voice information containing a connection starting instruction, reading the connection information of the equipment to be connected through a data distributor, and then connecting the equipment to be connected;
sending the industrial protocol to the equipment according to the connection information;
receiving protocol data returned by the equipment;
converting the protocol data into a second data file having the first format;
compiling the second data file to obtain a compiling result;
and sending the compiling result to the upper application system, performing decompiling on the compiling result by the upper application system to obtain the second data file, and executing the operation indicated by the second data file.
9. The method of claim 8, wherein converting the first data file to an industrial protocol comprises:
analyzing the first data file;
and calling a protocol converter corresponding to the protocol type according to the protocol type, and converting the first data file into the industrial protocol.
10. The method according to claim 8 or 9, wherein the first format is a protobuf format.
11. A data processing method, comprising:
acquiring a first data file with a first format;
compiling a first data file with a first format to obtain binary data;
sending the binary data to a data acquisition server, wherein the data acquisition server decompiles the binary data to obtain a first data file, converts the first data file into an industrial protocol, queries connection information corresponding to the equipment from an equipment configuration library, sends the industrial protocol to the equipment according to the connection information, receives protocol data returned by the equipment, converts the protocol data into a second data file with the first format, compiles the second data file to obtain a compilation result, the data acquisition server is further used for determining the equipment according to voice information, and the data acquisition server determines the equipment according to the voice information, wherein the data acquisition server comprises: receiving voice information containing the equipment name; outputting voice information indicating a feedback data point in case of inquiring the device name from a device configuration library; receiving voice information containing the target data point; querying from a data point configuration library whether the target data point is included; outputting voice information indicating a feedback data type in a case where the data point configuration library contains the target data point; receiving voice information containing the data type; judging whether the data type is legal or not according to a type support library; under the condition that the data type is legal, outputting voice information for indicating the address of the feedback equipment; receiving voice information containing the equipment address;
receiving the compiling result sent by the data acquisition server;
performing decompiling on the compiling result to obtain the second data file;
and executing the operation indicated by the second data file.
12. The method of claim 11, wherein the data acquisition server is an MQTT data acquisition server.
13. The method according to claim 11 or 12, wherein the first format is a protobuf format.
14. A data processing system comprising a data acquisition server, wherein the data acquisition server comprises:
a voice configurator for receiving input voice information indicating at least one of: configuring a target protocol and equipment to be connected, configuring a target data point and connecting target equipment; inquiring a corresponding database according to the voice information to obtain an inquiry result; according to the query result, executing the operation indicated by the voice information, wherein the voice configurator is used for receiving the voice information containing the target protocol under the condition that the voice information is used for indicating the configuration of the target protocol and the equipment to be connected; inquiring the target protocol from a protocol library; outputting voice information for indicating a feedback IP address; receiving voice information containing the IP address; checking the format of the IP address; if the format is correct, outputting voice information used for indicating a feedback port number; receiving voice information containing the port number; checking whether the port number is legal; under the condition that the port number is legal, outputting voice information for indicating and feeding back equipment to be connected; receiving voice information containing equipment to be connected; inquiring whether the equipment configuration library contains equipment to be connected; if not, storing the configuration information; under the condition of receiving voice information containing a connection starting instruction, reading connection information of equipment to be connected through a data distributor, and then connecting the equipment to be connected; and the number of the first and second groups,
the voice configurator is used for receiving the voice information containing the equipment name under the condition that the voice information is used for indicating the configuration target data point; outputting voice information indicating a feedback data point in case of inquiring the device name from a device configuration library; receiving voice information containing the target data point; querying from a data point configuration library whether the target data point is included; outputting voice information indicating a feedback data type in a case where the data point configuration library contains the target data point; receiving voice information containing the data type; judging whether the data type is legal or not according to a type support library; under the condition that the data type is legal, outputting voice information for indicating the address of the feedback equipment; receiving voice information containing the equipment address; and inquiring an address support library according to the equipment address, and configuring the target data point.
15. The system according to claim 14, wherein in case that the voice information is used for indicating a configuration target protocol and a device to be connected, the voice information comprises at least one of: the target protocol, the IP address, the port number, the device to be connected, and the start connection indication.
16. The system of claim 14, wherein in the case that the voice information is used to indicate a configuration target data point, the voice information comprises at least one of: the target data point, the device name, the data type, and the device address.
17. The system according to claim 14, wherein in the case where the voice information is used to indicate a connection target device, the voice information includes at least one of: the target device.
18. The system of claim 17, wherein the voice configurator is configured to receive voice information comprising the target device; inquiring whether the device configuration library contains the connection information of the target device; and under the condition that the equipment configuration library contains the connection information of the target equipment, reading the connection information of the target equipment through a data distributor, and then establishing connection between a data acquisition server and the target equipment.
19. The system of claim 14, further comprising:
the upper application system is used for acquiring a first data file with a first format; compiling a first data file with a first format to obtain binary data; sending the binary data to the data acquisition server;
the data acquisition server is used for decompiling the binary data to obtain the first data file, converting the first data file into an industrial protocol, inquiring connection information corresponding to the equipment from an equipment configuration library, sending the industrial protocol to the equipment according to the connection information, receiving protocol data returned by the equipment, converting the protocol data into a second data file with the first format, and compiling the second data file to obtain a compiling result;
the upper application system is also used for receiving the compiling result sent by the data acquisition server; performing decompiling on the compiling result to obtain the second data file; and executing the operation indicated by the second data file.
20. The system of claim 14, wherein the data collection server further comprises at least one of: data converter, data distributor, protocol converter.
21. The system according to any one of claims 14 to 20, wherein the data acquisition server is an MQTT data acquisition server.
22. The system according to any of claims 14 to 20, wherein said first format is a protobuf format.
23. A storage medium characterized by comprising a stored program, wherein the program executes the data processing method of any one of claims 1 to 13.
24. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the data processing method according to any one of claims 1 to 13 when running.
CN201811020241.7A 2018-09-03 2018-09-03 Data processing method and system, storage medium and processor Active CN109241020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811020241.7A CN109241020B (en) 2018-09-03 2018-09-03 Data processing method and system, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811020241.7A CN109241020B (en) 2018-09-03 2018-09-03 Data processing method and system, storage medium and processor

Publications (2)

Publication Number Publication Date
CN109241020A CN109241020A (en) 2019-01-18
CN109241020B true CN109241020B (en) 2022-08-02

Family

ID=65060267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811020241.7A Active CN109241020B (en) 2018-09-03 2018-09-03 Data processing method and system, storage medium and processor

Country Status (1)

Country Link
CN (1) CN109241020B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337818A (en) * 2014-08-13 2016-02-17 中兴通讯股份有限公司 Home networking method based on power network, system and equipment
CN105783191A (en) * 2016-04-01 2016-07-20 北京云知声信息技术有限公司 Voice control method, device and system of air conditioner
CN107591155A (en) * 2017-08-29 2018-01-16 珠海市魅族科技有限公司 Audio recognition method and device, terminal and computer-readable recording medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8667078B2 (en) * 2011-05-31 2014-03-04 General Electric Company Systems and methods of extracting, storing, and serving device definition file information
CN105430646B (en) * 2015-11-05 2019-01-18 珠海格力电器股份有限公司 Method and apparatus, the system of ZigBee equipment network of ZigBee equipment network realization
PT3941106T (en) * 2016-03-18 2023-08-07 Plume Design Inc Cloud-based control of a wi-fi network
CN106357525A (en) * 2016-08-29 2017-01-25 珠海格力电器股份有限公司 Intelligent gateway control method and device and intelligent gateway
CN106842977A (en) * 2017-04-11 2017-06-13 北京华远达智能家科技有限公司 A kind of intelligent home control system
CN108109621A (en) * 2017-11-28 2018-06-01 珠海格力电器股份有限公司 Control method, the device and system of home appliance

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337818A (en) * 2014-08-13 2016-02-17 中兴通讯股份有限公司 Home networking method based on power network, system and equipment
CN105783191A (en) * 2016-04-01 2016-07-20 北京云知声信息技术有限公司 Voice control method, device and system of air conditioner
CN107591155A (en) * 2017-08-29 2018-01-16 珠海市魅族科技有限公司 Audio recognition method and device, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN109241020A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN108667807B (en) Protocol self-adaption method and system based on monitoring cloud platform and gateway
CN108769165B (en) Data processing method in Internet of things and Internet of things access system
EP2943859B1 (en) System, method, and computer-readable medium for managing edge devices
CN101335722B (en) Method for implementing same user interface and operation convention on different terminals
CN108259209A (en) Method for configuring network equipment and device
CN110247811A (en) A kind of alarm method and relevant apparatus of internet of things equipment
KR102016905B1 (en) Electric power software development platform
CN1745369B (en) Information processing device and information processing method
CN111556158B (en) Access method, access device, access equipment and storage medium of Internet of things platform
CN105246096A (en) Quick access method for low-power consumption Internet of things equipment
CN113039498A (en) Method for commissioning field devices in an industrial system network
CN106603593A (en) HTTP calling method and device based on adaption
CN114374602A (en) Master control equipment configuration method and device, cloud server and storage medium
CN114095535B (en) Method for automatically mapping time sequence variable of physical equipment into digital model
CN111130828B (en) Intelligent network distribution method and device and terminal equipment
CN105163171A (en) File transmission method between set top box and mobile terminal and system
CN104869161A (en) General internet of things (IOT) data processing platform system
CN109241020B (en) Data processing method and system, storage medium and processor
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN109995782B (en) Information processing method, device, system and computer storage medium
CN111147530B (en) System, switching method, intelligent terminal and storage medium of multi-voice platform
CN109302336B (en) Mail generation method and device, computer equipment and storage medium
CN113064627B (en) Service access data processing method, platform, terminal, equipment and system
CN114019821A (en) Smart home control method, device and system
CN115113878A (en) System, method and device for processing equipment data, electronic equipment and readable medium

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