CN112817975A - Method and system for setting physical memory and mobile terminal - Google Patents

Method and system for setting physical memory and mobile terminal Download PDF

Info

Publication number
CN112817975A
CN112817975A CN202110099694.9A CN202110099694A CN112817975A CN 112817975 A CN112817975 A CN 112817975A CN 202110099694 A CN202110099694 A CN 202110099694A CN 112817975 A CN112817975 A CN 112817975A
Authority
CN
China
Prior art keywords
memory
entity
mobile terminal
block number
association table
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.)
Pending
Application number
CN202110099694.9A
Other languages
Chinese (zh)
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202110099694.9A priority Critical patent/CN112817975A/en
Publication of CN112817975A publication Critical patent/CN112817975A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Abstract

The invention discloses a method, a system and a mobile terminal for setting an entity memory, wherein the method comprises the following steps: predefining an association table of a memory number and a block number of an entity memory; when the mobile terminal detects that the entity memory is accessed, the memory number of the accessed entity memory is obtained; and searching a corresponding block number in an association table of the memory number and the block number of a predefined entity memory according to the acquired memory number. The invention aims to flexibly set the address of the memory when the equipment produced by a mobile terminal manufacturer is provided with the external memory, so that the memory improves the storage efficiency, and simultaneously, the problems caused by the change of the address of the memory after the external memory is replaced due to faults are avoided, thereby bringing convenience to users.

Description

