Communication configuration method, communication method and apparatus, device, medium, and program product

By parsing the configuration file and dividing the signal link group and functional application group in the energy storage valve device, and using a predefined communication protocol framework, the problems of complex protocols and repetitive development in the existing technology are solved, and efficient communication and compatibility between devices are achieved.

WO2026046076A1PCT designated stage Publication Date: 2026-03-05CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-22
Publication Date
2026-03-05

AI Technical Summary

Technical Problem

The development of existing communication protocols for energy storage valve devices suffers from problems such as complex protocols, repetitive and tedious development across devices, high repetition in protocol development due to differences in communication requirements, inability to be modularly ported, and low communication efficiency.

Method used

By acquiring and parsing configuration files, signal link groups and functional application groups are divided, and communication between devices is achieved using a predefined communication protocol framework. This ensures configuration file consistency, reduces redundant development costs, and improves the efficiency of communication between devices.

Benefits of technology

It enables the addition of new features or modules without redeveloping software code, reduces the design cost of communication protocols between devices, improves communication compatibility and portability, and avoids the problem of low communication efficiency caused by inconsistent configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025116505_05032026_PF_FP_ABST
    Figure CN2025116505_05032026_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure provides a communication configuration method, a communication method and apparatus, a device, a medium, and a program product. The method is applied to a first device. The method comprises: acquiring and parsing a first configuration file to obtain a short address signal set of a signal link group and a short address signal set of a functional application group, wherein the signal link group comprises an input signal group, an output signal group and a parameter signal group, and the short address signal set of the functional application group is derived from the short address signal set of the signal link group; and instantiating a short address signal in the short address signal set of the signal link group to allocate a storage address to the short address signal of the signal link group, wherein the storage address is used for storing data corresponding to the short address signal, the first configuration file is used in cooperation with a predefined communication protocol framework to implement data interaction between the first device and a second device, and configuration files on which the communication between the first device and the second device is based are both first configuration files.
Need to check novelty before this filing date? Find Prior Art

Description

Communication configuration methods, communication methods and devices, equipment, media, and software products

[0001] Cross-references to related applications

[0002] This disclosure is based on and claims priority to Chinese Patent Application No. 202411182591.9, filed on August 26, 2024, entitled "A Communication Method, Apparatus, Device, Storage Medium, and Program Product", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This disclosure relates to the field of energy storage systems, and includes, but is not limited to, a communication configuration method, communication method and apparatus, equipment, medium, and program product. Background Technology

[0004] The development of communication protocols for existing energy storage valve devices typically involves designing communication protocol text for targeted communication function code development. Through these protocols, data setting and querying can be performed, such as version lookup, telemetry data query, remote signaling data query, alarm query, status monitoring, and setpoint parameter setting. Generally, multiple protocols are designed to achieve multi-scenario, multi-functional communication applications, leading to protocol complexity through continuous iteration. When developing across different devices, differing communication requirements often mean repetitive and tedious protocol development, hindering modular portability; adding new protocols requires significant modifications to related software components. Summary of the Invention

[0005] This disclosure provides a communication configuration method, communication method and apparatus, device, medium, and program product, wherein:

[0006] In a first aspect, embodiments of this disclosure provide a communication configuration method applied to a first device, comprising: acquiring and parsing a first configuration file to obtain a short address signal set of a signal link group and a short address signal set of a functional application group; wherein the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group originates from the short address signal set of the signal link group; instantiating short address signals in the short address signal set of the signal link group to allocate storage addresses for the short address signals of the signal link group; the storage addresses are used to store data corresponding to the short address signals; wherein the first configuration file is used to cooperate with a predefined communication protocol framework to realize data interaction between the first device and a second device; the configuration files on which the first device and the second device communicate are both based on the first configuration file.

[0007] It is understood that in this embodiment, the first configuration file includes a signal link group and a function application group. Short address signals in the signal link group are each assigned a storage address, and the short address signal set of the function application group originates from the short address signal set of the signal link group. Thus, by dividing the short address signals into multiple groups in the first configuration file, with different groups corresponding to different functions, when a new function or module needs to be added, only a new short address signal group needs to be added to the first configuration file, and the corresponding configuration information needs to be supplemented in that group. There is no need to redevelop the software code implementing the corresponding function, thereby reducing repetitive development costs when the first device expands its application scenarios or changes its functions. Furthermore, communication with the second device is conducted using a predefined communication protocol framework and the first configuration file, and both the first and second devices rely on the first configuration file for communication. In this way, a unified configuration file avoids problems such as numerous protocols, customization, and low communication mechanism efficiency in device development.

[0008] In some embodiments, short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

[0009] It is understood that in this embodiment of the disclosure, in the first configuration file, the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library. The short address signal library includes different types of short address signals, and the data types described by the different types of short address signals are different. Thus, since the operating system and / or supported data types of the second device communicating with the first device may differ from those of the first device, the different types of short address signals corresponding to different data types are beneficial to ensuring the compatibility and portability of messages between different devices.

[0010] In some embodiments, before parsing the first configuration file, the communication configuration method further includes: determining whether there is a configuration file to be verified; if there is a configuration file to be verified, obtaining first verification information corresponding to the configuration file to be verified; obtaining second verification information of the configuration file on which the communication is based from the second device side; and if it is determined that the first verification information matches the second verification information, using the configuration file to be verified as the first configuration file.

[0011] It is understood that in this embodiment of the present disclosure, when a configuration file to be verified exists, first verification information corresponding to the configuration file to be verified is obtained; second verification information of the configuration file on which communication is based is obtained from the second device; if it is determined that the first verification information and the second verification information match, the configuration file to be verified is used as the first configuration file. This helps ensure that the configuration files used by the first device and the second device are the same, thereby avoiding problems such as inability to communicate directly or low communication efficiency caused by inconsistent configuration files used by the communicating parties.

[0012] In some embodiments, the communication configuration method further includes: if there is no configuration file to be verified, or if the first verification information does not match the second verification information, obtaining the configuration file on which the second device communication is based and using the configuration file on which the second device communication is based as the first configuration file.

[0013] It is understood that in this embodiment of the disclosure, if there is no configuration file to be verified, or if the first verification information does not match the second verification information, the configuration file on which the second device communicates is obtained as the first configuration file. This helps ensure that the first device and the second device use the same configuration file, thereby avoiding problems such as inability to communicate directly or low communication efficiency caused by inconsistent configuration files used by the communicating parties.

