A reading and writing speed control method, card reader and storage medium

By detecting user operations and switching card reader mode, the problem that card reader cannot adjust the read and write speed in the prior art is solved, and the function of dynamically adjusting the read and write speed according to user needs is realized to meet different speed needs.

CN113642343BActive Publication Date: 2024-11-05SHENZHEN XINGHUO SEMICON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010392570.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-11
Publication Date
2024-11-05
Estimated Expiration
2040-05-11

AI Technical Summary

Technical Problem

Existing card readers cannot dynamically adjust the read and write speed according to user needs, and cannot meet the needs of different read and write speeds.

Method used

By detecting the user's mode switching operation, the read and write mode of the card reader is switched, including detecting the change in the gear position of the switch switch and the mode switching command sent by the terminal device, switching to the corresponding read and write mode, and upon receiving the card read command, The memory card is adaptively initialized and data transmission according to the current mode.

Benefits of technology

It realizes dynamic adjustment of the reader's reader's reader's reader according to user needs, meets the needs of different reader's reader's flexibility and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113642343B_ABST
    Figure CN113642343B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of card reader technology, and provides a read / write speed control method, a card reader, and a storage medium. The read / write speed control method includes: after connecting with a terminal device and a storage card and power-on initialization, detecting a user's mode switching operation on the card reader; wherein the card reader includes at least two read / write modes, and the card reader has different read / write speeds when in different read / write modes; when the mode switching operation is detected, the current read / write mode is switched to a read / write mode corresponding to the mode switching operation. By switching the read / write mode of the card reader according to the user's mode switching operation, the present application can change the read / write speed of the card reader according to the user's actual needs to meet the user's needs for different read / write speeds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of card readers, and in particular, relates to a read / write speed control method, a card reader, and a storage medium. Background Art

[0002] A card reader is an interface device used to read or write various types of memory cards such as SD cards and TF cards. It can be connected to terminal devices such as personal computers and laptops through a USB interface to read or write memory cards at a constant speed under the drive of the terminal device, thereby realizing data exchange between the memory card and the terminal device. Summary of the invention

[0003] The embodiments of the present application provide a read / write speed control method, a card reader, and a storage medium, which can change the read / write speed of the card reader according to the actual needs of the user to meet the user's needs for different read / write speeds.

[0004] In a first aspect, an embodiment of the present application provides a read / write speed control method, which is applied to a card reader, and the method includes:

[0005] After being connected with a terminal device and a memory card and powered on and initialized, detecting a user's mode switching operation on the card reader; wherein the card reader includes at least two read / write modes, and the read / write speeds of the card reader are different when in different read / write modes;

[0006] When the mode switching operation is detected, the current read / write mode is switched to a read / write mode corresponding to the mode switching operation.

[0007] In one embodiment, the card reader is provided with a switch for switching the read / write mode, the switch includes at least two gears, and the read / write speed of the card reader is different when the switch is in different gears;

[0008] Detecting a user's mode switching operation on the card reader, including:

[0009] Detecting a user's gear switching operation on the switching switch;

[0010] When the shift switching operation is detected, it is determined that the mode switching operation is detected.

[0011] In one embodiment, detecting a mode switching operation of the card reader by a user includes:

[0012] Detecting a mode switching instruction sent by the terminal device; wherein the terminal device is used to send a mode switching instruction corresponding to the preset trigger operation to the card reader when detecting a preset trigger operation of a human-computer interaction device of the terminal device by a user;

[0013] When the mode switching instruction is detected, it is determined that the mode switching operation is detected.

[0014] In one embodiment, after detecting the user's mode switching operation on the card reader, the method includes:

[0015] When the mode switching operation is not detected, the card reader enters the default read / write mode; wherein the card reader has the fastest read / write speed when in the default read / write mode.

[0016] In one embodiment, the method further comprises:

[0017] Upon receiving a card reading instruction sent by the terminal device, powering on and initializing the memory card;

[0018] The memory card is read or written at a read or write speed corresponding to the current read or write mode.

[0019] In one embodiment, the card reading instruction is a voltage signal;

[0020] The memory card is powered on and initialized, including:

[0021] Converting the voltage of the card reading instruction into a voltage suitable for the current reading and writing mode;

[0022] A voltage adapted to the current read / write mode is output to the memory card to power on and initialize the memory card.

[0023] In one embodiment, performing a reading or writing operation on the memory card according to a reading or writing speed corresponding to a current reading or writing mode includes:

