Communication adjustment method, electronic equipment and storage medium
By acquiring and adjusting the signal level during communication between the eMMC storage device and the host to determine the maximum effective sampling window value, the stuttering and black screen problems caused by an excessively small effective sampling window value are resolved, thus improving the stability and reliability of communication.
Patent Information
- Application Number
- CN202411124861.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2026-03-03
AI Technical Summary
During the communication process between the eMMC storage device and the host, the effective sampling window value obtained by the tuning test is small, which leads to frequent entry into the tuning test operation process, causing host lag or even black screen.
The host acquires multiple signal adjustment levels, determines the effective sampling window value corresponding to each signal adjustment level through multiple optimization tests, and uses the signal adjustment level corresponding to the largest effective sampling window value for communication adjustment, including adjusting power supply parameters, pull-up resistor parameters, and device drive strength parameters.
It improves the communication fault tolerance and signal transmission stability between the host and storage devices, reduces stuttering and black screen caused by abnormal signal transmission, and enhances the reliability and stability of communication transmission.
Smart Images

Figure CN121597449A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of signal transmission in storage devices, particularly communication adjustment methods, electronic devices, and storage media. Background Technology
[0002] eMMC (Embedded Multi Media Card) is an embedded memory standard specification established by the MMC Association, primarily for products such as mobile phones and tablets. eMMC integrates a controller in the package, providing a standard interface and managing the flash memory.
[0003] During communication between the host and the eMMC storage device, if an abnormal signal transmission is detected during the command or data transmission phase, an optimization test is often performed. However, if the effective sampling window value obtained from the optimization test is relatively small, the optimization test operation process may be entered frequently, resulting in a long eMMC data request processing time, causing the host to freeze or even go black. Summary of the Invention
[0004] This application provides a communication adjustment method, electronic device, and storage medium to address the problem that the effective sampling window value obtained in the tuning test may be relatively small.
[0005] To address the aforementioned technical problems, this application provides a communication adjustment method, comprising: in response to an anomaly in signal transmission between a host and a storage device, the host acquires multiple signal adjustment levels; based on each signal adjustment level, the host performs multiple optimization tests on the storage device to determine the effective sampling window value corresponding to each signal adjustment level; and uses the signal adjustment level corresponding to the largest effective sampling window value for communication adjustment.
[0006] The signal adjustment levels include combinations of various signal parameters. The steps for the host to obtain multiple signal adjustment levels include: the host determining multiple levels for each signal parameter and cross-combining the multiple levels for each signal parameter to obtain multiple signal adjustment levels.
[0007] The various signal parameters include the power supply parameters of the host's power supply unit, the pull-up resistor parameters of the host's pull-up resistor unit, and the drive strength parameters of the host's device drive unit. The steps of the host determining multiple levels of each signal parameter and cross-combining these multiple levels to obtain multiple signal adjustment levels include: the host determining multiple levels of power supply parameters, multiple levels of pull-up resistor parameters, and multiple levels of drive strength parameters; and obtaining multiple signal adjustment levels by cross-combining these multiple levels of power supply parameters, multiple levels of pull-up resistor parameters, and multiple levels of drive strength parameters.
[0008] The steps of determining the effective sampling window value corresponding to each signal adjustment level by performing multiple optimization tests on the storage device based on each signal adjustment level include: the host reducing the speed and switching to the first communication mode; the host performing optimization tests on the storage device under each signal adjustment level to obtain the effective sampling window value corresponding to each signal adjustment level; and the host switching to the second communication mode.
[0009] The steps involved in the host performing optimization tests on the storage device at each signal adjustment level to obtain the effective sampling window value corresponding to each signal adjustment level include: based on the current signal adjustment level, adjusting the power supply parameters of the power supply unit, the pull-up resistor parameters of the pull-up resistor unit, and the drive strength parameters of the device drive unit using the application program; performing optimization tests on the storage device to obtain the effective sampling window value corresponding to the current signal adjustment level; determining a new current signal adjustment level, and again adjusting the power supply parameters, pull-up resistor parameters, and drive strength parameters through the application program to perform optimization tests, until all signal adjustment levels have been traversed to obtain the effective sampling window value corresponding to each signal adjustment level.
[0010] The steps for optimizing the storage device to obtain the effective sampling window value corresponding to the current signal adjustment level include: under the current signal adjustment level, the host determines the current sampling time point as the default value and sends a preset command to the storage device; the host receives and verifies the response data fed back by the storage device based on the preset command; the current sampling time point is adjusted, and the steps of sending the preset command to the storage device again are executed; the steps of receiving and verifying the response data of the storage device based on the preset command are repeated until all sampling time points within the sampling time window are traversed to obtain the effective sampling window value of all signal adjustment levels.
[0011] The step of adjusting the host communication using the signal adjustment level corresponding to the largest effective sampling window value includes: taking the median value of the largest effective sampling window value as the target sampling time point, and transmitting the data between the host and the storage device based on the sampling time point.
[0012] To address the aforementioned technical problems, the present invention also provides a communication adjustment method, comprising: a storage device receiving preset instructions sent by a host at multiple signal adjustment levels, and feeding back response data to the host based on the preset instructions, so that the host performs multiple optimization tests to determine the effective sampling window value corresponding to each signal adjustment level, and using the signal adjustment level corresponding to the largest effective sampling window value for communication adjustment; wherein, the multiple signal adjustment levels are obtained by the host in response to signal transmission anomalies between the host and the storage device.
[0013] To address the aforementioned technical problems, the present invention also provides an electronic device, including a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the communication adjustment method as described above.
[0014] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing program instructions thereon, which, when executed by a processor, implement the communication adjustment method as described above.
[0015] To address the aforementioned technical issues, this application provides a communication adjustment method that, in response to signal transmission anomalies between the host and storage device, acquires multiple signal adjustment levels for the host; based on each signal adjustment level, performs multiple optimization tests on the host to obtain the effective sampling window value corresponding to each signal adjustment level; and uses the signal adjustment level corresponding to the largest effective sampling window value to adjust the host's communication. By selecting the signal adjustment level corresponding to the largest effective sampling window value from among multiple effective sampling window values for host communication adjustment, the occurrence of excessively small effective sampling window values is avoided to a certain extent, thereby improving the fault tolerance rate and signal transmission stability range of communication between the host and storage device, reducing stuttering and black screens caused by signal transmission anomalies between the host and storage device, and improving the reliability and stability of communication transmission. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating an embodiment of the communication adjustment method of this application;
[0017] Figure 2 This is a flowchart illustrating another embodiment of the communication adjustment method of this application;
[0018] Figure 3 This is a schematic diagram of one embodiment of the connection between the host and the storage device in this example;
[0019] Figure 4 This is a flowchart illustrating yet another embodiment of the communication adjustment method of this application;
[0020] Figure 5 yes Figure 4 and Figure 2 A schematic diagram of the transmission network structure in a typical application scenario;
[0021] Figure 6 yes Figure 5 Data flow diagram of data transmission in the transmission network in the application scenario;
[0022] Figure 7 This is a schematic diagram of the framework of an embodiment of the electronic device of this application;
[0023] Figure 8This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0026] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0027] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the communication adjustment method of this application. The host is the executing entity of the communication adjustment method in this embodiment.
[0028] Step S11: In response to an anomaly in signal transmission between the host and the storage device, the host obtains multiple signals to adjust the gear.
[0029] The storage device in this embodiment may include, but is not limited to, storage particles, storage chips, various types of NAND Flash non-volatile memory, solid-state drives, memory cards, universal flash memory (UFS), NOR Flash non-volatile memory, etc. The host device includes, but is not limited to, mobile phones, computers, tablets, smart wearable devices, cameras, drones, and other smart processing devices. After the host device is connected to the storage device, it is used to implement the storage function of the storage device.
[0030] In a specific application scenario, due to factors such as chip manufacturing process, PCB traces, voltage, and temperature, the time it takes for data signals from different data signal lines to reach the host from the storage device varies. Since data transmission between the host and the storage device often involves multiple data signal lines, this difference can lead to signal transmission anomalies. Therefore, the sampling time point when the host receives data needs to be adjusted accordingly to ensure the synchronization of all data signal lines.
[0031] When signal transmission between the host and the storage device is abnormal, the host acquires multiple signal adjustment levels. These signal adjustment levels are combinations of multiple signal parameters that affect the stability of signal transmission between the host and the storage device. Under different signal adjustment levels, the signal transmission between the host and the storage device differs.
[0032] The signal adjustment settings include one or more of the following: host power supply parameters, pull-up resistor parameters, drive strength parameters, capacitors, bus frequency, etc. The specific selection is based on actual needs.
[0033] Step S12: The host performs multiple optimization tests on the storage device based on the adjustment level of each signal to determine the effective sampling window value corresponding to each signal adjustment level.
[0034] The host performs optimization tests on the storage device at each signal adjustment level to obtain the valid sampling window value corresponding to each signal adjustment level. The valid sampling window value is the overlapping interval between the data signal lines (data0 to data7) from the storage device to the host. That is, when a certain sampling time point is within this overlapping interval, it can support synchronous communication transmission of multiple data signal lines. Therefore, the larger the valid sampling window value, the larger the interval of sampling time points for communication transmission of data signal lines, the higher the fault tolerance, and the more stable and reliable the signal transmission.
[0035] In a specific application scenario, if there are a total of 10 signal adjustment levels, the host performs 10 optimization tests on the storage device in each of the 10 signal adjustment levels in turn, thereby obtaining the effective sampling window values corresponding to the 10 signal adjustment levels, that is, a total of 10 effective sampling window values.
[0036] Among them, the optimization test is the process of determining the sampling time point. It involves traversing all sampling points within the sampling window for verification to obtain the corresponding valid sampling window value.
[0037] Step S13: Adjust the communication of the host by using the signal adjustment level corresponding to the largest effective sampling window value.
[0038] Among multiple effective sampling window values for signal adjustment levels, the signal adjustment level corresponding to the largest effective sampling window value is selected for communication adjustment. This means adjusting the relevant signal parameters of the host to the values within the signal adjustment level corresponding to the largest effective sampling window value. This maximizes the effective sampling window range for communication between the host and storage device, thereby improving the fault tolerance and signal transmission stability range of the communication between them. This reduces stuttering and black screens caused by abnormal signal transmission between the host and storage device, ultimately improving the reliability and stability of communication transmission.
[0039] This embodiment utilizes multiple signal adjustment levels to perform numerous optimization tests, obtaining multiple effective sampling window values. This effectively reduces the need for frequent optimization tests due to a single effective sampling window value being too small. By changing the signal adjustment level to increase the number of effective sampling window values, and finally selecting the signal adjustment level corresponding to the largest effective sampling window value through comparison, the host communication is adjusted. This, to a certain extent, avoids the occurrence of an excessively small effective sampling window value, improving the fault tolerance of communication between the host and the storage device and the stability range of signal transmission.
[0040] Through the above steps, the communication adjustment method of this embodiment responds to signal transmission anomalies between the host and the storage device by having the host acquire multiple signal adjustment levels; based on each signal adjustment level, the host performs multiple optimization tests on the storage device to determine the effective sampling window value corresponding to each signal adjustment level; and uses the signal adjustment level corresponding to the largest effective sampling window value for communication adjustment. By selecting the signal adjustment level corresponding to the largest effective sampling window value among multiple effective sampling window values to adjust the host's communication, the situation of an excessively small effective sampling window value is avoided to a certain extent, thereby improving the fault tolerance rate and signal transmission stability range of communication between the host and the storage device, reducing stuttering and black screens caused by signal transmission anomalies between the host and the storage device, and improving the reliability and stability of communication transmission.
[0041] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the communication adjustment method of this application. In this embodiment, the execution entity of the communication adjustment method is the host.
[0042] Step S21: In response to an anomaly in signal transmission between the host and the storage device, the host determines multiple levels of each signal parameter and cross-combines these multiple levels to obtain multiple signal adjustment levels.
[0043] When signal transmission between the host and storage device is abnormal, multiple adjustment levels for various signal parameters are determined. The types of signal parameters within each adjustment level include, but are not limited to, one or more of the following: host power supply parameters, pull-up resistor parameters, drive strength parameters, capacitors, bus frequency, etc. The specific selection is based on actual requirements.
[0044] In a specific application scenario, after the host and storage device are connected, they maintain data exchange communication. Each time the host sends data to the storage device, it receives a response from the storage device. The host verifies the response data; if the verification passes, the communication transmission is normal; if the verification fails, the communication transmission is abnormal. The data sent by the host to the storage device can include, but is not limited to, commands and stored data. The verification method can be based on the communication protocol between the host and the storage device or related preset rules; specific details are not limited here.
[0045] The signal parameter can be divided into multiple ranges based on the protocol between the host and the storage device. Then, the step value is determined based on experience and / or communication adjustment time requirements, resulting in the specific values for each range. For example, if a signal parameter has a range of 2-10, and its step value is determined to be 1 based on experience and / or communication adjustment time requirements, then the signal parameter has 9 ranges. The specific values for these 9 ranges are: 2, 3, 4, 5, 6, 7, 8, 9, and 10.
[0046] Multiple signal adjustment levels are obtained by cross-combining various signal parameter levels of different types. Cross-combination is a technique used to generate all possible combinations between different elements. In cross-combination, each element is combined with other elements to generate all possible combinations. For example, if there are 10 levels of signal parameter A, 5 levels of signal parameter B, 20 levels of signal parameter C, and 30 levels of signal parameter D, then the number of signal adjustment levels is: 10 * 5 * 20 * 30 = 30,000.
[0047] In this embodiment, the signal parameters include the power supply parameters of the host's power supply unit, the pull-up resistor parameters of the host's pull-up resistor unit, and the drive strength parameters of the host's device drive unit. In other embodiments, the signal parameters may be other parameters, which are not limited here.
[0048] Please see Figure 3 , Figure 3 This is a schematic diagram of one embodiment of the connection between the host and the storage device in this example.
[0049] In this embodiment, the host 31 and the storage device 32 are connected via multiple signal lines. Specifically, CLK is used to output a clock signal from the host 31 for data transmission synchronization and device operation driving. The CMD signal is used for the host 31 to send commands to the storage device 32 and for the storage device 32 to send corresponding responses to the host 31. Data signal lines DAT0-7 are used for data transmission between the host 31 and the storage device 32. The Data Strobe (DS) clock signal, sent from the storage device 32 to the host 31, has the same frequency as CLK and is used for data reception synchronization by the host 31.
[0050] The power supply unit 33 includes a power supply connection for VCCQ; the pull-up resistor unit 34 includes pull-up resistors R-CMD and R-DAT0-R-DAT7; the device drive unit (not shown) is located in the host 31 and is controlled by the processor of the host 31.
[0051] This step specifically includes obtaining multiple power supply parameters, multiple pull-up resistor parameters, and multiple drive strength parameters of the host; by cross-combining the multiple power supply parameters, multiple pull-up resistor parameters, and multiple drive strength parameters, multiple signal adjustment levels are obtained.
[0052] In a specific application scenario, the ranges of power supply parameters, pull-up resistor parameters, and drive strength parameters can be determined using the eMMC protocol specification, while the step values are confirmed through experience and the allowed traversal time in the application. Pull-up resistor parameters include multiple pull-up resistors, each with a corresponding range and step value to determine its level. Multiple pull-up resistor levels can also be generated through cross-combinations. For example, if the power supply parameter range is 1.70-1.95V, and the step value is 0.1V, then the power supply parameter levels are 1.70V, 1.80V, and 1.90V respectively.
[0053] Once the specific values of multiple power supply parameters, multiple pull-up resistor parameters, and multiple drive strength parameters are determined, the power supply parameters of power supply unit 33 can be adjusted accordingly through power management chip or power management unit before each optimization test; the pull-up resistor parameters of pull-up resistor unit 34 can be adjusted accordingly through application program; and the drive strength parameters of device drive unit can be adjusted accordingly through the processor of host 31 to realize the application of the above specific values.
[0054] In a specific application scenario, if there are X levels for power supply parameters, Z levels for pull-up resistor parameters, and Y levels for drive strength parameters, then by cross-combining X, Y, and Z, N signal adjustment levels can be obtained. N = X * Y * Z.
[0055] Step S22: The host reduces the speed and switches to the first communication mode; the host performs optimization tests on the storage device under each signal adjustment level to obtain the effective sampling window value corresponding to each signal adjustment level; the host switches to the second communication mode.
[0056] In a specific application scenario, the host's speed is reduced to SDR50, and the communication mode is switched to HS200. The preset command CMD21 is only effective in HS200 mode. At each signal adjustment level, the host performs optimization tests on the storage device to obtain the effective sampling window value corresponding to each signal adjustment level. Finally, the host switches to HS400 communication mode.
[0057] That is, the first communication mode is HS200 mode, and the second communication mode is HS400 communication mode.
[0058] The specific steps of the host performing multiple optimization tests on the storage device based on each signal adjustment level to determine the effective sampling window value corresponding to each signal adjustment level include: based on the current signal adjustment level, using the application program to adjust the power supply parameters of the host's power supply unit, the pull-up resistor parameters of the pull-up resistor unit, and the drive strength parameters of the device drive unit; that is, adjusting the power supply parameters of the host's power supply unit, the pull-up resistor parameters of the pull-up resistor unit, and the drive strength parameters of the device drive unit to the corresponding values in the current signal adjustment level.
[0059] The storage device is tuned and tested to obtain the effective sampling window value corresponding to the current signal adjustment level; a new current signal adjustment level is determined, and the power supply parameters, pull-up resistor parameters, and drive strength parameters are adjusted again through the application program to perform tuning tests until all signal adjustment levels are traversed without repetition.
[0060] In a specific application scenario, when traversing all signal adjustment levels, the iteration count N can be set based on the number of signal adjustment levels N. The storage device is then optimized based on the current signal adjustment level to obtain the effective sampling window value corresponding to that level. The iteration count is incremented by one, and then the next signal adjustment level is used as the new current signal adjustment level for optimization testing again, until the iteration count equals N, at which point all signal adjustment levels have been traversed.
[0061] The specific steps of the optimization test for each signal adjustment level are as follows: Under the current signal adjustment level, that is, after the power supply parameters of the host's power supply unit, the pull-up resistor parameters of the pull-up resistor unit, and the drive strength parameters of the device drive unit are adjusted to the corresponding values in the current signal adjustment level, the host determines the current sampling time point as the default value and sends a preset command to the storage device; to receive and verify the response data of the storage device based on the preset command under the above parameter values; then, the current sampling time point is adjusted again, and the preset command is sent to the storage device again; the host receives and verifies the response data of the storage device based on the preset command, until all sampling time points within the sampling time window are traversed to obtain the effective sampling window value of the current signal adjustment level. The delay time of all data signal lines is the width of the sampling time window. A single optimization test is the process of gradually determining the effective sampling window value from the entire sampling time window, using sampling time points as units. The preset command is the command sent by the host to the storage device to test the effective sampling window value, including the send tuning block command / CMD21 command, while the response command is the data fed back by the storage device to the host based on the preset command and the effective sampling window status, including tuning block data.
[0062] This embodiment involves two traversal processes: one is the traversal of signal adjustment levels, and the other is the traversal of sampling time points in the optimization test. For each signal adjustment level, multiple sampling time points within the sampling time window are traversed. After traversing multiple sampling time points, the optimization test for a single signal adjustment level is completed, obtaining the effective sampling window value for that single signal adjustment level. After traversing all signal adjustment levels in the above manner, the effective sampling window corresponding to each signal adjustment level is obtained, and multiple optimization tests are completed. If there are N signal adjustment levels in total, this step yields N effective sampling window values corresponding to each of the N signal adjustment levels.
[0063] Step S23: Adjust the communication of the host by using the signal adjustment level corresponding to the largest effective sampling window value.
[0064] Among the effective sampling window values of multiple signal adjustment levels, the signal adjustment level corresponding to the largest effective sampling window value is selected to adjust the host's communication. This means adjusting the values of the host's relevant signal parameters to match the values of the signal parameters within the signal adjustment level corresponding to the largest effective sampling window value. For example, if the power supply parameter is 'a', the pull-up resistor parameter is 'b', and the drive strength parameter is 'c' for the signal adjustment level corresponding to the largest effective sampling window value, then the power supply parameter of the host's power supply unit will be adjusted to 'a', the pull-up resistor parameter of the pull-up resistor unit will be adjusted to 'b', and the drive strength parameter of the device drive unit will be adjusted to 'c'.
[0065] This utilizes the largest effective sampling window value to improve the fault tolerance and signal transmission stability range of communication between the host and storage device, reduce stuttering and black screen caused by abnormal signal transmission between the host and storage device, and improve the reliability and stability of communication transmission.
[0066] This embodiment utilizes multiple signal adjustment levels to perform numerous optimization tests, obtaining multiple effective sampling window values. This effectively reduces the need for frequent optimization tests due to a single effective sampling window value being too small. By changing the signal adjustment level to increase the number of effective sampling window values, and finally selecting the signal adjustment level corresponding to the largest effective sampling window value through comparison, the host communication is adjusted. This, to a certain extent, avoids the occurrence of an excessively small effective sampling window value, improving the fault tolerance of communication between the host and the storage device and the stability range of signal transmission.
[0067] Step S24: Take the median value of the largest effective sampling window as the target sampling time point, and transmit it through communication between the host and the storage device based on the sampling time point.
[0068] This embodiment can also use the median value of the largest effective sampling window as the target sampling point, thereby maximizing the effective sampling length on both sides of the target sampling point and improving the fault tolerance and signal transmission stability range of the communication between the host and the storage device. In other embodiments, other values within the largest effective sampling window can also be selected as the target sampling point, depending on the actual needs.
[0069] Through the above steps, the communication adjustment method of this embodiment obtains an effective sampling window value by setting multiple signal adjustment levels and corresponding optimization tests. By selecting the signal adjustment level corresponding to the largest effective sampling window value among multiple effective sampling window values, the host's communication is adjusted. To a certain extent, this avoids the occurrence of an excessively small effective sampling window value, improves the fault tolerance rate and signal transmission stability range of the communication between the host and the storage device, reduces stuttering and black screen caused by abnormal signal transmission between the host and the storage device, and improves the reliability and stability of communication transmission.
[0070] Please see Figure 4 , Figure 4 This is a flowchart illustrating another embodiment of the communication adjustment method of this application. In this embodiment, the execution entity of the communication adjustment method is a storage device.
[0071] Step S31: The storage device receives preset commands sent by the host at multiple signal adjustment levels.
[0072] Among them, multiple signal adjustment levels are obtained by the host in response to signal transmission anomalies between the host and the storage device.
[0073] The default commands are those sent by the host to the storage device to test the valid sampling window value, including the sendtuning block command / CMD21 command.
[0074] Step S32: Feed back response data to the host based on the preset instructions, so that the host can perform multiple optimization tests on the storage device to determine the effective sampling window value corresponding to each signal adjustment level, and use the signal adjustment level corresponding to the largest effective sampling window value for communication adjustment.
[0075] The storage device sends response data back to the host based on preset instructions. The response instructions are data sent back to the host by the storage device based on the preset instructions and the situation of the effective sampling window, including tuning block data.
[0076] The host performs multiple optimization tests based on the response data to determine the effective sampling window value corresponding to each signal adjustment level, and uses the signal adjustment level corresponding to the largest effective sampling window value for communication adjustment. The effective sampling window value is the overlapping interval between the data signal lines (data0 to data7) from the storage device to the host. That is, when a certain sampling time point is within this overlapping interval, it can support synchronous communication transmission of multiple data signal lines. Therefore, the larger the effective sampling window value, the larger the interval of sampling time points for communication transmission of data signal lines, the higher the fault tolerance, and the more stable and reliable the signal transmission.
[0077] Among the effective sampling window values of multiple signal adjustment levels, the signal adjustment level corresponding to the largest effective sampling window value is selected for communication adjustment. This means adjusting the relevant signal parameters of the host to match the signal parameters within that adjustment level. By utilizing the largest effective sampling window value, the fault tolerance and signal transmission stability range between the host and storage device are improved, reducing stuttering and black screens caused by abnormal signal transmission between the host and storage device, and enhancing the reliability and stability of communication transmission.
[0078] Please see Figures 5-6 , Figure 5 yes Figure 4 and Figure 2 A schematic diagram of the transmission network structure in a typical application scenario; Figure 6 yes Figure 5 A diagram showing the data flow of data transmission in the transmission network of an application scenario.
[0079] The transmission network 50 in this application scenario includes a host 51 and a storage device 52. The host 51 and the storage device 52 are interconnected.
[0080] In a specific application scenario, after the host 51 and the storage device 52 are connected, they maintain data interaction communication. Specifically, the host 51 sends data to the storage device 52, and the storage device 52 responds with data based on the data to the host 51. The host 51 verifies the response data. If the verification fails, it determines that the signal transmission is abnormal and obtains multiple levels of each signal parameter. If the verification succeeds, it determines that the signal transmission is normal and continues data interaction communication.
[0081] When the verification fails, the host 51 determines that the signal transmission is abnormal. After obtaining multiple levels of each signal parameter, the host 51 reduces the rate and switches to the first communication mode, that is, the host's rate is reduced to SDR50 and then switches to HS200 communication mode.
[0082] The host 51 sends preset commands to the storage device 52 at each signal adjustment level to perform optimization tests. This process is described in step S22 of the aforementioned embodiment and will not be repeated here.
[0083] The storage device 52 sends response data to the host 51 based on a preset instruction. The host 51 verifies the response data and obtains the effective sample window value for each signal adjustment level. Subsequently, the host 51 switches to the second communication mode, that is, the host 51 switches to the HS400 communication mode. Finally, the host performs communication adjustment using the signal adjustment level corresponding to the largest effective sample window value.
[0084] Through the above steps, the communication adjustment method of this embodiment adjusts the host communication by selecting the signal adjustment level corresponding to the largest effective sampling window value among multiple effective sampling window values. This avoids the occurrence of an excessively small effective sampling window value to a certain extent, improves the fault tolerance rate and signal transmission stability range of the communication between the host and the storage device, reduces stuttering and black screen caused by abnormal signal transmission between the host and the storage device, and improves the reliability and stability of communication transmission.
[0085] Please see Figure 7 , Figure 7 This is a schematic diagram of a framework of an embodiment of the electronic device of this application. The electronic device 70 includes a memory 71 and a processor 72 coupled to each other. The processor 72 is used to execute program instructions stored in the memory 71 to implement the steps of the above-described method embodiment. In a specific implementation scenario, the electronic device 70 may include, but is not limited to, a microcomputer, a server, etc. In addition, the electronic device 70 may also include a laptop computer, a tablet computer, a Nand Flash memory, etc., without limitation.
[0086] Specifically, processor 72 controls itself and memory 71 to implement the steps of any of the above method embodiments. Processor 72 may also be referred to as a CPU (Central Processing Unit). Processor 72 may be an integrated circuit chip with signal processing capabilities. Processor 72 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor. Furthermore, processor 72 may be implemented using integrated circuit chips.
[0087] The above solution can improve the reliability and stability of communication transmission.
[0088] Please see Figure 8 , Figure 8 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 80 stores program instructions 801 that can be executed by a processor. The program instructions 801 are used to implement the steps of any of the above method embodiments.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0090] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0091] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0092] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0093] The above are merely embodiments of this application and do not limit the scope of this patent application. Any equivalent structural or procedural changes made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of this application.
Claims
1. A communication adjustment method, characterized in that, The communication adjustment method includes: In response to an anomaly in signal transmission between the host and the storage device, the host acquires multiple signal adjustment levels; The host performs multiple optimization tests on the storage device based on each of the signal adjustment levels to determine the effective sampling window value corresponding to each of the signal adjustment levels. Communication adjustment is performed using the signal adjustment level corresponding to the largest effective sampling window value.
2. The communication adjustment method according to claim 1, characterized in that, The signal adjustment levels include: combinations of multiple signal parameters; the step of the host acquiring multiple signal adjustment levels includes: The host determines multiple levels for each of the signal parameters and cross-combines these multiple levels to obtain multiple signal adjustment levels.
3. The communication adjustment method according to claim 2, characterized in that, The various signal parameters include the power supply parameters of the host's power supply unit, the pull-up resistor parameters of the host's pull-up resistor unit, and the drive strength parameters of the host's device drive unit; The step of the host determining multiple levels for each of the signal parameters and cross-combining the multiple levels for each of the signal parameters to obtain multiple signal adjustment levels includes: The host determines multiple power supply parameters, multiple pull-up resistor parameters, and multiple drive strength parameters; By cross-combining the power supply parameters, pull-up resistor parameters, and drive strength parameters, multiple signal adjustment levels are obtained.
4. The communication adjustment method according to claim 3, characterized in that, The step of determining the effective sampling window value corresponding to each signal adjustment level by performing multiple optimization tests on the storage device based on each signal adjustment level includes: The host reduces its speed and switches to the first communication mode; The host performs optimization tests on the storage device at each of the signal adjustment levels to obtain the effective sampling window value corresponding to each of the signal adjustment levels. The host switches to the second communication mode.
5. The communication adjustment method according to claim 4, characterized in that, The step of the host performing optimization tests on the storage device at each of the signal adjustment levels to obtain the effective sampling window value corresponding to each signal adjustment level includes: Based on the current signal adjustment level, the power supply parameters of the power supply unit, the pull-up resistor parameters of the pull-up resistor unit, and the drive strength parameters of the device drive unit are adjusted using the application. The storage device is optimized and tested to obtain the effective sampling window value corresponding to the current signal adjustment level; Determine the new current signal adjustment level, and then adjust the power supply parameters, pull-up resistor parameters, and drive strength parameters again through the application to perform optimization tests until all signal adjustment levels have been traversed to obtain the effective sampling window value corresponding to each signal adjustment level.
6. The communication adjustment method according to claim 5, characterized in that, The step of performing optimization testing on the storage device to obtain the effective sampling window value corresponding to the current signal adjustment level includes: Under the current signal adjustment setting, the host determines the current sampling time point as the default value and sends a preset instruction to the storage device; The host receives and verifies the response data fed back by the storage device based on the preset instruction; Adjust the current sampling time point, and send the preset instruction to the storage device again; accept and verify the response data of the storage device based on the preset instruction, until all sampling time points within the sampling time window are traversed to obtain the effective sampling window values of all signal adjustment levels.
7. The communication adjustment method according to claim 1, characterized in that, The step of adjusting the host's communication using the signal adjustment level corresponding to the largest effective sampling window value is followed by: The median value of the largest effective sampling window is used as the target sampling time point, and the host communicates and transmits the data to the storage device based on the sampling time point.
8. A communication adjustment method, characterized in that, The communication adjustment method includes: The storage device receives preset commands sent by the host at multiple signal adjustment levels; Based on the preset instructions, the host sends response data back to the host so that the host can perform multiple optimization tests on the storage device to determine the effective sampling window value corresponding to each signal adjustment level, and use the signal adjustment level corresponding to the largest effective sampling window value for communication adjustment. The multiple signal adjustment levels are acquired by the host in response to signal transmission anomalies between the host and the storage device.
9. An electronic device, characterized in that, It includes a memory and a processor coupled to each other, the processor being configured to execute program instructions stored in the memory to implement the communication adjustment method as described in any one of claims 1 to 7 or the communication adjustment method as described in claim 8.
10. A computer-readable storage medium having program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the communication adjustment method as described in any one of claims 1 to 7 or the communication adjustment method as described in claim 8.