Communication method and device, equipment, storage medium and program product
By using a unified configuration file and a predefined communication protocol framework, the problem of complex communication protocols in energy storage valve devices is solved, enabling efficient communication and low-cost expansion between devices.
Patent Information
- Application Number
- CN202411182591.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2026-03-03
AI Technical Summary
The development of existing communication protocols for energy storage valve devices is complex. When developing across devices, the different communication requirements lead to repetitive and tedious protocol development, which cannot be modularly ported. When adding new protocols, the relevant software needs to be modified significantly, resulting in low communication efficiency.
It adopts a unified configuration file and a predefined communication protocol framework. By dividing the signal link group and the function application group, it simplifies the extension of the communication protocol and the addition of functions. It uses the storage address of the signal link group and the predefined framework for communication, ensuring compatibility and portability between devices.
It reduces redundant development costs, improves communication efficiency between devices, lowers communication protocol design costs, and avoids the problems of low efficiency in protocol iteration and customization.
Smart Images

Figure CN121603545A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of energy storage systems, and includes, but is not limited to, a communication method and device, equipment, storage medium, and program product. Background Technology
[0002] 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
[0003] This application provides a communication method, apparatus, device, storage medium, and program product, wherein:
[0004] In a first aspect, embodiments of this application provide a communication 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 at least one 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 at least one functional application group originates from the short address signal set of the signal link group; the first configuration file is used for communication between the first device and a second device; instantiating 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; and communicating with the second device using a predefined communication protocol framework and the first configuration file; wherein the configuration file on which the first device and the second device communicate is the first configuration file.
[0005] 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, in the first configuration file, short address signals are divided into multiple groups, with different groups corresponding to different functions. Therefore, 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 that implements 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.
[0006] In some embodiments, short address signals are used to describe the attributes of the corresponding data; the short address signal set of the signal link group and the short address signal set of the functional application group are derived from 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.
[0007] It is understood that, in the embodiments of this application, the short address signal sets of the signal link group and the functional application group in the first configuration file are derived from the short address signal library. 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. 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.
[0008] In some embodiments, communication with a second device is performed using a predefined communication protocol framework and a first configuration file, including: receiving a first message sent by the second device; parsing the first message according to the 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 the first configuration file based on the relevant information of the first short address signal; determining the allocated first storage address based on the first short address signal; and responding to the first message based on the first storage address.
[0009] It is understood that, in this embodiment of the application, according to the communication protocol framework, the received first message is parsed 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.
[0010] 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 communication protocol framework, and sending the second message to a second device.
[0011] 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 the 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.
[0012] In some embodiments, according to the communication protocol framework, the first message is parsed to obtain the 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 the 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.
[0013] It is understood that, in the embodiments of this application, 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.
[0014] 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.
[0015] It is understood that, in this embodiment of the application, 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.
[0016] In some embodiments, the communication method further includes: before parsing the first configuration file, the 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; 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.
[0017] It is understood that in this embodiment, 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; and if 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.
[0018] In some embodiments, the communication method further includes: in the case that there is no configuration file to be verified, or 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.
[0019] It is understood that in this embodiment, 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 used by the second device for communication is obtained as the first configuration file. This helps ensure that the first and second devices 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.
[0020] Secondly, embodiments of this application provide a communication 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 at least one 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 at least one functional application group originates from the short address signal set of the signal link group; the first configuration file is used for communication between a first device and a second device; an instantiation module configured to instantiate 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; and a communication module configured to communicate with the second device using a predefined communication protocol framework and the first configuration file; wherein the configuration file on which the first device and the second device communicate is the first configuration file.
[0021] Thirdly, embodiments of this application provide a first device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement the method provided in the first aspect of embodiments of this application.
[0022] Fourthly, embodiments of this application 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 embodiments of this application.
[0023] Fifthly, embodiments of this application 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 application.
[0024] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0025] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application. Obviously, the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0026] 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.
[0027] Figure 1 This is a schematic diagram of a design method for a communication protocol;
[0028] Figure 2 A schematic diagram illustrating a communication design method provided in an embodiment of this application;
[0029] Figure 3 A schematic diagram of the implementation process of a communication method provided in this application embodiment. Figure 1 ;
[0030] Figure 4 A schematic diagram of a first configuration file provided in an embodiment of this application;
[0031] Figure 5 A schematic diagram of a message provided for an embodiment of this application;
[0032] Figure 6 A mapping relationship between a first configuration file and a message is provided for embodiments of this application;
[0033] Figure 7 A schematic diagram of the implementation process of a communication method provided in this application embodiment. Figure 2 ;
[0034] Figure 8 A schematic diagram of the implementation process of a communication method provided in this application embodiment. Figure 3 ;
[0035] Figure 9 This is a schematic diagram of the communication device provided in the embodiments of this application;
[0036] Figure 10 A schematic diagram of the structure of the first device provided in an embodiment of this application. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0038] 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 application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0039] In the following description, references to "some embodiments," "this embodiment," "this application 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 subset of all possible embodiments and may be combined with each other without conflict.
[0040] The descriptions such as "first," "second," and "third" appearing in the embodiments of this application 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 application. They cannot constitute any limitation on the embodiments of this application.
[0041] 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.
[0042] Figure 1 This is a schematic diagram of a design method for a communication protocol, such as... Figure 1 As shown, 101 represents the communication protocol file, 102 represents the conversion protocol code, and 103 represents the energy storage valve device.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] Figure 2A schematic diagram of a communication design method provided in an embodiment of this application is shown below. Figure 2 As shown, 201 represents the first configuration file, 202 represents the first device, 203 represents the second device, and 204 represents the basic communication framework of the platform software.
[0051] This application provides a communication method applied to a first device. Figure 3 A schematic diagram of the implementation process of a communication method provided in this application embodiment. Figure 1 ,like Figure 3 As shown, the method may include the following steps 301 to 303:
[0052] Step 301: Obtain 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 at least one functional application group;
[0053] The signal link group includes an input signal group, an output signal group, and a parameter signal group; at least one functional application group's short address signal set 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;
[0054] Step 302: Instantiate 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.
[0055] Step 303: Communicate with the second device using a predefined communication protocol framework and a first configuration file; wherein the configuration file used for communication between the first device and the second device is the first configuration file.
[0056] 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.
[0057] 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 application, the first configuration file is the configuration file on which the first device and the second device communicate.
[0058] 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.
[0059] It should be understood that, in the embodiments of this application, 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.
[0060] 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; 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.
[0061] It should be understood that the first device and the second device are not limited in the embodiments of this application. 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 the 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.
[0062] In this embodiment, no limitation is made to the predefined communication protocol framework. The communication protocol framework defines the data exchange format, communication process, error handling mechanism, etc., between the communicating parties to ensure the stability and reliability of communication.
[0063] In some embodiments, short address signals are used to describe the attributes of the corresponding data; the short address signal set of the signal link group and the short address signal set of the functional application group are derived from 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.
[0064] It is understood that, in the embodiments of this application, the short address signal sets of the signal link group and the functional application group in the first configuration file are derived from the short address signal library. 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. 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.
[0065] It should be understood that, in the embodiments of this application, the data type of the data and the corresponding data described by the short address signal are not limited.
[0066] 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.
[0067] 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.
[0068] It should be understood that, in the embodiments of this application, since the short address signal set of the signal link group and the short address signal set of the functional application group are derived from the end address signal library, the first configuration file includes the short address signal library.
[0069] Exemplarily, as one possible implementation, Figure 4 A schematic diagram of a first configuration file provided in an embodiment of this application, as shown below. Figure 4 As shown, 40 represents the configuration file; 401 represents configuring short address signals according to data types; where Module represents different devices, and Sig1-n represents short address signals; 402 represents configuring signal link groups based on short address signals; where GROUPn represents different groups of signal link groups, and sign represents the identification information of short address signals; 403 represents the configured functional application group; where GROUPn represents different groups of functional application groups, and sign represents the identification information of short address signals.
[0070] 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.
[0071] In some embodiments, communication with a second device is performed using a predefined communication protocol framework and a first configuration file, including: receiving a first message sent by the second device; parsing the first message according to the 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 the first configuration file based on the relevant information of the first short address signal; determining the allocated first storage address based on the first short address signal; and responding to the first message based on the first storage address.
[0072] It is understood that, in this embodiment of the application, according to the communication protocol framework, the received first message is parsed 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.
[0073] It should be understood that, in the embodiments of this application, 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.
[0074] 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.
[0075] It is understood that, in this embodiment of the application, 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.
[0076] It should be understood that, in the embodiments of this application, 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.
[0077] In this embodiment of the application, 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.
[0078] Exemplarily, as one possible implementation, Figure 5 A schematic diagram of a message provided for an embodiment of this application, such as... Figure 5As shown, the message includes a communication protocol header 501, a signal sequence number group 502, and a communication protocol tail 503. The communication protocol header 501 includes a message control header 5011 and a function class group 5012. The message control header 5011 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, sender / receiver target, and data selection. The signal sequence number group 502 loads communication data (GROUP group dataset data or scattered data). The signal sequence number group 502 includes multiple signal sequence numbers 5021, each including at least one of the following: signal sequence number offset, signal data length, and signal value. The communication protocol tail 503 includes a message control tail 5031, which includes a CRC checksum. The signal sequence number offset and the signal base address together form the identification information of the short address signal.
[0079] In some embodiments, the structure of the above message is part of the communication framework.
[0080] Figure 6 A mapping relationship between a first configuration file and a message is provided for embodiments of this application, such as... Figure 6 As shown, functional group 5012 includes group information of signal link group 402 or group information of functional application group 403; signal sequence number 5021 includes the part of the data stored at the memory address corresponding to the short address signal in signal link group 402 that is different from other data, or includes the part of the data stored at the memory address corresponding to the short address signal in functional application group 403 that is different from other data. The data included in signal sequence number 5021 and the data represented by the signal base address in functional group 5012 are the data stored at the memory address corresponding to the short address signal in signal link group 402 or the data stored at the memory address corresponding to the short address signal in functional application group 403.
[0081] 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).
[0082] 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 communication protocol framework, and sending the second message to a second device.
[0083] 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 the 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, according to 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 determine the first short address signal from the target group according to the identification information of the first short address signal, and obtain the first data accordingly; instead of 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 the communication protocol framework; generates a first message according to the relevant information of the first short address signal; and sends the first message to the first device.
[0084] In some embodiments, the second device receives a second message sent by the first device based on the first message; and according to the 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.
[0085] In some embodiments, according to the communication protocol framework, the first message is parsed to obtain the 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 the 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.
[0086] It is understood that, in the embodiments of this application, 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.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] In some embodiments, Figure 7 A schematic diagram of the implementation process of a communication method provided in this application embodiment. Figure 2 ,like Figure 7 As shown, before parsing the first configuration file, the communication method further includes the following steps 701 to 704:
[0091] Step 701: Determine if a configuration file to be verified exists;
[0092] Step 702: If a configuration file to be verified exists, obtain the first verification information corresponding to the configuration file to be verified;
[0093] Step 703: Obtain the second verification information of the configuration file on which the communication is based from the second device side;
[0094] Step 704: If the first verification information matches the second verification information, the configuration file to be verified is used as the first configuration file.
[0095] It is understood that in this embodiment, 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; and if 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.
[0096] It should be understood that, in the embodiments of this application, the first verification information and the second verification information are not limited. Verification information refers to the information on which the verification process relies to ensure the correctness, integrity, and consistency of the configuration file.
[0097] In some embodiments, the verification information is Cyclic Redundancy Check (CRC).
[0098] It is understood that, in this embodiment of the application, 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.
[0099] 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.
[0100] It is understood that in this embodiment, 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 used by the second device for communication is obtained as the first configuration file. This helps ensure that the first and second devices 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.
[0101] Exemplarily, as one possible implementation, the first device is a debugging tool / terminal. Figure 8 A schematic diagram of the implementation process of a communication method provided in this application embodiment. Figure 3 ,like Figure 8 As shown, the method includes the following steps 801 to 811:
[0102] Step 801: Read the configuration file (i.e., an example of the first configuration file);
[0103] Step 802: Determine if the configuration file has been read; if yes, proceed to step 803; otherwise, proceed to step 806.
[0104] Step 803, CRC verification of the configuration file;
[0105] Here, the configuration file is the configuration file for the first device;
[0106] Step 804: Establish device connection and obtain CRC;
[0107] The device here is an energy storage valve device;
[0108] Step 805: Determine if the configured CRC is consistent; if yes, proceed to step 808; otherwise, proceed to step 807.
[0109] Step 806: Establish device connection;
[0110] The device here is an energy storage valve device;
[0111] Step 807, Obtain the configuration file;
[0112] The configuration file obtained here is the configuration file of the energy storage valve device;
[0113] Step 808: Parse the configuration file;
[0114] Step 809: Obtain the signal library and communication protocol framework;
[0115] Step 810: Perform communication sending and receiving according to terminal operations;
[0116] Step 811: Determine whether to exit; if yes, end; otherwise, proceed to step 810.
[0117] Based on this, the exemplary application of the embodiments of this application in a practical application scenario will be described below.
[0118] This application provides a communication method. In this application embodiment, (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.
[0119] (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.
[0120] (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.
[0121] (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.
[0122] (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.
[0123] (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.
[0124] (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.
[0125] (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.
[0126] This application provides a communication method, which is a flexible and efficient communication protocol applicable to energy storage valve devices. This application 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 application avoids problems such as numerous and customized protocols and low communication mechanism efficiency in device development. Through a unified communication design framework, the communication method provided by this application achieves stable, reliable, and universal communication protocol interfaces.
[0127] The communication method provided in this application 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.
[0128] This application 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 application 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 application is logically simple, data-oriented, and highly efficient.
[0129] It should be noted that although the steps of the method in this application 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.
[0130] Based on the foregoing embodiments, this application 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.
[0131] Figure 9 This is a schematic diagram of the structure of the communication device provided in the embodiments of this application, such as... Figure 9 As shown, the communication device 90 includes a parsing module 901, an instantiation module 902, and a communication module 903, wherein:
[0132] The parsing module 901 is configured to acquire and parse the first configuration file to obtain a short address signal set of a signal link group and a short address signal set of at least one 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 at least one 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;
[0133] The instantiation module 902 is configured to instantiate 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.
[0134] The communication module 903 is configured to communicate with the second device using a predefined communication protocol framework and a first configuration file; wherein the configuration file on which the first device and the second device communicate is the first configuration file.
[0135] In some embodiments, short address signals are used to describe the attributes of the corresponding data; the short address signal set of the signal link group and the short address signal set of the functional application group are derived from 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.
[0136] In some embodiments, communication with a second device is performed using a predefined communication protocol framework and a first configuration file, including: receiving a first message sent by the second device; parsing the first message according to the 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 the first configuration file based on the relevant information of the first short address signal; determining the allocated first storage address based on the first short address signal; and responding to the first message based on the first storage address.
[0137] 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.
[0138] 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 communication protocol framework, and sending the second message to a second device.
[0139] In some embodiments, according to the communication protocol framework, the first message is parsed to obtain the 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 the 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.
[0140] In some embodiments, the communication 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.
[0141] 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.
[0142] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0143] It should be noted that the module division in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or have two or more units integrated into one unit. The integrated units can be implemented in hardware, as software functional units, or a combination of software and hardware.
[0144] It should be noted that, in the embodiments of this application, 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 solution of the embodiments of this application, or the part that contributes to the related technology, 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 electronic first device to execute all or part of the methods of the various embodiments of this application. 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 application are not limited to any specific hardware and software combination.
[0145] This application provides a first device. Figure 10 A schematic diagram of the structure of the first device provided in the embodiments of this application, as shown below. Figure 10 As shown, the first device 100 includes a memory 1001 and a processor 1002. The memory 1001 stores a computer program that can run on the processor 1002. When the processor 1002 executes the program, it implements the steps in the method provided in the above embodiments.
[0146] It should be noted that the memory 1001 is configured to store instructions and applications executable by the processor 1002, 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 1002 and the various modules in the first device 100. It can be implemented by flash memory or random access memory (RAM).
[0147] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method provided in the above embodiments.
[0148] This application 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.
[0149] 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 application, please refer to the descriptions of the method embodiments of this application for understanding.
[0150] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. 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 application, 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 application. The sequence numbers of the above-described embodiments are merely for descriptive purposes 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.
[0151] 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.
[0152] 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.
[0153] In the several embodiments provided in this application, 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.
[0154] 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.
[0155] In addition, each functional module in the various embodiments of this application 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.
[0156] 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.
[0157] 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 application, 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 application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0158] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0159] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0160] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0161] The above description is merely an embodiment of this application, but the scope of protection of this application 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 application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A communication method, characterized in that, The method is applied to a first device, and the method includes: The first configuration file is obtained and parsed to obtain a short address signal set for a signal link group and a short address signal set for at least one 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 at least one functional application group originates 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 signal set of the signal link group is 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 device communicates with the second device using a predefined communication protocol framework and the first configuration file; wherein the configuration file used for communication between the first device and the second device is the first configuration file.
2. The method according to claim 1, characterized in that, The short address signal is used to describe the attributes of the corresponding data; the short address signal set of the signal link group and the short address signal set of the functional application group are derived from 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, characterized in that, The method of communicating with the second device using a predefined communication protocol framework and the first configuration file includes: Receive the first message sent by the second device; According to the 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.
4. The method according to claim 3, characterized in that, 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; If the target group to which the first short address signal belongs is the output signal group, according to the communication protocol framework, the relevant information of the first short address signal and the first data are written into the second message, and the second message is sent to the second device.
5. The method according to claim 3, characterized in that, According to the 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, update the second data 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.
6. The method according to claim 4 or 5, characterized in that, 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.
7. The method according to any one of claims 1 to 5, characterized in that, 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.
8. The method according to claim 7, characterized in that, 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.
9. A communication device, characterized in that, The device includes: 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 at least one 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 at least one functional application group originates 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; An instantiation module is configured to instantiate the short address signal set of the signal link group, and 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 communication module is configured to communicate with the second device using a predefined communication protocol framework and the first configuration file; wherein the configuration file used by the first device and the second device for communication is the first configuration file.
10. A first device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the method of any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 8.
12. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 8.