CN110888679B - Memory compatibility method, device, equipment and medium - Google Patents
Memory compatibility method, device, equipment and medium Download PDFInfo
- Publication number
- CN110888679B CN110888679B CN201911089892.6A CN201911089892A CN110888679B CN 110888679 B CN110888679 B CN 110888679B CN 201911089892 A CN201911089892 A CN 201911089892A CN 110888679 B CN110888679 B CN 110888679B
- Authority
- CN
- China
- Prior art keywords
- memory
- information
- memories
- target
- memory set
- 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
- 230000015654 memory Effects 0.000 title claims abstract description 831
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000012216 screening Methods 0.000 claims abstract description 74
- 238000004590 computer program Methods 0.000 claims description 12
- 239000000126 substance Substances 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 6
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a memory compatible method, device, equipment and medium, comprising: acquiring a memory screening mode configured by a user; reading SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information; determining a target memory by using the SPD information and the memory screening mode; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information; and providing storage service for the electronic terminal by using the target memory. Therefore, the memory with consistent capacity information, main frequency information and manufacturer information is determined to provide storage service for the electronic terminal by using the memory screening mode configured by the user and the SPD information of the memory, and the problem of memory incompatibility can be solved, so that the memory and the electronic terminal are prevented from being damaged due to memory incompatibility.
Description
Technical Field
The present application relates to the field of storage technologies, and in particular, to a memory compatible method, apparatus, device, and medium.
Background
In the process of using the electronic terminal, a user may use memories with different main frequencies and different capacities for mixed insertion, and although the compatibility of memories proposed by many memory manufacturers is considered, it is still difficult to avoid the phenomenon that the memories and the electronic terminal are damaged due to the mixed insertion of the memories, and the mixed insertion of the memories also easily causes data loss and cannot be recovered.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a memory compatibility method, which can solve the problem of memory incompatibility, thereby avoiding memory and electronic terminal damage caused by memory incompatibility. The specific scheme is as follows:
in a first aspect, the present application discloses a memory compatibility method applied to a BIOS, including:
acquiring a memory screening mode configured by a user;
reading SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information;
determining a target memory by using the SPD information and the memory screening mode; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information;
and providing storage service for the electronic terminal by using the target memory.
Optionally, the determining a target memory by using the SPD information and the memory screening method includes:
determining a first memory set, a second memory set and a third memory set by using the SPD information;
the first memory set comprises memories with the same main frequency information; the second memory set comprises memories with the same capacity information; the third memory set comprises memories with the same manufacturer information;
and determining the target memory from the first memory set, the second memory set and the third memory set by using the memory screening mode.
Optionally, the determining the target memory from the first memory set, the second memory set, and the third memory set by using the memory screening method includes:
if the memory screening mode is the highest dominant frequency, determining a fourth memory set in the second memory set and the third memory set; the fourth memory set comprises memories with the same capacity information and manufacturer information; sorting the memories in the fourth memory set according to the size of the dominant frequency, and then determining the memories with the highest dominant frequency as the target memories;
if the second memory set and the third memory set do not have memories with the same capacity information and manufacturer information, all the memories in the second memory set and the third memory set are sorted according to the dominant frequency; if the number of the memories with the highest dominant frequencies is equal to 1, determining the memories as the target memories, if the number of the memories with the highest dominant frequencies is larger than 1, generating a user selection window, then acquiring selection information input by a user through the user selection window, and determining the target memories according to the selection information.
Optionally, the determining the target memory from the first memory set, the second memory set, and the third memory set by using the memory screening method includes:
if the memory screening mode is the priority maximum capacity, determining a fifth memory set in the first memory set and the third memory set; the fifth memory set comprises memories with the same dominant frequency information and manufacturer information; sorting the memories in the fifth memory set according to the capacity, and then determining the memories with the maximum capacity as the target memories;
if the first memory set and the third memory set do not have memories with the same dominant frequency information and manufacturer information, all the memories in the first memory set and the third memory set are sorted according to the capacity, if the number of the memories with the largest capacity is equal to 1, the memories are determined as the target memories, if the number of the memories with the largest capacity is larger than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
Optionally, the determining the target memory from the first memory set, the second memory set, and the third memory set by using the memory screening method includes:
if the memory screening mode is to screen a target manufacturer, determining a sixth memory set in the first memory set and the second memory set; the sixth memory set comprises memories with the same main frequency information and capacity information; determining the manufacturer information in the sixth memory set as the memory of the target manufacturer as the target memory;
if the first memory set and the second memory set do not have memories with the same dominant frequency information and capacity information, the memories of the target manufacturers in the first memory set and the second memory set are screened out, if the number of the screened memories of the target manufacturers is equal to 1, the memories are determined as the target memories, if the number of the screened memories of the target manufacturers is greater than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
Optionally, the providing, by using the target memory, a storage service for the electronic terminal includes:
acquiring the switch state of each memory carried by the electronic terminal;
if the switch state of the memory except the target memory is on, closing the memory;
and if the switch state of the memory in the target memory is closed, the memory is opened.
Optionally, the method further includes:
and when a memory opening instruction which is input by a user and aims at the memory other than the target memory is obtained, generating corresponding risk prompt information.
In a second aspect, the present application discloses a memory compatible device for BIOS, comprising:
the screening mode acquisition module is used for acquiring a memory screening mode configured by a user;
the SPD information reading module is used for reading the SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information;
the target memory determining module is used for determining a target memory by utilizing the SPD information and the memory screening mode; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information;
and the target memory working module is used for providing storage service for the electronic terminal by using the target memory.
In a third aspect, the present application discloses a memory compatible device comprising a processor and a memory; wherein the content of the first and second substances,
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the memory compatible method.
In a fourth aspect, the application discloses a computer readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the memory compatible method of any of claims 1 to 7.
Therefore, the memory screening method configured by the user is firstly obtained, and then SPD information of each memory carried by the electronic terminal is read; the SPD information comprises capacity information, main frequency information and manufacturer information, and a target memory is determined by utilizing the SPD information and the memory screening mode; and finally, providing storage service for the electronic terminal by using the target memory. Therefore, the memory with consistent capacity information, main frequency information and manufacturer information is determined to provide storage service for the electronic terminal by using the memory screening mode configured by the user and the SPD information of the memory, and the problem of memory incompatibility can be solved, so that the memory and the electronic terminal are prevented from being damaged due to memory incompatibility.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a memory compatibility method disclosed in the present application;
FIG. 2 is a flowchart of a specific memory compatibility method disclosed herein;
fig. 3 is a schematic structural diagram of a memory compatible device according to the present disclosure;
fig. 4 is a structural diagram of a memory compatible device disclosed in the present application;
fig. 5 is a structural diagram of an electronic terminal disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, the embodiment of the present application discloses a memory compatibility method applied to a BIOS (Basic Input/output system), including:
step S11: and acquiring a memory screening mode configured by a user.
In a specific implementation manner, BIOS software may be written, and a memory compatibility option may be added to a BIOS Setup interface, so as to obtain a memory screening method configured by a user, and when the BIOS is initialized, the memory screening method may be obtained through the memory compatibility option, and includes a highest dominant frequency priority, a maximum capacity priority, and a target vendor selection.
Step S12: reading SPD (i.e. SERIAL PRESENCE DETECT, serial detection of module existence) information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information.
In a specific embodiment, BIOS software may be written, and SPD information of each memory may be read through a Smbus (System management Bus). Also, the electronic terminal may include a server, a computer terminal, a storage device, and the like.
Step S13: determining a target memory by using the SPD information and the memory screening mode; and the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information.
That is, the memory with consistent capacity information, main frequency information and manufacturer information is determined by using the SPD information and the memory screening mode, so that the phenomenon of memory mixed insertion is avoided, the use of the memory is more flexible, and the utilization rate of the memory is improved.
Step S14: and providing storage service for the electronic terminal by using the target memory.
In a specific embodiment, the switch state of each memory mounted on the electronic terminal may be obtained first, and if the switch state of a memory other than the target memory is turned on, the memory is turned off, and if the switch state of a memory in the target memory is turned off, the memory is turned on. That is, the memories other than the target memory are closed, and if the closed memories exist in the target memory, the memories are opened, and then the target memory is used for providing storage service for the electronic terminal.
In addition, when a memory opening instruction which is input by a user and aims at a memory other than the target memory is acquired, corresponding risk prompt information is generated. That is, the embodiment of the application can provide the functions of selecting to open the memory and close the memory for the user, and when the memory selected to be opened by the user is no longer within the target memory range, the corresponding risk prompt information is generated to remind the user that the memory is opened by the user, which may cause the memory and the server to malfunction.
Therefore, in the embodiment of the application, the memory screening mode configured by the user is firstly obtained, and then the SPD information of each memory carried by the electronic terminal is read; the SPD information comprises capacity information, main frequency information and manufacturer information, and a target memory is determined by utilizing the SPD information and the memory screening mode; and finally, providing storage service for the electronic terminal by using the target memory. Therefore, the memory with consistent capacity information, main frequency information and manufacturer information is determined to provide storage service for the electronic terminal by using the memory screening mode configured by the user and the SPD information of the memory, and the problem of memory incompatibility can be solved, so that the memory and the electronic terminal are prevented from being damaged due to memory incompatibility.
Referring to fig. 2, the present application discloses a specific memory compatibility method applied to BIOS, including:
step S21: and acquiring a memory screening mode configured by a user.
Step S22: reading SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information.
Step S23: determining a first memory set, a second memory set and a third memory set by using the SPD information; the first memory set comprises memories with the same main frequency information; the second memory set comprises memories with the same capacity information; the third memory set comprises memories with the same vendor information.
In a specific implementation manner, the memory capacity information, the main frequency information, and the manufacturer information are summarized, and memories with the same main frequency information are classified into one type, memories with the same capacity information are classified into one type, and memories with the same manufacturer information are classified into one type, that is, a first memory set, a second memory set, and a third memory set are determined.
Step S24: determining the target memory from the first memory set, the second memory set and the third memory set by using the memory screening mode; and the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information.
In an embodiment, if the memory screening mode is the highest dominant frequency, a fourth memory set is determined in the second memory set and the third memory set; the fourth memory set comprises memories with the same capacity information and manufacturer information; and sequencing the memories in the fourth memory set according to the size of the dominant frequency, and then determining the memories with the highest dominant frequency as the target memories. For example, if the determined fourth memory set is (main frequency 100MHZ, capacity 500G, vendor samsung), (main frequency 200MHZ, capacity 500G, vendor samsung), (main frequency 800MHZ, capacity 500G, vendor samsung), the four memories are sorted according to the main frequency size, and it is determined that the main frequency is the largest, that is, two memories of the main frequency 800MHZ are the target memories. If the second memory set and the third memory set do not have memories with the same capacity information and manufacturer information, all the memories in the second memory set and the third memory set are sorted according to the dominant frequency; if the number of the memories with the highest main frequency is equal to 1, determining the memories as the target memories, if the number of the memories with the highest main frequency is larger than 1, generating a user selection window, then acquiring selection information input by a user through the user selection window, and determining the target memories according to the selection information. For example, memories with the same capacity information and manufacturer information do not exist in the second memory set and the third memory set, all memories in the second memory set and the third memory set are sorted according to the main frequency, wherein the maximum main frequency is 800MHZ, two memories with the main frequency of 800MHZ exist, which are (main frequency 800MHZ, capacity 500G, manufacturer samsung), (main frequency 800MHZ, capacity 1T, manufacturer samsung), a user selection window is generated, then selection information input by a user is obtained through the user selection window, and one of the two memories is determined as the target memory according to the selection information.
If the memory screening mode is the priority maximum capacity, determining a fifth memory set in the first memory set and the third memory set; the fifth memory set comprises memories with the same dominant frequency information and manufacturer information; and sequencing the memories in the fifth memory set according to the capacity, and then determining the memories with the maximum capacity as the target memories. For example, if the determined fifth memory set is (main frequency 800MHZ, capacity 500G, vendor samsung), (main frequency 800MHZ, capacity 1T, vendor samsung), the four memories are sorted according to the capacity size, and it is determined that the two memories with the largest capacity, that is, the capacity 1T, are the target memories. If the first memory set and the third memory set do not have memories with the same dominant frequency information and manufacturer information, all the memories in the first memory set and the third memory set are sorted according to the capacity, if the number of the memories with the largest capacity is equal to 1, the memories are determined as the target memories, if the number of the memories with the largest capacity is larger than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information. For example, memories with the same dominant frequency information and manufacturer information do not exist in the first memory set and the third memory set, all memories in the first memory set and the third memory set are sorted according to the capacity, wherein the maximum capacity is 1T, and two memories with the dominant frequency of 1T exist, which are (dominant frequency 200MHZ, capacity 1T, manufacturer samsung), (dominant frequency 800MHZ, capacity 1T, manufacturer samsung), a user selection window is generated, then selection information input by a user is obtained through the user selection window, and one of the two memories is determined as the target memory according to the selection information.
If the memory screening mode is to screen a target manufacturer, determining a sixth memory set in the first memory set and the second memory set; the sixth memory set comprises memories with the same main frequency information and capacity information; and determining the manufacturer information in the sixth memory set as the memory of the target manufacturer as the target memory. For example, the determined sixth memory set is (main frequency 800MHZ, capacity 500G, vendor samsung), (main frequency 800MHZ, capacity 500G, vendor IBM), and if the target memory selected by the user is samsung, two memories of (main frequency 800MHZ, capacity 500G, vendor samsung), (main frequency 800MHZ, capacity 500G, vendor samsung) are determined as target memories. If the first memory set and the second memory set do not have memories with the same dominant frequency information and capacity information, the memories of the target manufacturers in the first memory set and the second memory set are screened out, if the number of the screened memories of the target manufacturers is equal to 1, the memories are determined as the target memories, if the number of the screened memories of the target manufacturers is greater than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information. For example, there is no memory with the same dominant frequency information and capacity information in the first memory set and the second memory set, and the target manufacturer for selection is samsung, the memory of samsung in all the memories in the first memory set and the second memory set is screened out, wherein the memory of samsung is 2, a user selection window is generated, then the selection information input by the user is obtained through the user selection window, and one of the two memories is determined as the target memory according to the selection information.
Step S25: and providing storage service for the electronic terminal by using the target memory.
Referring to fig. 3, fig. 3 discloses a memory compatible device applied to BIOS, comprising:
the screening mode obtaining module 11 is used for obtaining a memory screening mode configured by a user;
the SPD information reading module 12 is used for reading the SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information;
a target memory determining module 13, configured to determine a target memory by using the SPD information and the memory screening method; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information;
and the target memory working module 14 is used for providing storage service for the electronic terminal by using the target memory.
Therefore, in the embodiment of the application, the memory screening mode configured by the user is firstly obtained, and then the SPD information of each memory carried by the electronic terminal is read; the SPD information comprises capacity information, main frequency information and manufacturer information, and a target memory is determined by utilizing the SPD information and the memory screening mode; and finally, providing storage service for the electronic terminal by using the target memory. Therefore, the memory with consistent capacity information, main frequency information and manufacturer information is determined to provide storage service for the electronic terminal by using the memory screening mode configured by the user and the SPD information of the memory, and the problem of memory incompatibility can be solved, so that the memory and the electronic terminal are prevented from being damaged due to memory incompatibility.
The target memory determining module 13 may include:
the memory classification submodule is used for determining a first memory set, a second memory set and a third memory set by utilizing the SPD information; the first memory set comprises memories with the same main frequency information; the second memory set comprises memories with the same capacity information; the third memory set comprises memories with the same manufacturer information;
and the target memory determining submodule is used for determining the target memory from the first memory set, the second memory set and the third memory set by using the memory screening mode.
The target memory determination submodule is specifically configured to determine a fourth memory set in the second memory set and the third memory set if the memory screening mode is the highest dominant frequency in priority; the fourth memory set comprises memories with the same capacity information and manufacturer information; sorting the memories in the fourth memory set according to the size of the dominant frequency, and then determining the memories with the highest dominant frequency as the target memories; if the second memory set and the third memory set do not have memories with the same capacity information and manufacturer information, all the memories in the second memory set and the third memory set are sorted according to the dominant frequency; if the number of the memories with the highest dominant frequencies is equal to 1, determining the memories as the target memories, if the number of the memories with the highest dominant frequencies is larger than 1, generating a user selection window, then acquiring selection information input by a user through the user selection window, and determining the target memories according to the selection information.
If the memory screening mode is the priority maximum capacity, determining a fifth memory set in the first memory set and the third memory set; the fifth memory set comprises memories with the same dominant frequency information and manufacturer information; sorting the memories in the fifth memory set according to the capacity, and then determining the memories with the maximum capacity as the target memories; if the first memory set and the third memory set do not have memories with the same dominant frequency information and manufacturer information, all the memories in the first memory set and the third memory set are sorted according to the capacity, if the number of the memories with the largest capacity is equal to 1, the memories are determined as the target memories, if the number of the memories with the largest capacity is larger than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
If the memory screening mode is to screen a target manufacturer, determining a sixth memory set in the first memory set and the second memory set; the sixth memory set comprises memories with the same main frequency information and capacity information; determining the manufacturer information in the sixth memory set as the memory of the target manufacturer as the target memory; if the first memory set and the second memory set do not have memories with the same dominant frequency information and capacity information, the memories of the target manufacturers in the first memory set and the second memory set are screened out, if the number of the screened memories of the target manufacturers is equal to 1, the memories are determined as the target memories, if the number of the screened memories of the target manufacturers is greater than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
The target memory working module 14 is specifically configured to obtain a switch state of each memory carried by the electronic terminal; if the switch state of the memory except the target memory is on, closing the memory; and if the switch state of the memory in the target memory is closed, the memory is opened.
In addition, the memory compatible device further includes:
and the risk prompt module is used for generating corresponding risk prompt information when acquiring a memory starting instruction which is input by a user and aims at a memory other than the target memory.
Referring to fig. 4, the present application discloses a memory compatible device including a processor 21 and a memory 22; wherein, the memory 22 is used for saving computer programs; the processor 21 is configured to execute the computer program to implement the following steps:
acquiring a memory screening mode configured by a user; reading SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information; determining a target memory by using the SPD information and the memory screening mode; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information; and providing storage service for the electronic terminal by using the target memory.
Therefore, in the embodiment of the application, the memory screening mode configured by the user is firstly obtained, and then the SPD information of each memory carried by the electronic terminal is read; the SPD information comprises capacity information, main frequency information and manufacturer information, and a target memory is determined by utilizing the SPD information and the memory screening mode; and finally, providing storage service for the electronic terminal by using the target memory. Therefore, the memory with consistent capacity information, main frequency information and manufacturer information is determined to provide storage service for the electronic terminal by using the memory screening mode configured by the user and the SPD information of the memory, and the problem of memory incompatibility can be solved, so that the memory and the electronic terminal are prevented from being damaged due to memory incompatibility.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: determining a first memory set, a second memory set and a third memory set by using the SPD information; the first memory set comprises memories with the same main frequency information; the second memory set comprises memories with the same capacity information; the third memory set comprises memories with the same manufacturer information; and determining the target memory from the first memory set, the second memory set and the third memory set by using the memory screening mode.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: if the memory screening mode is the highest dominant frequency, determining a fourth memory set in the second memory set and the third memory set; the fourth memory set comprises memories with the same capacity information and manufacturer information; sorting the memories in the fourth memory set according to the size of the dominant frequency, and then determining the memories with the highest dominant frequency as the target memories; if the second memory set and the third memory set do not have memories with the same capacity information and manufacturer information, all the memories in the second memory set and the third memory set are sorted according to the dominant frequency; if the number of the memories with the highest dominant frequencies is equal to 1, determining the memories as the target memories, if the number of the memories with the highest dominant frequencies is larger than 1, generating a user selection window, then acquiring selection information input by a user through the user selection window, and determining the target memories according to the selection information.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: if the memory screening mode is the priority maximum capacity, determining a fifth memory set in the first memory set and the third memory set; the fifth memory set comprises memories with the same dominant frequency information and manufacturer information; sorting the memories in the fifth memory set according to the capacity, and then determining the memories with the maximum capacity as the target memories; if the first memory set and the third memory set do not have memories with the same dominant frequency information and manufacturer information, all the memories in the first memory set and the third memory set are sorted according to the capacity, if the number of the memories with the largest capacity is equal to 1, the memories are determined as the target memories, if the number of the memories with the largest capacity is larger than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: if the memory screening mode is to screen a target manufacturer, determining a sixth memory set in the first memory set and the second memory set; the sixth memory set comprises memories with the same main frequency information and capacity information; determining the manufacturer information in the sixth memory set as the memory of the target manufacturer as the target memory; if the first memory set and the second memory set do not have memories with the same dominant frequency information and capacity information, the memories of the target manufacturers in the first memory set and the second memory set are screened out, if the number of the screened memories of the target manufacturers is equal to 1, the memories are determined as the target memories, if the number of the screened memories of the target manufacturers is greater than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: acquiring the switch state of each memory carried by the electronic terminal; if the switch state of the memory except the target memory is on, closing the memory; and if the switch state of the memory in the target memory is closed, the memory is opened.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: and when a memory opening instruction which is input by a user and aims at the memory other than the target memory is obtained, generating corresponding risk prompt information.
The memory 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the storage manner may be a transient storage manner or a permanent storage manner.
Referring to fig. 5, an embodiment of the present application discloses an electronic terminal 20, which includes a memory compatible device including a processor 21 and a storage 22 disclosed in the foregoing embodiments. For the steps that the processor 21 can specifically execute, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described herein again.
Further, the electronic terminal 20 in this embodiment may further specifically include a power supply 23, a communication interface 24, an input/output interface 25, and a communication bus 26; the power supply 23 is configured to provide a working voltage for each hardware device on the terminal 20; the communication interface 24 can create a data transmission channel with an external device for the terminal 20, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to a specific application requirement, which is not specifically limited herein.
Further, an embodiment of the present application also discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the following steps:
acquiring a memory screening mode configured by a user; reading SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information; determining a target memory by using the SPD information and the memory screening mode; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information; and providing storage service for the electronic terminal by using the target memory.
Therefore, in the embodiment of the application, the memory screening mode configured by the user is firstly obtained, and then the SPD information of each memory carried by the electronic terminal is read; the SPD information comprises capacity information, main frequency information and manufacturer information, and a target memory is determined by utilizing the SPD information and the memory screening mode; and finally, providing storage service for the electronic terminal by using the target memory. Therefore, the memory with consistent capacity information, main frequency information and manufacturer information is determined to provide storage service for the electronic terminal by using the memory screening mode configured by the user and the SPD information of the memory, and the problem of memory incompatibility can be solved, so that the memory and the electronic terminal are prevented from being damaged due to memory incompatibility.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: determining a first memory set, a second memory set and a third memory set by using the SPD information; the first memory set comprises memories with the same main frequency information; the second memory set comprises memories with the same capacity information; the third memory set comprises memories with the same manufacturer information; and determining the target memory from the first memory set, the second memory set and the third memory set by using the memory screening mode.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: if the memory screening mode is the highest dominant frequency, determining a fourth memory set in the second memory set and the third memory set; the fourth memory set comprises memories with the same capacity information and manufacturer information; sorting the memories in the fourth memory set according to the size of the dominant frequency, and then determining the memories with the highest dominant frequency as the target memories; if the second memory set and the third memory set do not have memories with the same capacity information and manufacturer information, all the memories in the second memory set and the third memory set are sorted according to the dominant frequency; if the number of the memories with the highest dominant frequencies is equal to 1, determining the memories as the target memories, if the number of the memories with the highest dominant frequencies is larger than 1, generating a user selection window, then acquiring selection information input by a user through the user selection window, and determining the target memories according to the selection information.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: if the memory screening mode is the priority maximum capacity, determining a fifth memory set in the first memory set and the third memory set; the fifth memory set comprises memories with the same dominant frequency information and manufacturer information; sorting the memories in the fifth memory set according to the capacity, and then determining the memories with the maximum capacity as the target memories; if the first memory set and the third memory set do not have memories with the same dominant frequency information and manufacturer information, all the memories in the first memory set and the third memory set are sorted according to the capacity, if the number of the memories with the largest capacity is equal to 1, the memories are determined as the target memories, if the number of the memories with the largest capacity is larger than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: if the memory screening mode is to screen a target manufacturer, determining a sixth memory set in the first memory set and the second memory set; the sixth memory set comprises memories with the same main frequency information and capacity information; determining the manufacturer information in the sixth memory set as the memory of the target manufacturer as the target memory; if the first memory set and the second memory set do not have memories with the same dominant frequency information and capacity information, the memories of the target manufacturers in the first memory set and the second memory set are screened out, if the number of the screened memories of the target manufacturers is equal to 1, the memories are determined as the target memories, if the number of the screened memories of the target manufacturers is greater than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: acquiring the switch state of each memory carried by the electronic terminal; if the switch state of the memory except the target memory is on, closing the memory; and if the switch state of the memory in the target memory is closed, the memory is opened.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and when a memory opening instruction which is input by a user and aims at the memory other than the target memory is obtained, generating corresponding risk prompt information.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above detailed description is given to a memory compatible method, device, apparatus, and medium provided by the present application, and a specific example is applied in the present application to explain the principle and implementation manner of the present application, and the description of the above embodiment is only used to help understand the method and core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (9)
1. A memory compatible method applied to BIOS includes:
acquiring a memory screening mode configured by a user;
reading SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, dominant frequency information and manufacturer information;
determining a target memory by using the SPD information and the memory screening mode; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information;
providing storage service for the electronic terminal by utilizing the target memory;
the determining a target memory by using the SPD information and the memory screening mode comprises:
determining a first memory set, a second memory set and a third memory set by using the SPD information;
the first memory set comprises memories with the same main frequency information; the second memory set comprises memories with the same capacity information; the third memory set comprises memories with the same manufacturer information;
and determining the target memory from the first memory set, the second memory set and the third memory set by using the memory screening mode.
2. The method according to claim 1, wherein the determining the target memory from the first memory set, the second memory set, and the third memory set by using the memory screening method comprises:
if the memory screening mode is the highest dominant frequency, determining a fourth memory set in the second memory set and the third memory set; the fourth memory set comprises memories with the same capacity information and manufacturer information; sorting the memories in the fourth memory set according to the size of the dominant frequency, and then determining the memories with the highest dominant frequency as the target memories;
if no memories with the same capacity information and manufacturer information exist in the second memory set and the third memory set, all memories in the second memory set and the third memory set are sorted according to the main frequency; if the number of the memories with the highest dominant frequencies is equal to 1, determining the memories as the target memories, if the number of the memories with the highest dominant frequencies is larger than 1, generating a user selection window, then acquiring selection information input by a user through the user selection window, and determining the target memories according to the selection information.
3. The method according to claim 1, wherein the determining the target memory from the first memory set, the second memory set, and the third memory set by using the memory screening method comprises:
if the memory screening mode is the priority maximum capacity, determining a fifth memory set in the first memory set and the third memory set; the fifth memory set comprises memories with the same dominant frequency information and manufacturer information; sorting the memories in the fifth memory set according to the capacity, and then determining the memories with the maximum capacity as the target memories;
if the first memory set and the third memory set do not have memories with the same dominant frequency information and manufacturer information, all the memories in the first memory set and the third memory set are sorted according to the capacity, if the number of the memories with the largest capacity is equal to 1, the memories are determined as the target memories, if the number of the memories with the largest capacity is larger than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
4. The method according to claim 1, wherein the determining the target memory from the first memory set, the second memory set, and the third memory set by using the memory screening method comprises:
if the memory screening mode is to screen a target manufacturer, determining a sixth memory set in the first memory set and the second memory set; the sixth memory set comprises memories with the same main frequency information and capacity information; determining the manufacturer information in the sixth memory set as the memory of the target manufacturer as the target memory;
if the first memory set and the second memory set do not have memories with the same dominant frequency information and capacity information, the memories of the target manufacturers in the first memory set and the second memory set are screened out, if the number of the screened memories of the target manufacturers is equal to 1, the memories are determined as the target memories, if the number of the screened memories of the target manufacturers is greater than 1, a user selection window is generated, then selection information input by a user is obtained through the user selection window, and the target memories are determined according to the selection information.
5. The memory compatibility method according to claim 1, wherein the providing a storage service for the electronic terminal by using the target memory comprises:
acquiring the switch state of each memory carried by the electronic terminal;
if the switch state of the memory except the target memory is on, closing the memory;
and if the switch state of the memory in the target memory is closed, the memory is opened.
6. The memory compatible method according to any of claims 1 to 5, further comprising:
and when a memory opening instruction which is input by a user and aims at the memory other than the target memory is obtained, generating corresponding risk prompt information.
7. A memory compatible device applied to BIOS comprises:
the screening mode acquisition module is used for acquiring a memory screening mode configured by a user;
the SPD information reading module is used for reading the SPD information of each memory carried by the electronic terminal; the SPD information comprises capacity information, main frequency information and manufacturer information;
the target memory determining module is used for determining a target memory by utilizing the SPD information and the memory screening mode; the target memory is a memory with consistent capacity information, dominant frequency information and manufacturer information;
the target memory working module is used for providing storage service for the electronic terminal by using the target memory;
wherein the target memory determination module comprises:
the memory classification submodule is used for determining a first memory set, a second memory set and a third memory set by utilizing the SPD information; the first memory set comprises memories with the same main frequency information; the second memory set comprises memories with the same capacity information; the third memory set comprises memories with the same manufacturer information;
and the target memory determining submodule is used for determining the target memory from the first memory set, the second memory set and the third memory set by using the memory screening mode.
8. A memory compatible device comprising a processor and a memory; wherein the content of the first and second substances,
the memory is used for storing a computer program;
the processor for executing the computer program to implement the memory compatible method of any of claims 1 to 6.
9. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the memory compatible method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911089892.6A CN110888679B (en) | 2019-11-08 | 2019-11-08 | Memory compatibility method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911089892.6A CN110888679B (en) | 2019-11-08 | 2019-11-08 | Memory compatibility method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110888679A CN110888679A (en) | 2020-03-17 |
CN110888679B true CN110888679B (en) | 2022-05-24 |
Family
ID=69747183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911089892.6A Active CN110888679B (en) | 2019-11-08 | 2019-11-08 | Memory compatibility method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110888679B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112560120B (en) * | 2020-11-25 | 2024-04-05 | 深圳市金泰克半导体有限公司 | Secure memory bank and method for starting secure memory bank |
CN112732186A (en) * | 2020-12-31 | 2021-04-30 | 深圳创维-Rgb电子有限公司 | DDR self-adaptation method, device and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1629812A (en) * | 2003-12-15 | 2005-06-22 | 联想(北京)有限公司 | Memory power supply regulating and testing device |
CN102063299A (en) * | 2010-12-21 | 2011-05-18 | 东莞宇龙通信科技有限公司 | Method and device for assessing application running condition of mobile terminal, mobile terminal |
CN110286855A (en) * | 2019-06-14 | 2019-09-27 | 江苏都万电子科技有限公司 | A kind of devices and methods therefor of the automatic assorted cold dishes of multiple TF cards |
-
2019
- 2019-11-08 CN CN201911089892.6A patent/CN110888679B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1629812A (en) * | 2003-12-15 | 2005-06-22 | 联想(北京)有限公司 | Memory power supply regulating and testing device |
CN102063299A (en) * | 2010-12-21 | 2011-05-18 | 东莞宇龙通信科技有限公司 | Method and device for assessing application running condition of mobile terminal, mobile terminal |
CN110286855A (en) * | 2019-06-14 | 2019-09-27 | 江苏都万电子科技有限公司 | A kind of devices and methods therefor of the automatic assorted cold dishes of multiple TF cards |
Also Published As
Publication number | Publication date |
---|---|
CN110888679A (en) | 2020-03-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110888679B (en) | Memory compatibility method, device, equipment and medium | |
CN110781119B (en) | I2C bus expansion interface, control method thereof and system on chip | |
CN109324991B (en) | Hot plug device, method, medium and system of PCIE (peripheral component interface express) equipment | |
US10304546B2 (en) | External storage device and method of setting reference frequency for the same | |
CN106250092B (en) | A kind of terminal screen switching method and device | |
CN116894413A (en) | Logic mapping method, device, equipment and storage medium based on hardware | |
CN113703859A (en) | Dynamic link library injection method, device, equipment and storage medium | |
US10223110B2 (en) | Central processing unit and arithmetic unit | |
CN110297764B (en) | Vulnerability test model training method and device | |
EP3352048A1 (en) | Mobile terminal and working method thereof | |
CN112748961A (en) | Method and device for executing starting task | |
CN106160033A (en) | A kind for the treatment of method and apparatus of terminal charger | |
CN105049452A (en) | Resource download mode switching method and device, and intelligent terminal | |
CN112187252A (en) | Interface identification circuit, method, equipment and electronic equipment | |
CN111651215A (en) | BIOS setting self-adaption method and device, storage medium and computer equipment | |
CN109976970B (en) | Method, system and storage medium for prolonging service life of mainboard chip | |
CN109753470A (en) | A kind of control method, micro-control unit and computer storage medium | |
CN108563578A (en) | SDK compatibility detection method, device, equipment and readable storage medium storing program for executing | |
CN105099766A (en) | Method and device for preventing interface from occupying resource excessively | |
CN107786382B (en) | Interface selection method and device, test console and test system | |
CN114968558A (en) | Memory cleaning method and related equipment | |
TW201426544A (en) | Electronic system and boot management method | |
CN113064833A (en) | Single chip microcomputer simulation method, system, device, equipment and storage medium | |
CN106201938A (en) | A kind of chip, hub, electronic equipment and the method for interruption U SB signal | |
CN112948173A (en) | Data recovery method, device, equipment and medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |