A background service management method and display device

Through the unified service model, a separate service management program is used to monitor and process the background service processes of multiple applications, which solves the problem of excessive memory usage by multiple application background service processes in the Android system, and improves system performance and response speed.

CN113971049BActive Publication Date: 2024-10-22HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010718613.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-23
Publication Date
2024-10-22
Estimated Expiration
2040-07-23

AI Technical Summary

Technical Problem

The background service processes of multiple applications in the Android system occupy too much system memory resources, causing problems such as lag in control of low-memory devices, delayed key response, or system crashes.

Method used

Adopting a unified service model, a separate service management program monitors the background service processes of multiple applications, loads the business logic of each application, and responds to event information to process the corresponding business, reducing the number of background service processes for each application and avoiding Cumulatively occupy system memory.

Benefits of technology

Effectively manage the background service processes of multiple applications, reduce system memory usage, ensure operating system processing performance, and avoid memory resource accumulation problems caused by adding applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113971049B_ABST
    Figure CN113971049B_ABST
Patent Text Reader

Abstract

The present invention discloses a background service management method and a display device. In response to determining to enable a unified service mode, a service management program is started; the service management program is used to monitor multiple event detection modules, each event detection module corresponds to an application; the unified service mode refers to using a separate service management program to execute the background service process of multiple associated applications; the service management program is configured to: load the business logic of each application, and monitor each event detection module; in response to monitoring the event information sent by the target event detection module, determine the target application corresponding to the target event detection module; determine the triggered event according to the event information and the business logic of the target application; generate indication information according to the triggered event, and the indication information is used to enable the target application to process the business corresponding to the triggered event. The present application realizes the unified management of multiple application service processes and reduces the consumption of system memory resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of display devices, and in particular to a background service management method and a display device. Background Art

[0002] Each application in the display device of the Android system has a corresponding background service process. The background service process resides in the system background and is used to monitor the events of each application to the program, so as to prompt the application to start the processing logic corresponding to the event when the event is triggered, and execute the corresponding business, thereby ensuring the normal operation of the application. Each background service process will apply for a certain amount of memory. Taking the Android8 system as an example, the smallest background service process will occupy 10M (megabytes) of memory. There may be many applications installed in the display device. For example, if there are 20 applications installed, the background service processes corresponding to the 20 applications will occupy at least 200M of memory. For low-memory (less than 1.5G) display devices, the system memory resource occupancy ratio is very high, which is easy to cause control jams, delayed or unresponsive key responses, or even system crashes. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a background service management method and a display device.

[0004] The display device provided in the first aspect includes:

[0005] The controller is used to execute: in response to determining to enable the unified service mode, start a service management program; the service management program is used to monitor multiple event detection modules at the same time, each event detection module corresponds to an application; the unified service mode refers to using a separate service management program to execute the background service process of multiple associated applications;

[0006] Among them, the service management program is configured to: load the business logic of each application and monitor each event detection module; determine the target application corresponding to the target event detection module in response to the event information sent by the target event detection module; determine the triggered event based on the event information and the business logic of the target application; generate indication information based on the triggered event, and the indication information is used to enable the target application to process the business corresponding to the triggered event.

[0007] The background service management method provided in the second aspect is used for displaying a device, and includes:

[0008] In response to determining to enable the unified service mode, a service management program is started; the service management program is used to monitor multiple event detection modules, each event detection module corresponds to an application; the unified service mode refers to using a separate service management program to execute background service processes of multiple associated applications;

[0009] The service management program is configured to: load the business logic of each application and monitor each event detection module; determine the target application corresponding to the target event detection module in response to the event information sent by the target event detection module; determine the triggered event based on the event information and the business logic of the target application; generate indication information based on the triggered event, and the indication information is used to enable the target application to process the business corresponding to the triggered event.

[0010] In the present application, the service management program can monitor multiple event detection modules at the same time, and each event detection module corresponds to an application. In this way, the service management program can be associated with multiple applications, and is used to uniformly monitor the events of multiple applications from each event detection module. For example, when the event detection module 1 sends an event message, after the service management program receives the event message, it determines that the business corresponding to the event message is triggered according to the business logic of the application 1 corresponding to the event detection module 1, that is, the triggered event is determined, so that an indication message can be generated and sent to the application 1, and the target application can process the business corresponding to the triggered event in response to the indication message. In this way, each application does not need to configure a corresponding background service process, but a separate service management program is used to monitor events and control the business processing of multiple applications, which facilitates the unified management of multiple application service processes. Even if more applications are added later, they will not accumulate and occupy system memory resources, thereby ensuring the processing performance of the operating system. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0012] Figure 1 Schematic diagram of an operation scenario between a display device 200 and a control apparatus 100 is exemplarily shown in FIG.

[0013] Figure 2 The example shown in Figure 1 The hardware configuration block diagram of the display device 200 is shown in FIG.

[0014] Figure 3The example shown in Figure 1 The hardware configuration block diagram of the control device 100;

[0015] Figure 4 The example shown in Figure 1 A schematic diagram of software configuration in the display device 200;

[0016] Figure 5 exemplarily shows a schematic diagram of an icon control interface display of an application in a display device 200;

[0017] Figure 6 The schematic diagram of the architecture of the backend service management is shown as an example;

[0018] Figure 7 A flowchart of a background service management method is exemplarily shown in FIG.

[0019] Figure 8 exemplarily shows a process flow chart when installing or updating an application;

