Determination method and device of delayed sampling point, equipment and medium
By determining whether the preset delay sampling point meets the conditions in the embedded multimedia card, and if not, determining the candidate set in the second data transmission mode and filtering the target delay sampling point in the first data transmission mode, the problem of low efficiency in delay sampling point selection is solved and the data transmission efficiency is improved.
Patent Information
- Application Number
- CN202410719975.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2025-12-05
AI Technical Summary
In the existing technology, the selection efficiency of delay sampling points in the data transmission process of embedded multimedia cards is low, resulting in low data transmission efficiency, mainly due to the slow speed of traversing and testing all delay sampling points.
By acquiring preset delay sampling points in the first data transmission mode, it is determined whether the data transmission conditions are met; if not, a set of candidate delay sampling points is determined in the second data transmission mode, and a candidate delay sampling point is selected from the candidate set in the first data transmission mode, and finally the target delay sampling point is determined from the candidate set.
This improves the efficiency of selecting delayed sampling points, thereby increasing data transmission efficiency, reducing the number of delayed sampling points traversed in high-speed mode, and lowering system resource consumption.
Smart Images

Figure CN121070832A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data storage, and in particular to a method, apparatus, device, and medium for determining delayed sampling points. Background Technology
[0002] An embedded multi-media card (eMMC) is a type of memory card used in electronic devices such as mobile phones, terminals, and servers. When an electronic device boots up, the bootloader can read pre-stored software programs from the eMMC and then perform its functions based on these programs. Different eMMC specifications have different data transmission modes, mainly including Legacy mode, High Speed (HS) mode, HS200 mode, and HS400 mode.
[0003] However, since the device clock direction is opposite to the data transmission direction during data reading, there will be data reading delay and various transmission problems. To solve these problems, the transmission protocol sets a set of delay sampling points. Before data transmission, the required delay sampling points need to be determined to balance the reading delay.
[0004] The current selection of delayed sampling points mainly relies on traversing and testing all delayed sampling points. However, since traversing and testing all delayed sampling points is very slow, it will seriously affect the selection efficiency of delayed sampling points, resulting in low data transmission efficiency. Summary of the Invention
[0005] This invention provides a method, apparatus, device, and medium for determining delay sampling points. This method can improve the selection efficiency of delay sampling points in embedded multimedia cards, thereby improving data transmission efficiency.
[0006] In a first aspect, embodiments of the present invention provide a method for determining the delay sampling point of an embedded multimedia card, the embedded multimedia card including a first data transmission mode and a second data transmission mode, wherein the data transmission rate of the first data transmission mode is greater than the data transmission rate of the second data transmission mode, including:
[0007] Obtain the preset delay sampling point of the embedded multimedia card in the first data transmission mode, and determine whether the preset delay sampling point meets the data transmission conditions;
[0008] When the preset delay sampling point does not meet the data transmission condition, a set of candidate delay sampling points is determined based on the second data transmission mode;
[0009] Based on the first data transmission mode, a set of candidate delayed sampling points is determined from the set of candidate delayed sampling points;
[0010] The target delay sampling point under the first data transmission mode is determined from the set of candidate delay sampling points.
[0011] Secondly, embodiments of the present invention provide a device for determining the delay sampling point of an embedded multimedia card, the embedded multimedia card including a first data transmission mode and a second data transmission mode, wherein the data transmission rate of the first data transmission mode is greater than the data transmission rate of the second data transmission mode, including:
[0012] The judgment module is used to obtain the preset delay sampling point of the embedded multimedia card in the first data transmission mode and determine whether the preset delay sampling point meets the data transmission conditions.
[0013] The candidate delay sampling point set determination module is used to determine the candidate delay sampling point set based on the second data transmission mode when the preset delay sampling point does not meet the data transmission conditions.
[0014] The candidate delayed sampling point set determination module is used to determine the candidate delayed sampling point set from the candidate delayed sampling point set based on the first data transmission mode;
[0015] The target delay sampling point determination module is used to determine the target delay sampling point under the first data transmission mode from the set of candidate delay sampling points.
[0016] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method for determining the delay sampling point of the embedded multimedia card as described in any one of the embodiments of the present invention.
[0020] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute the method for determining the delay sampling point of the embedded multimedia card as described in any one of the embodiments of the present invention.
[0021] This invention provides a method, apparatus, device, and medium for determining delay sampling points in an embedded multimedia card. The method includes: acquiring preset delay sampling points of the embedded multimedia card in a first data transmission mode; determining whether the preset delay sampling points meet data transmission conditions; when the preset delay sampling points do not meet the data transmission conditions, determining a set of candidate delay sampling points based on a second data transmission mode; determining a set of candidate delay sampling points from the set of candidate delay sampling points based on a first data transmission mode; and determining a target delay sampling point in the first data transmission mode from the set of candidate delay sampling points, wherein the data transmission rate of the first data transmission mode is greater than the data transmission rate of the second data transmission mode. Specifically, this method determines a set of candidate delay sampling points applicable to the low-rate second data transmission mode, then determines a set of candidate delay sampling points applicable to the high-rate first data transmission mode from the set of candidate delay sampling points, and then determines the target delay sampling point sampled in this operation from the set of candidate delay sampling points. This method reduces the number of delay sampling points that need to be traversed in the high-rate mode, thereby improving the efficiency of determining delay sampling points in the high-rate mode and indirectly improving the efficiency of data transmission. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a method for determining the delay sampling points of an embedded multimedia card according to Embodiment 1 of the present invention;
[0024] Figure 2 This is a flowchart of a method for determining the delay sampling points of an embedded multimedia card according to Embodiment 2 of the present invention;
[0025] Figure 3 This is a flowchart of a method for determining the delay sampling points of an embedded multimedia card according to Embodiment 3 of the present invention;
[0026] Figure 4 This is a schematic diagram of the structure of a device for determining the delay sampling point of an embedded multimedia card according to Embodiment 4 of the present invention;
[0027] Figure 5 This is a schematic diagram of the structure of the electronic device provided in Embodiment 5 of the present invention. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] Example 1
[0031] Figure 1 This is a flowchart illustrating a method for determining delay sampling points in an embedded multimedia card according to Embodiment 1 of the present invention. This method is applicable to the field of data storage and is suitable for determining delay sampling points during the U-BOOT (bootloader) stage of an embedded multimedia card. This method can be executed by a device for determining delay sampling points in an embedded multimedia card. This device can be implemented in hardware and / or software and configured in a computer, server, and embedded multimedia card.
[0032] like Figure 1 As shown, it includes:
[0033] Step 110: Obtain the preset delay sampling point of the embedded multimedia card in the first data transmission mode, and determine whether the preset delay sampling point meets the data transmission conditions.
[0034] When an embedded multimedia card performs a read operation with the host, the clock direction and data direction are opposite, resulting in a certain delay in the read data received by the host. Therefore, to balance this data delay, a set of delay sampling points is introduced during the transmission protocol configuration. However, different embedded multimedia cards, different temperatures, and different data transmission modes all affect the specific delay time. Therefore, it is necessary to determine an optimal delay sampling point before data transmission to balance the data delay error caused by the current operating conditions.
[0035] The embedded multimedia card includes a first data transmission mode and a second data transmission mode. The data transmission rate of the first data transmission mode is greater than that of the second data transmission mode. Understandably, before performing a data transmission task, the embedded multimedia card needs to determine the data transmission mode and the delay sampling point to meet the requirements of the data transmission task. Simultaneously, since the data transmission rate of the first data transmission mode is greater than that of the second data transmission mode, the first data transmission mode will be selected first, and an attempt will be made to obtain a delay sampling point that meets the data transmission conditions. If this cannot be achieved, the embedded multimedia card may attempt to switch to a lower mode to reduce the system load and complete the data transmission task.
[0036] For example, the first data transmission mode can be HS400 transmission mode, and the second data transmission mode can be HS200 transmission mode. The number of delay sampling points can be 0-15, a total of 16.
[0037] Specifically, a working environment, data transmission mode, and the correspondence between delayed sampling points can be preset. Then, when it is necessary to determine a delayed sampling point, the working environment is acquired, the data transmission mode is set, and a corresponding preset delayed sampling point is matched. If the matched preset delayed sampling point meets the data transmission conditions, it can be used as the target delayed sampling point for this task. If the data transmission conditions are not met, the target delayed sampling point can be further determined using the method disclosed in this embodiment of the invention. The working environment can be ambient temperature.
[0038] For example, a mapping relationship can be established between data transmission mode, operating temperature and delayed sampling point value. For instance, in the preset HS400 mode, when the ambient temperature is 20 degrees, the preset delayed sampling point is 5, so that the corresponding preset delayed sampling point can be quickly matched according to the actual situation of this data transmission task.
[0039] Optionally, determining whether the preset delay sampling point meets the data transmission conditions includes:
[0040] Candidate delay sampling points are determined based on the preset delay sampling points;
[0041] Perform data transmission verification under the first data transmission mode on the preset delay sampling points and candidate delay sampling points; if at least one delay sampling point is successfully verified, it is determined that the preset delay sampling point meets the data transmission conditions; otherwise, it is determined that the preset delay sampling point does not meet the data transmission conditions.
[0042] Optionally, alternative delay sampling points can be determined based on preset delay sampling points and preset correction intervals.
[0043] Among them, the preset delay sampling point is a preset fixed value. Data verification can be done by applying for a memory card, sending a verification command and receiving the corresponding verification result to determine whether the data verification is successful. For example, successful verification can be that the verification result is the same as the preset correct result. The preset correction interval is the candidate delay sampling point with a value close to the preset delay sampling point. It can be understood that the candidate delay sampling point with a value close to the preset delay sampling point has a higher probability of meeting the data transmission conditions under the same working environment than other delay sampling points.
[0044] Specifically, due to the complexity of the working environment, the preset delay sampling points may not meet the actual work requirements. However, if all sampling points are re-traversed, it will consume a lot of system resources and be inefficient. Therefore, data transmission verification can be performed by selecting alternative delay sampling points with values close to the preset delay sampling points. Furthermore, if at least one delay sampling point among the preset delay sampling points and alternative delay sampling points is successfully verified, it is determined that the preset delay sampling points meet the data transmission conditions, and the corresponding delay sampling points can be used as the target delay sampling points for this data transmission task.
[0045] For example, if the preset delay sampling point is 5 and the preset correction interval is ±2, then the candidate delay sampling points are {3,4,6,7}. Specifically, {3,4,5,6,7} can be verified for data transmission. If at least one delay sampling point is verified successfully, the corresponding delay sampling point is taken as the target delay sampling point for this transmission task.
[0046] Optionally, different data transmission modes also include different bus rates. The system load can be reduced by lowering the bus rate under the same data transmission mode. Therefore, if it is impossible to select a suitable delay sampling point when the highest data transmission mode and the highest bus rate are used, the system load can be reduced by first lowering the bus rate and then lowering the data transmission mode, thereby matching the corresponding delay sampling point for data transmission verification. The specific method is not limited in this invention.
[0047] For example, if an embedded multimedia card has two data transmission modes, A and B, where A has three bus speeds (a1, a2, and a3) and B has two bus speeds (b1 and b2), and A's data transmission rate is greater than B's (bus speeds a1>a2>a3, b1>b2), then the process for reducing the data transmission rate is as follows:
[0048] (A,a1)->(A,a2)->(A,a3)->(B,B1)->(B,B2).
[0049] Specifically, different data transmission modes, different bus speeds, and the mapping relationship between the working environment and the delay sampling points can be preset. When matching preset delay sampling points, multiple preset delay sampling points can be obtained by reducing the speed and / or switching the data transmission mode, thereby obtaining multiple alternative delay sampling points. Then, multiple data transmission verifications are performed until a delay sampling point that meets the data transmission conditions is obtained. This will not be elaborated here.
[0050] Optionally, if the current working environment does not have a preset corresponding delay sampling point, the corresponding preset delay sampling point cannot be determined. In this case, it can also be considered that the data transmission conditions are not met. In this case, the target delay sampling point needs to be determined in the manner of steps 120-140 of the present invention.
[0051] Step 120: When the preset delay sampling point does not meet the data transmission condition, determine the candidate delay sampling point set based on the second data transmission mode.
[0052] Specifically, when the preset delay sampling points do not meet the data transmission conditions, it indicates that the preset delay sampling points cannot meet the current complex working environment, and the delay sampling points need to be redefined. Furthermore, a candidate delay sampling point set can be determined from each delay sampling point in the second data transmission mode through data transmission verification.
[0053] Step 130: Based on the first data transmission mode, determine the set of candidate delay sampling points from the set of candidate delay sampling points.
[0054] Specifically, the mode can be switched to the first data transmission mode, and then the data transmission verification method can be used to determine the set of candidate delay sampling points from the set of candidate delay sampling points.
[0055] Step 140: Determine the target delay sampling point under the first data transmission mode from the set of candidate delay sampling points.
[0056] Optionally, determining the target delay sampling point under the first data transmission mode from the set of candidate delay sampling points includes:
[0057] The delay sampling point interval is determined based on the delay sampling points in the set of candidate delay sampling points;
[0058] The target delay sampling point interval is determined based on the interval length of each delay sampling point interval;
[0059] Determine the target delay sampling point under the first data transmission mode within the target delay sampling point interval.
[0060] The delayed sampling interval is the continuous interval formed by the sampled values represented by the delayed sampling points.
[0061] For example, if the delay sampling points in the candidate delay sampling point set are {1,2,3,5,6}, then the delay sampling point intervals can be determined as [1,3] and [5,6]. Furthermore, the interval length is the number of delay sampling points within that interval. Therefore, the target delay sampling point interval is [1,3]. Optionally, the midpoint of the target delay sampling point interval can be determined as the target delay sampling point, i.e., the delay sampling point with a value of 2 can be determined as the target delay sampling point. By determining the target delay sampling point interval, the optimal continuous delay sampling points can be quickly determined, improving the accuracy and efficiency of delay sampling point determination.
[0062] Optionally, if the candidate delayed sampling point set is empty, then all delayed sampling points are obtained;
[0063] Based on the first data transmission mode, data transmission verification is performed on all delayed sampling points, and the set of candidate delayed sampling points is determined based on the verification results.
[0064] Specifically, due to the complexity of the working environment, there may be a second data mode in which all delayed sampling points do not meet the data transmission conditions, resulting in an empty set of candidate delayed sampling points. In order to ensure that delayed sampling points can be selected to complete the data transmission task, the data transmission mode can be switched to the first data transmission mode, and then all delayed sampling points can be verified for data transmission. The set of candidate delayed sampling points can be determined based on the verification results.
[0065] This invention discloses a method for determining delay sampling points of an embedded multimedia card. The method includes: acquiring preset delay sampling points of the embedded multimedia card under a first data transmission mode; determining whether the preset delay sampling points meet data transmission conditions; when the preset delay sampling points do not meet the data transmission conditions, determining a set of candidate delay sampling points based on a second data transmission mode; determining a set of candidate delay sampling points from the set of candidate delay sampling points based on a first data transmission mode; and determining a target delay sampling point under the first data transmission mode from the set of candidate delay sampling points. Specifically, this can be achieved by first determining a set of candidate delay sampling points that meet the second data transmission mode, then further filtering from the set of candidate delay sampling points based on the first data transmission mode to determine a set of candidate delay sampling points that meet the first data transmission mode, and finally determining the target delay sampling point from the set of candidate delay sampling points. By reducing the number of delay sampling points required to be traversed in high-speed mode, the selection efficiency of delay sampling points is improved, thereby improving data transmission efficiency. Furthermore, by adding alternative delay sampling points, when the preset delay sampling points cannot meet the data transmission conditions, the success efficiency of data transmission verification is improved by determining alternative delay sampling points, thereby improving the determination efficiency of delay sampling points.
[0066] Example 2
[0067] Figure 2 This is a flowchart illustrating a method for determining delay sampling points in an embedded multimedia card according to Embodiment 2 of the present invention. Based on the above embodiments, this embodiment specifies the method for determining a set of candidate delay sampling points from the candidate delay sampling point set and for determining the target delay sampling point under the first data transmission mode from the set of candidate delay sampling points. This method can be applied to the above embodiments, as detailed in the following figures. Figure 2 .
[0068] like Figure 2 As shown, it includes:
[0069] Step 210: Obtain the preset delay sampling point of the embedded multimedia card in the first data transmission mode.
[0070] Step 220: Determine whether the preset delay sampling point meets the data transmission conditions. If yes, proceed to step 280; otherwise, proceed to step 230.
[0071] If the preset delay sampling point meets the data transmission conditions, then proceed to step 280; otherwise, proceed to step 230.
[0072] Specifically, if the preset delay sampling point meets the data transmission conditions, then the corresponding preset delay sampling point is determined as the target delay sampling point. If the preset delay sampling point does not meet the data transmission conditions, it indicates that the current working environment is too complex to complete the data transmission verification or that the current environment does not have a preset corresponding delay sampling point. In this case, the required delay sampling point needs to be re-determined to complete the current data transmission task.
[0073] Step 230: Switch the embedded multimedia card to the second data transmission mode and obtain each delay sampling point.
[0074] Optionally, the number of delayed sampling points is 0-15, for a total of 16.
[0075] Step 240: Perform data transmission verification on each delayed sampling point, and determine the candidate delayed sampling point set based on the verification results of each delayed sampling point.
[0076] Among them, the delay sampling points in the candidate delay sampling point set are delay sampling points that meet the current environment requirements and whose data transmission verification is successful.
[0077] Specifically, each delayed sampling point can be verified for data transmission in the second data transmission mode, and the successfully verified delayed sampling points can be added to the candidate delayed sampling point set.
[0078] Step 250: Switch the embedded multimedia card to the first data transmission mode and perform data transmission verification on each delay sampling point in the candidate delay sampling point set.
[0079] Understandably, since a faster data transmission mode needs to be prioritized, it is necessary to determine the delay sampling point that the first data transmission mode is compatible with.
[0080] Step 260: Determine the set of candidate delay sampling points based on the verification results of each delay sampling point in the candidate delay sampling point set.
[0081] Among them, the set of candidate delay sampling points consists of delay sampling points that meet the current working environment and are applicable to the first data transmission mode.
[0082] Specifically, the embedded multimedia card will be switched to the first data transmission mode, and then each delay sampling point in the candidate delay sampling point set will be verified for data transmission. If the verification is successful, it indicates that the delay sampling point can adapt to the current working environment and meet the requirements of the first data transmission mode.
[0083] Step 270: Determine the target delay sampling point under the first data transmission mode from the set of candidate delay sampling points.
[0084] Step 280: Configure target sampling points to complete the data transmission task.
[0085] Specifically, once the target delay sampling point is determined, it can help the embedded multimedia card complete the data transmission task.
[0086] This invention provides a method for determining delay sampling points in an embedded multimedia card. When a preset delay sampling point does not meet the data transmission conditions, the method performs data transmission verification under a second data transmission mode. Based on the verification result, a set of candidate delay sampling points that meet the second data transmission mode is determined. Then, under a first data transmission mode, delay sampling points that meet both the first data transmission mode and the current environment are selected as a set of candidate delay sampling points from the candidate set. Finally, a target delay sampling point is determined from the set of candidate delay sampling points. This method quickly determines the target delay sampling point that meets the requirements of the current environment and the high-speed first data transmission mode, reducing the system resource consumption required to traverse all delay sampling points, improving the efficiency of delay sampling point determination, and thus enhancing data transmission efficiency.
[0087] Example 3
[0088] Figure 3The flowchart of a method for determining the delay sampling point of an embedded multimedia card is provided in Embodiment 3 of the present invention. This embodiment is a further refinement based on the steps of the above embodiments.
[0089] like Figure 3 As shown, it includes:
[0090] Step 301: Obtain the working environment, including the highest data transmission mode and bus speed of the embedded multimedia card.
[0091] Among them, the working environment can refer to the operating temperature of the embedded multimedia card. Different embedded multimedia cards have different data transmission modes, and different data transmission modes also have different bus speeds.
[0092] For example, the data transfer rates of the embedded multimedia card in the rate mode are as follows: HS400 > HS200 > HSDDR > HSSDR > LEGACY.
[0093] The bus speeds for different data transmission modes are:
[0094] HS400: 0-200MHz; HS200: 0-200MHz; HSDDR: 0-52MHz; HSSDR: 0-52MHz; LEGACY: 0-26MHz.
[0095] Step 302: Determine whether there are preset delayed sampling points in the current environment. If yes, proceed to step 303; otherwise, proceed to step 307.
[0096] Specifically, if yes, proceed to step 303; otherwise, proceed to step 307.
[0097] Specifically, to ensure data transmission efficiency, data transmission modes and bus speeds with higher transmission rates should be prioritized. Furthermore, a pre-defined correspondence exists between the working environment, data transmission mode, bus speed, and delay sampling points. The corresponding delay sampling point can be matched based on the working environment, data transmission mode, and bus speed. If a pre-defined delay sampling point exists in the current environment, it can be used for data transmission verification. Otherwise, it indicates that the current working environment is too complex, and delay sampling points in this environment are not pre-defined; the target delay sampling point needs to be re-determined.
[0098] Step 303: Perform data transmission verification on the preset delay sampling points and alternative delay sampling points.
[0099] For example, the preset delay sampling point for HS400 data transmission mode, 196MHz, and operating environment of 25 degrees can be set to 5. Further, alternative delay sampling points can be determined according to a preset correction range. For example, if the preset correction range is ±1, then the alternative delay sampling points are 3 and 4.
[0100] Furthermore, data transmission checks can be performed on points 3, 4, and 5. The check results can be used to determine whether the delayed sampling points meet the data transmission conditions. One data verification method is to request a memory block, transmit data to the memory card based on the delayed sampling points, and compare the data transmission results with preset results to determine if the transmission is normal.
[0101] Step 304: Determine whether to update the preset delay sampling points and alternative delay sampling points based on the verification results.
[0102] Specifically, if yes, it indicates that the verification result meets the data transmission conditions, and the delayed sampling point can be determined as the target delayed sampling point; otherwise, it indicates that the verification result does not meet the data transmission conditions, and the delayed sampling point needs to be re-determined.
[0103] Step 305: Determine the delayed sampling points that satisfy the verification results as the target delayed sampling points.
[0104] Step 306: Update the preset delay sampling points and alternative delay sampling points according to the data transmission mode and bus speed.
[0105] Specifically, if the preset delay sampling points and alternative delay sampling points do not meet the data transmission conditions, it may be because the data transmission mode or bus speed is not suitable for the current working environment. In this case, the speed can be reduced by lowering the bus speed and / or the data transmission mode to improve the stability of the system.
[0106] It should be noted that after reducing the bus speed and / or data transmission mode, new preset delay sampling points and alternative delay sampling points can be determined according to the preset, and data transmission verification can be performed. This will not be elaborated here.
[0107] Step 307: Determine the set of candidate delayed sampling points that satisfy the HS200 mode.
[0108] Specifically, if the current working environment is too complex and the delay sampling points in this environment are not preset, the target delay sampling points need to be redefined. Specifically, the embedded multimedia card mode can be switched to HS200, and a set of candidate delay sampling points that meet the HS200 mode can be determined through data transmission verification.
[0109] Step 308: Determine the set of candidate delayed sampling points that satisfy the HS400 mode from the candidate delayed sampling point set.
[0110] Step 309: Determine the target delayed sampling point from the set of candidate delayed sampling points.
[0111] Specifically, a set of candidate delayed sampling points that satisfy the HS400 mode can be determined from the set of candidate delayed sampling points, and then the target delayed sampling point can be determined from the set of candidate delayed sampling points. This achieves the goal of reducing the number of delayed sampling points traversed in the HS400 mode and improving the efficiency of determining delayed sampling points.
[0112] Specifically, the corresponding continuous sub-intervals can be determined based on the values of the delayed sampling points in the set of candidate delayed sampling points, and the midpoint of the longest continuous sub-interval can be determined as the target delayed sampling point.
[0113] Step 310: Configure the target delay sampling point to complete the data transmission task.
[0114] This invention provides a flowchart of a method for determining delay sampling points in an embedded multimedia card. By using the above method, delay sampling points that meet the current environment can be quickly determined, improving the efficiency of delay sampling point determination and thus improving data transmission efficiency.
[0115] Example 4
[0116] Figure 4 This is a schematic diagram of a device for determining the delay sampling point of an embedded multimedia card according to Embodiment 4 of the present invention. The embedded multimedia card includes a first data transmission mode and a second data transmission mode, wherein the data transmission rate of the first data transmission mode is greater than the data transmission rate of the second data transmission mode. Figure 4 As shown, the device includes:
[0117] The judgment module 410 is used to obtain the preset delay sampling point of the embedded multimedia card in the first data transmission mode and determine whether the preset delay sampling point meets the data transmission conditions.
[0118] The candidate delay sampling point set determination module 420 is used to determine the candidate delay sampling point set based on the second data transmission mode when the preset delay sampling point does not meet the data transmission conditions.
[0119] The candidate delay sampling point set determination module 430 is used to determine the candidate delay sampling point set from the candidate delay sampling point set based on the first data transmission mode;
[0120] The target delay sampling point determination module 440 is used to determine the target delay sampling point under the first data transmission mode from the set of candidate delay sampling points.
[0121] This invention provides a device for determining delay sampling points of an embedded multimedia card. The device proceeds by: acquiring preset delay sampling points of the embedded multimedia card in a first data transmission mode; determining whether the preset delay sampling points meet data transmission conditions; when the preset delay sampling points do not meet the data transmission conditions, determining a set of candidate delay sampling points based on a second data transmission mode; determining a set of candidate delay sampling points from the set of candidate delay sampling points based on a first data transmission mode; and determining a target delay sampling point in the first data transmission mode from the set of candidate delay sampling points, wherein the data transmission rate of the first data transmission mode is greater than the data transmission rate of the second data transmission mode. Specifically, the device determines a set of candidate delay sampling points applicable to the low-rate second data transmission mode, then determines a set of candidate delay sampling points applicable to the high-rate first data transmission mode from the set of candidate delay sampling points, and then determines the target delay sampling point sampled in this operation from the set of candidate delay sampling points. This method reduces the number of delay sampling points that need to be traversed in the high-rate mode, thereby improving the efficiency of determining delay sampling points in the high-rate mode and indirectly improving the efficiency of data transmission.
[0122] Optionally, the judgment module 410 includes: a candidate determination unit and a verification unit.
[0123] The candidate determination unit is used to determine candidate delay sampling points based on the preset delay sampling points;
[0124] The verification unit is used to perform data transmission verification on the preset delay sampling point and the alternative delay sampling point under the first data transmission mode; if at least one delay sampling point is successfully verified, it is determined that the preset delay sampling point meets the data transmission conditions; otherwise, it is determined that the preset delay sampling point does not meet the data transmission conditions.
[0125] The candidate determination unit is specifically used to determine candidate delay sampling points based on preset delay sampling points and preset correction intervals.
[0126] Optionally, the candidate delayed sampling point set determination module 420 includes:
[0127] The acquisition unit is used to switch the embedded multimedia card to the second data transmission mode and acquire each delay sampling point;
[0128] The set element determination unit is used to perform data transmission verification on each delayed sampling point and determine the candidate delayed sampling point set based on the verification results of each delayed sampling point.
[0129] Optionally, the candidate delayed sampling point set determination module 430 includes:
[0130] The verification unit is used to switch the embedded multimedia card to the first data transmission mode and perform data transmission verification on each delay sampling point in the candidate delay sampling point set.
[0131] The determining unit is used to determine the set of candidate delay sampling points based on the verification results of each delay sampling point in the candidate delay sampling point set.
[0132] Optionally, the target delay sampling point determination module 440 includes:
[0133] The delayed sampling point interval determination unit is used to determine the delayed sampling point interval based on the delayed sampling points in the set of candidate delayed sampling points;
[0134] The target delay sampling point interval determination unit is used to determine the target delay sampling point interval based on the interval length of each delay sampling point interval;
[0135] The target delay sampling point determination unit is used to determine the target delay sampling point under the first data transmission mode within the target delay sampling point interval.
[0136] The device for determining the delay sampling point of an embedded multimedia card provided in this embodiment of the invention can execute the method for determining the delay sampling point of an embedded multimedia card provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0137] Example 5
[0138] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0139] like Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0140] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0141] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a method for determining delay sampling points of an embedded multimedia card.
[0142] In some embodiments, the method for determining the delay sampling point of the embedded multimedia card can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for determining the delay sampling point of the embedded multimedia card described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method for determining the delay sampling point of the embedded multimedia card by any other suitable means (e.g., by means of firmware).
[0143] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0144] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0145] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0146] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0147] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0148] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0149] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0150] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for determining a delayed sampling point of a MMC, characterized in that, The embedded multimedia card comprises a first data transmission mode and a second data transmission mode, wherein a data transmission rate of the first data transmission mode is greater than a data transmission rate of the second data transmission mode, comprising: acquiring a preset delay sampling point of the embedded multimedia card in the first data transmission mode, and determining whether the preset delay sampling point meets a data transmission condition; when the preset delay sampling point does not meet the data transmission condition, determining a candidate delay sampling point set based on the second data transmission mode; determining a standby delay sampling point set from the candidate delay sampling point set based on the first data transmission mode; determining a target delay sampling point in the first data transmission mode from the standby delay sampling point set.
2. The method of claim 1, wherein, The determination of whether the preset delay sampling point meets the data transmission condition comprises: determining a backup delay sampling point according to the preset delay sampling point; performing data transmission verification on the preset delay sampling point and the backup delay sampling point in the first data transmission mode; if at least one delay sampling point is verified successfully, it is determined that the preset delay sampling point meets the data transmission condition, otherwise, it is determined that the preset delay sampling point does not meet the data transmission condition.
3. The method of claim 2, wherein, The determination of the backup delay sampling point according to the preset delay sampling point comprises: determining the backup delay sampling point according to the preset delay sampling point and a preset correction interval.
4. The method of claim 1, wherein, The determination of the candidate delay sampling point set based on the second data transmission mode comprises: switching the embedded multimedia card to the second data transmission mode, acquiring each delay sampling point; performing data transmission verification on the delay sampling points, and determining the candidate delay sampling point set according to the verification results of the delay sampling points.
5. The method of claim 4, wherein, The determination of the standby delay sampling point set from the candidate delay sampling point set based on the first data transmission mode comprises: switching the embedded multimedia card to the first data transmission mode, performing data transmission verification on each delay sampling point in the candidate delay sampling point set; determining the standby delay sampling point set according to the verification results of each delay sampling point in the candidate delay sampling point set.
6. The method of claim 1, wherein, The determination of the target delay sampling point in the first data transmission mode from the standby delay sampling point set comprises: determining a delay sampling point interval according to the delay sampling points in the standby delay sampling point set; determining a target delay sampling point interval according to the interval lengths of the delay sampling point intervals; determining the target delay sampling point in the first data transmission mode in the target delay sampling point interval.
7. The method of claim 1, wherein, Further comprising: if the candidate delay sampling point set is empty, acquiring all delay sampling points; performing data transmission verification on all delay sampling points based on the first data transmission mode, and determining the standby delay sampling point set according to the verification results.
8. An apparatus for determining a delay sample point of a MMC, characterized in that, The embedded multimedia card comprises a first data transmission mode and a second data transmission mode, wherein a data transmission rate of the first data transmission mode is greater than a data transmission rate of the second data transmission mode, comprising: a judgment module, configured to acquire a preset delay sampling point of the embedded multimedia card in the first data transmission mode, and determine whether the preset delay sampling point meets a data transmission condition; The candidate delay sampling point set determination module is configured to determine a candidate delay sampling point set based on a second data transmission mode when the preset delay sampling point does not satisfy the data transmission condition. The candidate delay sampling point set determination module is configured to determine a candidate delay sampling point set based on a second data transmission mode when the preset delay sampling point does not satisfy the data transmission condition. The target delay sampling point determination module is configured to determine a target delay sampling point in the first data transmission mode from the candidate delay sampling point set.
9. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the method for determining a delay sampling point of an embedded multimedia card according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling a processor to implement the method for determining a delay sampling point of an embedded multimedia card according to any one of claims 1-7 when executed by the processor.