CN115118795B - 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
CN115118795B
CN115118795B CN202210897093.7A CN202210897093A CN115118795B CN 115118795 B CN115118795 B CN 115118795B CN 202210897093 A CN202210897093 A CN 202210897093A CN 115118795 B CN115118795 B CN 115118795B
Authority
CN
China
Prior art keywords
equipment
expansion
controller
file
extension
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
CN202210897093.7A
Other languages
Chinese (zh)
Other versions
CN115118795A (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

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 extension equipment receives service data sent by terminal equipment connected with the extension 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 a 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 automatic control system, because of various terminal devices needing to be accessed, the monitoring of various terminal devices is generally realized by adopting a structure mode of a single controller and a plurality of extension devices. Currently, each expansion device connected with the controller directly transmits data provided by the 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 extension device directly transmits the data provided by the terminal device to the controller, the controller processes the received data, and thus in the case where a large number of terminal devices are included in the control system, the computational 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 expansion 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 embodiments of the present disclosure, there is provided a data processing method, performed by an expansion device, including: the communication protocol analysis module in the extension equipment receives service data sent by terminal equipment connected with the extension 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 configuration logic module of the expansion equipment processes the equipment protocol point location data according to a preset configuration logic.
In some embodiments, the communication protocol analysis module sends the device protocol point location data to an extension device master control module in the extension 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 transmitting the device protocol point location data by the expansion device master control module to the controller includes: and the main control module of the expansion equipment adopts a timing transmission mode to send the equipment protocol point location data to the controller.
In some embodiments, the extended device host module sending the device protocol point location data to the controller further comprises: and the expansion equipment main control module sends the equipment protocol point position data to the controller under the condition that the equipment protocol point position data is changed.
In some embodiments, the communication protocol parsing module in the extension device receives service data sent by a terminal device connected to the extension device, where the service data includes: the communication protocol analysis module in the extension equipment reads the content of a preset configuration file of the extension equipment; and the communication protocol analysis module receives service data sent by the terminal equipment connected with the extension equipment according to the content of the configuration file of the extension equipment.
In some embodiments, the configuration file of the extension device includes at least one of a type of the extension device, an address of the extension device, communication interface configuration information of the extension device, a communication protocol type of the extension device and the terminal device, a communication address of the terminal device, and protocol point location information of the terminal device.
In some embodiments, after the expansion device main control module in the expansion device is started, a query request is sent to the controller, wherein 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 equipment main control module extracts the expansion equipment configuration file, the expansion equipment configuration logic file and the communication protocol analysis file from the query response; and the expansion equipment master 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 extension device master control module extracts the first verification information of the extension device configuration file, the second verification information of the extension device configuration logic file, and the third verification information of the communication protocol analysis file from the query response; the expanding equipment main control module starts the expanding equipment configuration logic module and the communication protocol analysis module to comprise: 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, the expansion equipment main control module starts the expansion equipment configuration logic module and the communication protocol analysis module.
In some embodiments, in the event that at least one of the first check, the second check, and the third check is unsuccessful, the expansion device host 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 all successful, the extension device master control module starts the extension device configuration logic module and the communication protocol analysis module, including: under the condition that the first check, the second check and the third check are successful, the expansion equipment main control module extracts attribute information of the expansion equipment from the expansion equipment configuration file; the main control module of the expansion equipment 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.
In some embodiments, the attribute information of the expansion device includes at least one of an address of the expansion device and a type of the expansion device.
In some embodiments, in the event that the attribute information is incorrect, the expansion device host 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 extension 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 equipment configuration logic module is configured to process the equipment protocol point location data according to preset configuration logic.
According to a third aspect of the embodiments of the present disclosure, there is provided an expansion device, including: a memory configured to store instructions; a processor coupled to the memory, the processor configured to perform a method according to any of the embodiments described above based on instructions stored in the memory.
According to a fourth aspect of embodiments of the present disclosure, there is provided a control system comprising: a plurality of expansion devices, wherein each expansion device in the plurality of expansion devices is an expansion device according to any one of the above embodiments; and a plurality of terminal devices, wherein each terminal device of the plurality of terminal devices is connected with a corresponding extension device and is configured to send service data to the corresponding extension device.
In some embodiments, the above 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 the device protocol point location data sent by the ith expansion device to the controller configuration logic module, and the controller configuration logic module is configured to process the device protocol point location data according to preset configuration logic, wherein i is more than or equal to 1 and less than or equal to N, and N is the total number of expansion devices connected with the controller.
In some embodiments, the controller master 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 query, after receiving a query request sent by the ith extension device, an extension device configuration file, an extension device configuration logic file and a communication protocol analysis file corresponding to attribute information of the ith extension device included in the query request, and send 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 analysis file.
In some embodiments, the query response further includes first check information of the configuration file of the extension device, second check information of the configuration logic file of the extension device, and third check information of the analysis file of the communication protocol.
In some embodiments, the controller master control module is configured to resend the query response according to the verification 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 from a configuration server, and an extension device configuration file and an extension device configuration logic file corresponding to each extension device connected to the controller; and the controller master control module starts a controller configuration logic module according to the content of the configuration file of the expansion device corresponding to each expansion device connected with the controller and the configuration logic file of the controller.
In some embodiments, the extension device configuration file of the i-th extension device includes at least one of a type of the i-th extension device, an address of the i-th extension device, communication interface configuration information of the i-th extension device, a communication protocol type of the i-th 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 one terminal device, the extension device configuration logic file of the ith extension device includes a configuration of the one terminal device; and under the condition that the ith expansion equipment is connected with a plurality of terminal equipment, the expansion equipment configuration logic file of the ith expansion equipment comprises the configuration among the plurality of terminal equipment connected with the ith expansion equipment.
In some embodiments, the controller configuration logic file includes a configuration among a plurality of terminal devices connected to the plurality of expansion devices.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, wherein the computer readable storage medium stores computer instructions which, when executed by a processor, implement a method as in any of the embodiments described above.
Other features of the present disclosure and its advantages will become apparent from the following detailed description of exemplary embodiments of the disclosure, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a module configuration method according to one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an expansion device according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural view of an expansion device according to another embodiment of the present disclosure;
FIG. 5 is a schematic structural view of an expansion device according to a further embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a control system according to one 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 following description of the technical solutions in the embodiments of the present disclosure will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all 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 made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
The relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless it is specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but should be considered part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Fig. 1 is a flow chart illustrating a data processing method according to an embodiment of the disclosure. In some embodiments, the following data processing method is performed by the 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 analysis module reads the content of a preset configuration file of the extension device, and receives service data sent by a terminal device connected with the extension device according to the content of the configuration file of the extension device.
For example, the configuration file of the extension device includes at least one of a type of the extension device, an address of the extension device, configuration information of a communication interface of the extension device, a communication protocol type of the extension device 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 device protocol point location data.
In step 103, the communication protocol parsing module sends the device protocol point location data to an extended device configuration logic module in the extended 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 embodiments of the present disclosure, a communication protocol analysis module and an extension device configuration logic module are set in an extension device, so that service data sent by a terminal device is processed by the communication protocol analysis module 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 equipment can process the service data sent by the terminal equipment, so that the load of the controller is effectively reduced.
In some embodiments, the communication protocol analysis 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 data outside the preset range needs to be submitted to the controller for processing. For example, one extension device can process light related data of a specified floor, but cannot process entrance guard related data of the entire building. The expansion device therefore needs to send access related data to the controller.
In some embodiments, the extended device host module sends the device protocol point location data to the controller using a timing transmission manner, so that the controller receives the device protocol point location data at a timing.
In addition, the expansion equipment main control module also sends the equipment protocol point position data to the controller under the condition that the equipment protocol point position data is changed, so that the controller can process the changed equipment protocol point position data in time.
For example, if the difference between the value of the certain device protocol point data at the current time and the value of the previous time is greater than a predetermined threshold, the device protocol point data transmission change is determined.
Fig. 2 is a flow chart illustrating a module configuration method according to another embodiment of the present disclosure. In some embodiments, the following data processing method is performed by the expansion device.
In step 201, after the expansion device main control module in the expansion device is started, a query request is sent to the controller.
The query request includes attribute information of the extension device, so that the controller queries an extension device configuration file, an extension 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 the expansion device configuration file, the expansion device configuration logic file and the communication protocol analysis file from the query response.
For example, the configuration file of the extension device includes at least one of a type of the extension device, an address of the extension device, configuration information of a communication interface of the extension device, a communication protocol type of the extension device 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 an extension device is connected to one terminal device, the extension device configuration logic file of the extension device includes the configuration of the one terminal device. In the case that an extension device is connected to a plurality of terminal devices, an extension device configuration logic file of the extension device includes a configuration among the plurality of terminal devices connected to the extension device.
In step 203, the expansion device master 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 master control module extracts the expansion device configuration file, the expansion device configuration logic file, and the communication protocol analysis file from the query response, and extracts 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 analysis file from the query response.
For example, the first check information may be a check code, a size of an extended device configuration file, and the like. The second check information may be check code, size of configuration logic file of the expansion device, etc. The third check information may be check code, size of the communication protocol analysis file, etc.
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 host 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 both successful, the extension device master control module extracts the attribute information of the extension device from the extension device configuration file.
For example, the attribute information of the expansion device includes at least one of an address of the expansion device and a type of the expansion device.
And the main control module of the expansion equipment judges whether the attribute information is correct. And under the condition that the attribute information is correct, the expansion equipment main control module starts the expansion equipment configuration logic module by utilizing the expansion equipment configuration logic file, and starts the communication protocol analysis module by utilizing the communication protocol analysis file.
In some embodiments, in the event that the attribute information is incorrect, the expansion device host module sends verification failure information to the controller so that the controller resends the query response.
Fig. 3 is a schematic structural view of an expansion device according to an embodiment of the present disclosure. As shown in fig. 3, the extension device includes a communication protocol analysis module 31 and an extension 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 extension device, process the service data to obtain device protocol point location data, and send the device protocol point location data to the extension device configuration logic module 32 in the extension device.
In some embodiments, the communication protocol parsing module 31 reads the content of the preset configuration file of the extension device, and receives the service data sent by the terminal device connected to the extension device according to the content of the configuration file of the extension device.
For example, the configuration file of the extension device includes at least one of a type of the extension device, an address of the extension device, configuration information of a communication interface of the extension device, a communication protocol type of the extension device 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 data according to a predetermined configuration logic.
Fig. 4 is a schematic structural view 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 comprises an expansion device master control module 33.
The communication protocol analysis module 31 sends the device protocol point location data to the 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 the preset configuration logic.
It should be noted that each expansion device can only process data within a preset range, and data outside the preset range needs to be submitted to the controller for processing.
In some embodiments, the extended device host module 33 sends the device protocol point location data to the controller using a timed transmission such that the controller receives the device protocol point location data at a timing.
In addition, the extended 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 control module 33 in the expansion device sends a query request to the controller after startup. The query request includes attribute information of the extension device, so that the controller queries an extension device configuration file, an extension 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 the expansion device configuration file, the expansion device configuration logic file and the communication protocol analysis file from the query response.
For example, the configuration file of the extension device includes at least one of a type of the extension device, an address of the extension device, configuration information of a communication interface of the extension device, a communication protocol type of the extension device 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 an extension device is connected to one terminal device, the extension device configuration logic file of the extension device includes the configuration of the one terminal device. In the case that an extension device is connected to a plurality of terminal devices, an extension device configuration logic file of the extension device includes a configuration among the plurality of terminal devices connected to the extension device.
The expansion device main control module 33 stores an 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 extension device master control module 33 extracts the extension device configuration file, the extension device configuration logic file, and the communication protocol analysis file from the query response, and extracts the first check information of the extension device configuration file, the second check information of the extension device configuration logic file, and the third check information of the communication protocol analysis file from the query response.
For example, the first check information may be a check code, a size of an extended device configuration file, and the like. The second check information may be check code, size of configuration logic file of the expansion device, etc. The third check information may be check code, size of the communication protocol analysis file, etc.
The extension device main control module 33 performs a first check on the extension device configuration file by using the first check information, performs a second check on the extension device configuration logic file by using the second check information, and performs a third check on the communication protocol analysis file by using the third check information.
If the first check, the second check and the third check are successful, the extension device master control module 33 starts the extension device configuration logic module by using the extension 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, second, and third checks is unsuccessful, the expansion device host module 33 sends a check failure message to the controller to resend the query response by the controller.
In some embodiments, if the first check, the second check, and the third check are successful, the expansion device master control module 33 extracts the attribute information of the expansion device from the expansion device configuration file.
For example, the attribute information of the expansion device includes at least one of an address of the expansion device and a type of the expansion device.
The extension device main control module 33 determines whether the attribute information is correct. In the case that the attribute information is correct, the extension device main control module 33 starts the extension device configuration logic module by using the extension device configuration logic file, and starts the communication protocol analysis module by using the communication protocol analysis file.
In some embodiments, in the event that the attribute information is incorrect, the expansion device host module 33 sends verification failure information to the controller to resend the query response.
Fig. 5 is a schematic structural view 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 for storing instructions and the processor 52 is coupled to the memory 51, the processor 52 being configured to perform a method as referred to in any of the embodiments of fig. 1 or 2 based on the instructions stored by the memory.
As shown in fig. 5, the expansion device further comprises a communication interface 53 for information interaction with other devices. Meanwhile, the expansion device further includes a bus 54, and the processor 52, the communication interface 53, and the memory 51 perform communication with each other through the bus 54.
The memory 51 may comprise a high-speed RAM memory or may further comprise a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 51 may also be a memory array. The memory 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 having stored thereon computer instructions which, when executed by a processor, implement a method as referred to in any of the embodiments of fig. 1 or 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 of the plurality of expansion devices 62 is an expansion device to which any of the embodiments of fig. 3 to 5 relates.
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 extension device 62 and is configured to transmit service data to the corresponding extension device.
For example, the extension 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, since the communication protocol analysis module and the configuration logic module of the extension device are disposed in each extension device 62, the communication protocol analysis module processes the service data sent by the terminal device 63 to obtain the device protocol point location data, and the configuration logic module of the extension device processes the device protocol point location data according to the preset configuration logic. The expansion device 62 can process the service data sent by the terminal device, and the service data does not need to be sent to the controller 63 for processing, so that the load of the controller 63 is effectively reduced.
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 extension 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 expansion devices connected with the controller.
In some embodiments, the controller master control module 71 sends the device protocol dot 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 master control module 71 queries an extension device configuration file, an extension device configuration logic file, and a communication protocol analysis 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 analysis file.
For example, the extension device configuration file of the i-th extension device includes at least one of a type of the i-th extension device, an address of the i-th extension device, communication interface configuration information of the i-th extension device, a communication protocol type of the i-th 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.
For example, in the case where the i-th expansion device is connected to a terminal device, the expansion device configuration logic file of the i-th expansion device includes the configuration of the terminal device. In the case that the i-th expansion device is connected to a plurality of terminal devices, the expansion device configuration logic file of the i-th expansion device includes a configuration between the plurality of terminal devices connected to the i-th expansion device.
For example, the controller configuration logic file includes a configuration among a plurality of terminal devices connected to a plurality of extension devices.
In some embodiments, the query response further includes first check information of the configuration file of the extension device, second check information of the configuration logic file of the extension device, and third check information of the communication protocol analysis file, so that the ith extension device performs the check by using the first check information, the second check information, and the third check information.
In some embodiments, the controller master control module 71 resends the query response according to the verification failure information sent by the ith extension apparatus, so that the ith extension apparatus can receive the configuration file of the extension apparatus, the configuration logic file of the extension apparatus and the analysis file of the communication protocol passing the verification.
In some embodiments, the controller master control module 71 obtains the controller configuration logic file from the configuration server 65 (as shown in fig. 6), and the extension device configuration file and the extension device configuration logic file corresponding to each extension device 62 connected to the controller 61;
the controller master control module 71 starts the controller configuration logic module according to the content of the configuration file of the extension device corresponding to each extension device connected to the controller and the configuration logic file of the controller.
According to the method, the communication protocol analysis module and the expansion equipment configuration logic module are arranged in the expansion equipment, so that the communication protocol analysis module processes service data sent by the terminal equipment to obtain equipment protocol point location data, and the expansion equipment configuration logic module processes 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, so that the load of the controller is effectively reduced. 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 may be implemented as general-purpose processors, programmable logic controllers (Programmable Logic Controller, abbreviated as PLCs), digital signal processors (Digital Signal Processor, abbreviated as DSPs), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASICs), field programmable gate arrays (Field-Programmable Gate Array, abbreviated as 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 the present 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 for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the 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 those of ordinary skill in the art. The embodiments were 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 (24)

1. A data processing method performed by an expansion device, comprising:
the communication protocol analysis module in the extension equipment receives service data sent by terminal equipment connected with the extension 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;
Under the condition that the equipment protocol point position data is in a preset range, the extended equipment configuration logic module processes the equipment protocol point position data according to preset configuration logic;
the communication protocol analysis module sends the equipment protocol point position data to an expansion equipment main control module in the expansion equipment under the condition that the equipment protocol point position data is not in a preset range;
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.
2. The method of claim 1, wherein the extended device host module sending the device protocol point location data to the controller comprises:
and the main control module of the expansion equipment adopts a timing transmission mode to send the equipment protocol point location data to the controller.
3. The method of claim 2, the extended device host 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 position data to the controller under the condition that the equipment protocol point position data is changed.
4. The method of claim 1, wherein the communication protocol parsing module in the extension device receiving service data sent by a terminal device connected to the extension device comprises:
the communication protocol analysis module in the extension equipment reads the content of a preset configuration file of the extension equipment;
and the communication protocol analysis module receives service data sent by the terminal equipment connected with the extension equipment according to the content of the configuration file of the extension equipment.
5. The method of claim 4, wherein,
the configuration file of the extension equipment comprises at least one of the type of the extension equipment, the address of the extension equipment, the communication interface configuration information of the extension equipment, the communication protocol type of the extension equipment and the terminal equipment, the communication address of the terminal equipment and the protocol point location information of the terminal equipment.
6. The method of any of claims 1-5, further comprising:
after the expansion equipment main control module in the expansion equipment is started, a query request is sent to the controller, wherein the query request comprises attribute information of the expansion equipment, so that the controller queries an expansion equipment configuration file, an expansion equipment 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 equipment main control module extracts the expansion equipment configuration file, the expansion equipment configuration logic file and the communication protocol analysis file from the query response;
and the expansion equipment master 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.
7. The method of claim 6, further comprising:
the expansion equipment main control module extracts first check information of the expansion equipment configuration file, second check information of the expansion equipment configuration logic file and third check information of the communication protocol analysis file from the query response;
the expanding equipment main control module starts the expanding equipment configuration logic module and the communication protocol analysis module to comprise:
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, the expansion equipment main control module starts the expansion equipment configuration logic module and the communication protocol analysis module.
8. The method of claim 7, further comprising:
and under the condition that at least one of the first check, the second check and the third check is unsuccessful, the expansion equipment main control module sends check failure information to the controller so that the controller resends the query response.
9. The method of claim 7, wherein the extension device master control module starting the extension device configuration logic module and the communication protocol parsing module if the first check, the second check, and the third check are successful comprises:
under the condition that the first check, the second check and the third check are successful, the expansion equipment main control module extracts attribute information of the expansion equipment from the expansion equipment configuration file;
the main control module of the expansion equipment 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.
10. The method of claim 9, wherein,
the attribute information of the expansion device includes at least one of an address of the expansion device and a type of the expansion device.
11. The method of claim 9, further comprising:
and under the condition that the attribute information is incorrect, the main control module of the expansion equipment sends verification failure information to the controller so that the controller resends the query response.
12. 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 configuration logic module of the expansion equipment is configured to process the equipment protocol point location data according to preset configuration logic when the equipment protocol point location data is within a preset range, and the communication protocol analysis module sends the equipment protocol point location data to the main control module of the expansion equipment when the equipment protocol point location data is within the preset range, and the main control module of the expansion equipment sends the equipment protocol point location data to a controller so that the controller processes the equipment protocol point location data according to the preset configuration logic.
13. An expansion device, comprising:
a memory configured to store instructions;
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-11 based on instructions stored by the memory.
14. A control system, comprising:
a plurality of expansion devices, wherein each of the plurality of expansion devices is an expansion device of claim 12 or 13;
and a plurality of terminal devices, wherein each terminal device of the plurality of terminal devices is connected with a corresponding extension device and is configured to send service data to the corresponding extension device.
15. The system of claim 14, 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 the device protocol point location data sent by the ith expansion device to the controller configuration logic module, and the controller configuration logic module is configured to process the device protocol point location data according to preset configuration logic, wherein i is more than or equal to 1 and less than or equal to N, and N is the total number of expansion devices connected with the controller.
16. The system of claim 15, wherein,
The controller main control module is configured to send the device protocol point location data sent by the ith extension device to the monitoring server.
17. The system of claim 15, wherein,
the controller main control module is configured to query an extension device configuration file, an extension device configuration logic file and a communication protocol analysis file corresponding to attribute information of the ith extension device included in the query request after receiving the query request sent by the ith extension device, and send a query response to the ith extension device, wherein the query response comprises the extension device configuration file, the extension device configuration logic file and the communication protocol analysis file.
18. The system of claim 17, wherein,
the query response also comprises first check information of the configuration file of the extension equipment, second check information of the configuration logic file of the extension equipment and third check information of the communication protocol analysis file.
19. The system of claim 18, 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.
20. The system of claim 15, wherein,
the controller main control module is configured to acquire a controller configuration logic file from a configuration server, and an extension device configuration file and an extension device configuration logic file corresponding to each extension device connected with the controller;
and the controller master control module starts a controller configuration logic module according to the content of the configuration file of the expansion device corresponding to each expansion device connected with the controller and the configuration logic file of the controller.
21. The system of claim 20, wherein,
the extension equipment configuration file of the ith extension equipment comprises at least one of the type of the ith extension equipment, the address of the ith extension equipment, the communication interface configuration information of the ith extension equipment, the communication protocol type of the ith extension equipment and the corresponding terminal equipment, the communication address of the corresponding terminal equipment and the protocol point location information of the corresponding terminal equipment.
22. The system of claim 20, wherein,
in the case that the i-th expansion device is connected with one terminal device, the expansion device configuration logic file of the i-th expansion device includes the configuration of the one terminal device;
And under the condition that the ith expansion equipment is connected with a plurality of terminal equipment, the expansion equipment configuration logic file of the ith expansion equipment comprises the configuration among the plurality of terminal equipment connected with the ith expansion equipment.
23. The system of claim 20, wherein,
the controller configuration logic file includes a configuration among a plurality of terminal devices connected to the plurality of expansion devices.
24. A non-transitory computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of any one of claims 1-11.
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 CN115118795A (en) 2022-09-27
CN115118795B true 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
CN115118795A (en) 2022-09-27

Similar Documents

Publication Publication Date Title
US11417331B2 (en) Method and device for controlling terminal, and computer readable storage medium
US11080404B2 (en) Firmware upgrade method, slave station of robot, and machine readable storage medium
CN110659151B (en) Data verification method and device and storage medium
CN112291387B (en) Method, device and equipment for automatically addressing master and slave machines and storage medium
CN109189851B (en) Data access method, database equipment and master-slave database instance system
US20210258187A1 (en) Electronic control device, electronic control method, and recording medium
CN113852563A (en) Message data transmission method and device, terminal equipment and readable storage medium
CN109495553B (en) Webpage display control method and system and reverse proxy server
CN109871498B (en) Rear-end interface response method and device, electronic equipment and storage medium
CN110955390B (en) Data processing method, device, electronic equipment and storage medium
CN114221903B (en) Data transmission method and device
CN115118795B (en) Data processing method, expansion device, control system, and storage medium
EP0525736A1 (en) Data storing system for a communication control circuit
US8250140B2 (en) Enabling connections for use with a network
CN112969198A (en) Data transmission method, terminal and storage medium
CN115348184B (en) Internet of things data security event prediction method and system
CN111092956A (en) Resource synchronization method, device, storage medium and equipment
CN115994057A (en) Chip bus detection method and device, electronic equipment and storage medium
CN108234352B (en) Electronic control unit and data transmission method
CN114201549A (en) Switching method, system, server and storage medium
CN114817100B (en) Data reading method and device for single board
CN113468195B (en) Server data cache updating method, system and main database server
CN111371900B (en) Method and system for monitoring health state of synchronous link
CN116841929B (en) Method and device for transmitting data, electronic equipment and storage medium
EP4220398A1 (en) Method and apparatus for keeping client alive, and electronic device and storage 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