Method and system for setting physical memory and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminal batteries, in particular to a method and a system for setting an entity memory and a mobile terminal.
Background
The mobile terminal or called mobile communication terminal refers to a computer device which can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even a vehicle-mounted computer. But most often refer to cell phones or smart phones and tablets with multiple application functions. With the development of networks and technologies towards increasingly broader bands, the mobile communications industry will move towards a true mobile information age. On the other hand, with the rapid development of integrated circuit technology, the processing capability of the mobile terminal has already possessed strong processing capability, and the mobile terminal is changing from a simple conversation tool to an integrated information processing platform. This also adds more development space to mobile terminals.
Mobile terminals have been developed as simple communication devices with mobile communications for decades. From 2007, the gene mutation of the mobile terminal is intelligently triggered, and the traditional positioning of the terminal as a mobile network terminal is fundamentally changed. The mobile intelligent terminal is almost instantly changed into a key entrance and a main innovation platform of internet business, a novel media, electronic commerce and information service platform, the most important hub of internet resources, mobile network resources and environment interaction resources, and an operating system and a processor chip of the mobile intelligent terminal even become the strategic high points of the whole ICT industry at present. The subversive change caused by the mobile intelligent terminal opens the sequence of mobile internet industry development and opens a new technical industry period. With the continuous development of the mobile intelligent terminal, the influence of the mobile intelligent terminal is more extensive than that of a shoulder radio, a television and the internet (PC), and the mobile intelligent terminal becomes a 4 th terminal product which has wide penetration, rapid popularization and great influence and can reach the aspects of human social life historically.
The memory cell is actually one type of sequential logic circuit. The functions of the memory can be divided into a Read Only Memory (ROM) and a Random Access Memory (RAM) according to the use types of the memory, and the functions of the memory are greatly different, so that the description is different. The memory is a collection of many memory cells, arranged in order of cell number. Each cell is made up of a number of ternary bits to represent the value stored in the memory cell, and this structure is very similar to the structure of an array, so in VHDL language, the memory is usually described by an array. The memory is a storage unit for storing programs and various data information. The memory can be divided into two main categories, namely main memory or internal memory and auxiliary memory or external memory; it is the main memory that exchanges information directly with the CPU. The main memory works by storing or reading various kinds of information according to the addresses of the memory cells, which is called accessing the memory. The carrier in main memory for collecting memory units is called memory bank, and each unit in the memory bank can store a string of information represented by binary code, and the total number of bits of the information is called the word length of one memory unit. The addresses of the storage units correspond to the information stored in the storage units one by one, only one unit address is fixed, and the information stored in the storage units can be replaced. The binary code indicating each cell is called an address code. When a unit is sought, its address code is given first. The register that temporarily stores this address code is called the Memory Address Register (MAR). A Memory Data Register (MDR) is provided for storing information retrieved from memory locations in main memory or information to be stored in a memory location.
At present, various programs and functions on a mobile terminal are more, for example, a user in a common mobile terminal is provided with navigation, WeChat, microblog, Paibao and the like, each of the programs and functions supports a plurality of account numbers and accumulates a large amount of pictures, data, files and the like in daily use, so that the mobile terminal often needs a large amount of memory to store the accounts, and some mobile terminal manufacturers are provided with external memories on the mobile terminal to meet the requirements; in actual use, because the memory address of the external memory is fixed by the interface of the external memory, the external memory is also fixed and lacks flexibility, and meanwhile, after the external memory is replaced due to faults, the memory address can be changed to cause some problems.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a method, a system and a mobile terminal for setting an entity memory, and aims to solve the problem that in the prior art, when an external memory is replaced due to a fault, the address of the memory changes to cause some faults.
In order to achieve the above object, the present invention provides a method for setting an entity memory, including the steps of:
predefining an association table of a memory number and a block number of an entity memory;
when the mobile terminal detects that the entity memory is accessed, the memory number of the accessed entity memory is obtained;
and searching a corresponding block number in an association table of the memory number and the block number of a predefined entity memory according to the acquired memory number.
Optionally, the method for setting an entity memory, wherein, according to the obtained memory number, the corresponding block number is looked up in an association table that defines a memory number and a block number of the entity memory in advance, and then the method further includes:
and reporting the acquired block number of the entity memory.
Optionally, the entity storage setting method further includes:
and receiving an operation instruction of a user, and dynamically modifying the association table of the memory number and the block number of the entity memory.
Optionally, the method for setting an entity storage, wherein the predefining an association table of a storage number and a block number of the entity storage specifically includes:
predefining a memory number of the physical memory;
the memory number is associated with a block number to generate an association table.
Optionally, the method for setting an entity memory includes setting an association table of a memory number and a block number of the entity memory as a lookup table, where the association table of the memory number and the block number of the entity memory is composed of a plurality of rows, and each row represents an association relationship between a memory number and a block number.
Optionally, the method for setting an entity storage, wherein the obtaining, when the mobile terminal detects that the entity storage is accessed, a storage number of the accessed entity storage specifically includes:
the mobile terminal detects whether the entity memory is accessed in real time;
and when the mobile terminal detects that the entity memory is accessed, obtaining a memory number according to a predefined memory number of the entity memory.
Optionally, the method for setting an entity memory, where the searching for a corresponding block number in an association table of a memory number and a block number of a predefined entity memory according to the obtained memory number specifically includes:
the mobile terminal searches an association table which defines the memory number and the block number of the entity memory in advance according to the memory number acquired by the mobile terminal;
and the mobile terminal searches the corresponding block numbers in the association table of the memory number and the block number of the entity memory line by line until the corresponding block numbers are found.
In addition, to achieve the above object, the present invention further provides an entity storage setting system, wherein the entity storage setting system includes:
the system comprises a predefining module, a storage module and a block number generation module, wherein the predefining module is used for predefining an association table of a storage number and a block number of an entity storage;
the information acquisition module is used for acquiring the memory number of the accessed entity memory when the mobile terminal detects that the entity memory is accessed;
and the information searching module is used for searching the corresponding block number in the association table of the memory number and the block number of the predefined entity memory according to the acquired memory number.
In addition, to achieve the above object, the present invention also provides a mobile terminal, wherein the mobile terminal includes: a memory, a processor and a physical memory setup program stored on the memory and executable on the processor, the physical memory setup program when executed by the processor implementing the steps of the physical memory setup method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing a physical memory setup program which, when executed by a processor, implements the steps of the physical memory setup method as described above.
The invention defines the association table of the memory number and the block number of the entity memory in advance; when the mobile terminal detects that the entity memory is accessed, the memory number of the accessed entity memory is obtained; and searching a corresponding block number in an association table of the memory number and the block number of a predefined entity memory according to the acquired memory number. The invention aims to flexibly set the address of the memory when the equipment produced by a mobile terminal manufacturer is provided with the external memory, so that the memory improves the storage efficiency, and simultaneously, the problems caused by the change of the address of the memory after the external memory is replaced due to faults are avoided, thereby bringing convenience to users.
Drawings
FIG. 1 is a flow chart of a physical memory setup method according to a preferred embodiment of the present invention;
FIG. 2 is a flowchart of step S10 in the preferred embodiment of the physical memory setup method of the present invention;
FIG. 3 is a flowchart of step S20 in the preferred embodiment of the physical memory setup method of the present invention;
FIG. 4 is a flowchart of step S30 in the preferred embodiment of the physical memory setup method of the present invention;
FIG. 5 is a schematic diagram of a preferred embodiment of a physical memory setup system according to the invention;
FIG. 6 is a diagram illustrating an operating environment of a mobile terminal according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The memory of a computer may be divided into internal and external memory. Internal memory is frequently used by computers during program execution and is directly accessible during one instruction cycle. External memory requires that the computer read information from an external storage device such as magnetic tape or disk. This is similar to students taking notes in a classroom. If the student knows the content without looking at the notes, the information is stored in "internal memory". If the student must review the note, the information is in "external memory". There are many types of internal memory. Random Access Memory (RAM) is used as a scratch pad memory area during computations. Data can be stored, read, and replaced with new data in RAM. RAM is available when the computer is running. It contains information that is placed at the problem that the computer is dealing with at the moment. Most RAM is "unstable," meaning that information is lost when the computer is shut down. Read Only Memory (ROM) is stable. It is used to store the set of instructions that the computer needs when necessary. The information stored in ROM is hard-wired (i.e., it is a physical component of the electronic components) and cannot be changed by a computer (hence the term "read-only"). Alterable ROMs, known as programmable read-only memories (PROMs), may be altered by exposure to an external electrical device or optical device, such as a laser.
At present, various programs and functions on a mobile terminal are more, for example, a user in a common mobile terminal is provided with navigation, WeChat, microblog, Paibao and the like, each of the programs and functions supports a plurality of account numbers and accumulates a large amount of pictures, data, files and the like in daily use, so that the mobile terminal often needs a large amount of memory to store the accounts, and some mobile terminal manufacturers are provided with external memories on the mobile terminal to meet the requirements; in actual use, because the memory address of the external memory is fixed by the interface of the external memory, the external memory is also fixed and lacks flexibility, and meanwhile, after the external memory is replaced due to faults, the memory address can be changed to cause some problems.
Therefore, in view of the above-mentioned drawbacks of the prior art, the method for setting a physical memory according to the preferred embodiment of the present invention, as shown in fig. 1, includes the following steps:
step S10, an association table of the memory number and the block number of the entity memory is predefined.
Please refer to fig. 2, which is a flowchart of step S10 in the method for setting physical memory according to the present invention.
As shown in fig. 2, the step S10 includes:
s11, predefining the memory number of the entity memory;
and S12, associating the memory number with the block number to generate an association table.
Specifically, the association table of the memory number and the block number of the physical memory is a look-up table, which is composed of a plurality of rows, and each row represents an association relationship between a memory number and a block number.
For example, there are five physical memories of the mobile terminal, which may be referred to as a first memory, a second memory, a third memory, a fourth memory, and a fifth memory; then the corresponding block numbers of the five memories are respectively: the first memory corresponding block number is A, the second memory corresponding block number is B, the third memory corresponding block number is C, the fourth memory corresponding block number is D, and the fifth memory corresponding block number is E; the contents of the lookup table characterizing the association table of memory numbers and block numbers are as follows:
a first memory: a;
a second memory: b;
a third memory: c;
a fourth memory: d;
a fifth memory: E.
here, each row represents an association relationship between a memory number and a block number, for example, the content of the first row is "first memory: a "indicates that the first memory corresponds to block number a, for example, the second row content is" second memory: b "indicates that the block number corresponding to the second memory is B, for example, the third row content is" third memory: c "indicates that the third memory corresponds to a block number of C, for example, the fourth row contents are" fourth memory: d "indicates that the fourth memory corresponding block number is D, for example, the content of the fifth row is" fifth memory: e "indicates that the fifth memory corresponding block number is E.
Step S20, when the mobile terminal detects the access of the entity memory, the memory number of the accessed entity memory is obtained.
Please refer to fig. 3, which is a flowchart of step S20 in the method for setting physical memory according to the present invention.
As shown in fig. 3, the step S20 includes:
s21, the mobile terminal detects whether the entity memory is accessed in real time;
and S22, when the mobile terminal detects that the entity memory is accessed, obtaining a memory number according to the predefined memory number of the entity memory.
Specifically, the mobile terminal detects whether the entity memory is accessed in real time, and when the mobile terminal detects that the entity memory is accessed, the mobile terminal obtains the memory number of the entity memory which is just accessed to the mobile terminal according to the predefined memory number of the memory.
Step S30, according to the obtained memory number, looking up the corresponding block number in the association table of the memory number and the block number of the predefined physical memory.
Please refer to fig. 4, which is a flowchart of step S30 in the method for setting physical memory according to the present invention.
As shown in fig. 4, the step S30 includes:
s31, the mobile terminal searches an association table which defines the memory number and the block number of the entity memory in advance according to the memory number acquired by the mobile terminal;
and S32, the mobile terminal searches the corresponding block numbers in the association table of the memory numbers and the block numbers of the entity memory line by line until the corresponding block numbers are found.
Specifically, the mobile terminal searches the corresponding block number in the association table of the memory number and the block number of the predefined entity memory line by line according to the acquired memory number until the corresponding block number is found.
Further, after the step S40, the method further includes: and reporting the acquired block number of the entity memory.
Further, the technical scheme of the invention also comprises: receiving an operation instruction of a user, and dynamically modifying the association table of the memory number and the block number of the entity memory, namely, the content of the association table of the memory number and the block number of the entity memory can be modified at will, so as to change the corresponding relation between the memory number and the block number; for example, the contents of the lookup table currently characterizing the association table of memory numbers and block numbers are as follows:
a first memory: a;
a second memory: b;
a third memory: c;
a fourth memory: d;
a fifth memory: E.
thus, accessing the first memory means accessing a, accessing the second memory means accessing B, accessing the third memory means accessing C, accessing the fourth memory means accessing D, accessing the fifth memory means accessing E; at this time, if the look-up table of the association table of the characterization memory number and the block number is modified as follows:
a first memory: k;
a second memory: f;
a third memory: c;
a fourth memory: w;
a fifth memory: E.
then, accessing the first memory means accessing K, accessing the second memory means accessing F, accessing the third memory means accessing C, accessing the fourth memory means accessing W, and accessing the fifth memory means accessing E, so as to achieve the purpose of dynamically modifying the association table of the memory number and the block number of the entity memory.
In addition, if the look-up table of the associated table of characterization memory numbers and block numbers continues to be modified as follows:
a first memory: m;
a second memory: n;
a third memory: o;
a fourth memory: p;
a fifth memory: and Q.
Then, accessing the first memory means accessing M, accessing the second memory means accessing N, accessing the third memory means accessing O, accessing the fourth memory means accessing P, accessing the fifth memory means accessing Q, and the same achieves the purpose of dynamically modifying the association table of the memory number and the block number of the physical memory.
The storage management is realized by providing a convenient, safe and sufficiently large storage space for users, wherein the convenience refers to separating a logical address from a physical address, the users only write programs in respective logical address spaces without inquiring details of the physical space and the physical address, and the address conversion is automatically completed by an operating system; the safety means that a plurality of user processes residing in the memory cannot interfere with each other and cannot access the space occupied by the operating system; the sufficiently large storage space means that the virtual storage technology is utilized to logically expand the memory space, so that a user can run a larger program in a smaller memory. With the rapid development of data storage technology, the requirement of users on the cost performance of storage is higher and higher, and the cloud storage technology does not need the support of hardware equipment, so that the storage safety performance is greatly improved, the users do not need to maintain hardware facilities, the investment cost is reduced, and the storage efficiency is improved.
The invention provides a mobile terminal memory association control method, which defines an association table of a memory number and a block number of an entity memory in advance; when detecting the access of the entity memory, acquiring a memory number; and searching a corresponding block number in an association table of the memory number and the block number of a predefined entity memory according to the acquired memory number. When the equipment produced by a mobile terminal manufacturer is provided with the external memory, the address of the memory can be flexibly set, so that the memory improves the storage efficiency, and meanwhile, the problem that the address of the memory is changed to cause some problems after the external memory is replaced due to faults is avoided.
Further, based on the above method for setting the physical storage, the present invention further provides a system for setting the physical storage, as shown in fig. 5, wherein the system for setting the physical storage includes:
a predefining module 50, configured to predefine an association table of a memory number and a block number of the physical memory;
an information obtaining module 60, configured to, when the mobile terminal detects that the entity storage is accessed, obtain a storage number of the accessed entity storage;
the information searching module 70 is configured to search, according to the acquired memory number, a corresponding block number in an association table between a memory number and a block number of a predefined physical memory.
The predefining module 50 is specifically configured to predefine the memory number of the physical memory, and associate the memory number with the block number to generate an association table; the information obtaining module 60 is specifically configured to detect whether the physical storage is accessed in real time, and when the mobile terminal detects that the physical storage is accessed, obtain a storage number according to a predefined storage number of the physical storage; the information searching module 70 is specifically configured to search, according to the memory number acquired by the mobile terminal, in an association table that defines the memory number and the block number of the entity memory in advance, and search, in the association table between the memory number and the block number of the entity memory, for the corresponding block number in sequence, line by line, until the block number is found.
The association table of the memory number and the block number of the entity memory is a directory table, the association table of the memory number and the block number of the entity memory is composed of a plurality of rows, and each row represents an association relation between a memory number and a block number.
The invention aims to flexibly set the address of the memory when the equipment produced by a mobile terminal manufacturer is provided with the external memory, so that the memory improves the storage efficiency, and simultaneously, the problems caused by the change of the address of the memory after the external memory is replaced due to faults are avoided.
Further, as shown in fig. 6, based on the above method and system for setting the physical memory, the present invention also provides a mobile terminal, which includes a processor 10, a memory 20, and a display 30. Fig. 6 shows only some of the components of the mobile terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the mobile terminal, such as a hard disk or a memory of the mobile terminal. The memory 20 may also be an external storage device of the mobile terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the mobile terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the mobile terminal. The memory 20 is used for storing application software installed in the mobile terminal and various data, such as program codes of the installed mobile terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a physical memory setup program 40, and the physical memory setup program 40 can be executed by the processor 10, so as to implement the physical memory setup method of the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor or other data Processing chip, and is used for executing program codes stored in the memory 20 or Processing data, such as executing the physical memory setting method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information at the mobile terminal and for displaying a visual user interface. The components 10-30 of the mobile terminal communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the physical memory setup program 40 in the memory 20:
predefining an association table of a memory number and a block number of an entity memory;
when the mobile terminal detects that the entity memory is accessed, the memory number of the accessed entity memory is obtained;
and searching a corresponding block number in an association table of the memory number and the block number of a predefined entity memory according to the acquired memory number.
Wherein, according to the acquired memory number, looking up the corresponding block number in the association table of the memory number and the block number of the predefined entity memory, and then further comprising:
and reporting the acquired block number of the entity memory.
Wherein, the entity memory setting method further comprises:
and receiving an operation instruction of a user, and dynamically modifying the association table of the memory number and the block number of the entity memory.
Wherein, the table for associating the memory number and the block number of the predefined entity memory specifically includes:
predefining a memory number of the physical memory;
the memory number is associated with a block number to generate an association table.
The association table of the memory number and the block number of the entity memory is a directory table, the association table of the memory number and the block number of the entity memory is composed of a plurality of rows, and each row represents an association relation between a memory number and a block number.
When the mobile terminal detects that the entity storage is accessed, acquiring the storage number of the accessed entity storage specifically includes:
the mobile terminal detects whether the entity memory is accessed in real time;
and when the mobile terminal detects that the entity memory is accessed, obtaining a memory number according to a predefined memory number of the entity memory.
Wherein, according to the acquired memory number, searching the corresponding block number in the association table of the memory number and the block number of the predefined entity memory specifically comprises:
the mobile terminal searches an association table which defines the memory number and the block number of the entity memory in advance according to the memory number acquired by the mobile terminal;
and the mobile terminal searches the corresponding block numbers in the association table of the memory number and the block number of the entity memory line by line until the corresponding block numbers are found.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a physical memory setup program, which when executed by a processor implements the steps of the physical memory setup method as described above.
In summary, the present invention provides a method, a system and a mobile terminal for setting an entity storage, wherein the method includes: predefining an association table of a memory number and a block number of an entity memory; when the mobile terminal detects that the entity memory is accessed, the memory number of the accessed entity memory is obtained; and searching a corresponding block number in an association table of the memory number and the block number of a predefined entity memory according to the acquired memory number. The invention aims to flexibly set the address of the memory when the equipment produced by a mobile terminal manufacturer is provided with the external memory, so that the memory improves the storage efficiency, and simultaneously, the problems caused by the change of the address of the memory after the external memory is replaced due to faults are avoided, thereby bringing convenience to users.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for setting a physical memory, the method comprising:
predefining an association table of a memory number and a block number of an entity memory;
when the mobile terminal detects that the entity memory is accessed, the memory number of the accessed entity memory is obtained;
and searching a corresponding block number in an association table of the memory number and the block number of a predefined entity memory according to the acquired memory number.
2. The method as claimed in claim 1, wherein the step of searching the association table of the memory number and the block number of the predefined physical memory for the corresponding block number according to the obtained memory number further comprises:
and reporting the acquired block number of the entity memory.
3. The physical memory setup method according to claim 1, further comprising:
and receiving an operation instruction of a user, and dynamically modifying the association table of the memory number and the block number of the entity memory.
4. The entity memory setting method according to claim 1, wherein the predefining the association table of the memory number and the block number of the entity memory specifically comprises:
predefining a memory number of the physical memory;
the memory number is associated with a block number to generate an association table.
5. The method as claimed in claim 4, wherein the table of association between the memory number and the block number of the physical memory is a lookup table, and the table of association between the memory number and the block number of the physical memory is composed of a plurality of rows, each row representing an association relationship between a memory number and a block number.
6. The method for setting the physical memory according to claim 4, wherein the obtaining the memory number of the accessed physical memory when the mobile terminal detects the access of the physical memory specifically comprises:
the mobile terminal detects whether the entity memory is accessed in real time;
and when the mobile terminal detects that the entity memory is accessed, obtaining a memory number according to a predefined memory number of the entity memory.
7. The method as claimed in claim 4, wherein the step of searching for the corresponding block number in the association table of the memory number and the block number of the predefined physical memory according to the obtained memory number comprises:
the mobile terminal searches an association table which defines the memory number and the block number of the entity memory in advance according to the memory number acquired by the mobile terminal;
and the mobile terminal searches the corresponding block numbers in the association table of the memory number and the block number of the entity memory line by line until the corresponding block numbers are found.
8. A physical memory setup system, comprising:
the system comprises a predefining module, a storage module and a block number generation module, wherein the predefining module is used for predefining an association table of a storage number and a block number of an entity storage;
the information acquisition module is used for acquiring the memory number of the accessed entity memory when the mobile terminal detects that the entity memory is accessed;
and the information searching module is used for searching the corresponding block number in the association table of the memory number and the block number of the predefined entity memory according to the acquired memory number.
9. A mobile terminal, characterized in that the mobile terminal comprises: a memory, a processor and a physical memory setup program stored on the memory and executable on the processor, the physical memory setup program when executed by the processor implementing the steps of the physical memory setup method according to any of claims 1-7.
10. A computer-readable storage medium storing a physical memory setup program which, when executed by a processor, implements the steps of the physical memory setup method according to any one of claims 1 to 7.
CN202110099694.9A 2021-01-25 2021-01-25 Method and system for setting physical memory and mobile terminal Pending CN112817975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110099694.9A CN112817975A (en) 2021-01-25 2021-01-25 Method and system for setting physical memory and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110099694.9A CN112817975A (en) 2021-01-25 2021-01-25 Method and system for setting physical memory and mobile terminal

Publications (1)

Publication Number Publication Date
CN112817975A true CN112817975A (en) 2021-05-18

Family

ID=75859392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110099694.9A Pending CN112817975A (en) 2021-01-25 2021-01-25 Method and system for setting physical memory and mobile terminal

Country Status (1)

Country Link
CN (1) CN112817975A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571423A (en) * 2003-07-19 2005-01-26 华为技术有限公司 Method for implementing neighbor discovery of different link layer separated domain
CN1866225A (en) * 2005-05-20 2006-11-22 联想(北京)有限公司 Mapping method for mobile memory device
CN101676882A (en) * 2008-09-16 2010-03-24 美光科技公司 Built-in mapping message of memory device
CN102375781A (en) * 2010-08-04 2012-03-14 群联电子股份有限公司 Data protecting method, memory controller and portable memory storage device
CN102495777A (en) * 2011-12-13 2012-06-13 百度在线网络技术(北京)有限公司 Hard disc failure processing method and processing device
CN103106226A (en) * 2011-07-29 2013-05-15 波音公司 System for updating an associative memory
CN103677716A (en) * 2013-12-13 2014-03-26 广州金山网络科技有限公司 Disk signature display method and device
CN105549914A (en) * 2015-12-25 2016-05-04 惠州Tcl移动通信有限公司 Mounting method and system of external storage equipment
CN105866987A (en) * 2016-06-12 2016-08-17 京东方科技集团股份有限公司 Mobile device and detection equipment
CN108008914A (en) * 2016-10-27 2018-05-08 华为技术有限公司 The method, apparatus and ARM equipment of disk management in a kind of ARM equipment
CN110515863A (en) * 2018-05-22 2019-11-29 东芝存储器株式会社 Control the storage system and method for nonvolatile memory

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571423A (en) * 2003-07-19 2005-01-26 华为技术有限公司 Method for implementing neighbor discovery of different link layer separated domain
CN1866225A (en) * 2005-05-20 2006-11-22 联想(北京)有限公司 Mapping method for mobile memory device
CN101676882A (en) * 2008-09-16 2010-03-24 美光科技公司 Built-in mapping message of memory device
CN102375781A (en) * 2010-08-04 2012-03-14 群联电子股份有限公司 Data protecting method, memory controller and portable memory storage device
CN103106226A (en) * 2011-07-29 2013-05-15 波音公司 System for updating an associative memory
CN102495777A (en) * 2011-12-13 2012-06-13 百度在线网络技术(北京)有限公司 Hard disc failure processing method and processing device
CN103677716A (en) * 2013-12-13 2014-03-26 广州金山网络科技有限公司 Disk signature display method and device
CN105549914A (en) * 2015-12-25 2016-05-04 惠州Tcl移动通信有限公司 Mounting method and system of external storage equipment
CN105866987A (en) * 2016-06-12 2016-08-17 京东方科技集团股份有限公司 Mobile device and detection equipment
CN108008914A (en) * 2016-10-27 2018-05-08 华为技术有限公司 The method, apparatus and ARM equipment of disk management in a kind of ARM equipment
CN110515863A (en) * 2018-05-22 2019-11-29 东芝存储器株式会社 Control the storage system and method for nonvolatile memory

