Control method of electronic device, electronic device, and computer-readable storage medium

By monitoring the status information of interactive data in electronic devices in real time and dynamically adjusting the occupancy ratio of the transmission channel, the problem of low data transmission efficiency caused by traditional fixed configurations is solved, and more efficient data transmission is achieved.

CN122489474APending Publication Date: 2026-07-31LCFC HEFEI ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LCFC HEFEI ELECTRONICS TECH
Filing Date
2026-05-15
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In existing technologies, the fixed configuration of transmission channels during data transmission in different working stages of electronic devices leads to decreased data transmission efficiency and wasted resources. This is especially true in the multiple working stages of AI systems, where the bandwidth and latency requirements for data transmission cannot be met.

Method used

The detection circuit in the converter determines the interactive data status information between the host device and the memory. The conversion module dynamically adjusts the occupancy ratio of the transmission channel, adjusts the number of sending and receiving channels according to the transmission direction and flow of the data stream, and reconfigures the physical and logical paths of the communication elements.

Benefits of technology

It enables dynamic adaptation of data transmission in electronic devices, improves data transmission efficiency, makes full use of bandwidth, and avoids waste of transmission resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122489474A_ABST
    Figure CN122489474A_ABST
Patent Text Reader

Abstract

This application discloses a control method for an electronic device, an electronic device, and a computer-readable storage medium. The method is applied to an electronic device, which includes a host device, a memory, and a converter. The converter is connected to the host device via a first interface and to the memory via a second interface. Both the first and second interfaces are provided with multiple transmission channels. The method includes: determining the status information of the interactive data between the host device and the memory through a detection circuit in the converter, and sending the status information to a conversion module in the converter; using the conversion module, based on the status information, determining the data transmission direction and flow rate of each data stream in the interactive data; and adjusting the channel occupancy ratio in the sending and / or receiving directions of the transmission channels based on the data transmission direction and flow rate of each data stream. This method fully utilizes the data transmission bandwidth of the electronic device, effectively improving data transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment control, and in particular to a control method for an electronic device, an electronic device, and a computer-readable storage medium. Background Technology

[0002] Electronic devices require high bandwidth and efficiency for data transmission between multiple functional modules during data processing. However, the current configuration of data transmission and reception channels between these modules is fixed. When the data state changes, the transmission and reception channels cannot meet the data transmission requirements, affecting data transmission efficiency. For example, the rapid development of AI and large-scale model technologies, and data-intensive computing tasks such as deep learning training, distributed inference, and real-time data analysis, place extremely high demands on data transmission bandwidth and latency. The data read / write load varies significantly across different stages of an AI system. For instance, in the data acquisition stage, data reception (RX) is the primary function, with large amounts of sensor data and image data continuously being collected and stored. In the model training stage, not only is it necessary to read large amounts of training data (RX), but the computation results also need to be frequently sent out (TX) for parameter updates and other operations. In the inference stage, external input data is typically received (RX), and after model inference, the inference results are sent out (TX). Traditional data transmission methods use fixed TX and RX configurations, meaning the transmission and reception channels are fixed. This could lead to decreased data transmission efficiency and wasted transmission resources at multiple stages of the AI ​​system's operation. Summary of the Invention

[0003] This application provides a control method for an electronic device, applied to an electronic device including a host device, a memory, and a converter. The converter is connected to the host device through a first interface and to the memory through a second interface. Both the first and second interfaces are provided with multiple transmission channels. The method includes: The detection circuit in the converter determines the status information of the interactive data between the host device and the memory, and sends the status information to the conversion module in the converter. Using the conversion module, based on the status information, the data transmission direction and flow rate of each data stream in the interactive data are determined; Based on the data transmission direction and flow rate of each data stream, adjust the channel occupancy ratio in the transmission channel in the sending and / or receiving directions.

[0004] Optionally, the detection circuit includes a first detection circuit disposed between the first interface and the conversion module, and a second detection circuit disposed between the second interface and the conversion module. Determining the status information of the interactive data between the host device and the memory through the detection circuit in the converter includes: The first detection circuit determines the first state information of the first interactive data flowing through the first interface; The second detection circuit determines the second state information of the second interactive data flowing through the second interface.

