CN117880394A - Communication control method and system - Google Patents

Communication control method and system Download PDF

Info

Publication number
CN117880394A
CN117880394A CN202311830008.6A CN202311830008A CN117880394A CN 117880394 A CN117880394 A CN 117880394A CN 202311830008 A CN202311830008 A CN 202311830008A CN 117880394 A CN117880394 A CN 117880394A
Authority
CN
China
Prior art keywords
communication
data acquisition
control method
acquisition unit
target
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.)
Pending
Application number
CN202311830008.6A
Other languages
Chinese (zh)
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.)
Beijing Aerospace Measurement and Control Technology Co Ltd
Original Assignee
Beijing Aerospace Measurement and Control Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Aerospace Measurement and Control Technology Co Ltd filed Critical Beijing Aerospace Measurement and Control Technology Co Ltd
Priority to CN202311830008.6A priority Critical patent/CN117880394A/en
Publication of CN117880394A publication Critical patent/CN117880394A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Communication Control (AREA)

Abstract

The disclosure provides a communication control method and a system, wherein the communication control method comprises the following steps: the control unit transmits the target communication dynamic library corresponding to the new communication equipment to the data acquisition unit; after the data acquisition unit starts data acquisition, if a target communication dynamic library sent by the control unit is received, a target analysis configuration file corresponding to the identification information of the new communication equipment is called by loading the target communication dynamic library so as to control communication with the new communication equipment based on protocol configuration information of a communication protocol in the target analysis configuration file; wherein the different communication dynamic libraries are written based on a unified communication interface. The method and the device can easily cope with various complex communication environments and demand changes, improve adaptability and expandability, and can realize self-adaptive data change.

Description

