Communication control method and system of frequency converter, electronic equipment and storage medium
By dividing the communication area between the ARM chip and the DSP chip and transmitting data according to the length of a single frame, the problem of low communication efficiency between the ARM chip and the DSP chip is solved, and more efficient data transmission is achieved.
Patent Information
- Application Number
- CN202511755697.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-02-24
AI Technical Summary
In the existing technology, the communication efficiency between the ARM chip and the DSP chip in the frequency converter is low, especially when the data area is not continuous, it needs to be split into multiple commands for processing, which takes a lot of time.
By dividing the ARM chip and DSP chip into multiple communication areas and transmitting data according to the single frame length specified in the communication protocol, the waiting for the receiving end to reply is avoided.
It improves the communication efficiency between ARM chips and DSP chips, reduces communication latency and data conflicts, and optimizes the data transmission structure.
Smart Images

Figure CN121559939A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of frequency converter control technology, and in particular to a communication control method, system, electronic device and storage medium for frequency converters. Background Technology
[0002] Industrial automation demands are numerous and varied due to non-standard customization requirements and diverse derivative products, necessitating the integration of industry-specific process packages into frequency converters. High-speed communication between the process package chip and the frequency converter's main control chip is essential for real-time PID (Proportional-Integral-Derivative) regulation and data acquisition.
[0003] In related technologies, when the ARM (Advanced RISC Machines, a processor architecture) chip and the DSP (Digital Signal Processing) chip of the frequency converter communicate, they can only read and write the mapped address continuously; once the data area is not continuous, it must be split into multiple commands, which increases the time consumption exponentially.
[0004] Therefore, how to improve the communication efficiency between the ARM chip and the DSP chip in the frequency converter is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a communication control method, system, electronic device and storage medium for a frequency converter, which can improve the communication efficiency between the ARM chip and the DSP chip in the frequency converter.
[0006] To address the aforementioned technical problems, this application provides a communication control method for a frequency converter, wherein the frequency converter includes an ARM chip and a DSP chip, and the communication control method for the frequency converter includes:
[0007] Determine the target parameters that need to be transmitted between the ARM chip and the DSP chip;
[0008] Based on the target parameters, the register addresses of the ARM chip and the DSP chip are divided to obtain multiple communication regions; wherein, the parameter fields corresponding to any two of the communication regions are different.
[0009] The ARM chip and the DSP chip are controlled to transmit data in the communication area according to the communication protocol; wherein, the communication protocol specifies the length of a single frame of data to be transmitted, and also specifies that the sending end transmits the current frame of data without waiting for the receiving end to reply and then transmits the next frame of data.
[0010] Optionally, the register addresses of the ARM chip and the DSP chip are divided based on the target parameters to obtain multiple communication regions, including:
[0011] The first type of parameters and the second type of parameters are determined based on the target parameters; wherein, the first type of parameters are the parameters that the ARM chip needs to transmit to the DSP chip, and the second type of parameters are the parameters that the DSP chip needs to transmit to the ARM chip;
[0012] The register addresses of the ARM chip are divided based on the first type of parameters to obtain multiple communication regions;
[0013] Based on the second type of parameters, the register addresses of the DSP chip are divided to obtain multiple communication regions.
[0014] Optionally, the register addresses of the ARM chip are divided based on the first type of parameters to obtain multiple communication regions, including:
[0015] Based on the first type of parameters, the register address of the ARM chip is divided to obtain a first fast table region, a first slow table region, and a trigger write region;
[0016] The parameter fields corresponding to the first fast meter area include any one or a combination of any of the following: inverter start field, inverter stop field, inverter reset field, torque setting field, speed setting field, pressure setting field, pressure feedback field, and PID function start / stop field; the first slow meter area includes all fields corresponding to the first type of parameters; the trigger write area includes fields corresponding to custom parameters; the custom parameters are parameters set according to configuration instructions.
[0017] Optionally, the register addresses of the DSP chip are divided based on the second type of parameters to obtain multiple communication regions, including:
[0018] The register addresses of the DSP chip are divided based on the second type of parameters to obtain a second fast table region and a second slow table region.
[0019] The parameter fields corresponding to the second fast meter area include any one or a combination of any of the following: bus voltage field, phase sequence detection field, output voltage field, output current field, output power field, output torque field, feedback speed field, status field, and fault code field; the second slow meter area includes all fields corresponding to the second type of parameters.
[0020] Optionally, controlling the ARM chip and the DSP chip to transmit data in the communication area according to a communication protocol includes:
[0021] The ARM chip is controlled to transmit all data in the first TLB area or the trigger write area to the DSP chip through a single communication command according to the first communication protocol.
[0022] The ARM chip is controlled to transmit all data in the first slow table area to the DSP chip through multi-frame communication commands according to the second communication protocol.
[0023] Optionally, controlling the ARM chip and the DSP chip to transmit data in the communication area according to a communication protocol includes:
[0024] The DSP chip is controlled to transmit all the data in the second TLB area to the ARM chip through a single communication command according to the third communication protocol;
[0025] The DSP chip is controlled to transmit all data in the second slow table area to the ARM chip via multi-frame communication commands according to the fourth communication protocol.
[0026] Optionally, the process of transmitting all data in the second slow table region to the ARM chip via multi-frame communication commands further includes:
[0027] Determine the service load of the DSP chip, and adjust the data length of the single-frame communication command sent by the DSP chip according to the service load.
[0028] This application also provides a communication control system for a frequency converter, the frequency converter including an ARM chip and a DSP chip, and the communication control system for the frequency converter including:
[0029] A parameter determination module is used to determine the target parameters that need to be transmitted between the ARM chip and the DSP chip;
[0030] The region division module is used to divide the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions; wherein, the parameter fields corresponding to any two of the communication regions are different;
[0031] The data transmission module is used to control the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol; wherein, the communication protocol specifies the length of a single frame of data to be transmitted, and also specifies that the sending end transmits the current frame of data without waiting for the receiving end to reply and then transmits the next frame of data.
[0032] This application also provides a storage medium storing a computer program thereon, which, when executed, implements the steps of the communication control method for the frequency converter described above.
[0033] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor, when calling the computer program in the memory, implements the steps of the communication control method of the frequency converter described above.
[0034] This application provides a communication control method for a frequency converter, the frequency converter including an ARM chip and a DSP chip. The communication control method includes: determining the target parameters to be transmitted between the ARM chip and the DSP chip; dividing the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions; wherein the parameter fields corresponding to any two of the communication regions are different; controlling the ARM chip and the DSP chip to transmit data in the communication regions according to a communication protocol; wherein the communication protocol specifies the length of a single frame of data to be transmitted.
[0035] This application provides a communication control method for a frequency converter. After determining the target parameters to be transmitted between an ARM chip and a DSP chip, this method divides the register addresses of the ARM and DSP chips based on these target parameters, resulting in multiple communication regions. After dividing the communication regions, the ARM chip and DSP chip can transmit data within each communication region according to the single-frame data length specified in the communication protocol. This process enables the ARM chip and DSP chip to send data from each communication region according to the specified single-frame data length, and to transmit the next frame of data directly without waiting for a reply from the receiving end after transmitting the current frame. Therefore, this application can improve the communication efficiency between the ARM chip and the DSP chip in the frequency converter. This application also provides a communication control system for a frequency converter, a storage medium, and an electronic device, all with the above-mentioned beneficial effects, which will not be elaborated further here. Attached Figure Description
[0036] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 A flowchart illustrating a communication control method for a frequency converter provided in an embodiment of this application;
[0038] Figure 2 This is a data communication flowchart of an ARM chip provided in an embodiment of this application;
[0039] Figure 3This is a schematic diagram of the communication control system of a frequency converter provided in an embodiment of this application. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0041] Please see below. Figure 1 , Figure 1 This is a flowchart illustrating a communication control method for a frequency converter provided in an embodiment of this application.
[0042] Specific steps may include:
[0043] S101: Determine the target parameters that need to be transmitted between the ARM chip and the DSP chip.
[0044] This embodiment can be applied to the main control hardware platform of a frequency converter, which includes an ARM chip and a DSP chip. The ARM chip, as the core chip of the process package, undertakes logic control, external communication control, and control tasks such as DI (digital input), DO (digital output), and ADDA (analog-to-digital / digital-to-analog conversion); the DSP chip focuses on the algorithm control of the frequency converter. Through communication between the ARM and DSP, the entire communication system of the frequency converter is built and operates efficiently.
[0045] In this step, the specific data content that needs to be transmitted between the ARM chip and the DSP chip can be used as the target parameters, such as: inverter start field, inverter stop field, inverter reset field, torque setting field, speed setting field, pressure setting field, pressure feedback field, PID function start / stop field, bus voltage field, phase sequence detection field, output voltage field, output current field, output power field, output torque field, feedback speed field, status field, and fault code field.
[0046] S102: Based on the target parameters, the register addresses of the ARM chip and the DSP chip are divided to obtain multiple communication regions.
[0047] Based on the determined target parameters, this step divides the register addresses of the ARM chip and the DSP chip into multiple communication regions. Each communication region corresponds to a specific set of parameter fields, and the parameter fields corresponding to any two communication regions are different. This division method enables the ARM chip and the DSP chip to efficiently process their respective data, avoiding data conflicts and redundant transmission. This embodiment can use a software platform based on microcontroller-based partitioned communication to divide the register addresses into multiple communication regions.
[0048] S103: Control the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol;
[0049] This step controls the ARM chip and DSP chip to transmit data in each communication area according to a preset communication protocol. The communication protocol specifies the length of a single frame of data (i.e., the length of a single frame when transmitting data in each communication area), and also specifies that the sending end transmits the current frame of data without waiting for a reply from the receiving end and directly transmits the next frame.
[0050] The aforementioned communication protocol ensures that the sending end (ARM chip or DSP chip) immediately sends the next frame of data after transmitting the current frame, without waiting for confirmation from the receiving end (DSP chip or ARM chip). This communication protocol reduces communication latency and improves data transmission efficiency.
[0051] This embodiment, after determining the target parameters to be transmitted between the ARM chip and the DSP chip, divides the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions. After dividing the communication regions, the ARM chip and the DSP chip can transmit data in the communication regions according to the single-frame data length specified in the communication protocol. The above process enables the ARM chip and the DSP chip to send data in each communication region according to the specified single-frame data length when transmitting data, and to transmit the next frame of data directly without waiting for a reply from the receiving end after transmitting the current frame of data. The transmission mechanism of this embodiment, which does not require waiting for confirmation, reduces communication latency and improves the continuity and real-time performance of data transmission. By clearly dividing the communication regions and specifying the single-frame data length, this embodiment also optimizes the data transmission structure, reduces data conflicts and redundant transmissions, and further improves the communication efficiency between the ARM chip and the DSP chip.
[0052] As for Figure 1 A further description of the corresponding embodiment: the process of dividing the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions includes the following steps:
[0053] Step A1: Determine the first type of parameters and the second type of parameters based on the target parameters.
[0054] The first type of parameter is the parameter that the ARM chip needs to transmit to the DSP chip, and the second type of parameter is the parameter that the DSP chip needs to transmit to the ARM chip.
[0055] Step A2: Divide the register address of the ARM chip based on the first type of parameters to obtain multiple communication regions.
[0056] Specifically, this step can divide the register address of the ARM chip based on the first type of parameters to obtain a first fast table region, a first slow table region, and a trigger write region.
[0057] The parameter fields corresponding to the first fast meter area include any one or a combination of any of the following: inverter start field, inverter stop field, inverter reset field, torque setting field, speed setting field, pressure setting field, pressure feedback field, and PID function start / stop field; the first slow meter area includes all fields corresponding to the first type of parameters, and the first slow meter area may also include other fields; the trigger write area includes fields corresponding to custom parameters; the custom parameters are parameters set according to configuration instructions.
[0058] The inverter start field contains parameters for controlling the inverter to start; the inverter stop field contains parameters for controlling the inverter to stop; the inverter reset field contains parameters for controlling the inverter to reset; the torque setting field contains parameters for setting the torque; the speed setting field contains parameters for setting the speed; the pressure setting field contains parameters for setting the pressure; the pressure feedback field contains parameters for providing feedback on the current pressure; and the PID function start / stop field contains parameters for starting or stopping the PID control function.
[0059] Step A3: Divide the register address of the DSP chip based on the second type of parameters to obtain multiple communication regions.
[0060] Specifically, this step can divide the register address of the DSP chip based on the second type of parameters to obtain the second fast table region and the second slow table region;
[0061] The parameter fields corresponding to the second fast meter area include any one or a combination of any of the following: bus voltage field, phase sequence detection field, output voltage field, output current field, output power field, output torque field, feedback speed field, status field, and fault code field; the second slow meter area includes all the fields corresponding to the second type of parameters, and the second slow meter area may also include other fields.
[0062] The bus voltage field is a parameter field used to represent the bus voltage; the phase sequence detection field is a parameter field used to represent the power supply phase sequence; the output voltage field is a parameter field used to represent the output voltage; the output current field is a parameter field used to represent the output current; the output power field is a parameter field used to represent the output power; the output torque field is a parameter field used to represent the output torque; the feedback speed field is a parameter field used to represent the feedback speed; the status field is a parameter field used to represent the equipment status; and the fault code field is a parameter field used to represent the current fault code.
[0063] As for Figure 1 In a further description of the corresponding embodiment, based on dividing the register address of the ARM chip into a first fast table region, a first slow table region, and a trigger write region, the ARM chip and the DSP chip can be controlled to transmit data in the communication region according to the communication protocol in the following manner:
[0064] The ARM chip is controlled to transmit all data in the first TLB region or the trigger write region to the DSP chip via a single communication command frame, according to a first communication protocol; the ARM chip is also controlled to transmit all data in the first Slow Byte region to the DSP chip via multiple communication commands, according to a second communication protocol. In the above scheme, all data in the first TLB region or the trigger write region is transmitted via a single data frame, while all data in the first Slow Byte region is transmitted via multiple data frames.
[0065] Based on dividing the DSP chip's register address into a second fast table region and a second slow table region, the ARM chip and the DSP chip can be controlled to transmit data in the communication regions according to the communication protocol in the following way:
[0066] The DSP chip is controlled to transmit all data in the second fast table region to the ARM chip via a single communication command frame, according to a third communication protocol; the DSP chip is also controlled to transmit all data in the second slow table region to the ARM chip via multiple communication commands, according to a fourth communication protocol. In this scheme, all data in the second fast table region is transmitted via a single data frame, and all data in the second slow table region is transmitted via multiple data frames.
[0067] The aforementioned first, second, third, and fourth communication protocols are all Figure 1 The communication protocol described in the corresponding embodiment.
[0068] As for Figure 1Further description of the corresponding embodiment: During the process of transmitting all data in the second slow table region to the ARM chip via multi-frame communication commands, the service pressure of the DSP chip can be determined, and the data length of the single-frame communication command sent by the DSP chip can be adjusted according to the service pressure. Specifically, this embodiment can determine the service pressure based on the floating-point operations per second of the DSP chip, increasing the data length of the frame communication command when the service pressure is below a lower limit, and decreasing the data length of the frame communication command when the service pressure is above an upper limit. The above scheme achieves dynamic adjustment of the frame length, balancing algorithm real-time performance and communication efficiency, and avoiding DSP chip overload. If real-time detection of the DSP chip's service pressure increases the computational burden of the DSP chip, this embodiment can use a machine learning model to predict the DSP chip's service pressure, thereby avoiding the additional load caused by real-time monitoring.
[0069] The process described in the above embodiments is illustrated below through examples in practical applications.
[0070] In related technologies, Modbus RTU (a serial transmission mode) is typically used to read and write the mapped address of the frequency converter. This method can only read and write continuous address data; mapping addresses in non-contiguous regions require multiple command operations, which is time-consuming. To address the shortcomings of the aforementioned technologies, this embodiment provides a microcontroller-based partitioned communication expansion card solution. The communication system provided by this solution includes a microcontroller-based partitioned communication software platform and a frequency converter main control hardware platform developed based on ARM and DSP chips.
[0071] A software platform based on microcontroller-based partitioned communication is used to divide the parameter ranges of fast write parameter area, slow write parameter area, trigger write parameter area, fast read parameter area, and slow read parameter area into the internal register address of the frequency converter, so as to realize the rapid interaction of important parameters.
[0072] This solution features a highly maintainable and robust code framework, allowing registers from different types of frequency converters to be uniformly organized into the same communication addresses. Program modifications are limited to the process package chip, without altering the DSP algorithm chip program. This solution enables rapid interaction of core data, facilitating the implementation of various closed-loop controls.
[0073] After partitioning the communication in this embodiment, we can obtain the DSP->ARM TLB region (i.e., the second TLB region), the DSP->ARM Slow BLB region (i.e., the second Slow BLB region), the ARM->DSP TLB region (i.e., the first TLB region), the ARM->DSP Slow BLB region (i.e., the first Slow BLB region), and the ARM->DSP trigger write region (i.e., the trigger write region). "->" indicates the operator pointing to the structure member.
[0074] The internal register parameters of the inverter corresponding to the DSP->ARM fast reference area include: bus voltage, phase sequence detection, output voltage, output current, output power, output torque, feedback speed, status (fault, forward / reverse rotation), fault codes, etc. A total of 40 16-bit addresses are reserved (generally around 20 are used, with the others reserved). This defines the entire DSP->ARM fast reference area. Fast reference data is sent by the DSP chip in one command frame; the ARM chip does not need to respond.
[0075] The inverter's internal register parameter addresses corresponding to the slow-speed range of DSP->ARM are generally from groups F00.00-F00.XX to F28.00-F28.XX, with several other special parameter groups. Each group reserves 100 16-bit addresses, i.e., F00.00-F00.99 (each group of inverter internal parameters will not exceed 100); 40 parameter groups are uniformly reserved, i.e., 40... 100 16-bit addresses, this is the division of the slow table region for the entire DSP->ARM; the slow table data is sent by the DSP chip in 10 16-bit data per frame of command, in sequence, until all the slow table data is sent, and then the sending starts from the beginning again, the ARM chip does not need to reply.
[0076] The parameters corresponding to the ARM->DSP fast gauge area include: functions such as sending start / stop / reset, setting torque, setting speed, setting pressure, pressure feedback, and enabling / pausing PID to the inverter; in this embodiment, 20 16-bit addresses can be reserved uniformly (usually about 10 are used, and the other addresses are reserved), which is the division of the entire ARM->DSP fast gauge area; the fast gauge data is sent by the ARM chip in one frame of command, and the DSP chip does not need to reply.
[0077] The parameters corresponding to the slow table region of ARM->DSP include: the maximum frequency, upper limit frequency, acceleration time, deceleration time, motor type, rated power, rated voltage, rated current, rated frequency, rated speed, proportional gain kp, integral gain ki, and other setting parameters sent by the ARM chip to the inverter; in this embodiment, 80 16-bit addresses can be reserved uniformly (generally about 20 are used, and the other addresses are reserved), which is the division of the entire ARM->DSP slow table region; the slow table data is sent by the ARM in 10 16-bit data per frame of command, sent in sequence, until all slow table data is sent, and then the sending starts from the beginning, and the DSP chip does not need to reply.
[0078] The ARM->DSP trigger write area is explained as follows: The ARM chip reserves 10 16-bit data areas for fast writing to the DSP chip, which is used to implement some special requirements to write to the inverter's less frequently used registers; the trigger write area data is sent by the ARM chip through a single command frame, and the DSP chip does not need to reply.
[0079] The communication protocol is explained as follows:
[0080] The communication protocol frame format corresponding to the DSP->ARM TLB area is as follows:
[0081] 0XAA 0xFF+0X01+1~40 words+crc; 0XAA 0xFF represents the frame header, 0X01 represents the function code, 1~40 words represent the parameter content to be transmitted, and crc represents the checksum.
[0082] The communication protocol frame format corresponding to the slow queue region of DSP->ARM is as follows:
[0083] 0xAA + F index (0x00) + address index + 10 words + CRC; 0xAA represents the frame header, the F index + address index together constitute the index address (e.g., 0x00 0x00 corresponds to F00.00-F00.09), the 10 words are the parameter content within the current index block, and CRC represents the checksum. The F index is used to specify the trigger area.
[0084] The communication protocol frame format corresponding to the ARM->DSP TLB area is as follows:
[0085] 0X55 0xFF+0X01+ 1~20 words+crrc; 0X55 0xFF represents the frame header, 0X01 represents the function code, 1~20 words represent the parameter content to be transmitted, and crc represents the checksum.
[0086] The communication protocol frame format corresponding to the slow queue region of ARM->DSP is as follows:
[0087] 0x55 + function code + data (10 words) + crc, where 0x55 represents the frame header, and the function code can include 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9, 0xF8, and 0xF7.
[0088] The communication protocol frame format corresponding to the trigger area of ARM->DSP is as follows:
[0089] 0x55 + F index (0x00) + starting address (0x00) + length (maximum 10 words) + crc.
[0090] Please see Figure 2 , Figure 2The data communication flowchart of an ARM chip provided in this application embodiment is as follows: After initialization, the ARM chip performs a workflow judgment. In the write process, the ARM starts writing DSP data in a loop, writing to the TLB (Track List). If writing to the TLB is complete or times out, it writes to the trigger list. If writing to the trigger list is complete or times out, it writes to the slow list, until writing to the slow list times out or completes. In the read process, it enters a data receiving loop. If the ARM receives DSP data from the TLB, it starts the corresponding processing loop. If the ARM receives DSP data from the slow list, it starts the corresponding processing loop. If a timeout occurs, a timeout alarm is triggered.
[0091] The communication mode in this embodiment is explained as follows: the process package control ARM chip and the inverter's DSP chip communicate in full-duplex via RS323; the ARM chip sends data according to the communication protocol and logical flow, without waiting for a response from the DSP, and sending and receiving are completely separated; the DSP operates in the same way. With a hardware configuration of "baud rate 115200, N, 8, 1", communication can be completed within 10m-20ms for TBB data, saving a significant amount of interaction time.
[0092] Please see Figure 3 , Figure 3 This is a schematic diagram of the communication control system of a frequency converter provided in an embodiment of this application. The frequency converter includes an ARM chip and a DSP chip, and the communication control system of the frequency converter includes:
[0093] The parameter determination module 301 is used to determine the target parameters that need to be transmitted between the ARM chip and the DSP chip;
[0094] The region division module 302 is used to divide the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions; wherein, the parameter fields corresponding to any two of the communication regions are different;
[0095] The data transmission module 303 is used to control the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol; wherein, the communication protocol specifies the length of a single frame of data to be transmitted, and also specifies that the sending end transmits the current frame of data without waiting for the receiving end to reply and then transmits the next frame of data.
[0096] This embodiment, after determining the target parameters to be transmitted between the ARM chip and the DSP chip, divides the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions. After dividing the communication regions, the ARM chip and the DSP chip can transmit data in the communication regions according to the single-frame data length specified in the communication protocol. The above process enables the ARM chip and the DSP chip to send data in each communication region according to the specified single-frame data length when transmitting data, and to transmit the next frame of data directly without waiting for a reply from the receiving end after transmitting the current frame of data. The transmission mechanism of this embodiment, which does not require waiting for confirmation, reduces communication latency and improves the continuity and real-time performance of data transmission. By clearly dividing the communication regions and specifying the single-frame data length, this embodiment also optimizes the data transmission structure, reduces data conflicts and redundant transmissions, and further improves the communication efficiency between the ARM chip and the DSP chip.
[0097] Furthermore, the process by which the region partitioning module partitions the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions includes: determining a first type of parameter and a second type of parameter based on the target parameters; wherein, the first type of parameter is the parameter that the ARM chip needs to transmit to the DSP chip, and the second type of parameter is the parameter that the DSP chip needs to transmit to the ARM chip; partitioning the register addresses of the ARM chip based on the first type of parameter to obtain multiple communication regions; and partitioning the register addresses of the DSP chip based on the second type of parameter to obtain multiple communication regions.
[0098] Furthermore, the process by which the region partitioning module divides the register address of the ARM chip based on the first type of parameters to obtain multiple communication regions includes: dividing the register address of the ARM chip based on the first type of parameters to obtain a first fast meter region, a first slow meter region, and a trigger write region; wherein, the parameter fields corresponding to the first fast meter region include any one or a combination of any of the following: inverter start field, inverter stop field, inverter reset field, torque setting field, speed setting field, pressure setting field, pressure feedback field, and PID function start / stop field; the first slow meter region includes all fields corresponding to the first type of parameters; the trigger write region includes fields corresponding to custom parameters; the custom parameters are parameters set according to configuration instructions.
[0099] Furthermore, the process by which the region division module divides the register address of the DSP chip based on the second type of parameters to obtain multiple communication regions includes: dividing the register address of the DSP chip based on the second type of parameters to obtain a second fast meter region and a second slow meter region; wherein, the parameter fields corresponding to the second fast meter region include any one or a combination of any of the following: bus voltage field, phase sequence detection field, output voltage field, output current field, output power field, output torque field, feedback speed field, status field, and fault code field; the second slow meter region includes all fields corresponding to the second type of parameters.
[0100] Furthermore, the data transmission module controls the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol, including: controlling the ARM chip to transmit all data in the first fast meter area or the trigger write area to the DSP chip through one frame of communication command according to the first communication protocol; and controlling the ARM chip to transmit all data in the first slow meter area to the DSP chip through multiple frames of communication command according to the second communication protocol.
[0101] Furthermore, the data transmission module controls the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol, including: controlling the DSP chip to transmit all data in the second fast meter area to the ARM chip through one frame of communication command according to the third communication protocol; and controlling the DSP chip to transmit all data in the second slow meter area to the ARM chip through multiple frames of communication command according to the fourth communication protocol.
[0102] Furthermore, it also includes:
[0103] The data length adjustment module is used to determine the service pressure of the DSP chip during the process of transmitting all data in the second slow table area to the ARM chip through multi-frame communication commands, and adjust the data length of the single-frame communication command sent by the DSP chip according to the service pressure.
[0104] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, and they will not be repeated here.
[0105] This application also provides a storage medium on which a computer program is stored, which, when executed, can perform the steps provided in the above embodiments. The storage medium may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0106] This application also provides an electronic device that may include a memory and a processor. The memory stores a computer program, and when the processor calls the computer program in the memory, it can implement the steps provided in the above embodiments. Of course, the electronic device may also include various network interfaces, power supplies, and other components.
[0107] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of this application.
[0108] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, 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. Without further limitations, 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 said element.
Claims
1. A communication control method for a frequency converter, characterized in that, The frequency converter includes an ARM chip and a DSP chip, and the communication control method of the frequency converter includes: Determine the target parameters that need to be transmitted between the ARM chip and the DSP chip; Based on the target parameters, the register addresses of the ARM chip and the DSP chip are divided to obtain multiple communication regions; wherein, the parameter fields corresponding to any two of the communication regions are different. The ARM chip and the DSP chip are controlled to transmit data in the communication area according to the communication protocol; wherein, the communication protocol specifies the length of a single frame of data to be transmitted, and also specifies that the sending end transmits the current frame of data without waiting for the receiving end to reply and then transmits the next frame of data.
2. The communication control method for the frequency converter according to claim 1, characterized in that, Based on the target parameters, the register addresses of the ARM chip and the DSP chip are divided to obtain multiple communication regions, including: The first type of parameters and the second type of parameters are determined based on the target parameters; wherein, the first type of parameters are the parameters that the ARM chip needs to transmit to the DSP chip, and the second type of parameters are the parameters that the DSP chip needs to transmit to the ARM chip; The register addresses of the ARM chip are divided based on the first type of parameters to obtain multiple communication regions; Based on the second type of parameters, the register addresses of the DSP chip are divided to obtain multiple communication regions.
3. The communication control method for the frequency converter according to claim 2, characterized in that, Based on the first type of parameters, the register addresses of the ARM chip are divided to obtain multiple communication regions, including: Based on the first type of parameters, the register address of the ARM chip is divided to obtain a first fast table region, a first slow table region, and a trigger write region; The parameter fields corresponding to the first fast meter area include any one or a combination of any of the following: inverter start field, inverter stop field, inverter reset field, torque setting field, speed setting field, pressure setting field, pressure feedback field, and PID function start / stop field; the first slow meter area includes all fields corresponding to the first type of parameters; the trigger write area includes fields corresponding to custom parameters; the custom parameters are parameters set according to configuration instructions.
4. The communication control method for the frequency converter according to claim 2, characterized in that, Based on the second type of parameters, the register addresses of the DSP chip are divided to obtain multiple communication regions, including: The register addresses of the DSP chip are divided based on the second type of parameters to obtain a second fast table region and a second slow table region. The parameter fields corresponding to the second fast meter area include any one or a combination of any of the following: bus voltage field, phase sequence detection field, output voltage field, output current field, output power field, output torque field, feedback speed field, status field, and fault code field; the second slow meter area includes all fields corresponding to the second type of parameters.
5. The communication control method for the frequency converter according to claim 3, characterized in that, Controlling the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol includes: The ARM chip is controlled to transmit all data in the first TLB area or the trigger write area to the DSP chip through a single communication command according to the first communication protocol. The ARM chip is controlled to transmit all data in the first slow table area to the DSP chip through multi-frame communication commands according to the second communication protocol.
6. The communication control method for the frequency converter according to claim 4, characterized in that, Controlling the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol includes: The DSP chip is controlled to transmit all the data in the second TLB area to the ARM chip through a single communication command according to the third communication protocol; The DSP chip is controlled to transmit all data in the second slow table area to the ARM chip via multi-frame communication commands according to the fourth communication protocol.
7. The communication control method for the frequency converter according to claim 6, characterized in that, The process of transmitting all data in the second slow table region to the ARM chip via multi-frame communication commands also includes: Determine the service load of the DSP chip, and adjust the data length of the single-frame communication command sent by the DSP chip according to the service load.
8. A communication control system for a frequency converter, characterized in that, The frequency converter includes an ARM chip and a DSP chip, and the communication control system of the frequency converter includes: A parameter determination module is used to determine the target parameters that need to be transmitted between the ARM chip and the DSP chip; The region division module is used to divide the register addresses of the ARM chip and the DSP chip based on the target parameters to obtain multiple communication regions; wherein, the parameter fields corresponding to any two of the communication regions are different; The data transmission module is used to control the ARM chip and the DSP chip to transmit data in the communication area according to the communication protocol; wherein, the communication protocol specifies the length of a single frame of data to be transmitted, and also specifies that the sending end transmits the current frame of data without waiting for the receiving end to reply and then transmits the next frame of data.
9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor, when calling the computer program in the memory, implements the steps of the communication control method for the frequency converter as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the communication control method for the frequency converter as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Dynamic regrouping method for register list data of Modbus communication protocol
CN102638451A
Batch data transmission method and device
CN110311847A
Data transmission method and device, electronic equipment, storage medium and product
CN115038115A
Data processing system and method for interconnection of FPGA (Field Programmable Gate Array) and MCU (Microprogrammed Control Unit)
CN119201793A
Modbus Register Data Reformatting
US20100030935A1