[0014] Secondly, embodiments of this application provide a communication method applied to a first device, comprising: receiving a first message sent by a second device; parsing the first message according to a predefined communication protocol framework to obtain relevant information of a first short address signal; the relevant information being used to identify the first short address signal; determining the first short address signal from a first configuration file based on the relevant information of the first short address signal; determining a first allocated storage address based on the first short address signal; and responding to the first message based on the first storage address; wherein the first configuration file includes a short address signal set of a signal link group and a short address signal set of a functional application group, the short address signals in the short address signal set of the signal link group are respectively allocated storage addresses, and the storage addresses are used to store data corresponding to the short address signals; the storage addresses are obtained by pre-instantiating the short address signals in the short address signal set of the signal link group; the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group originates from the short address signal set of the signal link group.

[0015] It is understood that, in this embodiment of the present disclosure, the received first message is parsed according to a predefined communication protocol framework to obtain relevant information about the first short address signal; based on the relevant information about the first short address signal, the first short address signal is determined from the first configuration file; based on the first short address signal, the allocated first storage address is determined; and based on the first storage address, the first message is responded to. Thus, regardless of the response the first device needs to make based on the first message, it is not necessary to design multiple communication protocols to implement communication for different responses, thereby avoiding the continuous iteration of communication protocols and thus helping to reduce the design cost of implementing inter-device communication protocols.

[0016] In some embodiments, short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

[0017] It is understood that in this embodiment of the disclosure, in the first configuration file, the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library. The short address signal library includes different types of short address signals, and the data types described by the different types of short address signals are different. Thus, since the operating system and / or supported data types of the second device communicating with the first device may differ from those of the first device, the different types of short address signals corresponding to different data types are beneficial to ensuring the compatibility and portability of messages between different devices.

[0018] In some embodiments, responding to a first message based on a first storage address includes: acquiring first data stored at the first storage address; and, if the target group to which the first short address signal belongs is an output signal group, writing the relevant information of the first short address signal and the first data into a second message according to a predefined communication protocol framework, and sending the second message to a second device.

[0019] It is understood that in this embodiment, the first data stored at the first storage address is obtained; when the target group is an output signal group, the relevant information of the first short address signal and the first data are written into a second message according to a predefined communication protocol framework, and the second message is sent to the second device. That is, the second device can determine the first short address signal based on the relevant information of the first short address signal, that is, based on the group information of the first short address signal, first determine the target group to which the first short address signal belongs in the first configuration file; then, based on the identification information of the first short address signal, determine the first short address signal from the target group, and obtain the first data accordingly; rather than traversing the identification information of each short address signal in the short address signal library to determine the first short address signal and thus obtain the first data; thus, it is beneficial to improve the efficiency of communication between devices.

[0020] In some embodiments, the first message is parsed according to a predefined communication protocol framework to obtain second data corresponding to the first short address signal; responding to the first message according to the first storage address includes: updating the second data to the second storage address if the target group to which the first short address signal belongs belongs to the input signal group; and / or, performing a corresponding function according to the second data if the target group to which the first short address signal belongs belongs to the functional application group.

[0021] It is understood that in the embodiments of this disclosure, when the target group belongs to the input signal group, the second data is updated to the second storage address; and / or, when the target group belongs to the functional application group, the corresponding function is executed according to the second data. Thus, compared to designing multiple protocols to implement data refresh or other corresponding functions in a communication application, continuous iteration of the communication protocol can be avoided, thereby helping to reduce the design cost of implementing inter-device communication.

[0022] In some embodiments, the relevant information of the first short address signal includes group information and identification information; determining the first short address signal from the first configuration file based on the relevant information of the first short address signal includes: determining the target group to which the first short address signal belongs in the first configuration file based on the group information of the first short address signal; and determining the first short address signal from the target group based on the identification information of the first short address signal.

[0023] It is understood that in this embodiment of the disclosure, during the communication process, the target group to which the first short address signal belongs is first determined based on the group information of the first short address signal, and then the target storage address corresponding to the short address signal in the message is determined based on the target group where the short address signal is located in the message. Thus, compared to traversing the identification information of each short address signal in the short address signal library to determine the first short address signal, first determining the target group where the first short address signal is located, and then determining the first short address signal within the target group, helps to narrow down the range of determination for the first short address signal, thereby reducing the time required for communication between devices and improving communication efficiency.

[0024] Thirdly, embodiments of this disclosure provide a communication configuration device, comprising: a parsing module configured to acquire and parse a first configuration file to obtain a short address signal set of a signal link group and a short address signal set of a functional application group; wherein the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group originates from the short address signal set of the signal link group; and an instantiation module configured to instantiate short address signals in the short address signal set of the signal link group to allocate storage addresses for the short address signals of the signal link group; the storage addresses are used to store data corresponding to the short address signals; wherein the first configuration file is used to cooperate with a predefined communication protocol framework to realize data interaction between a first device and a second device; the configuration files on which the first device and the second device communicate are both based on the first configuration file.

[0025] Fourthly, this disclosure provides a communication configuration device, comprising: a communication module configured to: receive a first message sent by a second device; parse the first message according to a predefined communication protocol framework to obtain relevant information of a first short address signal; the relevant information is used to identify the first short address signal; determine the first short address signal from a first configuration file according to the relevant information of the first short address signal; wherein the first configuration file includes a short address signal set of a signal link group and a short address signal set of a functional application group, the short address signals in the short address signal set of the signal link group are respectively assigned storage addresses, the storage addresses are used to store data corresponding to the short address signals; the storage addresses are obtained by pre-instantiating the short address signals in the short address signal set of the signal link group; the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group originates from the short address signal set of the signal link group; determine the assigned first storage address according to the first short address signal; and respond to the first message according to the first storage address.

[0026] Fifthly, embodiments of this disclosure provide a first device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements the method provided in the first aspect of embodiments of this disclosure; or, when the processor executes the program, it implements the method provided in the second aspect of embodiments of this disclosure.

[0027] In a sixth aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect of the present disclosure; or, when executed by a processor, the computer program implements the method provided in the second aspect of the present disclosure.

[0028] In a seventh aspect, embodiments of this disclosure provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the method provided in the first aspect of embodiments of this disclosure; or, when executed by a processor, the computer program or instructions implement the method provided in the second aspect of embodiments of this disclosure.

