A method for mapping processing of communication address and storage address

By configuring table information to calculate storage addresses, using data common end, control process module and automatic conversion module, the problem of rapid and accurate mapping between communication address and storage address in the system is solved, and the compatibility and universality of the system is improved.

CN116032878BActive Publication Date: 2025-07-29SHENZHEN HOPEWIND ELECTRIC CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211632406.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2025-07-29
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

The prior art is time-consuming and labor-intensive to modify equipment in the system and is prone to errors, making it difficult to achieve fast and accurate mapping of communication addresses and storage addresses, affecting system compatibility and universality.

Method used

The data common terminal, control process module, acquisition process module and automatic conversion module of communication address and storage address are adopted to calculate the storage address by configuring table information to realize automatic conversion of communication address and storage address, including data acquisition, request frame resolution, address calculation and data reply.

Benefits of technology

It realizes fast and accurate mapping of communication addresses and storage addresses, and improves system compatibility and universality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032878B_ABST
    Figure CN116032878B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for mapping processing of communication address and storage address. The acquisition process module stores the acquired data into the storage address; the common end sends a request frame to the control process module; the control process module receives the request frame, parses the request frame to obtain the communication address; obtains address information from the communication address and storage address automatic conversion module, calculates the storage address through the address information, obtains data according to the storage address, and returns the data to the common end to perform automatic conversion of the communication address and the storage address; this method calculates the data storage address based on the configuration table information for the acquired data, the common end sends a request frame, and through querying the configuration, calculates the address in the common end request frame to obtain the storage address according to the configuration table information, obtains data according to the storage address, and returns the data to the common end, realizing fast and accurate mapping processing of the communication address and the storage address, and improving system compatibility and versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and particularly to a method for processing the mapping between communication addresses and storage addresses. Background Art

[0002] With the development of electronic information technologies, various industrial and commercial products are becoming more and more intelligent, and systems are becoming more and more complex. A complete system solution generally includes multiple processes, and data needs to be exchanged between processes during normal operation. To support multi-process data exchange, functions such as dynamic management of communication addresses and data storage addresses need to be supported; the system needs to support multiple different control terminals and acquisition terminals. If the device is modified during on-site installation, it is time-consuming and laborious, error-prone, and cannot meet the application requirements of modern products. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a method for processing the mapping between communication addresses and storage addresses. In this method for processing the mapping between communication addresses and storage addresses, the data collected is used to calculate the data storage address according to the configuration table information. The common end sends a request frame, and through querying the configuration, the address in the common end request frame is calculated to obtain the storage address according to the configuration table information. Data is obtained according to the storage address, and the data is returned to the common end, realizing fast and accurate mapping processing between communication addresses and storage addresses, and improving the compatibility and versatility of the system.

[0004] To solve the above technical problem, the present invention provides a method for processing the mapping between communication addresses and storage addresses, which provides a data common end, a control process module, an acquisition process module, and a self-control conversion module for communication addresses and storage addresses. The method includes:

[0005] The acquisition process module collects data;

[0006] The acquisition process module calculates and obtains the storage address according to the self-control conversion module for communication addresses and storage addresses, and stores the collected data in the storage address;

[0007] The common end sends a request frame to the control process module;

[0008] The control process module receives the request frame, parses the request frame to obtain the communication address; obtains the address information from the self-control conversion module for communication addresses and storage addresses, calculates the storage address through the address information, obtains the data according to the storage address, and returns the data to the common end for automatic conversion between communication addresses and storage addresses.

[0009] Preferably, the acquisition process module calculating and obtaining the storage address according to the self-control conversion module for communication addresses and storage addresses specifically includes:

[0010] The communication address and storage address automatic control conversion module configures a communication address and storage address configuration table, and the acquisition process module calculates and obtains the storage address according to the communication address and storage address configuration table.

[0011] Preferably, before the acquisition process module stores data in the storage address, it further includes:

[0012] The acquisition process module applies for the storage space of the storage address.

[0013] Preferably, before the control process module parses the request frame to obtain the communication address, it further includes:

[0014] The request frame is parsed through the protocol stack. If there is an error in parsing the request frame, the request frame is determined to be incorrect.

[0015] Preferably, after obtaining the address information from the communication address and storage address configuration table, it further includes:

[0016] If the request frame address information is not found, the request frame is determined to be incorrect.

[0017] Preferably, before calculating the storage address through the address information, it further includes:

[0018] The control process module distinguishes the device number, group number, and serial number according to the address information.

[0019] Preferably, before the control process module returns data to the common end, it further includes:

[0020] Offset operation, data splitting, and data merging are performed on the data at the storage address.

[0021] Preferably, the offset operation includes performing operations in two cases of subscription and publication at the common end to obtain the actual data required by the request frame:

[0022] Subscription: Common end subscription data = (storage address data * L1 * L3) / L2

[0023] Publication: Common end publication data = Common end subscription data * L2 / (L1 * L3)