[0005] Optionally, the status information of the interactive data includes at least one of the following: data transmission rate, data flow, data transmission target, data input frequency, and continuous transmission time.

[0006] Optionally, adjusting the channel occupancy ratio in the transmission channel in the sending and / or receiving directions based on the data transmission direction and flow of each data stream includes: Based on the data transmission direction and flow rate of each data stream, the primary and secondary transmission directions of the interactive data are determined, and the individual flow rate of the interactive data in the primary and secondary transmission directions is determined respectively. Based on the proportion of individual traffic in the primary and / or secondary transmission directions in the overall traffic, the number of channels in the primary transmission direction is increased accordingly, and the number of channels in the secondary transmission direction is decreased accordingly.

[0007] Optionally, adjusting the channel occupancy ratio in the transmission channel in the transmitting and / or receiving directions includes: The converter converts the data transmission and reception direction of the communication elements associated with the first interface and the second interface, and reconfigures the physical path and / or logical path of the communication elements.

[0008] Optionally, after determining the status information of the interaction data between the host device and the memory, the method further includes: Based on the status information, the processing priority of the data streams using the sending channel and / or the receiving channel is adjusted.

[0009] Optionally, both the host device and the memory are provided with a cache, and the cache is provided with a queue. The method further includes: If a data transmission conflict is detected during the transmission of the interactive data, the pre-transmission data is temporarily stored in the cache queue.

[0010] Optionally, in adjusting the channel occupancy ratio in the transmission channel in the transmitting and / or receiving directions, the method further includes: The pre-transmission data is retrieved from the queue based on the storage order in the queue. Based on the data transmission direction of the pre-transmission data, the pre-transmission data is sent to the host device or the memory.

[0011] This application embodiment also provides an electronic device, including a host device, a memory, and a converter. The converter is connected to the host device through a first interface and to the memory through a second interface. Both the first interface and the second interface are provided with multiple transmission channels. The converter is provided with a detection circuit and a conversion module. The detection circuit is configured to determine the status information of the interactive data between the host device and the memory, and send the status information to the conversion module; The conversion module is configured to determine the data transmission direction and flow rate of each data stream in the interactive data based on the status information; and to adjust the channel occupancy ratio in the sending and / or receiving directions of the transmission channel based on the data transmission direction and flow rate of each data stream.

[0012] This application also provides a computer-readable storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements the steps of the method described above.

[0013] The control method of the electronic device in this application embodiment determines the main flow direction and data load of the interactive data by real-time monitoring of the interactive data. This allows for dynamic adjustment of the number of sending and / or receiving channels in the transmission channel, so that the adjusted transmission channel is adapted to the current transmission of interactive data. This fully utilizes the data transmission bandwidth of the electronic device and effectively improves data transmission efficiency. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application; Figure 2 This is a flowchart of a control method for an electronic device according to an embodiment of this application; Figure 3 Examples of embodiments of this application Figure 2 A flowchart of one embodiment of step S300; Figure 4 A flowchart illustrating a specific embodiment of the control method for an electronic device according to this application; Figure 5 This is a flowchart of another specific embodiment of the control method for an electronic device according to an embodiment of this application. Detailed Implementation

[0016] Various embodiments and features of this application are described herein with reference to the accompanying drawings.

[0017] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.

[0018] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0019] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.

[0020] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application, which have the features described in the claims and are therefore all within the scope of protection defined herein.

[0021] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.

[0022] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.

[0023] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.

[0024] This application provides a control method for an electronic device, which is applied to the electronic device. The electronic device includes a host device, a memory, and a converter. The converter is connected to the host device through a first interface and to the memory through a second interface. Both the first interface and the second interface are provided with multiple transmission channels.

[0025] Specifically, a host device can be a major component of an electronic device that can process large amounts of data. For example, a major component can be the host of an electronic device, on which large AI models can be deployed. During deep learning training, distributed inference, and real-time data analysis, the host device will interact with other devices in large amounts of data, including data interaction between the host device and the memory. The host device sends or receives data to the memory, which is used to store the data.