[0024] The memory card is read or written according to the read / write speed corresponding to the current read / write mode and the preset communication protocol.

[0025] In a second aspect, an embodiment of the present application provides a card reader, including:

[0026] A mode detection module, used to detect a mode switching operation of the card reader by a user after the card reader is connected to a terminal device and a memory card and powered on and initialized; wherein the card reader includes at least two read and write modes, and the read and write speeds of the card reader are different when the card reader is in different read and write modes;

[0027] The mode switching module is used to switch the current read-write mode to a read-write mode corresponding to the mode switching operation when the mode switching operation is detected.

[0028] In one embodiment, the card reader is provided with a switch for switching the read / write mode, the switch includes at least two gears, and the read / write speed of the card reader is different when the switch is in different gears; the mode detection module includes:

[0029] A first detection unit, configured to detect a user's gear switching operation on the switch after being connected to a terminal device and a memory card and powered on and initialized;

[0030] A first determining unit is configured to determine that the mode switching operation is detected when the gear switching operation is detected.

[0031] In one embodiment, the mode detection module includes:

[0032] A second detection unit is used to detect a mode switching instruction sent by the terminal device after being connected to the terminal device and the memory card and powered on and initialized; wherein the terminal device is used to send a mode switching instruction corresponding to the preset trigger operation to the card reader when detecting a preset trigger operation of a human-computer interaction device of the terminal device by a user;

[0033] The second determining unit is configured to determine that the mode switching operation is detected when the mode switching instruction is detected.

[0034] In one embodiment, the card reader further comprises:

[0035] The default card reading module is used to enter the default reading and writing mode when the mode switching operation is not detected; wherein the reading and writing speed of the card reader is the fastest when it is in the default reading and writing mode.

[0036] In one embodiment, the card reader further comprises:

[0037] An initialization module, configured to power on and initialize the memory card upon receiving a card reading instruction sent by the terminal device;

[0038] The read / write module is used to perform a read or write operation on the memory card at a read / write speed corresponding to a current read / write mode.

[0039] In one embodiment, the initialization module includes:

[0040] A conversion unit, configured to convert the voltage of the card reading instruction into a voltage adapted to the current reading and writing mode when receiving the card reading instruction sent by the terminal device; wherein the card reading instruction is a voltage signal;

[0041] The output unit is used to output a voltage adapted to the current read / write mode to the memory card to perform power-on initialization on the memory card.

[0042] In one embodiment, the read-write module is specifically used for:

[0043] The memory card is read or written according to the read / write speed corresponding to the current read / write mode and the preset communication protocol.

[0044] In a third aspect, an embodiment of the present application provides a card reader, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned read / write speed control method when executing the computer program.

[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned read-write speed control method are implemented.

[0046] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the steps of the above-mentioned reading and writing speed control method.

[0047] Compared with the prior art, the embodiments of the present application have the following beneficial effects: after being connected to a terminal device and a memory card and powered on and initialized, the embodiments of the present application detect a user's mode switching operation on the card reader; wherein the card reader includes at least two read / write modes, and the card reader has different read / write speeds when in different read / write modes; when the mode switching operation is detected, the current read / write mode is switched to a read / write mode corresponding to the mode switching operation. By switching the read / write mode of the card reader according to the user's mode switching operation, the embodiments of the present application can change the read / write speed of the card reader according to the actual needs of the user, so as to meet the user's needs for different read / write speeds.

[0048] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0050] Figure 1 It is a flowchart of a method for controlling read and write speeds provided in an embodiment of the present application;

[0051] Figure 2 is a schematic diagram of a card reader provided by an embodiment of the present application;

[0052] Figure 3 It is a specific flow chart of step S101 provided in one embodiment of the present application;

[0053] Figure 4 It is a flowchart of a method for controlling read and write speeds provided in an embodiment of the present application;

[0054] Figure 5 is a structural schematic diagram of a card reader provided by another embodiment of the present application;

[0055] Figure 6 is a structural schematic diagram of a card reader provided by another embodiment of the present application;

[0056] Figure 7 It is a structural schematic diagram of a card reader provided in another embodiment of the present application. DETAILED DESCRIPTION

[0057] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0058] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0059] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0060] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0061] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0062] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0063] The read / write speed control method provided in the embodiment of the present application can be applied to various types of card readers, and the embodiment of the present application does not impose any limitation on the specific type of the card reader.

