WO2012151897A1 - Method and device for switching between storage element and expansion element on mobile terminal - Google Patents

Method and device for switching between storage element and expansion element on mobile terminal Download PDF

Info

Publication number
WO2012151897A1
WO2012151897A1 PCT/CN2011/082161 CN2011082161W WO2012151897A1 WO 2012151897 A1 WO2012151897 A1 WO 2012151897A1 CN 2011082161 W CN2011082161 W CN 2011082161W WO 2012151897 A1 WO2012151897 A1 WO 2012151897A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
communication operation
switching
card
expansion
Prior art date
Application number
PCT/CN2011/082161
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 中兴通讯股份有限公司
Publication of WO2012151897A1 publication Critical patent/WO2012151897A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1443Transmit or communication errors

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for switching between a storage element and an expansion element on a mobile terminal. Background technique
  • SD Secure Digital
  • the baseband chips of these handheld devices basically have SD card controllers, and With the development of technology, the application of wifi technology on mobile phones is also becoming more and more popular.
  • Most of the current mainstream wifi chips use the SDIO (Secure Digital I/O) interface.
  • the SDIO interface is an SD card-based interface that is compatible with the SD card interface.
  • the wifi chip passes the SDIO interface and the handheld device.
  • the baseband chips are connected to enable the wifi function. When the wifi chip is connected to the SDIO interface, it can be called an SDIO card.
  • FIG. 1 is a structural block diagram of a related art handheld device, including: a baseband chip 102, an analog switch 104, an SD card 106, and an SDIO card 108, wherein one end of the analog switch 104 is connected to the baseband chip 102, and the other end is connected to the SD card.
  • SDIO 106 is connected to SDIO 108.
  • the baseband chip 102 controls the analog switch 104 through a GPI0 control line to implement SDIO and SD card selection.
  • SDIO card is based on the SD card, it is fully compatible with the SD card in terms of electrical characteristics, but there are some differences in the protocol.
  • the SD card is more suitable for data block storage.
  • SDIO is mainly used for 10 operations of the device, SDIO also has An obvious feature is that it can respond to peripheral interrupts and have one more interrupt signal. In order to be compatible with the SD card, this interrupt pin is located on the data line. An interrupt detection period is defined in the protocol to distinguish the interrupt signal. And the data signal, so that the multiplexing of the data line and the interrupt signal can be achieved.
  • the SD/SDI0 controller needs to be able to respond quickly and promptly to interrupt, otherwise the wifi device will be abnormal and the connection will be interrupted.
  • the baseband chip 102 needs to switch back and forth between the SD card 106 and the SDIO card 108 through the analog switch 104, so that the data is stored in the SD card during the downloading process.
  • the baseband chip 102 is required to switch back to the SDIO card 108 through the analog switch 104 in time.
  • switching is performed between the SD card 106 and the SDIO card 108 by the baseband chip 102 by time scheduling, that is, the baseband chip 102 is set in advance with time for communication with the SD card 106 and the SDIO card 108, respectively.
  • the connection between the baseband chip 102 and the SDIO card 108 is disconnected during the communication between the baseband chip 102 and the SD card 106, the abnormal signal on the SDIO card 108 cannot be detected, and therefore, the above signal may not be responded to in time. And switch back to the SDIO card 108 via the analog switch 104 so that the wifi connection may be interrupted.
  • the present invention provides a method and apparatus for switching between a storage element and an expansion element on a mobile terminal, to at least solve the problem in the related art that the interruption on the extension device cannot be detected during the communication between the baseband chip and the storage device. The resulting problem with extended device exceptions.
  • a method for switching between a storage element and an expansion element on a mobile terminal comprising the steps of: the processor on the mobile terminal performing a first communication operation with the storage element Detecting, by the link, an abnormal signal on the extension component, wherein the link is disposed between the processor and the extension component for transmitting the abnormal signal; and if the abnormal signal is detected, the processor stops The first communication operation of the storage element is switched to a second communication operation with the expansion element described above. After switching to the second communication operation with the extension element, the switching method further includes: determining whether the second communication operation between the processor and the extension element ends; and if so, switching the processor to the storage The component communicates.
  • the step of switching to communication with the storage element includes: performing the first communication operation performed before disconnection between the processor and the storage element.
  • the abnormal signal is an interrupt signal generated by the expansion element or an abnormality notification signal generated by the expansion element.
  • the above link is different from the link for transmitting data set between the above processor and the above-described extension element.
  • the storage element includes: an SD card; the extension element includes: an SDIO card.
  • a switching device between a storage element and an expansion element on a mobile terminal comprising: a detecting unit, configured to be in the processor and The storage element detects an abnormal signal on the extension element through a link during a first communication operation, wherein the link is disposed between the processor and the extension element, and is configured to transmit the abnormal signal; It is arranged to stop the first communication operation with the storage element when the abnormal signal is detected, and to switch the processor to perform a second communication operation with the extension element.
  • the switching unit includes: a determining module configured to determine whether the second communication operation between the processor and the extension element ends after switching the processor to the second communication operation with the extension element; switching module, setting The processor is switched to communicate with the storage element when it is determined that the second communication operation between the processor and the extension element has ended.
  • the switching module is further configured to switch the processor to the first communication operation performed before the disconnection of the storage element is performed, when it is determined that the second communication operation between the processor and the extension element has ended.
  • the above link is different from the link set between the above processor and the above-described extension element to transmit data.
  • the processor on the mobile terminal detects the abnormal signal on the extension component through the link during the communication operation with the storage element, so that the mobile terminal can respond to the abnormal signal on the extension component in time, thereby solving the problem due to the baseband.
  • the problem of the expansion device abnormality caused by the interruption on the expansion device cannot be detected, thereby achieving the technical effect of seamless switching between the storage component and the expansion component.
  • FIG. 1 is a block diagram showing a configuration of a handheld device in a related art
  • FIG. 2 is a block diagram showing a preferred configuration of a switching device between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention
  • FIG. 4 is another preferred structure of a switching device between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention
  • block diagram 5 is a preferred flowchart of a method of switching between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention
  • FIG. 6 is a diagram between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention
  • Another preferred flow chart of the switching method is another preferred flow chart of the switching method.
  • Embodiment 1 This embodiment uses a baseband chip, an SDIO, and an SD card as an example to describe a switching method between a storage element and an expansion element.
  • the present invention is not limited to the baseband chip switching between the SDIO and the SD card, and can be applied to other methods. The switching of the processor between other storage elements and expansion elements.
  • FIG. 2 is a block diagram of a preferred configuration of a switching device between a storage element and an expansion element on a mobile terminal, including: a baseband chip 202, an analog switch 204 in communication with the baseband chip 202, and an analog switch, in accordance with an embodiment of the present invention.
  • 204 communicates with an SD card 206 (one of the storage elements) and an SDIO card 208 (a type of expansion element) that communicates with the SD card 206.
  • a link GPIO INT is provided between the SDIO card 208 and the baseband chip 202 to detect an abnormal signal on the SDIO card 208.
  • the baseband chip 202 can detect an abnormal signal on the SDIO card 208 in time during communication with the SD card 206.
  • the present invention also shows the connection relationship between the SDIO card 208 and the baseband chip 202 and the analog switch 204 by means of FIG.
  • the SDIO card 208 is connected to the analog switch 204 via the data line DATA [0:3], and is connected to the baseband chip 202 via a dedicated link GPIO INT.
  • the link GPIO INT set to transmit the abnormal signal on the SDIO card 208 is different from the link set between the baseband chip 202 and the SDIO card 208 for transmitting data (ie, the data line DATA). [0:3])
  • data ie, the data line DATA
  • DATA [0:3] is all used to transmit data, and transmits an abnormal signal on the link GPIO INT, which ensures that the baseband chip 202 can obtain the abnormal information of the SDIO card 208 in real time, and at the same time improve the data transmission efficiency.
  • the present invention also proposes another processing method.
  • the GPIO INT only transmits the SDIO exception when the processor communicates with the SD card 206.
  • the analog switch 204 switches back to the SDIO 208, the GPIO INT no longer transmits an abnormality.
  • SDIO's interrupt function is also detected by DAT [0: 3].
  • the baseband chip 202 and SDIO 208 communicate using the standard SDIO protocol, which makes the changes to the original system smaller and easier. achieve.
  • the present invention also provides a preferred switching device located in the above-described baseband chip 202, as shown in FIG. 4, between the storage element and the expansion element on the mobile terminal according to the embodiment of the present invention.
  • the switching device includes: a detecting unit 402 configured to detect the SDIO card 208 through the link GPIO INT during the first communication operation of the baseband chip 202 and the SD card 206 (for example, the first communication operation includes: a write operation)
  • An abnormal signal wherein the link GPIO INT is disposed between the baseband chip 202 and the SDIO card 208, and is configured to transmit an abnormal signal on the SDIO card 208;
  • the switching unit 404 is in communication with the detecting unit 402, and is configured to detect the abnormality
  • the first communication operation with the SD card 206 is stopped at the time of the signal, and the baseband chip 202 is switched to perform the second communication operation with the SDIO card 208 (for example, the second communication operation includes: a data transfer operation).
  • the switching device detects the abnormal signal on the extension component through the link during the communication operation with the storage element, so that the mobile terminal can respond to the abnormal signal on the expansion component in time, thereby solving the problem due to the baseband.
  • the problem of the expansion device abnormality caused by the interruption on the expansion device cannot be detected, thereby achieving the technical effect of seamless switching between the storage component and the expansion component.
  • the baseband chip 202 can also switch back to communicate with the SD card 206.
  • the present invention further provides a preferred switching unit 404, comprising: a determining module 4041, configured to determine the baseband chip 202 after the baseband chip 202 is switched to perform a second communication operation with the SDIO card 208. Whether the second communication operation between the SDIO cards 208 ends; the switching module 4042, in communication with the determination module 4041, is configured to switch the baseband chip 202 when it is determined that the second communication operation between the baseband chip 202 and the SDIO card 208 has ended. To communicate with the SD card 206. In the present embodiment, the baseband chip 202 can switch back to communicate with the SD card 206 after switching to the SDIO card 208 after implementing the immediate response exception signal.
  • the baseband chip 202 switches to the first communication operation performed prior to performing the disconnection with the SD card 206.
  • the baseband chip 202 can ensure the integrity of communication with the SD card 206 by performing the previous communication operation.
  • the abnormal signal may be an interrupt signal generated by the expansion element or an abnormality notification signal generated by the expansion element.
  • the transmission of the abnormal signal can be performed by different implementations.
  • Embodiment 2 Based on the switching device shown in Figures 2-4, the present invention also provides a preferred method of switching between a storage element and an expansion element on a mobile terminal.
  • a baseband chip, an SDIO, and an SD card are taken as an example to illustrate a switching method between a storage element and an expansion element.
  • the present invention is not limited to the baseband chip switching between the SDIO and the SD card, and can be applied to other processors. Switching between other storage elements and expansion elements. As shown in FIG. 5, a method for switching between a storage element and an expansion element on a mobile terminal includes the following steps:
  • the link GPIO INT is disposed between the baseband chip 202 and the SDIO card 208 for transmitting an abnormal signal on the SDIO card 208;
  • the baseband chip 202 stops the first communication operation with the SD card 206, and switches the baseband chip 202 to perform the second communication operation with the SDIO card 208.
  • the switching device detects the abnormal signal on the extension component through the link during the communication operation with the storage element, so that the mobile terminal can respond to the abnormal signal on the expansion component in time, thereby solving the problem due to the baseband.
  • the problem of the expansion device abnormality caused by the interruption on the expansion device cannot be detected, thereby achieving the technical effect of seamless switching between the storage component and the expansion component.
  • the baseband chip 202 can also switch back to communicate with the SD card 206.
  • the present invention also provides a preferred switching step, comprising: determining whether a second communication operation between the processor and the extension element ends; and if so, switching the processor to the storage The component communicates.
  • the baseband chip 202 can switch back to communicate with the SD card 206 after switching to the SDIO card 208 after implementing the immediate response exception signal.
  • the step of switching to the communication with the storage element comprises: performing the first communication operation performed before the disconnection between the processor and the storage element.
  • the baseband chip 202 can ensure the integrity of communication with the SD card 206 by performing the previous communication operation.
  • the abnormal signal may be an interrupt signal generated by the expansion element or an abnormality notification signal generated by the expansion element.
  • the transmission of the abnormal signal can be performed by different implementations.
  • the entire switching process is described in detail below with reference to FIG. 6.
  • the switching method between the storage element and the expansion element on the mobile terminal includes the following steps: S602, after receiving the interrupt signal of the SDIO card, the baseband chip 202 determines whether the analog switch 204 is currently located on the SD card, and SP determines whether the current baseband chip 202 is in communication with the SD card. If it is located, step S604 is performed, otherwise, step S606 is performed.
  • the operation of the SD card is suspended, and a multiplexing flag is set for the SD card, and the switching module 4042 switches the analog switch 204 to the SDIO card.
  • the baseband chip 202 processes the interrupt of the SDIO card.
  • the determining module 4041 determines whether the interrupt of the SDIO card is processed. If the processing is completed, the process goes to S610. Otherwise, the process proceeds to S608, and the determination is continued.
  • step S610 After the interrupt processing is completed, the determining module 4041 determines whether the SD card corresponds to the multiplexing flag. If the multiplexing flag is corresponding, the process goes to step S612. Otherwise, the process goes to step S614.
  • the operation of switching back to the SD card is implemented by multiplexing the flag.
  • the present invention is not limited thereto, and the operation of switching back to the SD card can be implemented by other similar forms.
  • the SD card is retried. Since the SD card operation is basically read and write, the real-time requirement is not high, and the SD card operation is suspended. If you try again, you can recover. The performance of the SD card will be affected by the point, but it will not affect the use.
  • the multiplexing of SDIO and SD is completed under the premise of sacrificing SD card performance.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a method and device for switching between a storage element and an expansion element on a mobile terminal. The method comprises: a processor on a mobile terminal detecting an abnormal signal on an expansion element through a link when performing a first communication operation with a storage element, the link being disposed between the processor and the expansion element for transmitting the abnormal signal; and if the abnormal signal is detected, the processor stopping the first communication operation with the storage element, and switching to perform a second communication operation with the expansion element. The present invention solves the problem that the interrupt on an expansion device cannot be detected during the communication between a baseband chip and a storage device and thereby causes abnormity of the expansion device, so that the technical effect of seamless switching between the storage element and the expansion element is achieved.