[0026] Combination Figure 1 The electronic device also includes a converter for converting the function of the data transmission channel, including adjusting the channel occupancy ratio in the transmitting and / or receiving directions. For example, increasing the channel occupancy ratio in the transmitting and receiving directions. The transmitting direction is opposite to the receiving direction. The converter has a first interface and a second interface. The converter connects to a host device via the first interface, and data exchange between the host device and the memory can be transmitted via the first interface. The converter connects to the memory via the second interface, and data exchange is also transmitted to the memory via the second interface. Both the first and second interfaces have multiple transmitting and receiving channels. In one embodiment, the transmission channel in the data transmitting direction is a transmitting channel, and the channel in the data receiving direction is a receiving channel. The number of transmitting and receiving channels can be the same, or they can be grouped, with each group including one transmitting channel and one receiving channel, such as TX0+ and RX0+ in one group, TX0- and RX0- in one group, TX1+ and RX1+ in one group, and TX1- and RX1- in one group. In another embodiment, the transmit and receive channels can be unbalanced, and their numbers can vary. The host device can send data to the memory via the transmit channel through a converter, and can also receive data transmitted from the memory via the receive channel through a converter.

[0027] The control method of this application will now be described in detail with reference to the accompanying drawings. Figure 2This is a flowchart of a control method for an electronic device according to an embodiment of this application, such as... Figure 2 As shown and combined Figure 1 The method includes the following steps: S100: The detection circuit in the converter determines the status information of the interactive data between the host device and the memory, and sends the status information to the conversion module in the converter. For example, during the use of the electronic device, the data transmitted between the host device and the memory is interactive data. This includes interactive data sent from the host device to the memory, such as data generated by the host device during data processing that needs to be sent to the memory for storage. This interactive data may include data transmitted from the host device to the memory based on corresponding instructions.

[0028] In one embodiment, interactive data can be acquired through a detection circuit in the converter of an electronic device. For example, if the converter monitors the data flowing through it through a first interface and / or a second interface, the interactive data will be acquired if it is detected, and relevant information about the interactive data will be determined.

[0029] For example, the detection circuit can be a signal detection and feedback circuit, used to detect the interactive data passing through the converter and to provide feedback on the relevant information of the interactive data. In one embodiment, the detection circuit detects the content and related information of the interactive data through its own circuit structure and circuit elements, and determines the state information of the interactive data based on the detection results. This state information is used to characterize the features, identity, and transmission destination of the interactive data.

[0030] Optionally, the status information of the interactive data includes at least one of the following: data transmission rate, data flow, data transmission destination, data input frequency, and continuous transmission time. The data transmission rate refers to the current speed and direction of the interactive data transmission. The data flow characterizes the size of the interactive data. The data transmission destination is the destination to which the interactive data is to be transmitted, such as the CPU or cache in the host device, or the cache in the memory. The data input frequency can be the frequency of interactive data transmission, including the frequency of transmission of the same or different data content between the host device and the memory. The continuous transmission time is the time it takes for the interactive data to be transmitted from the data initiator to the data receiver.

[0031] The detection circuit sends the determined status information of the interactive data to the conversion module in the converter. The conversion module is used to determine the transmission direction of the interactive data and to adjust the channel occupancy ratio in the transmission channel in the sending and / or receiving directions. In one embodiment, the transmission channel in the data sending direction is the sending channel, and the channel in the data receiving direction is the receiving channel. The sending and / or receiving channels can be configured, and the number of sending and / or receiving channels can be adjusted to adjust the channel occupancy ratio in the transmission channel in the sending and / or receiving directions.

[0032] S200, using the conversion module, based on the status information, determine the data transmission direction and flow rate of each data stream in the interactive data.

[0033] For example, the conversion module is the core device of the converter. The conversion module analyzes the status information and, based on all relevant sub-information within the status information, such as the data transmission rate, data flow, data transmission target, data input frequency, and continuous transmission time, comprehensively judges the interactive data to determine the data transmission direction and flow of each data stream in the interactive data. Specifically, the interactive data contains multiple data streams, each with a corresponding data transmission direction and flow, such as the direction of transmission from the host device to the memory and the data volume; and the direction of transmission from the memory to the host device and the data volume.