[0064] In order to illustrate the technical solution described in this application, the following embodiments are used for illustration.

[0065] Embodiment 1

[0066] See also Figure 1 , a read / write speed control method provided by an embodiment of the present application includes:

[0067] Step S101, after being connected to a terminal device and a memory card and powered on and initialized, detecting a user's mode switching operation on the card reader; wherein the card reader includes at least two read / write modes, and the read / write speeds of the card reader are different when in different read / write modes;

[0068] In the application, the terminal device can be a host computer connected to the card reader, specifically various types of computers, mobile phones, cameras or driving recorders. The card reader is connected to the terminal device and the memory card, and after the card reader is powered on and initialized, it detects whether there is a mode switching operation of the card reader by the user. The mode switching operation is used to switch the reading and writing mode of the card reader. The card reader may include multiple reading and writing modes, and each reading and writing mode has a different reading and writing speed.

[0069] In an application scenario, the reading and writing speeds of each reading and writing mode are different. The reading and writing mode may be a bus speed mode. For example, the card reader may support but is not limited to SDR104, SDR50, DDR50, SDR25, SDR12, HS (High Speed) and DS (Default Speed) and other reading and writing modes. For example, the reading and writing speed in the SDR104 reading and writing mode may be understood as the speed of data transmission in the SDR104 mode.

[0070] In one application scenario, the connection method between the card reader and the memory card can be a PIN physical connection between the card reader and the chip of the memory card, such as the card reader includes a card holder, the card holder includes a card slot, the card slot includes pins corresponding to the bus, and a PIN physical connection is made with the memory card through the pins corresponding to the bus, such as the pins corresponding to the bus include but are not limited to the third data transmission pin P1, the command pin P2, the first ground pin P3, the power pin P4, the clock pin P5, the second ground pin P6, the zeroth data pin P7, the first data pin P8 and the second data pin P9.

[0071] In one embodiment, the card reader is provided with a switching switch for switching the reading and writing modes, the switching switch includes at least two gears, and the reading and writing speeds of the card reader are different when the switching switch is in different gears; the switching switch can be used to switch the gears, and the switching switch including at least two gears can be understood as the switching switch supporting at least two gears that can be selected by the switching switch.

[0072] In a specific application scenario, such as Figure 2 The card reader 20 shown is provided with a switch 21 for switching the reading and writing modes, and the switch 21 includes seven gears that can be selected by the switch.

[0073] Detecting the user's mode switching operation on the card reader, such as Figure 3 As shown, it includes steps S1011 to S1012:

[0074] Step S1011, detecting a user's gear switching operation on the switch;

[0075] In the application, the user's gear switching operation can be detected by detecting whether the gear information of the switch changes. If the gear position of the switch changes, it means that the user's gear switching operation on the switch is detected.

[0076] Step S1012: when the gear switching operation is detected, determining that the mode switching operation is detected.

[0077] In the application, when the gear switching operation is detected, the detected mode switching operation is determined according to the gear switching operation. Before the gear switching operation is detected, data transmission can be performed in the read / write mode corresponding to the speed of the initial gear of the switch gear or in the default read / write mode.

[0078] In a specific application scenario, such as Figure 2 The card reader 20 shown in the figure is provided with a switch 21 for switching the read / write mode, and the switch 21 includes seven gears DR104, SDR50, DDR50, SDR25, SDR12, HS and DS for selection by the switch. The gear can be switched by adjusting the position of the gear switch to perform a gear switching operation.

[0079] In one embodiment, the card reader is provided with a touch screen, which can display a function icon for switching the reading and writing modes, wherein the function icon includes at least two sub-function icons of the reading and writing modes, and the reading and writing speeds of the card reader are different when different sub-function icons are selected; detecting the user's mode switching operation on the card reader includes: detecting that the sub-function icon selected by the user can determine that a gear switching operation has been detected; and when the gear switching operation is detected, determining that the mode switching operation has been detected.

[0080] In one embodiment, detecting a user's mode switching operation on the card reader includes: detecting a mode switching instruction sent by the terminal device; wherein the terminal device is configured to send a mode switching instruction corresponding to a preset trigger operation to the card reader when detecting a user's preset trigger operation on a human-computer interaction device of the terminal device; and determining that the mode switching operation is detected when the mode switching instruction is detected.

