CN106776383B - Memory card identification method and device and electronic equipment - Google Patents
Memory card identification method and device and electronic equipment Download PDFInfo
- Publication number
- CN106776383B CN106776383B CN201611233259.6A CN201611233259A CN106776383B CN 106776383 B CN106776383 B CN 106776383B CN 201611233259 A CN201611233259 A CN 201611233259A CN 106776383 B CN106776383 B CN 106776383B
- Authority
- CN
- China
- Prior art keywords
- memory card
- identification
- programs
- matching
- type parameter
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012163 sequencing technique Methods 0.000 claims 3
- 238000004891 communication Methods 0.000 description 13
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 101100232371 Hordeum vulgare IAT3 gene Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a memory card identification method, a memory card identification device and electronic equipment. The method comprises the following steps: and reading the type parameters of the memory card through a memory card protocol command, obtaining at least two identification programs corresponding to the type parameters of the memory card according to the corresponding relation between the identification programs and the type parameter range, and loading data on the memory card through the at least two identification programs in turn until the memory card is successfully identified. The memory card identification method and device and the electronic equipment can improve the success rate of memory card identification.
Description
Technical Field
The present invention relates to the field of storage devices, and in particular, to a method and an apparatus for identifying a memory card, and an electronic device.
Background
The memory card is supported by more and more electronic devices due to the characteristics of large memory capacity, portability, high read-write speed and the like. At present, after a memory card is inserted, an electronic device performs data loading on the memory card through an identification program, so as to identify the memory card.
However, due to different memory card type parameters, such as different manufacturers and different capacities, when the unified identification program is adopted to load data on the memory cards with different type parameters, the phenomenon that data cannot be normally loaded on part of the memory cards exists, so that identification failure is caused, and the success rate of memory card identification is greatly reduced.
Disclosure of Invention
In order to solve the technical problem of low success rate of memory card identification in the related art, the invention provides a memory card identification method, a memory card identification device and electronic equipment.
In a first aspect, an embodiment of the present invention provides a method for identifying a memory card, including:
reading the type parameters of the memory card through a memory card protocol command;
obtaining at least two identification programs corresponding to the type parameters of the memory card according to the corresponding relation between the preset identification programs and the type parameter range;
and carrying out data loading on the memory card by the at least two identification programs in turn until the memory card is successfully identified.
In a second aspect, an embodiment of the present invention provides an identification device for a memory card, including:
the type parameter reading module is used for reading the type parameters of the memory card through a memory card protocol command;
the identification program acquisition module is used for acquiring at least two identification programs corresponding to the type parameters of the memory card according to the corresponding relation between the preset identification programs and the type parameter range;
and the data loading module is used for loading data to the memory card through the at least two identification programs in turn until the memory card is successfully identified.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
an interface for inserting a memory card;
at least one processor located within the electronic device; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method provided in the first aspect above.
The technical scheme provided by the embodiment of the invention can comprise the following beneficial effects:
after the memory card is inserted into the electronic equipment, the type parameter of the memory card is read through the memory card protocol command, at least two recognition programs corresponding to the type parameter of the memory card are obtained according to the corresponding relation between the recognition programs and the type parameter range, the memory card is loaded with data in turn through the at least two recognition programs until the memory card is successfully recognized, and when one recognition program fails to recognize the memory card, the memory card is loaded with data through the other recognition program until the memory card is successfully recognized, so that the success rate of recognizing the memory card is greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic illustration of an implementation environment in accordance with the present invention;
FIG. 2 is a flowchart illustrating a method of identifying a memory card according to an exemplary embodiment;
FIG. 3 is a flowchart showing a specific implementation of step S130 in the method for identifying a memory card according to the embodiment shown in FIG. 2;
FIG. 4 is a flowchart showing a specific implementation of step S131 in the corresponding embodiment of FIG. 3;
FIG. 5 is a flowchart showing a specific implementation of step S150 in the method for identifying a memory card according to the embodiment shown in FIG. 2;
FIG. 6 is a block diagram of an identification device for a memory card according to an exemplary embodiment;
FIG. 7 is a block diagram of an identification program acquisition module shown in the corresponding embodiment of FIG. 6;
FIG. 8 is a block diagram of a data loading module shown in the corresponding embodiment of FIG. 6;
fig. 9 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or one or more intervening elements may be present therebetween. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used in this specification includes any and all combinations of one or more of the associated listed items. In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
Fig. 1 is a schematic diagram of an implementation environment in accordance with the present invention. As shown in fig. 1, the implementation environment includes: an electronic device 20 and a memory card 10 interfacing with the electronic device 20. When the memory card 10 is connected with the electronic device 20 through the interface, the electronic device 20 loads data on the memory card 10 through the identification program, and when the data cannot be loaded normally, another identification program is adopted to load data on the memory card 10 until the data is loaded normally on the memory card 10, so that the memory card is identified successfully. The memory Card 10 may be an SD Card (Secure Digital Memory Card, secure digital Card), TF Card (Trans-Flash Card), CF Card (Compact Flash Card), MMC Card (multimedia Card), or the like, and the specific implementation is not limited by the present embodiment. The electronic device 20 may be a smart phone, a tablet computer, a camera, a vehicle-mounted device, an unmanned aerial vehicle, etc., and the specific implementation manner is not limited by the embodiment.
Fig. 2 is a flowchart illustrating a method of identifying a memory card according to an exemplary embodiment. As shown in fig. 2, the identification method of the memory card may include the following steps.
In step S110, the type parameter of the memory card is read by the memory card protocol command.
The memory card is an independent storage medium which can be used for electronic equipment such as mobile phones, computers and the like. In one exemplary embodiment, the memory card may be an SD card, TF card, CF card, MMC card, or the like.
It should be noted that the memory card is pluggable. After the memory card is inserted into the interface of the electronic equipment, the electronic equipment is connected with the interface of the memory card, and after the memory card is successfully identified, the data interaction with the memory card is realized.
The memory card protocol command is an instruction to make a communication connection between the memory card and the electronic device based on a communication protocol. In one exemplary embodiment, the memory card and the electronic device interact with protocol commands via the SD card protocol.
The type parameter of the memory card is a parameter describing various types of characteristics of the memory card. The type parameters of the memory card include, but are not limited to, at least one of the parameters of the memory card's manufacturing identification (manufacturer identification), OEM (Original Equipment Manufacturer ) ID, SD card capacity, and SD card speed level.
The method comprises the steps that a specific memory card protocol command is preset in the electronic equipment, after the memory card is inserted into an interface of the electronic equipment, the electronic equipment detects the insertion of the memory card, the memory card protocol command is sent to the memory card, and after the memory card receives the memory card protocol command sent by the electronic equipment, relevant type parameters are replied to the electronic equipment.
In one exemplary embodiment, a method of acquiring a type parameter of a memory card through an SD card protocol command is as follows.
The electronic device sends SD card protocol commands such as CMD2, CMD9, CMD13 to the memory card, and reads the OEM ID and ManufacturerID, SD card capacity size, uhs speed grade, speed class, and the like of the memory card, respectively.
In step S130, at least two kinds of identification programs corresponding to the type parameters of the memory card are obtained according to the correspondence between the preset identification programs and the type parameter ranges.
The identification program is a software program for loading data on the memory card and is used for controlling the data loading process of the memory card in the electronic device. In one exemplary embodiment, the identification program is a device driver by which the memory card is data loaded. It will be appreciated that each identification procedure is capable of identifying a range of type parameters. Thus, each identification procedure corresponds to a range of type parameters.
The types of parameters corresponding to the different identification programs are different to a certain extent, so that for a certain type of memory card, not all identification programs can successfully identify the type of parameters. When the type parameter of the memory card is in the range of the type parameter corresponding to the identification program, the identification program can normally load data to the memory card; when the type parameter of the memory card is not within the type parameter range corresponding to the identification program, the identification program may not normally load data on the memory card, so that the memory card cannot be successfully identified.
In step S150, the memory card is loaded with data by at least two kinds of identification programs in turn until the memory card is successfully identified.
And further loading data to the memory card by acquiring at least two identification programs. When one identification program is adopted and the data loading of the memory card cannot be carried out normally, the other identification program is adopted to carry out the data loading of the memory card until the data loading is carried out normally, namely the memory card is successfully identified.
When at least two kinds of identification programs are adopted to load data on the memory card in turn, each identification program has a certain sequence when being loaded. The memory card can be loaded in turn according to the order of the memory size occupied by each identification program, the frequency order of data loading according to each identification program, and other modes.
In one exemplary embodiment, the memory card is data loaded using the following architecture.
typedefstruct_SD_FACTORY_INFO_{
{Mid_1,Oid_1,Capabcity_1,Class_1,Uhs_1,Sd_param_1},
{Mid_2,Oid_2,Capabcity_2,Class_2,Uhs_2,Sd_param_2},
{Mid_3,Oid_3,Capabcity_3,Class_1,Uhs_3,Sd_param_3},
........
}SD_FACTORY_INFO
After the identification programs are numbered 1, 2 and 3 … …, the data loading is sequentially carried out on the memory cards according to the sequence of the numbers 1, 2 and 3 … … until the data loading is carried out normally.
By using the method, at least two corresponding identification programs are acquired according to the type parameters of the memory card, and when one identification program cannot normally load data on the memory card, the other identification programs are adopted to load data on the memory card, so that the success rate of memory card identification is improved.
Fig. 3 is a description of details of step S130 shown according to an exemplary embodiment. This step S130 may include the following steps.
In step S131, the type parameter ranges corresponding to the various recognition programs are respectively matched with the type parameters, so as to obtain corresponding matching degrees.
The matching degree is the matching degree of the type parameter range corresponding to the identification program and the type parameter.
The matching operation is to calculate the matching degree of the type parameter range and the type parameter corresponding to the identification program, obtain the distance between the type parameter range and the type parameter, and further obtain the matching degree between the identification program and the type parameter.
When the type parameter is in the type parameter range corresponding to the identification program, the matching degree between the identification program and the type parameter is higher; when the type parameter is not in the type parameter range corresponding to the identification program, the matching degree between the identification program and the type parameter is smaller, and the farther the distance between the type parameter and the type parameter range is, the smaller the matching degree is.
The various identification programs may be identification programs stored locally on the electronic device or may be identification programs stored on the server.
In step S133, at least two kinds of recognition programs are selected from among various kinds of different recognition programs according to the degree of matching.
And selecting at least two kinds of identification programs according to different matching degrees between the type parameters and various different identification programs. The matching degree threshold value can be preset, and at least two recognition programs with matching degree exceeding the matching degree threshold value are selected; the number of the identification programs can be preset, and then the preset number of the identification programs can be selected according to the degree of matching; other ways of selecting at least two identification procedures from a variety of different identification procedures are also possible, and are not limited in this regard.
By using the method, at least two kinds of identification programs are selected according to the matching degree of various different identification programs and type parameters, and then the at least two kinds of identification programs are adopted to load data on the memory card in turn, so that the success rate of memory card identification is greatly improved.
Alternatively, in an exemplary embodiment, step S131 may include the following steps.
In step S1311, the type parameter ranges corresponding to all the recognition programs in the local storage are respectively matched with the type parameters, so as to obtain corresponding matching degrees.
It should be noted that, the electronic device downloads the identification program of one or more different memory cards in advance and stores the identification program in the local storage.
And the corresponding matching degree is obtained through the matching operation of the type parameter range corresponding to the identification program in the local storage and the type parameter of the memory card, so that the identification program is selected according to the matching degree to load data on the memory card, and the identification speed of the memory card is greatly improved.
Alternatively, fig. 4 is a description of details of step S131 shown according to an exemplary embodiment. The identification program is stored in the server, and this step S131 may include the following steps.
In step S1313, a plurality of different recognition programs in the server are acquired.
In one exemplary embodiment, the various identification programs are obtained by downloading in the SD card usage platform of the server.
In step S1315, the type parameter ranges corresponding to the multiple different recognition programs are respectively matched with the type parameters, so as to obtain corresponding matching degrees.
By the method, the corresponding matching degree is obtained by respectively carrying out matching operation on the type parameter range corresponding to the identification program and the type parameter of the memory card through acquiring the identification program in the server, and then the identification program is selected according to the matching degree to carry out data loading on the memory card.
Fig. 5 is a detailed description of step S150 shown for the corresponding embodiments of fig. 2, 3 and 4, according to an exemplary embodiment. The identification program is stored in a server or a local storage, and this step S150 may include the following steps.
In step S151, the selected at least two identification programs are sorted according to the frequency of data loading, so as to obtain a sorting result.
The frequency of data loading is the number of times the identification program normally loads data to the memory card within a certain period. The greater the frequency, the greater the number of times the corresponding identification program normally performs data loading.
For example, the frequencies of data loading performed by the selected recognition programs A1, A2, A3 and A4 are 600, 5000, 1000 and 800 respectively, and the sorting results obtained according to the frequencies are A2, A3, A4 and A1.
In step S153, the memory cards are sequentially loaded with data according to the sorting result by using at least two kinds of identification programs until the memory cards are successfully identified.
And sequentially carrying out data loading on the memory card by adopting at least two identification programs according to the sorting result, and when one identification program cannot normally carry out data loading on the memory card, carrying out data loading on the memory card by adopting the next identification program according to the sorting result until the memory card is normally loaded, namely successfully identifying the memory card.
For example, at least two kinds of identification programs corresponding to the type parameter of the memory card are identification programs A1, A2, A3, respectively, and the sorting result obtained according to the frequency of data loading is A2, A3, A1. When the data loading is carried out on the memory card, firstly, adopting the identification program A2 to carry out the data loading on the memory card, and if the data loading is carried out normally, namely the memory card is successfully identified, then, no other identification program is adopted to carry out the data loading on the memory card; when the identification program A2 cannot normally load data on the memory card, the identification program A3 is adopted to load data on the memory card, and if the memory card is successfully identified after the data is normally loaded, the memory card is not loaded by other identification programs; when the identification program A3 cannot normally load data on the memory card, the identification program A1 is adopted to load data on the memory card, and if the data is loaded normally, the memory card is successfully identified.
By using the method, the selected identification programs are ordered according to the frequency of data loading, and then the identification programs are adopted to load the data of the memory cards in turn according to the ordering result, namely, the identification programs with high frequency are preferentially adopted to load the data, so that the success rate of identifying the memory cards is greatly improved.
The following is an embodiment of the apparatus of the present invention, which may be used to execute the embodiment of the identification method of the memory card described above. For details not disclosed in the embodiment of the device of the present invention, please refer to an embodiment of the identification method of the memory card of the present invention. The identification device of the memory card shown in the embodiment of the present invention may be applied to the electronic device 20 described in fig. 1.
FIG. 6 is a block diagram illustrating an identification device for a memory card according to an exemplary embodiment, including but not limited to: a type parameter reading module 110, an identification program obtaining module 130 and a data loading module 150.
A type parameter reading module 110, configured to read a type parameter of the memory card through a memory card protocol command;
the identification program obtaining module 130 is configured to obtain at least two identification programs corresponding to the type parameters of the memory card according to a preset correspondence between the identification programs and the type parameter ranges;
the data loading module 150 is configured to alternately load data onto the memory card by at least two identification programs until the memory card is successfully identified.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the identification method of the memory card, and will not be described herein.
Alternatively, as shown in FIG. 7, the recognition program acquisition module 130 includes, but is not limited to: the match operator sub-module 131 and the recognition program selection sub-module 133.
The matching operation sub-module 131 is configured to perform matching operation on the type parameter ranges corresponding to the various different recognition programs and the type parameters respectively, so as to obtain corresponding matching degrees;
the recognition program selecting sub-module 133 is configured to select at least two recognition programs from various different recognition programs according to the matching degree.
Optionally, the matching operation sub-module 131 in fig. 7 may be specifically configured to perform matching operation on the type parameter ranges corresponding to all the recognition programs in the local storage and the type parameters, so as to obtain corresponding matching degrees.
Optionally, the matching operation sub-module 131 in fig. 7 may be specifically configured to obtain multiple different identification programs in the server, and perform matching operation on the type parameter ranges corresponding to the multiple different identification programs and the type parameters respectively, so as to obtain corresponding matching degrees.
Optionally, as shown in fig. 8, the data loading module 150 in fig. 6 includes, but is not limited to: the ordering sub-module 151 and the data loading sub-module 153.
A sorting sub-module 151, configured to sort the selected at least two identification programs according to the frequency of loading data, so as to obtain a sorting result;
and the data loading sub-module 153 is configured to sequentially load data to the memory card by using at least two identification programs according to the sorting result until the memory card is successfully identified.
Fig. 9 is a block diagram of an electronic device, according to an example embodiment.
Referring to fig. 9, the electronic device 100 may include one or more of the following components: a processing component 101, a memory 102, a power supply component 103, a multimedia component 104, an audio component 105, an interactive interface 106, a sensor component 107, and a communication component 108. The above components are not necessarily all the above components, and the electronic device 100 may add other components or reduce some components according to its own functional requirements, which is not limited in this embodiment.
The processing component 101 generally controls overall operation of the electronic device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations, among others. The processing component 101 may include one or more processors 109 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 101 may include one or more modules that facilitate interactions between the processing component 101 and other components. For example, the processing component 101 may include a multimedia module to facilitate interaction between the multimedia component 104 and the processing component 101.
The memory 102 is configured to store various types of data to support operations at the electronic device 100. Examples of such data include instructions for any application or method operating on electronic device 100. The Memory 102 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as SRAM (Static Random Access Memory ), EEPROM (Electrically Erasable ProgrammableRead-Only Memory, electrically erasable programmable Read-Only Memory), EPROM (Erasable Programmable Read Only Memory, erasable programmable Read-Only Memory), PROM (Programmable Read-Only Memory ), ROM (Read-Only Memory), magnetic Memory, flash Memory, magnetic disk, or optical disk. Also stored in memory 102 are one or more modules configured to be executed by the one or more processors 109 to perform all or part of the steps of any of the methods shown in fig. 2, 3, 4, and 5.
The power supply assembly 103 provides power to the various components of the electronic device 100. Power supply components 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 100.
The multimedia component 104 includes a screen between the electronic device 100 and the user that provides an output interface. In some embodiments, the screen may include an LCD (Liquid Crystal Display ) and TP (touch panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
The audio component 105 is configured to output and/or input audio signals. For example, the audio component 105 includes a microphone configured to receive external audio signals when the electronic device 100 is in an operational mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signals may be further stored in the memory 102 or transmitted via the communication component 108. In some embodiments, the audio component 105 further comprises a speaker for outputting audio signals.
The interaction interface 106 is a communication connection channel between the electronic device 100 and an external device. For example, the interactive interface 106 includes an SD card interface, a SATA (Serial Advanced Technology Attachment ) interface, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) interface, a USB (Universal Serial Bus ) interface, and the like, and data transmission is performed between the electronic device 100 and an external device through the interactive interface 106.
The sensor assembly 107 includes one or more sensors for providing status assessment of various aspects of the electronic device 100. For example, the sensor assembly 107 may detect an on/off state of the electronic device 100, a relative positioning of the assemblies, the sensor assembly 107 may also detect a change in position of the electronic device 100 or a component of the electronic device 100, and a change in temperature of the electronic device 100. In some embodiments, the sensor assembly 107 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 108 is configured to facilitate communication between the electronic device 100 and other devices in a wired or wireless manner. The electronic device 100 may access a Wireless network based on a communication standard, such as WiFi (Wireless-Fidelity), 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 108 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 108 further includes an NFC (Near Field Communication ) module to facilitate short range communications. For example, in the NFC module, it may be implemented based on RFID (Radio Frequency Identification ) technology, irDA (Infrared Data Association, infrared data association) technology, UWB (Ultra-Wideband) technology, BT (Bluetooth) technology, and other technologies.
In an exemplary embodiment, the electronic device 100 may be implemented by one or more ASICs (Application Specific Integrated Circuit, application specific integrated circuits), DSPs (Digital Signal Processing, digital signal processors), PLDs (Programmable Logic Device, programmable logic devices), FPGAs (Field-Programmable Gate Array, field programmable gate arrays), controllers, microcontrollers, microprocessors or other electronic elements for performing the memory card identification methods described above.
Alternatively, when the electronic device 100 is an unmanned aerial vehicle, the unmanned aerial vehicle may be used to perform all or part of the steps in the identification method of the memory card shown in any of fig. 2, 3, 4, and 5. The unmanned aerial vehicle may include: a body; the camera device is connected with the machine body and provided with an interface for inserting a memory card; a processor located inside the fuselage; and a memory communicatively coupled to the processor; wherein the memory stores instructions executable by the processor to enable the processor to perform all or part of the steps of the method of identifying a memory card as shown in any one of figures 2, 3, 4 and 5.
When the unmanned aerial vehicle detects that the memory card is inserted into the interface of the camera device for inserting the memory card, the memory card can be loaded and identified by the identification method of the memory card, and when the identification is successful, the memory card can be used for storing images or videos shot by the camera device.
The specific manner in which the processor of the drone performs the operations in this embodiment has been described in detail in connection with embodiments of the method of identifying the memory card, and will not be described in detail herein.
It is to be understood that the invention is not limited to the precise construction described above and shown in the drawings, and that various modifications and changes may be effected therein by one skilled in the art without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (9)
1. A method of identifying a memory card, comprising:
reading type parameters of the memory card through a preset memory card protocol command, wherein the type parameters comprise an original equipment manufacturer identifier, capacity and speed level of the memory card;
matching the type parameter ranges corresponding to the various different identification programs with the type parameters respectively to obtain corresponding matching degrees;
presetting a matching degree threshold, and selecting at least two recognition programs with the matching degree exceeding the matching degree threshold;
and carrying out data loading on the memory card by the at least two identification programs in turn until the memory card is successfully identified.
2. The method according to claim 1, wherein the matching operation is performed on the type parameter ranges corresponding to the different identification programs with the type parameters, respectively, to obtain corresponding matching degrees, including:
and respectively carrying out matching operation on the type parameter ranges corresponding to all the identification programs in the local storage and the type parameters to obtain corresponding matching degree.
3. The method according to claim 1, wherein the identification program is stored in a server, and the matching operation is performed on the type parameter ranges corresponding to the different identification programs with the type parameters, so as to obtain corresponding matching degrees, including:
acquiring a plurality of different identification programs in the server;
and respectively carrying out matching operation on the type parameter ranges corresponding to the various different identification programs and the type parameters to obtain corresponding matching degrees.
4. The method of claim 1, wherein the alternately loading data on the memory card by the at least two identification programs until the memory card is successfully identified comprises:
sorting the at least two selected identification programs according to the frequency of data loading to obtain a sorting result;
and sequentially loading data to the memory card by adopting the at least two identification programs according to the sorting result until the memory card is successfully identified.
5. A memory card identification device comprising:
the type parameter reading module is used for reading type parameters of the memory card through a preset memory card protocol command, wherein the type parameters comprise an original equipment manufacturer identifier, capacity and speed level of the memory card;
the matching operation module is used for respectively carrying out matching operation on the type parameter ranges corresponding to the various different identification programs and the type parameters to obtain corresponding matching degrees;
the identification program acquisition module is used for presetting a matching degree threshold value and selecting at least two identification programs with the matching degree exceeding the matching degree threshold value;
and the data loading module is used for loading data to the memory card through the at least two identification programs in turn until the memory card is successfully identified.
6. The apparatus of claim 5, wherein the matching operation module is specifically configured to perform matching operation on type parameter ranges corresponding to all the recognition programs in the local storage and the type parameters respectively, so as to obtain corresponding matching degrees.
7. The apparatus of claim 5, wherein the identification program is stored in a server, and the matching operation module is specifically configured to obtain a plurality of different identification programs in the server, and perform matching operation on a type parameter range corresponding to each of the plurality of different identification programs and the type parameter to obtain a corresponding matching degree.
8. The apparatus of claim 5, wherein the data loading module comprises:
the sequencing sub-module is used for sequencing the at least two selected identification programs according to the frequency of data loading to obtain a sequencing result;
and the data loading sub-module is used for sequentially carrying out data loading on the memory card by adopting the at least two identification programs according to the sorting result until the memory card is successfully identified.
9. An electronic device, comprising:
an interface for inserting a memory card;
at least one processor located within the electronic device; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611233259.6A CN106776383B (en) | 2016-12-28 | 2016-12-28 | Memory card identification method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611233259.6A CN106776383B (en) | 2016-12-28 | 2016-12-28 | Memory card identification method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106776383A CN106776383A (en) | 2017-05-31 |
CN106776383B true CN106776383B (en) | 2023-07-04 |
Family
ID=58921319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611233259.6A Active CN106776383B (en) | 2016-12-28 | 2016-12-28 | Memory card identification method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776383B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108255747A (en) * | 2017-12-28 | 2018-07-06 | 深圳市泛海三江科技发展有限公司 | A kind of method and system of identification memory card |
CN109254935A (en) * | 2018-08-17 | 2019-01-22 | 青岛海信电器股份有限公司 | The recognition methods of smart television external storage equipment type and device |
CN111428842B (en) * | 2018-12-24 | 2022-10-18 | 华为技术有限公司 | Memory card identification method and mobile device |
DE102019213774A1 (en) * | 2019-09-10 | 2021-03-11 | Robert Bosch Gmbh | Method for providing homologation markings |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1555557A (en) * | 2001-07-18 | 2004-12-15 | ���µ�����ҵ��ʽ���� | Writing device, semiconductor memory card, program, and method |
CN1822030A (en) * | 2006-03-23 | 2006-08-23 | 骆建军 | Multiple interface self adaptive rsMMC memory card |
CN1991735A (en) * | 2005-12-06 | 2007-07-04 | 美国凹凸微系有限公司 | System and method for connecting memory card |
CN101419843A (en) * | 2008-12-04 | 2009-04-29 | 北京中星微电子有限公司 | Flash memory recognition method, recognition device and chip controller |
-
2016
- 2016-12-28 CN CN201611233259.6A patent/CN106776383B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1555557A (en) * | 2001-07-18 | 2004-12-15 | ���µ�����ҵ��ʽ���� | Writing device, semiconductor memory card, program, and method |
CN1991735A (en) * | 2005-12-06 | 2007-07-04 | 美国凹凸微系有限公司 | System and method for connecting memory card |
CN1822030A (en) * | 2006-03-23 | 2006-08-23 | 骆建军 | Multiple interface self adaptive rsMMC memory card |
CN101419843A (en) * | 2008-12-04 | 2009-04-29 | 北京中星微电子有限公司 | Flash memory recognition method, recognition device and chip controller |
Also Published As
Publication number | Publication date |
---|---|
CN106776383A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10254937B2 (en) | Graphical user interface and data transfer methods in a controlling device | |
CN106776383B (en) | Memory card identification method and device and electronic equipment | |
KR102218242B1 (en) | Method for controlling I/O interface and Electronic Device for the same | |
CN104050559A (en) | Method And Apparatus For Electronic Payment In Electronic Device | |
CN104484200A (en) | Method and device for updating firmware | |
US20150220247A1 (en) | Electronic device and method for providing information thereof | |
CN111581994B (en) | Near field communication NFC communication method and device and electronic equipment | |
US20220100490A1 (en) | Firmware updating method, and electronic apparatus and storage media for same | |
US9888451B2 (en) | Method of dynamically associating an accessory ID with a portable memory device and displaying confirmation of the association | |
KR20150097081A (en) | Data Operating Method based on a SIM information and Electronic Device | |
US8964610B2 (en) | System and method of reducing factory program time for wireless devices | |
US11968749B2 (en) | Method for installing subscriber profile and electronic device therefor | |
US20140024309A1 (en) | Nfc radio control in a mobile device | |
CN104536783A (en) | Method and device for setting reserved space | |
CN111065086A (en) | SIM (subscriber identity module) identification method and device, storage medium and mobile terminal | |
US9886055B2 (en) | Memory initializing method and electronic device supporting the same | |
CN105830421B (en) | Electronic device and operation method thereof | |
US20150278207A1 (en) | Electronic device and method for acquiring image data | |
CN112463199A (en) | System upgrading method and terminal | |
KR102377059B1 (en) | Electronic device and method for processing in the electronic device | |
CN105094608A (en) | Task display method and device | |
CN114416127A (en) | Terminal software upgrading method, terminal software upgrading device and storage medium | |
US20170014165A1 (en) | Pedicle screw engaging control instrument with a guidewire capturing system | |
CN110795153A (en) | Electronic equipment and hardware configuration method and device thereof | |
CN108874698A (en) | External equipment connection method, device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518000 9th floor, building B1, Zhiyuan, 1001 Xueyuan Avenue, Xili street, Shenzhen City, Guangdong Province Applicant after: Shenzhen daotong intelligent Aviation Technology Co.,Ltd. Address before: 518000 9th floor, building B1, Zhiyuan, 1001 Xueyuan Avenue, Xili street, Nanshan District, Shenzhen City, Guangdong Province Applicant before: AUTEL ROBOTICS Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |