WO2022126584A1 - Link reestablishment method and device - Google Patents

Link reestablishment method and device Download PDF

Info

Publication number
WO2022126584A1
WO2022126584A1 PCT/CN2020/137557 CN2020137557W WO2022126584A1 WO 2022126584 A1 WO2022126584 A1 WO 2022126584A1 CN 2020137557 W CN2020137557 W CN 2020137557W WO 2022126584 A1 WO2022126584 A1 WO 2022126584A1
Authority
WO
WIPO (PCT)
Prior art keywords
level signal
flash memory
duration
main chip
data transmission
Prior art date
Application number
PCT/CN2020/137557
Other languages
French (fr)
Chinese (zh)
Inventor
李孝严
刘荣国
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2020/137557 priority Critical patent/WO2022126584A1/en
Priority to CN202080107711.2A priority patent/CN116569127A/en
Publication of WO2022126584A1 publication Critical patent/WO2022126584A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers

Abstract

Provided are a link reestablishment method and device, which can solve the problem of the time required for link reestablishment being relatively long when a data link is abnormal and a data read/write failure occurs, and can avoid data read/write lagging. The link reestablishment method comprises: when the adjustment of a first data transmission link between a master chip and a flash memory fails, the master chip receiving a second level signal, the duration of which is longer than that of a first level signal, from the flash memory, wherein the second level signal is used for indicating that the first data transmission link is abnormal; and the master chip immediately sending a link establishment command to the flash memory after receiving the second level signal so as to establish a second data transmission link.

Description