Communication control method and system
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a communication control method and system.
Background
The communication environment of the special railway vehicle industry has complexity and diversity, and different devices and systems use different communication protocols for data transmission and interaction due to different manufacturers. However, with the continuous development of the special railway vehicle industry, the number and types of communication devices are continuously increased, and the difference between communication protocols is also larger and larger, which brings great challenges to the communication management of the special railway vehicle industry.
The communication, monitoring and data acquisition system of the special railway vehicle system adopts a distributed communication structure. Each device needs to write communication software alone or share one communication software with several devices, and each time one device is added, new communication software is written or original communication software is modified, so that flexibility and expandability of the communication software are poor, the communication software is unfriendly to a developer, the maintenance cost of an enterprise is indirectly increased, and the communication software is increased more and more or is increased more and more, and the communication efficiency is low along with the increase of the communication devices.
Disclosure of Invention
In view of the above, the present disclosure provides a communication control method and system for solving the above technical problems.
According to a first aspect of embodiments of the present disclosure, there is provided a communication control method including:
the control unit transmits the target communication dynamic library corresponding to the new communication equipment to the data acquisition unit;
after the data acquisition unit starts data acquisition, if the target communication dynamic library sent by the control unit is received, a target analysis configuration file corresponding to the identification information of the new communication equipment is called by loading the target communication dynamic library so as to control communication with the new communication equipment based on protocol configuration information of a communication protocol in the target analysis configuration file;
wherein the different communication dynamic libraries are written based on a unified communication interface.
Optionally, the communication configuration information includes correspondence between identification information of a plurality of communication devices and a plurality of analysis configuration files, and the identification information of the plurality of communication devices corresponds to the plurality of analysis configuration files one by one; a plurality of analysis configuration files in the communication configuration information are compiled based on the unified communication interface;
the communication control method includes:
and the control unit transmits the target analysis configuration file corresponding to the new communication equipment to the data acquisition unit so that the data communication acquisition module obtains the target analysis configuration file.
Optionally, the communication control method includes:
after the control unit determines the target analysis configuration file, a configuration interface of the target analysis configuration file is displayed; the configuration interface comprises a parameter configuration item for configuring the target analysis configuration file.
Optionally, the communication control method includes:
the control unit is used for displaying a management interface corresponding to the communication configuration information based on the received management instruction; the management interface is used for displaying and/or deleting the analysis configuration file in the communication configuration information.
Optionally, the communication control method includes:
the data acquisition unit selects a target analysis configuration file corresponding to the identification information of the new communication equipment from a setting database, wherein the setting database comprises the corresponding relation between the identification information of the plurality of communication equipment and the analysis configuration files, the identification information of the plurality of communication equipment corresponds to the analysis configuration files one by one, and the analysis configuration files in the setting database are compiled based on the unified communication interface.
Optionally, the communication control method includes:
the data acquisition unit scans the setting database at regular time to check whether a newly added or deleted analysis configuration file exists.
Optionally, the communication control method includes:
after the data acquisition unit starts data acquisition, judging whether all communication equipment are connected;
and if the data communication acquisition unit determines that all the communication devices are not connected, judging whether the target communication dynamic library sent by the control unit is received.
Optionally, the communication control method includes:
the data acquisition unit transmits the protocol configuration information in the target analysis configuration file to a unified interface connection function in a pointer mode so as to control communication with the new communication equipment.
Optionally, the communication control method includes:
the data acquisition unit stores protocol configuration information in the target analysis configuration file into a communication protocol database; the communication protocol database is used for storing protocol configuration information corresponding to the communication equipment controlled by the data acquisition unit.
According to a second aspect of embodiments of the present disclosure, there is provided a communication control system including:
a data acquisition unit configured to execute the method executed by the data acquisition unit in the communication control method according to any one of the first aspect;
a control unit configured to execute the method executed by the control unit in the communication control method according to any one of the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: in the method, after the communication equipment is newly added to the data acquisition unit, the data acquisition unit and the control unit are matched to determine the protocol configuration information of the communication protocol corresponding to the newly added communication equipment so as to realize the self-adaption of the communication protocol information, so that various complex communication environments and requirement changes can be easily dealt with, and the adaptability and the expandability are improved; in addition, by using the communication dynamic library to call the analysis configuration file to obtain the protocol configuration information, the self-adaptive data change can be realized, thereby improving the efficiency and stability of data transmission.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a communication control method according to an exemplary embodiment.
Fig. 2 is a block diagram of a communication control system, shown according to an exemplary embodiment.
FIG. 3 is a schematic diagram of a parsing profile shown in accordance with an exemplary embodiment.
FIG. 4 is a schematic diagram of a configuration interface shown according to an example embodiment.
FIG. 5 is a schematic diagram of a management interface shown in accordance with an exemplary embodiment.
FIG. 6 is a schematic diagram illustrating an implementation of a settings database, according to an example embodiment.
Detailed Description
Further advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure in the present specification, by describing embodiments of the present application with reference to the accompanying drawings and preferred examples. The present application may be embodied or carried out in other specific embodiments, and the details of the present application may be modified or changed from various points of view and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are presented by way of illustration only and not limitation to the scope of the present application.
It should be noted that, the illustrations provided in the following embodiments merely illustrate the basic concepts of the application by way of illustration, and only the components related to the application are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complex.
For the purpose of facilitating an understanding of the embodiments of the present application, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, in which the embodiments are not intended to limit the embodiments of the present application.
The embodiment of the disclosure provides a communication control method and a communication control system. In the method, after the communication equipment is newly added to the data acquisition unit, the data acquisition unit and the control unit are matched to determine the protocol configuration information of the communication protocol corresponding to the newly added communication equipment so as to realize the self-adaption of the communication protocol information, so that various complex communication environments and requirement changes can be easily dealt with, and the adaptability and the expandability are improved; in addition, by using the communication dynamic library to call the analysis configuration file to obtain the protocol configuration information, the self-adaptive data change can be realized, thereby improving the efficiency and stability of data transmission.
In an exemplary embodiment, referring to fig. 1 and 2, there is provided a communication control method and a communication control system to which the communication control method is applied.
Wherein the communication control system may comprise a control unit and a data acquisition unit. The control unit may be a control computer, or may be other devices, and the data acquisition unit may be a data acquisition computer, or may be other devices, which is not limited in this respect.
When the new communication equipment needs to be configured, related personnel can configure the target communication dynamic library corresponding to the new communication equipment based on the control unit, and after the configuration of the target communication dynamic library is completed, the control unit can transmit the target communication dynamic library corresponding to the new communication equipment to the data acquisition unit. It should be noted that, when the target communication dynamic library is configured, identification information of the new communication device may be generated accordingly. The identification information and the target communication dynamic inventory are in unique corresponding relation.
All communication dynamic libraries in the method and the system can be written based on a unified communication interface so as to facilitate maintenance and expansion of the communication configuration information and improve adaptability and expandability of the communication configuration information.
After the data acquisition unit starts data acquisition, whether all communication equipment are connected can be judged. If the data acquisition unit determines that all the communication devices are connected, the new communication device is not existed. If the data acquisition unit determines that all the communication devices are not connected, the data acquisition unit further judges whether a target communication dynamic library sent by the control unit is received or not, wherein the fact that new communication devices possibly exist is indicated.
If the data acquisition unit does not receive the target communication dynamic library sent by the control unit, the communication protocol information does not need to be reconfigured. If the data acquisition unit receives the target communication dynamic library sent by the control unit, the protocol configuration information of the communication needs to be reconfigured is described, and the received target communication dynamic library can be loaded to call a target analysis configuration file corresponding to the target communication dynamic library, namely, a target analysis configuration file corresponding to the identification information of the new communication equipment, so as to control the data communication between the new communication equipment. It should be noted that, when the parsing configuration file is called, the corresponding target parsing configuration file may be determined based on the identification information of the new communication device.
After the data acquisition unit loads the target communication dynamic library, the corresponding target analysis configuration file can be called to transfer protocol configuration information in the target analysis configuration file to the unified interface connection function in a pointer mode, and data communication between the data acquisition unit and the new communication equipment is controlled so as to facilitate subsequent data acquisition.
The data acquisition unit may select the target analysis configuration file from the setting database, may receive the target analysis configuration file from the control unit, or may obtain the target analysis configuration file in other manners, which is not limited.
In some embodiments of the present invention, in some embodiments,
all the analysis configuration files of the communication protocol can be written based on a unified communication interface, so that the analysis configuration files are convenient to maintain subsequently, and the adaptability and the expandability of the setting database are improved.
When new communication equipment needs to be configured, related personnel can configure protocol configuration information of a communication protocol corresponding to the new communication equipment based on the control unit, so that a target analysis configuration file is obtained, and after the configuration of the target analysis configuration file is completed, the control unit can transmit the target analysis configuration file to the data acquisition unit, so that the data communication acquisition module obtains the target analysis configuration file.
In some embodiments of the present invention, in some embodiments,
the communication control system may configure the settings database. The setting database may include correspondence between identification information of a plurality of communication devices and a plurality of analysis configuration files, and the identification information of the plurality of communication devices corresponds to the plurality of analysis configuration files one by one. In addition, a plurality of analysis configuration files in the setting database are written based on a unified communication interface, so that the subsequent maintenance of the analysis configuration files is facilitated, and the adaptability and the expandability of the setting database are improved. In this embodiment, the data acquisition unit selects an analysis profile corresponding to the identification information of the new communication device from the setting database, and the selected analysis profile may be recorded as the target analysis profile.
In this embodiment, the data acquisition unit may periodically scan the setting database to check whether there is a newly added or deleted analysis profile, and after determining that there is a newly added or deleted analysis profile, control a communication state with the corresponding communication device based on the newly added or deleted analysis profile. For example, if it is determined that an analysis configuration file is newly added, it may be determined that a new communication device exists, and then identification information of the new communication device corresponding to the analysis configuration file is transmitted to the control unit, and the control unit may issue a corresponding target communication dynamic library to the data acquisition unit based on the identification information, so that the data acquisition unit invokes the target analysis configuration file by loading the target communication dynamic library to obtain protocol configuration information in the target analysis configuration file, and then performs communication data transmission with the new communication device based on the protocol configuration information.
After the data acquisition unit calls the target analysis configuration file based on the target communication dynamic library, protocol configuration information in the target analysis configuration file can be transferred to the unified interface connection function in a pointer mode to control communication with the new communication equipment.
Wherein the communication control system may configure a communication protocol database. The communication protocol database can be used for storing protocol configuration information of a communication protocol corresponding to the communication equipment controlled by the data acquisition module. That is, the communication protocol database is constituted by protocol configuration information corresponding to the communication device accessing the data acquisition unit. The data acquisition unit can only obtain the protocol configuration information (the protocol configuration information is the protocol configuration information of the communication protocol corresponding to the new communication equipment) from the target analysis configuration information, and then the protocol configuration information can be stored in the communication protocol database to perfect the communication protocol database.
In the communication control system and the communication control method, after the data acquisition unit is newly added with the communication equipment, the data acquisition unit and the control unit are matched to determine the protocol configuration information of the communication protocol corresponding to the newly added communication equipment so as to realize the self-adaption of the communication protocol information, so that various complex communication environments and requirement changes can be easily dealt with, and the adaptability and the expandability are improved; in addition, by using the communication dynamic library to call the analysis configuration file to obtain the protocol configuration information, the self-adaptive data change can be realized, thereby improving the efficiency and stability of data transmission.
In an exemplary embodiment, referring to fig. 1 and 2, there is provided a communication control method and a communication control system to which the communication control method is applied.
The whole architecture of the communication control system adopts a four-layer structure design, and comprises a protocol abstract layer, a communication management layer, a data processing layer and an application layer.
Protocol abstraction layer: is responsible for abstracting details of different protocols and providing a unified interface for a communication management layer to call. The protocol abstraction layer needs to encapsulate different protocols, hide details of the different protocols, and provide a unified interface, such as establishing a connection, sending data, receiving data, and the like.
Communication management layer: is responsible for managing the communication process, including connection management, data transmission management, exception handling, and the like. The communication management layer needs to manage the connection of a plurality of protocol devices, coordinate the communication between the protocol devices, and simultaneously handle the abnormal situations possibly occurring in the communication process.
Data processing layer: is responsible for processing the received data, including data analysis, conversion, storage and the like. The data processing layer needs to analyze and convert the data of different protocols, convert the data into data with uniform format, and store the processed data into a database or a file.
Application layer: and the interaction with the actual application is responsible, including the display of data, the transmission of control instructions and the like. The application layer needs to interact with the user, sends a control instruction according to the requirement of the user, and displays the received data to the user.
The control unit is responsible for issuing the analysis configuration file and the communication dynamic library. And the data acquisition unit invokes the corresponding analysis configuration file according to the communication dynamic library to realize the data acquisition function.
The control unit establishes network communication connection with the data acquisition unit, and realizes the transmission of the analysis configuration file and the communication dynamic library through a self-defined protocol, and the message format during the transmission is as follows:
message format:
message type:
heartbeat process: the 0x 01-data acquisition unit is sent to the control unit;
data: the 0x 02-control unit sends message data to the data acquisition unit; 0x 03-delete communication protocol; 0x 04-data acquisition unit reply message data;
wherein,
the format of message data sent by the 0x 02-control unit to the data acquisition unit is as follows:
the data format of the 0x 03-delete communication protocol data is as follows:
the data format of the 0x 04-data acquisition unit reply message is as follows:
message name Response data
Length of 2 bytes
And selecting a target analysis configuration file to be added in the control unit, and calling a corresponding configuration interface, wherein the configuration interface of the analysis configuration file of TCP/IP protocol communication requires parameter configuration items of an IP address and a port for configuring the IP address and the port. For another example, the configuration interface of the analysis configuration file of the serial port communication needs parameter configuration items such as serial number, baud rate, data bit, stop bit, parity check bit and the like, and is used for configuring parameters such as serial number, baud rate, data bit, stop bit, parity check bit and the like.
After the related personnel configure the corresponding target analysis configuration file and the target communication dynamic library based on the new communication equipment, the control unit can package the determined target analysis configuration file and the target communication dynamic library and then send the packaged target analysis configuration file and the target communication dynamic library to the data acquisition unit. The data acquisition unit can return confirmation information after receiving the information, and store the target analysis configuration file and the target communication dynamic library locally.
After detecting that a new analysis configuration file (i.e. a target analysis configuration file) and a communication dynamic library (i.e. a target communication dynamic library) exist, the data acquisition unit can load the target communication dynamic library, thereby calling the corresponding target analysis configuration file, transmitting protocol configuration information of the target analysis configuration file to a unified interface connection function in a pointer form, realizing connection with new communication equipment and data transmission, and then starting data acquisition.
In the communication control system and the method, in order to realize the self-adaption of multiple protocols, an interface for realizing protocol configuration information of the communication protocol needs to have a uniform definition form, and a data acquisition unit can be called. The interface forms are as follows:
device connection
Bool ConnectDevice(void*lp);
The function implements device connection according to protocol configuration information in the parsed configuration file.
lp is a pointer to protocol configuration information, and the definition forms may be different according to devices, for example, the TCP/IP protocol device information forms are as follows:
for another example, the serial communication device information is in the form of:
other protocol types may be defined in this fashion.
Loading a parse configuration file
Bool LoadConfig(char*filename);
And loading an analysis configuration file, and analyzing data according to the equipment data format, the length and the data item content defined by the file.
Start acquisition
Bool Start();
And starting a data acquisition thread and a storage thread.
Stop harvesting
Void Stop();
And stopping the acquisition thread and the storage thread.
Closing a device connection
Void CloseConnect();
Closing the device connection.
In addition, in order to store configuration communication interface information (such as IP address, port number, COM port, baud rate, etc.) and communication data parsing rules (such as data address, length, resolution, etc.), the method may store relevant information in a parsing configuration file in the form of an XML file, and an example of the parsing configuration file is shown in fig. 3. The description is as follows:
the root node of the XML file is a "data area", and the next level is a "device" node, that is, the information of the communication device is described in this level, for example, a communication protocol TYPE (TCP, modbus_com, modbus_tcp), a DLL (parse profile name), an address (IP address, COM PORT, etc.), a PORT (PORT number), etc.
MSG is defined as message type, and different messages are judged according to communication type, so that the contained data are different. In the TCP/IP protocol, different frame data are described. In the MODBUS communication protocol, MSG describes devices on the bus, as well as device address information.
The monitoring area refers to a type of data, and the data is classified and displayed, so that the monitoring area has no practical significance.
The monitoring points are specific data descriptions, and comprise information such as ID (identity), name, starting position in a message, data length, data type, upper and lower limits, resolution and the like of the data, and data analysis software analyzes the data according to the information and finally displays the data reflecting actual physical meaning.
A unified database model can be established in the communication control system and method. The control unit can generate a database table according to the XML file, wherein the ID in the MSG is a table name, the ID of the monitoring point in the monitoring area is a field name, the type of the monitoring point is a field type, and a time field and a GUID field are added.
The data acquisition unit is responsible for loading the communication dynamic library, loading the analysis configuration file, analyzing the acquired data and transmitting the analyzed data to the storage module and the display module.
The analysis flow of the collected data will be described herein by taking TCP communication as an example. The TCP data flow received by the data acquisition unit is verified to be a complete data packet, the monitoring points in the monitoring area are traversed, the data with the designated data length are read out at the initial address of each item, the data are converted according to the type, then the data are multiplied by the resolution ratio, and final data are obtained until the data analysis of all the monitoring points in the monitoring area is finished. All the analysis data are recorded and combined into SQL sentences in a certain sequence, and the data are stored in a database of the storage unit, or the data can be transmitted to the display unit for display when needed.
According to the method and the system, different communication protocol types can be predefined according to actual application scenes, different analysis configuration files and communication dynamic libraries are written by utilizing a unified communication interface, the characteristics of hiding each protocol are achieved, and the communication requirements of different devices are met.
The communication management method in the method and the system can manage the connection of a plurality of protocol devices, coordinate the communication between the protocol devices and process the abnormal situation possibly occurring in the communication process. The communication management method can be implemented by adopting technologies such as network management, communication control and the like, and will not be described in detail.
In the method and the system, the data processing method can analyze and convert protocol configuration information of different communication protocols according to the XML file, combine the data into a database model format according to the sequence in the XML file, and store the database model format into a database or a file.
In this embodiment, the control unit may comprise a configuration interface and a management interface, wherein the management interface is implemented by a management module of the control unit.
The control unit switches to a corresponding configuration interface, for example, the configuration interface shown in fig. 4, based on the determined parsing configuration file. After the relevant personnel set relevant parameters in the configuration interface, the control unit can send the relevant parameters to the data acquisition unit, and in addition, the control unit can record all added analysis configuration files locally.
The relevant personnel may query the management interface for all of the resolution profiles that have been added locally, and the management interface (e.g., as shown in fig. 5) may display all of the resolution profiles that have been added locally. The relevant personnel can also delete the local parsing configuration file based on the management interface. The control unit may also notify the data acquisition unit, stop the acquisition thread, etc.
The communication control system can adopt a QT cross-platform programming tool, and has a mature suite for network communication and serial port communication. Because the software design is designed by taking the requirement of expandability into consideration, namely, an object-oriented mode is adopted, and each function is designed into a module, the function integration is convenient and fast.
It should be noted that in the method and system, the analysis configuration file may also be stored in a database manner, and the data acquisition unit needs to install a setting database locally to store the analysis configuration file, as in fig. 6, which is an exemplary implementation of the setting database.
Wherein,
name field: a data name;
config_name field: a data ID;
min_1 field, minimum value;
max_1 field, maximum value;
start field: a data start address;
len, field: a data length;
clazz field: data type.
In this way, the storage of the analysis configuration file can be realized, but the setting database needs to be scanned regularly to check whether the analysis configuration file is newly added or deleted.
The related personnel can select the most suitable communication protocol based on the system and the method, so as to adapt to different application scenes and requirements. The flexibility enables the system and the method to easily cope with various complex communication environments and demand changes, and improves the adaptability and the expandability of the system. In addition, in the system and the method, the self-adaptive data change can be realized by analyzing the analysis technology of the configuration file on the communication dynamic library, so that the efficiency and the stability of data transmission are improved. Meanwhile, the communication quality and the transmission rate can be further improved through the evaluation, optimization and fault processing of the communication link, so that the application requirement with high real-time requirement is met. In addition, the system and method may provide a friendly user interface and an easy-to-use system architecture, thereby improving the ease of use and user experience of the system. The usability reduces the learning cost and the use difficulty of the user and improves the acceptance and satisfaction of the user to the system.
It should be noted that references in the specification to "one implementation," "an embodiment," "an example embodiment," "some embodiments," etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitations, the element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or electronic device comprising the element.
The above embodiments are merely preferred embodiments for the purpose of fully explaining the present application, and the scope of the present application is not limited thereto. Equivalent substitutions and modifications will occur to those skilled in the art based on the present application, and are intended to be within the scope of the present application.

