CN117667394A - System and method for preventing memory from being full forever - Google Patents

System and method for preventing memory from being full forever Download PDF

Info

Publication number
CN117667394A
CN117667394A CN202311604259.2A CN202311604259A CN117667394A CN 117667394 A CN117667394 A CN 117667394A CN 202311604259 A CN202311604259 A CN 202311604259A CN 117667394 A CN117667394 A CN 117667394A
Authority
CN
China
Prior art keywords
file
memory
module
uploading
management module
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
CN202311604259.2A
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.)
Shenzhen Tinno Mobile Technology Co Ltd
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Shenzhen Tinno Mobile Technology Co Ltd
Shenzhen Tinno Wireless Technology 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 Shenzhen Tinno Mobile Technology Co Ltd, Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Mobile Technology Co Ltd
Priority to CN202311604259.2A priority Critical patent/CN117667394A/en
Publication of CN117667394A publication Critical patent/CN117667394A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to the technical field of memory management, in particular to a system and a method for preventing memory from being full forever, comprising a file management module, a file management module and a memory management module, wherein the file management module is used for determining to start compression service or uploading service according to the size of the memory of electronic equipment; the compression detection service module is started by the file management module and compresses and selects redundant files in the memory of the electronic equipment; the file uploading module is started by the file management module, and the compressed file in the electronic equipment is uploaded to the server to generate a review connection; and the review module is started by the review connection and is used for inquiring the compressed or uploaded deleted file and recovering the compressed or uploaded deleted file after confirmation operation. The invention is a method of automatic operation, automatic compression, uploading, inquiry and the like, saves the time of users and improves the user experience.

Description