链路重建方法及装置Link re-establishment method and device 技术领域technical field
本申请涉及数据读写领域,尤其涉及一种链路重建方法及装置。The present application relates to the field of data reading and writing, and in particular, to a link reconstruction method and device.
背景技术Background technique
电子设备可以包括主芯片和闪存。主芯片可以根据来自应用程序(如微信
Figure PCTCN2020137557-appb-000001
Figure PCTCN2020137557-appb-000002
)的数据读写命令,向闪存发起数据读写操作,如可以通过主芯片与闪存之间数据传输链路完成读写操作。然而,诸如主芯片或闪存的温度过高、电压过高等环境因素,均可能导致数据传输链路异常,从而导致读写操作失败。因此,当数据传输链路异常时,需要尽快恢复数据传输链路,以确保读写操作正常进行。
The electronic device may include a main chip and flash memory. The main chip can
Figure PCTCN2020137557-appb-000001
Figure PCTCN2020137557-appb-000002
) data read and write commands, initiate data read and write operations to the flash memory, for example, the read and write operations can be completed through the data transmission link between the main chip and the flash memory. However, environmental factors such as high temperature and high voltage of the main chip or flash memory may cause abnormal data transmission links, resulting in failure of read and write operations. Therefore, when the data transmission link is abnormal, it is necessary to restore the data transmission link as soon as possible to ensure normal read and write operations.
目前,主芯片可以根据来自闪存的电平信号,调整主芯片与闪存之间的数据传输链路的工作参数。倘若数据传输链路仍然异常,则主芯片还可以重建数据传输链路。具体地,主芯片向闪存发送读写请求,倘若在一个较长时间段(如,3秒、5秒)内,主芯片没有收到来自闪存的读写响应,则主芯片可以执行数据传输链路的重建流程。然而,由于数据传输链路的重建流程耗时较长,会导致数据读/写卡顿,从而导致用户体验差。At present, the main chip can adjust the working parameters of the data transmission link between the main chip and the flash memory according to the level signal from the flash memory. If the data transmission link is still abnormal, the main chip can also rebuild the data transmission link. Specifically, the main chip sends a read and write request to the flash memory. If the main chip does not receive a read and write response from the flash memory within a long period of time (eg, 3 seconds, 5 seconds), the main chip can execute the data transmission chain. Road reconstruction process. However, since the rebuilding process of the data transmission link takes a long time, data read/write freezes, resulting in poor user experience.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种链路重建方法及装置,能够解决在数据读写失败的情况下,主芯片在发出数据读/写请求至重新建链耗时较长的问题,避免数据读/写卡顿,提高用户体验。The embodiments of the present application provide a link reconstruction method and device, which can solve the problem that when data read/write fails, the main chip takes a long time to send a data read/write request to rebuild the link, and avoid data read/write Caton, improve user experience.
为达到上述目的,本申请采用如下技术方案:To achieve the above object, the application adopts the following technical solutions:
第一方面,本申请提供一种链路重建方法,应用于电子设备的闪存,电子设备还包括主芯片。该方法包括:在闪存检测到第一数据传输链路处于异常状态情况下,闪存调整第一参数。其中,第一参数为闪存在第一数据传输链路传输数据的工作参数,第一数据传输链路为闪存与主芯片之间的通信链路。闪存向主芯片发送第一电平信号,第一电平信号用于请求主芯片恢复第一数据传输链路。若闪存检测到第一数据传输链路恢复失败,则向主芯片发送第二电平信号。其中,第二电平信号的持续时长大于第一电平信号的持续时长。闪存接收来自主芯片的建链命令。闪存根据建链命令,建立第二数据传输链路。In a first aspect, the present application provides a link reconstruction method, which is applied to a flash memory of an electronic device, and the electronic device further includes a main chip. The method includes: when the flash memory detects that the first data transmission link is in an abnormal state, the flash memory adjusts the first parameter. The first parameter is a working parameter for the flash memory to transmit data on the first data transmission link, and the first data transmission link is a communication link between the flash memory and the main chip. The flash memory sends a first level signal to the main chip, where the first level signal is used to request the main chip to restore the first data transmission link. If the flash memory detects that the recovery of the first data transmission link fails, it sends a second level signal to the main chip. Wherein, the duration of the second level signal is greater than the duration of the first level signal. The flash receives the link building command from the main chip. The flash memory establishes a second data transmission link according to the link establishment command.
基于第一方面提供的链路重建方法,在调整主芯片与闪存之间的第一数据传输链路失败的情况下,主芯片接收来自闪存的大于第一电平信号的持续时长的第二电平信号,第二电平信号用于指示第一数据传输链路出现异常。主芯片接收到第二电平信号后,立即向闪存发送建链命令,以便建立第二数据传输链路,无需等待更长的时间,可以大大减少数据链路出现异常时,重新建链需要花费的时间,以避免数据读/写卡顿,从而提高升用户体验。此外,闪存请求主芯片101重建第二数据传输链路的第二电平信号是平稳的信号(不跳变),即使第一数据传输链路异常,主芯片也可以精确 的检测到第二电平信号,可靠性高。Based on the link reconstruction method provided in the first aspect, in the case that the adjustment of the first data transmission link between the main chip and the flash memory fails, the main chip receives the second power from the flash memory that is longer than the duration of the first level signal. The second level signal is used to indicate that the first data transmission link is abnormal. After the main chip receives the second level signal, it immediately sends a link building command to the flash memory to establish a second data transmission link without waiting for a longer time, which can greatly reduce the cost of rebuilding the link when the data link is abnormal. time to avoid data read/write freezes, thereby improving user experience. In addition, the second level signal of the flash memory requesting the main chip 101 to rebuild the second data transmission link is a stable signal (without jumping), and even if the first data transmission link is abnormal, the main chip can accurately detect the second level signal. Flat signal, high reliability.
一种可能的设计方案中,第二电平信号的持续时长与第一电平信号的持续时长的差值可以大于或等于第一阈值。由于第二电平信号的持续时长与第一电平信号的持续时长的差值大于或等于第一阈值,使得主芯片可以准确地区分第一电平信号和第二电平信号,以便后续能够根据第一电平信号恢复第一数据传输链路,以及根据第二电平信号重新建立第二数据传输链路。In a possible design solution, the difference between the duration of the second level signal and the duration of the first level signal may be greater than or equal to the first threshold. Since the difference between the duration of the second-level signal and the duration of the first-level signal is greater than or equal to the first threshold, the main chip can accurately distinguish the first-level signal and the second-level signal, so that the subsequent The first data transmission link is restored according to the first level signal, and the second data transmission link is re-established according to the second level signal.
进一步地,第二电平信号的持续时长可以大于或等于第二阈值。其中,第二阈值大于第一电平信号的持续时长,以便区分第一电平信号和第二电平信号。Further, the duration of the second level signal may be greater than or equal to the second threshold. Wherein, the second threshold is greater than the duration of the first level signal, so as to distinguish the first level signal and the second level signal.
一种可能的设计方案中,在闪存调整第一参数之前,第一方面所述的方法还可以包括:在第一数据传输链路处于正常状态的情况下,闪存向主芯片发送第二电平信号的持续时长与第一电平信号的持续时长。由此,主芯片后续检测到电平信号时,可以将检测到的电平信号的时长与第一阈值和第二阈值比较,以便确定检测到的电平信号为第一电平信号或第二电平信号,以便后续能够根据第一电平信号恢复第一数据传输链路,以及根据第二电平信号重新建立第二数据传输链路。In a possible design solution, before the flash memory adjusts the first parameter, the method described in the first aspect may further include: when the first data transmission link is in a normal state, the flash memory sends the second level to the main chip. The duration of the signal is the same as the duration of the first level signal. Therefore, when the main chip subsequently detects the level signal, it can compare the duration of the detected level signal with the first threshold and the second threshold, so as to determine whether the detected level signal is the first level signal or the second level signal. level signal, so that the first data transmission link can be subsequently restored according to the first level signal, and the second data transmission link can be re-established according to the second level signal.
进一步地,在闪存向主芯片发送第二电平信号的持续时长与第一电平信号的持续时长之前,第一方面所述的方法还可以包括:闪存接收主芯片的数据读取请求。Further, before the flash memory sends the duration of the second level signal and the duration of the first level signal to the host chip, the method of the first aspect may further include: the flash memory receives a data read request from the host chip.
一种可能的设计方案中,闪存基于同一差分线发送第一电平信号和第二高电平信号。其中,差分线可以为连接闪存与主芯片的信号线。由于第一电平信号和第二高电平信号基于同一差分线传输,无需额外增加硬件设计,以节省成本。In a possible design solution, the flash memory sends the first level signal and the second high level signal based on the same differential line. The differential line may be a signal line connecting the flash memory and the main chip. Since the first-level signal and the second high-level signal are transmitted based on the same differential line, no additional hardware design is required to save costs.
第二方面,本申请还提供另一种链路重建方法,应用于电子设备的主芯片,电子设备还包括闪存。该方法包括:主芯片接收闪存输出的第一电平信号,第一电平信号用于请求主芯片恢复第一数据传输链路。主芯片恢复处于异常状态下的第一数据传输链路,其中,第一数据传输链路为闪存与主芯片之间的通信链路。若第一数据传输链路恢复失败,则主芯片接收闪存传输的第二高电平信号。其中,第二高电平信号的持续时长大于设定阈值,设定阈值大于或等于第一电平信号的持续时长。根据第二电平信号建立第二数据传输链路。其中,建立第二数据传输链路包括向闪存发送建链命令。In a second aspect, the present application further provides another link reconstruction method, which is applied to a main chip of an electronic device, and the electronic device further includes a flash memory. The method includes: the main chip receives a first level signal output by the flash memory, where the first level signal is used to request the main chip to restore the first data transmission link. The main chip restores the first data transmission link in an abnormal state, wherein the first data transmission link is a communication link between the flash memory and the main chip. If the recovery of the first data transmission link fails, the main chip receives the second high-level signal transmitted by the flash memory. Wherein, the duration of the second high-level signal is greater than the set threshold, and the set threshold is greater than or equal to the duration of the first-level signal. A second data transmission link is established according to the second level signal. Wherein, establishing the second data transmission link includes sending a link establishment command to the flash memory.
一种可能的设计方案中,第二电平信号的持续时长与第一电平信号的持续时长的差值大于或等于第一阈值。In a possible design solution, the difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to the first threshold.
进一步地,第二电平信号的持续时长大于或等于第二阈值。其中,第二阈值大于第一电平信号的持续时长。Further, the duration of the second level signal is greater than or equal to the second threshold. Wherein, the second threshold is greater than the duration of the first level signal.
一种可能的设计方案中,在主芯片接收闪存输出的第一电平信号之前,第二方面提供的方法还可以包括:在第一数据传输链路处于正常状态的情况下,主芯片接收闪存发送的第二电平信号的持续时长与第一电平信号的持续时长。In a possible design solution, before the main chip receives the first level signal output by the flash memory, the method provided in the second aspect may further include: when the first data transmission link is in a normal state, the main chip receives the flash memory The duration of the sent second level signal is the same as the duration of the first level signal.
进一步地,在主芯片接收闪存发送的第二电平信号的持续时长与第一电平信号的持续时长之前,第二方面提供的方法还可以包括:主芯片向闪存发送数据读取请求。Further, before the main chip receives the duration of the second level signal and the duration of the first level signal sent by the flash memory, the method provided in the second aspect may further include: the main chip sends a data read request to the flash memory.
一种可能的设计方案中,主芯片基于同一差分线接收第一电平信号和第二高电平信号。其中,差分线为连接闪存与主芯片的信号线。In a possible design solution, the main chip receives the first level signal and the second high level signal based on the same differential line. The differential line is a signal line connecting the flash memory and the main chip.
第三方面,本申请还提供一种链路重建装置,应用于电子设备的闪存,电子设备 还包括主芯片。该装置包括处理单元和收发单元。其中,处理单元,用于检测到第一数据传输链路处于异常状态情况下,调整第一参数。其中,第一参数为闪存在第一数据传输链路传输数据的工作参数,第一数据传输链路为闪存与主芯片之间的通信链路。收发单元,用于向主芯片发送第一电平信号,第一电平信号用于请求主芯片恢复第一数据传输链路。处理单元,还用于若检测到第一数据传输链路恢复失败,则控制发送单元向主芯片发送第二电平信号,其中,第二电平信号的持续时长大于第一电平信号的持续时长。收发单元,还用于接收来自主芯片的建链命令。处理单元,还用于根据建链命令,建立第二数据传输链路。In a third aspect, the present application further provides a link reconstruction apparatus, which is applied to a flash memory of an electronic device, and the electronic device further includes a main chip. The device includes a processing unit and a transceiver unit. The processing unit is configured to adjust the first parameter when detecting that the first data transmission link is in an abnormal state. The first parameter is a working parameter for the flash memory to transmit data on the first data transmission link, and the first data transmission link is a communication link between the flash memory and the main chip. The transceiver unit is used for sending a first level signal to the main chip, and the first level signal is used for requesting the main chip to restore the first data transmission link. The processing unit is further configured to control the sending unit to send a second level signal to the main chip if it is detected that the recovery of the first data transmission link fails, wherein the duration of the second level signal is longer than the duration of the first level signal duration. The transceiver unit is also used to receive a link establishment command from the main chip. The processing unit is further configured to establish a second data transmission link according to the link establishment command.
一种可能的设计方案中,第二电平信号的持续时长与第一电平信号的持续时长的差值大于或等于第一阈值。In a possible design solution, the difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to the first threshold.
一种可能的设计方案中,第二电平信号的持续时长大于或等于第二阈值。其中,第二阈值大于第一电平信号的持续时长。In a possible design solution, the duration of the second level signal is greater than or equal to the second threshold. Wherein, the second threshold is greater than the duration of the first level signal.
一种可能的设计方案中,收发单元,还可以用于在第一数据传输链路处于正常状态的情况下,向主芯片发送第二电平信号的持续时长与第一电平信号的持续时长。In a possible design solution, the transceiver unit can also be used to send the duration of the second level signal and the duration of the first level signal to the main chip when the first data transmission link is in a normal state. .
收发单元,还可以用于接收主芯片的数据读取请求。The transceiver unit can also be used to receive a data read request from the main chip.
一种可能的设计方案中,收发单元,还可以用于基于同一差分线发送第一电平信号和第二高电平信号。其中,差分线为连接闪存与主芯片的信号线。In a possible design solution, the transceiver unit may also be used to send the first level signal and the second high level signal based on the same differential line. The differential line is a signal line connecting the flash memory and the main chip.
可选地,第三方面提供的收发单元、处理单元可以集成于一个模块,如处理模块,也可以分别单独独立设置,例如,收发单元包括接收模块和发送模块。其中,发送模块用于执行实现第三方面所述的链路重建装置的发送功能,接收模块用于执行实现第三方面所述的链路重建装置的接收功能。Optionally, the transceiver unit and the processing unit provided in the third aspect may be integrated into one module, such as a processing module, or may be independently set up respectively. For example, the transceiver unit includes a receiving module and a sending module. Wherein, the sending module is configured to implement the sending function of the link re-establishment apparatus described in the third aspect, and the receiving module is configured to execute the receiving function of the link re-establishment apparatus described in the third aspect.
可选地,第三方面提供的装置还可以包括存储模块。该存储模块存储有程序或指令。当处理模块执行该程序或指令时,使得该装置可以执行第三方面提供的链路重建方法。Optionally, the apparatus provided in the third aspect may further include a storage module. The storage module stores programs or instructions. When the processing module executes the program or the instruction, the apparatus can execute the link reestablishment method provided by the third aspect.
需要说明的是,第三方面所述的链路重建装置可以是终端设备或网络设备,也可以是可设置于终端设备或网络设备中的芯片(系统)或其他部件或组件,还可以是包含终端设备或网络设备的装置,本申请对此不做限定。It should be noted that the link reconstruction apparatus described in the third aspect may be terminal equipment or network equipment, or may be a chip (system) or other components or components that can be set in the terminal equipment or network equipment, or may include A device of a terminal device or a network device, which is not limited in this application.
第四方面,本申请还提供一种链路重建装置,应用于电子设备的主芯片,电子设备还包括闪存。该装置包括收发单元和处理单元。其中,收发单元,用于接收闪存输出的第一电平信号,第一电平信号用于请求主芯片恢复第一数据传输链路。处理单元,用于恢复处于异常状态下的第一数据传输链路。其中,第一数据传输链路为闪存与主芯片之间的通信链路。收发单元,还用于若第一数据传输链路恢复失败,则接收闪存传输的第二高电平信号。其中,第二高电平信号的持续时长大于设定阈值,设定阈值大于或等于第一电平信号的持续时长。处理单元,还用于根据第二电平信号建立第二数据传输链路。其中,建立第二数据传输链路包括向闪存发送建链命令。In a fourth aspect, the present application further provides a link reconstruction apparatus, which is applied to a main chip of an electronic device, and the electronic device further includes a flash memory. The device includes a transceiver unit and a processing unit. The transceiver unit is used to receive the first level signal output by the flash memory, and the first level signal is used to request the main chip to restore the first data transmission link. The processing unit is configured to restore the first data transmission link in an abnormal state. The first data transmission link is a communication link between the flash memory and the main chip. The transceiver unit is further configured to receive a second high-level signal transmitted by the flash memory if the first data transmission link fails to recover. Wherein, the duration of the second high-level signal is greater than the set threshold, and the set threshold is greater than or equal to the duration of the first-level signal. The processing unit is further configured to establish a second data transmission link according to the second level signal. Wherein, establishing the second data transmission link includes sending a link establishment command to the flash memory.
一种可能的设计方案中,第二电平信号的持续时长与第一电平信号的持续时长的差值大于或等于第一阈值。In a possible design solution, the difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to the first threshold.
一种可能的设计方案中,第二电平信号的持续时长大于或等于第二阈值。其中,第二阈值大于第一电平信号的持续时长。In a possible design solution, the duration of the second level signal is greater than or equal to the second threshold. Wherein, the second threshold is greater than the duration of the first level signal.
一种可能的设计方案中,收发单元,还可以用于在第一数据传输链路处于正常状态的情况下,接收闪存发送的第二电平信号的持续时长与第一电平信号的持续时长。In a possible design solution, the transceiver unit can also be used to receive the duration of the second level signal and the duration of the first level signal sent by the flash memory when the first data transmission link is in a normal state. .
进一步地,收发单元,还可以用于主芯片向闪存发送数据读取请求。Further, the transceiver unit can also be used for the main chip to send a data read request to the flash memory.
一种可能的设计方案中,收发单元,还可以用于基于同一差分线接收第一电平信号和第二高电平信号。其中,差分线为连接闪存与主芯片的信号线。In a possible design solution, the transceiver unit may also be used to receive the first level signal and the second high level signal based on the same differential line. The differential line is a signal line connecting the flash memory and the main chip.
可选地,第四方面提供的收发单元、处理单元可以集成于一个模块,如处理模块,也可以分别单独独立设置,例如,收发单元可以包括接收模块和发送模块。其中,发送模块用于执行实现第四方面所述的链路重建装置的发送功能,接收模块用于执行实现第四方面所述的链路重建装置的接收功能。Optionally, the transceiver unit and the processing unit provided in the fourth aspect may be integrated into one module, such as a processing module, or may be independently set up respectively. For example, the transceiver unit may include a receiving module and a sending module. Wherein, the sending module is configured to implement the sending function of the link re-establishment apparatus described in the fourth aspect, and the receiving module is configured to execute the receiving function of the link re-establishment apparatus described in the fourth aspect.
可选地,第四方面提供的装置还可以包括存储模块。该存储模块存储有程序或指令。当处理模块执行该程序或指令时,使得该装置可以执行第四方面提供的链路重建方法。Optionally, the apparatus provided in the fourth aspect may further include a storage module. The storage module stores programs or instructions. When the processing module executes the program or the instruction, the apparatus can execute the link re-establishment method provided by the fourth aspect.
需要说明的是,第四方面所述的链路重建装置可以是终端设备或网络设备,也可以是可设置于终端设备或网络设备中的芯片(系统)或其他部件或组件,还可以是包含终端设备或网络设备的装置,本申请对此不做限定。It should be noted that the link reconstruction apparatus described in the fourth aspect may be terminal equipment or network equipment, or may be a chip (system) or other components or components that can be set in the terminal equipment or network equipment, or may include A device of a terminal device or a network device, which is not limited in this application.
第五方面,本申请还提供一种电子设备,包括闪存和主芯片,闪存与主芯片通信连接,其中,闪存用于执行上述第一方面提供的链路重建方法,主芯片用于执行上述第二方面提供的链路重建方法。In a fifth aspect, the present application further provides an electronic device, including a flash memory and a main chip, the flash memory is communicatively connected to the main chip, wherein the flash memory is used to execute the link reconstruction method provided in the first aspect, and the main chip is used to execute the above-mentioned first method. The link reconstruction method provided in the second aspect.
第六方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质包括计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行如本申请实施例第一方面或第二方面的链路重建方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program or an instruction, and when the computer program or instruction is run on a computer, the computer executes the first aspect of the embodiment of the present application. or the link reconstruction method of the second aspect.
第七方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括:计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行如本申请实施例第一方面或第二方面的链路重建方法。In a seventh aspect, an embodiment of the present application provides a computer program product, the computer program product includes: a computer program or an instruction, when the computer program or instruction is run on a computer, the computer is made to execute the first aspect or the second aspect of the embodiment of the present application. Aspects of the link re-establishment method.
可以理解地,上述第二方面提供的链路重建方法、第三方面提供的链路重建装置、第四方面提供的链路重建装置、第五方面提供的电子设备、第六方面提供的计算机可读存储介质以及第七方面提供的计算机程序产品,均与第一方面所提供的链路重建方法的技术特征相同或相应,因此,其所能达到的有益效果可参考第一方面所提供的方法的有益效果,此处不再赘述。It can be understood that the link re-establishment method provided in the second aspect, the link re-establishment apparatus provided in the third aspect, the link re-establishment apparatus provided in the fourth aspect, the electronic device provided in the fifth aspect, and the computer provided in the sixth aspect can be The read storage medium and the computer program product provided by the seventh aspect are the same as or corresponding to the technical features of the link reconstruction method provided by the first aspect. Therefore, the beneficial effects that can be achieved can refer to the method provided by the first aspect. The beneficial effects will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的手机的硬件结构示意图;1 is a schematic diagram of the hardware structure of a mobile phone provided by an embodiment of the present application;
图2为本申请实施例提供的链路重建方法的交互流程图;FIG. 2 is an interactive flowchart of a link re-establishment method provided by an embodiment of the present application;
图3为本申请实施例提供的闪存确定第一数据传输链路处于异常状态的交互流程图;3 is an interactive flowchart for determining that a first data transmission link is in an abnormal state by a flash memory provided by an embodiment of the present application;
图4为本申请实施例提供的主芯片与闪存的连接框图;FIG. 4 is a connection block diagram of a main chip and a flash memory provided by an embodiment of the present application;
图5为本申请实施例提供的恢复第一数据传输链路的交互流程图;FIG. 5 is an interactive flowchart of restoring a first data transmission link provided by an embodiment of the present application;
图6为本申请实施例提供的链路重建装置的软件结构示意图;6 is a schematic diagram of a software structure of a link re-establishment apparatus provided by an embodiment of the present application;
图7为本申请实施例提供的电子设备的结构组成示意图。FIG. 7 is a schematic structural composition diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面介绍本申请实施例所涉及的技术术语。The following describes the technical terms involved in the embodiments of the present application.
通用闪存存储:通用闪存存储(universal flash storage,UFS)是基于串行数据传输技术打造的允许在操作中被多次擦写的存储器,其内部存储单元与主芯片之间虽然只有两个数据通道,但实际数据传输速率高。UFS支持的是全双工模式,所有数据通道均可以同时执行读写操作,在数据读写的响应速度也非常高。Universal flash storage: Universal flash storage (UFS) is a memory based on serial data transmission technology that allows multiple erasing during operation. Although there are only two data channels between its internal storage unit and the main chip , but the actual data transfer rate is high. UFS supports full-duplex mode, all data channels can perform read and write operations at the same time, and the response speed of data read and write is also very high.
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
本申请实施例提供的一种链路重建方法可应用于电子设备,该电子设备可以为手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等,本申请实施例对此不做任何限制。The link reconstruction method provided by the embodiment of the present application can be applied to electronic equipment, and the electronic equipment may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, Personal digital assistants (personal digital assistants, PDAs), wearable electronic devices, virtual reality devices, etc., are not limited in this embodiment of the present application.
图1为本申请实施例提供的手机100的硬件结构示意图。示例性的,如图1所示,本申请实施例中的电子设备可以为手机100。下面以手机100为例对实施例进行具体说明。应该理解的是,图示手机100仅是上述电子设备的一个范例,并且手机100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。FIG. 1 is a schematic diagram of a hardware structure of a mobile phone 100 according to an embodiment of the present application. Exemplarily, as shown in FIG. 1 , the electronic device in this embodiment of the present application may be a mobile phone 100 . The embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated cell phone 100 is only one example of the electronic device described above, and that cell phone 100 may have more or fewer components than those shown, two or more components may be combined, or Different component configurations are possible.
如图1所示,手机100包括主芯片101、内部存储器121、外部存储器接口122、天线A、移动通信模块131、天线B、无线通信模块132、音频模块140、扬声器140A、受话器140B、麦克风140C、耳机接口140D、显示屏151、用户标识模块(subscriber identification module,SIM)卡接口152、摄像头153、按键154、传感器模块160、通用串行总线(universal serial bus,USB)接口170、充电管理模块180、电源管理模块181和电池182。在另一些实施例中,手机100还可以包括马达、指示器等。As shown in FIG. 1 , the mobile phone 100 includes a main chip 101, an internal memory 121, an external memory interface 122, an antenna A, a mobile communication module 131, an antenna B, a wireless communication module 132, an audio module 140, a speaker 140A, a receiver 140B, and a microphone 140C , headphone jack 140D, display screen 151, subscriber identification module (SIM) card interface 152, camera 153, buttons 154, sensor module 160, universal serial bus (universal serial bus, USB) interface 170, charging management module 180 , a power management module 181 and a battery 182 . In other embodiments, the cell phone 100 may also include a motor, an indicator, and the like.
其中,主芯片101可以包括一个或多个处理单元。例如,主芯片101可以包括应用处理器(application processor,AP)、调制解调器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。需要说明的是,不同的处理单元可以是独立的器件,也可以集成在一个或多个独立的处理器,可以与手机100中的其它模块集成在同一个器件中。以调制解调器为例,调制解调器可以为独立于主芯片101的一个处理单元,也可以与其它处理单元(例如AP、ISP、GPU等)集成在同一个器件中,还可以将部分或全部功能与移动通信模块131集成在同一个器件中。The main chip 101 may include one or more processing units. For example, the main chip 101 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, Digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. It should be noted that different processing units may be independent devices, or may be integrated into one or more independent processors, and may be integrated with other modules in the mobile phone 100 in the same device. Taking the modem as an example, the modem can be a processing unit independent of the main chip 101, or can be integrated with other processing units (such as AP, ISP, GPU, etc.) in the same device, and can also integrate some or all functions with mobile communication Module 131 is integrated in the same device.
内部存储器121可以用于存储数据和/或至少一个计算机程序,该至少一个计算机程序包括指令。具体的,内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可以存储至少一个计算机程序。计算机程序可以包括应用程序(比如图库、联系人等)、操作系统(比如Android操作系统、或者IOS操作系统等)、或者其它程序等。存储数据区可存储手机100使用过程中所创建的数据、接收到的来自其它设备(例如其它手机100、网络设备、服务器等)数据、或在出厂之前预先存储的数据等中的至少一个。例如,内部存储器121中存储的数据可以为图像、文件、或 标识等信息中的至少一个。 Internal memory 121 may be used to store data and/or at least one computer program including instructions. Specifically, the internal memory 121 may include a program storage area and a data storage area. Wherein, the program storage area can store at least one computer program. The computer program may include application programs (such as gallery, contacts, etc.), operating systems (such as Android operating system, or IOS operating system, etc.), or other programs, and the like. The storage data area can store at least one of data created during use of the mobile phone 100, data received from other devices (eg, other mobile phones 100, network devices, servers, etc.), or data pre-stored before leaving the factory. For example, the data stored in the internal memory 121 may be at least one of information such as images, files, or logos.
在一些实施例中,内部存储器121可以包括高速随机存取存储器和/或非易失性存储器。例如,内部存储器121包括一个或多个磁盘存储器件、闪存(flash)、或者通用闪存存储器(universal flash storage,UFS)等。In some embodiments, the internal memory 121 may include high-speed random access memory and/or non-volatile memory. For example, the internal memory 121 includes one or more magnetic disk storage devices, flash memory (flash), or universal flash storage (UFS), or the like.
其中,主芯片101可以通过调用存储在内部存储器121中存储的一个或多个计算机程序和/或数据,从而使得手机100实现一个或多个功能,满足用户的需求。例如,主芯片101可以通过调用存储在内部存储器121存储的指令和数据,使得电子设备执行本申请实施例中所提供的链路重建的方法。Wherein, the main chip 101 can make the mobile phone 100 realize one or more functions by calling one or more computer programs and/or data stored in the internal memory 121 to meet the needs of the user. For example, the main chip 101 may cause the electronic device to execute the link reconstruction method provided in the embodiments of the present application by invoking the instructions and data stored in the internal memory 121 .
外部存储器接口122可以用于连接外部存储卡(例如,micro SD卡),实现扩展手机100的存储能力。外部存储卡通过外部存储器接口122与主芯片101通信,实现数据存储功能。例如将图像、音乐、视频等文件保存在外部存储卡中。The external memory interface 122 can be used to connect an external memory card (eg, a micro SD card) to expand the storage capacity of the mobile phone 100 . The external memory card communicates with the main chip 101 through the external memory interface 122 to realize the data storage function. For example, save files such as images, music, videos, etc. in an external memory card.
在一些实施例中,主芯片101中还可以设置缓存区,用于保存主芯片101需要循环使用的指令和/或数据,如果主芯片101需要再次使用该指令或数据,可从该缓存区中直接调用。从而有助于避免重复存取,降低主芯片101的等待时间,从而有助于提高系统的效率。例如,缓存区可以通过高速缓冲存储器实现。In some embodiments, a cache area may also be set in the main chip 101 to store the instructions and/or data that the main chip 101 needs to use cyclically. call directly. This helps to avoid repeated accesses, reduces the waiting time of the main chip 101, and thus helps to improve the efficiency of the system. For example, the cache area may be implemented by a cache memory.
天线A和天线B用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线A复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna A and Antenna B are used to transmit and receive electromagnetic wave signals. Each antenna in handset 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna A can be multiplexed into the diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块131可以用于根据手机100支持的移动通信技术(例如2G、3G、4G或5G等)实现手机100与网络设备的通信。示例的,手机100支持的移动通信技术可以包括GSM、GPRS、CDMA、WCDMA、TD-SCDMA、LTE、或NR等中的至少一个。例如,手机100支持GSM,手机100当通过GSM通信系统中的BTS所提供的小区接入网络后,可以在接入的小区的网络信号强度不低于判决门限的情况下,也就是在手机100处于驻网的状态下,通过移动通信模块131实现手机100与BTS的通信。示例的,移动通信模块131可以对调制解调器调制后的信号放大后,经由天线A发送给网络设备;移动通信模块131也可以通过天线A接收网络设备发送的信号、并放大,然后发送给调制解调器,由调制解调器将接收到的信号解调为低频基带信号,然后在进行其它相应的处理。在一些实施例中,移动通信模块131可以包括滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。The mobile communication module 131 may be used to implement the communication between the mobile phone 100 and the network device according to the mobile communication technology (eg, 2G, 3G, 4G or 5G, etc.) supported by the mobile phone 100 . For example, the mobile communication technology supported by the mobile phone 100 may include at least one of GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, or NR. For example, the mobile phone 100 supports GSM. After the mobile phone 100 accesses the network through the cell provided by the BTS in the GSM communication system, the network signal strength of the accessed cell can be not lower than the judgment threshold, that is, the mobile phone 100 In the state of being on the network, the communication between the mobile phone 100 and the BTS is realized through the mobile communication module 131 . For example, the mobile communication module 131 can amplify the modulated signal of the modem and send it to the network device via the antenna A; the mobile communication module 131 can also receive the signal sent by the network device through the antenna A, amplify it, and then send it to the modem, where the The modem demodulates the received signal into a low-frequency baseband signal, and then performs other corresponding processing. In some embodiments, the mobile communication module 131 may include a filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
无线通信模块132可以提供应用在手机100上的包括无线接入网(wireless local area networks,WLAN)(如无线保真(wireless-fidelity,Wi-Fi)网络)、蓝牙(Bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS)、全球导航卫星系统(global navigation satellite system,GLONASS)、北斗卫星导航系统(beidou navigation satellite system,BDS)、准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)等中的至少 一个。示例的,无线通信模块132可以是集成至少一个通信处理模块的一个或多个器件。其中,无线通信模块132可以根据自身支持的无线通信技术(例如Wi-Fi、蓝牙、FM或者NFC等)通过天线B实现与相应的设备通信的。The wireless communication module 132 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless-fidelity (Wi-Fi) networks), Bluetooth (BT), global Solutions for wireless communication such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi - at least one of zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS), etc. For example, the wireless communication module 132 may be one or more devices integrating at least one communication processing module. The wireless communication module 132 can communicate with the corresponding device through the antenna B according to the wireless communication technology (eg, Wi-Fi, Bluetooth, FM, NFC, etc.) supported by itself.
手机100可以通过音频模块140、扬声器140A、受话器140B、麦克风140C、耳机接口140D以及AP等实现音频功能。例如音乐播放、录音等。The mobile phone 100 can implement audio functions through an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, an earphone interface 140D, an AP, and the like. Such as music playback, recording, etc.
手机100可以通过GPU、显示屏151、以及AP等实现显示功能。显示屏151可以用于显示图像、视频等。显示屏151可以包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏151,N为大于1的正整数。The mobile phone 100 may implement a display function through the GPU, the display screen 151, and the AP. The display screen 151 may be used to display images, videos, and the like. The display screen 151 may include a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode, or an active matrix organic light emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the mobile phone 100 may include one or N display screens 151 , where N is a positive integer greater than one.
按键154可以包括开机键、音量键等。按键154可以是机械按键,也可以是虚拟按钮或虚拟选项等。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。例如,手机100可以响应于选中用于指示同意参与“用户体验改进计划”的虚拟选项,统计或采集用户使用手机100的一些信息,以实现为用户提供更为个性化的服务,从而提高用户体验。The keys 154 may include a power key, a volume key, and the like. The keys 154 may be mechanical keys, virtual buttons, virtual options, or the like. The cell phone 100 can receive key input and generate key signal input related to user settings and function control of the cell phone 100 . For example, the mobile phone 100 may, in response to selecting the virtual option for indicating consent to participate in the "User Experience Improvement Program", collect statistics or collect some information about the user's use of the mobile phone 100, so as to provide the user with more personalized services, thereby improving the user experience .
传感器模块160可以包括一个或多个传感器。例如,传感器模块160包括加速度传感器160A、触摸传感器160B、指纹传感器160C等。在一些实施例中,传感器模块160还可以包括压力传感器、陀螺仪传感器、环境传感器、距离传感器、接近光传感器、骨传导传感器等。 Sensor module 160 may include one or more sensors. For example, the sensor module 160 includes an acceleration sensor 160A, a touch sensor 160B, a fingerprint sensor 160C, and the like. In some embodiments, the sensor module 160 may further include a pressure sensor, a gyroscope sensor, an environmental sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, and the like.
加速度传感器(acceleration sensor,ACC sensor)160A可采集手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。此外,加速度传感器160A还可以用于识别手机100的姿态,应用于横竖屏切换、计步器等应用。在一些实施例中,加速度传感器160A可以通过微控制单元(micro controller unit,MCU)实现与主芯片101连接,从而有助于节省手机100的功耗。例如,加速度传感器160A可以通过MCU与AP、调制解调器连接。在一些实施例中,MCU可以为通用智能传感集线器(sensor hub)。The acceleration sensor (ACC sensor) 160A can collect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. In addition, the acceleration sensor 160A can also be used for recognizing the posture of the mobile phone 100, and is applied to applications such as switching between horizontal and vertical screens, and a pedometer. In some embodiments, the acceleration sensor 160A can be connected to the main chip 101 through a microcontroller unit (MCU), thereby helping to save the power consumption of the mobile phone 100 . For example, the acceleration sensor 160A can be connected to the AP and the modem through the MCU. In some embodiments, the MCU may be a general-purpose smart sensor hub.
触摸传感器160B,也可称为“触控面板”。触摸传感器160B可以设置于显示屏151,由触摸传感器160B与显示屏151组成触摸屏,也称“触控屏”。触摸传感器160B用于检测作用于其上或附近的触摸操作。触摸传感器160B可以将检测到的触摸操作传递给AP,以确定触摸事件类型。然后,手机100根据确定的触摸事件类型,通过显示屏151提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感160B也可以设置于手机100的表面,与显示屏151所处的位置不同。The touch sensor 160B may also be referred to as a "touch panel". The touch sensor 160B may be disposed on the display screen 151 , and the touch sensor 160B and the display screen 151 form a touch screen, also called a “touch screen”. The touch sensor 160B is used to detect a touch operation on or near it. The touch sensor 160B may communicate the detected touch operation to the AP to determine the touch event type. Then, the mobile phone 100 provides visual output related to the touch operation through the display screen 151 according to the determined touch event type. In other embodiments, the touch sensor 160B may also be disposed on the surface of the mobile phone 100 , which is different from the position where the display screen 151 is located.
指纹传感器160C用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁、指纹拍照、指纹接听来电等。The fingerprint sensor 160C is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
在另一些实施例中,主芯片101还可以包括一个或多个接口。例如,接口可以为SIM卡接口152。又例如,接口还可以为USB接口170。再例如,接口还可以为集成 电路(inter-integrated circuit,I2C)接口、集成电路音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口等。可以理解的是,本申请实施例提供的主芯片101可以通过接口连接手机100的不同模块,从而使得手机100能够实现不同的功能。例如收发信息等。需要说明的是,本申请实施例对手机100中接口的连接方式不作限定。In other embodiments, the main chip 101 may further include one or more interfaces. For example, the interface may be the SIM card interface 152 . For another example, the interface may also be the USB interface 170 . For another example, the interface may also be an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (general-purpose input/output, GPIO) interface, etc. It can be understood that, the main chip 101 provided in this embodiment of the present application can be connected to different modules of the mobile phone 100 through an interface, so that the mobile phone 100 can implement different functions. such as sending and receiving information. It should be noted that, the embodiment of the present application does not limit the connection manner of the interface in the mobile phone 100 .
SIM卡接口152用于连接SIM卡。SIM卡可以通过插入SIM卡接口152,或从SIM卡接口152拔出,实现和手机100的接触和分离。手机100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口152可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口152可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口152也可以兼容不同类型的SIM卡。在一些实施例中,SIM卡接口152也可以兼容外部存储卡。手机100通过SIM卡实现通话以及数据通信等功能。在一些实施例中,手机100还可以采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机100中,不能和手机100分离。The SIM card interface 152 is used to connect a SIM card. The SIM card can be contacted and separated from the mobile phone 100 by inserting into the SIM card interface 152 or pulling out from the SIM card interface 152 . The mobile phone 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 152 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 152 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 152 may also be compatible with different types of SIM cards. In some embodiments, the SIM card interface 152 may also be compatible with external memory cards. The mobile phone 100 implements functions such as calling and data communication through the SIM card. In some embodiments, the mobile phone 100 may also adopt an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100 .
USB接口170是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口170可以用于连接充电器为手机100充电,也可以用于手机100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 170 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 170 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机100的结构限定。在本申请另一些实施例中,手机100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that, the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块180用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块181用于连接电池182、充电管理模块180与主芯片101。电源管理模块181接收电池182和/或充电管理模块180的输入,为主芯片101等模块供电。在一些实施例中,电源管理模块181还可以用于监测电池容量、电池循环次数、电池健康状态(漏电、阻抗)等参数。The charging management module 180 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. The power management module 181 is used for connecting the battery 182 , the charging management module 180 and the main chip 101 . The power management module 181 receives input from the battery 182 and/or the charging management module 180 to supply power to modules such as the main chip 101 . In some embodiments, the power management module 181 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
应理解,图1所示的手机100的结构仅是一个示例。本申请实施例的手机100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the structure of the mobile phone 100 shown in FIG. 1 is only an example. The mobile phone 100 of the embodiment of the present application may have more or less components than those shown in the figures, may combine two or more components, or may have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
示例性地,图2为本申请实施例提供的链路重建方法的流程示意图。该链路重建方法可以应用于上述手机100中的闪存103和主芯片101。该方法包括:Exemplarily, FIG. 2 is a schematic flowchart of a link reestablishment method provided by an embodiment of the present application. The link reconstruction method can be applied to the flash memory 103 and the main chip 101 in the above-mentioned mobile phone 100 . The method includes:
S201,主芯片101向闪存103发送数据读/写请求,闪存103接收来自主芯片101的数据读/写请求。S201 , the main chip 101 sends a data read/write request to the flash memory 103 , and the flash memory 103 receives the data read/write request from the main chip 101 .
示例性地,主芯片101可以包括软件层以及物理层。其中,软件层可以包括电子邮件、即时聊天应用、购物应用、游戏应用等中的至少一个应用程序,在此不做限定。具体地,用户可以通过在手机100的主页面,打开即时聊天应用。若即时聊天应用接收到一个图片信息,主芯片101的软件层可以将图片信息写入双倍数据率同步动 态随机存取存储器(double data rate synchronous dynamic random access memory,DDR),并通知主芯片101的物理层向闪存103发送数据写入请求,数据写入请求用于指示写入图片信息。闪存103接收来自主芯片101的物理层的数据写入请求。Exemplarily, the main chip 101 may include a software layer and a physical layer. Wherein, the software layer may include at least one application program among email, instant chat application, shopping application, game application, etc., which is not limited herein. Specifically, the user can open the instant chat application on the home page of the mobile phone 100 . If the instant chat application receives a picture message, the software layer of the main chip 101 can write the picture information into the double data rate synchronous dynamic random access memory (DDR), and notify the main chip 101 The physical layer of the device sends a data write request to the flash memory 103, and the data write request is used to instruct the writing of picture information. The flash memory 103 receives a data write request from the physical layer of the host chip 101 .
需要说明的是,图片信息仅为示例,主芯片101与闪存103之间读/写的数据也可以是其他类型的数据,如视频信息、文字信息等,本申请实施例对此不作具体限定。It should be noted that the picture information is only an example, and the data read/written between the main chip 101 and the flash memory 103 may also be other types of data, such as video information, text information, etc., which are not specifically limited in this embodiment of the present application.
S202,闪存103检测到第一数据传输链路异常。S202, the flash memory 103 detects that the first data transmission link is abnormal.
其中,第一数据传输链路可以为闪存103与主芯片101之间的通信链路。第一数据传输链路包括第一传输通道和第二传输通道,第一传输通道为闪存103向主芯片101发送数据的传输通道,第二传输通道为主芯片101向闪存103发送数据的传输通道。The first data transmission link may be a communication link between the flash memory 103 and the main chip 101 . The first data transmission link includes a first transmission channel and a second transmission channel. The first transmission channel is a transmission channel through which the flash memory 103 sends data to the main chip 101 , and the second transmission channel is a transmission channel through which the main chip 101 sends data to the flash memory 103 . .
示例性地,第一数据传输链路异常是指:第一传输通道无法完成数据传输和/或第二传输通道无法完成数据传输,或者,第一传输通道和/或第二传输通道的数据传输速率不能满足业务需求。Exemplarily, the abnormality of the first data transmission link refers to: the first transmission channel cannot complete the data transmission and/or the second transmission channel cannot complete the data transmission, or, the data transmission of the first transmission channel and/or the second transmission channel The rate does not meet the business requirements.
具体地,闪存103可以在接收到数据写入请求后,检测第一数据传输链路是否异常。图3为本申请实施例提供的闪存确定第一数据传输链路处于异常状态的交互流程图。示例性地,请参考图3,主芯片101向闪存103发送数据读请求,闪存103向主芯片反馈接收到数据读请求的确认包,随后,闪存103向主芯片101发送数据包,若闪存103没有接收到来自主芯片101的接收到数据包的确认包,则闪存103可以确定第一数据传输链路异常。其中,数据包可以包括上述的图片信息。Specifically, the flash memory 103 may detect whether the first data transmission link is abnormal after receiving the data write request. FIG. 3 is an interactive flowchart for determining that a first data transmission link is in an abnormal state by a flash memory provided by an embodiment of the present application. 3, the main chip 101 sends a data read request to the flash memory 103, the flash memory 103 feeds back to the main chip an acknowledgement packet of receiving the data read request, and then the flash memory 103 sends a data packet to the main chip 101, if the flash memory 103 The flash memory 103 may determine that the first data transmission link is abnormal if the acknowledgement packet of the received data packet is not received from the main chip 101 . Wherein, the data packet may include the above-mentioned picture information.
需要说明的是,若闪存103检测到第一数据传输链路正常,则只需要执行正常的读写操作即可,不需要执行下述S203-S208,具体实现可以参考现有实现方式,本申请实施例不再赘述。It should be noted that if the flash memory 103 detects that the first data transmission link is normal, it only needs to perform the normal read and write operations, and does not need to perform the following S203-S208. For the specific implementation, please refer to the existing implementation. The embodiments are not repeated here.
S203,闪存103调整第一参数。S203, the flash memory 103 adjusts the first parameter.
其中,第一参数为闪存103在第一数据传输链路传输数据的工作参数,例如,将闪存103在第一传输通道的高数据传输速率调整为低数据传输速率。第一数据传输链路为闪存103与主芯片101之间的通信链路。The first parameter is a working parameter for the flash memory 103 to transmit data in the first data transmission link. For example, the high data transmission rate of the flash memory 103 in the first transmission channel is adjusted to a low data transmission rate. The first data transmission link is the communication link between the flash memory 103 and the main chip 101 .
S204,闪存103向主芯片101发送第一电平信号,主芯片101接收来自闪存103的第一电平信号。S204 , the flash memory 103 sends the first level signal to the main chip 101 , and the main chip 101 receives the first level signal from the flash memory 103 .
其中,第一电平信号用于请求主芯片101恢复第一数据传输链路。第一电平信号的持续时长为主芯片101与闪存103的通信协议规定的,如2ms、1.5ms等,在此不做限定。其中,第一电平信号可以为高电平信号,也可以为低电平信号,在此也不做限定。The first level signal is used to request the master chip 101 to restore the first data transmission link. The duration of the first level signal is specified by the communication protocol between the main chip 101 and the flash memory 103 , such as 2 ms, 1.5 ms, etc., which is not limited here. The first level signal may be a high level signal or a low level signal, which is not limited herein.
图4为本申请实施例提供的主芯片101与闪存103的连接框图。如图4所示,闪存103与主芯片101之间连接有差分线401,闪存103可以通过差分线401向主芯片101发送第一电平信号。上述S204,闪存103向主芯片101发送第一电平信号,主芯片101接收来自闪存103的第一电平信号,可以具体实现为:假定第一电平信号为高电平信号,则闪存103可以驱动差分线401的2根连线输出高电平信号,且该高电平信号的持续时长为第一电平信号的预设时长;相应地,若主芯片101检测到差分线 401上的信号为高电平信号,且该高电平信号的持续时长达到第一电平信号的持续时长,则主芯片101可以确认该高电平信号为第一电平信号,即主芯片101接收到第一电平信号。鉴于差分方式输出的电平信号的抗干扰能力比非差分方式(如单线方式)输出的电平信号的抗干扰能力更强,因此通过差分线401传输第一电平信号,可以提高第一电平信号的可靠性。FIG. 4 is a block diagram of connection between the main chip 101 and the flash memory 103 according to an embodiment of the present application. As shown in FIG. 4 , a differential line 401 is connected between the flash memory 103 and the main chip 101 , and the flash memory 103 can send a first level signal to the main chip 101 through the differential line 401 . In the above S204, the flash memory 103 sends the first level signal to the main chip 101, and the main chip 101 receives the first level signal from the flash memory 103, which can be specifically implemented as: assuming that the first level signal is a high level signal, the flash memory 103 The two connecting lines of the differential line 401 can be driven to output a high-level signal, and the duration of the high-level signal is the preset duration of the first level signal; accordingly, if the main chip 101 detects a If the signal is a high-level signal, and the duration of the high-level signal reaches the duration of the first-level signal, the main chip 101 can confirm that the high-level signal is the first-level signal, that is, the main chip 101 receives first level signal. In view of the fact that the anti-interference ability of the level signal output by the differential mode is stronger than that of the level signal output by the non-differential mode (such as the single-wire mode), the transmission of the first level signal through the differential line 401 can improve the first power level. reliability of the signal.
S205,主芯片101恢复处于异常状态下的第一数据传输链路。S205, the main chip 101 restores the first data transmission link in the abnormal state.
S206,闪存103检测到第一数据传输链路未恢复成功。S206, the flash memory 103 detects that the first data transmission link has not been successfully restored.
图5为本申请实施例提供的恢复第一数据传输链路的交互流程图。示例性地,如图5所示,恢复第一数据传输链路过程可以包括:主芯片101调整第二参数。其中,第二参数为主芯片101在第一数据传输链路传输数据的工作参数。如,将主芯片101在第一传输通道的高数据传输速率调整为低数据传输速率。其中,第一参数、第二参数相等。主芯片101接收来自闪存103的第一数据包,第一数据包携带有恢复请求。如果主芯片101接收到第一数据包,则解析第一数据包而识别到恢复请求,则主芯片101调整第三参数,第三参数可以为主芯片101在第二传输通道的工作参数。如,将主芯片101在第二传输通道的高数据传输速率调整为低数据传输速率。主芯片101向闪存103发送第三电平信号,闪存103接收到来自主芯片101第三电平信号后,则认为第一数据包向主芯片101发送成功,即第一传输通道恢复成功。反之,如果闪存103在发出第一数据包后,未接收到来自主芯片101的第一电平信号,则认为第一数据包向主芯片101发送失败,即第一传输通道恢复失败。FIG. 5 is an interactive flowchart of restoring a first data transmission link provided by an embodiment of the present application. Exemplarily, as shown in FIG. 5 , the process of restoring the first data transmission link may include: the main chip 101 adjusts the second parameter. Wherein, the second parameter is a working parameter of the main chip 101 for data transmission in the first data transmission link. For example, the high data transmission rate of the main chip 101 in the first transmission channel is adjusted to a low data transmission rate. The first parameter and the second parameter are equal. The main chip 101 receives the first data packet from the flash memory 103, and the first data packet carries a recovery request. If the main chip 101 receives the first data packet, parses the first data packet and recognizes the recovery request, the main chip 101 adjusts the third parameter, which may be the operating parameter of the main chip 101 on the second transmission channel. For example, the high data transmission rate of the main chip 101 in the second transmission channel is adjusted to a low data transmission rate. The main chip 101 sends the third level signal to the flash memory 103, and after the flash memory 103 receives the third level signal from the main chip 101, it considers that the first data packet is successfully sent to the main chip 101, that is, the first transmission channel is successfully restored. Conversely, if the flash memory 103 does not receive the first level signal from the main chip 101 after sending the first data packet, it is considered that the first data packet failed to be sent to the main chip 101, that is, the first transmission channel failed to recover.
请继续参阅图5,闪存103在接收到来自主芯片101的第一电平信号后,调整第四参数。其中,调整第四参数的方式可以为:将闪存103在第二传输通道的高数据传输速率调整为低数据传输速率。其中,第三参数与第四参数相等。主芯片101向闪存103发送第二数据包,如果闪存103接收到来自主芯片101第二数据包,则认为第二传输通道恢复成功;反之,如果闪存103未接收到来自主芯片101的第二数据包,则认为第二传输通道恢复失败。Please continue to refer to FIG. 5 , the flash memory 103 adjusts the fourth parameter after receiving the first level signal from the main chip 101 . The method of adjusting the fourth parameter may be: adjusting the high data transmission rate of the flash memory 103 in the second transmission channel to the low data transmission rate. Among them, the third parameter is equal to the fourth parameter. The main chip 101 sends the second data packet to the flash memory 103. If the flash memory 103 receives the second data packet from the main chip 101, it is considered that the second transmission channel is restored successfully; otherwise, if the flash memory 103 does not receive the second data packet from the main chip 101 , it is considered that the recovery of the second transmission channel fails.
需要说明的是,在第一传输通道和第二传输通道中的任一项恢复失败时,则闪存103确定第一数据传输链路未恢复成功。另外,若闪存103检测到第一数据传输链路恢复成功,则只需要执行正常的读写操作即可,不需要执行下述S208-S212,具体实现可以参考现有实现方式,本申请实施例不再赘述。It should be noted that when any one of the first transmission channel and the second transmission channel fails to recover, the flash memory 103 determines that the first data transmission link is not recovered successfully. In addition, if the flash memory 103 detects that the first data transmission link is successfully restored, it only needs to perform the normal read and write operations, and does not need to perform the following S208-S212. For the specific implementation, please refer to the existing implementation manner, the embodiment of the present application No longer.
S207,闪存103向主芯片101发送第二电平信号,主芯片101接收来自闪存103第二电平信号。S207 , the flash memory 103 sends a second level signal to the main chip 101 , and the main chip 101 receives the second level signal from the flash memory 103 .
为便于区分请求主芯片101恢复第一数据传输链路的第一电平信号,与请求主芯片101重新建链的第二电平信号,可以将第二电平信号的持续时长设置为大于第一电平信号的持续时长。例如,在第一电平信号的持续时长为2ms的情况下,第二电平信号的持续时长可以为5ms、6ms、7ms等,在此不作限定。In order to distinguish between the first level signal requesting the master chip 101 to restore the first data transmission link and the second level signal requesting the master chip 101 to rebuild the link, the duration of the second level signal can be set to be longer than the first level signal. The duration of a level signal. For example, when the duration of the first level signal is 2ms, the duration of the second level signal may be 5ms, 6ms, 7ms, etc., which is not limited herein.
需要说明的是,主芯片101在第一数据传输链路处于正常状态的情况下,可以接收来自闪存103的第二电平信号的持续时长与第一电平信号的持续时长,以便主芯片101识别第二电平信号和第一电平信号。It should be noted that when the first data transmission link is in a normal state, the main chip 101 can receive the duration of the second level signal and the duration of the first level signal from the flash memory 103 so that the main chip 101 Identify the second level signal and the first level signal.
示例性地,第二电平信号的持续时长与第一电平信号的持续时长可以是闪存103 主动向主芯片101发送的,也可以是主芯片101向闪存103发送数据读取请求后,闪存103发送的;还可以是预先在主芯片101配置的,在此不做限定。Exemplarily, the duration of the second level signal and the duration of the first level signal may be sent by the flash memory 103 to the main chip 101 actively, or the flash memory 101 may send a data read request to the flash memory 103 after the flash memory 103 sends a data read request. 103; it may also be pre-configured on the main chip 101, which is not limited here.
一种可能的实现方式中,第二电平信号的持续时长与第一电平信号的持续时长的差值大于或等于第一阈值。其中,第一阈值可以为3ms、5ms、7ms等,在此不作限定。例如,第一电平信号的持续时长为3ms,第二电平信号的持续时长为6ms;或者,第二电平信号的持续时长为3ms,第二电平信号的持续时长为8ms。由于第二电平信号的持续时长与第一电平信号的持续时长的差值大于或等于第一阈值,使得主芯片101可以准确的区分第一电平信号和第二电平信号。In a possible implementation manner, the difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to the first threshold. Wherein, the first threshold may be 3ms, 5ms, 7ms, etc., which is not limited herein. For example, the duration of the first level signal is 3ms and the duration of the second level signal is 6ms; or, the duration of the second level signal is 3ms and the duration of the second level signal is 8ms. Since the difference between the duration of the second-level signal and the duration of the first-level signal is greater than or equal to the first threshold, the main chip 101 can accurately distinguish the first-level signal and the second-level signal.
另一种实现方式中,第二电平信号的持续时长大于或等于第二阈值,第二阈值大于第一电平信号的持续时长。其中,第二阈值可以存储于主芯片101设置的寄存器,主芯片101可以随时访问寄存器以获取第二阈值。In another implementation manner, the duration of the second level signal is greater than or equal to the second threshold, and the second threshold is greater than the duration of the first level signal. The second threshold may be stored in a register set by the main chip 101, and the main chip 101 may access the register at any time to obtain the second threshold.
示例地,第二阈值可以是主芯片101在获取到第一电平信号的持续时长、第二电平信号的持续时长后,取大于第一电平信号的持续时长,且小于第二电平信号的持续时长的值得到的。例如,第一电平信号的持续时长为2ms、第二电平信号的持续时长为10ms,则主芯片101可以确定第二阈值为6ms。可以理解地,第二电平信号的持续时长大于第二阈值的情况下,与第一电平信号的持续时长差距较大,以便主芯片101准确地区分第一电平信号和第二电平信号。For example, the second threshold may be that after the main chip 101 obtains the duration of the first level signal and the duration of the second level signal, the duration of the signal is greater than the duration of the first level signal and less than the second level. The value of the duration of the signal is obtained. For example, if the duration of the first level signal is 2ms and the duration of the second level signal is 10ms, the main chip 101 may determine that the second threshold is 6ms. Understandably, when the duration of the second-level signal is greater than the second threshold, the difference between the duration of the first-level signal and the first-level signal is relatively large, so that the main chip 101 can accurately distinguish the first-level signal and the second-level signal. Signal.
应理解,如图4所示,为节省硬件资源,闪存103可以基于同一差分线401向主芯片101发送第一电平信号和第二高电平信号。其中,上述差分线401均为连接闪存103与主芯片101的信号线。由于第一电平信号和第二高电平信号基于同一差分线传输,无需额外增加硬件资源,以节省成本。It should be understood that, as shown in FIG. 4 , in order to save hardware resources, the flash memory 103 can send the first level signal and the second high level signal to the main chip 101 based on the same differential line 401 . The above differential lines 401 are all signal lines connecting the flash memory 103 and the main chip 101 . Since the first-level signal and the second high-level signal are transmitted based on the same differential line, there is no need to increase additional hardware resources to save costs.
另外,还可以在闪存103和主芯片101之间设置两组差分线401,其中一组差分线401用于传输第一电平信号,另一组差分线401用于传输第二电平信号。可以理解地,两组差分线的引脚标识不同,主芯片101可以根据差分线的引脚标识,确定接收到的电平信号为第一电平信号或者第二电平信号。In addition, two sets of differential lines 401 may also be provided between the flash memory 103 and the main chip 101 , wherein one set of differential lines 401 is used to transmit first level signals, and the other set of differential lines 401 is used to transmit second level signals. It can be understood that the two groups of differential lines have different pin identifiers, and the main chip 101 can determine that the received level signal is the first level signal or the second level signal according to the pin identifiers of the differential lines.
需要说明的是,当有2组差分线时,第一电平信号的持续时长与第二电平信号的持续时长可以没有大小关系。It should be noted that, when there are two sets of differential lines, the duration of the first level signal and the duration of the second level signal may be irrelevant.
S208,主芯片101建立第二数据传输链路,闪存103建立第二数据传输链路。S208, the main chip 101 establishes a second data transmission link, and the flash memory 103 establishes a second data transmission link.
其中,主芯片101建立第二数据传输链路包括向闪存103发送建链命令;闪存103建立第二数据传输链路包括接收来自主芯片101的建链命令。The establishment of the second data transmission link by the main chip 101 includes sending a link establishment command to the flash memory 103 ; the establishment of the second data transmission link by the flash memory 103 includes receiving a chain establishment command from the main chip 101 .
如图4所示,闪存103与主芯片101之间还连接有复位线402。建链命令可以包括复位命令。S208的具体过程包括:主芯片101通过控制自己的复位管脚复位而重启,然后主芯片101通过复位线402向闪存103发送复位命令,使能闪存103的复位管脚复位,从而控制闪存103重启。然后主芯片101与闪存103重新握手,相互配合建立第二数据传输链路。由此,主芯片101可以立即通过第二数据传输链路向闪存103正常读写数据。例如,主芯片101通过第二数据传输链路向闪存103写入上述的图片信息。As shown in FIG. 4 , a reset line 402 is further connected between the flash memory 103 and the main chip 101 . The link building command may include a reset command. The specific process of S208 includes: the main chip 101 restarts by controlling its own reset pin to reset, and then the main chip 101 sends a reset command to the flash memory 103 through the reset line 402 to enable the reset pin of the flash memory 103 to reset, thereby controlling the flash memory 103 to restart . Then the main chip 101 and the flash memory 103 shake hands again, and cooperate with each other to establish a second data transmission link. Therefore, the main chip 101 can immediately read and write data to the flash memory 103 normally through the second data transmission link. For example, the main chip 101 writes the above-mentioned picture information to the flash memory 103 through the second data transmission link.
经发明人试验,现有技术中,主芯片101从发出数据读写请求需要等待3秒-5秒,才开始建立第二数据传输链路,而本申请实施例从发出数据读写请求仅需等待5 毫秒-10毫秒,即开始建立第二数据传输链路,可以大大减少数据链路出现异常时,重新建链需要花费的时间以避免数据读/写卡顿,从而提高升用户体验。此外,闪存请求主芯片101重建第二数据传输链路的第二电平信号是平稳的信号(不跳变),即使第一数据传输链路异常,主芯片101也可以精确的检测到第二电平信号,可靠性高。According to the experiment of the inventor, in the prior art, the main chip 101 needs to wait for 3 seconds to 5 seconds to initiate the establishment of the second data transmission link from issuing a data read and write request, while the embodiment of the present application only needs to wait for 3 seconds to 5 seconds from issuing a data read and write request. Waiting for 5ms-10ms, the second data transmission link will be established, which can greatly reduce the time it takes to rebuild the link when the data link is abnormal, so as to avoid data read/write freezes, thereby improving the user experience. In addition, the second level signal of the flash memory requesting the main chip 101 to rebuild the second data transmission link is a stable signal (without jumping), even if the first data transmission link is abnormal, the main chip 101 can accurately detect the second level signal. level signal, high reliability.
图6为本申请实施例提供的链路重建装置的软件结构示意图。请参阅图6,该链路重建装置600可以应用于电子设备的闪存,该电子设备还包括有主芯片101。如图4所示,闪存103和主芯片101之间连接有差分线401和复位线402。其中,本申请实施例中的差分线401与上述实施例中的差分线401的作用相同;本实施例中的复位线402与上述实施例中的复位线402的作用相同,在此不再赘述。如图6所示,链路重建装置600包括处理单元601、收发单元602。其中,收发单元602用于执行上述实施例中的S201、S204、S207;处理单元601用于执行上述实施例中的S202、S203、S206、S208。FIG. 6 is a schematic diagram of a software structure of a link re-establishment apparatus provided by an embodiment of the present application. Referring to FIG. 6 , the link rebuilding apparatus 600 can be applied to a flash memory of an electronic device, and the electronic device further includes a main chip 101 . As shown in FIG. 4 , a differential line 401 and a reset line 402 are connected between the flash memory 103 and the main chip 101 . The function of the differential line 401 in the embodiment of the present application is the same as that of the differential line 401 in the above-mentioned embodiment; the function of the reset line 402 in this embodiment is the same as that of the reset line 402 in the above-mentioned embodiment, which will not be repeated here. . As shown in FIG. 6 , the link re-establishment apparatus 600 includes a processing unit 601 and a transceiver unit 602 . The transceiver unit 602 is configured to execute S201, S204, and S207 in the foregoing embodiments; the processing unit 601 is configured to execute S202, S203, S206, and S208 in the foregoing embodiments.
另外,链路重建装置600也可以应用于主芯片101。当链路重建装置600应用于主芯片101时,收发单元602用于执行上述实施例中的S201、S204、S207,处理单元601用于执行上述实施例中的S205、S208。In addition, the link re-establishment apparatus 600 may also be applied to the main chip 101 . When the link re-establishment apparatus 600 is applied to the main chip 101, the transceiver unit 602 is configured to execute S201, S204, and S207 in the foregoing embodiment, and the processing unit 601 is configured to execute S205 and S208 in the foregoing embodiment.
可选地,链路重建装置600还可以包括存储单元(图6中未示出)。该存储单元存储有程序或指令。当处理单元执行该程序或指令时,使得链路重建装置600可以执行图2或图4中的链路重建方法。Optionally, the link re-establishment apparatus 600 may further include a storage unit (not shown in FIG. 6 ). The storage unit stores programs or instructions. When the processing unit executes the program or the instruction, the link re-establishment apparatus 600 can execute the link re-establishment method in FIG. 2 or FIG. 4 .
可选地,收发单元可以集成为一个单元,也可以分设为接收单元和发送单元。其中,发送单元用于执行链路重建装置600的发送功能,接收单元用于执行链路重建装置600的接收功能。Optionally, the transceiver unit may be integrated into one unit, or may be divided into a receiving unit and a transmitting unit. Wherein, the sending unit is configured to perform the sending function of the link re-establishment apparatus 600 , and the receiving unit is configured to perform the receiving function of the link re-establishment apparatus 600 .
需要说明的是,本申请实施例所提供的链路重建装置600,其基本原理及产生的技术效果和上述方法实施例相同,为简要描述,本实施例部分未提及之处,可参考上述方法实施例中相应内容。It should be noted that, the basic principles and technical effects of the link re-establishment apparatus 600 provided by the embodiments of the present application are the same as those of the above-mentioned method embodiments. Corresponding content in the method embodiment.
示例性地,图7为本申请实施例提供的电子设备700的结构示意图。下面结合图7对电子设备700的各个构成部件进行具体的介绍:Exemplarily, FIG. 7 is a schematic structural diagram of an electronic device 700 provided by an embodiment of the present application. Below in conjunction with FIG. 7 , each component of the electronic device 700 will be specifically introduced:
其中,主芯片701是电子设备700的控制中心,主芯片701可以包括处理器7011和处理器7022。例如,处理器7011和处理器7022均可以包括一个或多个中央处理器(central processing unit,CPU),也可以包括特定集成电路(application specific integrated circuit,ASIC),或者包括被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。The main chip 701 is the control center of the electronic device 700 , and the main chip 701 may include a processor 7011 and a processor 7022 . For example, both the processor 7011 and the processor 7022 may include one or more central processing units (CPUs), may also include specific integrated circuits (application specific integrated circuits, ASICs), or may be configured to implement the present application One or more integrated circuits of an embodiment, for example: one or more microprocessors (digital signal processors, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA).
可选地,主芯片701可以通过运行或执行存储在只读存储器702内的软件程序,以及调用存储在只读存储器702内的数据,执行电子设备700的各种功能。例如,主芯片701可以执行本申请上述实施例中的S201、S204、S205、S207、S208,在此不做限定。Optionally, the main chip 701 can execute various functions of the electronic device 700 by running or executing software programs stored in the ROM 702 and calling data stored in the ROM 702 . For example, the main chip 701 may execute S201 , S204 , S205 , S207 , and S208 in the foregoing embodiments of the present application, which are not limited herein.
在具体的实现中,作为一种实施例,主芯片701可以包括一个或多个CPU,例如图7中所示出的CPU0和CPU1。In a specific implementation, as an embodiment, the main chip 701 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 7 .
其中,只读存储器702用于存储执行本申请方案的软件程序,并由主芯片701来控制执行,具体实现方式可以参考上述方法实施例,此处不再赘述。The read-only memory 702 is used to store the software program for executing the solution of the present application, and is controlled and executed by the main chip 701. For the specific implementation, reference may be made to the above method embodiments, which will not be repeated here.
可选地,只读存储器702可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。只读存储器702可以和主芯片701集成在一起,也可以独立存在,并通过电子设备700的接口电路(图7中未示出)与主芯片701耦合,本申请实施例对此不作具体限定。Optionally, the read-only memory 702 may be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (CD-ROM), or other optical disk storage, Optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of Any other medium that can be accessed by a computer, but is not limited to this. The read-only memory 702 may be integrated with the main chip 701, or may exist independently, and be coupled to the main chip 701 through an interface circuit (not shown in FIG. 7) of the electronic device 700, which is not specifically limited in this embodiment of the present application.
收发器703,用于与其他电子设备之间的通信。例如,电子设备700为电子设备,收发器703可以用于与网络设备通信,或者与另一个电子设备通信。又例如,电子设备700为网络设备,收发器703可以用于与电子设备通信,或者与另一个网络设备通信。The transceiver 703 is used for communication with other electronic devices. For example, the electronic device 700 is an electronic device, and the transceiver 703 may be used to communicate with a network device, or communicate with another electronic device. For another example, the electronic device 700 is a network device, and the transceiver 703 can be used to communicate with the electronic device or communicate with another network device.
可选地,收发器703可以包括接收器和发送器(图7中未单独示出)。其中,接收器用于实现接收功能,发送器用于实现发送功能。Optionally, transceiver 703 may include a receiver and a transmitter (not shown separately in FIG. 7). Among them, the receiver is used to realize the receiving function, and the transmitter is used to realize the sending function.
可选地,收发器703可以和主芯片701集成在一起,也可以独立存在,并通过电子设备700的接口电路(图7中未示出)与主芯片701耦合,本申请实施例对此不作具体限定。Optionally, the transceiver 703 may be integrated with the main chip 701, or may exist independently, and be coupled to the main chip 701 through an interface circuit (not shown in FIG. 7 ) of the electronic device 700, which is not performed in this embodiment of the present application Specific restrictions.
闪存704,基于串行数据传输技术打造的允许在操作中被多次擦或写的存储器,其内部存储单元与主芯片之间虽然只有两个数据通道,但由于采用串行数据传输,其实际数据传输时速非常高。UFS支持的是全双工模式,所有数据通道均可以同时执行读写操作,在数据读写的响应速度也非常高。闪存704可以执行本申请上述实施例中的S201、S202、S203、S204、S206、S207、S208。The flash memory 704 is a memory based on serial data transmission technology that allows to be erased or written multiple times during operation. Although there are only two data channels between its internal storage unit and the main chip, due to the use of serial data transmission, its actual The data transfer speed is very high. UFS supports full-duplex mode, all data channels can perform read and write operations at the same time, and the response speed of data read and write is also very high. The flash memory 704 may execute S201 , S202 , S203 , S204 , S206 , S207 , and S208 in the above embodiments of the present application.
需要说明的是,图7中示出的电子设备700的结构并不构成对该链路重建装置的限定,实际的链路重建装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the structure of the electronic device 700 shown in FIG. 7 does not constitute a limitation on the link reconstruction apparatus, and the actual link reconstruction apparatus may include more or less components than those shown in the figure, or a combination of certain some components, or a different arrangement of components.
此外,电子设备700的技术效果可以参考上述方法实施例所述的链路重建方法的技术效果,此处不再赘述。In addition, for the technical effect of the electronic device 700, reference may be made to the technical effect of the link re-establishment method described in the foregoing method embodiments, which will not be repeated here.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序代码,当处理器执行该计算机程序代码时,电子设备执行上述实施例中的方法。Embodiments of the present application further provide a computer-readable storage medium, where computer program codes are stored in the computer-readable storage medium, and when the processor executes the computer program codes, the electronic device executes the methods in the foregoing embodiments.
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得电子设备执行上述实施例中的方法。The embodiments of the present application also provide a computer program product, which when the computer program product runs on the electronic device, enables the electronic device to execute the method in the above-mentioned embodiments.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that make contributions to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage The medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application shall be covered by this within the protection scope of the application examples. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims (25)

  1. 一种链路重建方法,其特征在于,应用于电子设备的闪存,所述电子设备还包括主芯片,所述方法包括:A link reconstruction method, characterized in that it is applied to a flash memory of an electronic device, the electronic device further includes a main chip, and the method includes:
    在所述闪存检测到第一数据传输链路处于异常状态情况下,所述闪存调整第一参数,其中,所述第一参数为所述闪存在所述第一数据传输链路传输数据的工作参数,所述第一数据传输链路为所述闪存与所述主芯片之间的通信链路;When the flash memory detects that the first data transmission link is in an abnormal state, the flash memory adjusts a first parameter, where the first parameter is the operation of the flash memory to transmit data on the first data transmission link parameter, the first data transmission link is the communication link between the flash memory and the main chip;
    所述闪存向所述主芯片发送第一电平信号,所述第一电平信号用于请求所述主芯片恢复所述第一数据传输链路;The flash memory sends a first level signal to the main chip, where the first level signal is used to request the main chip to restore the first data transmission link;
    若所述闪存检测到所述第一数据传输链路恢复失败,则向所述主芯片发送第二电平信号,其中,所述第二电平信号的持续时长大于所述第一电平信号的持续时长;If the flash memory detects that the recovery of the first data transmission link fails, it sends a second level signal to the main chip, wherein the duration of the second level signal is longer than the first level signal the duration of
    所述闪存接收来自所述主芯片的建链命令;the flash memory receives a link establishment command from the main chip;
    所述闪存根据所述建链命令,建立第二数据传输链路。The flash memory establishes a second data transmission link according to the link establishment command.
  2. 根据权利要求1所述的方法,其特征在于,所述第二电平信号的持续时长与所述第一电平信号的持续时长的差值大于或等于第一阈值。The method according to claim 1, wherein a difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to a first threshold.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二电平信号的持续时长大于或等于第二阈值,其中,所述第二阈值大于所述第一电平信号的持续时长。The method according to claim 1 or 2, wherein the duration of the second level signal is greater than or equal to a second threshold, wherein the second threshold is greater than the duration of the first level signal .
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,在所述闪存调整第一参数之前,所述方法还包括:The method according to any one of claims 1-3, wherein before the flash memory adjusts the first parameter, the method further comprises:
    在所述第一数据传输链路处于正常状态的情况下,所述闪存向所述主芯片发送所述第二电平信号的持续时长与所述第一电平信号的持续时长。When the first data transmission link is in a normal state, the flash memory transmits the duration of the second level signal and the duration of the first level signal to the master chip.
  5. 根据权利要求4所述的方法,其特征在于,在所述闪存向所述主芯片发送所述第二电平信号的持续时长与所述第一电平信号的持续时长之前,所述方法还包括:The method according to claim 4, wherein before the flash memory sends the duration of the second level signal and the duration of the first level signal to the host chip, the method further include:
    所述闪存接收所述主芯片的数据读取请求。The flash memory receives a data read request from the main chip.
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述闪存基于同一差分线发送所述第一电平信号和所述第二电平信号,其中,所述差分线为连接所述闪存与所述主芯片的信号线。The method according to any one of claims 1-5, wherein the flash memory transmits the first level signal and the second level signal based on the same differential line, wherein the differential line is a connection the signal line between the flash memory and the main chip.
  7. 一种链路重建方法,其特征在于,应用于电子设备的主芯片,所述电子设备还包括闪存,所述方法包括:A link reconstruction method, characterized in that it is applied to a main chip of an electronic device, the electronic device further includes a flash memory, and the method includes:
    所述主芯片接收所述闪存输出的第一电平信号,所述第一电平信号用于请求所述主芯片恢复第一数据传输链路;the main chip receives a first level signal output by the flash memory, where the first level signal is used to request the main chip to restore the first data transmission link;
    所述主芯片恢复处于异常状态下的所述第一数据传输链路,其中,所述第一数据传输链路为所述闪存与所述主芯片之间的通信链路;The main chip restores the first data transmission link in an abnormal state, wherein the first data transmission link is a communication link between the flash memory and the main chip;
    若所述第一数据传输链路恢复失败,则所述主芯片接收所述闪存传输的第二电平信号,其中,所述第二电平信号的持续时长大于设定阈值,所述设定阈值大于或等于所述第一电平信号的持续时长;If the recovery of the first data transmission link fails, the master chip receives a second level signal transmitted by the flash memory, wherein the duration of the second level signal is greater than a set threshold, and the set The threshold value is greater than or equal to the duration of the first level signal;
    根据所述第二电平信号建立第二数据传输链路,其中,所述建立第二数据传输链路包括向所述闪存发送建链命令。Establishing a second data transmission link according to the second level signal, wherein the establishing the second data transmission link includes sending a link establishment command to the flash memory.
  8. 根据权利要求7所述的方法,其特征在于,所述第二电平信号的持续时长与所述第一电平信号的持续时长的差值大于或等于第一阈值。The method according to claim 7, wherein a difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to a first threshold.
  9. 根据权利要求7或8所述的方法,其特征在于,所述第二电平信号的持续时长大于或等于第二阈值,其中,所述第二阈值大于所述第一电平信号的持续时长。The method according to claim 7 or 8, wherein the duration of the second level signal is greater than or equal to a second threshold, wherein the second threshold is greater than the duration of the first level signal .
  10. 根据权利要求7-9中任一项所述的方法,其特征在于,在所述主芯片接收所述闪存输出的第一电平信号之前,所述方法还包括:The method according to any one of claims 7-9, wherein before the master chip receives the first level signal output by the flash memory, the method further comprises:
    在所述第一数据传输链路处于正常状态的情况下,所述主芯片接收所述闪存发送的所述第二电平信号的持续时长与所述第一电平信号的持续时长。When the first data transmission link is in a normal state, the main chip receives the duration of the second level signal sent by the flash memory and the duration of the first level signal.
  11. 根据权利要求10所述的方法,其特征在于,在所述主芯片接收所述闪存发送的所述第二电平信号的持续时长与所述第一电平信号的持续时长之前,所述方法还包括:The method according to claim 10, wherein before the master chip receives the duration of the second level signal and the duration of the first level signal sent by the flash memory, the method Also includes:
    所述主芯片向所述闪存发送数据读取请求。The main chip sends a data read request to the flash memory.
  12. 根据权利要求7-11任一所述的方法,其特征在于,所述主芯片基于同一差分线接收所述第一电平信号和所述第二电平信号,其中,所述差分线为连接所述闪存与所述主芯片的信号线。The method according to any one of claims 7-11, wherein the main chip receives the first level signal and the second level signal based on the same differential line, wherein the differential line is a connection Signal lines between the flash memory and the main chip.
  13. 一种链路重建装置,其特征在于,应用于电子设备的闪存,所述电子设备还包括主芯片,所述装置包括处理单元和收发单元;其中,A link reconstruction device, characterized in that it is applied to a flash memory of an electronic device, the electronic device further includes a main chip, and the device includes a processing unit and a transceiver unit; wherein,
    所述处理单元,用于检测到第一数据传输链路处于异常状态情况下,调整第一参数,其中,所述第一参数为所述闪存在所述第一数据传输链路传输数据的工作参数,所述第一数据传输链路为所述闪存与所述主芯片之间的通信链路;The processing unit is configured to adjust a first parameter when detecting that the first data transmission link is in an abnormal state, wherein the first parameter is the operation of the flash memory to transmit data on the first data transmission link parameter, the first data transmission link is the communication link between the flash memory and the main chip;
    所述收发单元,用于向所述主芯片发送第一电平信号,所述第一电平信号用于请求所述主芯片恢复所述第一数据传输链路;the transceiver unit, configured to send a first level signal to the main chip, where the first level signal is used to request the main chip to restore the first data transmission link;
    所述处理单元,还用于若检测到所述第一数据传输链路恢复失败,则控制所述收发单元向所述主芯片发送第二电平信号,其中,所述第二电平信号的持续时长大于所述第一电平信号的持续时长;The processing unit is further configured to control the transceiver unit to send a second level signal to the main chip if it is detected that the recovery of the first data transmission link fails, wherein the value of the second level signal is The duration is longer than the duration of the first level signal;
    所述收发单元,还用于接收来自所述主芯片的建链命令;The transceiver unit is further configured to receive a link establishment command from the main chip;
    所述处理单元,还用于根据所述建链命令,建立第二数据传输链路。The processing unit is further configured to establish a second data transmission link according to the link establishment command.
  14. 根据权利要求13所述的装置,其特征在于,所述第二电平信号的持续时长与所述第一电平信号的持续时长的差值大于或等于第一阈值。The apparatus according to claim 13, wherein a difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to a first threshold.
  15. 根据权利要求13或14所述的装置,其特征在于,所述第二电平信号的持续时长大于或等于第二阈值,其中,所述第二阈值大于所述第一电平信号的持续时长。The apparatus according to claim 13 or 14, wherein the duration of the second level signal is greater than or equal to a second threshold, wherein the second threshold is greater than the duration of the first level signal .
  16. 根据权利要求13-15中任一项所述的装置,其特征在于,The device according to any one of claims 13-15, characterized in that,
    所述收发单元,还用于在所述第一数据传输链路处于正常状态的情况下,向所述主芯片发送所述第二电平信号的持续时长与所述第一电平信号的持续时长。The transceiver unit is further configured to send the duration of the second level signal and the duration of the first level signal to the master chip when the first data transmission link is in a normal state duration.
  17. 根据权利要求16所述的装置,其特征在于,The apparatus of claim 16, wherein:
    所述收发单元,还用于接收所述主芯片的数据读取请求。The transceiver unit is further configured to receive a data read request from the main chip.
  18. 根据权利要求13-17任一所述的装置,其特征在于,The device according to any one of claims 13-17, characterized in that,
    所述收发单元,还用于基于同一差分线发送所述第一电平信号和所述第二电平信号,其中,所述差分线为连接所述闪存与所述主芯片的信号线。The transceiver unit is further configured to send the first level signal and the second level signal based on the same differential line, wherein the differential line is a signal line connecting the flash memory and the main chip.
  19. 一种链路重建装置,其特征在于,应用于电子设备的主芯片,所述电子设备还包括闪存,所述装置包括收发单元和处理单元;其中,A link reconstruction device, characterized in that it is applied to a main chip of an electronic device, the electronic device further includes a flash memory, and the device includes a transceiver unit and a processing unit; wherein,
    所述收发单元,用于接收所述闪存输出的第一电平信号,所述第一电平信号用于请求所述主芯片恢复第一数据传输链路;the transceiver unit, configured to receive a first level signal output by the flash memory, where the first level signal is used to request the main chip to restore the first data transmission link;
    所述处理单元,用于恢复处于异常状态下的第一数据传输链路,其中,所述第一数据传输链路为所述闪存与所述主芯片之间的通信链路;the processing unit, configured to restore a first data transmission link in an abnormal state, wherein the first data transmission link is a communication link between the flash memory and the main chip;
    所述收发单元,还用于若所述第一数据传输链路恢复失败,则接收所述闪存传输的第二电平信号,其中,所述第二电平信号的持续时长大于设定阈值,所述设定阈值大于或等于所述第一电平信号的持续时长;The transceiver unit is further configured to receive a second level signal transmitted by the flash memory if the first data transmission link fails to recover, wherein the duration of the second level signal is greater than a set threshold, The set threshold is greater than or equal to the duration of the first level signal;
    所述处理单元,还用于根据所述第二电平信号建立第二数据传输链路,其中,所述建立第二数据传输链路包括向闪存发送建链命令。The processing unit is further configured to establish a second data transmission link according to the second level signal, wherein the establishing of the second data transmission link includes sending a link establishment command to the flash memory.
  20. 根据权利要求19所述的装置,其特征在于,所述第二电平信号的持续时长与所述第一电平信号的持续时长的差值大于或等于第一阈值。The apparatus according to claim 19, wherein a difference between the duration of the second level signal and the duration of the first level signal is greater than or equal to a first threshold.
  21. 根据权利要求19或20所述的装置,其特征在于,所述第二电平信号的持续时长大于或等于第二阈值,其中,所述第二阈值大于所述第一电平信号的持续时长。The apparatus according to claim 19 or 20, wherein the duration of the second level signal is greater than or equal to a second threshold, wherein the second threshold is greater than the duration of the first level signal .
  22. 根据权利要求19-21中任一项所述的装置,其特征在于,所述收发单元,还用于在所述第一数据传输链路处于正常状态的情况下,接收所述闪存发送的所述第二电平信号的持续时长与所述第一电平信号的持续时长。The device according to any one of claims 19-21, wherein the transceiver unit is further configured to receive all data sent by the flash memory when the first data transmission link is in a normal state. The duration of the second level signal is the same as the duration of the first level signal.
  23. 根据权利要求22所述的装置,其特征在于,所述收发单元,还用于所述主芯片向所述闪存发送数据读取请求。The device according to claim 22, wherein the transceiver unit is further configured to send a data read request to the flash memory by the master chip.
  24. 根据权利要求19-23任一所述的装置,其特征在于,所述收发单元,还用于基于同一差分线接收所述第一电平信号和所述第二电平信号,其中,所述差分线为连接所述闪存与所述主芯片的信号线。The device according to any one of claims 19-23, wherein the transceiver unit is further configured to receive the first level signal and the second level signal based on the same differential line, wherein the The differential line is a signal line connecting the flash memory and the main chip.
  25. 一种电子设备,其特征在于,包括闪存和主芯片,所述闪存与所述主芯片通信连接,其中,所述闪存用于执行如权利要求1-6中任一项所述的链路重建方法,所述主芯片用于执行如权利要求7-12中任一项所述的链路重建方法。An electronic device, characterized in that it comprises a flash memory and a main chip, the flash memory is communicatively connected to the main chip, wherein the flash memory is used to perform the link reconstruction according to any one of claims 1-6 The method, the main chip is configured to execute the link re-establishment method according to any one of claims 7-12.
