Detailed Description
To make the objects, technical solutions and advantages of the exemplary embodiments of the present application clearer, the technical solutions in the exemplary embodiments of the present application will be clearly and completely described below with reference to the drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, but not all the embodiments.
All other embodiments, which can be derived by a person skilled in the art from the exemplary embodiments shown in the present application without inventive effort, shall fall within the scope of protection of the present application. Moreover, while the disclosure herein has been presented in terms of exemplary one or more examples, it is to be understood that each aspect of the disclosure can be utilized independently and separately from other aspects of the disclosure to provide a complete disclosure.
As used in this application, the terms "comprises" and "comprising," as well as any variations thereof, 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 explicitly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" as used herein 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 functionality associated with that element.
The term "gesture" as used in this application refers to a user's behavior through a change in hand shape or an action such as hand motion to convey a desired idea, action, purpose, or result.
Fig. 1A is a schematic diagram illustrating an operation scenario between thedisplay device 200 and thecontrol apparatus 100. As shown in fig. 1A, thecontrol apparatus 100 and thedisplay device 200 may communicate with each other in a wired or wireless manner.
Among them, thecontrol apparatus 100 is configured to control thedisplay device 200, which may receive an operation instruction input by a user and convert the operation instruction into an instruction recognizable and responsive by thedisplay device 200, serving as an intermediary for interaction between the user and thedisplay device 200. Such as: the user operates the channel up/down key on thecontrol device 100, and thedisplay device 200 responds to the channel up/down operation.
Thecontrol device 100 may be aremote controller 100A, which includes infrared protocol communication or bluetooth protocol communication, and other short-distance communication methods, etc. to control thedisplay device 200 in a wireless or other wired manner. The user may input a user instruction through a key on a remote controller, voice input, control panel input, etc., to control thedisplay apparatus 200. Such as: the user can input a corresponding control command through a volume up/down key, a channel control key, up/down/left/right moving keys, a voice input key, a menu key, a power on/off key, etc. on the remote controller, to implement the function of controlling thedisplay device 200.
Thecontrol device 100 may also be an intelligent device, such as amobile terminal 100B, a tablet computer, a notebook computer, and the like. For example, thedisplay device 200 is controlled using an application program running on the smart device. The application program may provide various controls to a user through an intuitive User Interface (UI) on a screen associated with the smart device through configuration.
For example, themobile terminal 100B may install a software application with thedisplay device 200 to implement connection communication through a network communication protocol for the purpose of one-to-one control operation and data communication. Such as: themobile terminal 100B may be caused to establish a control instruction protocol with thedisplay device 200 to implement the functions of the physical keys as arranged in theremote control 100A by operating various function keys or virtual buttons of the user interface provided on themobile terminal 100B. The audio and video content displayed on themobile terminal 100B may also be transmitted to thedisplay device 200, so as to implement a synchronous display function.
Thedisplay apparatus 200 may be implemented as a television, and may provide an intelligent network television function of a broadcast receiving television function as well as a computer support function. Examples of the display device include a digital television, a web television, a smart television, an Internet Protocol Television (IPTV), and the like.
Thedisplay 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.
Thedisplay apparatus 200 also performs data communication with theserver 300 through various communication means. Here, thedisplay apparatus 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. Theserver 300 may provide various contents and interactions to thedisplay apparatus 200. By way of example, thedisplay 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. Theservers 300 may be a group or groups of servers, and may be one or more types of servers. Other web service contents such as a video on demand and an advertisement service are provided through theserver 300.
Fig. 1B is a block diagram illustrating the configuration of thecontrol device 100. As shown in fig. 1B, thecontrol device 100 includes acontroller 110, amemory 120, acommunicator 130, auser input interface 140, anoutput interface 150, and apower supply 160.
Thecontroller 110 includes a Random Access Memory (RAM)111, a Read Only Memory (ROM)112, aprocessor 113, a power-on interface, and a communication bus. Thecontroller 110 is used to control the operation of thecontrol device 100, as well as the internal components of the communication cooperation, external and internal data processing functions.
Illustratively, when an interaction of a user pressing a key disposed on theremote controller 100A or an interaction of touching a touch panel disposed on theremote controller 100A is detected, thecontroller 110 may control to generate a signal corresponding to the detected interaction and transmit the signal to thedisplay apparatus 200.
And amemory 120 for storing various operation programs, data and applications for driving and controlling thecontrol apparatus 100 under the control of thecontroller 110. Thememory 120 may store various control signal commands input by a user.
Thecommunicator 130 enables communication of control signals and data signals with thedisplay apparatus 200 under the control of thecontroller 110. Such as: thecontrol apparatus 100 transmits a control signal (e.g., a touch signal or a button signal) to thedisplay device 200 via thecommunicator 130, and thecontrol apparatus 100 may receive the signal transmitted by thedisplay device 200 via thecommunicator 130. Thecommunicator 130 may include aninfrared signal interface 131 and a radiofrequency 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 thedisplay device 200 through the infrared sending module. The following steps are repeated: when the rf signal interface is used, a user input command needs to be converted into a digital signal, and then the digital signal is modulated according to the rf control signal modulation protocol and then transmitted to thedisplay device 200 through the rf transmitting terminal.
Theuser input interface 140 may include at least one of amicrophone 141, atouch pad 142, asensor 143, a key 144, and the like, so that a user can input a user instruction regarding controlling thedisplay apparatus 200 to thecontrol apparatus 100 through voice, touch, gesture, press, and the like.
Theoutput interface 150 outputs a user instruction received by theuser input interface 140 to thedisplay apparatus 200, or outputs an image or voice signal received by thedisplay apparatus 200. Here, theoutput interface 150 may include anLED interface 151, avibration interface 152 generating vibration, asound output interface 153 outputting sound, adisplay 154 outputting an image, and the like. For example, theremote controller 100A may receive an output signal such as audio, video, or data from theoutput interface 150, and display the output signal in the form of an image on thedisplay 154, in the form of audio on thesound output interface 153, or in the form of vibration on thevibration interface 152.
And apower supply 160 for providing operation power support for each element of thecontrol device 100 under the control of thecontroller 110. In the form of a battery and associated control circuitry.
A hardware configuration block diagram of thedisplay device 200 is exemplarily illustrated in fig. 1C. As shown in fig. 1C, thedisplay apparatus 200 may further include atuner demodulator 210, acommunicator 220, adetector 230, anexternal device interface 240, acontroller 250, amemory 260, auser interface 265, avideo processor 270, adisplay 275, anaudio processor 280, anaudio input interface 285, and apower supply 290.
Thetuner demodulator 210 receives the broadcast television signal in a wired or wireless manner, may perform modulation and demodulation processing such as amplification, mixing, and resonance, and is configured to demodulate, from a plurality of wireless or wired broadcast television signals, an audio/video signal carried in a frequency of a television channel selected by a user, and additional information (e.g., EPG data).
Thetuner demodulator 210 is responsive to the user selected frequency of the television channel and the television signal carried by the frequency, as selected by the user and controlled by thecontroller 250.
Thetuner demodulator 210 can receive a television signal in various ways according to the broadcasting system of the television signal, such as: terrestrial broadcasting, cable broadcasting, satellite broadcasting, internet broadcasting, or the like; and according to different modulation types, a digital modulation mode or an analog modulation mode can be adopted; and can demodulate the analog signal and the digital signal according to the different kinds of the received television signals.
In other exemplary embodiments, thetuning demodulator 210 may also be in an external device, such as an external set-top box. In this way, the set-top box outputs a television signal after modulation and demodulation, and inputs the television signal into thedisplay apparatus 200 through theexternal device interface 240.
Thecommunicator 220 is a component for communicating with an external device or an external server according to various communication protocol types. For example, thedisplay apparatus 200 may transmit content data to an external apparatus connected via thecommunicator 220, or browse and download content data from an external apparatus connected via thecommunicator 220. Thecommunicator 220 may include a network communication protocol module or a near field communication protocol module, such as aWIFI module 221, abluetooth module 222, and awired ethernet module 223, so that thecommunicator 220 may receive a control signal of thecontrol device 100 according to the control of thecontroller 250 and implement the control signal as a WIFI signal, a bluetooth signal, a radio frequency signal, and the like.
Thedetector 230 is a component of thedisplay apparatus 200 for collecting signals of an external environment or interaction with the outside. Thedetector 230 may include animage collector 232, such as a camera, a video camera, etc., which may be used to collect external environment scenes to adaptively change the display parameters of thedisplay device 200; and the function of acquiring 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 may also be included to collect ambient light intensity to adapt to changes in display parameters of thedisplay device 200, etc.
In some other exemplary embodiments, thedetector 230 may further include a temperature sensor, such as by sensing an ambient temperature, and thedisplay device 200 may adaptively adjust a display color temperature of the image. For example, when the temperature is higher, thedisplay apparatus 200 may be adjusted to display a color temperature of an image that is cooler; when the temperature is lower, thedisplay device 200 may be adjusted to display a warmer color temperature of the image.
In some other exemplary embodiments, thedetector 230, which may further include asound collector 231, such as a microphone, may be configured to receive a sound of a user, such as a voice signal of a control instruction of the user to control thedisplay device 200; alternatively, ambient sounds may be collected that identify the type of ambient scene, enabling thedisplay device 200 to adapt to ambient noise.
Theexternal device interface 240 is a component for providing thecontroller 210 to control data transmission between thedisplay apparatus 200 and an external apparatus. Theexternal device interface 240 may be connected to an external apparatus 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., moving image), an audio signal (e.g., music), additional information (e.g., EPG), etc. of the external apparatus.
Theexternal device interface 240 may include: a High Definition Multimedia Interface (HDMI) terminal 241, a Composite Video Blanking Sync (CVBS)terminal 242, an analog ordigital 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.
Thecontroller 250 controls the operation of thedisplay device 200 and responds to the operation of the user by running various software control programs (such as an operating system and various application programs) stored on thememory 260.
As shown in FIG. 1C,controller 250 includes Random Access Memory (RAM)251, Read Only Memory (ROM) 252,graphics processor 253,processor 254, power-oninterface 255, andcommunication bus 256. The RAM251, the ROM252, thegraphic processor 253, and thepower interface 255 of theprocessor 254 are connected by acommunication bus 256.
The ROM252 stores various system boot instructions. When the power-on signal is received, thedisplay apparatus 200 starts to be powered on, and theprocessor 254 executes the system boot instruction in the ROM252 and copies the operating system stored in thememory 260 to the RAM251 to start running the boot operating system. After the start of the operating system is completed, theprocessor 254 copies the various applications in thememory 260 to the RAM251 and then starts running the various applications.
Agraphic processor 253 for generating screen images of various graphic objects such as icons, images, and operation menus. Thegraphic processor 253 may include an operator for performing an operation by receiving various interactive instructions input by a user, and further displaying various objects according to display attributes; and a renderer for generating various objects based on the operator and displaying the rendered result on thedisplay 275.
Aprocessor 254 for executing operating system and application program instructions stored inmemory 260. And executing processing of various applications, data and contents according to the received user input instruction so as to finally display and play various audio and video contents.
In some demonstrative embodiments,processor 254 may include a plurality of processors. The plurality of processors may include one main processor and a plurality of or one sub-processor. A main processor for performing some initialization operations of thedisplay apparatus 200 in the display apparatus preload mode and/or operations of displaying a screen in the normal mode. A plurality of or one sub-processor for performing an operation in a state of a display device standby mode or the like.
The power-upinterface 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.
Thecontroller 250 may control the overall operation of thedisplay apparatus 200. For example: in response to receiving a user input command for selecting a GUI object displayed on thedisplay 275, thecontroller 250 may perform an operation related to the object selected by the user input command.
Where the object may be any one of the selectable objects, such as a hyperlink or an icon. The operation related to the selected object is, for example, an operation of displaying a link to a hyperlink page, document, 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., a mouse, a keyboard, a touch panel, etc.) connected to thedisplay apparatus 200 or a voice command corresponding to a user uttering voice.
Amemory 260 for storing various types of data, software programs, or applications for driving and controlling the operation of thedisplay device 200. Thememory 260 may include volatile and/or nonvolatile memory. And the term "memory" includes thememory 260, the RAM251 and the ROM252 of thecontroller 250, or a memory card in thedisplay device 200.
In some embodiments, thememory 260 is specifically used for storing an operating program for driving thecontroller 250 of thedisplay device 200; storing various application programs built in thedisplay apparatus 200 and downloaded by a user from an external apparatus; data such as visual effect images for configuring various GUIs provided by thedisplay 275, various objects related to the GUIs, and selectors for selecting GUI objects are stored.
In some embodiments, thememory 260 is specifically configured to store drivers and related data for thetuner demodulator 210, thecommunicator 220, thedetector 230, theexternal device interface 240, thevideo processor 270, thedisplay 275, theaudio processor 280, and the like, external data (e.g., audio-visual data) received from the external device interface, or user data (e.g., key information, voice information, touch information, and the like) received from the user interface.
In some embodiments,memory 260 specifically stores software and/or programs 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 (e.g., the middleware, APIs, or applications); at the same time, the kernel may provide an interface to allow middleware, APIs, or applications to access the controller to enable control or management of system resources.
A block diagram of the architectural configuration of the operating system in the memory of thedisplay device 200 is illustrated in fig. 1D. The operating system architecture comprises an application layer, a middleware layer and a kernel layer 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 users. 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 a WebKit engine, and in particular may be developed and executed based on HTML, Cascading Style Sheets (CSS), and JavaScript.
Here, HTML, which is called HyperText Markup Language (HyperText Markup Language), is a standard Markup Language for creating web pages, and describes the web pages by Markup tags, where the HTML tags are used to describe characters, graphics, animation, sound, tables, links, etc., and a browser reads an HTML document, interprets the content of the tags in the document, and displays the content in the form of web pages.
CSS, known as Cascading Style Sheets (Cascading Style Sheets), is a computer language used to represent the Style of HTML documents, and may be used to define Style structures, such as fonts, colors, locations, etc. The CSS style can be directly stored in the HTML webpage or a separate style file, so that the style in the webpage can be controlled.
JavaScript, a language applied to Web page programming, can be inserted into an HTML page and interpreted and executed by a browser. The interaction logic of the Web application is realized by JavaScript. The JavaScript can package a JavaScript extension interface through a browser, realize the communication with the kernel layer,
the middleware layer may provide some standardized interfaces to support the operation of various environments and systems. For example, the middleware layer may be implemented as multimedia and hypermedia information coding experts group (MHEG) middleware related to data broadcasting, DLNA middleware which is middleware related to communication with an external device, middleware which provides a browser environment in which each application program in the display device operates, and the like.
The kernel layer provides core system services, such as: file management, memory management, process management, network management, system security authority management and the like. The kernel layer may be implemented as a kernel based on various operating systems, for example, a kernel based on the Linux operating system.
The kernel layer also provides communication between system software and hardware, and provides device driver services for various hardware, such as: provide display driver for the display, provide camera driver for the camera, provide button driver for the remote controller, provide wiFi driver for the WIFI module, provide audio driver for audio output interface, provide power management drive for Power Management (PM) module etc..
Auser interface 265 receives various user interactions. Specifically, it is used to transmit an input signal of a user to thecontroller 250 or transmit an output signal from thecontroller 250 to the user. For example, theremote controller 100A may transmit an input signal, such as a power switch signal, a channel selection signal, a volume adjustment signal, etc., input by the user to theuser interface 265, and then the input signal is transferred to thecontroller 250 through theuser interface 265; alternatively, theremote controller 100A may receive an output signal such as audio, video, or data output from theuser interface 265 via thecontroller 250, and display the received output signal or output the received output signal in audio or vibration form.
In some embodiments, a user may enter user commands on a Graphical User Interface (GUI) displayed on thedisplay 275, and theuser interface 265 receives the user input commands through the GUI. Specifically, theuser interface 265 may receive user input commands for controlling the position of a selector in the GUI to select different objects or items.
Alternatively, the user may input a user command by inputting a specific sound or gesture, and theuser interface 265 receives the user input command by recognizing the sound or gesture through a sensor.
Thevideo 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 synthesis according to a standard codec protocol of the input signal, so as to obtain a video signal that is directly displayed or played on thedisplay 275.
Illustratively, thevideo processor 270 includes a demultiplexing module, a video decoding module, an image synthesizing module, a frame rate conversion module, a display formatting module, and the like.
The demultiplexing module is configured to demultiplex an input audio/video data stream, where, for example, an input MPEG-2 stream (based on a compression standard of a digital storage media moving image and voice), the demultiplexing module demultiplexes the input audio/video data stream into a video signal and an audio signal.
And the video decoding module is used for processing the video signal after demultiplexing, including decoding, scaling and the like.
And the image synthesis module is used for carrying out superposition mixing processing on the GUI signal input by the user or generated by the user and the video image after the zooming processing 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, where a common format is implemented by using, for example, an interpolation frame method.
And a display formatting module for converting the signal output by the frame rate conversion module into a signal conforming to a display format of a display, such as converting the format of the signal output by the frame rate conversion module to output an RGB data signal.
And adisplay 275 for receiving the image signal from the output of thevideo processor 270 and displaying video, images and menu manipulation interfaces. For example, the display may display video from a broadcast signal received by thetuner demodulator 210, may display video input from thecommunicator 220 or theexternal device interface 240, and may display an image stored in thememory 260. Thedisplay 275, while displaying a user manipulation interface UI generated in thedisplay apparatus 200 and used to control thedisplay apparatus 200.
And, thedisplay 275 may include a display screen assembly for presenting a picture and a driving assembly for driving the display of an image. Alternatively, a projection device and projection screen may be included, provideddisplay 275 is a projection display.
Theaudio processor 280 is configured to receive an external audio signal, decompress and decode the received audio signal according to a standard codec protocol of the input signal, and perform audio data processing such as noise reduction, digital-to-analog conversion, and amplification processing to obtain an audio signal that can be played by thespeaker 286.
Illustratively,audio processor 280 may support various audio formats. Such as MPEG-2, MPEG-4, Advanced Audio Coding (AAC), high efficiency AAC (HE-AAC), and the like.
Audio output interface 285 receives audio signals from the output ofaudio processor 280. For example, the audio output interface may output audio in a broadcast signal received via thetuner demodulator 210, may output audio input via thecommunicator 220 or theexternal device interface 240, and may output audio stored in thememory 260. Theaudio output interface 285 may include aspeaker 286, or an externalaudio output terminal 287, such as an earphone output terminal, that outputs to a generating device of an external device.
In other exemplary embodiments,video processor 270 may comprise one or more chips.Audio processor 280 may also comprise one or more chips.
And, in other exemplary embodiments, thevideo processor 270 and theaudio processor 280 may be separate chips or may be integrated with thecontroller 250 in one or more chips.
And apower supply 290 for supplying power supply support to thedisplay apparatus 200 from the power input from the external power source under the control of thecontroller 250. Thepower supply 290 may be a built-in power supply circuit installed inside thedisplay apparatus 200 or may be a power supply installed outside thedisplay apparatus 200.
At present, a great number of functions which can be completed only by network interaction exist in an android system, but it is often found that the functions gradually become a plurality of startup self-starting processes, and most of the processes run in a background, for example, the self-starting processes may be communication applications which are automatically started when a user starts up, or binary executable programs. With the increasing of the functions of the system, more and more self-starting processes are provided, and more resident background processes are provided, so that the starting speed and the running performance of the system are affected, and in addition, the problems that the central processing unit is greatly occupied, the memory is insufficient and the like also become potential risks.
The method for uniformly controlling the starting of the process, as shown in fig. 2, provided by the embodiment of the application, includes the following steps:
and S101, after the system is started, the original self-starting process and the original background resident process are not started. S102, only one unique process is started, and the process which needs to be started really is determined by utilizing the unique process, so that the problem of overlong starting time caused by running of a self-starting process and a background resident process can be solved.
S103, receiving the data packet by using the special process, and detecting the port information in the data packet. It should be noted that, when a function on the system that can only be completed by using network interaction is used, a data packet needs to be sent to the system through the network. In this embodiment, the unique process may receive data packets, each data packet having a corresponding process, and for example, one data packet corresponds to one process.
The method and the device for processing the information are used for presetting the information corresponding to the process which is possibly started in the preset configuration file. The preset configuration file comprises a process name, monitored port information, a process starting mode and key data required by the process.
And S104, judging whether the port information exists in a preset configuration file.
In this embodiment of the present application, the registration method of the preset configuration file includes the following four steps: 1. the relevant information is directly prefabricated into the preset configuration file in the system compiling stage, and in the step, the process information for identifying which process the data packet received by the system is to be sent to can be added into the preset configuration file. 2. In the stage of starting up and scanning the application of the system, the application installed in the system is identified, and the acquired relevant information of the application is stored in a preset configuration file by scanning the configuration file (xml file) of the application. 3. After the special process is started, a notice is sent globally, the relevant process is awakened to register the information in the preset configuration file, and the process exits after the registration is completed. In this step, the process information that needs to communicate with the external network during operation can be added to the preset configuration file. 4. For the process which has special reason and needs to be started and automatically started, the relevant information of the process is registered in a preset configuration file in an active registration mode after the process is automatically started, and then the process is automatically quitted. The related information mentioned in the above four steps includes the process name, the monitored port information, the starting mode of the process and the key data required by the process. The format in which the relevant information is stored in the preset configuration file is shown in table 1.
TABLE 1
In the embodiment of the present application, the manner of using the preset configuration file is only one, and related information may also be put into a database or other manners capable of making data persistent. In the embodiment of the present application, the preset configuration file includes one or more related information, for example, port information A, B, C and D in the preset configuration file.
And S105, if the port information exists in the preset configuration file, acquiring key data corresponding to the port information from the preset configuration file. Illustratively, the port information detected from the data packet is a, and if it is found that the port information in the preset configuration file also includes a, it indicates that the port information exists in the preset configuration file, and key data corresponding to the port information a is obtained from the preset configuration file.
In some embodiments, the method further comprises: s106, if the port information does not exist in the preset configuration file, the data packet is sent to a system, and the special process does not process the data packet.
And S107, judging whether the key data exist in the data packet.
And S108, if the key data exist in the data packet, starting a corresponding process by using a starting mode corresponding to the key data in a preset configuration file. In the embodiment of the application, whether the data sent to the port is the data required by the corresponding process can be determined by judging whether the data packet has the key data. If the key data is contained, the data sent to the port is the data required by the corresponding process. In the embodiment of the present application, the key data of different processes may be different, for example, the key data may be a version number or may also be a package name.
In some embodiments, the method further comprises: and S109, if the key data does not exist in the data packet, sending the data packet to a system, and the special process does not process the data packet.
S110, if the process is failed to be started, the step of starting the corresponding process by using the starting mode corresponding to the key data in the preset configuration file is executed again until the number of times of restarting reaches the preset number of times. Because the starting failure has various reasons, for example, insufficient memory or some data is not initialized, and the like, in order to ensure the fault tolerance of the specific process and make the starting result more accurate, in the embodiment of the present application, after the starting process fails, the step of starting the corresponding process by using the starting manner corresponding to the key data in the preset configuration file is executed again until the number of times of restarting reaches the preset number of times, for example, the preset number of times is 5.
And S111, if the process is started successfully, sending the data packet into the process for processing. In the embodiment of the application, the data packet received by the specific process is not processed, and the real logic service function is completed by other processes started by the specific process, so that the process started by the specific process is the process which needs the data packet to complete the function, and further needs to send the data packet to the process for processing.
And S112, recording the successfully started process by using a timer, and detecting whether data interaction exists in the successfully started process by using the timer at preset time intervals. In the embodiment of the application, the timer is synchronously triggered and started at the same time of starting the special process. Whether data interaction exists is determined by judging whether the port corresponding to the process still receives data, if so, S113, determining that data interaction exists in the process, and repeatedly executing the interval preset time to detect whether data interaction exists in the process which is started successfully by using a timer. The preset time can be 5s, and the preset time can be set according to actual needs, which is not limited in the present application.
And S114, if the data is not received, determining that no data interaction exists in the process. In some embodiments, if there is no data interaction, the corresponding process is notified to exit.
In the above embodiment, a method for uniformly controlling the starting of a process and a display device are used to accelerate the system starting speed and reduce a self-starting process and a background resident process in the system, thereby improving the working performance of the system and increasing the utilization rate of a central processing unit. The method comprises the following steps: receiving a data packet, and detecting port information in the data packet; if the port information exists in the preset configuration file, key data corresponding to the port information is obtained from the preset configuration file; if the key data exist in the data packet, starting a corresponding process by using a starting mode corresponding to the key data in a preset configuration file; if the process is started successfully, sending the data packet into the process for processing, recording the process which is started successfully by using a timer, and detecting whether data interaction exists in the process which is started successfully by using the timer at intervals of preset time; if the data interaction exists, repeatedly executing the interval preset time and detecting whether the data interaction exists in the process which is started successfully by using a timer.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.