Multi-channel data transmission method, system, device and storage medium

By adopting a multi-channel data transmission method in motor control and using a combination of multiple sub-operations and idle state transmission channels, the data transmission delay problem caused by the controller's fast operation speed is solved, and efficient data feedback and real-time monitoring are achieved.

CN116094680BActive Publication Date: 2024-08-30HUIZHOU YANKONG AUTOMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310012693.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-05
Publication Date
2024-08-30
Estimated Expiration
2043-01-05

AI Technical Summary

Technical Problem

In motor control, because the operation speed of the controller is faster than the data transmission rate, the calculated signal data and intermediate operation results cannot be fed back to the data processing center or display terminal in time, resulting in data transmission delay.

Method used

Using a multi-channel data transmission method, multiple sub-operations are performed within a preset operation cycle, and when each sub-operation is completed, the signal data is transferred to an idle channel selected from multiple preset transmission channels. The intermediate operation results are transmitted to the data processing center or display terminal.

Benefits of technology

It effectively reduces the data transmission delay, ensures timely feedback of the calculated signal data and intermediate calculation results, adapts to the high-frequency data transmission requirements brought about by the improvement of controller performance, and avoids the traditional single-channel transmission speed limit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116094680B
    Figure CN116094680B
Patent Text Reader

Abstract

The present application discloses a multi-channel data transmission method, system, device and storage medium, which belongs to the field of motor control technology. The present application performs operations on the signal data fed back by the collected sensors, wherein the operation process includes multiple sub-operations within a preset operation cycle; when each sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or display terminal through the target transmission channel; wherein the target transmission channel is an idle transmission channel selected from multiple preset transmission channels. That is, when each sub-operation is completed, the corresponding signal data and the intermediate operation results can be transmitted from the idle target transmission channel to the data processing center or display terminal, so that the signal data and the intermediate operation results after the operation are fed back to the data processing center or display terminal in time, reducing the data transmission delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control technology, and in particular to a multi-channel data transmission method, system, device and storage medium. Background Art

[0002] In actual motor control, as the performance of controllers such as CPUs and embedded controllers continues to improve, the computing power of controllers has been greatly enhanced. The increasing requirements for control response speed have become the core competitive direction of various industrial control products.

[0003] In order to detect and evaluate the stability, accuracy and response speed of the controller in real time, it is required that the signal data collected by the sensor and the intermediate calculation results be synchronously transmitted to the data processing center or display terminal during each calculation to realize real-time monitoring of the calculation process.

[0004] At present, the existing methods often use single-channel transmission methods such as network cables and serial communications to transmit data. However, due to the influence of transmission distance and transmission rate, when the execution end or client needs to transmit a large amount of data synchronously, the controller's computing speed is greater than the data transmission rate, resulting in the inability to timely feedback the calculated signal data and intermediate calculation results to the data processing center or display terminal, causing data transmission delays. Summary of the invention

[0005] The main purpose of the present application is to provide a multi-channel data transmission method, system, device and storage medium, aiming to solve the technical problem of high data transmission delay.

[0006] To achieve the above object, the present application provides a multi-channel data transmission method, which is applied to a controller. The multi-channel data transmission method comprises the following steps:

[0007] Performing operations on the collected signal data fed back by the sensor, wherein the operation process includes multiple sub-operations within a preset operation cycle;

[0008] When each sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through the target transmission channel;

[0009] The target transmission channel is an idle transmission channel selected from a plurality of preset transmission channels.

[0010] In a possible implementation manner of the present application, the number of the preset transmission channels corresponds to the number of sub-operations in the preset operation cycle.

[0011] In a possible implementation manner of the present application, the step of transmitting the corresponding signal data and the intermediate operation result to the data processing center or the display terminal through the target transmission channel when each sub-operation is completed includes:

[0012] When each sub-operation is completed, the corresponding signal data and the intermediate operation results are packaged according to a preset data frame format and transmitted to a data processing center or a display terminal through a target transmission channel;