[0034] Each data stream can be transmitted through a sending channel or a receiving channel in the transmission channel, and multiple data streams can share a sending channel or a receiving channel.

[0035] S300, based on the data transmission direction and flow rate of each data stream, adjust the channel occupancy ratio in the transmission channel in the sending and / or receiving directions.

[0036] For example, after determining the data transmission direction and flow rate of the data stream, the channel occupancy ratio in the sending and / or receiving directions of the transmission channel can be dynamically adjusted based on the data transmission direction and flow rate. For instance, the direction of data transmission from the host device to the memory can be set as the sending direction, and the transmission channel in the sending direction is called the sending channel. The direction of data transmission from the memory to the host device can be set as the receiving direction, and the transmission channel in the receiving direction is called the receiving channel. If there are many data streams with the sending direction attribute and a large flow rate, while there are many data streams with the receiving direction attribute and a small flow rate, then the primary data transmission direction of the interactive data can be determined as the sending direction, and the secondary data transmission direction as the receiving direction. If the current sending and / or receiving channels are not compatible with the data transmission direction and flow rate of the data stream, the conversion module can adjust the number of sending and / or receiving channels, thereby adjusting the occupancy ratio of sending and / or receiving channels in all transmission channels. For example, the number of sending channels can be increased, and the number of receiving channels can be decreased, thereby increasing the occupancy ratio of sending channels in the overall channel count and decreasing the occupancy ratio of receiving channels in the overall channel count.

[0037] In one embodiment, the conversion module can convert a sending channel into a receiving channel, or vice versa, based on the data transmission direction and flow of each data stream, thereby adjusting the proportion of sending and / or receiving channels in the overall channel configuration. During the conversion process, the configuration information of the sending and / or receiving channels can be reconfigured to change their functionality.

[0038] Combination Figure 5 For example, if the proportion of data received by the receiving channel per unit time is greater than 0.6 when the AI ​​model is set up on the host device, it can be determined that the AI ​​model is in the data acquisition phase, and the ratio of receiving channels to sending channels can be adjusted to 7:3. If the proportion of data received by the receiving channel per unit time is greater than or equal to 0.4 and less than or equal to 0.6, the AI ​​model can be determined to be in the data training phase, and the ratio of receiving channels to sending channels can be adjusted to 5:5. If the proportion of data received by the receiving channel per unit time is less than 0.4, the AI ​​model can be determined to be in the data inference phase, and the ratio of receiving channels to sending channels can be adjusted to 3:7.

[0039] The control method of the electronic device in this application embodiment determines the main flow direction and data load of the interactive data by real-time monitoring of the interactive data. This allows for dynamic adjustment of the number of sending and / or receiving channels in the transmission channel, so that the adjusted transmission channel is adapted to the current transmission of interactive data. This fully utilizes the data transmission bandwidth of the electronic device and effectively improves data transmission efficiency.

[0040] In one embodiment of this application, the detection circuit includes a first detection circuit disposed between the first interface and the conversion module, and a second detection circuit disposed between the second interface and the conversion module. Determining the status information of the interactive data between the host device and the memory through the detection circuit in the converter includes the following steps: The first detection circuit determines the first state information of the first interactive data flowing through the first interface; The second detection circuit determines the second state information of the second interactive data flowing through the second interface.

[0041] For example, there can be one or more detection circuits. Multiple detection circuits can detect the interactive data from multiple detection locations to determine the status information of the interactive data. Setting up multiple detection circuits can, on the one hand, improve the accuracy of detecting the status information of the interactive data; on the other hand, it can determine whether transmission conflicts have occurred during the transmission of the interactive data, such as the sending channel being occupied by full load for a long time, causing new data streams to not be sent in time or even lost.

[0042] In this embodiment, a first detection circuit and a second detection circuit can be provided in the converter. The first detection circuit is located between the first interface and the conversion module to detect interactive data flowing through the first interface, and the second detection circuit is located between the second interface and the conversion module to detect interactive data flowing through the second interface. This improves the accuracy of detection and allows for timely determination of the current state of the interactive data.