[0081] In another application scenario, the user may send a mode switching instruction to the card reader through the terminal device. When the card reader detects the mode switching instruction sent by the terminal device, it determines the corresponding mode switching operation according to the detected mode switching instruction.

[0082] In one embodiment, after detecting the user's mode switching operation on the card reader, the method includes: when the mode switching operation is not detected, entering a default read / write mode; wherein the card reader has the fastest read / write speed when in the default read / write mode.

[0083] In the application, the default mode is preferably the mode corresponding to the fastest read / write speed. When connected with the terminal device and the memory card and powered on for initialization, it detects whether there is a mode switching operation of the card reader by the user. If no mode switching operation is detected within a preset time, it enters the default read / write mode, and then continues to detect whether there is a mode switching operation of the card reader by the user. As long as the mode switching operation of the card reader by the user is detected, it works in the mode corresponding to the mode switching operation.

[0084] Step S102: when the mode switching operation is detected, the current read / write mode is switched to a read / write mode corresponding to the mode switching operation.

[0085] In the application, when the mode switching operation is detected, it means that the user wants to switch the read-write mode, the read-write mode corresponding to the mode switching operation is obtained, and the current read-write mode is switched to the read-write mode corresponding to the mode switching operation.

[0086] Preferably, in an application scenario, the mode switching operation can be an operation performed by the user by sliding a preset switch on the card reader, such as sliding the switch from a first gear to a second gear is a mode switching operation, wherein the first gear is any one of the preset N speed gears, and the second gear is different from the first gear and is any one of the preset N speed gears.

[0087] In another application scenario, the mode switching operation may be that the user executes a preset trigger operation corresponding to the mode switching operation through a terminal device connected to the card reader. The terminal device sends a mode switching instruction corresponding to the preset trigger operation to the card reader, and the card reader determines the mode switching operation based on the mode switching instruction.

[0088] In one embodiment, referring to Figure 4 , the method further comprises:

[0089] Step S401, upon receiving a card reading instruction sent by the terminal device, powering on and initializing the memory card;

[0090] In an application, when a terminal device wants to write or read data to a memory card, it sends a card read instruction to the card reader. When the card reader receives the card read instruction, it powers on and initializes the memory card, and then reads or writes the memory card through the card read instruction.

[0091] In a specific application scenario, when the memory card is an SD card or a TF card, the memory card can be powered on and initialized based on the SD card protocol developed by the SDA industry association, such as powering on and initializing the memory card based on the SD card power-on initialization command protocol developed by the SDA industry association.

[0092] In one embodiment, the card read instruction is a voltage signal; powering on the memory card and initializing the memory card includes: converting the voltage of the card read instruction into a voltage compatible with the current read / write mode; and outputting the voltage compatible with the current read / write mode to the memory card to power on the memory card and initializing the memory card.

[0093] In a specific application scenario, the card reader includes a USB interface. When the USB interface is inserted into a terminal device, the terminal device gives the card reader a voltage signal, and the voltage signal is used as a card reading instruction of the terminal device. The card reader converts the voltage input by the USB interface into a voltage compatible with the current read-write mode through power-on control, starts the power-on initialization process for the memory card, and enables the memory card to work under the compatible voltage.

[0094] Step S402: performing a read or write operation on the memory card according to a read or write speed corresponding to the current read or write mode.

[0095] In the application, after the read / write mode of the card reader is determined by the above method, the determined read / write mode is used as the current read / write mode, and the storage is read or written at the read / write speed in the current read / write mode. The read or write operation includes the operation of reading data, the operation of writing data, or the simultaneous read and write operation in the full-duplex communication mode.

[0096] In a specific application scenario, after the card reader determines the read / write mode, the card reader needs to be read or written in the currently determined read / write mode. This can be based on the command protocol developed by the SDA industry association, and the command CMD6 (SWITCH_FUNC) used to set the bus speed mode is used to send a command with the current read / write mode to the memory card, so that the memory card is read or written at a speed corresponding to the current read / write mode. Among them, CMD6 is used to switch or expand the function of the memory card. One of the functions is the access mode, which is used to select the speed mode of the bus interface. CMD6 has two modes in the access mode, namely Check Function (corresponding to mode 0) and Set Function (corresponding to mode 1). The selected bus speed mode function needs to be set, so the CMD6 with mode 1 can be used to implement the read or write operation of the storage at the read / write speed in the current read / write mode.

