CN115118795A - Data processing method, expansion device, control system, and storage medium - Google Patents

Data processing method, expansion device, control system, and storage medium Download PDF

Info

Publication number
CN115118795A
CN115118795A CN202210897093.7A CN202210897093A CN115118795A CN 115118795 A CN115118795 A CN 115118795A CN 202210897093 A CN202210897093 A CN 202210897093A CN 115118795 A CN115118795 A CN 115118795A
Authority
CN
China
Prior art keywords
expansion
equipment
controller
file
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210897093.7A
Other languages
Chinese (zh)
Other versions
CN115118795B (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
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202210897093.7A priority Critical patent/CN115118795B/en
Publication of CN115118795A publication Critical patent/CN115118795A/en
Application granted granted Critical
Publication of CN115118795B publication Critical patent/CN115118795B/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/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The disclosure provides a data processing method, an expansion device, a control system and a storage medium, and relates to the field of control. The data processing method comprises the following steps: a communication protocol analysis module in the expansion equipment receives service data sent by terminal equipment connected with the expansion equipment; the communication protocol analysis module processes the service data to obtain equipment protocol point location data; the communication protocol analysis module sends the equipment protocol point location data to an expansion equipment configuration logic module in the expansion equipment; and the extended equipment configuration logic module processes the equipment protocol point location data according to preset configuration logic.

Description

Data processing method, expansion device, control system, and storage medium
Technical Field
The present disclosure relates to the field of control, and in particular, to a data processing method, an expansion device, a control system, and a storage medium.
Background
In an automation control system, because a variety of terminal devices need to be accessed, a structural mode of a single controller plus a plurality of extension devices is usually adopted to monitor a variety of terminal devices. Currently, each expansion device connected to a controller directly passes through data provided by a terminal device to the controller, and the controller processes the received data.
Disclosure of Invention
The inventor has noted that, in the related art, since the expansion device directly passes through the data provided by the terminal device to the controller and the received data is processed by the controller, in the case where a large number of terminal devices are included in the control system, the calculation load of the controller is greatly increased, thereby affecting the real-time performance of the entire system.
Accordingly, the present disclosure provides a data processing scheme in which an extension device can independently process data provided by a terminal device, thereby effectively reducing the computational load of a controller.
According to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, performed by an extension device, including: a communication protocol analysis module in the expansion equipment receives service data sent by terminal equipment connected with the expansion equipment; the communication protocol analysis module processes the service data to obtain equipment protocol point location data; the communication protocol analysis module sends the equipment protocol point location data to an expansion equipment configuration logic module in the expansion equipment; and the extended device configuration logic module processes the device protocol point location data according to preset configuration logic.
In some embodiments, the communication protocol parsing module sends the device protocol point location data to an expansion device main control module in the expansion device; and the expansion equipment main control module sends the equipment protocol point location data to a controller so that the controller processes the equipment protocol point location data according to preset configuration logic.
In some embodiments, the sending, by the extended device master module, the device protocol point location data to the controller includes: and the expansion equipment main control module sends the equipment protocol point location data to the controller in a timing transmission mode.
In some embodiments, the sending, by the extended device master module, the device protocol point location data to the controller further includes: and the expansion equipment main control module sends the equipment protocol point location data to the controller under the condition that the equipment protocol point location data changes.
In some embodiments, the receiving, by a communication protocol parsing module in the extension device, service data sent by a terminal device connected to the extension device includes: a communication protocol analysis module in the expansion equipment reads the content of a preset expansion equipment configuration file; and the communication protocol analysis module receives service data sent by the terminal equipment connected with the expansion equipment according to the content of the configuration file of the expansion equipment.
In some embodiments, the extended device profile includes at least one of a type of the extended module, an address of the extended module, configuration information of a communication interface of the extended module, a communication protocol type of the extended module and the terminal device, a communication address of the terminal device, and protocol point location information of the terminal device.
In some embodiments, after being started, an expansion device main control module in the expansion device sends a query request to the controller, where the query request includes attribute information of the expansion device, so that the controller queries an expansion device configuration file, an expansion device configuration logic file, and a communication protocol analysis file corresponding to the attribute information; after receiving a query response sent by the controller, the expansion device main control module extracts the expansion device configuration file, the expansion device configuration logic file and the communication protocol analysis file from the query response; the expansion equipment main control module stores the expansion equipment configuration file, starts the expansion equipment configuration logic module by using the expansion equipment configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, the extended device main control module extracts, from the query response, first verification information of the extended device configuration file, second verification information of the extended device configuration logic file, and third verification information of the communication protocol parsing file; the step of starting the extended device configuration logic module and the communication protocol analysis module by the extended device main control module comprises the following steps: the expansion equipment main control module performs first verification on the expansion equipment configuration file by using the first verification information, performs second verification on the expansion equipment configuration logic file by using the second verification information, and performs third verification on the communication protocol analysis file by using the third verification information; and under the condition that the first check, the second check and the third check are successful, starting the extended device configuration logic module and the communication protocol analysis module by the extended device main control module.
In some embodiments, in a case that at least one of the first check, the second check, and the third check is unsuccessful, the expansion device main control module sends check failure information to the controller, so that the controller resends the query response.
In some embodiments, when the first check, the second check, and the third check are successful, the starting, by the expansion device main control module, the expansion device configuration logic module and the communication protocol parsing module includes: under the condition that the first check, the second check and the third check are successful, the extended device main control module extracts attribute information of the extended device from the extended device configuration file; the expansion equipment main control module judges whether the attribute information is correct or not; and under the condition that the attribute information is correct, the extended equipment main control module starts the extended equipment configuration logic module and the communication protocol analysis module.
In some embodiments, the attribute information of the extension apparatus includes at least one of an address of the extension apparatus and a type of the extension apparatus.
In some embodiments, in a case that the attribute information is incorrect, the extended device main control module sends verification failure information to the controller, so that the controller resends the query response.
According to a second aspect of the embodiments of the present disclosure, there is provided an expansion apparatus including: the communication protocol analysis module is configured to receive service data sent by terminal equipment connected with the expansion equipment, process the service data to obtain equipment protocol point location data, and send the equipment protocol point location data to an expansion equipment configuration logic module in the expansion equipment; the extended device configuration logic module is configured to process the device protocol point location data according to a preset configuration logic.
According to a third aspect of the embodiments of the present disclosure, there is provided an expansion apparatus including: a memory configured to store instructions; a processor coupled to the memory, the processor configured to perform a method implementing any of the embodiments described above based on instructions stored by the memory.
According to a fourth aspect of embodiments of the present disclosure, there is provided a control system including: a plurality of expansion devices, wherein each expansion device of the plurality of expansion devices is the expansion device of any of the above embodiments; the system comprises a plurality of terminal devices, wherein each terminal device in the plurality of terminal devices is connected with a corresponding expansion device and is configured to send service data to the corresponding expansion device.
In some embodiments, the system further comprises: the controller comprises a controller main control module and a controller configuration logic module, wherein the controller main control module is configured to send device protocol point location data sent by the ith expansion device to the controller configuration logic module, the controller configuration logic module is configured to process the device protocol point location data according to preset configuration logic, i is greater than or equal to 1 and less than or equal to N, and N is the total number of the expansion devices connected with the controller.
In some embodiments, the controller main control module is configured to send the device protocol point location data sent by the ith expansion device to the monitoring server.
In some embodiments, the controller main control module is configured to, after receiving an inquiry request sent by the ith extension device, inquire an extension device configuration file, an extension device configuration logic file, and a communication protocol parsing file corresponding to attribute information of the ith extension device included in the inquiry request, and send an inquiry response to the ith extension device, where the inquiry response includes the extension device configuration file, the extension device configuration logic file, and the communication protocol parsing file.
In some embodiments, the query response further includes first verification information of the extended device configuration file, second verification information of the extended device configuration logic file, and third verification information of the communication protocol parsing file.
In some embodiments, the controller main control module is configured to resend the query response according to the check failure information sent by the ith expansion device.
In some embodiments, the controller master control module is configured to obtain a controller configuration logic file, and an extended device configuration file and an extended device configuration logic file corresponding to each extended device connected to the controller from a configuration server; and the controller main control module starts the controller configuration logic module according to the content of the expansion equipment configuration file corresponding to each expansion equipment connected with the controller and the controller configuration logic file.
In some embodiments, the extension device configuration file of the ith extension device includes at least one of a type of the ith extension device, an address of the ith extension device, communication interface configuration information of the ith extension device, a communication protocol type of the ith extension device and a corresponding terminal device, a communication address of the corresponding terminal device, and protocol point location information of the corresponding terminal device.
In some embodiments, in a case where the ith extension device is connected to a terminal device, the extension device configuration logic file of the ith extension device includes a configuration of the terminal device; and under the condition that the ith expansion device is connected with a plurality of terminal devices, the expansion device configuration logic file of the ith expansion device comprises the configuration among the plurality of terminal devices connected with the ith expansion device.
In some embodiments, the controller configuration logic file includes a configuration between a plurality of terminal devices connected to the plurality of expansion devices.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the instructions, when executed by a processor, implement the method according to any one of the embodiments.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a data processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram of a module configuration method according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an expansion device according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of an expansion device according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an expansion device according to yet another embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a control system according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a controller according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without inventive step, are intended to be within the scope of the present disclosure.
The relative arrangement of parts and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure. In some embodiments, the following data processing method is performed by an expansion device.
In step 101, a communication protocol parsing module in the extension device receives service data sent by a terminal device connected to the extension device.
In some embodiments, the communication protocol parsing module reads the content of a preset expansion device configuration file, and receives service data sent by a terminal device connected to the expansion device according to the content of the expansion device configuration file.
For example, the extended device configuration file includes at least one of a type of the extended module, an address of the extended module, communication interface configuration information of the extended module, a communication protocol type of the extended module and the terminal device, a communication address of the terminal device, and protocol point location information of the terminal device.
In step 102, the communication protocol parsing module processes the service data to obtain the device protocol point location data.
In step 103, the communication protocol parsing module sends the device protocol point location data to an expansion device configuration logic module in the expansion device.
In step 104, the extended device configuration logic module processes the device protocol point location data according to a preset configuration logic.
In the data processing method provided in the foregoing embodiment of the present disclosure, the communication protocol analysis module and the extended device configuration logic module are arranged in the extended device, so that the communication protocol analysis module processes the service data sent by the terminal device to obtain the device protocol point location data, and the extended device configuration logic module processes the device protocol point location data according to the preset configuration logic. Therefore, the expansion equipment can process the service data sent by the terminal equipment, thereby effectively reducing the load of the controller.
In some embodiments, the communication protocol parsing module sends the device protocol point location data to an expansion device main control module in the expansion device, and the expansion device main control module sends the device protocol point location data to the controller, so that the controller processes the device protocol point location data according to a preset configuration logic.
It should be noted that each expansion device can only process data within a preset range, and for data outside the preset range, the data needs to be submitted to the controller for processing. For example, an expansion device can process light related data for a given floor, but cannot process entrance related data for the entire building. The expansion device therefore needs to send access-related data to the controller.
In some embodiments, the extended device main control module sends the device protocol point location data to the controller in a timing transmission manner, so that the controller receives the device protocol point location data at regular time.
In addition, the expansion device main control module also sends the device protocol point location data to the controller under the condition that the device protocol point location data changes, so that the controller can process the changed device protocol point location data in time.
For example, if the difference between the value of a certain device protocol point location data at the current time and the value at the previous time is greater than a predetermined threshold, it is determined that the device protocol point location data is changed in transmission.
Fig. 2 is a schematic flow chart of a module configuration method according to another embodiment of the present disclosure. In some embodiments, the following data processing method is performed by an expansion device.
In step 201, after an expansion device main control module in an expansion device is started, an inquiry request is sent to a controller.
The query request includes attribute information of the expansion device, so that the controller queries an expansion device configuration file, an expansion device configuration logic file and a communication protocol analysis file corresponding to the attribute information.
In step 202, after receiving the query response sent by the controller, the expansion device main control module extracts an expansion device configuration file, an expansion device configuration logic file, and a communication protocol analysis file from the query response.
For example, the extended device configuration file includes at least one of a type of the extended module, an address of the extended module, communication interface configuration information of the extended module, a communication protocol type of the extended module and the terminal device, a communication address of the terminal device, and protocol point location information of the terminal device.
For example, in the case where the expansion device is connected to a terminal device, the expansion device configuration logic file of the expansion device includes the configuration of the terminal device. Under the condition that the expansion equipment is connected with a plurality of terminal equipment, the expansion equipment configuration logic file of the expansion equipment comprises the configuration among the plurality of terminal equipment connected with the expansion equipment.
In step 203, the expansion device main control module stores the expansion device configuration file, starts the expansion device configuration logic module by using the expansion device configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, the expansion device main control module extracts, from the query response, first verification information of the expansion device configuration file, second verification information of the expansion device configuration logic file, and third verification information of the communication protocol parsing file, in addition to the expansion device configuration file, the expansion device configuration logic file, and the communication protocol parsing file.
For example, the first check information may be check code, size of the extended device profile, and the like. The second check information may be check code, size of the extended device configuration logic file, and the like. The third check information may be check code, size of the communication protocol analysis file, and the like.
The expansion equipment main control module performs first verification on the expansion equipment configuration file by using the first verification information, performs second verification on the expansion equipment configuration logic file by using the second verification information, and performs third verification on the communication protocol analysis file by using the third verification information.
If the first check, the second check and the third check are successful, the expansion equipment main control module starts the expansion equipment configuration logic module by using the expansion equipment configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, if at least one of the first check, the second check and the third check is unsuccessful, the expansion device main control module sends check failure information to the controller, so that the controller resends the query response.
In some embodiments, if the first check, the second check, and the third check are all successful, the extended device main control module extracts the attribute information of the extended device from the extended device configuration file.
For example, the attribute information of the extension apparatus includes at least one of an address of the extension apparatus and a type of the extension apparatus.
And the expansion equipment main control module judges whether the attribute information is correct or not. And under the condition that the attribute information is correct, the expansion equipment main control module starts the expansion equipment configuration logic module by using the expansion equipment configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, in the case that the attribute information is incorrect, the expansion device main control module sends the verification failure information to the controller, so that the controller resends the query response.
Fig. 3 is a schematic structural diagram of an expansion device according to an embodiment of the present disclosure. As shown in fig. 3, the expansion device includes a communication protocol parsing module 31 and an expansion device configuration logic module 32.
The communication protocol analysis module 31 is configured to receive service data sent by a terminal device connected to the expansion device, process the service data to obtain device protocol point location data, and send the device protocol point location data to the expansion device configuration logic module 32 in the expansion device.
In some embodiments, the communication protocol parsing module 31 reads the content of the preset expansion device configuration file, and receives service data sent by a terminal device connected to the expansion device according to the content of the expansion device configuration file.
For example, the extended device configuration file includes at least one of a type of the extended module, an address of the extended module, communication interface configuration information of the extended module, a communication protocol type of the extended module and the terminal device, a communication address of the terminal device, and protocol point location information of the terminal device.
The extended device configuration logic module 32 is configured to process the device protocol point location data according to a preset configuration logic.
Fig. 4 is a schematic structural diagram of an expansion device according to another embodiment of the present disclosure. Fig. 4 is different from fig. 3 in that, in the embodiment shown in fig. 4, the expansion device further includes an expansion device main control module 33.
The communication protocol parsing module 31 sends the device protocol point location data to an expansion device main control module 33 in the expansion device, and the expansion device main control module 33 sends the device protocol point location data to the controller, so that the controller processes the device protocol point location data according to a preset configuration logic.
It should be noted that each expansion device can only process data within a preset range, and for data outside the preset range, the data needs to be submitted to the controller for processing.
In some embodiments, the expansion device main control module 33 sends the device protocol point location data to the controller by using a timing transmission manner, so that the controller receives the device protocol point location data at regular time.
In addition, the expansion device main control module 33 also sends the device protocol point location data to the controller when the device protocol point location data changes, so that the controller can process the changed device protocol point location data in time.
In some embodiments, the expansion device master module 33 in the expansion device sends a query request to the controller after starting. The query request includes attribute information of the expansion device, so that the controller queries an expansion device configuration file, an expansion device configuration logic file and a communication protocol analysis file corresponding to the attribute information.
After receiving the query response sent by the controller, the expansion device main control module 33 extracts an expansion device configuration file, an expansion device configuration logic file, and a communication protocol analysis file from the query response.
For example, the extended device configuration file includes at least one of a type of the extended module, an address of the extended module, communication interface configuration information of the extended module, a communication protocol type of the extended module and the terminal device, a communication address of the terminal device, and protocol point location information of the terminal device.
For example, in the case where the expansion device is connected to a terminal device, the expansion device configuration logic file of the expansion device includes the configuration of the terminal device. Under the condition that the expansion equipment is connected with a plurality of terminal equipment, the expansion equipment configuration logic file of the expansion equipment comprises the configuration among the plurality of terminal equipment connected with the expansion equipment.
The expansion device main control module 33 stores the expansion device configuration file, starts the expansion device configuration logic module by using the expansion device configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, the expansion device main control module 33 extracts, from the query response, the first check information of the expansion device configuration file, the second check information of the expansion device configuration logic file, and the third check information of the communication protocol parse file, in addition to the expansion device configuration file, the expansion device configuration logic file, and the communication protocol parse file.
For example, the first check information may be check code, size of the extended device profile, and the like. The second check information may be information such as a check code and a size of the extended device configuration logic file. The third check information may be check code, size of the communication protocol analysis file, and the like.
The expansion device main control module 33 performs first verification on the expansion device configuration file by using the first verification information, performs second verification on the expansion device configuration logic file by using the second verification information, and performs third verification on the communication protocol analysis file by using the third verification information.
If the first check, the second check and the third check are successful, the expansion device main control module 33 starts the expansion device configuration logic module by using the expansion device configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, if at least one of the first check, the second check and the third check is unsuccessful, the expansion device main control module 33 sends the check failure information to the controller, so that the controller resends the query response.
In some embodiments, if the first check, the second check, and the third check are all successful, the extended device main control module 33 extracts the attribute information of the extended device from the extended device configuration file.
For example, the attribute information of the extension apparatus includes at least one of an address of the extension apparatus and a type of the extension apparatus.
The expansion device main control module 33 determines whether the attribute information is correct. Under the condition that the attribute information is correct, the expansion device main control module 33 starts the expansion device configuration logic module by using the expansion device configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, in the case that the attribute information is incorrect, the expansion device main control module 33 sends the check failure information to the controller, so that the controller retransmits the query response.
Fig. 5 is a schematic structural diagram of an expansion device according to still another embodiment of the present disclosure. As shown in fig. 5, the expansion device includes a memory 51 and a processor 52.
The memory 51 is used for storing instructions, the processor 52 is coupled to the memory 51, and the processor 52 is configured to execute the method according to any one of the embodiments in fig. 1 or fig. 2 based on the instructions stored in the memory.
As shown in fig. 5, the expansion device further includes a communication interface 53 for information interaction with other devices. Meanwhile, the expansion device further comprises a bus 54, and the processor 52, the communication interface 53 and the memory 51 are communicated with each other through the bus 54.
The memory 51 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 51 may also be a memory array. The storage 51 may also be partitioned and the blocks may be combined into virtual volumes according to certain rules.
Further, the processor 52 may be a central processing unit CPU, or may be an application specific integrated circuit ASIC, or one or more integrated circuits configured to implement embodiments of the present disclosure.
The present disclosure also relates to a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the instructions, when executed by a processor, implement a method according to any one of the embodiments shown in fig. 1 or fig. 2.
Fig. 6 is a schematic structural diagram of a control system according to an embodiment of the present disclosure. As shown in fig. 6, the control system includes a controller 61, a plurality of expansion devices 62, and a plurality of terminal devices 63. Each expansion device of the plurality of expansion devices 62 is an expansion device according to any one of the embodiments of fig. 3 to 5.
A plurality of expansion devices 62 are connected to the controller 61. Each of the plurality of terminal devices 63 is connected to a corresponding expansion device 62, and configured to transmit service data to the corresponding expansion device.
For example, the expansion device 62 may be connected to one terminal device 63, or may be connected to a plurality of terminal devices 63.
It should be noted that, because each extension device 62 is provided with a communication protocol analysis module and an extension device configuration logic module, the communication protocol analysis module processes the service data sent by the terminal device 63 to obtain device protocol point location data, and the extension device configuration logic module processes the device protocol point location data according to a preset configuration logic. Therefore, the expansion device 62 can process the service data sent by the terminal device without sending the service data to the controller 63 for processing, thereby effectively reducing the load of the controller 63.
Fig. 7 is a schematic structural diagram of a controller according to an embodiment of the present disclosure. As shown in fig. 7, the controller includes a controller main control module 71 and a controller configuration logic module 72.
The controller main control module 71 sends the device protocol point location data sent by the ith expansion device to the controller configuration logic module 72. The controller configuration logic module 72 processes the device protocol point location data according to a preset configuration logic, wherein i is greater than or equal to 1 and less than or equal to N, and N is the total number of the expansion devices connected with the controller.
In some embodiments, the controller main control module 71 sends the device protocol point location data sent by the ith expansion device to the monitoring server 64 (as shown in fig. 6).
In some embodiments, after receiving the query request sent by the ith extension device, the controller main control module 71 queries the extension device configuration file, the extension device configuration logic file, and the communication protocol parsing file corresponding to the attribute information of the ith extension device included in the query request, and sends a query response to the ith extension device, where the query response includes the extension device configuration file, the extension device configuration logic file, and the communication protocol parsing file.
For example, the extension device configuration file of the ith extension device includes at least one of the type of the ith extension device, the address of the ith extension device, communication interface configuration information of the ith extension device, the communication protocol type of the ith extension device and the corresponding terminal device, the communication address of the corresponding terminal device, and protocol point location information of the corresponding terminal device.
For example, in a case where the ith expansion device is connected to a terminal device, the expansion device configuration logic file of the ith expansion device includes a configuration of the terminal device. Under the condition that the ith expansion device is connected with a plurality of terminal devices, the expansion device configuration logic file of the ith expansion device comprises the configuration among the plurality of terminal devices connected with the ith expansion device.
For example, the controller configuration logic file includes configurations between a plurality of terminal devices connected to a plurality of extension devices.
In some embodiments, the query response further includes first verification information of the configuration file of the expansion device, second verification information of the configuration logic file of the expansion device, and third verification information of the protocol parsing file, so that the ith expansion device performs verification by using the first verification information, the second verification information, and the third verification information.
In some embodiments, the controller main control module 71 resends the query response according to the verification failure information sent by the ith expansion device, so that the ith expansion device can receive the expansion device configuration file, the expansion device configuration logic file, and the communication protocol parsing file that pass the verification.
In some embodiments, the controller main control module 71 obtains the controller configuration logic file from the configuration server 65 (as shown in fig. 6), and the extended device configuration file and the extended device configuration logic file corresponding to each extended device 62 connected to the controller 61;
the controller main control module 71 starts the controller configuration logic module according to the content of the expansion device configuration file corresponding to each expansion device connected to the controller and the controller configuration logic file.
According to the method, the communication protocol analysis module and the configuration logic module of the expansion equipment are arranged in the expansion equipment, so that the communication protocol analysis module can process service data sent by the terminal equipment to obtain equipment protocol point location data, and the configuration logic module of the expansion equipment can process the equipment protocol point location data according to preset configuration logic. Therefore, the expansion equipment can process the service data sent by the terminal equipment, thereby effectively reducing the load of the controller. And under the condition that the controller is abnormal, the expansion equipment can still effectively process the service data sent by the terminal equipment.
In some embodiments, the functional units described above can be implemented as general purpose processors, Programmable Logic Controllers (PLCs), Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable Logic devices, discrete Gate or transistor Logic devices, discrete hardware components, or any suitable combination thereof for performing the functions described in this disclosure.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (25)

1. A data processing method, performed by an expansion device, comprising:
a communication protocol analysis module in the expansion equipment receives service data sent by terminal equipment connected with the expansion equipment;
the communication protocol analysis module processes the service data to obtain equipment protocol point location data;
the communication protocol analysis module sends the equipment protocol point location data to an expansion equipment configuration logic module in the expansion equipment;
and the extended device configuration logic module processes the device protocol point location data according to preset configuration logic.
2. The method of claim 1, further comprising:
the communication protocol analysis module sends the equipment protocol point location data to an expansion equipment main control module in the expansion equipment;
and the expansion equipment main control module sends the equipment protocol point location data to a controller so that the controller processes the equipment protocol point location data according to preset configuration logic.
3. The method of claim 2, wherein the extended device master module sending the device protocol point location data to the controller comprises:
and the expansion equipment main control module sends the equipment protocol point location data to the controller in a timing transmission mode.
4. The method of claim 3, the extended device master module sending the device protocol point location data to the controller further comprising:
and the expansion equipment main control module sends the equipment protocol point location data to the controller under the condition that the equipment protocol point location data changes.
5. The method of claim 1, wherein the receiving, by a communication protocol parsing module in the extension device, service data sent by a terminal device connected to the extension device comprises:
a communication protocol analysis module in the expansion equipment reads the content of a preset expansion equipment configuration file;
and the communication protocol analysis module receives service data sent by the terminal equipment connected with the expansion equipment according to the content of the configuration file of the expansion equipment.
6. The method of claim 5, wherein,
the configuration file of the extension device comprises at least one of the type of the extension module, the address of the extension module, the configuration information of the communication interface of the extension module, the communication protocol type of the extension module and the terminal device, the communication address of the terminal device and the protocol point location information of the terminal device.
7. The method of any of claims 1-6, further comprising:
after being started, an expansion equipment main control module in the expansion equipment sends a query request to the controller, wherein the query request comprises attribute information of the expansion equipment, so that the controller can query an expansion equipment configuration file, an expansion equipment configuration logic file and a communication protocol analysis file which correspond to the attribute information;
after receiving a query response sent by the controller, the expansion device main control module extracts the expansion device configuration file, the expansion device configuration logic file and the communication protocol analysis file from the query response;
the expansion equipment main control module stores the expansion equipment configuration file, starts the expansion equipment configuration logic module by using the expansion equipment configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
8. The method of claim 7, further comprising:
the expansion equipment main control module extracts first verification information of the expansion equipment configuration file, second verification information of the expansion equipment configuration logic file and third verification information of the communication protocol analysis file from the query response;
the step of starting the extended device configuration logic module and the communication protocol analysis module by the extended device main control module comprises the following steps:
the expansion equipment main control module performs first verification on the expansion equipment configuration file by using the first verification information, performs second verification on the expansion equipment configuration logic file by using the second verification information, and performs third verification on the communication protocol analysis file by using the third verification information;
and under the condition that the first check, the second check and the third check are successful, starting the extended device configuration logic module and the communication protocol analysis module by the extended device main control module.
9. The method of claim 8, further comprising:
and under the condition that at least one of the first check, the second check and the third check is unsuccessful, the extended device main control module sends check failure information to the controller, so that the controller resends the query response.
10. The method of claim 8, wherein, when the first check, the second check, and the third check are successful, the initiating, by the expansion device main control module, the expansion device configuration logic module and the communication protocol parsing module comprises:
under the condition that the first check, the second check and the third check are successful, the extended device main control module extracts attribute information of the extended device from the extended device configuration file;
the expansion equipment main control module judges whether the attribute information is correct or not;
and under the condition that the attribute information is correct, the expansion equipment main control module starts the expansion equipment configuration logic module and the communication protocol analysis module.
11. The method of claim 10, wherein,
the attribute information of the extension device includes at least one of an address of the extension device and a type of the extension device.
12. The method of claim 10, further comprising:
and under the condition that the attribute information is incorrect, the extended device main control module sends verification failure information to the controller so that the controller can resend the query response.
13. An expansion device comprising:
the communication protocol analysis module is configured to receive service data sent by terminal equipment connected with the expansion equipment, process the service data to obtain equipment protocol point location data, and send the equipment protocol point location data to an expansion equipment configuration logic module in the expansion equipment;
the extended device configuration logic module is configured to process the device protocol point location data according to a preset configuration logic.
14. An expansion device comprising:
a memory configured to store instructions;
a processor coupled to the memory, the processor configured to perform implementing the method of any of claims 1-12 based on instructions stored by the memory.
15. A control system, comprising:
a plurality of expansion devices, wherein each expansion device of the plurality of expansion devices is the expansion device of claim 13 or 14;
the system comprises a plurality of terminal devices, wherein each terminal device in the plurality of terminal devices is connected with a corresponding expansion device and is configured to send service data to the corresponding expansion device.
16. The system of claim 15, further comprising:
the controller comprises a controller main control module and a controller configuration logic module, wherein the controller main control module is configured to send device protocol point location data sent by the ith expansion device to the controller configuration logic module, the controller configuration logic module is configured to process the device protocol point location data according to preset configuration logic, i is greater than or equal to 1 and less than or equal to N, and N is the total number of the expansion devices connected with the controller.
17. The system of claim 16, wherein,
the controller main control module is configured to send the device protocol point location data sent by the ith expansion device to the monitoring server.
18. The system of claim 16, wherein,
the controller main control module is configured to, after receiving an inquiry request sent by the ith expansion device, inquire an expansion device configuration file, an expansion device configuration logic file and a communication protocol analysis file corresponding to attribute information of the ith expansion device included in the inquiry request, and send an inquiry response to the ith expansion device, where the inquiry response includes the expansion device configuration file, the expansion device configuration logic file and the communication protocol analysis file.
19. The system of claim 18, wherein,
the query response further includes first verification information of the configuration file of the extension device, second verification information of the configuration logic file of the extension device, and third verification information of the communication protocol analysis file.
20. The system of claim 19, wherein,
and the controller main control module is configured to resend the query response according to the verification failure information sent by the ith expansion device.
21. The system of claim 16, wherein,
the controller main control module is configured to acquire a controller configuration logic file, an extended device configuration file and an extended device configuration logic file corresponding to each extended device connected with the controller from a configuration server;
and the controller main control module starts the controller configuration logic module according to the content of the expansion equipment configuration file corresponding to each expansion equipment connected with the controller and the controller configuration logic file.
22. The system of claim 21, wherein,
the expansion device configuration file of the ith expansion device comprises at least one of the type of the ith expansion device, the address of the ith expansion device, the communication interface configuration information of the ith expansion device, the communication protocol types of the ith expansion device and the corresponding terminal device, the communication address of the corresponding terminal device and the protocol point location information of the corresponding terminal device.
23. The system of claim 21, wherein,
under the condition that the ith expansion device is connected with a terminal device, the expansion device configuration logic file of the ith expansion device comprises the configuration of the terminal device;
under the condition that the ith expansion device is connected with a plurality of terminal devices, the expansion device configuration logic file of the ith expansion device comprises the configuration among the plurality of terminal devices connected with the ith expansion device.
24. The system of claim 21, wherein,
the controller configuration logic file comprises configurations among a plurality of terminal devices connected with the plurality of extension devices.
25. A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions which, when executed by a processor, implement the method of any one of claims 1-12.
CN202210897093.7A 2022-07-28 2022-07-28 Data processing method, expansion device, control system, and storage medium Active CN115118795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210897093.7A CN115118795B (en) 2022-07-28 2022-07-28 Data processing method, expansion device, control system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210897093.7A CN115118795B (en) 2022-07-28 2022-07-28 Data processing method, expansion device, control system, and storage medium

Publications (2)

Publication Number Publication Date
CN115118795A true CN115118795A (en) 2022-09-27
CN115118795B CN115118795B (en) 2023-10-03

Family

ID=83333817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210897093.7A Active CN115118795B (en) 2022-07-28 2022-07-28 Data processing method, expansion device, control system, and storage medium

Country Status (1)

Country Link
CN (1) CN115118795B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362009A (en) * 2019-07-15 2019-10-22 珠海格力电器股份有限公司 Configuration logic generation method, device and the building system of building system
CN112523307A (en) * 2020-12-14 2021-03-19 昆山市自来水集团有限公司 Secondary water supply system integrating data monitoring, analysis, operation and maintenance management and control
CN113075904A (en) * 2021-03-22 2021-07-06 深圳市英威腾电气股份有限公司 PLC extension system, PLC system communication method and storage medium
CN114488871A (en) * 2021-12-23 2022-05-13 深圳市海浦蒙特科技有限公司 Control method, frequency converter and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362009A (en) * 2019-07-15 2019-10-22 珠海格力电器股份有限公司 Configuration logic generation method, device and the building system of building system
CN112523307A (en) * 2020-12-14 2021-03-19 昆山市自来水集团有限公司 Secondary water supply system integrating data monitoring, analysis, operation and maintenance management and control
CN113075904A (en) * 2021-03-22 2021-07-06 深圳市英威腾电气股份有限公司 PLC extension system, PLC system communication method and storage medium
CN114488871A (en) * 2021-12-23 2022-05-13 深圳市海浦蒙特科技有限公司 Control method, frequency converter and computer readable storage medium

Also Published As

Publication number Publication date
CN115118795B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
US11417331B2 (en) Method and device for controlling terminal, and computer readable storage medium
CN112291387B (en) Method, device and equipment for automatically addressing master and slave machines and storage medium
CN108647240B (en) Method and device for counting access amount, electronic equipment and storage medium
CN114553373A (en) Data transmission method, device, equipment and storage medium
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN109471818B (en) Bus structure implementation method and device
CN110955390A (en) Data processing method and device and electronic equipment
CN115118795A (en) Data processing method, expansion device, control system, and storage medium
US8250140B2 (en) Enabling connections for use with a network
CN112969198A (en) Data transmission method, terminal and storage medium
CN111224756B (en) Method and device for determining data transmission abnormity, storage medium and electronic equipment
CN112165420A (en) Message processing method, message processing device, robot system and CAN (controller area network) equipment
CN113938351A (en) Data acquisition method, system and computer readable storage medium
CN109922120B (en) Method and terminal for improving DNS availability
CN111737084A (en) Information monitoring method and device, intelligent equipment, computer equipment and medium
CN111092956A (en) Resource synchronization method, device, storage medium and equipment
CN115348184B (en) Internet of things data security event prediction method and system
CN107171915B (en) Communication protocol changing method and device
CN109905208A (en) A method of obtaining terminal control message response
CN114896110A (en) Link detection method, device, equipment and storage medium
CN112506896B (en) Data deleting method and device and electronic equipment
CN113228816A (en) Method and system for active steering in wireless networks
CN111371900B (en) Method and system for monitoring health state of synchronous link
CN116827932B (en) Multi-server remote control method and device, electronic equipment and storage medium
CN114817100B (en) Data reading method and device for single board

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