[0020] Fig. 9 exemplarily shows a process flow chart of service management program installation or update. DETAILED DESCRIPTION

[0021] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0022] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.

[0023] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.

[0024] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise indicated. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to orders other than those given in the diagrams or descriptions of the embodiments of this application.

[0025] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0026] The term "module" as used in this application 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 functions associated with that element.

[0027] The term "remote control" as used in this application refers to a component of an electronic device (such as the display device disclosed in this application), which can usually wirelessly control the electronic device within a short range. It is generally connected to the electronic device using infrared and / or radio frequency (RF) signals and / or Bluetooth, and may also include functional modules such as WiFi, wireless USB, Bluetooth, motion sensors, etc. For example: a handheld touch remote control replaces most of the physical built-in hard keys in a general remote control device with a user interface in a touch screen.

[0028] The term "gesture" used in this application refers to a user's behavior of expressing an intended idea, action, purpose, or result through a change in hand shape or hand movement.

[0029] Figure 1 FIG. 2 is a schematic diagram showing an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through the mobile terminal 300 and the control apparatus 100 .

[0030] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, etc., to control the display device 200 wirelessly or in a wired manner. The user may input user commands through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. For example, the user may input corresponding control commands through the volume plus and minus keys, channel control keys, up / down / left / right movement keys, voice input keys, menu keys, power on / off keys, etc. on the remote controller to realize the function of controlling the display device 200.

[0031] In some embodiments, a mobile terminal, a tablet computer, a computer, a laptop computer, and other smart devices may also be used to control the display device 200. For example, an application running on the smart device is used to control the display device 200. The application may be configured to provide the user with various controls in an intuitive user interface (UI) on a screen associated with the smart device.

[0032] In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and realize connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. For example, it is possible to establish a control instruction protocol with the mobile terminal 300 and synchronize the remote control keyboard to the mobile terminal 300, and realize the function of controlling the display device 200 by controlling the user interface on the mobile terminal 300. It is also possible to transmit the audio and video content displayed on the mobile terminal 300 to the display device 200 to realize the synchronous display function.

[0033] like Figure 1 It is also shown that the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. For example, the display device 200 receives software program updates or accesses a remotely stored digital media library by sending and receiving information and interacting with an electronic program guide (EPG). The server 400 may be a cluster or multiple clusters, and may include one or more types of servers. Other network service content such as video on demand and advertising services is provided through the server 400.

[0034] The display device 200 may be a liquid crystal display, an OLED display, or a projection display device. The specific display device type, size, and resolution are not limited. It is understood by those skilled in the art that the display device 200 may be modified in performance and configuration as required.

[0035] In addition to providing the broadcast receiving television function, the display device 200 may also provide an intelligent network television function with computer support functions, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.

[0036] Figure 2 Schematically shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment.

[0037] In some embodiments, the display device 200 includes at least one of a controller 250, a tuner and demodulator 210, a communicator 220, a detector 230, an input / output interface 255, a display 275, an audio output interface 285, a memory 260, a power supply 290, a user interface 265, and an external device interface 240.

[0038] In some embodiments, the display 275 is a component for receiving the image signal outputted from the first processor and displaying video content and images as well as a menu control interface.

[0039] In some embodiments, the display 275 includes a display component for presenting images and a driving component for driving image display.

[0040] In some embodiments, the displayed video content may be from broadcast television content, or may be various broadcast signals received through wired or wireless communication protocols, or may be from various image content sent from a network server via a network communication protocol.

[0041] In some embodiments, the display 275 is used to present a user manipulation UI interface generated in the display device 200 and used to control the display device 200 .

[0042] In some embodiments, depending on the type of display 275, a driving component for driving the display is also included.

[0043] In some embodiments, the display 275 is a projection display, and may also include a projection device and a projection screen.

[0044] In some embodiments, 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 communicator may include at least one of a Wifi chip, a Bluetooth communication protocol chip, a wired Ethernet communication protocol chip, other network communication protocol chips or a near field communication protocol chip, and an infrared receiver.

[0045] In some embodiments, the display device 200 may establish control signal and data signal transmission and reception with the external control apparatus 100 or the content providing apparatus through the communicator 220 .

[0046] In some embodiments, the user interface 265 may be used to receive infrared control signals from the control device 100 (eg, an infrared remote controller, etc.).

[0047] In some embodiments, the detector 230 is a signal used by the display device 200 to collect external environment or interact with the outside.

[0048] In some embodiments, the detector 230 includes a light receiver, a sensor for collecting ambient light intensity, and can adaptively display parameter changes by collecting ambient light.

[0049] In some embodiments, the detector 230 may also include an image collector, such as a camera, a webcam, etc., which can be used to collect external environment scenes, as well as to collect user attributes or gestures for interacting with the user. It can adaptively change display parameters and recognize user gestures to achieve the function of interacting with the user.

[0050] In some embodiments, the detector 230 may also include a temperature sensor or the like, such as by sensing the ambient temperature.

[0051] In some embodiments, the display device 200 can adaptively adjust the display color temperature of the image. For example, when the temperature is high, the display device 200 can be adjusted to display a cooler color temperature of the image, or when the temperature is low, the display device 200 can be adjusted to display a warmer color temperature of the image.

[0052] In some embodiments, the detector 230 may also be a sound collector, such as a microphone, which can be used to receive the user's voice, for example, including a voice signal of a control instruction of the user to control the display device 200, or collect environmental sounds to identify the type of environmental scene, so that the display device 200 can adaptively adapt to the environmental noise.