PCT/CN2020/137557 2020-12-18 2020-12-18 Link reestablishment method and device WO2022126584A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/137557 WO2022126584A1 (en) 2020-12-18 2020-12-18 Link reestablishment method and device
CN202080107711.2A CN116569127A (en) 2020-12-18 2020-12-18 Link reconstruction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/137557 WO2022126584A1 (en) 2020-12-18 2020-12-18 Link reestablishment method and device

Publications (1)

Publication Number Publication Date
WO2022126584A1 true WO2022126584A1 (en) 2022-06-23

Family

ID=82059959

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137557 WO2022126584A1 (en) 2020-12-18 2020-12-18 Link reestablishment method and device

Country Status (2)

Country Link
CN (1) CN116569127A (en)
WO (1) WO2022126584A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150261436A1 (en) * 2013-09-27 2015-09-17 Empire Technology Development Llc Flexible storage block for a solid state drive (ssd)-based file system
CN108062281A (en) * 2017-11-07 2018-05-22 珠海研果科技有限公司 A kind of solution mass-memory unit carries out data copy with PC ends and the method to break occurs
CN109032975A (en) * 2018-06-22 2018-12-18 深圳市江波龙电子股份有限公司 A kind of solid storage device, data transmission method and user terminal
CN110519096A (en) * 2019-08-29 2019-11-29 西安电子工程研究所 RocketIO communication link detects automatically and restoration methods
CN110750213A (en) * 2019-09-09 2020-02-04 华为技术有限公司 Hard disk management method and device
CN111857302A (en) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 Reset method, device and equipment of system management bus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150261436A1 (en) * 2013-09-27 2015-09-17 Empire Technology Development Llc Flexible storage block for a solid state drive (ssd)-based file system
CN108062281A (en) * 2017-11-07 2018-05-22 珠海研果科技有限公司 A kind of solution mass-memory unit carries out data copy with PC ends and the method to break occurs
CN109032975A (en) * 2018-06-22 2018-12-18 深圳市江波龙电子股份有限公司 A kind of solid storage device, data transmission method and user terminal
CN110519096A (en) * 2019-08-29 2019-11-29 西安电子工程研究所 RocketIO communication link detects automatically and restoration methods
CN110750213A (en) * 2019-09-09 2020-02-04 华为技术有限公司 Hard disk management method and device
CN111857302A (en) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 Reset method, device and equipment of system management bus