[0029] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0030] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to illustrate the technical solutions of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0031] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0032] Figure 1 is a schematic diagram of a communication protocol design method;

[0033] Figure 2 is a schematic diagram of a communication design method provided in an embodiment of this disclosure;

[0034] Figure 3 is a schematic diagram of the implementation process of a communication configuration method provided in an embodiment of this disclosure;

[0035] Figure 4 is a schematic diagram of a first configuration file provided in an embodiment of this disclosure;

[0036] Figure 5 is a schematic diagram of the implementation process of a communication configuration method provided in an embodiment of this disclosure;

[0037] Figure 6 is a schematic diagram of a message provided in an embodiment of this disclosure;

[0038] Figure 7 illustrates a mapping relationship between a first configuration file and a message provided in an embodiment of this disclosure;

[0039] Figure 8 is a schematic diagram of a communication configuration method and the implementation flow of the communication method provided in an embodiment of this disclosure;

[0040] Figure 9 is a schematic diagram of the communication configuration device provided in an embodiment of this disclosure;

[0041] Figure 10 is a schematic diagram of the communication device provided in an embodiment of this disclosure;

[0042] Figure 11 is a schematic diagram of the structure of the first device provided in an embodiment of this disclosure. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the specific technical solutions of this disclosure will be further described in detail below with reference to the accompanying drawings of the embodiments of this disclosure. The following embodiments are used to illustrate this disclosure, but are not intended to limit the scope of this disclosure.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing embodiments of this disclosure only and is not intended to be limiting of this disclosure.

[0045] In the following description, references to "some embodiments," "this embodiment," "this disclosure embodiment," and examples, etc., describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0046] The descriptions such as "first," "second," and "third" appearing in the embodiments of this disclosure are for illustrative purposes and to distinguish the objects being described. They do not indicate any order and do not represent a special limitation on the number of devices in the embodiments of this disclosure, nor do they constitute any limitation on the embodiments of this disclosure.

[0047] The communication protocol design method involves designing a communication protocol format and using terminal software code to assemble and unassemble packets, extract and organize data for message sending and receiving, thereby achieving data communication functionality.

[0048] Figure 1 is a schematic diagram of a communication protocol design method. As shown in Figure 1, 101 represents the communication protocol file, 102 represents the conversion protocol code, and 103 represents the energy storage valve device.

[0049] In one related technology, communication between the software tool and the device is achieved by registering short addresses. In this communication process, the host computer software parses the configuration file, obtains the short address strings of the communication signal points according to the functional dataset, sends the short address strings one by one to the slave computer to query the hash table database, and generates corresponding data numbers to be returned to the host computer for storage. When the host computer queries the signal, it retrieves the corresponding value based on the returned data number.

[0050] In the development of energy storage power devices, object-oriented communication of large amounts of data is required. Due to the complexity of the system and the characteristics of multiple data sources, it is necessary to focus on the key points of data transmission to achieve a fast and efficient design method. The shortcomings of the above methods include: when modifying or adding communication protocols, it involves code changes to both the sending and receiving parties of the software terminal, which has a significant impact and is cumbersome; the communication method of confirming signals by querying signals from both parties has low communication efficiency and is time-consuming.

[0051] In another related technology, a protocol chain is constructed by generating a protocol stack, creating a set of protocol methods for a specific purpose. Typically, in the development of power installations, communication requirements frequently increase, leading to the addition of new communication protocol text. Both communicating parties must then convert this protocol text into code, forming a customized development model.

[0052] The aforementioned communication protocol uses a linked list for data filling, resulting in relatively complex rules with specific logical requirements. Furthermore, it uses bitwise operations to define these rules, limiting its scalability. Additionally, the protocol specifies corresponding service types, which have certain industry-specific requirements and are not universally applicable. While developing code protocols using Word protocol text is relatively simple, it lacks flexibility and universality from a platform framework perspective, making protocol additions cumbersome.

[0053] In another related technology, a communication protocol design method, terminal, and computer storage medium are provided. The method includes the following steps: obtaining message type and service type, and storing message type and service type in a first preset position based on a first format; obtaining user data, parsing the user data into a first valid information carrier and a second valid information carrier, and placing them in a second preset position and a third preset position respectively; constructing a first linked list of the first valid information carrier and a second linked list of the second valid information carrier, and storing the elements in the first linked list in a second format and the elements in the second linked list in a third format; generating a message protocol body that conforms to the communication protocol design format based on the positional relationship and format settings of the first preset position, the second preset position, and the third preset position. This method solves the problems of low effective information in message packets, message loss in weak network environments, and low message scalability in communication protocols, and improves the proportion of effective information in message packets and the scalability of communication protocols.

[0054] In another related technology, a method for generating device data configuration files, a data uploading method, and a device are provided. This method primarily focuses on the design of message and communication service methods for object communication between computers, mainly targeting the design of communication protocols for user data information. The communication protocol content and communication control are defined through linked lists and customized bit control.

[0055] In related technologies, the main focus is on the design of communication protocols between user service objects. It relies on the communication foundation of computer infrastructure, considers additional service information content, and designs object-oriented content. However, it is not suitable for application scenarios of embedded power devices. The expansion and portability of objects are limited. It is mainly a computer communication service platform that focuses on object data. It cannot simplify complex processes and is not suitable for the development of flexible and high real-time embedded devices.

[0056] Figure 2 is a schematic diagram of a communication design method provided in an embodiment of this disclosure. As shown in Figure 2, 201 represents a first configuration file, 202 represents a first device, 203 represents a second device, and 204 represents a basic communication framework for platform software.

[0057] This disclosure provides a communication configuration method applied to a first device. Figure 3 is a schematic flowchart of the implementation of the communication configuration method provided in this disclosure. As shown in Figure 3, the method may include the following steps 301 and 302:

[0058] Step 301: Obtain and parse the first configuration file to get the short address signal set of the signal link group and the short address signal set of the functional application group;

[0059] The signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group is derived from the short address signal set of the signal link group; the first configuration file is used for communication between the first device and the second device;

[0060] Step 302: Instantiate the short address signals in the short address signal set of the signal link group to allocate storage addresses for the short address signals of the signal link group; the storage addresses are used to store the data corresponding to the short address signals.