[0043] In one embodiment of this application, the adjustment of the channel occupancy ratio in the transmission channel in the sending and / or receiving directions is based on the data transmission direction and flow rate of each data stream, such as... Figure 3 As shown, it includes: S310, based on the data transmission direction and flow of each data stream, determine the primary and secondary transmission directions of the interactive data, and determine the individual flow of the interactive data in the primary and secondary transmission directions respectively. S320, based on the proportion of individual traffic in the main transmission direction and / or the secondary transmission direction in the overall traffic, the number of channels in the main transmission direction of the transmission channel is increased accordingly, and the number of channels in the secondary transmission direction of the transmission channel is decreased accordingly.

[0044] For example, the interactive data contains multiple data streams, each with a data transmission direction and flow rate. The data transmission direction of the majority of data streams can be determined as the primary transmission direction of the interactive data, and the data transmission direction of the minority of data streams can be determined as the secondary transmission direction of the interactive data. The flow rate of the data streams in the primary transmission direction is the one-way flow rate of the interactive data in the primary transmission direction, and the flow rate of the data streams in the secondary transmission direction is the one-way flow rate of the interactive data in the secondary transmission direction.

[0045] Each data stream transmitted in the primary transmission direction should occupy a significant portion of the data channels. For example, if the primary transmission direction is the sending direction from the host device to the memory, and the sending direction corresponds to a sending channel, then the sending channel should occupy the majority of the total channels.

[0046] In this embodiment, on the one hand, the number of channels in the primary transmission direction can be increased accordingly based on the proportion of unidirectional traffic in the primary transmission direction to the overall traffic. On the other hand, the number of channels in the secondary transmission direction can be decreased based on the proportion of unidirectional traffic in the secondary transmission direction to the overall traffic.

[0047] For example, if the unidirectional traffic in the main transmission direction accounts for 80% of the total traffic, then based on this proportion, the number of transmission channels in the main transmission direction can be increased, specifically adjusting the proportion of transmission channels to 80% of the total number of transmission channels. In one embodiment of this application, adjusting the channel occupancy ratio in the transmission channel in the transmission direction and / or receiving direction includes the following steps: The converter converts the data transmission and reception directions of the communication elements associated with the first and second interfaces, reconfiguring the physical and / or logical paths of the communication elements. For example, based on the data transmission direction and flow rate of each data stream, the primary transmission direction of the interactive data and its flow rate in that primary direction can be determined. The conversion module can then configure at least a portion of the sending and / or receiving channels based on this primary transmission direction and its flow rate, including converting the data transmission and reception directions of the communication elements associated with the first and second interfaces and reconfiguring the physical and / or logical paths of the communication elements. This converts a sending channel into a receiving channel, or vice versa. The communication elements associated with the first and second interfaces may include communication elements within the first interface and communication elements on the host device, as well as communication elements within the second interface and communication elements on the memory.

[0048] For example, the main transmission direction is the sending direction from the host device to the memory, and the data flow in each data stream in the sending direction is relatively large. The sending direction corresponds to the sending channel in the transmission channel. Currently, the demand for the sending channel is large. The conversion module can configure some of the receiving channels in the transmission channel to convert them into sending channels, thereby increasing the occupancy of the sending channel in the overall channel, thus adapting to the current transmission of interactive data and improving data transmission efficiency.

[0049] In one embodiment of this application, after determining the status information of the interactive data between the host device and the memory, the method further includes: adjusting the processing priority of the data streams using the sending channel and / or the receiving channel based on the status information.

[0050] For example, on the one hand, adjusting the number of transmitting channels and / or receiving channels can adjust the number of channels and the proportion of receiving channels in the entire transmission channel. For instance, based on the status information of the interactive data, the conversion module can reconfigure the number of channels or receiving channels, thereby converting their functions. On the other hand, the conversion module can adjust the processing priority of data streams using transmitting and / or receiving channels.

[0051] For example, if the data stream requiring the sending channel has a large volume of traffic and the number of sending channels has not yet been adjusted in time, the processing priority of the data stream using the sending channel can be reduced, allowing it to be processed later and preventing it from being lost during transmission. Similarly, if the data stream requiring the receiving channel has a small volume of traffic and the number of receiving channels has not yet been adjusted in time, the processing priority of the data stream using the receiving channel can be increased, allowing it to be processed first, making better use of the receiving channels, and improving data transmission efficiency.

