CN106991043A - Outside SD card program writing test processing method and system based on mobile terminal - Google Patents

Outside SD card program writing test processing method and system based on mobile terminal Download PDF

Info

Publication number
CN106991043A
CN106991043A CN201710169834.9A CN201710169834A CN106991043A CN 106991043 A CN106991043 A CN 106991043A CN 201710169834 A CN201710169834 A CN 201710169834A CN 106991043 A CN106991043 A CN 106991043A
Authority
CN
China
Prior art keywords
card
outside
write
data
program writing
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.)
Granted
Application number
CN201710169834.9A
Other languages
Chinese (zh)
Other versions
CN106991043B (en
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.)
Yuanyuan Shenzhen Technology Transfer 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 CN201710169834.9A priority Critical patent/CN106991043B/en
Publication of CN106991043A publication Critical patent/CN106991043A/en
Application granted granted Critical
Publication of CN106991043B publication Critical patent/CN106991043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses the outside SD card program writing test processing method based on mobile terminal and system, methods described includes:When starting to the program writing test of outside SD card, the data of oriented outside SD card write-in are detected whether;When starting to the program writing test of outside SD card, outside SD card receives the data of write-in, controls now to need the data of write-in to abandon;When closing to the program writing test of outside SD card, recover the function that SD card writes data.The present invention carries out write operation by way of simulation to outside SD card, it is contemplated that outside SD card is only tested during test and is programmed, the interruption of test process can be so avoided, while saving the cost that SD card is damaged.

Description