System and method for preventing memory from being full forever
Technical Field
The invention relates to the technical field of memory management, in particular to a system and a method for preventing memory from being full forever.
Background
When the low-end mobile phone used by the old in daily life is used, the old is blocked or the memory is insufficient, so that the user needs to change the phone, and in this situation, many housekeeper applications are available on the market, but many old people cannot operate the housekeeper applications.
In the prior art, many housekeeping software is only suitable for the current young people, but the young people feel that the housekeeping software is malicious software and is unwilling to download, and the housekeeping software is willing to buy a large-memory mobile phone; the user would not have to manually clear the memory itself, but this would take up the time of the user.
Based on this, a system and method are provided for never filling the memory.
Disclosure of Invention
Aiming at the defects of the prior art, the invention discloses a system and a method for preventing a memory from being occupied forever, which are used for solving the problems.
The invention is realized by the following technical scheme:
in a first aspect, the present invention provides a system in which memory is never full, comprising
The file management module is used for determining to start compression service or uploading service according to the size of the memory of the electronic equipment;
the compression detection service module is started by the file management module and compresses and selects redundant files in the memory of the electronic equipment;
the file uploading module is started by the file management module, and the compressed file in the electronic equipment is uploaded to the server to generate a review connection;
and the review module is started by the review connection and is used for inquiring the compressed or uploaded deleted file and recovering the compressed or uploaded deleted file after confirmation operation.
Further, after the file management module detects that the memory size of the electronic equipment is lower than 60%, the compression detection service module is controlled to be started, compression quality is dynamically changed by dynamically acquiring the network environment type and the network signal strength of the electronic equipment, and the data size is dynamically changed according to the network state.
Further, after the file management module detects that the memory size of the electronic device is lower than 35%, the file uploading module is controlled to be started.
Furthermore, the compression detection service module is configured to compress files, videos and pictures that are not used for more than N days, and place the files, videos and pictures in the electronic device sdcard in a time naming manner, where N is a positive integer.
Further, the file uploading module is used for starting the uploading service at night and uploading the contracted file to the server.
Furthermore, the file uploading module deletes the original compressed package of the electronic device and releases the memory after uploading the compressed file to the server.
Further, the review module pops up a question when the sketch is found, and makes an operation suggestion according to the question.
Further, the question is to inquire whether the original image needs to be inquired, display the flow which needs to be consumed, and give out advice according to the flow.
Further, whether to query the original image or not and whether to suggest the condition of searching under the wifi condition in the question are freely set by the user according to the use environment.
In a second aspect, the present invention provides a method for never filling a memory, where the method uses the system for never filling a memory according to the first aspect, and the method includes the following steps:
s1, initializing electronic equipment, starting a memory to check whether the memory is lower than 60% and higher than 35%, if yes, entering S2, and if not, entering S3;
s2, starting compression detection service, and compressing and selecting redundant files in memory of electronic equipment
S3, judging that the memory is lower than 35%, and starting file uploading service;
s4, judging whether wifi is connected, if not, waiting for the wifi to be connected, if so, uploading the file by using the IMEI, and deleting the original file.
The beneficial effects of the invention are as follows:
in the electronic equipment with limited memory, the invention judges whether the process of automatically optimizing the memory is required to be started or not by calculating the memory proportion, compresses the old memory release space by taking the free time for a certain memory, reaches the next proportion, and selectively uploads the compressed files to the last release space of the server. The invention is a method of automatic operation, automatic compression, uploading, inquiry and the like, saves the time of users and improves the user experience.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a block diagram of a system in which memory is never full in accordance with the present invention;
FIG. 2 is a flow chart of a method of the present invention in which memory is never full;
FIG. 3 is a graph showing the relationship between compression ratio and file size and compression quality according to an embodiment of the present invention;
FIG. 4 is a block diagram of method steps in which memory is never full in an embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In one embodiment, a system is provided in which memory is never full, including a file management module, configured to determine to start a compression service or start an upload service according to a size of a memory of an electronic device; the compression detection service module is started by the file management module and compresses and selects redundant files in the memory of the electronic equipment; the file uploading module is started by the file management module, and the compressed file in the electronic equipment is uploaded to the server to generate a review connection; and the review module is started by the review connection and is used for inquiring the compressed or uploaded deleted file and recovering the compressed or uploaded deleted file after confirmation operation.
As a specific implementation, after the file management module detects that the memory size of the electronic device is less than 60%, the compression detection service module is controlled to be started, and in one preferred embodiment, after the file management module determines that the memory size of the mobile phone of the user is less than 60%, the file management module selects to start the compression service; and when the memory of the mobile phone is lower than 35%, controlling to start the uploading service.
Furthermore, the compression quality of the image is dynamically changed by dynamically acquiring the type of the network environment where the mobile terminal is located and the strength of the network signal, so as to achieve the purpose of dynamically changing the size of the data according to the network state.
In the file compression in this embodiment, referring to fig. 3, the horizontal axis represents compression quality, and the value is an integer of 0 to 100: the vertical axis is the compressed file size and compression ratio. It is apparent that the compression ratio and the file size become larger as the image quality after compression is improved.
Meanwhile, when the compression quality is changed between 80 and 100, the compression ratio is faster than the speed, and the change trend is very obvious: whereas when the compression quality is changed in the interval below 80, the compression ratio is not changed significantly. That is, when the compression mass is less than 80, the compression ratio is not significantly improved as the compression mass is reduced.
Meanwhile, considering that the compressed image is not obviously distorted, the compressed image file is repeatedly compared with the image files compressed under each compression quality, and when the compression quality is lower than 30, the compressed image file is obviously distorted.
Further, considering that the influence on the compression ratio is small when the compression quality is lower than the rear, in order to ensure the quality of the compressed image as much as possible, the change interval of the compression quality is taken. In the algorithm, the compression amount is changed according to the change of the signal intensity, so that the purposes of dynamically changing the compression ratio and the file size are achieved. In order to meet the requirement that the transmitted image file is more effectively transmitted under the premise of meeting the maximum certain quality in a changeable mobile internet environment. Meanwhile, by using a dynamic image compression algorithm, the problem of the burden of traditional pavilion image compression on mobile phone power consumption is solved.
As a specific implementation, after the file management module detects that the memory size of the electronic device is less than 35%, the file uploading module is controlled to be started. Preferably, the compression detection service module in this embodiment: when the memory is lower than 60%, starting compression detection service at night, compressing and selecting files, videos and pictures which are not used for a long time, and placing the files, videos and pictures in the mobile phone sdcard according to time naming, so as to make simplified pictures for review.
When the file is uploaded in this embodiment, the following requirements are necessary:
1) Providing form and method must be post
2) The form entry type must be Multipart/form-data
3) An up-transfer-in field of the input type= "file" class is provided.
The process of file upload requires a network connection to be established between the client and the server. The client refers to user equipment initiating an uploading request, such as a personal computer, a mobile phone and the like; the server is then the device that receives and processes the uploaded file.
The client in this embodiment communicates with the server by using the HTTP protocol. Before sending the upload request, the client needs to select the file and determine the target location of the upload. The client divides the selected file into a plurality of file blocks for transmission. This is because in the network transmission process, the file is often divided into a plurality of small blocks for transmission, so as to improve the transmission efficiency and stability.
The file block size of the present embodiment may be adjusted according to specific body requirements and network conditions. In the transmission process, the client side sequentially sends each file block to the server, and waits for the response of the server after the completion of the sending.
After receiving the file block, the server in this embodiment performs corresponding processing. This includes verifying the integrity of the file blocks, checking the file format and size, etc. The server may parse and check the file to ensure that the uploaded file meets the set specifications and requirements. Once authenticated, the server will store the received file blocks.
Furthermore, during memory detection, memory out-of-range access and memory resource leakage conditions in software need to be tested. The memory boundary crossing mainly comprises several kinds of data groups such as read-write, wild pointer operation and stack overflow.
As a preferred embodiment, polySpace is used when making memory decisions in electronic devices, using the latest semantic analysis technique that relies on rules provided by a number of mathematical theorem to analyze the dynamic behavior of software. Semantic analysis techniques do not use a simple exhaustive approach, but have the ability to express the state of a program in a more general fashion, and also provide rules that are clever to handle it. When applying the detection of runtime errors, semantic analysis techniques perform a detailed analysis of all dangerous operations, finding runtime errors as early as possible.
As a specific implementation, the compression detection service module is configured to compress files, videos and pictures that are not used for more than N days, and place the files, videos and pictures in the electronic device sdcard in a time naming manner, where N is a positive integer.
In one embodiment, the file uploading module is configured to start the uploading service at night when the memory of the mobile phone is less than 35%, and further simply link the server uploading the compressed file to be available for review, delete the original compressed package of the mobile phone, and release the memory.
In one embodiment, for a file query that the user may also use to be compressed or uploaded to delete, taking pictures as an example, when the user looks up a long-before picture in the gallery, the finding is a sketch, and as a preference we pop up a prompt: whether the original image needs to be queried or not, how much flow is consumed, searching under the wifi condition is suggested, and further, if the user clicks to confirm, recovering the part of the file.
Furthermore, in the embodiment, cloud wifi is used, a traditional router is connected with a cloud server through a cloud computing technology, and functions of network management, bandwidth control, security authentication and the like are transferred to the cloud for centralized management. The user can be connected to the cloud server through the intelligent terminal, so that more stable, safe and high-speed wireless network connection is obtained.
In the cloud wifi, a user terminal is connected with a cloud server, and network requests sent by a user through terminal equipment are processed and forwarded through the cloud server. The specific principle is as follows:
the user terminal is a terminal device such as a mobile phone and a computer used by a user and is connected to the cloud wifi router through a wireless signal.
And the cloud wifi router forwards the signal sent by the user terminal to the cloud server and receives the data returned by the cloud server to finish the communication between the user and the Internet.
And the cloud server is responsible for processing and forwarding the network request, managing the network connection state, bandwidth allocation, security authentication and other functions of the user.
As a preferred embodiment, the workflow of cloud wifi is as follows:
and the user terminal is connected, namely the user connects the terminal equipment to the cloud wifi router through a wireless signal, and establishes physical connection.
And the signal transmission is that a network request sent by the user terminal is transmitted to the cloud wifi router through a wireless signal.
And the cloud server processes, namely the cloud wifi router sends the user request to the cloud server for processing.
And the cloud server sends a network request to an external server according to the user request and transmits the responded data to the user terminal.
And returning a result that the user terminal receives the data returned by the cloud server and carries out corresponding processing or display.
In one embodiment, a method for never filling a memory is provided, where the method uses the system in which the memory in the first aspect is never filled, and the method includes the following steps:
s1, initializing electronic equipment, starting a memory to check whether the memory is lower than 60% and higher than 35%, if yes, entering S2, and if not, entering S3;
s2, starting compression detection service, and compressing and selecting redundant files in memory of electronic equipment
S3, judging that the memory is lower than 35%, and starting file uploading service;
s4, judging whether wifi is connected, if not, waiting for the wifi to be connected, if so, uploading the file by using the IMEI, and deleting the original file.
As a preferable mode of this embodiment, the file management module controls to start the file uploading module after detecting that the memory size of the electronic device is less than 35%.
As an preferable mode of this embodiment, the compression detection service module is configured to compress files, videos, and pictures that are not used for more than N days, and place the files, videos, and pictures in the electronic device sdcard in a time naming manner, where N is a positive integer.
As a preferable mode of this embodiment, the file uploading module is configured to start an uploading service at night and upload the contracted file to the server. Furthermore, the file uploading module deletes the original compressed package of the electronic device and releases the memory after uploading the compressed file to the server.
When the embodiment performs file uploading, the following preconditions are necessary:
1) Providing form and method must be post
2) The form entry type must be Multipart/form-data
3) An up-transfer-in field of the input type= "file" class is provided.
The process of file upload requires a network connection to be established between the client and the server. The client refers to user equipment initiating an uploading request, such as a personal computer, a mobile phone and the like; the server is then the device that receives and processes the uploaded file.
The client in this embodiment communicates with the server by using the HTTP protocol. Before sending the upload request, the client needs to select the file and determine the target location of the upload. The client divides the selected file into a plurality of file blocks for transmission. This is because in the network transmission process, the file is often divided into a plurality of small blocks for transmission, so as to improve the transmission efficiency and stability.
The file block size of the present embodiment may be adjusted according to specific requirements and network conditions. In the transmission process, the client side sequentially sends each file block to the server, and waits for the response of the server after the completion of the sending.
After receiving the file block, the server in this embodiment performs corresponding processing. This includes verifying the integrity of the file blocks, checking the file format and size, etc. The server may parse and check the file to ensure that the uploaded file meets the set specifications and requirements. Once authenticated, the server will store the received file blocks.
As a preference of this embodiment, the review module will pop up the question when the sketch is found and make an operational suggestion based on the question. The specific question is to inquire whether the original image needs to be inquired, display the flow which needs to be consumed, and give a suggestion according to the flow, and whether the flow is searched under the wifi condition. Whether to query the original image or not in the further questioning and whether to suggest the condition of searching under the wifi condition are freely set by the user according to the use environment.
In the electronic equipment with limited memory, the invention judges whether the process of automatically optimizing the memory is required to be started or not by calculating the memory proportion, compresses the old memory release space by taking the free time for a certain memory, reaches the next proportion, and selectively uploads the compressed files to the last release space of the server. The invention is a method of automatic operation, automatic compression, uploading, inquiry and the like, saves the time of users and improves the user experience.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A system for never filling a memory, comprising
The file management module is used for determining to start compression service or uploading service according to the size of the memory of the electronic equipment;
the compression detection service module is started by the file management module and compresses and selects redundant files in the memory of the electronic equipment;
the file uploading module is started by the file management module, and the compressed file in the electronic equipment is uploaded to the server to generate a review connection;
and the review module is started by the review connection and is used for inquiring the compressed or uploaded deleted file and recovering the compressed or uploaded deleted file after confirmation operation.
2. The system of claim 1, wherein the file management module controls the compression detection service module to start after detecting that the memory size of the electronic device is less than 60%, dynamically changes compression quality by dynamically acquiring the network environment type and network signal strength of the electronic device, and dynamically changes the data size according to the network state.
3. The system of claim 2, wherein the file management module controls the start of the file upload module after detecting that the memory size of the electronic device is less than 35%.
4. The system of claim 2, wherein the compression detection service module is configured to compress files, videos, and pictures that are not used for more than N days, and place the files, videos, and pictures in the electronic device sdcard in a time naming manner, where N is a positive integer.
5. A system in which memory is never full according to claim 3, wherein said file upload module is configured to initiate an upload service at night to upload a thumbnail file to a server.
6. The system of claim 5, wherein the file upload module deletes an original compressed package of the electronic device to release the memory after uploading the compressed file to the server.
7. A system in which memory is never full as in claim 1, wherein said review module pops up a question when a diagram is found and makes an operational suggestion based on the question.
8. A system in which memory is never full according to claim 1, wherein said question is to ask if the original map needs to be queried, display the amount of traffic to be consumed, and to suggest if it is to be looked up in wifi.
9. The system of claim 8, wherein the condition of whether to query the original image and whether to suggest searching in wifi is freely set by the user according to the use environment.
10. A method of never filling a memory using a system in which the memory is never filled according to any of claims 1-9, the method comprising the steps of:
s1, initializing electronic equipment, starting a memory to check whether the memory is lower than 60% and higher than 35%, if yes, entering S2, and if not, entering S3;
s2, starting compression detection service, and compressing and selecting redundant files in memory of electronic equipment
S3, judging that the memory is lower than 35%, and starting file uploading service;
s4, judging whether wifi is connected, if not, waiting for the wifi to be connected, if so, uploading the file by using the IMEI, and deleting the original file.
CN202311604259.2A 2023-11-27 2023-11-27 System and method for preventing memory from being full forever Pending CN117667394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311604259.2A CN117667394A (en) 2023-11-27 2023-11-27 System and method for preventing memory from being full forever

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311604259.2A CN117667394A (en) 2023-11-27 2023-11-27 System and method for preventing memory from being full forever