[0013] Wherein, the data frame formats of the multiple preset transmission channels are the same.

[0014] In a possible implementation manner of the present application, the data transmission rates of the multiple preset transmission channels are the same, and before the step of packaging the corresponding signal data and the intermediate operation results according to a preset data frame format and transmitting them to a data processing center or a display terminal through a target transmission channel when each sub-operation is completed, the method further includes:

[0015] Determine the maximum data carrying capacity of the preset transmission channel based on the preset operation cycle of the controller and the data transmission rate of the preset transmission channel;

[0016] Based on the amount of the signal data, the amount of intermediate operation results, and the maximum data carrying capacity, a data frame format of the preset transmission channel is determined.

[0017] In a possible implementation manner of the present application, the signal data includes signal data fed back by multiple sensors, and the intermediate operation result includes results generated by multiple operation steps in a sub-operation process.

[0018] The present application provides a multi-channel data transmission method, which is applied to a data processing center or a display terminal. The multi-channel data transmission method comprises the following steps:

[0019] Receiving a data frame sent by the controller;

[0020] Extracting the contents of the data frame and storing them in corresponding preset data buffers respectively;

[0021] The preset data buffer is established based on the signal data and the type of the intermediate operation result.

[0022] In a possible implementation manner of the present application, the step of extracting the content in the data frame and storing it in corresponding preset data buffers respectively includes:

[0023] The signal data belonging to feedback from different sensors in the data frame and the intermediate operation results generated by different operation steps in the data frame are extracted respectively, and stored in corresponding preset data buffers respectively.

[0024] The present application also provides a multi-channel data transmission system, the system comprising: a controller and a data processing center or a display terminal;

[0025] The controller is used to perform operations on the signal data fed back by the collected sensors, wherein the operation process includes multiple sub-operations within a preset operation cycle; and is also used to transmit the corresponding signal data and the intermediate operation results to the data processing center or the display terminal through the target transmission channel when each sub-operation is completed, wherein the target transmission channel is a transmission channel in an idle state selected from multiple preset transmission channels;

[0026] The data processing center or display terminal is used to receive the data frame sent by the controller; it is also used to extract the content in the data frame and store it in the corresponding preset data buffer, wherein the preset data buffer is established based on the signal data and the type of the intermediate calculation result.

[0027] The present application also provides a multi-channel data transmission device, which includes: a memory, a processor, and a multi-channel data transmission program stored in the memory and executable on the processor, wherein the multi-channel data transmission program is configured to implement the steps of the multi-channel data transmission method as described in any one of the above items.

[0028] The present application also provides a storage medium, on which a multi-channel data transmission program is stored, and when the multi-channel data transmission program is executed by a processor, the steps of the multi-channel data transmission method as described in any one of the above items are implemented.

[0029] The present application provides a multi-channel data transmission method. Compared with the prior art, which is limited by the transmission distance and transmission speed, when the execution end or the client needs to transmit a large amount of data synchronously, the operation speed of the controller is faster than the data transmission rate, resulting in the inability to timely feed back the signal data and the intermediate operation results after the operation to the data processing center or the display terminal, causing data transmission delay. The present application performs operations on the signal data fed back by the collected sensor, wherein the operation process includes multiple sub-operations within a preset operation cycle; when each sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through the target transmission channel; wherein the target transmission channel is a transmission channel in an idle state selected from multiple preset transmission channels. That is to say, when each sub-operation is completed, the corresponding signal data and the intermediate operation results can be transmitted from the target transmission channel in an idle state to the data processing center or the display terminal, so that the signal data and the intermediate operation results after the operation are fed back to the data processing center or the display terminal in a timely manner, reducing the data transmission delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic flow chart of a first embodiment of a multi-channel data transmission method of the present application;

[0031] Figure 2 This is a schematic diagram of a first scenario of a multi-channel data transmission method according to a first embodiment of the present application;