[0053] In some embodiments, Figure 2 As shown, the input / output interface 255 is configured to perform data transmission between the controller 250 and other external devices or other controllers 250, such as receiving video signal data and audio signal data, or command instruction data from external devices.

[0054] In some embodiments, the external device interface 240 may include, but is not limited to, any one or more interfaces such as a high-definition multimedia interface HDMI interface, an analog or digital high-definition component input interface, a composite video input interface, a USB input interface, an RGB port, etc. It is also possible that the above multiple interfaces form a composite input / output interface.

[0055] In some embodiments, Figure 2As shown, the tuner-demodulator 210 is configured to receive broadcast television signals through wired or wireless reception, and can perform modulation and demodulation processing such as amplification, mixing and resonance, and demodulate audio and video signals from multiple wireless or wired broadcast television signals. The audio and video signals may include television audio and video signals carried in the television channel frequency selected by the user, as well as EPG data signals.

[0056] In some embodiments, the frequency demodulated by the tuner-demodulator 210 is controlled by the controller 250, which can send a control signal based on the user's selection to make the modem respond to the TV signal frequency selected by the user and modulate and demodulate the TV signal carried by the frequency.

[0057] In some embodiments, the broadcast television signal can be classified into terrestrial broadcast signals, cable broadcast signals, satellite broadcast signals, or Internet broadcast signals according to different broadcasting formats of the television signal. Or it can be classified into digital modulation signals, analog modulation signals, etc. according to different modulation types. Or it can be classified into digital signals, analog signals, etc. according to different signal types.

[0058] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box. In this way, the set-top box outputs the TV audio and video signals modulated and demodulated from the received broadcast TV signals to the main device, and the main device receives the audio and video signals through the first input / output interface.

[0059] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 can control the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 275, the controller 250 can perform operations related to the object selected by the user command.

[0060] In some embodiments, the object may be any one of the selectable objects, such as a hyperlink or an icon. Operations related to the selected object may include, for example, displaying a page, document, image, etc. connected to the hyperlink, or executing a program corresponding to the icon. User commands for selecting UI objects may be commands inputted through various input devices (e.g., a mouse, keyboard, touchpad, etc.) connected to the display device 200 or voice commands corresponding to voices spoken by the user.

[0061] like Figure 2As shown, the controller 250 includes at least one of a random access memory 251 (Random Access Memory, RAM), a read-only memory 252 (Read-Only Memory, ROM), a video processor 270, an audio processor 280, other processors 253 (for example: a graphics processor (Graphics Processing Unit, GPU), a central processing unit 254 (Central Processing Unit, CPU), a communication interface (Communication Interface), and a communication bus 256 (Bus). Among them, the communication bus connects various components.

[0062] In some embodiments, RAM 251 is used to store temporary data of an operating system or other running programs. In some embodiments, ROM 252 is used to store various system startup instructions.

[0063] In some embodiments, ROM 252 is used to store a basic input / output system, called Basic Input Output System (BIOS), which is used to complete the power-on self-test of the system, the initialization of each functional module in the system, the basic input / output driver of the system, and the booting operating system.

[0064] In some embodiments, when a power-on signal is received, the display device 200 starts to power on, and the CPU runs the system startup instruction in the ROM 252, and copies the temporary data of the operating system stored in the memory to the RAM 251, so as to start or run the operating system. After the operating system is started, the CPU copies the temporary data of various application programs in the memory to the RAM 251, so as to start or run various application programs.

[0065] In some embodiments, the CPU processor 254 is used to execute operating system and application instructions stored in the memory, and to execute various applications, data and content according to various interactive instructions received from external input, so as to finally display and play various audio and video contents.

[0066] In some exemplary embodiments, the CPU processor 254 may include multiple processors. The multiple processors may include a main processor and one or more sub-processors. The main processor is used to perform some operations of the display device 200 in the pre-power-on mode and / or the operation of displaying the picture in the normal mode. The one or more sub-processors are used for an operation in the standby mode and the like.

[0067] In some embodiments, the graphics processor 253 is used to generate various graphic objects, such as icons, operation menus, and user input command display graphics, etc. It includes an operator that performs operations by receiving various interactive instructions input by the user and displays various objects according to display attributes. It also includes a renderer that renders various objects obtained based on the operator, and the rendered objects are used to be displayed on the display.

[0068] In some embodiments, the video processor 270 is configured to receive an external video signal and perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, image synthesis, etc. according to the standard codec protocol of the input signal, and obtain a signal that can be directly displayed or played on the display device 200.

[0069] In some embodiments, the video processor 270 includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, etc.

[0070] Among them, the demultiplexing module is used to demultiplex the input audio and video data stream. For example, if MPEG-2 is input, the demultiplexing module demultiplexes it into video signals and audio signals.

[0071] The video decoding module is used to process the demultiplexed video signal, including decoding and scaling.

[0072] The image synthesis module, such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator according to the user input or itself with the scaled video image to generate an image signal for display.

[0073] The frame rate conversion module is used to convert the input video frame rate, such as converting the 60Hz frame rate to 120Hz frame rate or 240Hz frame rate. The usual format is implemented by interpolation.

[0074] The display formatting module is used to receive the frame rate converted video output signal and change the signal to conform to the display format signal, such as outputting RGB data signal.

[0075] In some embodiments, the graphics processor 253 can be integrated with the video processor or can be separately configured. When integrated, it can perform processing of graphic signals output to the display. When separately configured, it can perform different functions respectively, such as a GPU+FRC (Frame Rate Conversion) architecture.

[0076] In some embodiments, the audio processor 280 is used to receive an external audio signal, and perform decompression and decoding, as well as noise reduction, digital-to-analog conversion, and amplification processing according to the standard codec protocol of the input signal to obtain a sound signal that can be played in a speaker.

[0077] In some embodiments, the video processor 270 may include one or more chips. The audio processor may also include one or more chips.

[0078] In some embodiments, the video processor 270 and the audio processor 280 may be separate chips, or may be integrated with the controller into one or more chips.

[0079] In some embodiments, the audio output receives the sound signal output by the audio processor 280 under the control of the controller 250, such as the speaker 286, and in addition to the speaker carried by the display device 200 itself, can be output to the external audio output terminal of the generating device of the external device, such as an external audio interface or a headphone interface, etc., and can also include a short-range communication module in the communication interface, for example, a Bluetooth module for Bluetooth speaker sound output.

[0080] The power supply 290, under the control of the controller 250, uses the power input from the external power supply to provide power supply support for the display device 200. The power supply 290 may include a built-in power supply circuit installed inside the display device 200, or may be an external power supply installed on the display device 200 to provide a power interface for an external power supply in the display device 200.

[0081] The user interface 265 is used to receive a user input signal, and then send the received user input signal to the controller 250. The user input signal may be a remote control signal received by an infrared receiver, and may receive various user control signals through a network communication module.

[0082] In some embodiments, the user inputs a user command through the control device 100 or the mobile terminal 300 , the user input interface is based on the user input, and the display device 200 responds to the user input through the controller 250 .

[0083] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 275, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.

[0084] In some embodiments, the "user interface" is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, control, etc. displayed on the display of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0085] The memory 260 includes storing various software modules for driving the display device 200. For example, the various software modules stored in the first memory include at least one of a basic module, a detection module, a communication module, a display control module, a browser module, and various service modules.

