Self-adaptive data transmission method, device, equipment and medium
By introducing adaptive signal feedback and data transmission parameter adjustment modules into the flash memory device, the problem of unstable data transmission in different environments is solved, adaptive data transmission is realized, and the stability and universality of the system products are enhanced.
Patent Information
- Application Number
- CN202510202336.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-27
Smart Images

Figure CN120045479A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of wireless communication technologies, and in particular, to an adaptive data transmission method, apparatus, device, and medium. Background Art
[0002] Currently, flash memory can still retain the stored data information even when powered off, and it is a non-volatile memory. Flash memory has the characteristics of not requiring special high voltages during electrical erasure and repeated programming, low manufacturing cost, and large storage density. It has become the mainstream of non-volatile semiconductor storage technology and is widely used in various fields such as consumer products, industrial equipment, and automotive devices. The reliability of flash memory products in storing data directly affects the operation of system products. In particular, reliable output data has become the main concern in system products.
[0003] However, in different field applications, the working environments of system products are diverse and vary greatly, such as factors like the difference in the transmission quality of the signal chain, the difference in the signal transmission frequency, and the difference in the working environment temperature. To ensure the working stability of system products, it is required that flash memory products can receive or output data stably and reliably in different working environments. To ensure the stable and reliable operation of flash memory products, it is usually necessary for external manual intervention to be actively involved during the system product design stage to perform compatibility tests on the system product and the flash memory product, and to adjust system parameters to ensure that the system product can work stably and reliably in different working environments. This way of external intervention not only has a high labor cost, but more importantly, it also requires personalized customization of system parameters, which has a great impact on the generality of system products. Summary of the Invention
[0004] To solve the above technical problems, the present disclosure provides an adaptive data transmission method, apparatus, device, and medium.
[0005] According to one aspect of the present disclosure, an adaptive data transmission method is provided. The method is applied to a flash memory device that performs data transmission with a master device. The flash memory device includes: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module. The method includes:
[0006] When the signal detection and control module receives a data reading instruction sent by the master device, it generates a control signal according to the data reading instruction;
[0007] The adaptive signal feedback module generates a feedback signal according to the control signal of the signal detection and control module, and sends the feedback signal to the master device, so that the master device generates a data rereading instruction according to the feedback signal;
[0008] The signal detection and control module generates a transmission control instruction for adjusting data transmission parameters according to the data read-back instruction sent by the master device;
[0009] The data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain target data transmission parameters;
[0010] The data output control module transmits target data corresponding to the data read instruction to the master device according to the target data transmission parameters.
[0011] According to another aspect of the present disclosure, an adaptive data transmission method is also provided. The method is applied to a master device that performs data transmission with a flash memory device. The flash memory device includes: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module. The method includes:
[0012] Sending a data read instruction to the signal detection and control module, so that the signal detection and control module generates a control signal according to the data read instruction;
[0013] Receiving a feedback signal sent by the adaptive signal feedback module; wherein, the feedback signal is generated according to the control signal;
[0014] Generating a data read-back instruction according to the feedback signal;
[0015] Sending the data read-back instruction to the signal detection and control module, so that the signal detection and control module generates a transmission control instruction for adjusting data transmission parameters, and the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain target data transmission parameters;
[0016] Receiving the target data corresponding to the data read instruction transmitted by the data output control module according to the target data transmission parameters.
[0017] According to another aspect of the present disclosure, an adaptive data transmission device is also provided. The device is applied to a flash memory device that performs data transmission with a master device. The flash memory device includes: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module. The device includes:
[0018] An instruction processing unit, configured to, when the signal detection and control module receives a data read instruction sent by the master device, generate a control signal according to the data read instruction;
[0019] A signal feedback unit, configured to enable the adaptive signal feedback module to generate a feedback signal according to the control signal of the signal detection and control module, and send the feedback signal to the master device, so that the master device generates a data read-back instruction according to the feedback signal;
[0020] A transmission control instruction generation unit, configured to enable the signal detection and control module to generate a transmission control instruction for adjusting data transmission parameters according to the data read-back instruction sent by the master device;
[0021] A parameter adjustment unit, configured to enable the data output parameter configuration module to adjust and control the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain target data transmission parameters;
[0022] A data transmission unit, configured to enable the data output control module to transmit target data corresponding to the data read instruction to the master device according to the target data transmission parameters.
[0023] According to another aspect of the present disclosure, there is also provided an adaptive data transmission device, which is applied to a master device for data transmission with a flash memory device. The flash memory device includes: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module; the device includes:
[0024] A data read instruction sending unit, configured to send a data read instruction to the signal detection and control module, so that the signal detection and control module generates a control signal according to the data read instruction;
[0025] A feedback signal receiving unit, configured to receive the feedback signal sent by the adaptive signal feedback module; wherein, the feedback signal is generated according to the control signal;
[0026] A data read-back instruction generation unit, configured to generate a data read-back instruction according to the feedback signal;
[0027] A data read-back instruction sending unit, configured to send the data read-back instruction to the signal detection and control module, so that the signal detection and control module generates a transmission control instruction for adjusting data transmission parameters, and the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain target data transmission parameters;
[0028] A data receiving module, configured to receive the target data corresponding to the data read instruction transmitted by the data output control module according to the target data transmission parameters.
[0029] According to another aspect of the present disclosure, there is also provided an electronic device, which includes:
[0030] Processor;
[0031] A memory for storing executable instructions of the processor;
[0032] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the above method.
[0033] According to another aspect of the present disclosure, there is also provided a computer-readable storage medium storing a computer program for executing the above method.
[0034] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with the prior art:
[0035] The technical solution provided by the embodiments of the present disclosure includes: when the signal detection and control module in the flash memory device receives a data read instruction sent by the host device, a control signal is generated according to the data read instruction; the adaptive signal feedback module generates a feedback signal according to the control signal of the signal detection and control module and sends the feedback signal to the host device, so that the host device generates a data read-back instruction according to the feedback signal; the signal detection and control module generates a transmission control instruction for adjusting the data transmission parameters according to the data read-back instruction sent by the host device; the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain target data transmission parameters; the data output control module transmits target data corresponding to the data read instruction to the host device according to the target data transmission parameters.
[0036] In this technical solution, after the flash memory device receives a read instruction from the host device, it does not directly perform data transmission. Instead, through the signal detection and control module and the adaptive signal feedback module in the flash memory device, a feedback signal is sent to the host device, thereby automatically detecting and feedbacking the signal transmission quality to achieve detection and feedback adapting to the working environment. Then, the flash memory device generates a transmission control instruction for adjusting the data transmission parameters according to the data read-back instruction re-sent by the host device using the feedback signal, and realizes real-time adjustment of the data transmission parameters in the adaptive environment through the transmission control instruction, and finally performs data transmission according to the target data transmission parameters after adaptive adjustment. During the above data transmission process, through the collaborative work of each module, this solution can automatically detect, feedback, and adjust the signal transmission quality without external intervention, enabling the flash memory device to more reliably and stably output data in different working environments, greatly enhancing the versatility and stability of the system product. Description of the Drawings
[0037] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0038] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0039] Figure 1 A schematic structural diagram of an existing flash memory device provided by an embodiment of the present disclosure;
[0040] Figure 2 A schematic type of data interaction timing between a flash memory device and a host device provided by an embodiment of the present disclosure;
[0041] Figure 3 Another schematic type of data interaction timing between a flash memory device and a host device provided by an embodiment of the present disclosure;
[0042] Figure 4 A schematic structural diagram of a flash memory structure with adaptive data transmission provided by an embodiment of the present disclosure;
[0043] Figure 5 A flowchart of an adaptive data transmission method provided by an embodiment of the present disclosure;
[0044] Figure 6 A flowchart of another adaptive data transmission method provided by an embodiment of the present disclosure;
[0045] Figure 7 A schematic structural diagram of an adaptive data transmission device provided by an embodiment of the present disclosure;
[0046] Figure 8 A schematic structural diagram of another adaptive data transmission device provided by an embodiment of the present disclosure;
[0047] Figure 9 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0048] To be able to more clearly understand the above objects, features, and advantages of the present disclosure, the following will further describe the solutions of the present disclosure. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
[0049] In the following description, many specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.
[0050] Referring to Figure 1 , it shows that an instruction receiving module of a flash memory device receives a data reading instruction on a data transmission line and controls a data output module to output data to a host device (i.e., Master) through the data transmission line. Figure 2 What is shown is a timing schematic type of data interaction between a flash memory device and a host device under normal circumstances.
[0051] Compared with Figure 2 , as Figure 3 shown, the host device samples the data output by the flash memory device using the rising edge of its own clock signal SCLK_Master to obtain the target read data. Due to the influence of the delay of the transmission path, the data transmitted from the flash memory device to the data receiving port MISO_Master of the host device will be delayed. If the path transmission delay causes the valid data received by the data receiving port MISO_Master of the host device to be later than the rising edge of the sampling clock signal SCLK_Master of the host device, it will cause the host device to sample incorrect data, that is, the host device reads incorrect data.
[0052] It can be seen that Figure 1 in the process of data transmission of the flash memory device shown, after the flash memory device receives a data read command, it passively outputs data to the host device through the data transmission line. For different hardware environments and different working environments, the path delay and signal integrity during the data transmission process will have a great impact on the target data sampled by the host device. If the output transmission delay and signal integrity problems under different working conditions are not adjusted specifically, incorrect data will be sampled by the host device under some conditions, thereby affecting the stability and reliability of the system product.
[0053] In view of the diversification of the application environment or working environment of the flash memory device, the embodiments of the present disclosure provide an adaptive data transmission method, so that the adaptive function of the flash memory device can achieve feedback for adapting to the working environment, and at the same time can achieve real-time adjustment of adaptive configuration parameters, enabling the flash memory device to more reliably and stably achieve data output under different working environments, greatly enhancing the versatility and stability of the system product. For ease of understanding, the embodiments of the present disclosure are described in detail below.
[0054] In this embodiment, an adaptive data transmission method may be provided; this method is applied to a flash memory device that performs data transmission with a host device. Among them, as Figure 4As shown, the main device of the system product transfers data with the flash memory device. The flash memory device may include: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module. In addition, the flash memory device may further include an instruction receiving module.
[0055] In the flash memory device, the signal detection and control module is respectively connected to the main device, the adaptive signal feedback module, the data output parameter configuration module, and the instruction receiving module. The adaptive signal feedback module is connected to the main device. The data output control module is respectively connected to the data output parameter configuration module and the instruction receiving module. The instruction receiving module is connected to the main device.
[0056] Based on the above flash memory device, Figure 5 is a flowchart of an adaptive data transmission method provided by an embodiment of the present disclosure. This method is applied to a flash memory device that transfers data with a main device. This method can be executed by an adaptive data transmission device, and this device can be implemented by a flash memory device. As Figure 5 shown, an adaptive data transmission method may include the following steps.
[0057] S102, when the signal detection and control module receives a data reading instruction sent by the main device, it generates a control signal according to the data reading instruction.
[0058] In this embodiment, the signal detection and control module detects the data reading instruction from the main device on the data transmission line. This data reading instruction is, for example, a timing signal of high and low levels. Then, it generates a control signal f_oper according to the data reading instruction.
[0059] Among them, the embodiment in which the signal detection and control module generates a control signal f_oper according to the data reading instruction may include:
[0060] The signal detection and control module determines the data reading method corresponding to the data reading instruction. Among them, the data reading method is used to represent the data reading method of a single data transmission line or multiple data transmission lines;
[0061] Determine the idle time matching the number of data transmission lines in the data reading method;
[0062] Generate a control signal f_oper according to the idle time.
[0063] In specific implementation, the data reading methods of the SPI protocol include single-line reading and multi-line reading. Single-line reading is the data reading method of a single data transmission line, and multi-line reading is the data reading method of multiple data transmission lines. The lengths of the idle times corresponding to different data reading methods are different. To ensure that the control signals are transmitted in a timely manner, release the data transmission lines, and avoid excessive occupation of the data transmission lines, in this case, different control signals need to be determined for different data reading methods.
[0064] Therefore, the signal detection and control module first needs to determine whether the data reading method corresponding to the data reading instruction is single-line reading or multi-line reading, and the number of data transmission lines in the case of multi-line reading. The SPI frame structure of the data reading instruction has a fixed format. Exemplarily, it may include, but is not limited to: 8-bit instruction information and 24-bit address information. Among them, 24-bit address information is used to transmit data. Similarly, when transmitting 24-bit address signals, it takes 24 cycles to complete the transmission in the case of single-line reading, and it takes 6 cycles to complete the transmission in the case of multi-line reading with 4 data transmission lines. Correspondingly, the idle times during the intermediate processes of single-line reading and multi-line reading are different, that is: single-line reading corresponds to 24 cycles, and correspondingly there are 24 idle times, multi-line reading corresponds to 6 cycles, and correspondingly there are 6 idle times.
[0065] Furthermore, a control signal f_oper is generated according to the idle time, thereby ensuring that the control signal f_oper does not occupy the normal data transmission time of the data transmission line.
[0066] The signal detection and control module sends the generated control signal f_oper to the adaptive feedback module.
[0067] S104, the adaptive signal feedback module generates a feedback signal according to the control signal of the signal detection and control module, and sends the feedback signal to the master device, so that the master device generates a data read-back instruction according to the feedback signal.
[0068] In this embodiment, the adaptive signal feedback module performs conversion processing on the control signal f_oper to generate an adaptive feedback signal f_au, and sends the feedback signal f_au to the master device of the system product in the idle state of the data transmission line.
[0069] Among them, the specific process of the adaptive signal feedback module sending the feedback signal to the master device may include:
[0070] The adaptive signal feedback module determines the idle state of the data transmission line between the flash memory device and the master device according to the SPI frame structure of the data reading instruction, and sends the feedback signal to the master device in the idle state of the data transmission line.
[0071] For example, the SPI frame structure of the data read instruction includes, but is not limited to: 8-bit instruction information and 24-bit address information. When the master device inputs 24-bit address information to the flash device, it is equivalent to a redundant period in the middle. During this period, the data transmission line only receives the address information simply, and the flash device does not return any data to the master device. Therefore, it can be considered that the data transmission line is in an idle state when receiving 24-bit address information. Furthermore, the adaptive signal feedback module of the flash device uses the idle state of the data transmission line to send the feedback signal f_au to the master device.
[0072] After receiving the feedback signal f_au, the master device can generate a data read-back instruction f_mback according to the feedback signal f_au.
[0073] In one embodiment, the master device uses clock signals SCLK_Master with different delays to scan and sample the feedback signal f_au to obtain a first sampled feedback signal; uses different edges of the clock signal SCLK_Master to sample the first sampled feedback signal received at the MISO_Master port to obtain a second sampled feedback signal. The above is the process of the master device receiving the feedback signal from the flash device. Next, according to the reception time of the second sampled feedback signal and the transmission time of the data read instruction, a data read-back instruction f_mback is generated.
[0074] The master device can clearly record the time when it initially sent the data read instruction and the time when it currently receives the second sampled feedback signal, calculate the time difference between the reception time of the second sampled feedback signal and the transmission time of the data read instruction, and can determine the delay time generated by the data transmission line in the current working environment and the compensation operations that need to be performed for the generated delay time. Such compensation operations include adjusting the data transmission speed, adjusting the sampling time point, etc.
[0075] Furthermore, the master device generates a data read-back instruction f_mback according to the delay time and the compensation operation, and sends the data read-back instruction f_mback to the signal detection and control module of the flash device. It can be understood that the data read-back instruction in this embodiment is used to instruct the flash device to perform adaptive data transmission with reference to the delay time and compensation operation given by the master device.
[0076] S106, the signal detection and control module generates a transmission control instruction for adjusting data transmission parameters according to the data read-back instruction sent by the master device.
[0077] In this embodiment, the signal detection and control module receives the data read-back instruction f_mback sent by the master device, identifies the delay time and compensation operation included in the data read-back instruction f_mback, and determines the target data transmission parameter to be modified and adjusted according to the delay time and compensation operation; then generates a transmission control instruction f_trim for the target data transmission parameter to be modified and adjusted, and sends the transmission control instruction to the data output parameter configuration module. An example of the transmission control instruction f_trim can be referred to as follows.
[0078] Example 1: Assume that the data transmission time threshold between the master device and the flash memory device is 100 nanoseconds, that is, the time difference between the transmission time of the master device's data read instruction and the reception time of the feedback signal (specifically, the second sampling feedback signal) should be within 100 nanoseconds, but actually it has passed 150 nanoseconds, resulting in a delay time of 50 nanoseconds. In order to control the data transmission speed faster, it can be determined that the compensation operation is to increase the output level threshold. In this case, the signal detection and control module determines the target output level threshold to be modified and adjusted according to the compensation operation. The target output level threshold to be modified and adjusted is, for example, increased by 20% based on the original output level threshold; generates a transmission control instruction f_trim for the output level threshold to be modified and adjusted.
[0079] Example 2: The delay time generated during data transmission between the master device and the flash memory device is relatively large, and it is difficult to ensure the timeliness of transmission through the compensation operation of increasing the output level threshold. At this time, the compensation operation of delaying the sampling time point backward can be adopted. In this case, the signal detection and control module determines the target sampling time point to be modified and adjusted according to the compensation operation, and generates a transmission control instruction f_trim for the target sampling time point to be modified and adjusted.
[0080] Compared with the prior art, the flash memory device in this embodiment does not directly perform data transmission on the data read instruction of the master device, but sends a feedback signal to the master device through the signal detection and control module and the adaptive signal feedback module. Through the feedback signal, the master device determines the delay time and compensation operation generated by the data transmission line in the current working environment. Then, the flash memory device will generate a transmission control instruction for adjusting the data transmission parameter according to the data read-back instruction, that is, the flash memory device will perform data transmission according to the adaptively adjusted data read-back instruction, thereby ensuring the stability and reliability of data output, and greatly enhancing the versatility and stability of the system product. At the same time, the above adaptive data transmission process does not require any external intervention and can be achieved through the collaborative work of different modules inside the flash memory device.
[0081] S108, the data output parameter configuration module adjusts and controls the current data transmission parameter according to the transmission control instruction of the signal detection and control module to obtain the target data transmission parameter.
[0082] In this embodiment, the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction, specifically by adjusting the current data transmission parameters to the target data transmission parameters Output_control_code indicated by the transmission control instruction.
[0083] S110. The data output control module transmits the target data corresponding to the data read instruction to the host device according to the target data transmission parameters.
[0084] Based on the above embodiments, the flash memory device provided in this embodiment may further include: an instruction receiving module respectively connected to the signal detection control module, the host device, and the data output control module; correspondingly, the adaptive data transmission method may further include:
[0085] When the instruction receiving module receives the data read instruction sent by the host device, it controls the data output control module to transmit the target data corresponding to the data read instruction to the host device.
[0086] In this embodiment, the instruction receiving module controls the data output control module to transmit the target data to the host device to prevent the flash memory from being unable to transmit data to the host device when other modules fail.
[0087] In summary, the adaptive data transmission method provided in the embodiments of the present disclosure is applied to a flash memory device for data transmission with a host device. The flash memory device includes: a signal detection control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module; the method includes: when the signal detection control module receives the data read instruction sent by the host device, it generates a control signal according to the data read instruction; the adaptive signal feedback module generates a feedback signal according to the control signal of the signal detection control module and sends the feedback signal to the host device so that the host device generates a data read-back instruction according to the feedback signal; the signal detection control module generates a transmission control instruction for adjusting the data transmission parameters according to the data read-back instruction sent by the host device; the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection control module to obtain the target data transmission parameters; the data output control module transmits the target data corresponding to the data read instruction to the host device according to the target data transmission parameters.
[0088] In this technical solution, after the flash memory device receives a read instruction from the host device, it does not directly perform data transmission. Instead, it sends a feedback signal to the host device through the signal detection and control module and the adaptive signal feedback module in the flash memory device, thereby automatically detecting and feedbacking the signal transmission quality, and realizing the detection and feedback adapted to the working environment. Then, the flash memory device will generate a transmission control instruction for adjusting the data transmission parameters according to the data read instruction re-sent by the host device using the feedback signal, and realize the real-time adjustment of the data transmission parameters adapted to the environment through the transmission control instruction, and finally perform data transmission according to the target data transmission parameters after adaptive adjustment. During the above data transmission process, through the collaborative work of each module, this solution can automatically detect, feedback, and adjust the signal transmission quality without external intervention, enabling the flash memory device to more reliably and stably output data in different working environments, greatly enhancing the versatility and stability of the system product.
[0089] Based on the above embodiments, with reference to Figure 6 shown, the embodiments of the present disclosure can also provide another adaptive data transmission method; this method is applied to a host device that performs data transmission with a flash memory device, and the flash memory device includes: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module; this method may include the following steps.
[0090] S202, send a data read instruction to the signal detection and control module, so that the signal detection and control module generates a control signal according to the data read instruction.
[0091] S204, receive the feedback signal sent by the adaptive signal feedback module; wherein, the feedback signal is generated according to the control signal.
[0092] S206, generate a data read instruction according to the feedback signal.
[0093] S208, send a data read instruction to the signal detection and control module, so that the signal detection and control module generates a transmission control instruction for adjusting the data transmission parameters, and the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain the target data transmission parameters.
[0094] S210, receive the target data corresponding to the data read instruction transmitted by the data output control module according to the target data transmission parameters.
[0095] In this embodiment, the above step S206, generating a data read instruction according to the feedback signal may include:
[0096] Scan and sample the feedback signal using clock signals with different delays to obtain a first sampled feedback signal;
[0097] Sample the first sampled feedback signal received at the MISO_Master port using different edges of the clock signal to obtain a second sampled feedback signal;
[0098] Generate a data read-back instruction from the second sampled feedback signal.
[0099] For the adaptive data transmission method provided in this embodiment, its implementation principle and the technical effects produced are the same as those of the foregoing method embodiment. For the sake of brief description, for the parts not mentioned in this embodiment, reference may be made to the corresponding content in the foregoing method embodiment.
[0100] Figure 7 As shown in the structural schematic diagram of an adaptive data transmission device provided in an embodiment of the present disclosure, this device is applied to a flash memory device for data transmission with a host device. The flash memory device includes: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module. This device can be used to implement the above-mentioned adaptive data transmission method, and this device can be implemented by software and / or hardware. As Figure 6 shown, an adaptive data transmission device may include the following units.
[0101] An instruction processing unit 310, configured to, when the signal detection and control module receives a data read instruction sent by the host device, generate a control signal according to the data read instruction;
[0102] A signal feedback unit 320, configured to the adaptive signal feedback module generate a feedback signal according to the control signal of the signal detection and control module, and send the feedback signal to the host device, so that the host device generates a data read-back instruction according to the feedback signal;
[0103] A transmission control instruction generation unit 330, configured to the signal detection and control module generate a transmission control instruction for adjusting data transmission parameters according to the data read-back instruction sent by the host device;
[0104] A parameter adjustment unit 340, configured to the data output parameter configuration module adjust and control the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain target data transmission parameters;
[0105] A data transmission unit 350, configured to the data output control module transmit target data corresponding to the data read instruction to the host device according to the target data transmission parameters.
[0106] Figure 8The figure is a schematic structural diagram of an adaptive data transmission device provided by an embodiment of the present disclosure. The device is applied to a master device for data transmission with a flash memory device, and the flash memory device includes: a signal detection and control module, an adaptive signal feedback module, a data output parameter configuration module, and a data output control module. The device can be used to implement the above-mentioned adaptive data transmission method, and the device can be implemented by software and / or hardware. As Figure 8 shown, an adaptive data transmission device may include the following units.
[0107] A data reading instruction sending unit 410, configured to send a data reading instruction to the signal detection and control module, so that the signal detection and control module generates a control signal according to the data reading instruction;
[0108] A feedback signal receiving unit 420, configured to receive a feedback signal sent by the adaptive signal feedback module; wherein, the feedback signal is generated according to the control signal;
[0109] A data re-reading instruction generating unit 430, configured to generate a data re-reading instruction according to the feedback signal;
[0110] A data re-reading instruction sending unit 440, configured to send the data re-reading instruction to the signal detection and control module, so that the signal detection and control module generates a transmission control instruction for adjusting data transmission parameters, and the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection and control module to obtain target data transmission parameters;
[0111] A data receiving module 450, configured to receive target data corresponding to the data reading instruction transmitted by the data output control module according to the target data transmission parameters.
[0112] For the device provided in this embodiment, its implementation principle and the technical effects generated are the same as those of the foregoing method embodiment. For a brief description, for the parts not mentioned in the device embodiment, reference may be made to the corresponding content in the foregoing method embodiment.
[0113] Figure 9 The figure is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As Figure 9 shown, the electronic device 500 includes one or more processors 501 and a memory 502.
[0114] The processor 501 may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 500 to perform desired functions.
[0115] The memory 502 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory, etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage media, and the processor 501 may run the program instructions to implement the adaptive data transmission method of the embodiments of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage media.
[0116] In one example, the electronic device 500 may further include: an input device 503 and an output device 504, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0117] In addition, the input device 503 may further include, for example, a keyboard, a mouse, and the like.
[0118] The output device 504 may output various information to the outside, including the determined distance information, direction information, etc. The output device 504 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0119] Of course, for simplicity, Figure 9 only some of the components related to the present disclosure in the electronic device 500 are shown, and components such as buses, input / output interfaces, etc. are omitted. In addition, according to specific application scenarios, the electronic device 500 may further include any other appropriate components.
[0120] Furthermore, this embodiment also provides a computer-readable storage medium, and the storage medium stores a computer program, and the computer program is used to execute the above-mentioned adaptive data transmission method.
[0121] The computer program product of an adaptive data transmission method, device, electronic device and medium provided by the embodiments of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, reference may be made to the method embodiments, and details are not described herein again.
[0122] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.
[0123] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. An adaptive data transmission method, characterized in that: The method is applied to a flash memory device for performing data transmission with a host device, the flash memory device comprising: a signal detection control module, an adaptive signal feedback module, a data output parameter configuration module and a data output control module; the method comprises: When the signal detection control module receives a data reading instruction sent by the master device, it generates a control signal according to the data reading instruction; The adaptive signal feedback module generates a feedback signal according to the control signal of the signal detection control module, and sends the feedback signal to the master device, so that the master device generates a data readback instruction according to the feedback signal; The signal detection control module generates a transmission control instruction for adjusting data transmission parameters according to the data readback instruction sent by the master device; The data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection control module to obtain the target data transmission parameters; The data output control module transmits target data corresponding to the data read instruction to the master device according to the target data transmission parameter.
2. The method according to claim 1, characterized in that The step of generating a control signal according to the data reading instruction comprises: The signal detection control module determines the data reading mode corresponding to the data reading instruction; wherein the data reading mode is used to represent the data reading mode of a single data transmission line or multiple data transmission lines; determining an idle time matching the number of data transmission lines in the data reading mode; A control signal is generated according to the idle time.
3. The method according to claim 1, characterized in that The sending the feedback signal to the master device includes: The adaptive signal feedback module determines the idle state of the data transmission line between the flash memory device and the master device according to the SPI frame structure of the data read instruction, and sends the feedback signal to the master device in the idle state of the data transmission line.
4. The method according to claim 1, characterized in that: The flash memory device further comprises: an instruction receiving module connected to the signal detection control module, the host device and the data output control module respectively; the method further comprises: When the instruction receiving module receives the data reading instruction sent by the master device, it controls the data output control module to transmit the target data corresponding to the data reading instruction to the master device.
5. An adaptive data transmission method, characterized in that: The method is applied to a master device that performs data transmission with a flash memory device, wherein the flash memory device comprises: a signal detection control module, an adaptive signal feedback module, a data output parameter configuration module and a data output control module; the method comprises: a data reading instruction sent to the signal detection control module, so that the signal detection control module generates a control signal according to the data reading instruction; Receiving a feedback signal sent by the adaptive signal feedback module; wherein the feedback signal is generated according to the control signal; generating a data readback instruction according to the feedback signal; Sending the data readback instruction to the signal detection control module so that the signal detection control module generates a transmission control instruction for adjusting the data transmission parameters, and the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection control module to obtain the target data transmission parameters; Receive target data corresponding to the data read instruction and transmitted by the data output control module according to the target data transmission parameter.
6. The method according to claim 1, characterized in that Generating a data readback instruction according to the feedback signal includes: Scan and sample the feedback signal using clock signals with different delays to obtain a first sampled feedback signal; Using different edges of the clock signal to sample the first sampling feedback signal received by the MISO_Master port to obtain a second sampling feedback signal; A data readback instruction is generated according to the reception time of the second sampling feedback signal and the sending time of the data read instruction.
7. An adaptive data transmission device, characterized in that: The device is applied to a flash memory device for data transmission with a host device, and the flash memory device comprises: a signal detection control module, an adaptive signal feedback module, a data output parameter configuration module and a data output control module; the device comprises: An instruction processing unit, configured to generate a control signal according to a data reading instruction when the signal detection control module receives a data reading instruction sent by a master device; A signal feedback unit, used for the adaptive signal feedback module to generate a feedback signal according to the control signal of the signal detection control module, and send the feedback signal to the master device, so that the master device generates a data readback instruction according to the feedback signal; A transmission control instruction generating unit, used for the signal detection control module to generate a transmission control instruction for adjusting data transmission parameters according to the data readback instruction sent by the master device; A parameter adjustment unit, used for the data output parameter configuration module to adjust and control the current data transmission parameters according to the transmission control instruction of the signal detection control module to obtain the target data transmission parameters; A data transmission unit is used for the data output control module to transmit the target data corresponding to the data read instruction to the master device according to the target data transmission parameter.
8. An adaptive data transmission device, characterized in that: The device is applied to a master device for data transmission with a flash memory device, wherein the flash memory device comprises: a signal detection control module, an adaptive signal feedback module, a data output parameter configuration module and a data output control module; the device comprises: A data reading instruction sending unit, used for sending a data reading instruction to the signal detection control module, so that the signal detection control module generates a control signal according to the data reading instruction; A feedback signal receiving unit, configured to receive a feedback signal sent by the adaptive signal feedback module; wherein the feedback signal is generated according to the control signal; A data readback instruction generating unit, used for generating a data readback instruction according to the feedback signal; a data readback instruction sending unit, configured to send the data readback instruction to the signal detection control module, so that the signal detection control module generates a transmission control instruction for adjusting the data transmission parameters, and the data output parameter configuration module adjusts and controls the current data transmission parameters according to the transmission control instruction of the signal detection control module to obtain the target data transmission parameters; The data receiving module is used to receive the target data corresponding to the data reading instruction transmitted by the data output control module according to the target data transmission parameter.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 6.