[0032] Figure 3 A schematic diagram of a second scenario of a multi-channel data transmission method according to a second embodiment of the present application;

[0033] Figure 4 It is a structural diagram of a multi-channel data transmission device in a hardware operating environment involved in an embodiment of the present application.

[0034] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0035] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. Although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.

[0036] The present application embodiment provides a multi-channel data transmission method, referring to Figure 1In this embodiment, applied to a controller, the multi-channel data transmission method includes:

[0037] Step S10: performing calculations on the collected signal data fed back by the sensor, wherein the calculation process includes multiple sub-calculations within a preset calculation cycle;

[0038] Step S20: When each sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through the target transmission channel, wherein the target transmission channel is an idle transmission channel selected from a plurality of preset transmission channels.

[0039] The purpose of this embodiment is: when the controller completes each sub-operation, it transmits data through an idle transmission channel selected from multiple preset transmission channels, so as to avoid the failure to feed back data to the data processing center or display terminal in time after the next sub-operation process is completed, so as to reduce the data transmission delay.

[0040] As an example, the multi-channel data transmission method may be applied to a multi-channel data transmission system, wherein the multi-channel data transmission system includes a controller and a data processing center or a display terminal.

[0041] As an example, the controller can be a CPU, a lower computer, etc., without specific limitation.

[0042] As an example, the data processing center or display terminal corresponds to the controller, and may be a server, a host computer, etc., without specific limitation.

[0043] The specific steps are as follows:

[0044] Step S10: performing calculations on the collected signal data fed back by the sensor, wherein the calculation process includes multiple sub-calculations within a preset calculation cycle;

[0045] As an example, in actual motor control, various signals need to be collected and controlled. Usually, more sensors are distributed to meet the growing needs of multi-faceted control. The signal data collected by the controller includes signal data fed back by multiple sensors.

[0046] As an example, the collected signal data may include signal data fed back by sensor 1, signal data fed back by sensor 2, etc.; wherein, the signal data fed back by sensor 1 may be temperature data fed back by a temperature sensor, or current data fed back by a current sensor, etc., without specific limitation.

[0047] As an example, the preset operation cycle is a complete operation cycle preset in the controller, that is, the time required to complete a complete operation. In the field of motor control technology, a FOC (Field-Oriented Control) algorithm is often used to operate the collected signal data within the preset operation cycle, and the preset operation cycle is determined based on the carrier cycle.

[0048] As an example, multiple sub-operations may be performed within the preset operation cycle. For example, two FOC operations may be performed within a preset operation cycle (the controller performs a control based on the result of each FOC operation). However, in fact, since the signal data collected by the sensor may deviate from the real data, the result of the operation may also deviate. Therefore, six or eight FOC operations may be performed within a preset operation cycle, that is, the controller performs a control based on the results of every three FOC operations.

[0049] As an example, each sub-operation includes multiple identical operation steps, and the results generated by the multiple identical operation steps are the intermediate operation results. If the controller fails in one of the above two controls, it can be inferred which of the above six FOC operations (six sub-operations) has an abnormality through the multiple operation steps corresponding to the intermediate operation results. Therefore, after the preset operation cycle ends, the operation results of the preset number of the above multiple sub-operations will be retained, and the operation results of each time will be tested to monitor the correctness of each sub-operation process. And after the preset operation cycle ends, the number of sub-operations will be updated, that is, a new round of sub-operations will be restarted at the beginning of the second operation cycle, and the number of sub-operations will be counted again.

[0050] As an example, the preset operation cycle may be 125 microseconds / time, 80 microseconds / time, 10 microseconds / time, etc., without specific limitation.

[0051] As an example, each sub-operation has a fixed sub-operation period, and the sub-operation period is the time required to perform one sub-operation.

[0052] As an example, since the data types collected are consistent, the number of sub-operations required for the signal data is also consistent. Specifically, the number of sub-operations performed on the signal data is pre-set, which can be 3 times, 5 times, etc., without specific limitation.