Publications (1)

Publication Number Publication Date
CN117667394A true CN117667394A (en) 2024-03-08

Family

ID=90085676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311604259.2A Pending CN117667394A (en) 2023-11-27 2023-11-27 System and method for preventing memory from being full forever

Country Status (1)

Country Link
CN (1) CN117667394A (en)

Similar Documents

Publication Publication Date Title
CN113568884B (en) File management method and device, electronic equipment and storage medium
CN108429777B (en) Data updating method based on cache and server
US20120297034A1 (en) Method, Device and System for Running Application
CN110401724B (en) File management method, file transfer protocol server and storage medium
EP3873066A1 (en) Method for managing resource state information, and resource downloading system
WO2019140777A1 (en) Requesting method and apparatus for data of app of mobile terminal, device, and storage medium
CN104410660A (en) Method and device of downloading multimedia resources as well as router and server
CN107517239A (en) Data transmission method and device
CN1716201A (en) Mobile communication terminal and application programme control method
EP1341358B1 (en) A method to obtain friendly names for bluetooth devices
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN111966647A (en) Cloud storage method and device for small files, server and storage medium
CN108134811B (en) Method, device and system for distributing or downloading target file
WO2018072511A1 (en) Method and device for expanding memory
CN117667394A (en) System and method for preventing memory from being full forever
CN107168648B (en) File storage method and device and terminal
CN104111993A (en) Identification method and device for application archives
CN104022923A (en) Network interface device and system as well as network data accessing method
CN110474954B (en) Block chain-based file sharing method and device, computer equipment and readable storage medium
WO2017028572A1 (en) Method and apparatus for pushing program information
CN107277104A (en) The processing method and wireless router of a kind of web page access data
CN106657175A (en) Method for storing equipment information of mobile terminal
EP1939762A1 (en) Method for managing content for a mobile device and remote gateway for managing content
CN108076116B (en) Intelligent reading method and system based on cloud storage data
CN114726849B (en) File transmission method, device, server and computer readable 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