Display device and eMMC access control method
Patent Information
- Application Number
- CN202211215320.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2042-09-30
AI Technical Summary
当读写操作产生的擦写次数达到eMMC的可擦写次数限制时,会导致电视无法使用
[0042]本申请实施例提供的显示设备及eMMC访问控制方法,显示设备中的存储器被配置为基于eMMC读写应用数据,显示设备中的控制器被配置为获取第一应用在eMMC中的写入数据量和显示设备在当前管控周期内的应用管控阈值;根据应用管控阈值和第一应用的写入数据量,确定第一应用的分级管控方式;基于第一应用的分级管控方式,对第一应用在eMMC中的写入数据量进行管控。其中,第一应用包括显示设备中已安装的至少一个应用。也即是,本申请通过监控显示设备中已安装应用在eMMC中的写入数据量,并基于应用管控阈值和各应用的写入数据量,判断是否需要对各应用进行管控,以确定各应用的分级管控方式,进而基于该应用对应的分级管控方式,对应用在eMMC中的写入数据量进行管控。如此,本申请不仅可以对应用在eMMC中的写入数据量进行有效管控,以达到保护eMMC的效果,从而延长显示设备的使用寿命。
Smart Images

Figure CN115550703B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a display device and an eMMC access control method. Background Technology
[0002] With the increasing prevalence of Android systems in smart TVs, more and more applications can be deployed on these TVs. During use, these applications frequently read and write to the embedded Multi Media Card (eMMC). When the number of erase / write cycles reaches the eMMC's write cycle limit, the TV becomes unusable.
[0003] Therefore, how to manage eMMC access in order to extend the lifespan of televisions has become an urgent technical problem to be solved. Summary of the Invention
[0004] This application provides a display device and an eMMC access control method, which can manage access to the eMMC to extend the lifespan of the display device.
[0005] In a first aspect, this application provides a display device, including a memory and a controller; wherein the memory is configured to read and write application data based on eMMC; and the controller is configured to perform the following steps:
[0006] Obtain the amount of data written by the first application in the eMMC and the application control threshold of the display device in the current control period; the first application includes at least one application that has been installed on the display device;
[0007] Based on the application control threshold and the amount of data written by the first application, determine the hierarchical control method for the first application;
[0008] Based on the hierarchical management method of the first application, the amount of data written by the first application in eMMC is controlled.
[0009] In some embodiments of this application, the application control threshold includes a rate-limiting threshold and a disabling threshold; the controller determines the hierarchical control method of the first application based on the application control threshold and the amount of data written by the first application, and is further configured as follows:
[0010] If the amount of data written by the first application is less than the rate limit threshold, then the control method for the first application is determined to be normal writing.
[0011] If the amount of data written by the first application is greater than or equal to the rate limiting threshold, and the amount of data written by the first application is less than the disable threshold, then the control method for the first application is determined to be rate limiting write.
[0012] If the amount of data written by the first application is greater than or equal to the disable threshold, then the control method for the first application is determined to be write-prohibited.
[0013] In some embodiments of this application, the controller obtains the application control threshold of the display device within the current control period, which is further configured as follows:
[0014] Obtain the basic control thresholds corresponding to the current lifecycle of the display device;
[0015] Get the historical write volume of the first application during the previous control period;
[0016] Based on the basic control threshold and historical write volume, determine the application control threshold for the display device within the current control cycle.
[0017] In some embodiments of this application, the controller determines the application control threshold of the display device within the current control period based on the basic control threshold and the historical write volume, and is further configured as follows:
[0018] Based on historical write volume, calculate the unit write volume of the first application in the previous control period. The unit write volume is determined based on the total amount of data written to eMMC by the first application in the previous control period.
[0019] The basic control threshold is adjusted based on the unit write volume to obtain the application control threshold.
[0020] In some embodiments of this application, the controller obtains the amount of data written by the first application in the eMMC, which is further configured as follows:
[0021] Get the process write volume of each running process in the eMMC of the display device;
[0022] Based on the amount of data written by each running process in the eMMC and the correspondence between applications and processes, the amount of data written by the first application in the eMMC is determined.
[0023] In some embodiments of this application, the controller manages the amount of data written by the first application in the eMMC based on the management method of the first application, and is further configured as follows:
[0024] If the application write volume of the first application is greater than or equal to the application control threshold, then the control method corresponding to the first application will be displayed.
[0025] In response to user-triggered control selection operations, the amount of data written by the first application in eMMC is controlled.
[0026] In some embodiments of this application, the controller is further configured as follows:
[0027] Get the current lifecycle value and the previous lifecycle value of the display device;
[0028] If the current lifecycle value is different from the previous lifecycle value, then the global management method of the first application in the current lifecycle is determined based on the usage duration corresponding to the previous lifecycle.
[0029] In some embodiments of this application, the controller determines the global management method for the first application in the current lifecycle based on the usage duration corresponding to the previous lifecycle, and is further configured as follows:
[0030] If the periodic usage duration is less than or equal to the preset unit usage duration threshold, then global rate limiting will be applied to the first application.
[0031] If the periodic usage duration exceeds the preset unit usage duration threshold, then the global rate limiting control for the first application will be cancelled.
[0032] In some embodiments of this application, the controller is further configured as follows:
[0033] Based on the control method corresponding to the first application, an application control list is generated; the application control list includes applications with write speed limit control and / or applications with write prohibition control;
[0034] After the display device is powered on, if at least one running second application is detected, the second application is controlled based on the application control list.
[0035] Secondly, this application provides an eMMC access control method, which includes:
[0036] Obtain the amount of data written by the first application in the eMMC and the application control threshold of the display device in the current control period; the first application includes at least one application that has been installed on the display device;
[0037] Based on the application control threshold and the amount of data written by the first application, determine the hierarchical control method for the first application;
[0038] Based on the hierarchical management method of the first application, the amount of data written by the first application in eMMC is controlled.
[0039] Thirdly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a controller in a display device, can implement some or all of the steps of the eMMC access control method provided in this application.
[0040] Fourthly, this application also provides a computer program product comprising a computer program that, when executed by a controller in a display device, can implement some or all of the steps of the eMMC access control method provided in this application.
[0041] The technical solution provided in this application can achieve at least the following beneficial effects:
[0042] The display device and eMMC access control method provided in this application embodiment configure the memory in the display device to read and write application data based on eMMC. The controller in the display device is configured to acquire the amount of data written by a first application in the eMMC and the application control threshold of the display device in the current control cycle; determine the hierarchical control method of the first application based on the application control threshold and the amount of data written by the first application; and control the amount of data written by the first application in the eMMC based on the hierarchical control method of the first application. The first application includes at least one application installed in the display device. That is, this application monitors the amount of data written by installed applications in the eMMC of the display device, and determines whether control of each application is necessary based on the application control threshold and the amount of data written by each application, thereby determining the hierarchical control method of each application, and then controlling the amount of data written by the application in the eMMC based on the corresponding hierarchical control method. Thus, this application can not only effectively control the amount of data written by applications in the eMMC to protect the eMMC, but also extend the lifespan of the display device. Attached Figure Description
[0043] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device, as shown in an exemplary embodiment of this application.
[0045] Figure 2 This is a hardware configuration block diagram of a display device illustrated in an exemplary embodiment of this application;
[0046] Figure 3 This is a schematic diagram of an eMMC access control system illustrated in an exemplary embodiment of this application;
[0047] Figure 4 This is a flowchart illustrating an exemplary embodiment of the present application of a display device performing an eMMC access control method;
[0048] Figure 5 This is a flowchart illustrating an exemplary embodiment of the present application of a display device acquiring the amount of write data of a first application;
[0049] Figure 6This is a flowchart illustrating an exemplary embodiment of the present application of a display device obtaining an application control threshold;
[0050] Figure 7 This is a schematic diagram illustrating a control method for displaying a first application on a display device, as shown in an exemplary embodiment of this application;
[0051] Figure 8 This is a schematic diagram illustrating another method for controlling the display of a first application on a display device, as shown in an exemplary embodiment of this application;
[0052] Figure 9 This is a flowchart illustrating an exemplary embodiment of the present application of a display device controlling the write volume of a second application;
[0053] Figure 10 This is a flowchart illustrating another exemplary embodiment of the present application of a display device for controlling the write volume of a second application;
[0054] Figure 11 This is a flowchart illustrating a display device performing global control over a first application, as shown in an exemplary embodiment of this application;
[0055] Figure 12 This is a flowchart illustrating a display device performing global speed limiting control, as shown in an exemplary embodiment of this application. Detailed Implementation
[0056] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.
[0057] Before explaining the display device and eMMC access control method provided in this application, the implementation environment of the embodiments of this application will be introduced first.
[0058] See Figure 1 In the interaction scenario between the display device and the control device, the user can operate the display device 200 through the terminal device 300 or the control device 100.
[0059] The display device 200 can take many forms, such as a television, a smart television, a computer, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc.
[0060] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can input user commands through buttons on the remote control, voice input, control panel input, etc., to control the display device 200.
[0061] In some embodiments, a terminal device 300 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may be used to control the display device 200. For example, an application running on the terminal device 300 may be used to control the display device 200.
[0062] In some embodiments, the display device 200 may also be controlled by the user via touch or gestures.
[0063] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the terminal device 300. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.
[0064] In some embodiments, the display device 200 can also communicate with the server 400. The display device 200 can communicate via a local area network (LAN), wireless local area network (WLAN), or other networks. The server 400 can provide the display device 200 with various display and interactive content.
[0065] As an example, server 400 can be a standalone server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0066] Based on the above embodiments, Figure 2 A hardware configuration block diagram of the display device 200 described above is shown. The display device 200 includes at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory 280, a power supply, and a user interface.
[0067] In some embodiments, the tuner 210 receives broadcast television signals via wired or wireless reception and demodulates audio and video signals from multiple wireless or wired broadcast television signals. For example, Electronic Program Guide (EPG) data signals.
[0068] In some embodiments, the communicator 220 is a component for communicating with external devices or the server 400 according to various communication protocol types. For example, the communicator may include at least one of a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver.
[0069] Specifically, the display device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
[0070] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0071] In some embodiments, the external device interface 240 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or high-definition component input interface (component), Composite Video Broadcast Signal (CVBS), Universal Serial Bus (USB) input interface, RGB port, etc. It may also be a composite input / output interface formed by multiple of the above interfaces.
[0072] In some embodiments, the controller 250 includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (RandomAccess Memory), a ROM (Read-Only Memory), a first to an nth interface for input / output, a communication bus, etc.
[0073] In practice, the controller 250 controls the operation of the display device 200 and responds to user operations through various software control programs stored in the memory 280. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command to select a UI object to display on the monitor 260, the controller 250 can execute operations related to the object selected by the user command.
[0074] In addition, in this embodiment, the memory 280 is configured to read and write application data based on eMMC, and the controller 250 is configured to obtain the amount of data written by the first application in the eMMC and the application control threshold of the display device in the current control period; the first application includes at least one application installed in the display device; the hierarchical control method of the first application is determined according to the application control threshold and the amount of data written by the first application; and the amount of data written by the first application in the eMMC is controlled based on the hierarchical control method of the first application.
[0075] It should be noted that the controller 250 and the tuner 210 can be located in different separate devices. That is, the tuner 210 can also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0076] In some embodiments, the display 260 includes a display screen component for presenting images, a driving component for driving image display, a component for receiving image signals output by the controller 250, and a user control UI interface for displaying video content, image content, menu control interface, and user control UI interface.
[0077] As an example, the display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.
[0078] Users can input commands through the graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, users can input commands by entering specific sounds or gestures, and the user interface receives the user input commands by recognizing the sounds or gestures through sensors.
[0079] The "user interface" is the medium through which an application or operating system interacts and exchanges information with the user. It converts the internal form of information into a form that the user can accept. For example, a user interface can be an icon, window, control, or other interface element displayed on the screen of a display device 200. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0080] After introducing the control interaction scenarios and specific hardware structure of the display device, the application scenarios of the display device and eMMC access control method provided in this application will be described based on the aforementioned display device 200.
[0081] With the increasing popularity of Android smart TVs and the growing diverse needs of users, a wide variety of applications have emerged. However, due to the uncontrollable source of these applications, or the installation of illegal apps, some applications, purely for the sake of an optimal user experience or to perform illegal operations, frequently read and write to the eMMC, quickly reaching the eMMC's write / erase cycle limit. This drastically reduces the TV's lifespan and ultimately renders the TV unusable.
[0082] To reduce excessive consumption of eMMC, common methods include reducing the number of times the file system writes to the eMMC, changing the file system's write strategy, or monitoring the lifespan of the eMMC and promptly prompting users to replace the eMMC.
[0083] However, the relevant technologies cannot determine which applications perform excessive operations on the eMMC, thus failing to effectively protect the eMMC. They can only protect it by restricting writes and replacing the eMMC, and the protection process is not targeted.
[0084] Based on this, this application provides a display device and an eMMC access control method, which performs hierarchical management of applications according to the amount of data written by each application in the eMMC, so as to protect the eMMC.
[0085] See Figure 3 In the eMMC access control system, the management service (a program running on the controller) periodically reads the process write volume of each process at the underlying level (i.e., the driver and kernel layer), adds it to the recorded write volume information, and determines whether any process's process write volume exceeds a preset control threshold. Furthermore, based on the write volume data of each application, the management service does not limit, rate-limit, or disables the amount of data written by applications in the eMMC.
[0086] The application layer mainly includes a write volume reading module, a write volume statistics module, an application rate limiting module, a global rate limiting module, a disabling module, and a reporting module. The write volume reading module primarily reads the write volume information of each process and sends it to the write volume statistics module for processing. The write volume statistics module merges the read process write volume and / or application write data volume into the already statistically analyzed write volume data and determines whether the application write data volume exceeds the application control threshold. If so, it performs rate limiting through the rate limiting module or disabling through the disabling module. Simultaneously, the reporting module reports the above information (including but not limited to process write volume, application write data volume, rate-limited applications, and disabled applications) to the data center.
[0087] The cloud platform will statistically analyze the write volume information of applications with large write volumes reported by the display devices. Since the display devices report the top 10 or top 20 applications in terms of write volume, lifecycle, and usage time at regular intervals, the cloud platform will statistically analyze this application data and dynamically adjust the application control thresholds in combination with lifecycle and usage time data.
[0088] Furthermore, if the lifecycle of the display device changes and the usage time of each lifecycle is too short, the global speed limiting module will be triggered to perform global control over the application.
[0089] In addition, this application provides an interface design for interaction with users. Information such as the amount of data written by the application on the display device will be reported to the data center in the cloud. The data center will perform data statistics and analysis, and dynamically adjust the application control threshold as appropriate.
[0090] Next, the technical solutions of the embodiments of this application, and how the technical solutions of the embodiments of this application solve the above-mentioned technical problems, will be described in detail with reference to the accompanying drawings. The embodiments shown below can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0091] In one exemplary embodiment, such as Figure 4 As shown, when the display device of this application executes the eMMC access control method, the controller in the display device is configured to perform the following steps:
[0092] Step 410: Obtain the amount of data written by the first application in the eMMC and the application control threshold of the display device in the current control period; the first application includes at least one application that has been installed on the display device.
[0093] The first application may include all applications installed on the display device, or at least one second application currently running on the display device; the first application includes the second application.
[0094] Based on the hierarchical control technology concept provided in this application, the above-mentioned application control thresholds may include speed limit thresholds and disabling thresholds.
[0095] In some of these embodiments, such as Figure 5 As shown, the process of obtaining the amount of data written by the first application in eMMC may include the following steps:
[0096] Step 411: Obtain the process write volume of each running process in the eMMC of the display device.
[0097] When a display device runs an application, it can deploy multiple threads to process data. Therefore, the amount of data written to the eMMC by each running process can be used as a basis.
[0098] Thus, the eMMC access control method provided in this application can manage individual applications or processes, with smaller control granularity and stronger targeting.
[0099] Step 412: Based on the amount of process writes in eMMC for each running process and the correspondence between applications and processes, determine the amount of data written by the first application in eMMC.
[0100] One application may correspond to one process or multiple processes.
[0101] In one possible implementation, step 412 can be implemented as follows: Based on the processes deployed during the runtime of each first application, determine the target process corresponding to the first application. Then, based on the process write volume of the target process of the first application, calculate the amount of data written by the first application in the eMMC using a cumulative summation method.
[0102] It should be noted that the amount of data written by the first application in eMMC is the total amount of data written by the first application in eMMC within the current management period, which includes historical writes and writes generated in the most recent run.
[0103] In some of these embodiments, such as Figure 6 As shown, the process of obtaining the application control threshold of the display device within the current control period may include the following steps:
[0104] Step 413: Obtain the basic control threshold corresponding to the display device in the current life cycle.
[0105] It should be noted that the lifespan of a display device is related not only to the duration of its use, but also to the lifespan of the eMMC within the display device.
[0106] Therefore, the lifecycle of the display device mentioned in this application can be determined based on the cumulative usage time of the display device after it leaves the factory, or based on the eMMC lifecycle value, or determined after comprehensive analysis of the cumulative usage time of the device and the eMMC lifecycle value. This application does not impose any limitations on this.
[0107] Step 414: Obtain the historical write volume of the first application in the previous control period.
[0108] It should be understood that the current control period and the previous control period are two control periods that are adjacent in time; the historical write volume in the previous control period is the total write volume of the first application executed on the eMMC on the display device in the previous control period.
[0109] It should be noted that the historical write volume of the previous control cycle is related to the duration of the previous control cycle. However, in this application, the control cycle is different for different life cycles of the display device.
[0110] In one possible implementation, the lifecycle of the display device is divided into three levels. When the lifecycle value is in the range of [1, 2], it indicates that the eMMC has the longest lifecycle, and the management cycle can be set to one month, that is, the application management threshold is adjusted once a month. When the lifecycle value is in the range of [3, 8), it indicates that the eMMC has a relatively long lifecycle, and the management cycle can be set to one week, that is, the application management threshold is adjusted once a week. When the lifecycle value is in the range of [8, 11], it indicates that the eMMC has a relatively short lifecycle, and the management cycle can be set to one day, that is, the application management threshold is adjusted once a day.
[0111] The cloud platform categorizes the adjustment of application control thresholds into the following two levels:
[0112] (1) The first level is the basic control threshold determined based on the periodic usage time within a unit life cycle. This level will only adjust the basic control threshold when the life cycle of the display device changes.
[0113] The second level is the application control threshold determined based on the statistics of the amount of data written by the first application. This application control threshold is fine-tuned based on the basic control threshold according to the corresponding control cycle.
[0114] It should be noted that application control thresholds include rate limit thresholds and disabling thresholds. Correspondingly, basic control thresholds also include basic disabling values.
[0115] As an example, when a display device first starts reporting data, its lifecycle remains unchanged, and the basic control threshold for the first level uses the default value. When the lifecycle changes, the basic control threshold is recalculated.
[0116] Refer to the basic threshold adjustment table shown in Table 1 below. Assuming that the basic control threshold is divided into three levels and the standard usage time corresponding to the change in life cycle is 1000h, the corresponding basic control threshold is shown in Table 1 below.
[0117] Table 1
[0118]
[0119]
[0120] It should be understood that the standard usage time in Table 1 above can also adopt other classification standards, and the speed limit base value and the prohibition base value can also be set separately according to actual needs. The embodiments of this application are only illustrated by Table 1 and are not intended to limit the basic control thresholds in this application to the data in the above examples.
[0121] (2) The second level is the application control threshold determined based on the statistical information of the amount of data written by the first application. This application control threshold is fine-tuned based on the basic control threshold according to the corresponding control cycle.
[0122] Specifically, after determining the basic control threshold corresponding to the current lifecycle, the application control threshold corresponding to each control cycle within the current lifecycle can be dynamically adjusted based on the basic control threshold through the following step 415.
[0123] Step 415: Determine the application control threshold for the display device within the current control period based on the basic control threshold and historical write volume.
[0124] The application control thresholds include rate limit thresholds and disabling thresholds.
[0125] In one possible implementation, step 415 can be implemented as follows: calculate the unit write volume of the first application in the previous control period based on the historical write volume; adjust the basic control threshold based on the unit write volume to obtain the application control threshold.
[0126] The unit write volume is determined based on the total amount of data written to the eMMC by the first application in the previous control period; for example, the unit write volume is the write volume per hour calculated based on the total amount of data written to the eMMC by the first application in the previous control period.
[0127] As an example, if the unit write volume is 5000M / h, and the base value for rate limiting and the base value for disabling are M and N respectively, then the rate limiting threshold and the disabling threshold within the current control period can be determined by using the application control threshold adjustment table shown in Table 2 below.
[0128] Table 2
[0129] (0,4500) (1+10%)*M (1+10%)*N [4500,5500] M N (5500,∞) (1-10%)*M (1-10%)*N
[0130] It should be understood that the adjustment range in Table 2 above is only 10% as an example, and it can also be set to 5% or 20%, etc. This application embodiment does not limit this.
[0131] Step 420: Determine the hierarchical control method for the first application based on the application control threshold and the amount of data written by the first application.
[0132] Since the control thresholds set in this application include rate limiting thresholds and disable thresholds, the corresponding hierarchical control methods can include rate-limited write control and write-prohibition control.
[0133] In one possible implementation, step 420 can be implemented as follows: if the amount of data written by the first application is less than the rate limiting threshold, then the control mode of the first application is determined to be normal writing; if the amount of data written by the first application is greater than or equal to the rate limiting threshold and the amount of data written by the first application is less than the disable threshold, then the control mode of the first application is determined to be rate-limited writing; if the amount of data written by the first application is greater than or equal to the disable threshold, then the control mode of the first application is determined to be write-prohibited.
[0134] Step 430: Based on the hierarchical management method of the first application, control the amount of data written by the first application in eMMC.
[0135] In one possible implementation, step 430 can be implemented as follows: if the application write volume of the first application is greater than or equal to the application control threshold, then the control mode corresponding to the first application is displayed; in response to the control selection operation triggered by the user, the write data volume of the first application in eMMC is controlled.
[0136] When displaying the control method corresponding to the first application, it can be displayed in a pop-up window or in other ways. This application embodiment does not limit this.
[0137] As an example, if the first application's control method is rate-limited write, then the control method of the first application will be displayed as follows: Figure 7 As shown, the user decides whether to implement speed limits for the first application.
[0138] In response to the user's selection of the "Add to rate limit" operation, the display device limits the amount of data written by the first application in the eMMC; in response to the user's selection of the "Cancel" operation, the display device does not control the amount of data written by the first application in the eMMC, and the first application can access the eMMC normally.
[0139] As another example, if the first application's control method is to disable write operations, then the control method of the first application will be displayed as follows: Figure 8 As shown, the user decides whether to disable or limit the speed of the first application.
[0140] In response to the user's selection of the "Add to rate limit" operation, the device displays that it limits the amount of data written by the first application in the eMMC; in response to the user's selection of the "Disable application" operation, the first application is prohibited from running; in response to the user's selection of the "Cancel" operation, the device displays that it does not control the amount of data written by the first application in the eMMC, and the first application can access the eMMC normally.
[0141] It should be noted that when the write volume of a particular application does not reach the rate-limiting threshold, the device automatically cancels the application rate limit. Similarly, when the write volume of a particular application does not reach the disable threshold, the device automatically cancels the application disabling operation. This cancellation process does not require user confirmation.
[0142] Thus, this application provides an interface design for interaction with the user by displaying the control method corresponding to the first application. When it is detected that a certain first application needs to be controlled based on the above steps 410 and 420, an interface prompt will pop up to display the control method corresponding to the first application. The user can choose to limit the speed, disable, or not process.
[0143] Furthermore, since the application write volume control method uses the method of adding the first application whose application write volume is greater than or equal to the application control threshold to the application rate limiting node, this operation is only effective when the display device has not been restarted. When the display device is restarted, the operation of adding the application rate limiting node has become invalid, causing the display device to be unable to continue to control the application.
[0144] Based on this, this application maintains an application control list. When an application is launched, the application control list is queried first. If the launched application is in the application control list, the application is added to the application rate limiting node to limit the application rate.
[0145] In some of these embodiments, such as Figure 9 As shown, the controller is further configured to perform the following steps:
[0146] Step 910: Generate an application control list based on the control method corresponding to the first application.
[0147] The application control list includes applications with write speed limits and / or applications with write restrictions.
[0148] Step 920: After the display device is powered on, if at least one running second application is detected, the second application is controlled based on the application control list.
[0149] It should be noted that the first application mentioned above refers to an application already installed on the display device. Regardless of whether the first application is running, its hierarchical control method must be determined according to the preset control frequency within the control cycle, following steps 410-430 above. The first application, on the other hand, refers to an application running after the display device is powered on. That is, the second application is a subset of the first application and can be the same as it. The only difference between the two is whether the application is running.
[0150] The control frequency can be 1 hour, 30 minutes, or other preset values; this application embodiment does not limit this.
[0151] In one possible implementation, see Figure 10 After the display device starts up, it first reads the application management list to determine the applications that need to be managed. Further, if a second running application is detected, it checks whether the second application is in the application management list. If the second application is in the application management list, then the second application is managed.
[0152] The display device and eMMC access control method provided in this application embodiment monitor the amount of data written to the eMMC by installed applications in the display device. Based on application control thresholds and the amount of data written by each application, it determines whether control of each application is necessary, thereby determining the hierarchical control method for each application. Then, through the corresponding hierarchical control method, the amount of data written to the eMMC by the application is controlled. In this way, this application can effectively control the amount of data written to the eMMC by applications, thus protecting the eMMC and extending the lifespan of the display device.
[0153] Based on the above-mentioned hierarchical control method, when the life cycle of the display device changes, this application can also perform global speed limiting control on the first application already installed on the display device.
[0154] In one exemplary embodiment, such as Figure 11 As shown, when the display device of this application executes the eMMC access control method, the controller in the display device is configured to perform the following steps:
[0155] Step 1110: Obtain the current lifecycle value and the previous lifecycle value of the display device.
[0156] Step 1120: If the current lifecycle value is different from the previous lifecycle value, then determine the global management method of the first application in the current lifecycle based on the cycle usage duration corresponding to the previous lifecycle.
[0157] If the current lifecycle value is different from the previous lifecycle value, it indicates that the lifecycle of the display device has changed.
[0158] In this application, when the lifecycle of the display device changes, a global speed limit detection process is initiated. If the conditions for global speed limit are met, the first application on the display device is globally speed-limited; if the conditions for canceling global speed limit are met, the global speed limit operation on the first application on the display device is canceled.
[0159] In one possible implementation, step 1120 can be implemented as follows: if the periodic usage duration is less than or equal to a preset unit usage duration threshold, then global rate limiting control is applied to the first application; if the periodic usage duration is greater than the preset unit usage duration threshold, then global rate limiting control is canceled for the first application.
[0160] The unit usage time threshold can be any preset value, such as 30h, 50h, 60h, etc.
[0161] In other words, if the cycle usage duration is less than or equal to the preset unit usage duration threshold, it indicates that the first application in the display device accesses the eMMC too frequently during that lifecycle, causing some wear and tear on the eMMC. Therefore, to protect the eMMC, it is necessary to implement global rate limiting control over the amount of data written to the eMMC by the first application.
[0162] Furthermore, if the lifecycle changes, and it is determined that the cycle usage time in the previous lifecycle is greater than the preset unit usage time threshold, then the global rate limiting control for the first application is canceled.
[0163] As an example, the global rate-limiting detection process that is initiated when the lifecycle changes is as follows: Figure 12 As shown.
[0164] Specifically, the display device reads the lifecycle value and global rate-limiting flag in real time or periodically. If the global rate-limiting flag is 1, it indicates that the lifecycle has not changed and global rate-limiting control is in effect during that lifecycle. Then, the display device reports application settings parameters to the cloud, such as the amount of data written by each application and the hierarchical control method for each application. Further, the display device monitors changes in the lifecycle. If the lifecycle changes, and the usage duration within the previous lifecycle is less than or equal to a preset unit usage duration threshold, then global rate-limiting is applied to the first application installed on the display device. Simultaneously, the lifecycle and global rate-limiting flag are updated during global rate-limiting.
[0165] In the global rate limiting method provided in this application embodiment, a global rate limiting function is added when the usage time corresponding to the unit lifespan is too short, that is, when the display device with the current lifespan value can be used for too short a period of time. In this way, by controlling the global rate limiting, the first application installed on the display device is globally rate limited, thereby reducing the amount of data written by the first application to the eMMC, so as to maximize the lifespan of the eMMC and achieve the purpose of protecting the eMMC.
[0166] Based on the two exemplary embodiments described above, it should be noted that,
[0167] In addition, this application also provides an eMMC access control method, which can be applied to the above-mentioned display device or other electronic devices. The method includes: obtaining the amount of data written by a first application in the eMMC and the application control threshold of the display device in the current control period; the first application includes at least one application installed in the display device; determining the hierarchical control method of the first application based on the application control threshold and the amount of data written by the first application; and controlling the amount of data written by the first application in the eMMC based on the hierarchical control method of the first application.
[0168] The implementation principle and beneficial effects of the eMMC access control method provided in the above embodiments can be found in the specific limitations of the various embodiments regarding the controller configuration content in the display device mentioned above, and will not be repeated here.
[0169] In addition, when implementing the above-described eMMC access control method, this application also provides a computer-readable storage medium. This computer-readable storage medium may store a computer program, which, when invoked and executed by a controller in a display device or other electronic device, can implement some or all of the steps in the eMMC access control method provided in this application.
[0170] The computer-readable storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.
[0171] It should be understood that the technical solutions in the embodiments of this application can be implemented using software plus necessary general-purpose hardware platforms. Therefore, the technical solutions in the embodiments of this application, in essence or in part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium.
[0172] In addition, when implementing the above-described eMMC access control method, this application also provides a computer program product. This computer program product includes a computer program that is invoked and executed by a controller in a display device or other electronic device, and can implement some or all of the steps in the eMMC access control method provided in this application.
[0173] The above are merely specific implementations of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.
Claims
1. A display device, characterized in that, The display device includes: The memory is configured to read and write application data based on eMMC. The controller is configured as follows: The amount of data written by the first application in the eMMC and the historical write volume in the previous control period are obtained. The first application includes at least one application that has been installed in the display device. Obtain the basic control threshold corresponding to the display device in the current life cycle, and determine the application control threshold of the display device in the current control cycle based on the basic control threshold and the historical write volume; Based on the application control threshold and the amount of data written by the first application, determine the hierarchical control method for the first application; Based on the hierarchical management method of the first application, the amount of data written by the first application in the eMMC is controlled.
2. The display device according to claim 1, characterized in that, The application control thresholds include rate limiting thresholds and disabling thresholds; the controller determines the hierarchical control method for the first application based on the application control thresholds and the amount of data written by the first application, and is further configured as follows: If the amount of data written by the first application is less than the rate limit threshold, then the control mode of the first application is determined to be normal writing. If the amount of data written by the first application is greater than or equal to the rate limiting threshold, and the amount of data written by the first application is less than the disable threshold, then the control method for the first application is determined to be rate limiting write. If the amount of data written by the first application is greater than or equal to the disabled threshold, then the control method for the first application is determined to be write-prohibited.
3. The display device according to claim 1, characterized in that, The controller, based on the basic control threshold and the historical write volume, determines the application control threshold of the display device within the current control period, and is further configured as follows: Based on the historical write volume, the unit write volume of the first application in the previous control period is calculated, and the unit write volume is determined based on the total amount of data written by the first application to the eMMC in the previous control period; The application control threshold is obtained by adjusting the basic control threshold based on the unit write volume.
4. The display device according to any one of claims 1 to 3, characterized in that, The controller obtains the amount of data written by the first application in the eMMC and is further configured as follows: Obtain the process write volume of each running process in the display device in the eMMC; Based on the amount of data written by each running process in the eMMC and the correspondence between applications and processes, the amount of data written by the first application in the eMMC is determined.
5. The display device according to any one of claims 1 to 3, characterized in that, The controller, based on the management method of the first application, manages the amount of data written by the first application in the eMMC, and is further configured to: If the application write volume of the first application is greater than or equal to the application control threshold, then the control method corresponding to the first application will be displayed. In response to a user-triggered control selection operation, the amount of data written by the first application in the eMMC is controlled.
6. The display device according to any one of claims 1 to 3, characterized in that, The controller is further configured to: Obtain the current lifecycle value and the previous lifecycle value of the display device; If the current lifecycle value is different from the previous lifecycle value, then the global management method of the first application in the current lifecycle is determined based on the cycle usage duration corresponding to the previous lifecycle.
7. The display device according to claim 6, characterized in that, The controller, based on the usage duration corresponding to the previous lifecycle, determines the global management method of the first application in the current lifecycle, and is further configured as follows: If the cycle usage duration is less than or equal to the preset unit usage duration threshold, then global speed limiting control is applied to the first application. If the periodic usage duration exceeds the preset unit usage duration threshold, then the global rate limiting control for the first application is cancelled.
8. The display device according to any one of claims 1 to 3, characterized in that, The controller is further configured to: Based on the control method corresponding to the first application, an application control list is generated; the application control list includes applications with write speed limit control and / or applications with write prohibition control; After the display device is powered on, if at least one running second application is detected, the second application is controlled based on the application control list.
9. An eMMC access control method, characterized in that, The method includes: The amount of data written by the first application in the eMMC and the historical write volume in the previous control period are obtained. The first application includes at least one application that has been installed in the display device. Obtain the basic control threshold corresponding to the current life cycle of the display device, and determine the application control threshold of the display device in the current control cycle based on the basic control threshold and the historical write volume; Based on the application control threshold and the amount of data written by the first application, determine the hierarchical control method for the first application; Based on the hierarchical management method of the first application, the amount of data written by the first application in the eMMC is controlled.
Citation Information
Patent Citations
Write-in control method and display device
CN111679789A
Storage medium management method and device and equipment
CN113467703A