[0053] As an example, Figure 2 As shown, three sub-operations are required to complete the operation on the signal data.

[0054] As an example, each sub-operation includes multiple operation steps in a sub-operation cycle, each operation step generates an intermediate operation result, and therefore, each sub-operation includes multiple intermediate operation results.

[0055] That is to say, the intermediate operation result includes the results generated by multiple operation steps in the sub-operation process.

[0056] Step S20: When each sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through the target transmission channel, wherein the target transmission channel is an idle transmission channel selected from a plurality of preset transmission channels.

[0057] As an example, Figure 3 As shown, in order to detect the effect of each control of the controller, it is required that the signal data collected by the sensor and the intermediate operation results be synchronously transmitted to the data processing center or the display terminal when each sub-operation is completed.

[0058] As an example, the corresponding signal data and the intermediate operation results are transmitted to a data processing center for analysis or calculation by the data processing center to further determine the control effect of the controller.

[0059] As an example, the corresponding signal data and the intermediate calculation results are transmitted to the display terminal so that the operator can intuitively analyze the signal data and the intermediate calculation results based on the display device.

[0060] At present, data is usually transmitted through a single channel such as network cables and serial communications. Due to the limitations of transmission distance and transmission speed, when the executor or client needs to transmit a large amount of data synchronously, the controller's computing speed is faster than the data transmission rate, resulting in the inability to promptly feed back the calculated signal data and intermediate calculation results to the data processing center or display terminal, increasing the data transmission delay.

[0061] That is to say, a single channel is used for data transmission, and the data transmission rate of a single channel is fixed. As the performance of controllers such as CPUs and embedded controllers continues to improve, the computing power of controllers has been greatly enhanced. In other words, the sub-operation cycle of the controller is reduced, and the amount of data that can be calculated per unit time increases. In other words, the data received per unit time is larger, and the data transmitted per unit time is also larger. Then a single channel with a fixed data transmission rate cannot support the computing power of the current controller. Simply increasing the data transmission rate of a single channel is also difficult to meet the throughput requirements of the growing multi-sensor data and high-frequency computing data.

[0062] Therefore, there are multiple transmission channels in this embodiment. Specifically, when each sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through the target transmission channel.

[0063] As an example, the target transmission channel is a transmission channel in an idle state selected from a plurality of preset transmission channels.

[0064] As an example, the preset transmission channel may be a serial port, or a network cable, etc., which is not specifically limited.

[0065] As an example, the data transmission rate of the preset transmission channel may be 2 Mbit / s, or 1 Mbit / s, etc., which is not specifically limited.

[0066] As an example, the number of preset transmission channels is pre-set, and may be 3 transmission channels, 5 transmission channels, etc., without specific limitation.

[0067] As an example, when each sub-operation is completed, a target transmission channel in an idle state is selected from multiple preset transmission channels, and the corresponding signal data and intermediate operation results are transmitted to the data processing center or the display terminal through the target transmission channel.

[0068] In this embodiment, the signal data fed back by the collected sensor is calculated, wherein the calculation process includes multiple sub-calculations within a preset calculation cycle; when each sub-calculation is completed, the corresponding signal data and the intermediate calculation results are transmitted to the data processing center or the display terminal through the target transmission channel; wherein the target transmission channel is an idle transmission channel selected from multiple preset transmission channels. Each time a sub-calculation is completed, there is an idle target transmission channel to transmit the required signal data and the intermediate calculation results, which will not be affected by the data transmission rate of a single transmission channel, that is, the transmission of the signal data and the intermediate calculation results of each sub-calculation is independent and will not restrict each other, which can minimize the delay of data transmission. The traditional method of reducing the delay of data transmission by increasing the transmission rate makes the signal susceptible to interference, and the data processing center or the display terminal needs to increase additional computing power to perform secondary processing on the interfered signal, while the multi-channel transmission of the present application can ensure real-time signal transmission while avoiding the problem of interference due to excessively high rate signals.

[0069] Furthermore, based on the first embodiment of the present application, another embodiment of the present application is provided. In this embodiment, since the number of the above-mentioned preset transmission channels is pre-set, it is considered that if too many preset transmission channels are set, it will cause problems such as waste of network resources.

[0070] In this embodiment, the number of the preset transmission channels corresponds to the number of sub-operations in the preset operation cycle.

[0071] As an example, Figure 2 As shown, the number of the preset transmission channels is the same as the number of sub-operations in the preset operation cycle. Moreover, the first sub-operation may correspond to transmission channel 1, the second sub-operation may correspond to transmission channel 2, and the third sub-operation may correspond to transmission channel 3, without specific limitation.

[0072] As an example, when the first sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through transmission channel 1; when the second sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through transmission channel 2; when the third sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through transmission channel 3.

[0073] In this embodiment, since the time taken by the preset transmission channel to complete a data transmission is generally close to the time taken by a complete operation cycle, the number of transmission channels is determined according to the number of sub-operations included in a complete operation cycle, which can not only ensure the data transmission rate but also avoid the waste of network resources.

[0074] Further, based on the first embodiment and the second embodiment of the present application, another embodiment of the present application is provided. In this embodiment, the step of transmitting the corresponding signal data and the intermediate operation result to the data processing center or the display terminal through the target transmission channel when each sub-operation is completed includes:

[0075] Step A1: When each sub-operation is completed, the corresponding signal data and intermediate operation results are packaged according to a preset data frame format, and transmitted to a data processing center or a display terminal through a target transmission channel, wherein the data frame formats of the multiple preset transmission channels are the same.

[0076] As an example, when each sub-operation is completed, the corresponding signal data and intermediate operation results are packaged according to a preset data frame format and transmitted to a data processing center or a display terminal through a target transmission channel, so that the data processing center or the display terminal can analyze the signal data and the intermediate operation results to achieve the purpose of detecting the control accuracy of the controller.

[0077] As an example, the data frame formats of the multiple preset transmission channels are the same, so as to improve the efficiency of packaging the corresponding signal data and intermediate operation results, and improve the efficiency of data transmission.

[0078] As an example, the corresponding signal data and intermediate calculation results are packaged according to a preset data frame format to facilitate the data processing center or display terminal to extract the data segment content in the data frame based on the preset data frame format when receiving the packaged data frame, thereby increasing the efficiency of data processing.

[0079] In this embodiment, the data transmission rates of the plurality of preset transmission channels are the same. Before the step of packaging the corresponding signal data and the intermediate operation results according to a preset data frame format and transmitting them to a data processing center or a display terminal through a target transmission channel when each sub-operation is completed, the method further includes:

[0080] Step S30: determining a maximum data carrying capacity of the preset transmission channel based on a preset operation cycle of the controller and a data transmission rate of a single preset transmission channel;

[0081] Step S40: Determine the data frame format of the preset transmission channel based on the amount of the signal data, the amount of the intermediate operation results, and the maximum data carrying capacity.

[0082] As an example, specifically, the data frame includes signal data fed back by at least one sensor, and may also include intermediate calculation results, etc., which are not specifically limited.

[0083] As an example, the size of the data frame determines how many sensor feedback signal data and how many intermediate operation results the data frame can include. The size of the data frame is determined by the maximum data carrying capacity of the preset transmission channel.

[0084] Therefore, based on the preset operation cycle of the controller and the data transmission rate of the preset transmission channel, the maximum data carrying capacity of the preset transmission channel is determined.

[0085] As an example, if the preset operation cycle is 125 microseconds / time and the data transmission rate of the preset transmission channel is 2Mbit / second, then the data transmission rate of the preset transmission channel is 2 5 bit / second. Since transmitting 1 byte of data is equivalent to transmitting 10 bits of data, it can be calculated that it takes 5 microseconds for the preset transmission channel to transmit one byte. Its maximum data carrying capacity is 25 bytes.

[0086] As an example, in actual application, in order to reduce the risk of errors during transmission, generally a maximum of 24 bytes can be transmitted.

[0087] As an example, if the maximum data carrying capacity of the preset transmission channel is determined, the size of the data frame can be determined. If the size of the data frame is 24 bytes, the remaining bytes after removing the bytes occupied by the frame tail can be used to determine how many sensor feedback signal data can be transmitted and how many intermediate calculation results can be transmitted. This ensures that the data content of a transmission is maximized and improves data transmission efficiency.

[0088] As an example, Figure 2 As shown, if the size of the data frame is determined, the format of the data frame can be determined. For example, if the signal data D1 of a current sensor occupies two bytes and the signal data D2 of an angle sensor occupies two bytes, in addition to the frame end stored in the 97th-100th bytes of the data frame, 17 bytes of intermediate calculation results (D3+D4) can also be stored, and there is no specific limitation.

[0089] As an example, the transmission channel and the preset data frame format may be: “sensor signal 1+sensor signal 2+intermediate operation signal 1+intermediate operation signal 2+frame tail”.

[0090] In this embodiment, applied to a data processing center or a display terminal, the multi-channel data transmission method includes the following steps:

[0091] Step 50: receiving a data frame sent by the controller;

[0092] Step 60: extracting the contents of the data frame and storing them in corresponding preset data buffers respectively; wherein the preset data buffers are established based on the types of the signal data and the intermediate operation results.

[0093] As an example, corresponding to the format of the data frame transmitted by the above-mentioned controller, a corresponding preset data buffer is divided in the data processing center or the display terminal, and the preset data buffer is established based on the type of the signal data and the intermediate operation result.

[0094] As an example, the type of the signal data is whether the source of the signal data is sensor 1 or sensor 2, and the type of the intermediate operation result is which operation step in which sub-operation the intermediate operation result is generated by.

[0095] As an example, the data processing center or the display terminal receives the data frame sent by the controller through transmission channel 1, extracts the content in the data frame, and stores it in the corresponding preset data buffers; the data processing center or the display terminal receives the data frame sent by the controller through transmission channel 2, continues to extract the content in the data frame, and stores it in the corresponding preset data buffers.

[0096] As an example, the preset data buffer may include a sensor 1 buffer, a sensor 2 buffer, a sensor 3 buffer, etc., and may also include an addition operation result buffer, a subtraction operation result buffer, etc., without specific limitation.

[0097] As an example, the data frame format received by the data processing center or display terminal is "sensor signal 1+sensor signal 2+intermediate operation signal 1+intermediate operation signal 2+frame tail". The content in the data frame is extracted to obtain sensor signal 1, sensor signal 2, intermediate operation signal 1 and intermediate operation signal 2. They are stored in corresponding preset data buffers respectively.

[0098] As an example, Figure 3 As shown, in order to receive a large amount of data transmitted from the controller, the data processing center or the display terminal has the same number of receiving ports as the transmission channels.

[0099] In this embodiment, the step of extracting the content in the data frame and storing it in the corresponding preset data buffer respectively includes:

[0100] Step B1: extracting signal data belonging to different sensor feedbacks in the data frame and intermediate operation results belonging to different operation steps in the data frame respectively, and storing them in corresponding preset data buffers respectively.

[0101] As an example, the contents in the data frames are extracted respectively, classified based on the types of the contents and stored in corresponding preset data buffers respectively, so that the data processing center or display terminal can analyze the data in different data buffers and improve data processing efficiency.

[0102] As an example, analyzing the data in different data buffers may be plotting the data stored multiple times and belonging to the feedback of the sensor 1 as a curve graph to analyze the changes in the data fed back by the sensor.