Description

移动终端上的存储元件与扩展元件之间的切换方法和装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种移动终端上的存储元件与扩展元件之 间的切换方法和装置。 背景技术  TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a method and apparatus for switching between a storage element and an expansion element on a mobile terminal. Background technique
SD ( Secure Digital, 安全数据) 是一种记忆卡的标准, 目前 SD卡已经成为诸如 手机, Ipad等手持装置的基本配置, 这些手持装置的基带芯片基本都有 SD卡控制器, 另外随着无线技术的发展, wifi技术在手机上的应用也越来越流行。 目前主流的 wifi 芯片大多数采用 SDIO ( Secure Digital I/O, 安全数据输入 /输出) 接口, SDIO接口是 基于 SD卡的接口, 与 SD卡的接口兼容, wifi芯片通过该 SDIO的接口与手持装置的 基带芯片相连接, 从而能够实现 wifi功能。 当 wifi芯片与 SDIO接口连接时可以被称 为 SDIO卡。 但是目前在一些中低端平台, 为了节约成本, 基带芯片上只提供一个 SD/SDIO卡 控制器, 由于 SDIO卡与 SD卡之间的协议问题, 同一条总线上不能同时支持 SDIO和 SD卡。在基带芯片只有一个控制器的情况下,通常的做法是在控制器和外围设备之间 增加一个模拟开关, 通过模拟开关来选择当前的设备是连接 SD卡还是 SDIO卡。 图 1是相关技术中的手持装置的结构框图,其包括:基带芯片 102、模拟开关 104、 SD卡 106和 SDIO卡 108, 其中, 模拟开关 104的一端与基带芯片 102相连, 另一端 与 SD卡 106和 SDIO 108连接。基带芯片 102通过一个 GPI0控制线控制模拟开关 104 实现 SDIO和 SD卡的选择。 虽然 SDIO卡是基于 SD卡, 在电气特性上与 SD卡也完全兼容, 但在协议上还是 有些区别的, SD卡比较适合于数据块的存储, SDIO主要用于设备的 10操作, SDIO 还有个明显的特征是可以响应外设的中断, 多一个中断信号, 为了做到与 SD卡兼容, 这个中断管脚位于数据线上, 在协议中定义了一个中断检测周期, 用于区分出中断信 号和数据信号, 这样可以做到数据线和中断信号的复用。 由于 SDIO中断的存在, 需 要 SD/SDI0控制器能做到快速及时的响应中断, 否则就会引起 wifi设备异常,连接中 断。 在使用上述手持装置通过 wifi芯片下载资料的过程中, 基带芯片 102需要通过模 拟开关 104在 SD卡 106和 SDIO卡 108之间来回切换, 以便下载的过程中将资料存 储在 SD卡中。 在切换的过程中, 若基带芯片 102当前与 SD卡 106通信的过程中, wifi 芯片产生异常或中断, 这时需要基带芯片 102 及时通过模拟开关 104 切换回与 SDIO卡 108进行通信。 在相关技术中, 由基带芯片 102通过时间调度在 SD卡 106 和 SDIO卡 108之间实现切换, 也就是说, 基带芯片 102预先设置好与 SD卡 106和 SDIO卡 108分别通信的时间。 但是由于基带芯片 102与 SD卡 106通信的过程中, 基带芯片 102与 SDIO卡 108之间的连接是断开的, 因此无法检测到 SDIO卡 108上 的异常信号, 因此, 可能无法及时响应上述信号, 并通过模拟开关 104切换回与 SDIO 卡 108进行通信, 这样 wifi的连接可能被中断。 发明内容 本发明提供了一种移动终端上的存储元件与扩展元件之间的切换方法和装置, 以 至少解决相关技术中由于在基带芯片与存储设备通信的过程中无法检测扩展设备上的 中断而导致的扩展设备异常的问题。 根据本发明的一个方面, 提供了一种移动终端上的存储元件与扩展元件之间的切 换方法, 其包括如下步骤: 移动终端上的处理器在与上述存储元件进行第一通信操作 的过程中通过链路检测上述扩展元件上的异常信号, 其中, 上述链路设置在上述处理 器与上述扩展元件之间, 用于传输上述异常信号; 若检测到上述异常信号, 则上述处 理器停止与上述存储元件的第一通信操作, 并切换至与上述扩展元件进行第二通信操 作。 在切换至与上述扩展元件进行第二通信操作之后, 上述切换方法还包括: 判断上 述处理器与上述扩展元件之间的第二通信操作是否结束; 若结束, 则上述处理器切换 至与上述存储元件进行通信。 切换至与上述存储元件进行通信的步骤包括: 在上述处理器与上述存储元件之间 执行断开前进行的上述第一通信操作。 上述异常信号为由上述扩展元件产生的中断信号, 或者, 由上述扩展元件产生的 异常通知信号。 上述链路不同于在上述处理器与上述扩展元件之间设置的用于传输数据的链路。 上述存储元件包括: SD卡; 上述扩展元件包括: SDIO卡。 根据本发明的另一方面, 提供了一种移动终端上的存储元件与扩展元件之间的切 换装置, 位于上述移动终端上的处理器中, 其包括: 检测单元, 设置为在上述处理器 与上述存储元件进行第一通信操作的过程中通过链路检测上述扩展元件上的异常信 号, 其中, 上述链路设置在上述处理器与上述扩展元件之间, 设置为传输上述异常信 号; 切换单元, 设置为在检测到上述异常信号时停止与上述存储元件的第一通信操作, 并将上述处理器切换至与上述扩展元件进行第二通信操作。 上述切换单元包括: 判断模块, 设置为在将上述处理器切换至与上述扩展元件进 行第二通信操作之后,判断上述处理器与上述扩展元件之间的第二通信操作是否结束; 切换模块, 设置为在判断出上述处理器与上述扩展元件之间的第二通信操作已结束时 将上述处理器切换至与上述存储元件进行通信。 上述切换模块还设置为在判断出上述处理器与上述扩展元件之间的第二通信操作 已结束时将上述处理器切换至与上述存储元件执行断开前进行的上述第一通信操作。 上述链路不同于在上述处理器与上述扩展元件之间设置的设置为传输数据的链 路。 通过本发明, 移动终端上的处理器在与存储元件进行通信操作的过程中通过链路 检测扩展元件上的异常信号, 这样, 移动终端能够及时响应扩展元件上的异常信号, 解决了由于在基带芯片与存储设备通信的过程中无法检测扩展设备上的中断而导致的 扩展设备异常的问题, 进而达到了存储元件和扩展元件的无缝切换的技术效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是相关技术中的手持装置的结构框图; 图 2是根据本发明实施例的移动终端上的存储元件与扩展元件之间的切换装置的 一种优选结构框图; 图 3是根据本发明实施例的 SDIO卡与基带芯片和模拟开关之间的连接示意图; 图 4是根据本发明实施例的移动终端上的存储元件与扩展元件之间的切换装置的 另一种优选结构框图; 图 5是根据本发明实施例的移动终端上的存储元件与扩展元件之间的切换方法的 一种优选流程图; 图 6是根据本发明实施例的移动终端上的存储元件与扩展元件之间的切换方法的 另一种优选流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 在以下各个实施例中, 通信可以由无线连接或有线连接或其两者的组合来实现, 本发明 对此不做限定。 实施例 1 本实施例以基带芯片、 SDIO和 SD卡为例说明存储元件和扩展元件之间的切换方 法, 但本发明不仅限于基带芯片在 SDIO和 SD卡之间实现切换, 还可以适用于其他 处理器在其他存储元件和扩展元件之间的切换。 图 2是根据本发明实施例的移动终端上的存储元件与扩展元件之间的切换装置的 一种优选结构框图, 其包括: 基带芯片 202、 与基带芯片 202通信的模拟开关 204、 与 模拟开关 204通信的 SD卡 206(存储元件的一种)和与 SD卡 206通信的 SDIO卡 208 (扩展元件的一种)。 在本优选的实施例中, 在 SDIO卡 208与基带芯片 202之间增 加了一条设置为检测 SDIO卡 208上异常信号的链路 GPIO INT。 通过这条链路 GPIO INT,基带芯片 202在与 SD卡 206通信的过程能够及时检测到 SDIO卡 208上的异常 信号。 为了明确链路 GPIO INT与数据线的关系, 本发明还通过图 3示出 SDIO卡 208 与基带芯片 202和模拟开关 204之间的连接关系。如图 3所示, SDIO卡 208通过数据 线 DATA【0:3】 与模拟开关 204连接, 并通过专设的链路 GPIO INT与基带芯片 202 连接。在本优选的实施例中, 设置为传输 SDIO卡 208上的异常信号的链路 GPIO INT 不同于在基带芯片 202与 SDIO卡 208之间设置的设置为传输数据的链路 (即, 数据 线 DATA【0:3】), 这样, 在基带芯片 202与 SDIO卡 208通信的过程中, 不需要在数 据线 DATA【0:3】 实现时分复用来分别传输数据和异常信号, 而可以将数据线 DATA 【0:3】全部用于传输数据, 并在链路 GPIO INT传输异常信号, 保证了基带芯片 202 可以实时得到 SDIO卡 208的异常信息, 同时提高了数据的传输效率。 优选的, 当然本发明还提出另外一种处理方法, GPIO INT只是在处理器与 SD卡 206通信的时候传输 SDIO的异常, 在模拟开关 204切换回 SDIO 208时, GPIO INT 便不再传输异常, SDIO的中断功能还是通过 DAT【0: 3】来检测, 即在模拟开关切 换回 SDIO 208后, 基带芯片 202与 SDIO 208的通信采用标准的 SDIO协议, 这样对 原本系统的改动比较小, 更加容易实现。 为了实现上述切换的目的, 本发明还提供了一种优选的切换装置, 位于上述的基 带芯片 202中, 如图 4所示, 根据本发明实施例的移动终端上的存储元件与扩展元件 之间的切换装置包括:检测单元 402,设置为在基带芯片 202与 SD卡 206进行第一通 信操作(例如,该第一通信操作包括:写操作)的过程中通过链路 GPIO INT检测 SDIO 卡 208上的异常信号, 其中, 链路 GPIO INT设置在基带芯片 202与 SDIO卡 208之 间, 设置为传输 SDIO卡 208上的异常信号; 切换单元 404, 与检测单元 402通信, 设置为在检测到上述异常信号时停止与 SD卡 206的第一通信操作,并将基带芯片 202 切换至与 SDIO卡 208进行第二通信操作 (例如, 该第二通信操作包括: 数据传输操 作)。 在上述优选的实施例中, 切换装置在与存储元件进行通信操作的过程中通过链路 检测扩展元件上的异常信号, 这样, 移动终端能够及时响应扩展元件上的异常信号, 解决了由于在基带芯片与存储设备通信的过程中无法检测扩展设备上的中断而导致的 扩展设备异常的问题, 进而达到了存储元件和扩展元件的无缝切换的技术效果。 在切换之后, 基带芯片 202还可以切换回与 SD卡 206通信。 为了实现该目的, 本发明还提供了一种优选的切换单元 404, 其包括: 判断模块 4041, 设置为在将基带 芯片 202切换至与 SDIO卡 208进行第二通信操作之后, 判断基带芯片 202与 SDIO 卡 208之间的第二通信操作是否结束; 切换模块 4042, 与判断模块 4041通信, 设置 为在判断出基带芯片 202与 SDIO卡 208之间的第二通信操作已结束时将基带芯片 202 切换至与 SD卡 206进行通信。 在本实施例中, 在实现即时响应异常信号而切换至与 SDIO卡 208通信之后, 基带芯片 202能够实现切换回与 SD卡 206进行通信。 优选的, 当切换回与所述存储元件进行通信时,基带芯片 202切换至与 SD卡 206 执行断开前进行的所述第一通信操作。 在本实施例中, 基带芯片 202通过执行之前的 通信操作能够保证与 SD卡 206通信的完整性。 优选的, 上述异常信号可以为由所述扩展元件产生的中断信号, 或者, 由所述扩 展元件产生的异常通知信号。 在本实施例中, 能够实现通过不同的实现方式来执行异 常信号的传输。 实施例 2 基于图 2-4所示出的切换装置, 本发明还提供了一种优选的移动终端上的存储元 件与扩展元件之间的切换方法。本实施例以基带芯片、 SDIO和 SD卡为例说明存储元 件和扩展元件之间的切换方法, 但本发明不仅限于基带芯片在 SDIO和 SD卡之间实 现切换, 还可以适用于其他处理器在其他存储元件和扩展元件之间的切换。 如图 5所示,移动终端上的存储元件与扩展元件之间的切换方法其包括如下步骤: SD (Secure Digital) is a standard for memory cards. Currently, SD cards have become the basic configuration of handheld devices such as mobile phones and Ipads. The baseband chips of these handheld devices basically have SD card controllers, and With the development of technology, the application of wifi technology on mobile phones is also becoming more and more popular. Most of the current mainstream wifi chips use the SDIO (Secure Digital I/O) interface. The SDIO interface is an SD card-based interface that is compatible with the SD card interface. The wifi chip passes the SDIO interface and the handheld device. The baseband chips are connected to enable the wifi function. When the wifi chip is connected to the SDIO interface, it can be called an SDIO card. However, at some low-end platforms, in order to save costs, only one SD/SDIO card controller is provided on the baseband chip. Due to the protocol problem between the SDIO card and the SD card, SDIO and SD cards cannot be supported on the same bus at the same time. In the case where the baseband chip has only one controller, it is common practice to add an analog switch between the controller and the peripheral device. The analog switch is used to select whether the current device is connected to an SD card or an SDIO card. 1 is a structural block diagram of a related art handheld device, including: a baseband chip 102, an analog switch 104, an SD card 106, and an SDIO card 108, wherein one end of the analog switch 104 is connected to the baseband chip 102, and the other end is connected to the SD card. 106 is connected to SDIO 108. The baseband chip 102 controls the analog switch 104 through a GPI0 control line to implement SDIO and SD card selection. Although the SDIO card is based on the SD card, it is fully compatible with the SD card in terms of electrical characteristics, but there are some differences in the protocol. The SD card is more suitable for data block storage. SDIO is mainly used for 10 operations of the device, SDIO also has An obvious feature is that it can respond to peripheral interrupts and have one more interrupt signal. In order to be compatible with the SD card, this interrupt pin is located on the data line. An interrupt detection period is defined in the protocol to distinguish the interrupt signal. And the data signal, so that the multiplexing of the data line and the interrupt signal can be achieved. Due to the existence of the SDIO interrupt, the SD/SDI0 controller needs to be able to respond quickly and promptly to interrupt, otherwise the wifi device will be abnormal and the connection will be interrupted. In the process of downloading data through the wifi chip using the above handheld device, the baseband chip 102 needs to switch back and forth between the SD card 106 and the SDIO card 108 through the analog switch 104, so that the data is stored in the SD card during the downloading process. In the process of switching, if the wifi chip is abnormal or interrupted during the process of the baseband chip 102 currently communicating with the SD card 106, the baseband chip 102 is required to switch back to the SDIO card 108 through the analog switch 104 in time. In the related art, switching is performed between the SD card 106 and the SDIO card 108 by the baseband chip 102 by time scheduling, that is, the baseband chip 102 is set in advance with time for communication with the SD card 106 and the SDIO card 108, respectively. However, since the connection between the baseband chip 102 and the SDIO card 108 is disconnected during the communication between the baseband chip 102 and the SD card 106, the abnormal signal on the SDIO card 108 cannot be detected, and therefore, the above signal may not be responded to in time. And switch back to the SDIO card 108 via the analog switch 104 so that the wifi connection may be interrupted. SUMMARY OF THE INVENTION The present invention provides a method and apparatus for switching between a storage element and an expansion element on a mobile terminal, to at least solve the problem in the related art that the interruption on the extension device cannot be detected during the communication between the baseband chip and the storage device. The resulting problem with extended device exceptions. According to an aspect of the present invention, a method for switching between a storage element and an expansion element on a mobile terminal is provided, the method comprising the steps of: the processor on the mobile terminal performing a first communication operation with the storage element Detecting, by the link, an abnormal signal on the extension component, wherein the link is disposed between the processor and the extension component for transmitting the abnormal signal; and if the abnormal signal is detected, the processor stops The first communication operation of the storage element is switched to a second communication operation with the expansion element described above. After switching to the second communication operation with the extension element, the switching method further includes: determining whether the second communication operation between the processor and the extension element ends; and if so, switching the processor to the storage The component communicates. The step of switching to communication with the storage element includes: performing the first communication operation performed before disconnection between the processor and the storage element. The abnormal signal is an interrupt signal generated by the expansion element or an abnormality notification signal generated by the expansion element. The above link is different from the link for transmitting data set between the above processor and the above-described extension element. The storage element includes: an SD card; the extension element includes: an SDIO card. According to another aspect of the present invention, there is provided a switching device between a storage element and an expansion element on a mobile terminal, the processor located on the mobile terminal, comprising: a detecting unit, configured to be in the processor and The storage element detects an abnormal signal on the extension element through a link during a first communication operation, wherein the link is disposed between the processor and the extension element, and is configured to transmit the abnormal signal; It is arranged to stop the first communication operation with the storage element when the abnormal signal is detected, and to switch the processor to perform a second communication operation with the extension element. The switching unit includes: a determining module configured to determine whether the second communication operation between the processor and the extension element ends after switching the processor to the second communication operation with the extension element; switching module, setting The processor is switched to communicate with the storage element when it is determined that the second communication operation between the processor and the extension element has ended. The switching module is further configured to switch the processor to the first communication operation performed before the disconnection of the storage element is performed, when it is determined that the second communication operation between the processor and the extension element has ended. The above link is different from the link set between the above processor and the above-described extension element to transmit data. According to the present invention, the processor on the mobile terminal detects the abnormal signal on the extension component through the link during the communication operation with the storage element, so that the mobile terminal can respond to the abnormal signal on the extension component in time, thereby solving the problem due to the baseband. During the process of communication between the chip and the storage device, the problem of the expansion device abnormality caused by the interruption on the expansion device cannot be detected, thereby achieving the technical effect of seamless switching between the storage component and the expansion component. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a configuration of a handheld device in a related art; FIG. 2 is a block diagram showing a preferred configuration of a switching device between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention; Is a schematic diagram of a connection between an SDIO card and a baseband chip and an analog switch according to an embodiment of the present invention; FIG. 4 is another preferred structure of a switching device between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention; block diagram; 5 is a preferred flowchart of a method of switching between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention; FIG. 6 is a diagram between a storage element and an expansion element on a mobile terminal according to an embodiment of the present invention; Another preferred flow chart of the switching method. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In the following embodiments, the communication may be implemented by a wireless connection or a wired connection or a combination of both, which is not limited by the present invention. Embodiment 1 This embodiment uses a baseband chip, an SDIO, and an SD card as an example to describe a switching method between a storage element and an expansion element. However, the present invention is not limited to the baseband chip switching between the SDIO and the SD card, and can be applied to other methods. The switching of the processor between other storage elements and expansion elements. 2 is a block diagram of a preferred configuration of a switching device between a storage element and an expansion element on a mobile terminal, including: a baseband chip 202, an analog switch 204 in communication with the baseband chip 202, and an analog switch, in accordance with an embodiment of the present invention. 204 communicates with an SD card 206 (one of the storage elements) and an SDIO card 208 (a type of expansion element) that communicates with the SD card 206. In the preferred embodiment, a link GPIO INT is provided between the SDIO card 208 and the baseband chip 202 to detect an abnormal signal on the SDIO card 208. Through this link GPIO INT, the baseband chip 202 can detect an abnormal signal on the SDIO card 208 in time during communication with the SD card 206. In order to clarify the relationship between the link GPIO INT and the data line, the present invention also shows the connection relationship between the SDIO card 208 and the baseband chip 202 and the analog switch 204 by means of FIG. As shown in FIG. 3, the SDIO card 208 is connected to the analog switch 204 via the data line DATA [0:3], and is connected to the baseband chip 202 via a dedicated link GPIO INT. In the preferred embodiment, the link GPIO INT set to transmit the abnormal signal on the SDIO card 208 is different from the link set between the baseband chip 202 and the SDIO card 208 for transmitting data (ie, the data line DATA). [0:3]) Thus, in the process of the baseband chip 202 communicating with the SDIO card 208, it is not necessary to implement time division multiplexing on the data lines DATA[0:3] to respectively transmit data and abnormal signals, and the data lines can be transmitted. DATA [0:3] is all used to transmit data, and transmits an abnormal signal on the link GPIO INT, which ensures that the baseband chip 202 can obtain the abnormal information of the SDIO card 208 in real time, and at the same time improve the data transmission efficiency. Preferably, the present invention also proposes another processing method. The GPIO INT only transmits the SDIO exception when the processor communicates with the SD card 206. When the analog switch 204 switches back to the SDIO 208, the GPIO INT no longer transmits an abnormality. SDIO's interrupt function is also detected by DAT [0: 3]. After the analog switch is switched back to SDIO 208, the baseband chip 202 and SDIO 208 communicate using the standard SDIO protocol, which makes the changes to the original system smaller and easier. achieve. In order to achieve the above-described switching, the present invention also provides a preferred switching device located in the above-described baseband chip 202, as shown in FIG. 4, between the storage element and the expansion element on the mobile terminal according to the embodiment of the present invention. The switching device includes: a detecting unit 402 configured to detect the SDIO card 208 through the link GPIO INT during the first communication operation of the baseband chip 202 and the SD card 206 (for example, the first communication operation includes: a write operation) An abnormal signal, wherein the link GPIO INT is disposed between the baseband chip 202 and the SDIO card 208, and is configured to transmit an abnormal signal on the SDIO card 208; the switching unit 404 is in communication with the detecting unit 402, and is configured to detect the abnormality The first communication operation with the SD card 206 is stopped at the time of the signal, and the baseband chip 202 is switched to perform the second communication operation with the SDIO card 208 (for example, the second communication operation includes: a data transfer operation). In the above preferred embodiment, the switching device detects the abnormal signal on the extension component through the link during the communication operation with the storage element, so that the mobile terminal can respond to the abnormal signal on the expansion component in time, thereby solving the problem due to the baseband. During the process of communication between the chip and the storage device, the problem of the expansion device abnormality caused by the interruption on the expansion device cannot be detected, thereby achieving the technical effect of seamless switching between the storage component and the expansion component. After switching, the baseband chip 202 can also switch back to communicate with the SD card 206. In order to achieve the object, the present invention further provides a preferred switching unit 404, comprising: a determining module 4041, configured to determine the baseband chip 202 after the baseband chip 202 is switched to perform a second communication operation with the SDIO card 208. Whether the second communication operation between the SDIO cards 208 ends; the switching module 4042, in communication with the determination module 4041, is configured to switch the baseband chip 202 when it is determined that the second communication operation between the baseband chip 202 and the SDIO card 208 has ended. To communicate with the SD card 206. In the present embodiment, the baseband chip 202 can switch back to communicate with the SD card 206 after switching to the SDIO card 208 after implementing the immediate response exception signal. Preferably, when switching back to communicate with the storage element, the baseband chip 202 switches to the first communication operation performed prior to performing the disconnection with the SD card 206. In the present embodiment, the baseband chip 202 can ensure the integrity of communication with the SD card 206 by performing the previous communication operation. Preferably, the abnormal signal may be an interrupt signal generated by the expansion element or an abnormality notification signal generated by the expansion element. In this embodiment, the transmission of the abnormal signal can be performed by different implementations. Embodiment 2 Based on the switching device shown in Figures 2-4, the present invention also provides a preferred method of switching between a storage element and an expansion element on a mobile terminal. In this embodiment, a baseband chip, an SDIO, and an SD card are taken as an example to illustrate a switching method between a storage element and an expansion element. However, the present invention is not limited to the baseband chip switching between the SDIO and the SD card, and can be applied to other processors. Switching between other storage elements and expansion elements. As shown in FIG. 5, a method for switching between a storage element and an expansion element on a mobile terminal includes the following steps:
S502, 在基带芯片 202与 SD卡 206进行第一通信操作 (例如, 该第一通信操作 包括: 写操作) 的过程中通过链路 GPIO INT检测 SDIO卡 208上的异常信号, 其中, 链路 GPIO INT设置在基带芯片 202与 SDIO卡 208之间, 用于传输 SDIO卡 208上 的异常信号; S502, detecting an abnormal signal on the SDIO card 208 through the link GPIO INT during the first communication operation of the baseband chip 202 and the SD card 206 (for example, the first communication operation includes: a write operation), wherein the link GPIO INT is disposed between the baseband chip 202 and the SDIO card 208 for transmitting an abnormal signal on the SDIO card 208;
S504, 若检测到所述异常信号, 则基带芯片 202停止与 SD卡 206的第一通信操 作, 并将基带芯片 202切换至与 SDIO卡 208进行第二通信操作。 在上述优选的实施例中, 切换装置在与存储元件进行通信操作的过程中通过链路 检测扩展元件上的异常信号, 这样, 移动终端能够及时响应扩展元件上的异常信号, 解决了由于在基带芯片与存储设备通信的过程中无法检测扩展设备上的中断而导致的 扩展设备异常的问题, 进而达到了存储元件和扩展元件的无缝切换的技术效果。 在切换之后, 基带芯片 202还可以切换回与 SD卡 206通信。 为了实现该目的, 本发明还提供了一种优选的切换步骤, 其包括: 判断上述处理器与上述扩展元件之间 的第二通信操作是否结束; 若结束, 则上述处理器切换至与上述存储元件进行通信。 在本实施例中, 在实现即时响应异常信号而切换至与 SDIO卡 208通信之后, 基带芯 片 202能够实现切换回与 SD卡 206进行通信。 优选的, 切换至与上述存储元件进行通信的步骤包括: 在上述处理器与上述存储 元件之间执行断开前进行的上述第一通信操作。 在本实施例中, 基带芯片 202通过执 行之前的通信操作能够保证与 SD卡 206通信的完整性。 优选的, 上述异常信号可以为由所述扩展元件产生的中断信号, 或者, 由所述扩 展元件产生的异常通知信号。 在本实施例中, 能够实现通过不同的实现方式来执行异 常信号的传输。 下面结合图 6来详细描述整个切换过程, 如图 6所示, 移动终端上的存储元件与 扩展元件之间的切换方法包括如下步骤: S602,基带芯片 202在接收到 SDIO卡的中断信号后,判断模块判断模拟开关 204 当前是否位于 SD卡上, SP, 判断当前基带芯片 202是否与 SD卡通信。若位于, 则执 行步骤 S604, 否则, 执行步骤 S606。 S504, if the abnormal signal is detected, the baseband chip 202 stops the first communication operation with the SD card 206, and switches the baseband chip 202 to perform the second communication operation with the SDIO card 208. In the above preferred embodiment, the switching device detects the abnormal signal on the extension component through the link during the communication operation with the storage element, so that the mobile terminal can respond to the abnormal signal on the expansion component in time, thereby solving the problem due to the baseband. During the process of communication between the chip and the storage device, the problem of the expansion device abnormality caused by the interruption on the expansion device cannot be detected, thereby achieving the technical effect of seamless switching between the storage component and the expansion component. After switching, the baseband chip 202 can also switch back to communicate with the SD card 206. In order to achieve the object, the present invention also provides a preferred switching step, comprising: determining whether a second communication operation between the processor and the extension element ends; and if so, switching the processor to the storage The component communicates. In the present embodiment, the baseband chip 202 can switch back to communicate with the SD card 206 after switching to the SDIO card 208 after implementing the immediate response exception signal. Preferably, the step of switching to the communication with the storage element comprises: performing the first communication operation performed before the disconnection between the processor and the storage element. In the present embodiment, the baseband chip 202 can ensure the integrity of communication with the SD card 206 by performing the previous communication operation. Preferably, the abnormal signal may be an interrupt signal generated by the expansion element or an abnormality notification signal generated by the expansion element. In this embodiment, the transmission of the abnormal signal can be performed by different implementations. The entire switching process is described in detail below with reference to FIG. 6. As shown in FIG. 6, the switching method between the storage element and the expansion element on the mobile terminal includes the following steps: S602, after receiving the interrupt signal of the SDIO card, the baseband chip 202 determines whether the analog switch 204 is currently located on the SD card, and SP determines whether the current baseband chip 202 is in communication with the SD card. If it is located, step S604 is performed, otherwise, step S606 is performed.
S604, 中止 SD卡的操作, 并为 SD卡设置一个复用标志, 切换模块 4042将模拟 开关 204切换到 SDIO卡上。 S604, the operation of the SD card is suspended, and a multiplexing flag is set for the SD card, and the switching module 4042 switches the analog switch 204 to the SDIO card.
S606, 基带芯片 202对 SDIO卡的中断进行处理。 S606, the baseband chip 202 processes the interrupt of the SDIO card.
S608, 判断模块 4041判断 SDIO卡的中断是否处理完, 若处理完, 则转至 S610, 否则, 执行 S608, 继续判断。 S608. The determining module 4041 determines whether the interrupt of the SDIO card is processed. If the processing is completed, the process goes to S610. Otherwise, the process proceeds to S608, and the determination is continued.
S610, 在中断处理完后, 判断模块 4041判断 SD卡是否对应有复用标记, 若对应 有复用标记, 则转至步骤 S612, 否则转至步骤 S614。 S610. After the interrupt processing is completed, the determining module 4041 determines whether the SD card corresponds to the multiplexing flag. If the multiplexing flag is corresponding, the process goes to step S612. Otherwise, the process goes to step S614.
S612, 如果 SD卡对应有复用标记, 则说明 SD卡被抢占过, 将模拟开关切换到 SD卡上, 对 SD卡进行重写或者重读。 S612, if the SD card has a multiplexing mark, the SD card is preempted, and the analog switch is switched to the SD card to rewrite or reread the SD card.
S614, 执行其他处理操作。 在上述的优选实施例中, 通过复用标志来实现切换回 SD卡的操作, 这只是一种 示例, 本发明不仅限于此, 还可以通过其他的类似形式来实现切换回 SD卡的操作。 在本实施例提供的技术方案中, 采用在对 SDIO异常处理完后, 再对 SD卡进行 重试操作, 由于 SD卡操作基本就是读写, 对实时性要求不高, SD卡操作被中止后再 进行重试就可以恢复, SD卡性能会受点影响, 但不影响使用。 在稍微牺牲 SD卡性能 的前提下完成 SDIO和 SD的复用。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 S614, performing other processing operations. In the above preferred embodiment, the operation of switching back to the SD card is implemented by multiplexing the flag. This is merely an example. The present invention is not limited thereto, and the operation of switching back to the SD card can be implemented by other similar forms. In the technical solution provided by the embodiment, after the SDIO exception is processed, the SD card is retried. Since the SD card operation is basically read and write, the real-time requirement is not high, and the SD card operation is suspended. If you try again, you can recover. The performance of the SD card will be affected by the point, but it will not affect the use. The multiplexing of SDIO and SD is completed under the premise of sacrificing SD card performance. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种移动终端上的存储元件与扩展元件之间的切换方法, 包括如下步骤: 移动终端上的处理器在与存储元件进行第一通信操作的过程中通过链路检 测扩展元件上的异常信号, 其中, 所述链路设置在所述处理器与所述扩展元件 之间, 用于传输所述异常信号; A method for switching between a storage element and an expansion element on a mobile terminal, comprising the steps of: detecting, by the processor on the mobile terminal, an abnormality on the extension element through a link during a first communication operation with the storage element a signal, wherein the link is disposed between the processor and the extension component, and configured to transmit the abnormal signal;
若检测到所述异常信号, 则所述处理器停止与所述存储元件的第一通信操 作, 并切换至与所述扩展元件进行第二通信操作。  If the abnormality signal is detected, the processor stops the first communication operation with the storage element and switches to a second communication operation with the expansion element.
2. 根据权利要求 1所述的方法, 其中, 在切换至与所述扩展元件进行第二通信操 作之后, 还包括: 2. The method according to claim 1, wherein, after switching to the second communication operation with the extension element, the method further comprises:
判断所述处理器与所述扩展元件之间的第二通信操作是否结束; 若结束, 则所述处理器切换至与所述存储元件进行通信。  Determining whether the second communication operation between the processor and the extension element ends; if so, the processor switches to communicate with the storage element.
3. 根据权利要求 2所述的方法, 其中, 切换至与所述存储元件进行通信的步骤包 括: 3. The method of claim 2, wherein the step of switching to communicating with the storage element comprises:
在所述处理器与所述存储元件之间执行断开前进行的所述第一通信操作。  The first communication operation performed before the disconnection is performed between the processor and the storage element.
4. 根据权利要求 1所述的方法, 其中, 所述异常信号为由所述扩展元件产生的中 断信号, 或者, 由所述扩展元件产生的异常通知信号。 The method according to claim 1, wherein the abnormality signal is an interrupt signal generated by the expansion element, or an abnormality notification signal generated by the expansion element.
5. 根据权利要求 1所述的方法, 其中, 所述链路不同于在所述处理器与所述扩展 元件之间设置的用于传输数据的链路。 5. The method of claim 1, wherein the link is different from a link for transmitting data set between the processor and the expansion element.
6. 根据权利要求 1所述的方法, 其中, 所述存储元件包括: SD卡; 所述扩展元件 包括: SDIO卡。 6. The method according to claim 1, wherein the storage element comprises: an SD card; the expansion element comprises: an SDIO card.
7. 一种移动终端上的存储元件与扩展元件之间的切换装置, 位于所述移动终端上 的处理器中, 包括: A switching device between a storage element and an expansion element on a mobile terminal, located in the processor on the mobile terminal, comprising:
检测单元, 设置为在所述处理器与所述存储元件进行第一通信操作的过程 中通过链路检测所述扩展元件上的异常信号, 其中, 所述链路设置在所述处理 器与所述扩展元件之间, 用于传输所述异常信号;  a detecting unit configured to detect an abnormal signal on the expansion element through a link during a first communication operation between the processor and the storage element, wherein the link is set in the processor and the Between the expansion elements, for transmitting the abnormal signal;
切换单元, 设置为在检测到所述异常信号时停止与所述存储元件的第一通 信操作, 并将所述处理器切换至与所述扩展元件进行第二通信操作。 根据权利要求 7所述的装置, 其中, 所述切换单元包括: 判断模块, 设置为在将所述处理器切换至与所述扩展元件进行第二通信操 作之后, 判断所述处理器与所述扩展元件之间的第二通信操作是否结束; 切换模块, 设置为在判断出所述处理器与所述扩展元件之间的第二通信操 作已结束时将所述处理器切换至与所述存储元件进行通信。 根据权利要求 8所述的装置, 其中, 所述切换模块还设置为在判断出所述处理器与所述扩展元件之间的第二通 信操作已结束时将所述处理器切换至与所述存储元件执行断开前进行的所述第 一通信操作。 根据权利要求 8所述的装置, 其中, 所述链路不同于在所述处理器与所述扩展元件之间设置的设置为传输数据 的链路。 The switching unit is configured to stop the first communication operation with the storage element when the abnormality signal is detected, and to switch the processor to perform a second communication operation with the expansion element. The apparatus according to claim 7, wherein the switching unit comprises: a determining module configured to determine the processor and the after switching the processor to perform a second communication operation with the extension element Whether the second communication operation between the expansion elements ends; the switching module being configured to switch the processor to the storage when it is determined that the second communication operation between the processor and the extension element has ended The component communicates. The apparatus according to claim 8, wherein the switching module is further configured to switch the processor to the same when it is determined that a second communication operation between the processor and the extension element has ended The storage element performs the first communication operation performed before disconnection. The apparatus according to claim 8, wherein the link is different from a link set between the processor and the extension element to transmit data.
PCT/CN2011/082161 2011-08-09 2011-11-14 Method and device for switching between storage element and expansion element on mobile terminal WO2012151897A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110227414.4 2011-08-09
CN2011102274144A CN102929749A (en) 2011-08-09 2011-08-09 Method and device for switching storage element and extension element on mobile terminal