[0052] In one embodiment of this application, both the host device and the memory are provided with caches, and the caches are provided with queues. The method further includes the following steps: If a data transmission conflict is detected during the transmission of the interactive data, the pre-transmission data is temporarily stored in the cache queue.

[0053] For example, data transmission conflicts may occur during the transmission of interactive data. For instance, during the computational process of a large AI model, the host device needs to send a large amount of interactive data to the memory via sending channels. If the number of sending channels is not adjusted in time, a large amount of data will not be sent out in a timely manner, potentially leading to data transmission conflicts. In this embodiment, pre-transmission data can be temporarily stored in a cache queue. Both the host device and the memory have caches. If the host device cannot send the pre-transmission data in time, it can be temporarily stored in the host device's cache; similarly, if the memory cannot send the pre-transmission data in time, it can be temporarily stored in the memory's cache. After the conversion module adjusts the number of sending and / or receiving channels based on the status information of the interactive data, it retrieves the temporarily stored pre-transmission data from the cache for transmission, thereby avoiding data loss.

[0054] In one embodiment, each cache can be configured with a queue, where data can be stored and retrieved using a first-in, first-out (FIFO) mechanism. Pre-transfer data can be temporarily stored in the cache's queue, thus being processed based on the FIFO mechanism.

[0055] Preferably, after adjusting the channel occupancy ratio in the transmission channel in the sending and / or receiving directions, such as... Figure 4 As shown, the method further includes the following steps: S500, based on the storage order in the queue, retrieve the pre-transmission data from the queue; S600, based on the data transmission direction of the pre-transmission data, the pre-transmission data is sent to the host device or the memory.

[0056] For example, the queue has a first-in, first-out (FIFO) mechanism, which is followed once the pre-transfer data is stored in the queue. When the pre-transfer data needs to be sent to the destination, it is retrieved from the queue based on its storage order, and then sent to the host device or storage based on the data transmission direction. Because the pre-transfer data can be temporarily stored in the queue, it is not subject to the bandwidth limitations of the electronic device and can still be securely sent to the host device or storage.

[0057] This application also provides an electronic device, such as... Figure 1 As shown, it includes a host device, a memory, and a converter. The converter is connected to the host device through a first interface and to the memory through a second interface. Both the first and second interfaces are provided with multiple transmission channels. The converter is provided with a detection circuit and a conversion module. The detection circuit is configured to determine the status information of the interactive data between the host device and the memory, and send the status information to the conversion module; The conversion module is configured to determine the data transmission direction and flow rate of each data stream in the interactive data based on the status information; and to adjust the channel occupancy ratio in the sending and / or receiving directions of the transmission channel based on the data transmission direction and flow rate of each data stream.

[0058] For example, during the use of an electronic device, the data transferred between the host device and the memory is interactive data. This includes interactive data sent from the host device to the memory, such as data generated by the host device during data processing that needs to be sent to the memory for storage. This interactive data may include data transferred from the host device to the memory based on corresponding instructions.

[0059] In one embodiment, interactive data can be acquired through a detection circuit in the converter of an electronic device. For example, if the converter monitors the data flowing through it through a first interface and / or a second interface, the interactive data will be acquired if it is detected, and relevant information about the interactive data will be determined.

[0060] The detection circuit can be a signal detection and feedback circuit, used to detect the interactive data passing through the converter and to provide feedback on the relevant information of the interactive data. In one embodiment, the detection circuit uses its own circuit structure and circuit elements to detect the content and related information of the interactive data, and based on the detection results, determines the state information of the interactive data. This state information is used to characterize the features, identity, and transmission destination of the interactive data.

[0061] Optionally, the status information of the interactive data includes at least one of the following: data transmission rate, data flow, data transmission destination, data input frequency, and continuous transmission time. The data transmission rate refers to the current speed and direction of the interactive data transmission. The data flow characterizes the size of the interactive data. The data transmission destination is the destination to which the interactive data is to be transmitted, such as the CPU or cache in the host device, or the cache in the memory. The data input frequency can be the frequency of interactive data transmission, including the frequency of transmission of the same or different data content between the host device and the memory. The continuous transmission time is the time it takes for the interactive data to be transmitted from the data initiator to the data receiver.