[0097] In one embodiment, performing a read or write operation on the memory card according to a read or write speed corresponding to the current read or write mode includes: performing a read or write operation on the memory card according to a read or write speed corresponding to the current read or write mode and a preset communication protocol. Performing a read or write operation on the memory card according to a preset communication protocol and at a read or write speed in the current read or write mode. The preset communication protocol may be a communication protocol such as an SD communication protocol or an SPI communication protocol.

[0098] After the embodiment of the present application is connected to the terminal device and the memory card and powered on and initialized, the user's mode switching operation on the card reader is detected; wherein the card reader includes at least two read-write modes, and the card reader has different read-write speeds when in different read-write modes; when the mode switching operation is detected, the current read-write mode is switched to a read-write mode corresponding to the mode switching operation. By switching the read-write mode of the card reader according to the user's mode switching operation, the read-write speed of the card reader can be changed according to the actual needs of the user to meet the user's needs for different read-write speeds.

[0099] Corresponding to the reading and writing speed control method described in the above embodiment, Figure 5 A structural block diagram of a card reader provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0100] Reference Figure 5 , the card reader 500 comprises:

[0101] The mode detection module 501 is used to detect the mode switching operation of the card reader by the user after the card reader is connected to the terminal device and the memory card and powered on and initialized; wherein the card reader includes at least two read and write modes, and the read and write speeds of the card reader are different when the card reader is in different read and write modes;

[0102] The mode switching module 502 is configured to switch the current read / write mode to a read / write mode corresponding to the mode switching operation when the mode switching operation is detected.

[0103] In one embodiment, the card reader is provided with a switch for switching the read / write mode, the switch includes at least two gears, and the read / write speed of the card reader is different when the switch is in different gears; the mode detection module includes:

[0104] A first detection unit, configured to detect a user's gear switching operation on the switch after being connected to a terminal device and a memory card and powered on and initialized;

[0105] A first determining unit is configured to determine that the mode switching operation is detected when the gear switching operation is detected.

[0106] In one embodiment, the mode detection module includes:

[0107] A second detection unit is used to detect a mode switching instruction sent by the terminal device after being connected to the terminal device and the memory card and powered on and initialized; wherein the terminal device is used to send a mode switching instruction corresponding to the preset trigger operation to the card reader when detecting a preset trigger operation of a human-computer interaction device of the terminal device by a user;

[0108] The second determining unit is configured to determine that the mode switching operation is detected when the mode switching instruction is detected.

[0109] In one embodiment, the card reader further comprises:

[0110] The default card reading module is used to enter the default reading and writing mode when the mode switching operation is not detected; wherein the reading and writing speed of the card reader is the fastest when it is in the default reading and writing mode.

[0111] In one embodiment, the card reader further comprises:

[0112] An initialization module 503, configured to power on and initialize the memory card upon receiving a card reading instruction sent by the terminal device;

[0113] The read / write module 504 is configured to perform a read or write operation on the memory card at a read / write speed corresponding to a current read / write mode.

[0114] In one embodiment, the initialization module includes:

[0115] A conversion unit, configured to convert the voltage of the card reading instruction into a voltage adapted to the current reading and writing mode when receiving the card reading instruction sent by the terminal device; wherein the card reading instruction is a voltage signal;

[0116] The output unit is used to output a voltage adapted to the current read / write mode to the memory card to perform power-on initialization on the memory card.

[0117] In one embodiment, the read / write module is specifically configured to perform a read or write operation on the memory card according to a read / write speed corresponding to a current read / write mode and a preset communication protocol.

[0118] The present application switches the read and write modes of the card reader according to the mode switching operation of the user, and can change the read and write speed of the card reader according to the actual needs of the user to meet the user's needs for different read and write speeds.

[0119] The above-mentioned mode detection module, mode switching module, default card reading module, initialization module and reading and writing module may specifically be software program modules implemented by a processor in the card reader.

[0120] In one embodiment, Figure 6 , which is a schematic diagram of a card reader structure, the card reader includes a switch 601, an interface module 602, a processor 603 and a card holder 604. The switch 601 may be a physical switch, the interface module 602 may be a USB interface, and the card holder 604 may include a card slot unit with multiple physical pins.