[0086] The basic module is a bottom-level software module used for signal communication between various hardware in the display device 200 and sending processing and control signals to the upper-level modules. The detection module is a management module used to collect various information from various sensors or user input interfaces, and perform digital-to-analog conversion and analysis management.

[0087] For example, the speech recognition module includes a speech analysis module and a speech instruction database module. The display control module is a module for controlling the display to display image content, and can be used to play multimedia image content and UI interface information. The communication module is a module for controlling and communicating data with external devices. The browser module is a module for executing data communication between browsing servers. The service module is a module for providing various services and various applications. At the same time, the memory 260 is also used to store and receive external data and user data, images of various items in various user interfaces, and visual effects of focus objects.

[0088] Figure 3 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 3 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface, a memory, and a power supply.

[0089] The control device 100 is configured to control the display device 200, and can receive the user's input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200. For example, the user operates the channel increase and decrease keys on the control device 100, and the display device 200 responds to the channel increase and decrease operations.

[0090] In some embodiments, the control device 100 may be a smart device, for example, the control device 100 may be installed with various applications for controlling the display device 200 according to user needs.

[0091] In some embodiments, Figure 1 As shown, the mobile terminal 300 or other intelligent electronic device can play a similar function to the control device 100 after installing the application for controlling the display device 200. For example, the user can install the application to realize the functions of the physical buttons of the control device 100 through various function keys or virtual buttons of the graphical user interface provided on the mobile terminal 300 or other intelligent electronic device.

[0092] The controller 110 includes a processor 112, a RAM 113, a ROM 114, a communication interface 130, and a communication bus. The controller is used to control the operation and operation of the control device 100, as well as the communication and cooperation between the internal components and the external and internal data processing functions.

[0093] The communication interface 130, under the control of the controller 110, realizes the communication of control signals and data signals with the display device 200. For example, the received user input signal is sent to the display device 200. The communication interface 130 may include at least one of other near field communication modules such as a WiFi chip 131, a Bluetooth module 132, and an NFC module 133.

[0094] The user input / output interface 140 includes at least one of other input interfaces such as a microphone 141, a touch panel 142, a sensor 143, and a button 144. For example, the user can input user commands through voice, touch, gesture, pressing, and other actions. The input interface converts the received analog signal into a digital signal, and the digital signal into a corresponding command signal, and sends it to the display device 200.

[0095] The output interface includes an interface for sending received user commands to the display device 200. In some embodiments, it can be an infrared interface or a radio frequency interface. For example, in the case of an infrared signal interface, the user input command needs to be converted into an infrared control signal according to an infrared control protocol, and then sent to the display device 200 via an infrared sending module. For another example, in the case of a radio frequency signal interface, the user input command needs to be converted into a digital signal, and then modulated according to a radio frequency control signal modulation protocol, and then sent to the display device 200 by a radio frequency sending terminal.

[0096] In some embodiments, the control device 100 includes at least one of a communication interface 130 and an input / output interface 140. The control device 100 is configured with a communication interface 130, such as a WiFi, Bluetooth, NFC or other module, which can encode the user input command through the WiFi protocol, Bluetooth protocol, or NFC protocol and send it to the display device 200.

[0097] The memory 190 is used to store various operating programs, data and applications for driving and controlling the control device 100 under the control of the controller. The memory 190 can store various control signal instructions input by the user.