[0062] The detection circuit sends the determined status information of the interactive data to the conversion module in the converter. The conversion module is used to determine the transmission direction of the interactive data and to adjust the channel occupancy ratio in the transmission channel in the sending and / or receiving directions. In one embodiment, the transmission channel in the data sending direction is the sending channel, and the channel in the data receiving direction is the receiving channel. The sending and / or receiving channels can be configured, and the number of sending and / or receiving channels can be adjusted to adjust the channel occupancy ratio in the transmission channel in the sending and / or receiving directions.

[0063] The conversion module is the core device of the converter. It analyzes the status information and, based on all relevant sub-information such as data transmission rate, data flow, data transmission target, data input frequency, and continuous transmission time, comprehensively judges the interactive data to determine the data transmission direction and flow of each data stream. Specifically, the interactive data contains multiple data streams, each with a corresponding data transmission direction and flow, such as the direction of transmission from the host device to the memory and the data volume; and the direction of transmission from the memory to the host device and the data volume.

[0064] Each data stream can be transmitted through a sending channel or a receiving channel in the transmission channel, and multiple data streams can share a sending channel or a receiving channel.

[0065] After determining the data transmission direction and flow rate of the data stream, the conversion module can dynamically adjust the channel occupancy ratio in the sending and / or receiving directions based on these factors. For example, the direction of data transmission from the host device to the memory can be set as the sending direction, and the transmission channel in the sending direction is called the sending channel. The direction of data transmission from the memory to the host device can be set as the receiving direction, and the transmission channel in the receiving direction is called the receiving channel. If there are many data streams with sending direction attributes and high flow rates, while there are many data streams with receiving direction attributes and low flow rates, then the primary data transmission direction of the interactive data can be determined as the sending direction, and the secondary data transmission direction as the receiving direction. If the current sending and / or receiving channels are not compatible with the data transmission direction and flow rate of the data stream, the conversion module can adjust the number of sending and / or receiving channels, thereby adjusting their occupancy ratio in all transmission channels. For example, the number of sending channels can be increased, and the number of receiving channels can be decreased, thereby increasing the occupancy ratio of sending channels and decreasing the occupancy ratio of receiving channels in the overall channel count.

[0066] In one embodiment, the conversion module can convert a sending channel into a receiving channel, or vice versa, based on the data transmission direction and flow of each data stream, thereby adjusting the proportion of sending and / or receiving channels in the overall channel configuration. During the conversion process, the configuration information of the sending and / or receiving channels can be reconfigured to change their functionality.

[0067] In one embodiment of this application, the detection circuit includes a first detection circuit disposed between the first interface and the conversion module, and a second detection circuit disposed between the second interface and the conversion module, wherein the detection circuit is further configured as follows: The first detection circuit determines the first state information of the first interactive data flowing through the first interface; The second detection circuit determines the second state information of the second interactive data flowing through the second interface.

[0068] In one embodiment of this application, the status information of the interactive data includes at least one of the following: data transmission rate, data flow, data transmission target, data input frequency, and continuous transmission time.

[0069] In one embodiment of this application, the conversion module is further configured to: determine the primary and secondary transmission directions of the interactive data based on the data transmission direction and flow of each data stream, and determine the individual flow of the interactive data in the primary and secondary transmission directions respectively; Based on the proportion of individual traffic in the primary and / or secondary transmission directions in the overall traffic, the number of channels in the primary transmission direction is increased accordingly, and the number of channels in the secondary transmission direction is decreased accordingly.

[0070] In one embodiment of this application, the conversion module is further configured to: convert the data transmission and reception direction of the communication elements associated with the first interface and the second interface through the converter, and reconfigure the physical path and / or logical path of the communication elements.

[0071] In one embodiment of this application, the conversion module is further configured to: adjust the processing priority of the data streams using the sending channel and / or the receiving channel based on the status information.

[0072] In one embodiment of this application, both the host device and the memory are provided with caches, and the caches are provided with queues. The caches are configured as follows: If a data transmission conflict is detected during the transmission of the interactive data, the pre-transmission data is temporarily stored in the cache queue.