[0121] like Figure 7 As shown, an embodiment of the present invention further provides a card reader 700 including: at least one processor 701 ( Figure 7 Only one is shown in the figure), a memory 702 and a computer program 703 stored in the memory 702 and executable on the at least one processor 701, such as a read / write speed control program. When the processor 701 executes the computer program 703, the steps in the above-mentioned read / write speed control method embodiments are implemented. When the processor 701 executes the computer program 703, the functions of the modules in the above-mentioned card readers are implemented, such as Figure 5 Functions of modules 501 to 504 are shown.

[0122] Exemplarily, the computer program 703 may be divided into one or more modules, which are stored in the memory 702 and executed by the processor 701 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 703 in the card reader 700. For example, the computer program 703 may be divided into a mode detection module, a mode switching module, a default card reading module, an initialization module, and a reading and writing module. The specific functions of each module have been described in the above embodiments and will not be repeated here.

[0123] The card reader 700 may be any type of card reading device. The card reader may include, but is not limited to, a processor 701 and a memory 702. Those skilled in the art will appreciate that Figure 7 This is only an example of the card reader 700 and does not constitute a limitation of the card reader 700. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the card reader may also include input and output devices, access devices, buses, etc.

[0124] The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0125] The memory 702 may be an internal storage unit of the card reader 700. Further, the memory 702 may include both an internal storage unit of the card reader 700 and an external storage device. The memory 702 is used to store the computer program and other programs and data required by the terminal device. The memory 702 may also be used to temporarily store data that has been output or is to be output.

[0126] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0127] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0128] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0129] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0132] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0133] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for controlling read and write speed, It is characterized in that Applied to a card reader, the method comprises: After being connected with the terminal device and the memory card and powered on and initialized, detecting a user's mode switching operation on the card reader; wherein the card reader includes at least two read-write modes, and the read-write speeds of the card reader are different when in different read-write modes; the read-write mode is a bus speed mode; When the mode switching operation is detected, the current read-write mode is switched to a read-write mode corresponding to the mode switching operation; The method further comprises: Upon receiving a card reading instruction sent by the terminal device, powering on and initializing the memory card; Performing a read or write operation on the memory card at a read or write speed corresponding to a current read or write mode; The card reading instruction is a voltage signal; The memory card is powered on and initialized, including: Converting the voltage of the card reading instruction into a voltage suitable for the current reading and writing mode; Outputting a voltage adapted to the current read / write mode to the memory card to power on and initialize the memory card, and allowing the memory card to operate under the adapted voltage; The card reader is provided with a switch for switching the read / write mode, the switch includes at least two gears, and the read / write speed of the card reader is different when the switch is in different gears; Detecting a user's mode switching operation on the card reader, including: Detecting a user's gear switching operation on the switching switch; When the shift switching operation is detected, it is determined that the mode switching operation is detected.

2. The read / write speed control method according to claim 1, It is characterized in that Detecting a user's mode switching operation on the card reader, including: Detecting a mode switching instruction sent by the terminal device; wherein the terminal device is used to send a mode switching instruction corresponding to the preset trigger operation to the card reader when detecting a preset trigger operation of a human-computer interaction device of the terminal device by a user; When the mode switching instruction is detected, it is determined that the mode switching operation is detected.

3. The read / write speed control method according to claim 2, It is characterized in that After detecting the user's mode switching operation on the card reader, the method includes: When the mode switching operation is not detected, the card reader enters the default read / write mode; wherein the card reader has the fastest read / write speed when in the default read / write mode.

4. The method according to claim 1, It is characterized in that Performing a reading or writing operation on the memory card at a reading or writing speed corresponding to the current reading or writing mode includes: The memory card is read or written according to the read / write speed corresponding to the current read / write mode and the preset communication protocol.

5. A card reader, applied to the method according to any one of claims 1 to 4, It is characterized in that include: A mode detection module, used to detect a user's mode switching operation on the card reader after the card reader is connected to the terminal device and the memory card and powered on and initialized; wherein the card reader includes at least two read and write modes, and the read and write speeds of the card reader are different when the card reader is in different read and write modes; The first card reading module is used to switch the current reading and writing mode to the reading and writing mode corresponding to the mode switching operation when the mode switching operation is detected.

6. The card reader according to claim 5, It is characterized in that The card reader is provided with a switch for switching the read / write mode, the switch includes at least two gears, and the read / write speed of the card reader is different when the switch is in different gears; The mode detection module is specifically used for: After being connected to the terminal device and the memory card and powered on and initialized, detecting a user's gear switching operation on the switching switch; When the shift switching operation is detected, it is determined that the mode switching operation is detected.

7. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.