Detailed Description
For the purpose of making the objects, technical solutions and advantages of exemplary embodiments of the present application more apparent, the technical solutions of exemplary embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the exemplary embodiments of the present application, and it is apparent that the described exemplary embodiments are only some embodiments of the present application, not all embodiments.
All other embodiments, which can be made by a person skilled in the art without inventive effort, based on the exemplary embodiments shown in the present application are intended to fall within the scope of the present application. Furthermore, while the present disclosure has been described in terms of an exemplary embodiment or embodiments, it should be understood that each aspect of the disclosure may be separately implemented as a complete solution.
The terms "comprising" and "having," as well as any variations thereof, as used in the present application are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to those elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" as used in this disclosure refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the function associated with that element.
The term "gesture" as used herein refers to a user behavior by which a user expresses an intended idea, action, purpose, and/or result through a change in hand shape or movement of a hand, etc.
A schematic diagram of an operation scenario between the display apparatus 200 and the control device 100 is exemplarily shown in fig. 1A. As shown in fig. 1A, communication between the control apparatus 100 and the display device 200 may be performed in a wired or wireless manner.
Wherein the control apparatus 100 is configured to control the display device 200, which can receive an operation instruction input by a user, and convert the operation instruction into an instruction recognizable and responsive to the display device 200, and to mediate interaction between the user and the display device 200. Such as: the user responds to the channel addition and subtraction operation by operating the channel addition and subtraction key on the control apparatus 100.
The control device 100 may be a remote control 100A, including an infrared protocol communication or a bluetooth protocol communication, and other short-range communication modes, and the display apparatus 200 is controlled by a wireless or other wired mode. The user may control the display device 200 by inputting user instructions through keys on a remote control, voice input, control panel input, etc. Such as: the user can input corresponding control instructions through volume up-down keys, channel control keys, up/down/left/right movement keys, voice input keys, menu keys, on-off keys, etc. on the remote controller to realize the functions of the control display device 200.
The control device 100 may also be an intelligent device, such as a mobile terminal 100B, a tablet computer, a notebook computer, or the like. For example, the display device 200 is controlled using an application running on a smart device. The application program, by configuration, can provide various controls to the user through an intuitive User Interface (UI) on a screen associated with the smart device.
For example, the mobile terminal 100B may install a software application with the display device 200, implement connection communication through a network communication protocol, and achieve the purpose of one-to-one control operation and data communication. Such as: the mobile terminal 100B may be caused to establish a control instruction protocol with the display device 200 to implement functions such as physical keys arranged by the remote controller 100A by operating various function keys or virtual buttons of a user interface provided on the mobile terminal 100B. The audio/video content displayed on the mobile terminal 100B may also be transmitted to the display device 200, so as to implement a synchronous display function.
The display device 200 may be implemented as a television, and may provide a broadcast receiving television function as well as an intelligent network television function of a computer support function. Examples of display devices include digital televisions, web televisions, smart televisions, internet Protocol Televisions (IPTV), and the like.
The display device 200 may be a liquid crystal display, an organic light emitting display, a projection display device. The specific display device type, size, resolution, etc. are not limited.
The display device 200 is also in data communication with the server 300 via a variety of communication means. Display device 200 may be permitted to communicate via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 300 may provide various contents and interactions to the display device 200. By way of example, the display device 200 may send and receive information, such as: receiving Electronic Program Guide (EPG) data, receiving software program updates, or accessing a remotely stored digital media library. The servers 300 may be one group, may be multiple groups, and may be one or more types of servers. Other web service content such as video on demand and advertising services are provided through the server 300.
A block diagram of the configuration of the control apparatus 100 is exemplarily shown in fig. 1B. As shown in fig. 1B, the control device 100 includes a controller 110, a memory 120, a communicator 130, a user input interface 140, an output interface 150, and a power supply 160.
The controller 110 includes a Random Access Memory (RAM) 111, a Read Only Memory (ROM) 112, a processor 113, a communication interface, and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, as well as the communication collaboration between the internal components, external and internal data processing functions.
For example, when an interaction in which a user presses a key arranged on the remote controller 100A or an interaction in which a touch panel arranged on the remote controller 100A is touched is detected, the controller 110 may control to generate a signal corresponding to the detected interaction and transmit the signal to the display device 200.
The memory 120 stores various operation programs, data, and applications for driving and controlling the control device 100 under the control of the controller 110. The memory 120 may store various control signal instructions input by a user.
The communicator 130 performs communication of control signals and data signals with the display device 200 under the control of the controller 110. Such as: the control apparatus 100 transmits a control signal (e.g., a touch signal or a button signal) to the display device 200 via the communicator 130, and the control apparatus 100 may receive the signal transmitted by the display device 200 via the communicator 130. Communicator 130 may include an infrared signal interface 131 and a radio frequency signal interface 132. For example: when the infrared signal interface is used, the user input instruction needs to be converted into an infrared control signal according to an infrared control protocol, and the infrared control signal is sent to the display device 200 through the infrared sending module. And the following steps: when the radio frequency signal interface is used, the user input instruction is converted into a digital signal, and then the digital signal is modulated according to a radio frequency control signal modulation protocol and then transmitted to the display device 200 through the radio frequency transmission terminal.
The user input interface 140 may include at least one of a microphone 141, a touch pad 142, a sensor 143, keys 144, etc., so that a user may input user instructions regarding controlling the display apparatus 200 to the control device 100 through voice, touch, gesture, press, etc.
The output interface 150 outputs a user instruction received by the user input interface 140 to the display device 200 or outputs an image or voice signal received by the display device 200. Here, the output interface 150 may include an LED interface 151, a vibration interface 152 generating vibrations, a sound output interface 153 outputting sound, a display 154 outputting an image, and the like. For example, the remote controller 100A may receive an output signal of audio, video, or data from the output interface 150, and display the output signal as an image form on the display 154, as an audio form at the sound output interface 153, or as a vibration form at the vibration interface 152.
A power supply 160 for providing operating power support for the various elements of the control device 100 under the control of the controller 110. May be in the form of a battery and associated control circuitry.
A hardware configuration block diagram of the display device 200 is exemplarily shown in fig. 1C. As shown in fig. 1C, the display apparatus 200 may further include therein a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a memory 260, a user interface 265, a video processor 270, a display 275, an audio processor 280, an audio input interface 285, a power supply 290.
The modem 210 receives broadcast television signals through a wired or wireless manner, and may perform modulation and demodulation processes such as amplification, mixing, and resonance, for demodulating an audio/video signal carried in a frequency of a television channel selected by a user and additional information (e.g., EPG data) from among a plurality of wireless or wired broadcast television signals.
The tuning demodulator 210 is responsive to the frequency of the television channel selected by the user and the television signal carried by that frequency, as selected by the user, and as controlled by the controller 250.
The tuning demodulator 210 can receive signals in various ways according to broadcasting systems of television signals, such as: terrestrial broadcasting, cable broadcasting, satellite broadcasting, internet broadcasting, or the like; according to different modulation types, a digital modulation mode or an analog modulation mode can be adopted; and the analog signal and the digital signal can be demodulated according to the kind of the received television signal.
In other exemplary embodiments, the modem 210 may also be in an external device, such as an external set-top box or the like. In this way, the set-top box outputs a television signal after modulation and demodulation, and inputs the television signal to the display apparatus 200 through the external device interface 240.
The communicator 220 is a component for communicating with an external device or an external server according to various communication protocol types. For example, the display device 200 may transmit content data to an external device connected via the communicator 220, or browse and download content data from an external device connected via the communicator 220. The communicator 220 may include a network communication protocol module or a near field communication protocol module such as a WIFI module 221, a bluetooth communication protocol module 222, a wired ethernet communication protocol module 223, etc., so that the communicator 220 may receive a control signal of the control device 100 according to the control of the controller 250 and implement the control signal as a WIFI signal, a bluetooth signal, a radio frequency signal, etc.
The detector 230 is a component of the display device 200 for collecting signals of the external environment or interaction with the outside. The detector 230 may include an image collector 231, such as a camera, webcam, etc., that may be used to collect external environmental scenes to adaptively change the display parameters of the display device 200; and the function is used for collecting the attribute of the user or interacting gestures with the user so as to realize the interaction between the display equipment and the user. A light receiver 232 may also be included for collecting ambient light intensity, to adapt to changes in display parameters of the display device 200, etc.
In other exemplary embodiments, the detector 230 may further include a temperature sensor, such as by sensing ambient temperature, the display device 200 may adaptively adjust the display color temperature of the image. Illustratively, the display device 200 may be adjusted to display a colder color temperature shade of the image when the temperature is higher than ambient; when the temperature is low, the display device 200 may be adjusted to display a color temperature-warm tone of the image.
In other exemplary embodiments, the detector 230 may further include a sound collector, such as a microphone, that may be used to receive a user's sound, such as a voice signal of a control instruction of the user controlling the display device 200; alternatively, ambient sounds for identifying the type of ambient scene may be collected, and the implementation display device 200 may adapt to ambient noise.
The external device interface 240 is a component that provides the controller 210 to control data transmission between the display apparatus 200 and an external device. The external device interface 240 may be connected to an external device such as a set-top box, a game device, a notebook computer, etc., in a wired/wireless manner, and may receive data such as a video signal (e.g., a moving image), an audio signal (e.g., music), additional information (e.g., an EPG), etc., of the external device.
The external device interface 240 may include: any one or more of a High Definition Multimedia Interface (HDMI) terminal 241, a Composite Video Blanking Sync (CVBS) terminal 242, an analog or digital Component terminal 243, a Universal Serial Bus (USB) terminal 244, a Component terminal (not shown), a Red Green Blue (RGB) terminal (not shown), and the like.
The controller 250 controls the operation of the display device 200 and responds to the user's operations by running various software control programs (e.g., an operating system and various application programs) stored on the memory 260.
As shown in fig. 1C, the controller 250 includes a Random Access Memory (RAM) 251, a Read Only Memory (ROM) 252, a graphics processor 253, a CPU processor 254, a communication interface 255, and a communication bus 256. The RAM251, the ROM252, the graphics processor 253, and the CPU 254 are connected to each other via a communication bus 256.
A ROM252 for storing various system boot instructions. When the power of the display apparatus 200 starts to be started upon receiving the power-on signal, the CPU processor 254 runs a system start instruction in the ROM252, copies the operating system stored in the memory 260 into the RAM251 to start running the start operating system. When the operating system is started, the CPU processor 254 copies various applications in the memory 260 to the RAM251, and then starts running the various applications.
The graphic processor 253 generates screen images of various graphic objects such as icons, images, and operation menus. The graphic processor 253 may include an operator for performing an operation by receiving user input of various interactive instructions, thereby displaying various objects according to display attributes; and a renderer for generating various objects based on the operator, and displaying the result of rendering on the display 275.
CPU processor 254 is operative to execute operating system and application program instructions stored in memory 260. And executing processing of various application programs, data and contents according to the received user input instructions so as to finally display and play various audio and video contents.
In some exemplary embodiments, the CPU processor 254 may comprise a plurality of processors. The plurality of processors may include one main processor and a plurality or one sub-processor. A main processor for performing some initialization operations of the display device 200 in a display device preloading mode and/or an operation of displaying a picture in a normal mode. A plurality of or a sub-processor for performing an operation in a state of standby mode or the like of the display device.
Communication interface 255 may include a first interface through an nth interface. These interfaces may be network interfaces that are connected to external devices via a network.
The controller 250 may control the overall operation of the display apparatus 200. For example: in response to receiving a user input command for selecting a GUI object displayed on the display 275, the controller 250 may perform an operation related to the object selected by the user input command.
Wherein the object may be any one of selectable objects, such as a hyperlink or an icon. The operation related to the selected object, for example, an operation of displaying a link to a hyperlink page, a document, an image, or the like, or an operation of executing a program corresponding to an icon. The user input command for selecting the GUI object may be a command input through various input means (e.g., mouse, keyboard, touch pad, etc.) connected to the display apparatus 200 or a voice command corresponding to a user speaking voice.
The memory 260 is used to store various types of data, software programs, or applications that drive and control the operation of the display device 200. Memory 260 may include volatile and/or nonvolatile memory. And the term "memory" includes memory 260, RAM251 and ROM252 of controller 250, or a memory card in display device 200.
In some embodiments, the memory 260 is specifically configured to store an operating program that drives the controller 250 in the display device 200; various application programs built in the display device 200 and downloaded from an external device by a user are stored; data for configuring various GUIs provided by the display 275, various objects related to the GUIs, visual effect images of selectors for selecting GUI objects, and the like are stored.
In some embodiments, the memory 260 is specifically configured to store drivers and related data for the modem 210, the communicator 220, the detector 230, the external device interface 240, the video processor 270, the display 275, the audio processor 280, etc., external data (e.g., audio-visual data) received from the external device interface, or user data (e.g., key information, voice information, touch information, etc.) received from the user interface.
In some embodiments, memory 260 specifically stores software and/or programs for representing an Operating System (OS), which may include, for example: a kernel, middleware, an Application Programming Interface (API), and/or an application program. Illustratively, the kernel may control or manage system resources, as well as functions implemented by other programs (such as the middleware, APIs, or application programs); at the same time, the kernel may provide an interface to allow middleware, APIs, or applications to access the controller to implement control or management of system resources.
An architectural configuration block diagram of the operating system in the memory of the display device 200 is illustrated in fig. 1D. The operating system architecture is an application layer, a middleware layer and a kernel layer in sequence from top to bottom.
The application layer, the application programs built in the system and the non-system-level application programs belong to the application layer and are responsible for direct interaction with the user. The application layer may include a plurality of applications, such as NETFLIX applications, setup applications, media center applications, and the like. These applications may be implemented as Web applications that execute based on WebKit engines, and in particular may be developed and executed based on HTML, cascading Style Sheets (CSS), and JavaScript.
Here, HTML, which is called a hypertext markup language (HyperText Markup Language) in its entirety, is a standard markup language for creating web pages, which are described by markup tags for describing words, graphics, animations, sounds, tables, links, etc., and a browser reads an HTML document, interprets the contents of tags within the document, and displays them in the form of web pages.
CSS, collectively referred to as cascading style sheets (Cascading Style Sheets), is a computer language used to represent the style of HTML files and may be used to define style structures such as fonts, colors, positions, and the like. The CSS style can be directly stored in an HTML webpage or a separate style file, so that the control of the style in the webpage is realized.
JavaScript, a language applied to Web page programming, can be inserted into HTML pages and interpreted by a browser. The interaction logic of the Web application is realized through JavaScript. The JavaScript can be used for realizing communication with the kernel layer by encapsulating the JavaScript extension interface through the browser,
middleware layer, some standardized interfaces may be provided to support the operation of various environments and systems. For example, the middleware layer may be implemented as multimedia and hypermedia information coding expert group (MHEG) of middleware related to data broadcasting, as DLNA middleware of middleware related to communication with an external device, as middleware providing a browser environment in which applications within a display device are running, and the like.
A kernel layer providing core system services such as: file management, memory management, process management, network management, system security authority management and other services. The kernel layer may be implemented as a kernel based on various operating systems, such as a kernel based on the Linux operating system.
The kernel layer also provides communication between system software and hardware at the same time, providing device driver services for various hardware, such as: providing a display driver for a display, providing a camera driver for a camera, providing a key driver for a remote control, providing a WIFI driver for a WIFI module, providing an audio driver for an audio output interface, providing a Power Management (PM) module with a power management driver, and the like.
A user interface 265 receives various user interactions. Specifically, an input signal for a user is transmitted to the controller 250, or an output signal from the controller 250 is transmitted to the user. Illustratively, the remote control 100A may send input signals such as a power switch signal, a channel selection signal, a volume adjustment signal, etc., input by a user to the user interface 265, and then forwarded by the user interface 265 to the controller 250; alternatively, the remote controller 100A may receive an output signal such as audio, video, or data, which is processed by the controller 250 to be output from the user interface 265, and display the received output signal or output the received output signal in the form of audio or vibration.
In some embodiments, a user may input a user command through a Graphical User Interface (GUI) displayed on the display 275, and the user interface 265 receives the user input command through the GUI. In particular, the user interface 265 may receive user input commands for controlling the position of a selector in a GUI to select different objects or items.
Alternatively, the user may enter a user command by entering a particular sound or gesture, and the user interface 265 recognizes the sound or gesture through the sensor to receive the user input command.
The video processor 270 is configured to receive an external video signal, and perform video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image composition according to a standard codec protocol of an input signal, so as to obtain a video signal that is directly displayed or played on the display 275.
By way of example, video processor 270 includes a demultiplexing module, a video decoding module, an image compositing module, a frame rate conversion module, a display formatting module, and the like.
Wherein, the demultiplexing module is used for demultiplexing the input audio/video data stream, such as the input MPEG-2 stream (based on the compression standard of the digital storage media moving image and voice), and then the demultiplexing module demultiplexes the input audio/video data stream into video signals, audio signals and the like.
And the video decoding module is used for processing the demultiplexed video signal, including decoding, scaling and the like.
And an image synthesis module, such as an image synthesizer, for performing superposition mixing processing on the graphic generator and the video image after the scaling processing according to the GUI signal input by the user or generated by the graphic generator, so as to generate an image signal for display.
The frame rate conversion module is configured to convert a frame rate of an input video, for example, convert a frame rate of an input 60Hz video into a frame rate of 120Hz or 240Hz, and a common format is implemented in an inserting frame manner.
And a display formatting module for converting the signal output by the frame rate conversion module into a signal conforming to a display format such as a display, for example, format converting the signal output by the frame rate conversion module to output an RGB data signal.
And a display 275 for receiving the image signals from the video processor 270 and displaying video, images and menu manipulation interfaces. For example, the display may display video in a broadcast signal received from the modem 210, may display video input from the communicator 220 or the external device interface 240, and may display an image stored in the memory 260. And a display 275 for simultaneously displaying a user manipulation interface UI generated in the display device 200 and used to control the display device 200.
And, the display 275 may include a display screen assembly for presenting pictures and a drive assembly for driving the display of images. Alternatively, if the display 275 is a projection display, a projection device and a projection screen may be included.
The audio processor 280 is configured to receive an external audio signal, decompress and decode according to a standard codec of an input signal, and perform audio data processing such as noise reduction, digital-to-analog conversion, and amplification, so as to obtain an audio signal that can be played in the speaker 286.
Illustratively, the audio processor 280 may support various audio formats. Such as MPEG-2, MPEG-4, advanced Audio Coding (AAC), high efficiency AAC (HE-AAC), etc.
An audio output interface 285 for receiving audio signals derived from the output of audio processor 280. For example, the audio output interface may output audio in a broadcast signal received via the modem 210, may output audio input via the communicator 220 or the external device interface 240, and may output audio stored in the memory 260. The audio output interface 285 may include a speaker 286 or an external audio output terminal 287, such as a headphone output terminal, that outputs to a generating means of an external device.
In other exemplary embodiments, video processor 270 may include one or more chip components. Audio processor 280 may also include one or more chip components.
And, in other exemplary embodiments, video processor 270 and audio processor 280 may be separate chips or integrated with controller 250 in one or more chips.
The power supply 290 is used for providing power supply support for the display device 200 by power input by an external power supply under the control of the controller 250. The power supply 290 may be a built-in power supply circuit mounted inside the display device 200 or may be a power supply mounted outside the display device 200.
The space used by the OTA network upgrade package downloaded during the OTA network upgrade occupies the user data space together with various application data of the user. With the use of televisions, various applications installed by users can generate more and more, so that more and more user data files occupy user data space, and when the televisions execute the OTA network upgrade, if the available space of the user data space is insufficient, the OTA upgrade execution process may fail, even after the OTA upgrade, the system cannot be started or normally run, and the use of the televisions by users is seriously affected.
When a user purchases a display device in a mall, the user usually needs to ask a staff in the mall for information of the display device, such as a model, a size, an advantage function, a price, etc., to confirm whether the user's own needs are met, and then purchase the corresponding display device after confirmation. In order to facilitate introduction of the display device to the user, presentation videos, pictures, etc. are stored on the display device, thereby presenting device information to the user when the display device is sold in a mall. The display equipment is provided with a space for storing display videos and pictures, and the space is recorded as a built-in video partition. When the display device is displayed in a mall, display videos, pictures and the like stored in the built-in video partition are displayed through the display screen, and when a user buys the display device home, the display device enters a user mode, and the display device does not need to display device information to the user, so that the display videos, pictures and the like stored in the built-in video partition can be deleted, and the storage space of the built-in video partition is released.
Therefore, after the display device enters the user mode, the built-in video partition is expanded to the user data partition, so that the storage space of the user data partition is expanded, more space is provided for downloading the OTA network upgrade package, and more storage space is provided for other applications.
Fig. 2 is a flow chart of a partition capacity expansion method according to an embodiment of the application. As shown in fig. 2, the method of the embodiment of the present application includes:
and S201, deleting the files in the first partition when the duration of the display device in the user mode is longer than the preset duration.
Wherein the first partition is a non-user data partition in the display device.
In this embodiment, the user sets the display device to the user mode, and when the display device is connected in the user mode, the display device detects whether the current display device is connected in the user mode for the first time, for example, the display device may determine whether the time when the display device is connected in the user mode for the first time has been stored in the display device, record the time as the initial time, if not, the display device determines that the current display device is connected in the user mode for the first time, or the display device determines whether the display device can obtain the first file for storing the initial time, if not, the display device determines that the current display device is connected in the user mode for the first time.
When the display device determines that it is currently the first time that the display device is networked in user mode, the display device may optionally delete the data stored in the first partition directly. The first partition is a non-user data partition in the display device, for example, a built-in video partition in the display device for storing presentation videos and pictures.
Optionally, the display device is networked in the user mode for the first time after being set in the user mode, and cannot be set in the market mode after the display device is set, that is, when a user knows the display device in the market, the user can adjust the display device to the user mode to know information such as functions of the display device in the user mode, and then the display device can be adjusted to the market mode to display device information of the display device to the user. Thus, if the display device is first networked in user mode to delete the stored content of the first partition, then the device information cannot be presented when the display device returns to mall mode. Thus, the display device records an initial time when it detects that the current display device is first networked in the user mode, or generates a first file and stores the initial time in the first file.
When the display device is powered on again, the current time is obtained, the current time is compared with the initial time, if the time difference between the current time and the initial time is larger than the preset duration, the duration of the display device in the user mode is larger than the preset duration, the display device is used by a user for a period of time, and files stored in the first partition can be deleted. Wherein, all files stored in the first partition can be deleted, or part of files stored in the first partition can be deleted.
Optionally, an identifier for indicating that the display device is first connected in the user mode, that is, P0, is further provided in the display device, where when the display device is connected in the user mode, the value of P0 is a first value, which indicates that the display device is first connected in the user mode, and then the value of P0 is replaced with a second value; if the value of P0 is not the first value when the display device is connected in the user mode, it indicates that the display device is not connected in the user mode for the first time, for example, the partition expansion method shown in the embodiment of the present application may not be executed.
S202, expanding the capacity of the second partition according to the first partition after deleting the file.
Wherein the second partition is a user data partition in the display device.
In this embodiment, after the files in the first partition are deleted, the storage space occupied by the deleted files is expanded to the second partition, so that the storage space of the second partition is increased. The second partition is a partition used for storing user data and an OTA network upgrade package in the display device.
Optionally, after the second partition is expanded according to the first partition after the file is deleted, the display device may store the OTA network upgrade package into any free storage space in the expanded second partition, and if the display device performs OTA network upgrade to download the OTA network upgrade package, the display device directly stores the OTA network upgrade package into the free storage space in the expanded second partition.
Optionally, after the second partition is expanded according to the first partition after the file is deleted, the display device may store the OTA network upgrade package in a storage space corresponding to a storage space occupied by the file deleted in the first partition in the expanded second partition, that is, a storage space originally used as the first partition in the expanded second partition is set to store the OTA network upgrade package, so if the display device performs OTA network upgrade to download the OTA network upgrade package, the OTA network upgrade package is directly stored in the storage space originally used as the first partition in the expanded second partition.
In this embodiment, when the duration of the display device in the user mode is greater than a preset duration, deleting the file in the first partition; and expanding the capacity of a second partition according to the first partition after deleting the file, wherein the first partition is a non-user data partition in the display equipment, and the second partition is a user data partition in the display equipment. Therefore, the storage space of the second partition is increased, namely the storage space of the OTA network upgrade package is increased, the OTA of the system software can be upgraded normally, the failure of OTA network upgrade caused by insufficient space is avoided, the user experience is improved, the waste of the storage space in the first partition is avoided, and the storage space utilization rate of the display equipment is improved.
Fig. 3 is a flowchart of a partition capacity expansion method according to another embodiment of the present application. On the basis of the embodiment shown in fig. 2, as shown in fig. 3, the method of the embodiment shown in the application comprises the following steps:
s301, setting a partition capacity expansion instruction when the duration of the display device in the user mode is longer than a preset duration.
The partition capacity expansion indication is used for indicating that the capacity of the second partition is expanded when the display equipment is started next time.
In this embodiment, when the display device determines that the display device is turned on after first networking in the user mode, if the duration of the display device in the user mode is greater than the preset duration, the display device sets a partition capacity expansion indication, for example, the display device generates a partition capacity expansion indication identifier and marks the partition capacity expansion indication identifier as P1, where an initial value of P1 may be, for example, a first value, and when P1 is the first value, it is indicated that the capacity expansion is performed on the second partition when the display device is turned on next time.
And S302, deleting the files in the first partition according to the partition capacity expansion indication when the computer is started next time.
In this embodiment, when the display device is restarted after setting P1, during the startup stage, the display device acquires P1, and if the value of P1 is the first value, the file in the first partition is deleted.
Optionally, if the files in the first partition are deleted at one time, after all the files are deleted at this time, deleting P1, that is, deleting the partition expansion indication.
Optionally, if part of the files in the first partition are deleted each time, after the part of the files are deleted after the power-on is started for the next time, if the display device acquires that the value of the P1 is the first value, deleting part of the files in the rest of the files in the first partition again, and the like, until all the files in the first partition are deleted, deleting the P1, namely deleting the partition expansion indication.
Alternatively, if a portion of the files in the first partition is deleted each time, for example, each time a file occupying the same storage space is deleted, or each time a file is deleted, the storage hole occupied by the file may be different.
Alternatively, if a part of the files in the first partition is deleted each time, it may also be set which files are deleted each time.
And S303, expanding the capacity of the second partition according to the deleted first partition.
In this embodiment, after deleting the file in the first partition, the partition configuration table is modified, where information such as parameters of the display device is recorded in the partition configuration table. And then expanding the capacity of the second partition by the deleted first partition, wherein one possible implementation manner of the capacity expansion is as follows: and expanding the deleted first partition to the second partition by adopting a partition configuration tool.
Specifically, a partition tool is used to compress a first partition, such as a built-in video partition, and expand the space from balance to a second partition, such as a user data partition. The specific operation is as follows:
(1) Checking and acquiring built-in video partition size information by using an e2fsck tool;
(2) Compressing the built-in video partition by using an lvm tool and a restore 2fs tool and expanding the user data partition: wherein the resize2fs tool sets the partition size; the lvreduce of lvm can realize the compression of the partition and the lvxtend can realize the partition expansion; for example:
firstly, setting the size of a built-in video partition by a resize2fs tool, and setting the size of the built-in video partition to be 1k;
Then, the built-in video partition is set through the lvreduce command, so that the built-in video partition is reduced to only 1k; at this time, looking at the partition information, it is found that the built-in video partition has become 1k;
then, setting the size of the user data partition through a resize2fs tool, and setting the size of the user data partition to be increased;
setting a user data partition through an lvextend command, and expanding the user data partition; at this time, the user data partition has been enlarged, viewing the partition information.
And after the deleted first partition expands the second partition, reloading the modified partition configuration table, and starting the system. After the display device is started, the storage space obtained through capacity expansion in the second partition can be used for storing user data so as to store the OTA network upgrade package.
In this embodiment, when the duration of the display device in the user mode is greater than the preset duration, a partition expansion instruction is set, where the partition expansion instruction is used to instruct expansion of the second partition when the display device is turned on next time. And when the computer is started next time, deleting the files in the first partition according to the partition capacity expansion instruction, and then expanding the capacity of the second partition according to the deleted first partition. The storage space of the second partition is increased, namely the storage space of the OTA network upgrade package is increased, so that the OTA of the system software can be upgraded normally, the failure of OTA network upgrade caused by insufficient space is avoided, and the user experience is improved.
Based on the inventive concept of the embodiments of the present application, the present application provides a display apparatus, wherein the display apparatus includes:
a display for displaying a graphical user interface;
a controller for performing:
when the duration of the display equipment in the user mode is longer than the preset duration, deleting the file in the first partition, and expanding the second partition according to the first partition after deleting the file, wherein the first partition is a non-user data partition in the display equipment, and the second partition is a user data partition in the display equipment.
Optionally, the controller specifically performs:
before deleting a file in a first partition, setting a partition capacity expansion instruction, wherein the partition capacity expansion instruction is used for indicating that the second partition is expanded when the display equipment is started next time; and deleting the file in the first partition according to the partition capacity expansion instruction when the computer is started next time, and expanding the capacity of the second partition according to the deleted first partition.
Optionally, the controller is further configured to perform:
modifying a partition configuration table according to the deleted first partition and the expanded second partition, and loading the modified partition configuration table, wherein the partition configuration table comprises configuration information of each partition in the display device.
Optionally, the controller specifically performs:
judging whether the display equipment is in a user mode currently, if so, acquiring initial time and current time of first networking when the display equipment is in the user mode, calculating to obtain time difference between the current time and the initial time, and determining that the duration of the display equipment in the user mode is greater than the preset duration when the time difference is greater than the preset duration.
Optionally, the controller is further configured to perform:
and storing the received OTA network upgrade packet in an idle storage space in the expanded second partition.
Optionally, the controller is further configured to perform:
and storing the OTA network upgrade package in a storage space corresponding to the storage space occupied by the deleted file in the first partition in the expanded second partition.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.