Publications (1)

Publication Number Publication Date
WO2012151897A1 true WO2012151897A1 (en) 2012-11-15

Family

ID=47138697

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/082161 WO2012151897A1 (en) 2011-08-09 2011-11-14 Method and device for switching between storage element and expansion element on mobile terminal

Country Status (2)

Country Link
CN (1) CN102929749A (en)
WO (1) WO2012151897A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791513A (en) * 2014-12-22 2016-07-20 深圳富泰宏精密工业有限公司 Anomaly processing system and method for baseband chips

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008079B (en) * 2014-05-29 2017-04-12 广州视源电子科技股份有限公司 Data reading and writing circuit capable of simultaneously inserting SD (secure digital memory) card and TF (trans-flash) card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144385A1 (en) * 2003-12-30 2005-06-30 Mowery Keith R. Interfacing multiple flash memory cards to a computer system
CN1773474A (en) * 2004-07-07 2006-05-17 赛骑有限公司 Sharing single host controller with multiple functional devices
US20080077722A1 (en) * 2006-09-26 2008-03-27 Xinyue Tang Extending secure digital input ouput capability on a controller bus
CN101430671A (en) * 2008-11-07 2009-05-13 宇龙计算机通信科技(深圳)有限公司 Mobile terminal peripherals coexisting apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2884331Y (en) * 2006-01-26 2007-03-28 深圳市泰嘉乐科技开发有限公司 Read-write device having double storage-card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144385A1 (en) * 2003-12-30 2005-06-30 Mowery Keith R. Interfacing multiple flash memory cards to a computer system
CN1773474A (en) * 2004-07-07 2006-05-17 赛骑有限公司 Sharing single host controller with multiple functional devices
US20080077722A1 (en) * 2006-09-26 2008-03-27 Xinyue Tang Extending secure digital input ouput capability on a controller bus
CN101430671A (en) * 2008-11-07 2009-05-13 宇龙计算机通信科技(深圳)有限公司 Mobile terminal peripherals coexisting apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791513A (en) * 2014-12-22 2016-07-20 深圳富泰宏精密工业有限公司 Anomaly processing system and method for baseband chips