[0103] As an example, the data processing center or display terminal stores the sensor signal 1 in the extracted data frame correspondingly to the sensor 1 buffer, stores the sensor signal 2 correspondingly to the sensor 2 buffer, stores the intermediate operation signal 1 correspondingly to the addition operation result buffer, stores the intermediate operation signal 2 correspondingly to the subtraction operation result buffer, etc., without specific limitation.

[0104] In this embodiment, the data frame format of the preset transmission channel is determined, and data is received and stored based on the data frame format of the preset transmission channel, which can improve the data processing efficiency of the data processing center or display terminal and avoid confusion in receiving data due to multiple data transmission channels.

[0105] Reference Figure 4 , Figure 4 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.

[0106] like Figure 4 As shown, the multi-channel data transmission device may include: a processor 1001 , a memory 1005 , and a communication bus 1002 . The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005 .

[0107] Optionally, the multi-channel data transmission device may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, a WiFi module, etc. The user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. The network interface may include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0108] Those skilled in the art will understand that Figure 4 The multi-channel data transmission device structure shown in the figure does not constitute a limitation on the multi-channel data transmission device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0109] like Figure 4 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module and a multi-channel data transmission program. The operating system is a program that manages and controls the hardware and software resources of the multi-channel data transmission device, and supports the operation of the multi-channel data transmission program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the multi-channel data transmission system.

[0110] exist Figure 4 In the multi-channel data transmission device shown, the processor 1001 is used to execute the multi-channel data transmission program stored in the memory 1005 to implement the steps of any of the multi-channel data transmission methods described above.

[0111] The specific implementation of the multi-channel data transmission device of the present application is basically the same as the various embodiments of the multi-channel data transmission method described above, and will not be repeated here.

[0112] The present application also provides a multi-channel data transmission system, the system comprising: a controller and a data processing center or a display terminal;

[0113] The controller is used to perform operations on the signal data fed back by the collected sensors, wherein the operation process includes multiple sub-operations within a preset operation cycle; and is also used to transmit the corresponding signal data and the intermediate operation results to the data processing center or the display terminal through the target transmission channel when each sub-operation is completed, wherein the target transmission channel is a transmission channel in an idle state selected from multiple preset transmission channels;

[0114] The data processing center or display terminal is used to receive the data frame sent by the controller; it is also used to extract the content in the data frame and store it in the corresponding preset data buffer, wherein the preset data buffer is established based on the signal data and the type of the intermediate calculation result.

[0115] The specific implementation of the multi-channel data transmission system of the present application is basically the same as the various embodiments of the multi-channel data transmission method described above, and will not be repeated here.

[0116] The present application also provides a storage medium, on which a multi-channel data transmission program is stored, and when the multi-channel data transmission program is executed by a processor, the steps of the multi-channel data transmission method as described in any one of the above items are implemented.

[0117] The specific implementation of the storage medium of the present application is basically the same as the above-mentioned multi-channel data transmission embodiments, and will not be repeated here.

[0118] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0119] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0121] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A multi-channel data transmission method, It is characterized in that Applied to the controller, the multi-channel data transmission method comprises the following steps: Performing operations on the collected sensor feedback signal data, wherein the operation process includes multiple sub-operations within a preset operation cycle, the preset operation cycle is a complete operation cycle preset in the controller, each sub-operation includes multiple identical operation steps, and the sub-operation includes FOC operation; Performing two controls based on the calculation results of multiple FOC calculations, if one of the controls fails, then inferring the abnormal FOC calculation based on multiple calculation steps corresponding to the intermediate calculation results, retaining a preset number of calculation results in the multiple FOC calculations after the preset calculation cycle ends, detecting the preset number of calculation results to monitor the correctness of each sub-calculation process, and updating the number of sub-calculations after the preset calculation cycle ends, wherein the intermediate calculation results include the results generated by multiple calculation steps in the sub-calculation process; When each sub-operation is completed, the corresponding signal data and the intermediate operation results are transmitted to the data processing center or the display terminal through the target transmission channel; The target transmission channel is an idle transmission channel selected from a plurality of preset transmission channels, and the number of the preset transmission channels corresponds to the number of sub-operations in the preset operation cycle.