[0073] In one embodiment of this application, after adjusting the occupancy ratio of the transmitting channel and / or the receiving channel in the overall channel, the buffer is further configured as follows: The pre-transmission data is retrieved from the queue based on the storage order in the queue. Based on the data transmission direction of the pre-transmission data, the pre-transmission data is sent to the host device or the memory.

[0074] This application also provides a computer device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the method described above. This computer device may be a service device such as a server.

[0075] This application also provides a computer-readable storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements the steps of the method described above.

[0076] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the method described above.

[0077] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.

Claims

1. A control method for an electronic device, characterized in that, The method is applied to an electronic device, which includes a host device, a memory, and a converter. The converter is connected to the host device via a first interface and to the memory via a second interface. Both the first and second interfaces are provided with multiple transmission channels. The detection circuit in the converter determines the status information of the interactive data between the host device and the memory, and sends the status information to the conversion module in the converter. Using the conversion module, based on the status information, the data transmission direction and flow rate of each data stream in the interactive data are determined; Based on the data transmission direction and flow rate of each data stream, adjust the channel occupancy ratio in the transmission channel in the sending and / or receiving directions.

2. The control method for an electronic device according to claim 1, characterized in that, The detection circuit includes a first detection circuit disposed between the first interface and the conversion module, and a second detection circuit disposed between the second interface and the conversion module. Determining the status information of the interactive data between the host device and the memory through the detection circuit in the converter includes: The first detection circuit determines the first state information of the first interactive data flowing through the first interface; The second detection circuit determines the second state information of the second interactive data flowing through the second interface.

3. The control method for an electronic device according to claim 1, characterized in that, The status information of the interactive data includes at least one of the following: data transmission rate, data flow, data transmission target, data input frequency, and continuous transmission time.

4. The control method for an electronic device according to claim 1, characterized in that, The adjustment of the channel occupancy ratio in the transmission channel in the sending and / or receiving directions based on the data transmission direction and flow of each data stream includes: Based on the data transmission direction and flow rate of each data stream, the primary and secondary transmission directions of the interactive data are determined, and the individual flow rate of the interactive data in the primary and secondary transmission directions is determined respectively. Based on the proportion of individual traffic in the primary and / or secondary transmission directions in the overall traffic, the number of channels in the primary transmission direction is increased accordingly, and the number of channels in the secondary transmission direction is decreased accordingly.

5. The control method for an electronic device according to claim 1, characterized in that, Adjusting the channel occupancy ratio in the transmission channel in the transmitting and / or receiving directions includes: The converter converts the data transmission and reception direction of the communication elements associated with the first interface and the second interface, and reconfigures the physical path and / or logical path of the communication elements.

6. The control method for an electronic device according to claim 1, characterized in that, After determining the status information of the interaction data between the host device and the memory, the method further includes: Based on the status information, the processing priority of the data streams using the sending channel and / or the receiving channel is adjusted.

7. The control method for an electronic device according to claim 1, characterized in that, Both the host device and the memory are equipped with caches, and the caches are equipped with queues. The method further includes: If a data transmission conflict is detected during the transmission of the interactive data, the pre-transmission data is temporarily stored in the cache queue.

8. The control method for an electronic device according to claim 7, characterized in that, The method further includes adjusting the channel occupancy ratio in the transmission channel in the transmitting and / or receiving directions: The pre-transmission data is retrieved from the queue based on the storage order in the queue. Based on the data transmission direction of the pre-transmission data, the pre-transmission data is sent to the host device or the memory.

9. An electronic device, characterized in that, The device includes a host device, a memory, and a converter. The converter is connected to the host device through a first interface and to the memory through a second interface. Both the first and second interfaces are provided with multiple transmission channels. The converter is provided with a detection circuit and a conversion module. The detection circuit is configured to determine the status information of the interactive data between the host device and the memory, and send the status information to the conversion module; The conversion module is configured to determine the data transmission direction and flow rate of each data stream in the interactive data based on the status information; and to adjust the channel occupancy ratio in the sending and / or receiving directions of the transmission channel based on the data transmission direction and flow rate of each data stream.

10. A computer-readable storage medium, characterized in that, It stores a computer program / instruction thereon, which, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 8.