[0098] The power supply 180 is used to provide operating power support for each component of the control device 100 under the control of the controller, and can be a battery and related control circuits.

[0099] In some embodiments, the system may include a kernel, a command parser (shell), a file system, and an application. The kernel, shell, and file system together form the basic operating system structure, which allows users to manage files, run programs, and use the system. After power-on, the kernel starts, activates the kernel space, abstracts hardware, initializes hardware parameters, etc., runs and maintains virtual memory, schedulers, signals, and inter-process communication (IPC). After the kernel starts, the shell and user applications are loaded. After startup, the application is compiled into machine code to form a process.

[0100] See also Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.

[0101] In some embodiments, at least one application is running in the application layer, and these applications may be window programs, system settings programs, clock programs, camera applications, etc. provided by the operating system; or they may be applications developed by third-party developers, such as hi-view programs, karaoke programs, magic mirror programs, etc. In specific implementation, the application packages in the application layer are not limited to the above examples, and may actually include other application packages, which are not limited in the embodiments of the present application.

[0102] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.

[0103] like Figure 4 As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, and view systems, etc., wherein the manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to application packages currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.

[0104] In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit of the application (including switching the user interface currently displayed in the display window to the system desktop), opening, and backing (including switching the user interface currently displayed in the display window to the parent user interface of the currently displayed user interface), etc.

[0105] In some embodiments, the window manager is used to manage all window programs, such as obtaining the display size, determining whether there is a status bar, locking the screen, capturing the screen, controlling display window changes (for example, shrinking the display window, shaking the display, distorting the display, etc.), etc.

[0106] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.

[0107] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, touch sensor, pressure sensor, etc.), etc.

[0108] In some embodiments, the core layer further includes a power driver module for performing power management.

[0109] In some embodiments, Figure 4 The software programs and / or modules corresponding to the software architecture in Figure 2 or Figure 3 in the first memory or the second memory shown.