[0061] The first configuration file is used to cooperate with a predefined communication protocol framework to realize data interaction between the first device and the second device; the configuration file on which the first device and the second device communicate is the first configuration file.

[0062] It is understood that in this embodiment, the first configuration file includes a signal link group and a function application group. Short address signals in the signal link group are each assigned a storage address, and the short address signal set of the function application group originates from the short address signal set of the signal link group. Thus, on the one hand, by dividing the short address signals into multiple groups in the first configuration file, with different groups corresponding to different functions, when a new function or module needs to be added, only a new short address signal group needs to be added to the first configuration file, and the corresponding configuration information needs to be supplemented in that group. There is no need to redevelop the software code implementing the corresponding function, thereby reducing repetitive development costs when the first device expands its application scenarios or changes its functions. On the other hand, by dividing the short address signals into input signal groups, output signal groups, and parameter signal groups according to the data flow direction in the first configuration file, it is convenient to maintain and change the data flow direction. Communication with the second device is achieved using a predefined communication protocol framework and the first configuration file, and both the first and second devices use the first configuration file for communication. In this way, a unified configuration file avoids problems such as numerous protocols, customization, and low communication mechanism efficiency in device development.

[0063] Regarding the phrase "the first configuration file is used for communication between the first device and the second device," it can be understood that in this embodiment of the disclosure, the first configuration file is the configuration file on which the first device and the second device communicate.

[0064] Regarding the statement that "the short address signal set of the functional application group originates from the short address signal set of the signal link group," it can be understood that in this embodiment, the storage address corresponding to the short address signal of the functional application group is allocated when the short address signal of the signal link group is instantiated. The storage address corresponding to the same short address signal in the signal link group and the functional application group is the same.

[0065] It should be understood that in the embodiments of this disclosure, there are no limitations on the signal link group and the functional application group; as the names suggest, the signal link group is used to realize the flow of data, and the functional application group is used to realize different functions. There are no limitations on the short address signals included in the signal link group and the functional application group; nor are there any limitations on the number of short address signals included in the signal link group and the functional application group.

[0066] In this embodiment, the signal link group includes an input signal group, an output signal group, and a parameter signal group. The input signal group is used to write received data internally; the output signal group is used to read internal data and send the read data out; and the parameter signal group is used to write received parameters internally and / or to read internal parameters. The number of functional application groups is greater than or equal to one. Exemplarily, in some embodiments, the functional application group includes one or more of the following: a debugging information group, a setting function group, a remote signaling function group, a version query group, an alarm query group, a status monitoring group, etc.

[0067] It should be understood that the first device and the second device are not limited in the embodiments disclosed herein. In some embodiments, the first device is a debugging tool / terminal and the second device is an energy storage valve device. In other embodiments, the first device is an energy storage valve device and the second device is a debugging tool / terminal. In still other embodiments, the first device is a main central processing unit (CPU) and the second device is a slave CPU; or the first device is a slave CPU and the second device is the main CPU; or the first device is a slave CPU and the second device is a slave CPU.

[0068] In this embodiment of the disclosure, no limitation is made to the predefined communication protocol framework. The predefined communication protocol framework defines the data exchange format, communication process, error handling mechanism, and other aspects between the communicating parties to ensure the stability and reliability of communication.

[0069] In some embodiments, short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

[0070] It is understood that in this embodiment of the disclosure, in the first configuration file, the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library. The short address signal library includes different types of short address signals, and the data types described by the different types of short address signals are different. Thus, since the operating system and / or supported data types of the second device communicating with the first device may differ from those of the first device, the different types of short address signals corresponding to different data types are beneficial to ensuring the compatibility and portability of messages between different devices.

[0071] It should be understood that, in the embodiments disclosed herein, the data type of the data and the corresponding data described by the short address signal are not limited.

[0072] In some embodiments, data attributes refer to one or more data fields that describe the characteristics of a data object. These fields are used to represent the data object's type, format, range, precision, default value, symbol, variability, byte order, etc.

[0073] In some embodiments, the types of data include at least one of the following: character data class, string data class, integer data class, floating-point data class, boolean data class, structured data class, text class, array class, structure class, pointer class, etc.

[0074] It should be understood that, in this embodiment of the disclosure, since the short address signals in the short address signal set of the signal link group and the short address signal set of the functional application group both belong to the short address signal library, the first configuration file includes the short address signal library.

[0075] For example, as one possible implementation, FIG4 is a schematic diagram of a first configuration file provided in an embodiment of the present disclosure. As shown in FIG4, 40 represents a configuration file; 401 represents configuring short address signals according to data types; wherein, Module represents different devices, and Sig1-n represents short address signals; 402 represents configuring signal link groups based on short address signals; wherein GROUPn represents different groups of signal link groups, and sign represents the identification information of short address signals; 403 represents configured functional application groups; wherein GROUPn represents different groups of functional application groups, and sign represents the identification information of short address signals.

[0076] In some embodiments, signal link groups are grouped based on the main CPU process and whether data is written or read. These signal link groups define the flow of data within and between boards within the main CPU program. Function application groups define the data grouping of the main CPU program, specifying the flow of internal models, data blocks, and datasets.

[0077] In some embodiments, Figure 5 is a schematic diagram of the implementation flow of a communication configuration method provided in this disclosure. As shown in Figure 5, before parsing the first configuration file, the communication method further includes the following steps 501 to 504:

[0078] Step 501: Determine if a configuration file to be verified exists;

[0079] Step 502: If a configuration file to be verified exists, obtain the first verification information corresponding to the configuration file to be verified;

[0080] Step 503: Obtain the second verification information of the configuration file on which the communication is based from the second device side;

[0081] Step 504: If the first verification information matches the second verification information, the configuration file to be verified is used as the first configuration file.

[0082] It is understood that in this embodiment of the present disclosure, when a configuration file to be verified exists, first verification information corresponding to the configuration file to be verified is obtained; second verification information of the configuration file on which communication is based is obtained from the second device; if it is determined that the first verification information and the second verification information match, the configuration file to be verified is used as the first configuration file. This helps ensure that the configuration files used by the first device and the second device are the same, thereby avoiding problems such as inability to communicate directly or low communication efficiency caused by inconsistent configuration files used by the communicating parties.

[0083] It should be understood that, in this embodiment of the disclosure, the first verification information and the second verification information are not limited. Verification information refers to the information upon which the verification process relies to ensure the correctness, integrity, and consistency of the configuration file.