Claims (10)

1. A communication control method, characterized by comprising:
the control unit transmits the target communication dynamic library corresponding to the new communication equipment to the data acquisition unit;
after the data acquisition unit starts data acquisition, if the target communication dynamic library sent by the control unit is received, a target analysis configuration file corresponding to the identification information of the new communication equipment is called by loading the target communication dynamic library so as to control communication with the new communication equipment based on protocol configuration information of a communication protocol in the target analysis configuration file;
wherein the different communication dynamic libraries are written based on a unified communication interface.
2. The communication control method according to claim 1, wherein the communication configuration information includes correspondence between identification information of a plurality of communication devices and a plurality of analysis configuration files, and the identification information of the plurality of communication devices corresponds to the plurality of analysis configuration files one by one; a plurality of analysis configuration files in the communication configuration information are compiled based on the unified communication interface;
the communication control method includes:
and the control unit transmits the target analysis configuration file corresponding to the new communication equipment to the data acquisition unit so that the data communication acquisition module obtains the target analysis configuration file.
3. The communication control method according to claim 2, characterized in that the communication control method includes:
after the control unit determines the target analysis configuration file, a configuration interface of the target analysis configuration file is displayed; the configuration interface comprises a parameter configuration item for configuring the target analysis configuration file.
4. The communication control method according to claim 2, characterized in that the communication control method includes:
the control unit is used for displaying a management interface corresponding to the communication configuration information based on the received management instruction; the management interface is used for displaying and/or deleting the analysis configuration file in the communication configuration information.
5. The communication control method according to claim 1, characterized in that the communication control method comprises:
the data acquisition unit selects a target analysis configuration file corresponding to the identification information of the new communication equipment from a setting database, wherein the setting database comprises the corresponding relation between the identification information of the plurality of communication equipment and the analysis configuration files, the identification information of the plurality of communication equipment corresponds to the analysis configuration files one by one, and the analysis configuration files in the setting database are compiled based on the unified communication interface.
6. The communication control method according to claim 5, characterized in that the communication control method comprises:
the data acquisition unit scans the setting database at regular time to check whether a newly added or deleted analysis configuration file exists.
7. The communication control method according to claim 1, characterized in that the communication control method comprises:
after the data acquisition unit starts data acquisition, judging whether all communication equipment are connected;
and if the data communication acquisition unit determines that all the communication devices are not connected, judging whether the target communication dynamic library sent by the control unit is received.
8. The communication control method according to claim 1, characterized in that the communication control method comprises:
the data acquisition unit transmits the protocol configuration information in the target analysis configuration file to a unified interface connection function in a pointer mode so as to control communication with the new communication equipment.
9. The communication control method according to claim 1, characterized in that the communication control method comprises:
the data acquisition unit stores protocol configuration information in the target analysis configuration file into a communication protocol database; the communication protocol database is used for storing protocol configuration information corresponding to the communication equipment controlled by the data acquisition unit.
10. A communication control system, the communication control system comprising:
a data acquisition unit for performing the method performed by the data acquisition unit in the communication control method according to any one of claims 1 to 9;
control unit for performing the method performed by the control unit in the communication control method according to any one of claims 1-9.
CN202311830008.6A 2023-12-27 2023-12-27 Communication control method and system Pending CN117880394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311830008.6A CN117880394A (en) 2023-12-27 2023-12-27 Communication control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311830008.6A CN117880394A (en) 2023-12-27 2023-12-27 Communication control method and system