Outside SD card program writing test processing method and system based on mobile terminal
Technical field
Program and survey the present invention relates to field of mobile terminals, more particularly to a kind of outside SD card based on mobile terminal Try processing method and system.
Background technology
Become increasingly complex with mobile terminal system, it is more and more huger, while the application on mobile terminal becomes increasingly abundant;It is right It is increasing in the storage capacity requirement of mobile terminal, currently in order to the memory capacity of extension mobile terminal, can be mobile whole Increase the memory capacity that outside SD card interface allows users to expand by additionally increasing SD card mobile terminal in end.
After having outside SD card extended function in mobile terminal, mobile terminal needs to increase outside SD card reading and writing program Operation is read and write come the outside SD card to user installation;In order to find the reading and writing journey to outside SD card of mobile terminal in time The problem of in sequence, while testing the state of the reading and writing program of the outside SD card of this pair, mobile terminal manufacturer is needed in mobile terminal Outside SD card reading and writing program tested.
For programming, in the prior art, it is necessary to ceaselessly carry out write operation to outside SD card, and to outside SD card Write operation number of times can be very many, due to SD card, writeable number of times is limited in itself, therefore is easy in test in test During outside SD is write bad, this can both cause test interruption, also bring along SD card damage economic loss.
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 that the drawbacks described above for prior art is whole based on movement there is provided one kind The outside SD card program writing test processing method and system at end.The present invention provides SD card program writing test outside a kind of mobile terminal Method, it is intended to write operation is carried out to outside SD card by way of simulation, it is contemplated that outside SD card is only tested during test and is programmed, The interruption of test process can be so avoided, while saving the cost that SD card is damaged.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of outside SD card program writing test processing method based on mobile terminal, wherein, including:
A, when start outside SD card is programmed test when, detect whether the data of oriented outside SD card write-in;
B, when start outside SD card is programmed test when, outside SD card receives the data of write-in, and control will now need write-in Data abandon;
C, when close to outside SD card program test when, recover SD card write data function.
The outside SD card program writing test processing method based on mobile terminal, wherein, the step A includes:
Setting command is used for starting test of programming to outside SD card in the terminal in advance;
When detecting order execution, the data write to outside SD card are detected.
The outside SD card program writing test processing method based on mobile terminal, wherein, the step B includes:
When detecting outside SD card and receiving the data of write-in, the data are ignored;
And write successfully to outside SD card program writing returned data.
The outside SD card program writing test processing method based on mobile terminal, wherein, the step B is specifically included:
When detecting outside SD card and receiving the data of write-in, the data are ignored;To outside SD card by way of simulation Carry out write operation, so-called simulation write-in is exactly to the real write operation of SD card progress, when receiving SD card without real When testing write order, real data will not be write SD card by the write-in;
And write successfully to outside SD card program writing returned data.
The outside SD card program writing test processing method based on mobile terminal, wherein, the step C includes:
When closing to the program writing test of outside SD card;
Recover the function that SD card writes data.
A kind of outside SD card program writing test processes system based on mobile terminal, wherein, including:
Start and detection module, for when starting to the program writing test of outside SD card, detecting whether oriented outside SD card write-in Data;
Data processing module is write, for when starting to the program writing test of outside SD card, outside SD card to receive the number of write-in According to control will now need the data of write-in to abandon;
Write recovery module, for when closing to the program writing test of outside SD card, recovering the function that SD card writes data.
The outside SD card program writing test processes system based on mobile terminal, wherein, the startup and detection module Including:
Pre-set unit, for setting command to be used for starting test of programming to outside SD card in the terminal in advance;
First detection unit, for when detecting order execution, detecting the data write to outside SD card.
The outside SD card program writing test processes system based on mobile terminal, wherein, said write data processing mould Block includes:
Second detection unit, for when detecting outside SD card and receiving the data of write-in, the data to be ignored;
First returning unit, is used for and is write successfully to outside SD card program writing returned data.
The outside SD card program writing test processes system based on mobile terminal, wherein, said write data processing mould Block also includes:
3rd detection unit, for when detecting outside SD card and receiving the data of write-in, the data to be ignored;Pass through simulation Mode write operation is carried out to outside SD card, so-called simulation write-in is exactly that real write-in behaviour is carried out to SD card without real Make, when receiving SD card test write order, real data will not be write SD card by the write-in;
Second returning unit, is used for and is write successfully to outside SD card program writing returned data.
The outside SD card program writing test processes system based on mobile terminal, wherein, said write recovery module bag Include:
Closing control unit, is tested for closing to program to outside SD card;
Recovery unit, for when closing to the program writing test of outside SD card, recovering the function that SD card writes data.
Outside SD card program writing test processing method and system provided by the present invention based on mobile terminal, methods described By when starting to the program writing test of outside SD card, detecting the data write to outside SD card;Write when outside SD card is received During the data entered, abandoned;When closing to the program writing test of outside SD card, recover the function that SD card writes data.Pass through The mode of simulation carries out write operation to outside SD card, it is contemplated that outside SD card is only tested during test and is programmed, can so be avoided The interruption of test process, while saving the cost that SD card is damaged.
Brief description of the drawings
Fig. 1 is the flow of the preferred embodiment of the outside SD card program writing test processing method of the invention based on mobile terminal Figure.
Fig. 2 is the function of the preferred embodiment of the outside SD card program writing test processes system of the invention based on mobile terminal Theory diagram.
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 preferable reality of the outside SD card program writing test processing method of the invention based on mobile terminal Apply the flow chart of example.
S100, when starting to the program writing test of outside SD card, detects the data write to outside SD card.
After having outside SD card extended function in mobile terminal, mobile terminal needs to increase outside SD card reading and writing program Operation is read and write come the outside SD card to user installation;In order to find the reading and writing journey to outside SD card of mobile terminal in time The problem of in sequence, while testing the state of the reading and writing program of the outside SD card of this pair, mobile terminal manufacturer is needed in mobile terminal Outside SD card reading and writing program tested.
In the embodiment of the present invention in the specific implementation, step S100 includes:
S01, advance setting command in the terminal, which are used for starting programming to outside SD card, tests;
For example setting command start sd write test are used to start survey of programming to outside SD card in the terminal in advance Examination, as long as " other existing orders are not repeated in start sd write test " and mobile terminal, when detecting movement Terminal just can consider when performing the order to be started to outside SD card program writing test function.
S02, when detect the order perform when, detect to outside SD card write data.
For example, when mobile terminal detects the order start sd write for starting test of being programmed to outside SD card When test is performed, the data write to outside SD card are detected.
S200, when starting to the program writing test of outside SD card, outside SD card receives the data of write-in, and control will now The data that need to be write are abandoned.
Specifically, when detecting outside SD card and receiving the data of write-in, the data are ignored, that is to say, that when now Outside SD card is not dealt with when receiving write-in data, directly abandons the data;But in order that outside SD card is programmed and not known Road such case, so needing to write successfully to outside SD card program writing returned data.
Used in the embodiment of the present invention when detecting outside SD card and receiving the data of write-in, the data ignored, That is not dealt with when now outside SD card receives write-in data, directly the data are abandoned.
Because:The present invention is to solve in test, reducing to the write-in of SD card to protect SD card, to extend SD card Service life(The write-in number of times of SD card is limited).In addition, just in case SD card is bad in itself, then can write unsuccessfully causes test Process interrupt.And in view of in test, for SD card write operation for purely test, the present invention is in this case Under, it is to avoid data are write direct into SD card to reduce the write-in to SD card to protect SD card, to extend the service life of SD card.Separately Outside, just in case SD card is bad in itself, then can write unsuccessfully causes test process to interrupt.
For example, when testing SD card, the present invention is in the following way:Connect when outside SD card receives the data of write-in The data of write-in for example 10101000011111111111000 (binary system) is received, is abandoned, is then back to and writes successfully; Think to write successfully herein for for the program writing of outside SD card, but actual data are not write for SD card Enter;It is then to receive the data of write-in for example when outside SD card receives the data of write-in The data, then be actually written into SD card by 10101000011111111111000 (binary systems), can so reduce SD card write-in Number of times(SD card write-in number of times is limited)So that SD card service life reduction.In addition, just in case test SD card used is bad, then Can be because write-in data failure cause test process to interrupt, the reason for such tester will also analyze test crash, and again New test.And the SD card that the method for the present invention is then not present used in test is the bad possibility for causing test to be interrupted.So may be used To avoid the interruption of test process, while saving the cost that SD card is damaged.
S300, when closing to the program writing test of outside SD card, recovers the function that SD card writes data.
It can be seen that, methods described is by when starting to the program writing test of outside SD card, detecting the number write to outside SD card According to;When outside SD card receives the data of write-in, abandoned;When closing to the program writing test of outside SD card, recover SD The function of card write-in data.Write operation is carried out to outside SD card by way of simulation, it is contemplated that outside SD is only tested during test Card programs, and can so avoid the interruption of test process, while saving the cost that SD card is damaged.
Carry out write operation in the present invention to outside SD card by way of simulation, so-called simulation write-in is exactly without true Real write operation is carried out to SD card, in the present invention, when receiving SD card test write order, the write-in will not will be very Real data write-in SD card.
" when start sd write test " are ordered, examined for example, programming to test to detect to outside SD card when startup For example this write-in data is 10101000011111111111000 (binary systems) to the data of SD card write-in outside direction finding;When outer Portion's SD card receives the data 10101000011111111111000 (binary system) of write-in when receiving the data of write-in, will It is abandoned, and is then back to and is write successfully;Think to write successfully herein for for the program writing of outside SD card, but for SD Not actual data write-in for card.The interruption of test process can be so avoided, while saving the cost that SD card is damaged.
Based on above method embodiment, program and test present invention also offers a kind of outside SD card based on mobile terminal Processing system, as shown in Fig. 2 the system includes:
Start and detection module 210, for when starting to the program writing test of outside SD card, detecting whether that oriented outside SD card is write The data entered;As detailed above.
Data processing module 220 is write, for when starting to the program writing test of outside SD card, outside SD card, which is received, to be write The data entered, control to abandon the data for now needing write-in;As detailed above.
Write recovery module 230, for when closing to the program writing test of outside SD card, recovering the work(that SD card writes data Energy;As detailed above.
Further, the outside SD card program writing test processes system based on mobile terminal, wherein, it is described startup with Detection module includes:
Pre-set unit, for setting command to be used for starting test of programming to outside SD card in the terminal in advance;Tool Body is as described above.
First detection unit, for when detecting order execution, detecting the data write to outside SD card;Specifically such as It is upper described.
It is preferred that the outside SD card program writing test processes system based on mobile terminal, wherein, said write data Processing module includes:
Second detection unit, for when detecting outside SD card and receiving the data of write-in, the data to be ignored;Specifically as above It is described.
First returning unit, is used for and is write successfully to outside SD card program writing returned data;As detailed above.
Further, the outside SD card program writing test processes system based on mobile terminal, wherein, said write number Also include according to processing module:
3rd detection unit, for when detecting outside SD card and receiving the data of write-in, the data to be ignored;Pass through simulation Mode write operation is carried out to outside SD card, so-called simulation write-in is exactly that real write-in behaviour is carried out to SD card without real Make, when receiving SD card test write order, real data will not be write SD card by the write-in;As detailed above.
Second returning unit, is used for and is write successfully to outside SD card program writing returned data;As detailed above.
Further, the outside SD card program writing test processes system based on mobile terminal, wherein, said write is extensive Multiple module includes:
Closing control unit, is tested for closing to program to outside SD card;As detailed above.
Recovery unit, for when closing to the program writing test of outside SD card, recovering the function that SD card writes data;Specifically As described above.
In summary, outside SD card program writing test processing method provided by the present invention based on mobile terminal and it is System, methods described is by when starting to the program writing test of outside SD card, detecting the data write to outside SD card;As outside SD When clamping receives the data of write-in, abandoned;When closing to the program writing test of outside SD card, recover SD card write-in data Function.Write operation is carried out to outside SD card by way of simulation, it is contemplated that outside SD card is only tested during test and is programmed, so The interruption of test process can be avoided, while saving the cost that SD card is damaged.
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..
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 (10)

1. a kind of outside SD card program writing test processing method based on mobile terminal, it is characterised in that including:
A, when start outside SD card is programmed test when, detect whether the data of oriented outside SD card write-in;
B, when start outside SD card is programmed test when, outside SD card receives the data of write-in, and control will now need write-in Data abandon;
C, when close to outside SD card program test when, recover SD card write data function.
2. the outside SD card program writing test processing method based on mobile terminal according to claim 1, it is characterised in that institute Stating step A includes:
Setting command is used for starting test of programming to outside SD card in the terminal in advance;
When detecting order execution, the data write to outside SD card are detected.
3. the outside SD card program writing test processing method based on mobile terminal according to claim 1, it is characterised in that institute Stating step B includes:
When detecting outside SD card and receiving the data of write-in, the data are ignored;
And write successfully to outside SD card program writing returned data.
4. the outside SD card program writing test processing method based on mobile terminal according to claim 1, it is characterised in that institute Step B is stated to specifically include:
When detecting outside SD card and receiving the data of write-in, the data are ignored;To outside SD card by way of simulation Carry out write operation, so-called simulation write-in is exactly to the real write operation of SD card progress, when receiving SD card without real When testing write order, real data will not be write SD card by the write-in;
And write successfully to outside SD card program writing returned data.
5. the outside SD card program writing test processing method based on mobile terminal according to claim 1, it is characterised in that institute Stating step C includes:
When closing to the program writing test of outside SD card;
Recover the function that SD card writes data.
6. a kind of outside SD card program writing test processes system based on mobile terminal, it is characterised in that including:
Start and detection module, for when starting to the program writing test of outside SD card, detecting whether oriented outside SD card write-in Data;
Data processing module is write, for when starting to the program writing test of outside SD card, outside SD card to receive the number of write-in According to control will now need the data of write-in to abandon;
Write recovery module, for when closing to the program writing test of outside SD card, recovering the function that SD card writes data.
7. the outside SD card program writing test processes system based on mobile terminal according to claim 6, it is characterised in that institute State startup includes with detection module:
Pre-set unit, for setting command to be used for starting test of programming to outside SD card in the terminal in advance;
First detection unit, for when detecting order execution, detecting the data write to outside SD card.
8. the outside SD card program writing test processes system based on mobile terminal according to claim 6, it is characterised in that institute Stating write-in data processing module includes:
Second detection unit, for when detecting outside SD card and receiving the data of write-in, the data to be ignored;
First returning unit, is used for and is write successfully to outside SD card program writing returned data.
9. the outside SD card program writing test processes system based on mobile terminal according to claim 6, it is characterised in that institute Stating write-in data processing module also includes:
3rd detection unit, for when detecting outside SD card and receiving the data of write-in, the data to be ignored;Pass through simulation Mode write operation is carried out to outside SD card, so-called simulation write-in is exactly that real write-in behaviour is carried out to SD card without real Make, when receiving SD card test write order, real data will not be write SD card by the write-in;
Second returning unit, is used for and is write successfully to outside SD card program writing returned data.
10. the outside SD card program writing test processes system based on mobile terminal according to claim 6, it is characterised in that Said write recovery module includes:
Closing control unit, is tested for closing to program to outside SD card;
Recovery unit, for when closing to the program writing test of outside SD card, recovering the function that SD card writes data.
CN201710169834.9A 2017-03-21 2017-03-21 External SD card writing program test processing method and system based on mobile terminal Active CN106991043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710169834.9A CN106991043B (en) 2017-03-21 2017-03-21 External SD card writing program test processing method and system based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710169834.9A CN106991043B (en) 2017-03-21 2017-03-21 External SD card writing program test processing method and system based on mobile terminal

Publications (2)

Publication Number Publication Date
CN106991043A true CN106991043A (en) 2017-07-28
CN106991043B CN106991043B (en) 2021-04-20

Family

ID=59412064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710169834.9A Active CN106991043B (en) 2017-03-21 2017-03-21 External SD card writing program test processing method and system based on mobile terminal

Country Status (1)

Country Link
CN (1) CN106991043B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901227A (en) * 2009-05-31 2010-12-01 深圳市江波龙电子有限公司 Intelligent storage and expansion equipment and access control system and method thereof
US20110107313A1 (en) * 2009-11-04 2011-05-05 Red Hat, Inc. Integration of Visualization with Source Code in the Eclipse Development Environment
CN103324560A (en) * 2013-06-28 2013-09-25 深圳市江波龙电子有限公司 Testing method and device of flash memory
CN106295432A (en) * 2016-08-09 2017-01-04 上海盈方微电子有限公司 The data detection method of a kind of SD card and system and the draw-in groove of external SD card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901227A (en) * 2009-05-31 2010-12-01 深圳市江波龙电子有限公司 Intelligent storage and expansion equipment and access control system and method thereof
US20110107313A1 (en) * 2009-11-04 2011-05-05 Red Hat, Inc. Integration of Visualization with Source Code in the Eclipse Development Environment
CN103324560A (en) * 2013-06-28 2013-09-25 深圳市江波龙电子有限公司 Testing method and device of flash memory
CN106295432A (en) * 2016-08-09 2017-01-04 上海盈方微电子有限公司 The data detection method of a kind of SD card and system and the draw-in groove of external SD card

Also Published As

Publication number Publication date
CN106991043B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN106951345B (en) Consistency test method and device for disk data of virtual machine
TWI552158B (en) Systems and methods for testing memory
CN107818029B (en) Automatic test method for cloud hard disk data recovery consistency
EP2960777B1 (en) Data protection method, apparatus and device
CN107577591A (en) A kind of method, apparatus and system of automatic test abnormal protection
CN114446381B (en) eMMC fault analysis method, device, readable storage medium and electronic equipment
CN103197914A (en) Multiple processor delayed execution
CN106935272B (en) Method and device for opening eMMC back door debugging
CN108388778B (en) APP anti-debugging method with Android platform fused with multiple features
CN105446856A (en) Electronic device interface detection method and apparatus
CN106021024A (en) Method for reminding response stopping of user terminal, and user terminal
CN106991043A (en) Outside SD card program writing test processing method and system based on mobile terminal
CN115422091B (en) Firmware debugging method and device, electronic equipment and storage medium
US7415560B2 (en) Method of automatically monitoring computer system debugging routine
CN105630540A (en) Application class loading method and device as well as web application class loader
JP5900336B2 (en) Emulator verification system and emulator verification method
US8069364B2 (en) Method to recover from logical path failures
CN114461479A (en) Method and device for debugging multimedia processing chip, storage medium and electronic equipment
CN112986806A (en) Interface test method, test system and computer storage medium
EP3557422A1 (en) Method for accessing code sram, and electronic device
CN107727995A (en) Mobile terminal and altogether Kato detection process method and storage medium
JPH09212429A (en) Monvolatile semiconductor disk drive
CN114138557B (en) Consistency test method and device for rollback data of stored snapshot
JP3201342B2 (en) Electric circuit card test apparatus and test method, and recording medium recording control program for the test method
CN114996120A (en) Debugging method, system, electronic device 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240102

Address after: 518000, 109-111, Building 17, Maker Town, No. 4109 Liuxian Avenue, Pingshan Community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong Province

Patentee after: Yuanyuan (Shenzhen) Technology Transfer Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.