[0084] In some embodiments, the verification information is Cyclic Redundancy Check (CRC).

[0085] It is understood that, in this embodiment of the disclosure, matching the first verification information with the second verification information means: calculating a fixed-length verification code from the data of the first device according to certain rules; calculating another fixed-length verification code from the data of the second device using the same algorithm; and then comparing the calculated verification codes. If the verification codes match, then a match is found.

[0086] In some embodiments, the communication method further includes: in the absence of a configuration file to be verified, or in the case where the first verification information does not match the second verification information, obtaining the configuration file on which the second device communication is based and using the configuration file on which the second device communication is based as the first configuration file.

[0087] It is understood that in this embodiment of the disclosure, if there is no configuration file to be verified, or if the first verification information does not match the second verification information, the configuration file on which the second device communicates is obtained as the first configuration file. This helps ensure that the first device and the second device use the same configuration file, thereby avoiding problems such as inability to communicate directly or low communication efficiency caused by inconsistent configuration files used by the communicating parties.

[0088] This disclosure provides a communication method applied to a first device, comprising: receiving a first message sent by a second device; parsing the first message according to a predefined communication protocol framework to obtain relevant information of a first short address signal; the relevant information is used to identify the first short address signal; determining the first short address signal from a first configuration file based on the relevant information of the first short address signal; determining a first allocated storage address based on the first short address signal; and responding to the first message based on the first storage address; wherein the first configuration file includes a short address signal set of a signal link group and a short address signal set of a functional application group, the short address signals in the short address signal set of the signal link group are respectively allocated storage addresses, and the storage addresses are used to store data corresponding to the short address signals; the storage addresses are obtained by pre-instantiating the short address signals in the short address signal set of the signal link group; the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group originates from the short address signal set of the signal link group.

[0089] It is understood that, in this embodiment of the present disclosure, the received first message is parsed according to a predefined communication protocol framework to obtain relevant information about the first short address signal; based on the relevant information about the first short address signal, the first short address signal is determined from the first configuration file; based on the first short address signal, the allocated first storage address is determined; and based on the first storage address, the first message is responded to. Thus, regardless of the response the first device needs to make based on the first message, it is not necessary to design multiple communication protocols to implement communication for different responses, thereby avoiding the continuous iteration of communication protocols and thus helping to reduce the design cost of implementing inter-device communication protocols.

[0090] It should be understood that, in this embodiment of the disclosure, the relevant information of the first short address signal is not limited. The relevant information of the first short address signal may be information determining the location of the first short address signal and / or information characterizing the first short address signal.

[0091] In some embodiments, the relevant information of the first short address signal includes group information and identification information; determining the first short address signal from the first configuration file based on the relevant information of the first short address signal includes: determining the target group to which the first short address signal belongs in the first configuration file based on the group information of the first short address signal; and determining the first short address signal from the target group based on the identification information of the first short address signal.

[0092] It is understood that in this embodiment of the disclosure, during the communication process, the target group to which the first short address signal belongs is first determined based on the group information of the first short address signal, and then the target storage address corresponding to the short address signal in the message is determined based on the target group where the short address signal is located in the message. Thus, compared to traversing the identification information of each short address signal in the short address signal library to determine the first short address signal, first determining the target group where the first short address signal is located, and then determining the first short address signal within the target group, helps to narrow down the range of determination for the first short address signal, thereby reducing the time required for communication between devices and improving communication efficiency.

[0093] It should be understood that, in this embodiment of the disclosure, the information for determining the location of the first short address signal can be understood as the group information of the group to which the first short address signal belongs; the information characterizing the first short address signal can be understood as the identification information of the first short address signal.

[0094] In this embodiment of the disclosure, group information is used to identify the target group to which the short address signal belongs; identification information is used to identify the corresponding short address signal.

[0095] Exemplarily, as one possible implementation, Figure 6 is a schematic diagram of a message provided in an embodiment of this disclosure. As shown in Figure 6, the message includes a communication protocol header 601, a signal sequence number group 602, and a communication protocol tail 603. The communication protocol header 601 includes a message control header 6011 and a function class group 6012. The message control header 6011 includes at least one of the following: message length, message sequence number, framing marker, and routing information. The function class group includes at least one of the following: function category, signal base address, transceiver object, and data selection. The signal sequence number group 602 loads communication data GROUP group dataset data or scattered data. The signal sequence number group 602 includes multiple signal sequence numbers 6021, and different signal sequence numbers include at least one of the following: signal sequence number offset, signal data length, and signal value. The communication protocol tail 603 includes a message control tail 6031, which includes a CRC checksum. The signal sequence number offset and the signal base address together constitute the identification information of the short address signal.

[0096] In some embodiments, the structure of the above message is part of the communication framework.

[0097] Figure 7 illustrates a mapping relationship between a first configuration file and a message according to an embodiment of this disclosure. As shown in Figure 7, the functional group 6012 includes group information of the signal link group 402 or the group information of the functional application group 403; the signal sequence number 6021 includes the part of the data stored at the storage address corresponding to the short address signal in the signal link group 402 that is different from other data, or includes the part of the data stored at the storage address corresponding to the short address signal in the functional application group 403 that is different from other data. The data included in the signal sequence number 6021 and the data represented by the signal base address in the functional group 6012 are the data stored at the storage address corresponding to the short address signal in the signal link group 402 or the data stored at the storage address corresponding to the short address signal in the functional application group 403.

[0098] In some embodiments, the signal link group is used to refresh data (with a specific communication process), and the function application group is used for communication / function application between the energy storage valve device and the commissioning tool / terminal (with a specific communication process).

[0099] In some embodiments, short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

[0100] It should be understood that, in the embodiments of this application, the understanding of "the short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signal set of the functional application group both belong to the short address signal library, and the short address signal library includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different" can be referred to the description in the communication configuration method provided in the embodiments of this application.

[0101] In some embodiments, responding to a first message based on a first storage address includes: acquiring first data stored at the first storage address; and, if the target group to which the first short address signal belongs is an output signal group, writing the relevant information of the first short address signal and the first data into a second message according to a predefined communication protocol framework, and sending the second message to a second device.

