CN107220139A - A kind of mobile terminal and its EMMC command verification processing method and storage medium - Google Patents
A kind of mobile terminal and its EMMC command verification processing method and storage medium Download PDFInfo
- Publication number
- CN107220139A CN107220139A CN201710400844.9A CN201710400844A CN107220139A CN 107220139 A CN107220139 A CN 107220139A CN 201710400844 A CN201710400844 A CN 201710400844A CN 107220139 A CN107220139 A CN 107220139A
- Authority
- CN
- China
- Prior art keywords
- command
- order
- emmc
- sequence
- mobile terminal
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0787—Storage of error reports, e.g. persistent data storage, storage using memory protection
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of mobile terminal and its EMMC command verifications processing method and storage medium, methods described includes:Pre-define all command sequences normally performed;The order for being sent to EMMC is first in chronological sequence sequentially put into caching;Obtain the order currently to be sent, detect sequence that the order and its priority associated command constituted whether be pre-defined normal execution command sequence, if YES, then send this order;If NO, then it is determined as command sequence exception occur, stops continuing to send order, and prompt command performs failure.The present invention carries out the inspection of command sequence when finally sending EMMC orders, when there is command sequence exception, stops continuing to send order, can do sth. in advance to find that command sequence is abnormal compared with prior art, improve the execution efficiency of EMMC command sequences.
Description
Technical field
The present invention relates to field of mobile terminals, more particularly to a kind of mobile terminal and its EMMC command verifications processing side
Method and storage medium.
Background technology
In order to expand the memory capacity of mobile terminal, current mobile terminal generally uses EMMC(embedded multi-
media card);EMMC primarily directed to the mobile electronic equipments such as mobile phone, tablet personal computer embedded memory, EMMC's
One clear superiority is in its Highgrade integration, so as to reduce the space that mass storage takes in the terminal so that
Mobile terminal manufacturer reduces cost and the weight of product.Because mobile terminal using EMMC is used as its memory, mobile terminal
Most of storage operation each mean to EMMC's.EMMC operation is authoritative, i.e. any one EMMC operations are equal
There is the command sequence of correlation, the corresponding command sequence of the operation is first sent when to carry out certain EMMC operations;For example, it is desired to read
No. ID of EMMC is taken, needs first to send No. ID corresponding command sequence for reading EMMC, then EMMC meetings from master controller to EMMC
Master controller is fed back to by its No. ID according to the order.
In general, aforesaid operations have no problem;But in view of current mobile terminal system complex, and all it is
Using multithreading operation, when having multiple threads while when needing to carry out EMMC operations, it is possible that the friendship between command sequence
Fork, causes command sequence to send failure.For example, there are two operations while pointing to EMMC, such as the corresponding order of first operation
Sequence includes order:Order 1, order 2, order 8, order 4;The corresponding command sequence of second operation includes order:Order 2,
Order 2, order 8, order 7;If now two orders intersect when sending, two orders can perform failure, most
Whole master controller needs two orders of repeating transmission to cause EMMC operating efficiencies low.
Therefore, prior art has yet to be improved and developed.
The content of the invention
The technical problem to be solved in the present invention is, for prior art drawbacks described above there is provided a kind of mobile terminal and
Its EMMC command verifications processing method and storage medium.It is intended to carry out the inspection of command sequence during final transmission EMMC orders, when
When there is command sequence exception, stop continuing to send order, can do sth. in advance to find that command sequence is abnormal compared with prior art, improve
The execution efficiency of EMMC command sequences.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of mobile terminal EMMC command verification processing methods, wherein, including:
A, pre-defined all command sequences normally performed;
B, by be sent to EMMC order first be in chronological sequence sequentially put into caching;
C, the acquisition order currently to be sent, detect whether the sequence that the order and its priority associated command are constituted is advance
The command sequence of the normal execution of definition, if YES, then sends this order;
If NO, then it is determined as command sequence exception occur, stops continuing to send order, and prompt command performs failure.
The mobile terminal EMMC command verification processing methods, wherein, the step A includes:
A1, by execution in need order, the command sequence storage for being defined as normally performing is in the terminal;
A2, obtain the methods of these command sequences normally performed to obtain from EMMC suppliers and store it in mobile terminal
In.
The mobile terminal EMMC command verification processing methods, wherein, also include before the step B:
B1, preset one and cache for depositing EMMC orders to be sent;
The mobile terminal EMMC command verification processing methods, wherein, the step B includes:
B2, when there is EMMC orders to send, will be sent to EMMC order first be in chronological sequence sequentially put into what is pre-set
In caching.
The mobile terminal EMMC command verification processing methods, wherein, the step C includes:
C1, obtains the order currently to be sent;
Whether C2, it is pre-defined normal to detect sequence that the order currently to be sent and its priority associated command constituted
The command sequence of execution;Then enter C3 if YES, otherwise into C4;
C3, sends this order;
C4, then be determined as command sequence exception occur, stops continuing to send order, and prompt command performs failure.
The mobile terminal EMMC command verification processing methods, wherein, the step C includes:
C1 obtains the order currently to be sent, and detects whether the sequence that the order and its priority associated command are constituted is advance
The command sequence of the normal execution of definition, if YES, then sends this order.
The mobile terminal EMMC command verification processing methods, wherein, the step C includes
C2, the acquisition order currently to be sent, detect whether the sequence that the order and its priority associated command are constituted is pre-
The command sequence of the normal execution first defined, if NO, is then determined as command sequence exception occur, stops continuing to send life
Order, and prompt command performs failure, and empty caching.
A kind of mobile terminal, wherein, including processor, and the memory being connected with the processor,
The memory storage has computer program, and the computer program is realized when being executed by processor and moved described in any of the above-described
The step of dynamic terminal EMMC command verification processing methods;
The processor is used to call the programmed instruction in the memory, to perform mobile terminal EMMC described in any of the above-described
The step of command verification processing method.
A kind of storage medium, wherein, the storage medium is stored with computer program, and the computer program is held by processor
The step of mobile terminal EMMC command verification processing methods described in any of the above-described are realized during row.
Mobile terminal and its EMMC command verification processing method provided by the present invention and storage medium, methods described are led to
Cross and pre-define all command sequences normally performed;The order for being sent to EMMC is first in chronological sequence sequentially put into caching
In;The order currently to be sent is obtained, detects whether the sequence that the order and its priority associated command are constituted is fixed in advance
The command sequence of the normal execution of justice, if YES, then sends this order.Enter line command sequence when finally sending EMMC orders
The inspection of row, when there is command sequence exception, stops continuing to send order, can do sth. in advance to find order sequence compared with prior art
Row are abnormal, improve the execution efficiency of EMMC command sequences.
Brief description of the drawings
Fig. 1 is the flow chart of the preferred embodiment of mobile terminal EMMC command verification processing methods of the present invention.
Fig. 2 is mobile terminal function theory diagram of the embodiment of the present invention.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and without
It is of the invention in limiting.
Fig. 1 is referred to, Fig. 1 is the flow of the preferred embodiment of mobile terminal EMMC command verification processing methods of the present invention
Figure.A kind of mobile terminal EMMC command verification processing methods, wherein, including:
Step S100, pre-defined all command sequences normally performed.
In the embodiment of the present invention by execution in need order, be defined as the command sequence normally performed, and will be normal
The command sequence storage of execution is in the terminal;The method for obtaining these command sequences normally performed is from EMMC suppliers
Obtain and store it in mobile terminal.
The present invention is when it is implemented, by all possible command sequence storage normally performed in the terminal;Obtain
The method of these possible command sequences normally performed is to be supplied to mobile terminal manufacturer, mobile terminal factory by emmc suppliers
Business is stored it in mobile terminal;For example, the emmc of its production of certain emmc supplier includes following order:
Order 1, order 2, order 5, order 6, order 7, order 8;
Then it is inevitable in all possible operations are performed only to include following command sequence:
Order 1, order 2, order 5, order 6;
Order 1, order 7, order 8;
Order 1, order 5, order 8;
Then in this step, mobile terminal manufacturer prestores command as above sequence in its mobile terminal produced.
Step S200, by be sent to EMMC order first be in chronological sequence sequentially put into caching.
Need before implementation to preset one in this step and cache for depositing EMMC orders to be sent;When there is EMMC
When order will be sent, the order for being sent to EMMC is first in chronological sequence sequentially put into the caching pre-set.
Specifically, one is for example preset to cache for depositing emmc orders to be sent;When there is emmc orders to send out
Order is first put into caching when sending.Further, order is first put into caching when there are emmc orders to send, for example, when
Before to send order 2, then first order 2 is stored in caching.
Step S300, the acquisition order currently to be sent, detect the sequence that the order and its priority associated command are constituted
Row whether be pre-defined normal execution command sequence, if YES, then send this order;
If NO, then it is determined as command sequence exception occur, stops continuing to send order, and prompt command performs failure.
Specifically, the step S300, including:
S1, obtains the order currently to be sent;
S2, detect sequence that the order and its priority associated command constituted whether be pre-defined normal execution order
Sequence;Then enter S3 if YES, otherwise into S4;
S3, sends this order;
S4, prompt command performs failure, and empties caching.
For example, order 2 is currently sent, then order 2 is first put into caching(Step S1);
Then detect sequence that the order and its priority associated command constituted whether be pre-defined normal execution life
Make sequence, that is to say, that the order and order afterwards before it are obtained, to judge whether constituted sequence is pre-defined
Normal execution command sequence(Step S2).
For example, to send order 2 in this example, then find there is one in the command sequence of pre-defined normal execution
Bar sequence includes order 2:The sequence is:Order 1, order 2, order 5, order 6;Because the life of this secondary transmission in this sequence
Make 2 to come second, then obtain an order before the order of this secondary transmission, then this order is sent out if there is order 1
Send(Step S3), otherwise this order problematic do not send(Step S4)
Using the order currently to be sent is obtained i.e. in the embodiment of the present invention, the order and its priority associated command institute group are detected
Into sequence whether be pre-defined normal execution command sequence, if YES, then send this order.
And when obtaining the order currently to be sent, detect whether is sequence that the order and its priority associated command constituted
For the command sequence of pre-defined normal execution, if NO, then it is determined as command sequence exception occur, stops continuing to send
Order, and prompt command performs failure, and empty caching.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method,
Computer program is can be by instruct related hardware(Such as processor, controller etc.)To complete, described program can be stored
In the storage medium of an embodied on computer readable, the program may include such as the flow of above-mentioned each method embodiment upon execution.Its
Described in storage medium can be for memory, magnetic disc, CD etc..
Embodiment two
The embodiment of the present invention additionally provides a kind of mobile terminal, as shown in Fig. 2 the mobile terminal includes processor 10, and
The memory 20 being connected with the processor 10,
The memory 20 is stored with computer program, is realized when the computer program is performed by processor 10 any one of as above real
The step of applying the example mobile terminal EMMC command verification processing methods;
The processor 10 is used to call the programmed instruction in the memory, is moved with performing described in any of the above-described embodiment
The step of terminal EMMC command verification processing methods.
Embodiment three
A kind of storage medium of the embodiment of the present invention, wherein, the storage medium is stored with computer program, the computer program quilt
The step of processor 10 realizes mobile terminal EMMC command verification processing methods described in any of the above-described embodiment when performing.
In summary, mobile terminal and its EMMC command verification processing method provided by the present invention and storage medium, institute
Method is stated by pre-defining all command sequences normally performed;The order for being sent to EMMC is first in chronological sequence sequentially put
Enter in caching;Obtain the order currently to be sent, detect sequence that the order and its priority associated command constituted whether be
The command sequence of pre-defined normal execution, if YES, then sends this order.Carried out when finally sending EMMC orders
The inspection of command sequence, when there is command sequence exception, stops continuing to send order, can do sth. in advance to find compared with prior art
Command sequence is abnormal, improves the execution efficiency of EMMC command sequences.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.
Claims (9)
1. a kind of mobile terminal EMMC command verification processing methods, it is characterised in that including:
A, pre-defined all command sequences normally performed;
B, by be sent to EMMC order first be in chronological sequence sequentially put into caching;
C, the acquisition order currently to be sent, detect whether the sequence that the order and its priority associated command are constituted is advance
The command sequence of the normal execution of definition, if YES, then sends this order;
If NO, then it is determined as command sequence exception occur, stops continuing to send order, and prompt command performs failure.
2. mobile terminal EMMC command verifications processing method according to claim 1, it is characterised in that the step A includes:
A1, by execution in need order, the command sequence storage for being defined as normally performing is in the terminal;
A2, obtain the methods of these command sequences normally performed to obtain from EMMC suppliers and store it in mobile terminal
In.
3. mobile terminal EMMC command verifications processing method according to claim 1, it is characterised in that before the step B
Also include:
B1, preset one and cache for depositing EMMC orders to be sent.
4. mobile terminal EMMC command verifications processing method according to claim 3, it is characterised in that the step B includes:
B2, when there is EMMC orders to send, will be sent to EMMC order first be in chronological sequence sequentially put into what is pre-set
In caching.
5. mobile terminal EMMC command verifications processing method according to claim 1, it is characterised in that the step C includes:
C1, obtains the order currently to be sent;
Whether C2, it is pre-defined normal to detect sequence that the order currently to be sent and its priority associated command constituted
The command sequence of execution;Then enter C3 if YES, otherwise into C4;
C3, sends this order;
C4, then be determined as command sequence exception occur, stops continuing to send order, and prompt command performs failure.
6. mobile terminal EMMC command verifications processing method according to claim 1, it is characterised in that the step C includes:
C1 obtains the order currently to be sent, and detects whether the sequence that the order and its priority associated command are constituted is advance
The command sequence of the normal execution of definition, if YES, then sends this order.
7. mobile terminal EMMC command verifications processing method according to claim 1, it is characterised in that the step C includes
C2, the acquisition order currently to be sent, detect whether the sequence that the order and its priority associated command are constituted is pre-
The command sequence of the normal execution first defined, if NO, is then determined as command sequence exception occur, stops continuing to send life
Order, and prompt command performs failure, and empty caching.
8. a kind of mobile terminal, it is characterised in that including processor, and the memory being connected with the processor,
The memory storage has computer program, and the computer program realizes that claim 1-7 is any when being executed by processor
The step of item mobile terminal EMMC command verification processing methods;
The processor is used to call the programmed instruction in the memory, to perform described in the claims any one of 1-7
The step of mobile terminal EMMC command verification processing methods.
9. a kind of storage medium, it is characterised in that the storage medium is stored with computer program, the computer program is processed
Device realizes any one of claim 1-7 mobile terminal EMMC command verification processing methods when performing the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710400844.9A CN107220139A (en) | 2017-05-31 | 2017-05-31 | A kind of mobile terminal and its EMMC command verification processing method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710400844.9A CN107220139A (en) | 2017-05-31 | 2017-05-31 | A kind of mobile terminal and its EMMC command verification processing method and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107220139A true CN107220139A (en) | 2017-09-29 |
Family
ID=59947058
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710400844.9A Pending CN107220139A (en) | 2017-05-31 | 2017-05-31 | A kind of mobile terminal and its EMMC command verification processing method and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107220139A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6826682B1 (en) * | 2000-06-26 | 2004-11-30 | Transmeta Corporation | Floating point exception handling in pipelined processor using special instruction to detect generated exception and execute instructions singly from known correct state |
CN101304463A (en) * | 2007-05-08 | 2008-11-12 | 夏普株式会社 | Operation device, operating system, image processing device, information display device and external equipment connecting device of electronic apparatus |
CN101464781A (en) * | 2008-12-31 | 2009-06-24 | 成都市华为赛门铁克科技有限公司 | Port control method and apparatus, and solid state disk |
CN103218232A (en) * | 2013-04-24 | 2013-07-24 | 大唐移动通信设备有限公司 | Method and device for controlling engineering equipment to execute operating commands |
CN103677754A (en) * | 2012-09-21 | 2014-03-26 | 国际商业机器公司 | Method and system for parallel structure for optimizing application program |
CN103870388A (en) * | 2012-12-07 | 2014-06-18 | 国际商业机器公司 | Avoiding processing flaws in a computer processor triggered by a predetermined sequence of hardware events |
CN105183397A (en) * | 2015-09-22 | 2015-12-23 | Tcl移动通信科技(宁波)有限公司 | EMMC read-write control method and system |
CN105224412A (en) * | 2015-09-24 | 2016-01-06 | 中国航天科技集团公司第九研究院第七七一研究所 | The accurate trap control structure of a kind of storer based on SPARCV8 processor and method |
-
2017
- 2017-05-31 CN CN201710400844.9A patent/CN107220139A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6826682B1 (en) * | 2000-06-26 | 2004-11-30 | Transmeta Corporation | Floating point exception handling in pipelined processor using special instruction to detect generated exception and execute instructions singly from known correct state |
CN101304463A (en) * | 2007-05-08 | 2008-11-12 | 夏普株式会社 | Operation device, operating system, image processing device, information display device and external equipment connecting device of electronic apparatus |
CN101464781A (en) * | 2008-12-31 | 2009-06-24 | 成都市华为赛门铁克科技有限公司 | Port control method and apparatus, and solid state disk |
CN103677754A (en) * | 2012-09-21 | 2014-03-26 | 国际商业机器公司 | Method and system for parallel structure for optimizing application program |
CN103870388A (en) * | 2012-12-07 | 2014-06-18 | 国际商业机器公司 | Avoiding processing flaws in a computer processor triggered by a predetermined sequence of hardware events |
CN103218232A (en) * | 2013-04-24 | 2013-07-24 | 大唐移动通信设备有限公司 | Method and device for controlling engineering equipment to execute operating commands |
CN105183397A (en) * | 2015-09-22 | 2015-12-23 | Tcl移动通信科技(宁波)有限公司 | EMMC read-write control method and system |
CN105224412A (en) * | 2015-09-24 | 2016-01-06 | 中国航天科技集团公司第九研究院第七七一研究所 | The accurate trap control structure of a kind of storer based on SPARCV8 processor and method |
Non-Patent Citations (1)
Title |
---|
张简毅仁: "《全方位3D游戏设计 游戏引擎与游戏开发实例剖析》", 30 June 2007 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107872528B (en) | Message pushing method and device | |
CN103559093B (en) | The collocation method of a kind of server resource and device | |
CN102043686A (en) | Disaster tolerance method, backup server and system of memory database | |
US8312196B2 (en) | Dual processor system and method for using the same | |
CN103019685B (en) | A kind of system and method dynamically generating business interface based on page elements | |
CN105528373A (en) | Database fault processing method, device, system and server | |
CN104021034A (en) | Task processing method and system | |
CN109933439A (en) | Method for message transmission, device, computer equipment and storage medium | |
CN106295381A (en) | For monitoring device and the internal storage of the data access to internal storage | |
CN111026774A (en) | Data sequence synchronization method and device, computer equipment and storage medium | |
US10191670B2 (en) | Method and device of data protection, storage equipment | |
CN112632798A (en) | Simulation test method, device, equipment and storage medium of warehouse management system | |
CN110599305A (en) | Service processing method, device and storage medium | |
CN102419753A (en) | Information processing equipment, information processing method and information processing system | |
CN110071968A (en) | A kind of message storage method and device based on block chain | |
CN106155662A (en) | A kind of Web page event-handling method, system and page controller | |
CN108550043A (en) | The method for anti-counterfeit of commodity sign, the verification method of device and commodity true and false, device | |
CN107220139A (en) | A kind of mobile terminal and its EMMC command verification processing method and storage medium | |
CN116302580B (en) | Method and device for scheduling calculation force resources of nano relay | |
CN105376279A (en) | Contact recommending method and device | |
CN102024199A (en) | Service rule engine and generation method of service process | |
CN106339265A (en) | Method and device for processing combined task | |
CN114024733B (en) | Service access control method, device, storage medium and controller | |
CN107741887A (en) | A kind of communication interaction method and apparatus of inter-module | |
CN104572033B (en) | system generation method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170929 |
|
RJ01 | Rejection of invention patent application after publication |