Also Published As

Publication number Publication date
CN102929749A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
JP2006024217A (en) Method for sharing single host controller with multiple functional devices
CN101287221A (en) Information transferring method between intelligent bi-mode mobile phone and wireless modem
US20090268743A1 (en) Data transmission bridge device and control chip thereof for transmitting data
US20110117847A1 (en) Electronic apparatus and communication control method
US8804008B2 (en) Data processing apparatus and method of controlling same
KR20190065101A (en) An electronic device for transmitting and receiving data in a wireless communication system and a method thereof
US20150169484A1 (en) Active USB device and switching method for operating mode thereof
WO2022037176A1 (en) Inter-core communication method and apparatus, electronic assembly, and electronic device
US8407390B2 (en) Method and apparatus for data processing
JP5069722B2 (en) Mobile communication terminal and data download method
WO2014023247A1 (en) Embedded device and method for control data communication based on the device
US8737419B2 (en) Network concentrator and method of controlling the same
CN103650401A (en) Internal communication method for mobile terminal
WO2012151897A1 (en) Method and device for switching between storage element and expansion element on mobile terminal
WO2018018853A1 (en) Control apparatus and method for peripheral bus
CA2993692C (en) Multi-use near field communication front end on a point of sale system
CN109542812A (en) Data communication control method, device and terminal device
CN110300405A (en) A kind of device and method for realizing SIM card switching
CN113282532B (en) Communication device, communication method of communication device and electronic equipment
CN107402898B (en) Information processing method and electronic equipment
CN102004629A (en) Method, device and paster card for forwarding control
US9317248B2 (en) Information processing device, subsystem, information processing method, and recording medium storing information processing program
JP2014168144A (en) Communication method and switching hub
WO2017075997A1 (en) Method and apparatus for starting android debug bridge, and terminal
JP4156336B2 (en) Communication device, location information registration method, and transmission method

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: 11864967

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11864967

Country of ref document: EP

Kind code of ref document: A1