[0110] In some embodiments, taking the magic mirror application (photographing application) as an example, when the remote control receiving device receives the input operation of the remote control, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the input operation into a raw input event (including the value of the input operation, the timestamp of the input operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer, identifies the control corresponding to the input event according to the current position of the focus, and the input operation is a confirmation operation, and the control corresponding to the confirmation operation is the control of the magic mirror application icon. The magic mirror application calls the interface of the application framework layer to start the magic mirror application, and then starts the camera driver by calling the kernel layer to realize the capture of static images or videos through the camera.

[0111] In some embodiments, for a display device with a touch function, taking a split-screen operation as an example, the display device receives an input operation (such as a split-screen operation) performed by a user on the display, and the kernel layer can generate a corresponding input event according to the input operation, and report the event to the application framework layer. The activity manager of the application framework layer sets the window mode (such as a multi-window mode) and the window position and size corresponding to the input operation. The window management of the application framework layer draws the window according to the settings of the activity manager, and then sends the drawn window data to the display driver of the kernel layer, and the display driver displays the corresponding application interface in different display areas of the display.

[0112] In some embodiments, Figure 5 As shown in , the application layer includes at least one application that can display a corresponding icon control in the display, such as: a live TV application icon control, a video on demand (VOD) application icon control, a media center application icon control, an application center icon control, a game application icon control, etc.

[0113] In some embodiments, the live TV application can provide live TV through different signal sources. For example, the live TV application can use input from cable TV, wireless broadcast, satellite service, or other types of live TV services to provide TV signals. And, the live TV application can display video of the live TV signal on the display device 200.

[0114] In some embodiments, the video on demand application can provide videos from different storage sources. Unlike the live TV application, the video on demand provides video display from certain storage sources. For example, the video on demand can come from the server side of the cloud storage, from the local hard disk storage containing the stored video programs.

[0115] In some embodiments, the media center application can provide an application for playing various multimedia contents. For example, the media center can be a service provided by a user to access various images or audios through the media center application, which is different from live TV or video on demand.

[0116] In some embodiments, the application center can provide and store various applications. The application can be a game, an application, or some other application related to a computer system or other device but can be run on a smart TV. The application center can obtain these applications from different sources, store them in a local storage, and then run them on the display device 200.

[0117] The above embodiment shows a display device. In actual applications, the display device includes but is not limited to smart phones, tablet computers, laptop computers, televisions and other devices. Applications related to the required business / functions are installed in the display device, and a service management program is added. The service management program is embodied in the software level as a service architecture / specification for unified background service process management. The controller 250 can control the start, execution or stop of the service management program. It can also coordinate the installation or update of the control application and the service management program. In this application, the background service management method is mainly started by the controller 250 and executed by the service management program.

[0118] like Figure 6 The background service management architecture shown is for the convenience of illustration. Figure 6 The service management program is executed by a virtual service management module 500, which is not represented by the hardware structure of the service management program. The service management module 500 is connected to multiple event detection modules 501. Figure 6There are N event detection modules, N is an integer greater than 0, and the event detection module 501 is installed according to the application adaptation. When the application is newly installed, the corresponding event detection module can be added to connect to the service management module 500, and multiple event detection modules 501 work in parallel. The service management module 500 can passively receive the event information sent by each event detection module, or it can use a regular query method to inquire the event detection module whether there is an event every certain period.

[0119] In some embodiments, Figure 7 As shown, the controller 250 is configured to execute: determine whether to enable the unified service mode; in response to determining that the unified service mode is enabled, start the service management program; in response to determining that the unified service mode is not enabled, start the background service process corresponding to each application.

[0120] The unified service mode refers to the use of a separate service management program to execute the background service processes of multiple associated applications. The service management program and the background service processes of each application can be installed simultaneously in the system of the display device. When the service management program is started, the background service processes of each application do not run (i.e., they are not maintained in the background), but the service management program stays in the background to listen to events and control the business processing of each application; when the unified service conditions are not met, the service management program does not run in the background, but starts the background service processes of each application to perform one-to-one background service management.

[0121] The service manager is started only when the system enables the unified service mode, that is, when the system currently supports the service manager to manage the background service processes of multiple applications. Otherwise, the background service processes of each application start the monitoring and prompt processing business. Specifically, the controller 250 is configured to determine whether to enable the unified service mode in the following manner:

[0122] After the display device is turned on, determine whether the service management program supports the unified service mode, and determine whether the application associated with the service management program supports the unified service mode; if the service management program supports the unified service mode, and the application associated with the service management program supports the unified service mode, determine that the unified service mode is enabled; if the service management program does not support the unified service mode, and / or the application associated with the service management program does not support the unified service mode, determine that the unified service mode is not enabled.

[0123] After the display device installs the service manager, for example, in some application scenarios, it may be restricted or inappropriate to enable the unified service mode, resulting in the service manager being unable to support the unified background service management of multiple applications. Therefore, it is necessary to determine whether the service manager supports the unified service mode; and some applications installed in the Android system may not support the unified service mode. For example, the application has been updated and the business logic has changed, but the service manager has not synchronized the updated business logic, resulting in the service manager being unable to effectively prompt the application to process the business. In this case, the application is not suitable for using the service manager to perform background service management. Therefore, it is also necessary to determine whether the application associated with the service manager supports the unified service mode. Only when both the service manager and the application support the unified service mode can the unified service mode be enabled, and the controller starts the service manager to achieve unified management of the precise background service processes of multiple applications. If at least one of the service manager and the application does not support the unified service mode, it is determined not to enable the service manager, but to start the background service process corresponding to each application.

[0124] Since the service manager is associated with multiple applications, in the aforementioned embodiment, as long as there is at least one application that does not support the unified service mode, the service manager will not be started, but the background service processes corresponding to all applications will be started, that is, the service manager and the background service processes of each application will not be started at the same time. In some embodiments, for example, when the number of applications that do not support the unified service mode is small, the background service processes of these applications can be started for independent services, and other applications that support the unified service mode can be uniformly served by the service manager; when the service manager monitors the relevant events of the application that does not support the unified service mode, it does not process its event information, nor does it send indication information to the application, or it can close the event detection module corresponding to the application that does not support the unified service mode.

[0125] After the service manager is started, Figure 7 As shown, the service management program is configured to: load the business logic of each application and monitor each event detection module; in response to monitoring the event information sent by the target event detection module, determine the target application corresponding to the target event detection module; determine the triggered event according to the event information and the business logic of the target application; generate indication information according to the triggered event, and the indication information is used to enable the target application to process the business corresponding to the triggered event. When the target application has processed the business indicated by the service management program, it can exit by itself, and the service management program continues to monitor events.

[0126] The service management program has pre-stored the business logic of each application program, so after startup, the business logic of each application program is loaded for standby. Figure 6 The service management module 500 can also be subdivided into an event monitoring module 502 and a service module 503. The event monitoring module 502 is connected to multiple event detection modules 501. The event monitoring module 502 is equivalent to an interface for receiving event information. After the service management program is started, when event information is detected, the event monitoring module 502 can send the event information to the service module 503. The service module 503 stores the business logic of multiple associated applications. Each application has a mapping relationship with an event detection module. Every time an event information is detected, the target application corresponding to the target event detection module of the event information source can be determined through this mapping relationship. For example, an application identifier can be associated with each event detection module 501. The service module 503 determines which event is triggered based on the event information and the business logic corresponding to the target application. For example, if a user clicks on control A on the call interface of the video call application, the event detection module detects the user's click on control A and sends event information to the event monitoring module 502. The event information is a click on control A. The service module 503 determines that clicking on control A triggers the user to hang up the video call based on the business logic of the video call application, and generates corresponding indication information, and sends the indication information to the video call application. The video call application receives and responds to the indication information, and the service executed is to destroy the current call interface to hang up the current video call. It should be noted that Figure 6 The above is only a schematic module architecture of the service management program and does not represent the actual hardware structure.

[0127] In some embodiments, Figure 8 The following diagram shows the process flow of the controller when an application is installed or updated, including:

[0128] Step S101, determine whether the first application has the permission to join the service management program. The first application mentioned here refers to any application that needs to be newly installed or updated, not specifically the serial number of the application, and the first application is not limited. When the first application has the permission to join the service management program, step S102 is executed; otherwise, if the first application does not have the permission to join the service management program, step S106 is executed.

[0129] Step S102, determine whether to enable the unified service mode. If it is determined to enable the unified service mode, execute step S103, otherwise execute step S106.

[0130] Step S103, obtaining the communication authority of the service management program, the communication authority is used to allow the application installation process of the controller to write data to the service management program; the data includes the communication rules between the first application and the service management program. The purpose of obtaining the communication authority is to allow the application installation process of the controller to write data to the service management program, such as communication rules, etc. The communication rules specify how the service management program sends instruction information to the application program, etc. The data described here may also include other data required for the service management program to control the business processing of the application program, which can be set according to the actual application. If there is no specific communication authority, the default authority is selected.

[0131] Step S104, storing the business logic of the first application in a preset path. The preset path can be a local directory of the first application, a directory specified by the service management program, or a fixed directory established in the display device system, and the preset path is not limited.

[0132] Step S105, prompting the service management program to obtain and install the business logic of the first application from the preset path. For example, the controller may send a prompt message to the service management program to prompt the service management program to access the preset path to obtain and install the corresponding business logic.

[0133] The business logic of the first application is stored in a storage address corresponding to a fixed path, which can facilitate the service management program to access the preset path after receiving the prompt information, thereby obtaining the business logic of the first application and synchronously installing the business logic in the memory of the service management program. If the first application is a newly installed application, an event detection module corresponding to the first application can be added. If the first application is an application updated to an old version, the corresponding event detection module can be updated to ensure that the service management program can accurately monitor event information related to the first application and generate indication information to control the first application to process business matching the event information.

[0134] Step S106: Install the background service process corresponding to the first application and store the business logic of the first application in a preset path.

[0135] When the first application does not have the permission to join the service management program, or the system does not support enabling the unified service mode, it is necessary to install the background service process corresponding to the first application separately, and the background service process independently handles the event monitoring and indication business processing of the first application.

[0136] In some embodiments, for example, the original version of application A is 2.0, and the service management program installs the business logic of application A2.0. When application A is updated to version 3.0, the service management program still contains the business logic of application A2.0, and the service management program still monitors the events and indicates business processing of application 3.0 according to the business logic of version 2.0. After application A is upgraded, the business logic of application A3.0 can be stored in the preset path, so that application A can first listen to events and indicate business processing by the corresponding background service process. When the service management program is updated, it will automatically access the preset path, obtain the newly added business logic of application A3.0, and then install the business logic of application A3.0 in the service management program. After the service management program is updated, the background service of application A3.0 can be performed.

[0137] In some embodiments, for example, if application B is newly installed, the business logic of application B has not been installed in the service management program. Obviously, application B cannot support the unified service mode. In this case, the business logic of application B can be stored in a preset path first. When the service management program is updated, the preset path will be automatically accessed to obtain the newly added business logic of application B. The business logic of application B is then installed in the service management program. At the same time, an event detection module corresponding to application B is added. After the service management program is updated, background services such as event monitoring and business processing instructions can be performed on application B.

[0138] In some embodiments, for example, when application C is installed or updated, if the service management program has not been installed in the display device system, then the background service process C corresponding to application C is installed, and the background service process C performs background services for application C, and pre-stores the business logic of application C in a preset path. When the system installs the service management program, it accesses the preset path, obtains the business logic of application C, and installs it in the service management program. At the same time, an event detection module corresponding to application C is added, thereby realizing unified background service management of application C and other applications.

[0139] In some embodiments, Fig. 9 The process flow of the controller when the service management program is installed or updated is shown, including:

[0140] Step S201, when the service management program is updated, an application list is obtained, wherein the application list includes all application programs having the authority to join the service management program.

[0141] In some embodiments, an application list may be created, and the application list may change according to the update of the business logic stored in the preset path, for example, if the business logic of application C is added to the directory of the preset path, a record of application C is inserted into the application list; for another example, if the business logic of application A2.0 is replaced with the business logic of application 3.0, the record of application A in the application list remains unchanged; for another example, if application D is uninstalled, the record of application D is deleted from the application list. Applications added to the application list have the permission to support the unified service mode by default.

[0142] Step S202, control the service management program to install the current business logic of each application in the application list. After the installation is completed, the service management program can monitor events and instruct business processing for each application in the application list.

[0143] When the service management program is installed or updated, the latest business logic of each application in the application list is installed so that the events of each application in the application list can be accurately monitored and the business can be processed.

[0144] In some embodiments, if the service manager supports the unified service model and the application also supports the unified service model, a prompt message can be sent when the application is installed or updated to notify the service manager that the application has been installed or updated and the specified path where the business logic is stored. When the service manager is subsequently updated, it can check the business logic of the application and install the business logic of the application into the service manager.

[0145] In some embodiments, if the service management program supports the unified service model and the application does not support the unified service model, the application will be updated independently without affecting the service management program; if the service management program does not support the unified service model and the application supports the unified service model, if the use of the unified service model is restricted in the application scenario, the service management program may not be updated; if the use of the unified service model is not restricted in the application scenario, the service management program may be updated according to actual needs.

[0146] At present, the update frequency of applications has increased significantly. After each application is updated, the associated background service process also needs to be updated synchronously. Once there is an asynchronous update, it will cause abnormal application functions and business processing. In this application, the application and service manager can be updated relatively independently and dynamically adapt to business functions. Each application does not need to be configured with a corresponding background service process. Instead, a separate service manager monitors events and controls the business processing of multiple applications, which facilitates the unified management of multiple application service processes. Even if more applications are added later, they will not accumulate and occupy system memory resources, reducing the occupation of system memory resources and ensuring the processing performance of the operating system.

[0147] In some embodiments, a background service management method is provided, including:

[0148] In response to determining to enable the unified service mode, a service management program is started; the service management program is used to monitor multiple event detection modules, each event detection module corresponds to an application; the unified service mode refers to using a separate service management program to execute background service processes of multiple associated applications;

[0149] Among them, the service management program started by the controller is configured to: load the business logic of each application and monitor each event detection module; determine the target application corresponding to the target event detection module in response to the event information sent by the target event detection module; determine the triggered event based on the event information and the business logic of the target application; generate indication information based on the triggered event, and the indication information is used to enable the target application to process the business corresponding to the triggered event.

[0150] The method described in this embodiment may also include program steps in which the controller and service management program involved in the above-mentioned display device are configured to execute, which will not be repeated here.

[0151] Based on the software architecture and functional configuration of the aforementioned service management program, the processing logic of the background service management and the update / installation logic of the application program and the service management program can be adaptively adjusted and set according to actual needs, without being limited to what is described in the embodiments of the present application.

[0152] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. In a specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the computer storage medium is located in a display device, the program can include the method steps that the controller 250 and / or the service management program are configured to execute when the program is executed. The computer storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0153] The same and similar parts between the various embodiments in this specification can be referenced to each other, and some embodiments will not be described in detail.

