Method for interfacing with a memory card to access a program instruction
A method for interfacing with a memory card is provided. In this method, a selection of a program instruction is provided and the program instruction associated with the selection is read from the memory card. The program instruction thereafter is executed. Systems and computing devices for interfacing with the memory card also are described.
This application is related to U.S. Patent Application No. ______ (Attorney Docket No. SAN-011), filed on Aug. 25, 2006, and entitled “System and Computing Device for Interfacing with a Memory Card to Access a Program Instruction,” the disclosure of which is incorporated herein by reference.
FIELD OF THE INVENTIONThe present invention relates generally to memory technologies and, more particularly, to methods and systems for interfacing with a memory card to access a program instruction.
BACKGROUNDSome applications stored in a computing device cannot be modified or updated once the applications are compiled and loaded into the computing device. For example, mobile phones with resource-constrained environments (e.g., small memory, slow processors, etc.) include operating systems that are compact and have limited functionalities. Such operating systems typically cannot be modified because the operating systems do not include update functionalities and/or cannot be modified for security purposes, such as to prevent viruses from modifying the operating systems.
Such mobile phones therefore cannot load patches to update their operating systems with new functionalities. For example, the menus associated with an operating system cannot be changed. In another example, to interface with a secure memory card, the operating system is preprogrammed to transmit a set of commands to the secure memory card. Such commands include, for example, a command to retrieve information associated with the secure memory card for use in digital rights management of data. A new secure memory card, for example, may include new functionalities that require the transmittal of a different set of existing commands. Since the operating system of the mobile phone cannot be updated, the mobile phone cannot support the new set of existing commands. As a result, the mobile phone cannot be adapted to interface with new or unsupported secure memory cards.
As a result, there is a further need for continuing efforts to improve the functionalities of computing devices.
SUMMARYVarious embodiments of the present invention provide methods, systems, and/or computing devices for interfacing with a memory card. It should be appreciated that the embodiments can be implemented in numerous ways, including as a method, a circuit, a system, or a device. Several embodiments of the present invention are described below.
In accordance with an embodiment of the invention, a method for interfacing with a memory card is provided. In this method, a selection of a program instruction is provided and the program instruction associated with the selection is read from the memory card. Thereafter, the program instruction is executed.
Other embodiments and advantages of the invention are apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the invention.
The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, and like reference numerals designate like structural elements.
A detailed description of one or more embodiments is provided below along with accompanying figures. The detailed description is provided in connection with such embodiments, but is not limited to any particular embodiment. The scope is limited only by the claims and numerous alternatives, modifications, and equivalents are encompassed. Numerous specific details are set forth in the following description in order to provide a thorough understanding. These details are provided for the purpose of example and the described embodiments may be implemented according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the embodiments has not been described in detail to avoid unnecessarily obscuring the description.
The embodiments described herein provide methods, systems, and/or computing devices for interfacing with a memory card to access program instructions. In general, the program instructions are stored in a memory card. As will be explained in more detail below, in some embodiments, a selection of one or more program instructions are provided. Thereafter, the one or more program instructions associated with the selection are read from the memory card and executed.
Host computing device 114, as will be explained in more detail below, includes a memory for storing application 104 and program instruction driver 106, and a processor for executing the application and the program instruction driver. Application 104 may include a variety of program applications. For example, application 104 may be an operating system that manages the hardware and software resources on host computing device 114. In another example, application 104 may be a multimedia player configured for playing audio and video files. Additionally, for example, application 104 may be a video game. Application 104 interfaces with program instruction driver 106 and may use the program instruction driver to access a program instruction stored in memory card 116. As will be explained in more detail below, in an embodiment, program instruction driver 106 can be configured to read a program instruction stored in memory card 116 and to execute the program instruction. Program instruction driver 106 can be associated with application 104 or can be a separate program stored in memory of host computing device 114. For example, in one embodiment, application 104 is an operating system and program instruction driver 106 is associated with the operating system. In other words, program instruction driver 106 can be integrated into the operating system.
In communication with content protection platform module 204 and digital rights management module 208 is secure mobile module 206. Secure mobile module 206, in general, provides secured transmission to and from portable host computing devices. Secure mobile module 206 can include a cryptographic engine for encryption and decryption operations. For example, secure mobile module 206 may include public key infrastructure (PKI) algorithms for encryption and authentication of electronic transmissions, thereby allowing a portable host computing device to perform, for example, secure online financial transactions. Examples of secure online financial transactions include credit card payments, one-time password authentication, mass-transit access, and other transactions.
Program instruction engine module 216, which is in communication with secure mobile module, is configured to read and execute one or more program instructions. A program instruction, in general, can be a programming language or code. Programming languages include scripts, applets, and other programming languages. A script may, for example, include a list of commands to interface and/or communicate with memory cards, operating systems, and other hardware and software applications. For example, the commands may be a basic set of instructions to read and write data to memory card 116. Other examples of scripts include JavaScript, JScript, Ch, AppleScript, Tool Command Language (Tcl), and other scripting languages. A program instruction can also include code, such as machine code, which can be directly processed by a processor. The program instruction may also be an intermediate code. In general, a programming language can be compiled into an intermediate code, such as bytecode, p-Code, and other intermediate codes. The intermediate code can then be compiled into machine code.
The execution of a program instruction may include the interpretation or compilation of the program instruction. As a result, program instruction engine module 216 may include an interpreter and/or a compiler. It should be appreciated that a compiler translates a programming instruction into another programming instruction. For example, the compiler may translate a high-level programming language, such as bytecode, into a low-level code, such as machine code. In general, an interpreter executes or runs the program instruction. Program instruction engine module 216 reads and executes the program instructions to perform computing operations. A program instruction may be used to provide additional functions to the host computing device. Examples of features include the use of a program instruction to validate memory card 116 or a host computing device (i.e., authentication) such that the host computing device can communicate with the memory card in secure mode. In another example, the program instruction may be use to load and initiate another application stored in memory card 116. In yet another example, the program instruction may be used to modify application 104 (e.g., an operating system).
In communication with program instruction engine module 216 is file system module 210. File system module 210 is configured to handle access of program instructions stored in memory card 116. For example, file system module 210 can read program instructions from memory card 116 and can transmit the program instructions to program instruction engine module 216 for execution. Application driver module 214, which is in communication with file system module 210, includes the commands for application 104 to communicate with memory card 116 or for the memory card to communicate with the application. For example, application driver module 214 may receive commands from application 104 and translate the received commands into commands for memory card 116. It should be noted that program instruction driver 106 may interface with memory card 116 that is secured (i.e., a secured memory card). There are a variety of secured memory cards, examples being sold under the trademarks Secure Digital, MultiMediaCard, MiniSD, MicroSD, and other secured memory cards. To interface with memory card 116 that is secured, application driver module 214, for example, may include a secure storage application (SSA) driver module. In communication with application driver module 214 is device driver module 212. Device driver module 212 is configured to interface application driver module 214 with memory card 116. Device driver module 212 may, for example, include the lower-level interface functions to communicate with memory card 116. An example of a lower-level interface function include input/out functions associated with input and output of data to and from memory card 116.
It should be appreciated that in other embodiments, program instruction driver 106 may include fewer or more modules apart from those shown in
With the selection of the program instruction provided, the program instruction associated with the selection is read from the memory card in operation 304. In other words, the program instruction is retrieved from the memory card. The program instruction is stored in the memory card and the program instruction may be stored in a variety of data structures. Examples of data structures include tables, arrays, electronic documents, and other data structures. The program instruction, for example, may be stored in the data structures as plain text (e.g., American Standard Code for Information Interchange (ASCII) characters). After the program instruction is read, the program instruction is executed in operation 306.
The above Table A is organized in rows and columns. Elements associated with the column “script” include the scripts. Elements associated with the column “program instruction identifier” include the program instruction identifiers associated with the scripts. Here, the scripts “send card command xxx,” “send card command xxx get R data,” and “host display R” are associated with the program instruction identifier “get list of last ten transactions.” Similarly, the scripts “send card command xxx,” “send card command xxx get Y data,” and “host display Y” are associated with the program instruction identifier “get list of last five transactions.” It should be noted that program instruction identifiers can be organized into groups and subgroups. For example, as shown in Table A, the program instruction identifiers “get list of last ten transactions” and “get list of last five transactions” are organized into a group identified by program instruction identifier “American Credit Card Company.” Accordingly, the scripts shown in Table A are associated with the program instruction identifier “American Credit Card Company” and either the program instruction identifier “get list of last ten transactions” or the program instruction identifier “get list of last five transactions.”
After the program instruction identifiers are read from the memory card, the program instruction identifiers are communicated to an application (e.g., an operating system) in operation 404. The application may provide the program instruction identifiers in a GUI for selection. In an embodiment, the application may display the program instruction identifiers in a GUI to a user for selection. For example, the program instruction identifiers may be displayed in a menu as selectable menu items. In general, a menu is a list of commands presented to a user. The user may select one or more program instruction identifiers displayed in the GUI. In other words, the program instruction identifiers are configured to be selected from the GUI. Since program instructions are associated with the program instruction identifiers, a selection of a program instruction identifier provides a selection of the associated program instruction.
The program instruction identifiers may be provided in a variety of GUIs. Examples of GUIs include buttons, menus, scroll bars, and other GUIs.
It should be appreciated that a variety of suitable layouts can be designed for region layouts illustrated above as
Returning to
The above Table B is organized in rows and columns. Elements associated with the column “script” include the scripts. Elements associated with the column “program instruction identifier” include the program instruction identifiers associated with the scripts. Elements associated with the column “expected response” include the expected responses associated with the scripts. For example, as shown in Table B, the expected response “Rsuccess=sessionID and secure channel” is associated with the script “send command xxx with response.” In another example, the expected response “Rsuccess=one-time password value/secure” is associated with the script “send command xxx/secure.”
After the program instructions and the associated expected response are read from the memory card, one of the program instructions (e.g., a first program instruction) is executed in operation 506. As a result of the execution, a response may be received in operation 508. In an embodiment, if a response is received, the response may be compared with the expected response in operation 510 to determine whether the program instruction was executed correctly. In another embodiment, the response may not be compared with the expected response. As shown in operation 512, if the received response matches the expected response, then a verification is made in operation 514 to determine whether the program instruction is the last program instruction associated with a program instruction identifier. In other words, verification is made in operation 514 to determine whether there are additional unexpected program instructions. If the program instruction is the last program instruction or all the program instructions are executed, then the operation ends. On the other hand, if the program instruction is not the last program instruction, then a next program instruction associated with the program instruction identifier (e.g., a second program instruction) is referenced in operation 516. In other words, the program instruction driver then jumps to an unexecuted program instruction that may located after the executed program instruction. The next program instruction is executed in operation 506 and operations 506, 508, 510, 512, and 514 are repeated for each program instruction associated with the selected program instruction identifier until all the program instructions are executed.
In an illustrative example, the scripts stored in the above-referenced Table B are configured to retrieve a one-time password from a memory card. In general, a one-time password is a password that may be used to access a variety of logon systems. Once the one-time password is used, the one-time password cannot be used again as the logon system expects a new one-time password at the next logon.
The scripts associated with Table B are configured for the host computing device to retrieve one-time passwords from the memory card for use with a virtual private network by the above-described method. In the example of Table B, to retrieve a one-time password, the scripts and expected responses associated with program instruction identifier “get one-time password from virtual private network” are read from Table B. The first script “start authentication: mutual AES” is executed and, as a result, a response is received. The received response is compared with the associated expected response “Rsuccess=card challenge.” If the response matches the expected response “Rsuccess=card challenge,” then the next script “use method x to compute response” is executed. If the response does not match the expected response, then the execution of the script “start authentication: mutual AES” was not successful. As a result, the script “start authentication: mutual AES” is executed again. The operations described above may be repeated as needed for each script associated with the script identifier “get one-time password from virtual private network” such that a one-time password value is retrieved from the memory card for use with a virtual private network.
In some embodiments, host computing device 114 performs operations by processor 804 when executing one or more sequences of one or more program instructions stored in memory 806. Such program instructions may be read into memory 806 from another computer readable medium, such as storage device 808. In some embodiments, hard-wired circuitry may be used in place of or in combination with software program instructions to implement embodiments of the invention.
It should be appreciated that the term “computer readable medium” refers to suitable medium that participates in providing program instructions to processor 804 for execution. Such a medium may take many forms, including but not limited to, non-volatile media, volatile media, and transmission media. Non-volatile media may include, for example, optical or magnetic disks, such as storage device 808. Volatile media may include dynamic memory, such as memory 806. Transmission media includes coaxial cables, copper wire, and fiber optics, including wires that comprise bus 802. Transmission media can also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications. Common forms of computer readable media includes, for example, magnetic mediums (e.g., floppy disk, flexible disk, hard disk, and other magnetic mediums), optical mediums (e.g., compact disc read-only memory (CD-ROM) and other optical mediums), memory chips, memory cards, or cartridges (e.g., RAM, programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), flash memory, and other memory chips, cards, or cartridges), carrier waves, and any other medium from which host computing device 114 can read.
In some embodiments, execution of the sequences of program instructions to practice the embodiments may be performed by a single host computing device 114. In other embodiments, two or more host computing devices, such as host computing device 114, coupled by communication link 820 (e.g., local area network (LAN), public switched telephone network (PSTN), wireless network, and other communication links) may perform the sequence of program instructions to practice the embodiments in coordination with one another. In addition, host computing device 114 may transmit and receive messages, data, and instructions, including program, i.e., application code, through communication link 820 and communication interface 812. Received program instructions may be executed by processor 804 as the program instructions are received, and/or stored in storage device 808, or other non-volatile storage for later execution.
Storage device 807, which is in communication with memory 806 and processor 804, may include a variety of memories for storing program instruction driver and an application. Examples of storage device 807 include a ROM, a flash memory, and other memories. In an embodiment, the application (e.g., an operating system) and the program instruction driver are stored in a ROM. The program instruction driver may be loaded into memory 806 and processor 804, which is in communication with memory 806, can execute one or more program instructions associated with the program instruction driver stored in the memory. For example, in an embodiment, processor 804 may execute program instructions for providing a selection of a program instruction, reading the program instruction from a memory card (not shown), and executing the program instruction.
Power supply 912 may be connected to processor 804 by way of power supply controller 914. Power supply 912 is configured to generate a voltage and supply power to mobile phone 902. Examples of power supply 912 include batteries, solar panels, and other power supplies. Power supply controller 914 is configured to regulate the voltage provided by power supply 912 and to supply a regulated voltage to processor 804. For example, power supply controller 914 can regulate a 4.5V from power supply 912 to 3.0V and can include a charge pump to step up that 3.0V to 10V.
Mobile phone 902 may additionally include display panel 812. Display panel 812 can be configured to display the GUI that provides a selection of one or more program instruction identifiers. For example, in an embodiment, display panel 812 can be configured to display the program instruction identifiers in a menu. Display panel 812 is in communication display controller 924. In general, display controller 924 is configured to output an image signal to display panel 812 in response to image data received from graphics processor 926. Graphics processor 926, which is in communication with display controller 924, is configured to render graphics for display on display panel 812. Graphics processor 926 can include a geometry and rendering engine to process and accelerate two and dimensional graphics.
Processor 804 can additionally be in communication with time code reception chip 928 that is configured to derive a time code from long-wave standard broadcasts and to communicate the time code to the processor. Additionally connected to processor 804 is radio-frequency (RF) amplifier 922 for amplifying RF signals received by antenna 910. Audio codec 916, which is in communication with processor 804, is configured to encode audio signals received from microphone 908 or to decode audio signals transmitted to speaker 906. Processor 804 also is in communication with keypad 920 that is configured for the input of text and characters. To communicate with a wireless local area network (LAN), mobile phone may additionally include wireless LAN chip 918.
The above-described embodiments provide methods, systems, and/or computing devices for interfacing with a memory card to access program instructions. By being able to access program instructions stored in a memory card, new functionalities may be added to an application without modifying the application. For example, program instructions stored in the memory card may allow or facilitate communication between the application and the memory card. As an example, to interface with an unsupported memory card with new functionalities, the operating system can read from the memory card a set of program instructions associated with the new functionalities that are not programmed into the operating system. Here, the program instruction may transmit a new set of commands to the memory card that were not preprogrammed into the operating system. The operating system can execute the program instructions to implement the new functionalities. As a result, for instance, an operating system associated with a mobile phone may interface with new or unsupported memory cards.
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the embodiments are not limited to the details provided. There are many alternative ways of implementing the embodiments. Accordingly, the disclosed embodiments are to be considered as illustrative and not restrictive, and the embodiments are not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims. In the claims, elements and/or operations do not imply any particular order of operation, unless explicitly stated in the claims.
Claims
1. A method for interfacing with a memory card, comprising:
- providing a selection of a program instruction;
- reading the program instruction associated with the selection from the memory card; and
- executing the program instruction.
2. The method of claim 1, further comprising:
- reading a program instruction identifier associated with the program instruction from the memory card; and
- displaying the program instruction identifier in a graphical user interface, wherein the graphical user interface is configured to provide access to the program instruction.
3. The method of claim 1, further comprising:
- reading a program instruction identifier associated with the program instruction from the memory card; and
- providing the program instruction identifier in a graphical user interface, wherein the program instruction identifier is configured to be selected from the graphical user interface and a selection of the program instruction identifier being configured to provide the selection of the program instruction.
4. The method of claim 1, further comprising:
- receiving a response associated with the executing the program instruction;
- reading an expected response associated with the program instruction from the memory card; and
- comparing the response with the expected response.
5. The method of claim 1, wherein the program instruction is stored in a data structure, the data structure being stored in the memory card.
6. The method of claim 5, wherein the data structure comprises a program instruction identifier associated with the program instruction.
7. The method of claim 5, wherein the data structure comprises an expected response associated with the program instruction.
8. A computer program product embodied in a computer readable medium and comprising computer instructions for:
- providing a selection of a plurality of scripts, the plurality of scripts comprising a first script and a second script;
- reading the plurality of scripts and an expected response associated with the first script from a memory card;
- executing the first script;
- receiving a response after the executing the first script;
- comparing the response with the expected response; and
- executing the second script.
9. The computer program product of claim 8, wherein the second script is executed if the response matches the expected response.
10. The computer program product of claim 8, further comprising computer instructions for:
- reading a program instruction identifier associated with the plurality of scripts from the memory card; and
- providing the program instruction identifier in a menu for selection, wherein a selection of the program instruction identifier being configured to provide the selection of the plurality of scripts.
11. The computer program product of claim 8, wherein the plurality of scripts are stored in a table, the table being stored in the memory card.
12. A method for interfacing with a memory card, comprising:
- reading a program instruction identifier from the memory card;
- communicating the program instruction identifier to an operating system;
- receiving a selection of the program instruction identifier from the operating system;
- reading the program instruction and an expected response associated with the selection of the program instruction identifier from the memory card;
- executing the program instruction;
- receiving a response after the executing the program instruction; and
- comparing the response with the expected response.
13. The method of claim 12, further comprising displaying the program instruction identifier in a graphical user interface, wherein the graphical user interface is configured to provide access to the program instruction.
14. The method of claim 12, further comprising providing the program instruction identifier in a graphical user interface, wherein the program instruction identifier is configured to be selected from the graphical user interface.
15. The method of claim 12, wherein the graphical user interface is a menu.
16. The method of claim 12, wherein the program instruction is a script.
Type: Application
Filed: Aug 25, 2006
Publication Date: Apr 10, 2008
Patent Grant number: 8719709
Inventors: Fabrice Jogand-Coulomb (San Carlos, CA), Robert C. Chang (Danville, CA)
Application Number: 11/509,978
International Classification: G06F 3/00 (20060101);