Also Published As

Publication number Publication date
CN116569127A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US10609646B2 (en) Intelligent management of a plurality of communications links
CN110622123B (en) Display method and device
JP7389264B2 (en) Wireless communication method and device with wireless communication function
US11375569B2 (en) Method and device for reconnecting Bluetooth communication
US11057762B2 (en) Electronic device and method for switching electronic device between dual standby mode and single standby mode
WO2018049897A1 (en) Data backup method and device
US20210360636A1 (en) Method for transmitting indication signal, terminal and network device
US11089539B2 (en) Data processing method, terminal, and base station
CN114168092B (en) Display method and device
US20150065053A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
CN109101363B (en) Exception recovery method and device based on Android system, intelligent equipment and storage medium
US20190159020A1 (en) Method for Data Migration and Terminal Device
WO2018049970A1 (en) Hotspot network switching method and terminal
US20220225233A1 (en) Power-saving signal receiving method, power-saving signal sending method, terminal and network device
US20210105651A1 (en) Measurement gap processing method, terminal, and network node
JP2020537211A (en) Application management method and terminal
WO2018049969A1 (en) Hotspot establishment method and related device
WO2020077508A1 (en) Dynamic frequency adjustment method for internal memory, and electronic apparatus
WO2018049968A1 (en) Hotspot establishment method and terminals
CN111448825A (en) Transmission control method and equipment
WO2022126584A1 (en) Link reestablishment method and device
CN115066877A (en) Electronic device and method for recognizing audio output device connected to USB Type-C connector
WO2023197709A1 (en) Device identification method and related apparatus
WO2022037725A1 (en) System service recovery method and apparatus, and electronic device
CN112104384B (en) Structure of electronic device for optimizing performance of antenna and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20965600

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202080107711.2

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20965600

Country of ref document: EP

Kind code of ref document: A1