[0154] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The description and examples are to be considered merely as exemplary and do not constitute limitations on the scope of protection of the present invention. The true scope and spirit of the present invention are indicated by the appended claims.

Claims

1. A display device, characterized in that: include: A controller, configured to execute: in response to determining that the unified service mode is enabled, starting a service management program; The service management program is used to monitor multiple event detection modules at the same time, each event detection module corresponds to an application program; the unified service mode refers to using a separate service management program to execute the background service processes of multiple associated applications; The service management program is executed by a service management module, which includes an event monitoring module, a service module, and a plurality of event detection modules connected to the monitoring module at the same time, and the service module is connected to the event monitoring module and stores the business logic of the associated plurality of application programs; The service management program is configured to: load the business logic of each application, and control the event monitoring module to monitor multiple event detection modules; when the event monitoring module monitors the event information sent by the target event detection module, control the event monitoring module to forward the event information to the service module; control the service module to determine the target application corresponding to the target event detection module; control the service module to determine the triggered event according to the event information and the business logic of the target application; control the service module to generate indication information according to the triggered event, and send the indication information to the target application; the target application processes the business corresponding to the triggered event in response to the indication information; The controller is also used to execute: when updating the first application, updating the business logic of the first application; if the service module does not synchronize the updated business logic of the first application, and determines that the updated first application does not support the unified service mode, then starting the background service process corresponding to the first application, and controlling the service management module to close the first event detection module corresponding to the first application.