2. The multi-channel data transmission method according to claim 1, It is characterized in that The step of transmitting the corresponding signal data and the intermediate operation result to the data processing center or the display terminal through the target transmission channel when each sub-operation is completed includes: When each sub-operation is completed, the corresponding signal data and the intermediate operation results are packaged according to a preset data frame format and transmitted to a data processing center or a display terminal through a target transmission channel; Wherein, the data frame formats of the multiple preset transmission channels are the same.

3. The multi-channel data transmission method as claimed in claim 2, It is characterized in that The data transmission rates of the plurality of preset transmission channels are the same. Before the step of packaging the corresponding signal data and the intermediate operation results according to a preset data frame format and transmitting them to a data processing center or a display terminal through a target transmission channel when each sub-operation is completed, the method further includes: Determine the maximum data carrying capacity of the preset transmission channel based on the preset operation cycle of the controller and the data transmission rate of a single preset transmission channel; Based on the amount of the signal data, the amount of intermediate operation results, and the maximum data carrying capacity, a data frame format of the preset transmission channel is determined.

4. The multi-channel data transmission method according to claim 1, It is characterized in that The signal data includes signal data fed back by a plurality of sensors.

5. A multi-channel data transmission method according to any one of claims 1 to 4, It is characterized in that Applied to a data processing center or a display terminal, the multi-channel data transmission method comprises the following steps: Receive the data frame sent by the controller; Respectively extracting signal data belonging to feedback from different sensors in the data frame and intermediate operation results generated by different operation steps in the data frame, and storing them in corresponding preset data buffers respectively; The preset data buffer is established based on the signal data and the type of the intermediate operation result.

6. A multi-channel data transmission system, It is characterized in that The system comprises: a controller, and a data processing center or a display terminal; The controller is used to perform operations on the signal data fed back by the collected sensors, wherein the operation process includes multiple sub-operations within a preset operation cycle, the preset operation cycle is a complete operation cycle preset in the controller, each sub-operation includes multiple identical operation steps, and the sub-operation includes FOC operation; it is also used to perform two controls based on the operation results of multiple FOC operations, if one of the controls fails, then the abnormal FOC operation is reversed based on the multiple operation steps corresponding to the intermediate operation results, when the preset operation cycle ends, the operation results of a preset number of the multiple FOC operations are retained, and the preset number of operation results are detected to monitor the correctness of each sub-operation process, and after the preset operation cycle ends, the number of sub-operations is updated, and the intermediate operation results include the results generated by multiple operation steps in the sub-operation process; it is also used to transmit the corresponding signal data and the intermediate operation results to the data processing center or the display terminal through the target transmission channel when each sub-operation is completed, wherein the target transmission channel is a transmission channel in an idle state selected from multiple preset transmission channels; The data processing center or display terminal is used to receive the data frame sent by the controller; it is also used to extract the signal data belonging to different sensor feedback in the data frame, and the intermediate operation results generated by different operation steps in the data frame, and store them in the corresponding preset data buffers respectively, wherein the preset data buffer is established based on the type of the signal data and the intermediate operation results, and the number of the preset transmission channels corresponds to the number of sub-operations in the preset operation cycle.

7. A multi-channel data transmission device, It is characterized in that The device comprises: a memory, a processor, and a multi-channel data transmission program stored in the memory and executable on the processor, wherein the multi-channel data transmission program is configured to implement the steps of the multi-channel data transmission method according to any one of claims 1 to 5.

8. A storage medium, It is characterized in that The storage medium stores a multi-channel data transmission program, which, when executed by a processor, implements the steps of the multi-channel data transmission method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Channel allocation method for wireless sensor network communication and router

    CN105722117A

  • Intelligent insole data processing system

    CN106909800A