Publications (1)

Publication Number Publication Date
CN117880394A true CN117880394A (en) 2024-04-12

Family

ID=90585910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311830008.6A Pending CN117880394A (en) 2023-12-27 2023-12-27 Communication control method and system

Country Status (1)

Country Link
CN (1) CN117880394A (en)

Similar Documents

Publication Publication Date Title
US20040117452A1 (en) XML-based network management system and method for configuration management of heterogeneous network devices
US9235681B2 (en) System and method for intersystem device exchange
KR20040103352A (en) Home network system
CN110162417B (en) Data interaction method for industrial edge computing application and OPC UA address space
CN101834848A (en) Method for describing protocol by using XML and protocol resolving system built by same
CN101167327A (en) System and method for accessing multiple data sources by mobile applications
CN107592238A (en) Automatic test approach and system, service terminal, the memory of interface
CN110912782B (en) Data acquisition method, device and storage medium
CN107888410A (en) A kind of configurable workshop appliance monitoring system implementation method
US8589381B2 (en) Resource management program, resource management process, and resource management apparatus
CN114554618B (en) Wireless access point device, equipment access method, equipment and storage medium
JP4755386B2 (en) Price label system and communication method
CN107577820A (en) Method, equipment and the system of data processing
CN116366701A (en) Digital building management control system and method
US20220030090A1 (en) Selective address space aggregation
CN117596154A (en) Method and system for automatically identifying and accessing equipment based on meta model
CN117880394A (en) Communication control method and system
CN111475449A (en) HIS system and external program interface adaptation method, system, interface adapter and comprehensive medical system
CN108092959B (en) BACnet protocol analysis method based on configuration
CN116743886A (en) Industrial control equipment data acquisition system based on Internet of things
CN110099033B (en) Lower frame mechanism
CN115269228A (en) Data adaptive transmission method, device, equipment and medium
CN111880026B (en) Panel inspection device
CN113242254A (en) Communication message processing method, device, terminal equipment and storage medium
CN109739106B (en) Intelligent manufacturing platform and method for adaptively accessing intelligent manufacturing platform

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