[0024] Among them, L1 is the common end data offset, L2 is the control process module data offset, and L3 is the acquisition process module data offset.

[0025] Preferably, the data splitting includes: splitting the data published by the common end into: the high-order data published by the common end and the low-order data published by the common end. Specifically:

[0026] The high-order data published by the common end = (Common end subscription data / 65536) * (L2 / (L1 * L3))

[0027] The low-order data published by the common end = (the data subscribed by the common end * 65536) * (L2 / (L1 * L3))

[0028] Where D is the data published by the common end, DH is the high-order data of the storage address, DL is the low-order data of the storage address, L1 is the data offset of the common end, L2 is the data offset of the control process module, and L3 is the data offset of the acquisition process module.

[0029] Preferably, the data merging includes: merging the high-order data of the storage address and the low-order data of the storage address. Specifically, the data published by the common end = (the high-order data of the storage address * 65536 + the low-order data of the storage address) * ((L1 * L3) / L2)

[0030] Where: L1 is the data offset of the common end, L2 is the data offset of the control process module, and L3 is the data offset of the acquisition process module.

[0031] After adopting the above method, the acquisition process module acquires data; the acquisition process module calculates and obtains the storage address according to the communication address and the storage address automatic control conversion module, and stores the acquired data in the storage address; the common end sends a request frame to the control process module; the control process module receives the request frame, parses the request frame to obtain the communication address; obtains the address information from the communication address and the storage address automatic control conversion module, calculates the storage address through the address information, obtains the data according to the storage address, and returns the data to the common end for automatic conversion of the communication address and the storage address; this communication address and storage address mapping processing method calculates the data storage address according to the configuration table information for the acquired data, the common end sends a request frame, and through querying the configuration, calculates the address in the common end request frame to obtain the storage address according to the configuration table information, obtains the data according to the storage address, and returns the data to the common end, realizing fast and accurate mapping processing of the communication address and the storage address, and improving the system compatibility and universality. Brief Description of the Drawings

[0032] Figure 1 It is the overall control diagram of a communication address and storage address mapping processing method of the present invention;

[0033] Figure 2 It is the system connection diagram of a communication address and storage address mapping processing method of the present invention. Detailed Embodiment

[0034] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0035] Example 1

[0036] Please refer to Figure 1 and Figure 2 , Figure 1 which is the overall control diagram of a communication address and storage address mapping processing method of the present invention; Figure 2 which is the system connection diagram of a communication address and storage address mapping processing method of the present invention.

[0037] This embodiment discloses a communication address and storage address mapping processing method, which provides a data common end 10, a control process module 30, a collection process module 40, and a communication address and storage address automatic conversion module 20. The method includes:

[0038] The collection process module 40 collects data;

[0039] The collection process module 40 calculates and obtains the storage address according to the communication address and storage address automatic conversion module 20, and stores the collected data in the storage address;

[0040] The common end 10 sends a request frame to the control process module 30;

[0041] The control process module 30 receives the request frame, parses the request frame to obtain the communication address; obtains the address information from the communication address and storage address automatic conversion module, calculates the storage address through the address information, obtains the data according to the storage address, and returns the data to the common end to perform automatic conversion of the communication address and the storage address.

[0042] Example 2

[0043] This embodiment is based on Example 1. In this embodiment, the specific process of the collection process module 40 calculating and obtaining the storage address according to the communication address and storage address automatic conversion module 20 includes:

[0044] The communication address and storage address automatic conversion module 20 configures a communication address and storage address configuration table, and the collection process module 40 calculates and obtains the storage address according to the communication address and storage address configuration table.

[0045] In this embodiment, before the collection process module 40 stores the data in the storage address, it further includes: the collection process module 40 applies for the storage space of the storage address.

[0046] Before the control process module 30 parses the request frame to obtain the communication address, it further includes: parsing the request frame through the protocol stack. If the request frame parsing fails, it is determined that the request frame is incorrect.

[0047] After obtaining the address information from the communication address and storage address configuration table, it further includes:

[0048] If the requested frame address information is not found, it is determined that the requested frame is in error.

[0049] Calculating the storage address from the address information further includes:

[0050] The control process module distinguishes the device number, group number, and serial number according to the address information.

[0051] Embodiment III

[0052] This embodiment is based on Embodiment I. In this embodiment, the control process module 30 replies data to the common end 10. Further included before that are:

[0053] Performing offset operation, data splitting, and data merging on the data at the storage address.

[0054] The offset operation includes performing operations on the common end in both the subscription and publication scenarios to obtain the actual data required by the requested frame:

[0055] Subscription: Common end subscription data = (storage address data * L1 * L3) / L2

[0056] Publication: Common end publication data = Common end subscription data * L2 / (L1 * L3)

[0057] Among them, L1 is the data offset of the common end, L2 is the data offset of the control process module, and L3 is the data offset of the acquisition process module.