2. The display device according to claim 1, characterized in that The controller is also used for: After the display device is turned on, determining whether the service management program supports the unified service mode, and determining whether the application associated with the service management program supports the unified service mode; If the service management program supports the unified service mode and the application associated with the service management program supports the unified service mode, it is determined to enable the unified service mode.

3. The display device according to claim 2, characterized in that The controller is also used for: If the service management program does not support the unified service mode, and / or the application programs associated with the service management program do not support the unified service mode, a background service process corresponding to each application program is started.

4. The display device according to claim 1 or 2, characterized in that: The controller is also used to execute: When installing or updating a first application, in response to determining that the first application has permission to join the service management program and determining to enable the unified service mode, storing the business logic of the first application in a preset path; The service management program is prompted to obtain and install the business logic of the first application from the preset path.

5. The display device according to claim 4, characterized in that The controller is also used for: In response to determining that the first application has permission to join the service manager and determining to enable the unified service mode, communication permissions of the service manager are obtained, and the communication permissions are used to allow the controller's application installation process to write data to the service manager; the data includes communication rules between the first application and the service manager.

6. The display device according to claim 4, characterized in that The controller is also used for: When installing or updating a first application, in response to determining that the first application does not have permission to join the service management program, a background service process corresponding to the first application is installed, and the business logic of the first application is stored in a preset path.

7. The display device according to claim 4, characterized in that The controller is also used for: When the service management program is updated, an application list is obtained, wherein the application list includes all application programs having the authority to join the service management program; Control the service management program to install the current business logic of each application in the application list.

8. The display device according to claim 4, characterized in that The preset path is a local directory of the first application, a directory specified by the service management program, or a fixed directory created in the display device.

9. A background service management method in a display device, characterized in that: include: In response to determining that the unified service mode is enabled, starting a service management program; The service management program is used to monitor multiple event detection modules at the same time, each event detection module corresponds to an application program; the unified service mode refers to using a separate service management program to execute the background service processes of multiple associated applications; The service management program is executed by a service management module, which includes an event monitoring module, a service module, and a plurality of event detection modules connected to the monitoring module at the same time, and the service module is connected to the event monitoring module and stores the business logic of the associated plurality of application programs; The service management program is configured to: load the business logic of each application, and control the event monitoring module to monitor multiple event detection modules; when the event monitoring module monitors the event information sent by the target event detection module, control the event monitoring module to forward the event information to the service module; control the service module to determine the target application corresponding to the target event detection module; control the service module to determine the triggered event according to the event information and the business logic of the target application; control the service module to generate indication information according to the triggered event, and send the indication information to the target application; the target application processes the business corresponding to the triggered event in response to the indication information; When updating the first application, the business logic of the first application is updated; if the service module does not synchronize the updated business logic of the first application, and it is determined that the updated first application does not support the unified service mode, then the background service process corresponding to the first application is started, and the service management module is controlled to close the first event detection module corresponding to the first application.