Similar Documents

Publication Publication Date Title
JP5216845B2 (en) Technology for sharing information between application programs
US20210240784A1 (en) Method, apparatus and storage medium for searching blockchain data
CN108304329B (en) Test case design method and device, terminal and readable storage medium
CA3139243A1 (en) Information collection method, device, computer equipment and storage medium
CN102760096A (en) Test data generation method, unit testing method and unit testing system
CN107704202A (en) A kind of method and apparatus of data fast reading and writing
CN110780908A (en) Screen display program upgrading method and system and terminal equipment
CN110688096A (en) Method, device, medium and electronic equipment for constructing application program containing plug-in
CN110083581A (en) A kind of method, apparatus, storage medium and the computer equipment of log retrospect
CN103870480A (en) Dynamic data masking method and database system
CN105138649A (en) Data search method and device and terminal
RU2616164C9 (en) Methods and device for browser engine work
CN109408471B (en) Compressed packet decompression method and device based on matching tree and storage medium
CN105354195A (en) Information search method and apparatus
CN111651397B (en) Method and equipment for accessing peripheral module of PXIe
CN104166649A (en) Caching method and device for search engine
CN112817975A (en) Method and system for setting physical memory and mobile terminal
CN110175180A (en) A kind of list management method, device, equipment and storage medium
CN105677926A (en) Local search result display method and device and electronic equipment
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN113254106B (en) Task execution method and device based on Flink, computer equipment and storage medium
CN102867060A (en) Method, device and system for data fast search
CN102567768B (en) Method and device for realizing electronic dictionary based on intelligent card
WO2021043034A1 (en) Service query method, and related device
CN117573561B (en) Automatic test system, method, electronic equipment and storage 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