[0102] It is understood that in this embodiment, the first data stored at the first storage address is obtained; when the target group is an output signal group, the relevant information of the first short address signal and the first data are written into a second message according to a predefined communication protocol framework, and the second message is sent to the second device. That is, the second device can determine the first short address signal based on the relevant information of the first short address signal, i.e., based on the group information of the first short address signal, first determine the target group to which the first short address signal belongs in the first configuration file; then, based on the identification information of the first short address signal, determine the first short address signal from the target group, and based on this, obtain the first data; rather than traversing the identification information of each short address signal in the short address signal library to determine the first short address signal and thus obtain the first data; this is beneficial to improving the efficiency of communication between devices. In some embodiments, the second device determines the relevant information of the first short address signal according to a predefined communication protocol framework; generates a first message based on the relevant information of the first short address signal; and sends the first message to the first device.

[0103] In some embodiments, the second device receives a second message sent by the first device based on the first message; and according to a predefined communication protocol framework, parses the second message to obtain relevant information of the first short address signal and first data corresponding to the first short address signal; and processes the first data according to the relevant information of the first short address signal.

[0104] In some embodiments, the first message is parsed according to a predefined communication protocol framework to obtain second data corresponding to the first short address signal; responding to the first message according to the first storage address includes: updating the second data to the second storage address if the target group to which the first short address signal belongs belongs to the input signal group; and / or, performing a corresponding function according to the second data if the target group to which the first short address signal belongs belongs to the functional application group.

[0105] It is understood that in the embodiments of this disclosure, when the target group belongs to the input signal group, the second data is updated to the second storage address; and / or, when the target group belongs to the functional application group, the corresponding function is executed according to the second data. Thus, compared to designing multiple protocols to implement data refresh or other corresponding functions in a communication application, continuous iteration of the communication protocol can be avoided, thereby helping to reduce the design cost of implementing inter-device communication.

[0106] In some embodiments, based on the group information of the first short address signal, it is determined that the target group to which the first short address signal belongs in the first configuration file belongs to the input signal group; based on the identification information of the first short address signal, the first short address signal is determined from the target group; based on the first short address signal, the first allocated storage address is determined; and the second data is updated to the second storage address.

[0107] In other embodiments, based on the group information of the first short address signal, it is determined that the target group to which the first short address signal belongs in the first configuration file belongs to the functional application group; based on the identification information of the first short address signal, the first short address signal is determined from the target group; based on the first short address signal, the first allocated storage address is determined; and the corresponding function is executed based on the second data.

[0108] In some other embodiments, based on the group information of the first short address signal, it is determined that the target group to which the first short address signal belongs in the first configuration file belongs to the input signal group and the functional application group; based on the identification information of the first short address signal, the first short address signal is determined from the target group; based on the first short address signal, the first allocated storage address is determined; and the second data is updated to the second storage address.

[0109] For example, as one possible implementation, the first device is a debugging tool / terminal. Figure 8 is a schematic diagram of the implementation flow of a communication configuration method and a communication method provided in an embodiment of this disclosure. As shown in Figure 8, the method includes the following steps 801 to 811:

[0110] Step 801: Read the configuration file (i.e., an example of the first configuration file);

[0111] Step 802: Determine if the configuration file has been read; if yes, proceed to step 803; otherwise, proceed to step 806.

[0112] Step 803, CRC verification of the configuration file;

[0113] Here, the configuration file is the configuration file for the first device;

[0114] Step 804: Establish device connection and obtain CRC;

[0115] The device here is an energy storage valve device;

[0116] Step 805: Determine if the configured CRC is consistent; if yes, proceed to step 808; otherwise, proceed to step 807.

[0117] Step 806: Establish device connection;

[0118] The device here is an energy storage valve device;

[0119] Step 807, Obtain the configuration file;

[0120] The configuration file obtained here is the configuration file of the energy storage valve device;

[0121] Step 808: Parse the configuration file;

[0122] Step 809: Obtain the signal library and communication protocol framework (i.e., an example of a predefined communication protocol framework);

[0123] Step 810: Perform communication sending and receiving according to terminal operations;

[0124] Step 811: Determine whether to exit; if yes, end; otherwise, proceed to step 810.

[0125] Based on this, an exemplary application of the embodiments of this disclosure in a practical application scenario will be described below.

[0126] This disclosure provides a communication method. In this disclosure, (1) the functions and communication data of the energy storage valve device (i.e., an example of the first device or the second device, hereinafter referred to as the device) are implemented through a configuration file (i.e., a first example of the first configuration file), such as an configuration file format like Extensible Markup Language (XML), an initialization file (ini), or a text file (txt); the configuration file is used to configure the data, functions, and communication, and the platform tool software is used to configure the device signals, functions, and communication requirements.

[0127] (2) First, all device data are configured into the short address signal library in the form of short address and parameters, which includes several different signal types.

[0128] (3) After building the signal library, the signal link configuration is carried out. This part of the configuration is divided into three major groups of data sets: input, output and parameters. The main CPU board is the main one, and the configuration is based on the signal flow direction. When the program parses the configuration file to initialize the data, the signals in this group will be instantiated and specific addresses will be assigned for function mapping and use.

[0129] (4) The signals of the functional application group all originate from the signal link group. By configuring and instantiating the signals to the corresponding functional group, the data description of functions and external communication with the host computer software and other terminals can be realized.

[0130] (5) In this type of communication design method, the framework of the platform communication protocol will be constrained, including header control messages and trailer information.

[0131] (6) Based on (3), the configuration dataset can be loaded into the device for internal communication. The process communicates through data mapping, while the board-to-board communication loads the configuration data into the protocol frame for communication.

[0132] (7) Based on the configurable dataset in (4), the host computer can summon data through single-point data or dataset, and the slave computer or terminal can respond to the dataset in (4) through single-point data or dataset.

[0133] (8) In the actual implementation of the communication protocol, when the device is powered on and initialized, it is first verified that the communication configuration of the sender and receiver is consistent. Both parties use this as the rule for protocol parsing and packaging, including communication framing, communication routing, communication interface, etc. In the data configuration part, the configured data group information, data value, and sequence number can be directly loaded into the protocol to realize the sending and receiving of the communication protocol.

[0134] This disclosure provides a communication method, which is a flexible and efficient communication protocol applicable to energy storage valve devices. This disclosure employs a platform-based approach to design a set of intuitive, simple, efficient, and highly scalable protocol rules, standardizing internal and external communication rules. The communication method provided by this disclosure avoids problems such as numerous and customized protocols and low communication mechanism efficiency in device development. The communication method provided by this disclosure achieves stable, reliable, and universal communication protocol interfaces through a unified communication design framework.

[0135] The communication method provided in this disclosure addresses the following problems: specifying communication signals and rules through existing platform function configuration files; determining the intra-board and inter-board communication signal dataset, sending and receiving objects, and communication cycle requirements through configuration files; defining the communication signal dataset for external host computers through configuration files, providing a general interface for querying and setting data; defining a platform-wide general protocol framework to determine the control frame header and frame trailer, loading the signal sequence number and value into the protocol framework as needed during communication, and having both sending and receiving parties use the same communication configuration for message parsing and assembly.

[0136] This disclosure provides a communication method that is a general communication protocol configuration method for a device. This method facilitates protocol configuration extension and development through signal configuration. The communication method provided in this disclosure implements a general platform-based communication framework technology for devices, reducing communication protocol maintenance work and facilitating portability and application expansion. The communication method provided in this disclosure is logically simple, data-oriented, and highly efficient.

[0137] It should be noted that although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps; or steps from different embodiments may be combined into a new technical solution.

[0138] Based on the foregoing embodiments, this disclosure provides a communication device, which includes the included modules and the units included in each module, which can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be an AI acceleration engine (such as NPU), GPU, central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.

[0139] Figure 9 is a schematic diagram of the communication configuration device provided in an embodiment of this disclosure. As shown in Figure 9, the communication configuration device 90 includes a parsing module 901 and an instantiation module 902, wherein:

[0140] The parsing module 901 is configured to acquire and parse the first configuration file to obtain the short address signal set of the signal link group and the short address signal set of the function application group; wherein, the signal link group includes the input signal group, the output signal group, and the parameter signal group; the short address signal set of the function application group is derived from the short address signal set of the signal link group.

[0141] The instantiation module 902 is configured to instantiate the short address signals in the short address signal set of the signal link group, so as to allocate storage addresses for the short address signals of the signal link group; the storage addresses are used to store the data corresponding to the short address signals.

[0142] The first configuration file is used to cooperate with a predefined communication protocol framework to realize data interaction between the first device and the second device; the configuration file on which the first device and the second device communicate is the first configuration file.

[0143] In some embodiments, short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

[0144] In some embodiments, the communication configuration device 90 further includes a determining module, an acquiring module, and a matching module, wherein, before parsing the first configuration file, the determining module is configured to determine whether a configuration file to be verified exists; the acquiring module is configured to acquire first verification information corresponding to the configuration file to be verified if a configuration file to be verified exists; the acquiring module is further configured to acquire second verification information of the configuration file on which the communication is based from the second device side; and the matching module is configured to use the configuration file to be verified as the first configuration file if it is determined that the first verification information matches the second verification information.

[0145] In some embodiments, the acquisition module is further configured to acquire the configuration file on which the second device communication is based and use the configuration file on which the second device communication is based as the first configuration file if there is no configuration file to be verified, or if the first verification information does not match the second verification information.

[0146] Figure 10 is a schematic diagram of the structure of a communication device provided in an embodiment of this disclosure. As shown in Figure 10, the communication device 100 includes a communication module 1001, wherein: the communication module 1001 is configured to: receive a first message sent by a second device; parse the first message according to a predefined communication protocol framework to obtain relevant information of a first short address signal; the relevant information is used to identify the first short address signal; determine the first short address signal from a first configuration file according to the relevant information of the first short address signal; wherein the first configuration file includes a short address signal set of a signal link group and a short address signal set of a functional application group, the short address signals in the short address signal set of the signal link group are respectively allocated storage addresses, the storage addresses are used to store data corresponding to the short address signals; the storage addresses are obtained by pre-instantiating the short address signals in the short address signal set of the signal link group; the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group originates from the short address signal set of the signal link group; determine the allocated first storage address according to the first short address signal; and respond to the first message according to the first storage address.

[0147] In some embodiments, short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signal set of the function application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

[0148] In some embodiments, the relevant information of the first short address signal includes group information and identification information; determining the first short address signal from the first configuration file based on the relevant information of the first short address signal includes: determining the target group to which the first short address signal belongs in the first configuration file based on the group information of the first short address signal; and determining the first short address signal from the target group based on the identification information of the first short address signal.

[0149] In some embodiments, responding to a first message based on a first storage address includes: acquiring first data stored at the first storage address; and, if the target group to which the first short address signal belongs is an output signal group, writing the relevant information of the first short address signal and the first data into a second message according to a predefined communication protocol framework, and sending the second message to a second device.

[0150] In some embodiments, the first message is parsed according to a predefined communication protocol framework to obtain second data corresponding to the first short address signal; responding to the first message according to the first storage address includes: updating the second data to the second storage address if the target group to which the first short address signal belongs belongs to the input signal group; and / or, performing a corresponding function according to the second data if the target group to which the first short address signal belongs belongs to the functional application group.

[0151] The description of the above apparatus embodiments is similar to that of the above method embodiments, and has similar beneficial effects. For technical details not disclosed in the apparatus embodiments of this disclosure, please refer to the description of the method embodiments of this disclosure for understanding.

[0152] It should be noted that the module division in this embodiment is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, exist as separate physical units, or be integrated into one unit by two or more units. The integrated units can be implemented in hardware, as software functional units, or a combination of software and hardware.

[0153] It should be noted that, in the embodiments of this disclosure, if the above methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this disclosure, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause the first electronic device to execute all or part of the methods of the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this disclosure are not limited to any specific hardware and software combination.

[0154] This disclosure provides a first device. FIG11 is a schematic diagram of the structure of the first device provided in this disclosure. As shown in FIG11, the first device 110 includes a memory 1101 and a processor 1102. The memory 1101 stores a computer program that can run on the processor 1102. When the processor 1102 executes the program, it implements the steps in the method provided in the above embodiment.

[0155] It should be noted that the memory 1101 is configured to store instructions and applications executable by the processor 1102, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 1102 and the various modules in the first device 110. It can be implemented by flash memory or random access memory (RAM).

[0156] This disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the above embodiments.

[0157] This disclosure provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the method provided in the above-described method embodiments.

[0158] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this disclosure, please refer to the descriptions of the method embodiments of this disclosure for understanding.

[0159] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this disclosure. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this disclosure, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this disclosure. The sequence numbers of the above-described embodiments are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.

[0160] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.

[0161] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0162] In the several embodiments provided in this disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.

[0163] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.

[0164] In addition, each functional module in the various embodiments of this disclosure can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.

[0165] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0166] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this disclosure, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause the first device to execute all or part of the methods of the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0167] The methods disclosed in the several method embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method embodiments.

[0168] The features disclosed in the several product embodiments provided in this disclosure can be combined arbitrarily without conflict to obtain new product embodiments.

[0169] The features disclosed in the several method or device embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0170] The above description is merely an embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A communication configuration method, the method being applied to a first device, the method comprising: The first configuration file is obtained and parsed to obtain the short address signal set of the signal link group and the short address signal set of the function application group; wherein, the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the function application group is derived from the short address signal set of the signal link group; the first configuration file is used for communication between the first device and the second device; The short address signals in the short address signal set of the signal link group are instantiated to allocate storage addresses for the short address signals of the signal link group; the storage addresses are used to store the data corresponding to the short address signals. The first configuration file is used to cooperate with a predefined communication protocol framework to realize data interaction between the first device and the second device; the configuration file on which the first device and the second device communicate is the first configuration file.

2. The method according to claim 1, wherein, The short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signals in the short address signal set of the functional application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

3. The method according to claim 1 or 2, wherein, Before parsing the first configuration file, the method further includes: Determine if a configuration file to be verified exists; If the configuration file to be verified exists, obtain the first verification information corresponding to the configuration file to be verified; Obtain the second verification information of the configuration file on which the communication is based from the second device side; If it is determined that the first verification information matches the second verification information, the configuration file to be verified is used as the first configuration file.

4. The method according to claim 3, wherein, The method further includes: If the configuration file to be verified does not exist, or if the first verification information does not match the second verification information, the configuration file on which the second device communication is based is obtained and used as the first configuration file.

5. A communication method, the method being applied to a first device, the method comprising: Receive the first message sent by the second device; According to a predefined communication protocol framework, the first message is parsed to obtain relevant information about the first short address signal; The relevant information is used to identify the first short address signal; Based on the relevant information of the first short address signal, the first short address signal is determined from the first configuration file; The first allocated storage address is determined based on the first short address signal; Respond to the first message based on the first storage address; The first configuration file includes a short address signal set for a signal link group and a short address signal set for a functional application group. Each short address signal in the short address signal set of the signal link group is assigned a storage address, which is used to store the data corresponding to the short address signal. The storage address is obtained by pre-instantiating the short address signals in the short address signal set of the signal link group. The signal link group includes an input signal group, an output signal group, and a parameter signal group. The short address signal set of the functional application group originates from the short address signal set of the signal link group.

6. The method according to claim 5, wherein, The short address signals in the short address signal set are used to describe the attributes of the corresponding data; the short address signals in the short address signal set of the signal link group and the short address signals in the short address signal set of the functional application group both belong to the short address signal library, which includes different types of short address signals, and the data types of the corresponding data described by the different types of short address signals are different.

7. The method according to claim 5 or 6, wherein, The step of responding to the first message according to the first storage address includes: Obtain the first data stored at the first storage address; When the target group to which the first short address signal belongs is the output signal group, the relevant information of the first short address signal and the first data are written into the second message according to the predefined communication protocol framework, and the second message is sent to the second device.

8. The method according to claim 5 or 6, wherein, According to a predefined communication protocol framework, the first message is parsed to obtain the second data corresponding to the first short address signal; The step of responding to the first message according to the first storage address includes: If the target group to which the first short address signal belongs belongs to the input signal group, the second data is updated to the second storage address; And / or, If the target group to which the first short address signal belongs belongs to the functional application group, the corresponding function is executed according to the second data.

9. The method according to claim 7 or 8, wherein, The relevant information of the first short address signal includes group information and identification information; Determining the first short address signal from the first configuration file based on relevant information of the first short address signal includes: Based on the group information of the first short address signal, determine the target group to which the first short address signal belongs in the first configuration file; The first short address signal is determined from the target group based on the identification information of the first short address signal.

10. A communication configuration device, the device comprising: The parsing module is configured to acquire and parse a first configuration file to obtain a short address signal set for a signal link group and a short address signal set for a functional application group; wherein, the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set for the functional application group originates from the short address signal set of the signal link group; wherein, the first configuration file is used to cooperate with a predefined communication protocol framework to realize data interaction between a first device and a second device; the configuration file on which the first device and the second device communicate is the first configuration file; The instantiation module is configured to instantiate short address signals in the short address signal set of the signal link group, so as to allocate storage addresses for the short address signals of the signal link group; the storage addresses are used to store the data corresponding to the short address signals.

11. A communication device, wherein, The device includes: The communication module is configured as follows: Receive the first message sent by the second device; According to a predefined communication protocol framework, the first message is parsed to obtain relevant information about the first short address signal; the relevant information is used to identify the first short address signal. Based on the relevant information of the first short address signal, the first short address signal is determined from the first configuration file; wherein, the first configuration file includes a short address signal set of a signal link group and a short address signal set of a functional application group, and the short address signals in the short address signal set of the signal link group are respectively assigned storage addresses, the storage addresses being used to store the data corresponding to the short address signals; the storage addresses are obtained by pre-instantiating the short address signals in the short address signal set of the signal link group; the signal link group includes an input signal group, an output signal group, and a parameter signal group; the short address signal set of the functional application group originates from the short address signal set of the signal link group; The first allocated storage address is determined based on the first short address signal; Respond to the first message based on the first storage address.

12. A first device comprising a memory and a processor, the memory storing a computer program executable on the processor, wherein the processor executes the program to implement the method of any one of claims 1 to 4; or, the processor executes the program to implement the method of any one of claims 5 to 9.

13. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of claims 1 to 4; or, when executed by a processor, the computer program implements the method as described in any one of claims 5 to 9.

14. A computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 4; or, when executed by a processor, the computer program or instructions implement the steps of the method according to any one of claims 5 to 9.

Citation Information

Patent Citations

  • 61850 model short address configuration and resource mapping method suitable for IED device

    CN110602265A

  • Method and system for realizing communication interconnection of various devices based on intelligent message template

    CN114928648A

  • Address mapping method and device of protocol data packet, electronic equipment and storage medium

    CN117591440A

  • Method for the allocation of short addresses in illumination systems

    US20060109203A1