[0058] The data splitting includes: splitting the data published by the common end into: the high-order data published by the common end and the low-order data published by the common end. Specifically:

[0059] The high-order data published by the common end = (Common end subscription data / 65536) * (L2 / (L1 * L3))

[0060] The low-order data published by the common end = (Common end subscription data * 65536) * (L2 / (L1 * L3))

[0061] Among them, D is the data published by the common end, DH is the high-order data of the storage address, DL is the low-order data of the storage address, L1 is the data offset of the common end, L2 is the data offset of the control process module, and L3 is the data offset of the acquisition process module.

[0062] The data merging includes: merging the high-order data of the storage address and the low-order data of the storage address. Specifically: Common end publication data = (High-order data of the storage address * 65536 + Low-order data of the storage address) * ((L1 * L3) / L2)

[0063] Wherein: L1 is the data offset of the common end, L2 is the data offset of the control process module, and L3 is the data offset of the acquisition process module.

[0064] In the communication address and storage address mapping processing method, the acquired data is used to calculate the data storage address according to the configuration table information. The common end sends a request frame, and by querying the configuration, the address in the common end request frame is calculated to obtain the storage address through the configuration table information. The data is obtained according to the storage address and returned to the common end, realizing the fast and accurate mapping processing of the communication address and the storage address, and improving the system compatibility and versatility.

[0065] It should be understood that the above are only the preferred embodiments of the present invention, and the patent scope of the present invention cannot be limited thereby. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A method for mapping a communication address to a storage address, characterized in that , providing a data common end, a control process module, a collection process module, and a communication address and storage address automatic control conversion module, the method comprising: The collection process module collects data; The collection process module calculates and obtains a storage address according to the communication address and storage address automatic control conversion module, and stores the collected data into the storage address; The common end sends a request frame to the control process module; The control process module receives the request frame, parses the request frame to obtain a communication address; obtains address information from the communication address and storage address automatic control conversion module, calculates a storage address through the address information, obtains data according to the storage address, and returns the data to the common end to perform automatic conversion of the communication address and the storage address; Before the control process module returns data to the common end, it further includes: Performing offset operation, data splitting, and data merging on the data at the storage address; the offset operation includes performing operations in two cases of subscription and publication by the common end to obtain the real data required by the request frame: Subscription: Common end subscription data = (storage address data * L1 * L3) / L2 Publication: Common end publication data = Common end subscription data * L2 / (L1 * L3) Wherein, L1 is the common end data offset, L2 is the control process module data offset, and L3 is the collection process module data offset.

2. The communication address and storage address mapping processing method according to claim 1, characterized in that The specific process of the collection process module calculating and obtaining a storage address according to the communication address and storage address automatic control conversion module includes: The communication address and storage address automatic control conversion module configures a communication address and storage address configuration table, and the collection process module calculates and obtains a storage address according to the communication address and storage address configuration table.

3. The communication address and storage address mapping processing method according to claim 1, wherein Before the collection process module stores data into the storage address, it further includes: The collection process module applies for the storage space of the storage address.

4. The communication address and storage address mapping processing method according to claim 1, wherein Before the control process module parses the request frame to obtain a communication address, it further includes: Parsing the request frame through a protocol stack, and if the request frame parsing fails, it is determined that the request frame is incorrect.

5. The communication address and storage address mapping processing method according to claim 2, wherein After obtaining address information from the communication address and storage address configuration table, it further includes: If the request frame address information is not found, it is determined that the request frame is incorrect.

6. The communication address and storage address mapping processing method according to claim 1, characterized in that Before calculating a storage address through the address information, it further includes: The control process module distinguishes the device number, group number, and serial number according to the address information.

7. According to the communication address and storage address mapping processing method described in claim 1, wherein The data splitting includes: splitting the data published by the common end into: the high-order data published by the common end and the low-order data published by the common end, specifically: The high-order data published by the common end = (common end subscription data / 65536) * (L2 / (L1 * L3)) The low-order data published by the common end = (common end subscription data * 65536) * (L2 / (L1 * L3)) Wherein, D is the data published by the common end, DH is the high-order data of the storage address, DL is the low-order data of the storage address, L1 is the common end data offset, L2 is the control process module data offset, and L3 is the collection process module data offset.

8. The communication address and storage address mapping processing method according to claim 1, characterized in that The data merging includes: merging the high-order data of the storage address and the low-order data of the storage address. Specifically: the data published by the common terminal = (the high-order data of the storage address * 65536 + the low-order data of the storage address) * ((L1 * L3) / L2) Where: L1 is the data offset of the common terminal, L2 is the data offset of the control process module, and L3 is the data offset of the acquisition process module.

Citation Information

Patent Citations

  • Named mechanism based storage system and method of distributed network

    CN104410655A

  • Multi-website data collection system and method for single server

    CN107194017A

  • Industrial data acquisition method and system

    CN114257536A