Patent Description:
Owing to development of technology, functions of digital devices have become more complex and diverse. Since manufacturers provide open application platforms, many companies are striving to participate in development and provide their own services.

As a result of these changes, unpredictable behaviors occurred at the initial development stage of digital devices and these operations became the cause of problems.

When problems were reported at the development stage of a digital device in the prior art, the same problem was reproduced and the problem was solved by using real-time debugging information through a console. However, when the problem was not reproduced or the reproduction method was not accurate, the problem could not be solved.

Also, problems that arise after a product is supplied to a consumer are not easy to reproduce the problem because an external environment is different from the development stage. Even if developers visited a relevant place to identify the problem that occurs, it is impossible to obtain debugging information in real time in a problem that occurs at a specific time. Debugging information that has been obtained took a long time because the developer had to check the information manually. Also, even if the problem is reproduced, it takes a lot of time to reproduce, and a lot of cost for the developer to visit a specific place.

As described above, obtaining the debugging information using the existing method is limited and a lot of cost is required, and a new method of recording the debugging information is needed. <CIT> relates to a method and system for monitoring a monitoring-target process. <CIT> relates to a monitoring apparatus.

<CIT> discloses a system where data is collected from a set of devices. The data is associated with the devices, mobile application programs (apps), web applications, users, or combinations of these. A norm is established using the collected data. The norm is compared with data collected from a particular device. If there is a deviation outside of a threshold deviation between the norm and the data collected from the particular device, a response is initiated.

<CIT> discloses a monitoring is performed of objects within an IT network having monitored nodes, at least one of which is a high-availability cluster having first and second cluster nodes. When a failover condition is detected for a cluster package at the first cluster node, a failover to the second cluster node is initiated. A monitoring agent system includes first and second agents associated with the first and second cluster nodes, respectively. The monitoring agent system monitors events relating to the cluster package and generates event-related messages. The agents receive information indicating whether the cluster package is currently active on the associated cluster node. Depending on the received information, the message generation relating to the cluster package is activated in the one of the agents which is associated with the cluster node on which the cluster package is currently active and is deactivated in the other one.

Exemplary embodiments of the present disclosure overcome the above disadvantages and other disadvantages not described above. Also, the present disclosure is not required to overcome the disadvantages described above, and an exemplary embodiment of the present disclosure may not overcome any of the problems described above.

The present disclosure provides a server capable of automatically detecting errors and malfunctions, an electronic apparatus and a control method thereof.

The invention is defined in the independent claim <NUM>. Advantageous embodiments of the invention are set out in the dependent claims,.

According to an aspect, there is provided a server as set out in claim <NUM>. Additional features are set out in claims <NUM> to <NUM>. According to an aspect, there is provided an electronic apparatus as set out in claim <NUM>. Additional features are set out in claims <NUM> to <NUM>.

Before describing the present disclosure in detail, a method of describing the present specification and drawings will be described.

Although general terms used in the present specification and claims are selected to describe exemplary embodiments in consideration of the functions thereof, these general terms may vary according to intentions of one of ordinary skill in the art, legal or technical interpretation, the advent of new technologies, and the like. Some terms are arbitrarily selected by the applicant of the exemplary embodiments. These terms may be construed in the meaning defined herein and, unless otherwise specified, may be construed on the basis of the entire contents of this specification and common technical knowledge in the art.

Also, the same reference numerals or signs as used in the accompanying drawings denote parts or components performing substantially the same function. For ease of explanation and understanding, different embodiments will be described using the same reference numerals or signs. In other words, even though all the elements having the same reference numerals are shown in a plurality of drawings, the plurality of drawings do not mean one embodiment.

Also, in the present specification and claims, terms including an ordinal number such as "first", "second", etc. may be used for distinguishing between components. These ordinals are used to distinguish between the same or similar components, and the use of such ordinals should not be construed as limiting the meaning of the term. For example, the components associated with such an ordinal number should not be limited in the order of use, placement order, or the like. If necessary, each ordinal number may be used interchangeably.

As used herein, the singular forms "a", "an" and "the" include plural referents unless the context clearly dictates otherwise. In the present application, the terms "include" or "configured" and the like, specify the presence of a feature, a number, a step, an operation, a component, parts, or a combination thereof but do not preclude the presence or addition of one or more features, numbers, steps, operations, components, parts, or combinations thereof.

In the embodiments of the present disclosure, the terms such as "module," "unit," "part," and the like are terms for designating a component that performs at least one function or operation. The component may be implemented as hardware, software, or a combination of hardware and software. A plurality of "modules", "units", "parts", etc. may be integrated into at least one module or chip and implemented as at least one processor (not shown), excluding the case where each is necessarily implemented as individual specific hardware.

Further, in an embodiment of the present disclosure, when a part is connected to another part, this includes not only a direct connection but also an indirect connection through another medium. Also, the meaning that a part includes an element does not exclude other elements, but may further include other elements, unless specifically stated otherwise.

Hereinafter, various embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.

<FIG> illustrates a management system <NUM> according to an exemplary embodiment of the present disclosure.

The management system <NUM> includes a plurality of electronic apparatuses <NUM> and a server <NUM>.

The server <NUM> may collect debugging information from the plurality of electronic apparatuses <NUM>. Debugging is a process of detecting and correcting errors in a computer program. Debugging may be done at the development stage, and even while a consumer is using the electronic apparatus <NUM>.

The server <NUM> collects various pieces of information from the plurality of electronic apparatuses <NUM>, generates policy information for obtaining the debugging information based on the collected information, and transmits the policy information to the plurality of electronic apparatuses <NUM>.

In terms of software problem characteristics, problems that occur in one device may occur in all devices with the same characteristics. Accordingly, the server <NUM> classifies the plurality of electronic apparatuses <NUM> by type and provide the same policy information to the electronic apparatuses <NUM> of the same type.

In <FIG>, only an example in which the server <NUM> is configured as a single device is shown, but the operations described above may be performed by a plurality of servers upon implementation.

<FIG> is a block diagram illustrating the server <NUM> according to an exemplary embodiment of the present disclosure.

The server <NUM> includes a communicator <NUM> and a processor <NUM>.

The communicator <NUM> is a configuration for performing communication with an external device. The communicator <NUM> is formed to connect the server <NUM> with the external device and is connected to a terminal device through a local area network (LAN) and the Internet network, as well as may be connected through a USB (Universal Serial Bus) or a wireless communication port.

The processor <NUM> is a configuration for controlling the overall operation of the server <NUM>. The processor <NUM> may be implemented as a CPU, an ASIC, a SoC, a MICOM, or the like.

The processor <NUM> receives apparatus information from each of the plurality of electronic apparatuses <NUM> through the communicator <NUM>, classifies the plurality of electronic apparatuses <NUM> into a plurality of types based on the received apparatus information, and provides the same policy information to the plurality of electronic apparatuses <NUM> of the same type.

The apparatus information received from each of the plurality of electronic apparatuses <NUM> may include information about factors that affect an operation of software. For example, the apparatus information may include at least one of country information, software model information, and connection apparatus information. When the plurality of electronic apparatuses <NUM> are a TV, factors affecting the operation of the software may include, for example, country, terrestrial connectivity, satellite connectivity, set-top box connectivity, sound bar connectivity, etc..

Table <NUM> below shows an example of a plurality of types classified according to the apparatus information. Whether the electronic device <NUM> is connected to a particular device may be expressed as <NUM> and <NUM>.

The number of samples (the number of apparatuses to be monitored) may be set for each of a plurality of types. The server <NUM> may further include an operation input unit capable of receiving an input from a user, and may receive information about a plurality of types of samples numbers through the operation input unit. The operation input unit may be implemented as, for example, a keyboard, a mouse, a touch pad, a button, or the like. Alternatively, the server <NUM> may not have the operation input unit, and may receive a user input from an external apparatus through the communicator <NUM>.

Since the number of samples is specified for each type and the debugging information is collected only from a predetermined number of apparatuses, memory may be more efficiently managed than the debugging information is acquired from all devices.

The server <NUM> may include a memory. The memory may store a table having a plurality of types and information about monitoring target devices corresponding to the plurality of types. The memory may be implemented as a non-volatile memory, a volatile memory, a flash memory, a hard disk drive (HDD), a solid state drive (SSD), or etc. Meanwhile, the memory may be implemented not only as a storage medium in the server <NUM>, but also as an external storage medium, such as a micro SD card, a USB memory, or a Web server over a network.

Table <NUM> below shows an example of a table including information about the number of samples for each type and monitoring target devices (targets).

The processor <NUM> may determine whether a generated type exists in a table pre-stored in the memory based on the apparatus information received from the electronic apparatus <NUM>, and add a new type to the table when the type does not exist.

For example, the processor <NUM> may determine whether the generated type exists in the table pre-stored in the memory based on the apparatus information received from the electronic apparatus <NUM>, and when the type exists, compare the number of samples of a corresponding type and the number of monitoring target devices, when the number of monitoring target devices is smaller than the number of samples, add information about a corresponding electronic apparatus to the table, and, when the number of monitoring target devices is larger than the number of samples, may not add the information about the corresponding electronic apparatus to the table.

The processor <NUM> provides the same policy information for electronic apparatuses that are classified as the same type. Therefore, management may be efficiently performed only on devices of a predetermined number of samples, and thus server traffic management and memory may be effectively reduced, thereby achieving cost reduction. Also, since factors that may affect software operation are classified and managed according to types, when a problem occurs, it is possible to determine what factors affected the problem.

<FIG> is a block diagram for explaining a configuration of the electronic apparatus <NUM> according to an exemplary embodiment of the present disclosure.

Referring to <FIG>, the electronic apparatus <NUM> includes a memory <NUM>, a communicator <NUM>, and a processor <NUM>.

The electronic apparatus <NUM> may be implemented in various types of apparatuses. For example, the electronic apparatus <NUM> may be a computer, a TV, a cellular phone, a smart phone, a tablet PC, a smart watch, a smart band, a PDA, or the like.

The memory <NUM> stores various data and programs necessary for driving the electronic apparatus <NUM>. The memory <NUM> may be implemented as a non-volatile memory, a volatile memory, a flash memory, a hard disk drive (HDD), a solid state drive (SSD), or etc. The memory <NUM> may be implemented not only as a storage medium in the electronic apparatus <NUM> but also as an external storage medium such as a micro SD card, a USB memory, or a Web server over a network.

The memory <NUM> stores a program configured by a plurality of program codes and performing a predetermined function. For example, when the electronic apparatus <NUM> is a TV, a program for performing a channel switching function is stored in the memory <NUM> and may include a plurality of program codes. For example, the program may include the plurality of program codes such as "Set_Tune () Check_TunerLock () "," Check_DecoderLock () ", and the like.

The communicator <NUM> is a configuration for performing communication with an external apparatus. The communicator <NUM> is formed for connecting the electronic apparatus <NUM> to the external apparatus and may be connected to a terminal apparatus through a local area network (LAN) and the Internet network, as well as may be connected through a USB (Universal Serial Bus) port or a wireless communication port.

For example, the communicator <NUM> may perform communication using at least one of communication methods such as infrared communication (IrDA), radio frequency identification (RFID), near field communication (NFC), wireless fidelity (WiFi), ultra wideband (UWB), WirelessDisplay (WiDi), WirelessHD (WiHD), Wireless Home Digital Interface (WHDI), Miracast, Wireless Gigabit Alliance (Wigig), Wi-Fi Direct, Bluetooth (ex. Bluetooth Classic), Bluetooth low energy, AirPlay, Z-wave, 4LoWPAN, LTE D2D, GPRS, Weightless, Edge Zigbee, Digital Living Network Alliance (DLNA), ANT+, Digital Enhanced Cordless Telecommunications (DECT), Wireless Local Area Network (WLAN), Communication methods such as Global System for Mobile communications (GSM), Universal Mobile Telecommunication System (UMTS), Long-Term Evolution (LTE), and Wireless Broadband (WiBRO), etc..

The processor <NUM> is a configuration for controlling the overall operation of the electronic apparatus <NUM>. The processor <NUM> may be implemented as a CPU, an ASIC, a SoC, a MICOM, or the like.

The processor <NUM> transmits apparatus information to the server <NUM> through the communicator <NUM>. The apparatus information may include factors that may affect an operation of software, such as country information, software model information, connection device information (information on a device connected to the electronic apparatuses <NUM>), etc., as described above.

The processor <NUM> may transmit the apparatus information to the server <NUM> at regular intervals or only when a specific event occurs to reduce an amount of transmission. For example, the processor <NUM> may transmit the apparatus information to the server <NUM> through the communicator <NUM> when an event occurs in which the electronic apparatus <NUM> is powered on. The processor <NUM> may determine a type of the electronic apparatus <NUM> based on the apparatus information. The processor <NUM> may compare the apparatus information before the electronic apparatus <NUM> is turned off and after the electronic apparatus <NUM> is turned on and transmit the apparatus information to the server <NUM> only when the type is changed. For example, before the electronic apparatus <NUM> is turned off, when the electronic apparatus <NUM> is connected to a set-top box, whereas when the electronic apparatus <NUM> is turned on, when the electronic apparatus <NUM> is not connected to the set-top box, the electronic apparatus <NUM> may determine that type is changed and transmit the apparatus information to the server <NUM>. Alternatively, the electronic apparatus <NUM> may transmit information about the determined type itself to the server <NUM> instead of the apparatus information.

The server <NUM> determines the type of the electronic apparatus <NUM> based on the information about the apparatus information or the type received from the electronic apparatus <NUM> and provide policy information corresponding to the determined type to the electronic apparatus <NUM>.

An example of a process of exchanging information between the electronic apparatus <NUM> and the server <NUM> will be described with reference to <FIG>.

Referring to <FIG>, when the electronic apparatus <NUM> is turned on (S410), the processor <NUM> may determine whether a type is changed in comparison with before the electronic apparatus <NUM> is turned off based on apparatus information (S420), when it is determined that the type is changed (S420: YES), transmit the apparatus information to the server <NUM>. The server <NUM> may determine the type of the electronic apparatus <NUM> based on the received apparatus information (S440). When it is determined whether the determined type is present in a pre-stored table and it is determined that the determined type is not present (S450: NO), the determined type may be added to the table as a new type (S460). Information of the electronic apparatus <NUM> is added to the table to which the new type is added (S490). The server <NUM> may transmit policy information to the electronic apparatus <NUM> (S495).

Meanwhile, when the determined type exists in the pre-stored table (S450; YES), the server <NUM> determiines a predetermined number of samples with respect to the corresponding type (S470). When it is determined whether monitoring target devices as many as the number of samples are present and it is determined that the monitoring target devices as many as the number of samples are not present (S480: NO), the information of the electronic apparatus <NUM> is added to the table (S490). The server <NUM> transmits the policy information to the electronic apparatus <NUM> (S495).

The processor <NUM> determines whether the execution of a program code is a normal operation based on the policy information received from the server <NUM> through the communicator <NUM> and transmits determination result information about whether the normal operation to the server <NUM> through the communicator <NUM>.

The policy information is information for verification of a program including a plurality of program codes and performing a predetermined function and may include target information and determination information. The target information is information indicating a program code to be monitored. The determination information is information for determining whether the execution result of the program code to be monitored results from the normal operation.

The target information may include information such as a name of a source file including the program code to be monitored, a location (or a line) of the program code to be monitored in the source file, items (e.g., a return value, a parameter, required time, etc.) to be determined when the program code to be monitored is executed, and the like.

The determination information includes information about a normal result of the items to be determined when the program code to be monitored is executed. For example, when the item to be determined when the program code to be monitored is executed is at least one of the return value, a parameter value, and the required time, the determination information may include information about the at least one of a normal return value, a normal parameter value, and normal required time.

According to another exemplary embodiment, when there are a plurality of items to be determined when the program code to be monitored is executed, the determination information may include a normal combination value corresponding to normal result values with respect to the plurality of items. For example, when the normal return value is <NUM>, the normal parameter value is <NUM>, and the normal required time is <NUM> or less, <NUM> may be calculated as the normal combination value corresponding to a combination of these based on a predetermined reference. According to the present embodiment, instead of including all of a plurality of normal result values on the plurality of items to be determined when the program code to be monitored is executed, one normal combination value corresponding to the combination of these is included, and thus it is advantageous that an amount of data transferred from the server <NUM> to the electronic apparatus <NUM> may be reduced.

The policy information may include one or a plurality of pieces of target information. When the policy information includes the plurality of pieces of target information, the determination information may include not only the normal result value or the normal combination value with respect to the items to be determined when the program code to be monitored is executed but also information about a normal execution order of the plurality of program codes to be monitored. The information about the normal execution order may include information indicating what program code is first executed among the plurality of program codes to be monitored upon the normal operation and information about the normal execution order of the other program codes after the program code to be first executed. The determination information may include a normal result pattern that groups the normal combination values with respect to the plurality of program codes and a normal order pattern that represents a normal order of the plurality of program codes.

The processor <NUM> may perform a predetermined function using the program stored in the memory <NUM>. When the program code corresponding to the target information included in the policy information is executed during performing the predetermined function, the processor <NUM> compares a result of executing the program code and the determination information included in the policy information to determine whether the program code normally operates.

When there are a plurality of items to be determined when the program code corresponding to the target information is executed, the determination information may include a plurality of normal result values with respect to the plurality of items. In this case, the processor <NUM> may compare a plurality of result values with respect to the plurality of items when the program code corresponding to the target information is executed and the plurality of normal result values included in the determination information to determine whether the executed program code normally operates.

For example, when the items to be determined when the program code corresponding to the target information is executed are a return value, a parameter value, and required time, the determination information may include normal result values with respect to the return value, the parameter value, and the required time. The processor <NUM> may compare the return value, the parameter value, the required time according to the execution of the program code corresponding to the target information and the normal return value, the normal parameter value, and the normal required time included in the determination information respectively to determine whether the executed program code normally operates.

When there are the plurality of items to be determined when the program code corresponding to the target information is executed, the determination information may include a normal combination value corresponding to a combination of the plurality of normal result values with respect to the plurality of items. In this case, the processor <NUM> may calculate a combination value corresponding to a combination of the plurality of result values with respect to the plurality of items when the program code corresponding to the target information is executed and compare the calculated combination value and the normal combination value included in the determination information to determine whether the executed program code normally operates. A reference for the processor <NUM> to calculate the combination value is the same as the reference for the server <NUM> to calculate the normal combination value. Information about the reference may be pre-stored in the memory <NUM> or may be included in the policy information and provided to the electronic apparatus <NUM>.

For example, when the items to be determined when the program code corresponding to the target information is executed are the return value, the parameter value, and the required time, and when the determination information includes the return value, the parameter value, and the required time, the server <NUM> may calculate the normal combination value corresponding to a combination of the normal result values with respect to each of them according to a predetermined reference, the processor <NUM> may calculate a combination value corresponding to a combination of the return value, the parameter value, and the required time according to the execution of the program code corresponding to the target information according to the same reference of the predetermined reference and compare the calculated combination value with the normal combination value included in the determination information to determine whether the executed program code normally operates.

When the policy information includes a plurality of target information, the processor <NUM> may determine whether each of the plurality of program codes corresponding to the plurality of target information normally operates. The processor <NUM> may determine whether each of the plurality of program codes normally operates based on the normal result value or the normal result value included in the determination information with respect to each of the plurality of program codes as described above.

When the policy information includes the plurality of target information, the determination information may include not only the normal result value or the normal combination value but also information about a normal order. In this case, the processor <NUM> may compare an execution order of the program codes corresponding to the plurality of target information and the determination information to determine whether the plurality of program codes normally operate.

The information about the normal execution order may include information indicating what program code is first executed among the plurality of program codes corresponding to the plurality of target information during the normal operation and information about a normal execution order of the other program codes after the program code to be first executed. Based on the information about the normal execution order, the processor <NUM> may determine whether a plurality of programs corresponding to the plurality of target information are executed in the normal order. The information indicating what program code is first executed corresponding to the plurality of target information during the normal operation is referred to as trigger information and the program code is first executed during the normal operation is referred to as a trigger.

When the execution of the trigger is detected based on the trigger information, the processor <NUM> may determine an order of the program codes corresponding to the target information executed until the trigger is detected again after the detection of the trigger and determine whether the determined order is a normal order based on the information about the normal execution order included in the determination information.

An exemplary embodiment in which the normal operation is determined will be described with reference to <FIG> below.

Referring to <FIG>, a source file with a file title a. cpp corresponds to a program that performs a channel switching function. Policy information may include target information A, target information B, and target information C as a plurality of target information. The target information A corresponds to a program code of "Set_Tune ()". The target information B corresponds to a program code of "Check_TunerLock ()". The target information C corresponds to a program code of "Check_DecoderLock ()". More specifically, the target information A includes information indicating that a name of a source file including a program code to be monitored is a. cpp, a position of the program code to be monitored in the corresponding source file is a 100th line, and an item (or condition) to be determined when the program code to be monitored is executed is a return value, a parameter, and required time. Like the target information A, the target information B and the target information C include information indicating that names of source files including program codes to be monitored, positions (or lines) of the program codes to be monitored in the source files , and items to be determined when the program codes to be monitored are executed.

The target information A to C may constitute one target group and is named as a target group <NUM>. The policy information includes the target information A to C and determination information. In the present example, the determination information includes a normal result pattern including <NUM> as a normal combination value corresponding to the target information A, <NUM> as a normal combination value corresponding to the target information B, and <NUM> as a normal combination value corresponding to the target information C, and a normal order pattern including information about the normal execution order including information indicating that a program code corresponding to the target information A is the trigger, and information indicating that an order of "the program code corresponding to the target information A → the program code corresponding to the target information B → the program code corresponding to the target information C" is the normal execution order.

The normal result pattern may be expressed in the form of "10_103" (target group number_normal combination value). The normal order pattern may be expressed in the form of "10_ABC" (target group number_normal order).

The server <NUM> provides the policy information to the electronic apparatus <NUM>. The processor <NUM> writes information about a program code corresponding to the target information included in the policy information on a buffer when the program code is executed.

When execution of the program code A corresponding to the target information A that is the trigger is detected, the processor <NUM> determines an order of the program codes C and B corresponding to the target information executed until the execution of the program code A is detected again after the execution of the program code A is detected.

Then, the processor <NUM> calculates a combination value corresponding to a combination of a return value, a parameter, and required time according to the execution of the program code A. In the present example, the combination value is <NUM>. Similarly, the processor <NUM> calculates a combination value corresponding to a combination of a return value, a parameter, and required time according to the execution of the program code C. In the present example, the combination value is <NUM>. Similarly, the processor <NUM> calculates a combination value corresponding to a combination of a return value, a parameter, and required time according to the execution of the program code B. In the present example, the combination value is <NUM>.

The processor <NUM> may generate an order pattern based on the order of the executed program codes. The order pattern may be generated, for example, "10_ACB" to represent a target group number ('<NUM>' in the example of <FIG>) and the order of the executed program codes. The processor <NUM> may then generate a result pattern based on the calculated combination values. The result pattern is generated to represent a target group number and a combination value calculated with respect to each of the executed program codes. The combination value may be listed corresponding to an order of the program code A, the program code B, and the program code C that is the normal execution order. Thus, the combination value is generated as "10_103".

The processor <NUM> may determine whether the generated order pattern and result pattern are included in the determination information to determine whether the program codes A, B, and C normally operate. When at least one of the order pattern and the result pattern is not included in the determination information, the processor <NUM> may determine that the program codes A, B, and C abnormally operate.

The processor <NUM> may transmit determination result information about whether the normal operation is determined to the server <NUM> through the communicator <NUM> based on a result of determination whether the normal operation is determined.

According to an exemplary embodiment, the processor <NUM> may transmit the determination result information about whether the normal operation is determined to the server <NUM> through the communicator <NUM> only when the abnormal operation is determined, except when the normal operation is determined.

According to another exemplary embodiment, the electronic apparatus <NUM> may operate in a first mode in which the determination result information about whether the normal operation is determined is transmitted to the server <NUM> only when the abnormal operation is determined or a second mode in which the determination result information is transmitted when the abnormal operation is determined and when the normal operation is determined. The second mode is a mode that may be used when a sufficient debugging database is not secured in the server <NUM>. The second mode is a mode in which even when a normal pattern included in the determination information is detected to obtain a probability distribution diagram with respect to the number of cases in the pattern, the determination result is transmitted to the server <NUM> to obtain the probability distribution diagram with respect to the number of cases in the pattern. The second mode is a mode that may be used, for example, at a development stage. The first mode may be referred to as "Only Detection mode". The second mode may be referred to as "Detection & Learning mode".

Any one of the first mode and the second mode may be selected by a manipulation of a user of the electronic apparatus <NUM>. Alternatively, the server <NUM> may control the electronic apparatus <NUM> to operate in the first mode or the second mode. For example, the server <NUM> may transmit information about a result notification method to the electronic apparatus <NUM> by including the information in the policy information. The information about the result notification method is information indicating which mode the electronic apparatus <NUM> should operate in the first mode or the second mode. The processor <NUM> may operate in the first mode in which only an abnormal result is transmitted when the information about the result notification method included in the policy information received from the server <NUM> indicates the first mode, and may operate in the second mode in which all of the determination results are transmitted when the information indicates the second mode.

The determination result information about whether the normal operation is determined transmitted by the electronic apparatus <NUM> to the server <NUM> may include at least one of an order pattern and a result pattern that may be generated as in the above-described example.

The processor <NUM> may transmit only information about a pattern corresponding to the abnormality in the order pattern and the result pattern to the server <NUM> or may also transmit a pattern corresponding to the normal that may be considered with the pattern corresponding to the abnormality to the server <NUM>.

Hereinafter, an operation of the server <NUM> that receives the determination result information about determination will be described.

The server <NUM> may update the policy information based on the determination result information about whether the normal operation is determined received from the electronic apparatus <NUM> and provide the updated policy information to the electronic apparatus <NUM>.

The server <NUM> updates a pre-stored pattern table based on the determination result information about whether the normal operation is determined received from the electronic apparatus <NUM> and modifies the policy information based on the updated pattern table. The pattern table may include a pattern of a plurality of program codes, that is, an order pattern and a result pattern, and may include information about weights differently set with respect to a pattern corresponding to the abnormal operation and a pattern corresponding to the normal operation.

The processor <NUM> of the server <NUM> may provide information about the pattern to the user (a person in charge of debugging) when a pattern corresponding to the determination result information received from the electronic apparatus <NUM> is not in the pre-stored pattern table, and, when weight information about the pattern is input from the user in response to the provision of the information about the pattern, update the pre-stored pattern table using the input weight information and the pattern.

For example, the processor <NUM> may provide the information about the pattern to a terminal (a computer, a mobile phone, etc.) of the user through the communicator <NUM>, and when the user determines whether the patterns corresponds to the abnormal operation or the normal operation and inputs a weight to the terminal, the server <NUM> may receive information about the input weight through the communicator <NUM>. For example, a positive weight may be set for the pattern corresponding to the normal operation, and a negative weight may be set for the pattern corresponding to the abnormal operation.

The processor <NUM> may modify the policy information to include a plurality of patterns constituting the updated pattern table and determination information corresponding to the weight information about each of the plurality of patterns.

When the policy information is modified, the processor <NUM> may control the communicator <NUM> to provide the modified policy information to the electronic apparatus <NUM>.

A process of modifying and providing the policy information will be described in more detail with reference to <FIG>.

<FIG> is a flowchart illustrating a process of modifying and providing policy information according to an exemplary embodiment of the present disclosure.

Referring to <FIG>, the electronic apparatus <NUM> receives the policy information from the server <NUM> (S610). The electronic apparatus <NUM> monitors whether a program code corresponding to target information is executed based on the target information included in the received policy information (S620). When it is detected that the program codes corresponding to the target information are executed during monitoring, the electronic apparatus <NUM> determines whether an execution order of the program codes is a normal execution order or a result value according to the execution of the program codes is normal based on determination information included in the policy information (S630). The electronic apparatus <NUM> may determine whether it is a normal operation by comparing a normal pattern included in the determination information with a pattern generated according to the execution of the program code. A pattern may have an order pattern and a result pattern. When determining that it is not the normal operation, the electronic apparatus <NUM> transmits information about an abnormal pattern to the server <NUM> (S645). When determining that it is the normal operation as a result of determination, the electronic apparatus <NUM> determines whether a result notification method is a first mode or a second mode (S640). The first mode is a mode in which a determination result is transmitted to the server <NUM> only when the abnormal operation is determined. The second mode is a mode in which the determination result is transmitted to the server <NUM> both of when the abnormal operation is determined and the normal operation is determined. When it is determined that the result notification method is the second mode, the electronic apparatus <NUM> transmits the pattern (S650).

When the pattern is received, the server <NUM> determines whether the received pattern exists in a pre-stored pattern table (S660). When it is determined that the pattern is a new pattern that does not exist in the pattern table, the server <NUM> may notify a manager <NUM> about the pattern to see that the pattern corresponds to the normal operation (S665). The manager <NUM> may be a developer of a program to be monitored. As a method of notifying the manager <NUM> about the pattern, information about the pattern may be transmitted to a terminal apparatus of the manager <NUM> pre-registered in the server <NUM> through the communicator <NUM>.

The manager <NUM> may determine whether the notified pattern is a normal pattern (S670). When the notified pattern is determined to be abnormal or when the notified pattern is determined to be normal, the manager <NUM> may set weights differently (S675). For example, a negative value (for example, '-<NUM>') may be set for the pattern when it is determined to be abnormal, and a positive value (for example, '<NUM>') may be set for the pattern when it is determined to be normal. Then, information about the set weights is transmitted to the server <NUM> (S680).

The server <NUM> may update the pattern table (S690). For example, when the pattern transmitted in steps S645 and S650 exists in the pattern table, the server <NUM> may update the pattern table by increasing a frequency of the pattern. Also, the server <NUM> may update the pattern table based on the weight provided from the manager <NUM>.

The server <NUM> may modify the policy information based on the updated pattern table (S695). For example, the server <NUM> may generate a list of normal patterns based on the frequency and the weight of each of a plurality of patterns constituting the updated pattern table. The list of normal patterns may also be called a white list. Specifically, the server <NUM> may derive a list of normal patterns based on a determination reference that the probability of a normal operation is higher as the frequency is higher. The server <NUM> may include the pattern to which the positive value is set in the normal pattern list irrespective of the frequency. The pattern to which the negative weight is set may not be included in the normal pattern list regardless of the frequency. Meanwhile, since the manager <NUM> may not set a weight for every pattern, a default weight value of <NUM> may be automatically set for patterns for which the manager <NUM> does not set a weight. Among the patterns for which the weight of <NUM> is set, patterns having frequency equal to or greater than a predetermined frequency may be included in the normal pattern list. The server <NUM> may modify the policy information based on the normal pattern list generated above. The normal pattern list may be included in the determination information of the policy information. Then, the server <NUM> may transmit the modified policy information to the electronic apparatus <NUM>, and the electronic apparatus <NUM> may receive the modified policy information (S610).

<FIG> is a diagram for explaining an example of a case where the electronic apparatus <NUM> is implemented as a TV.

Referring to <FIG>, the electronic apparatus <NUM> may be implemented as, for example, an analog TV, a digital TV, a 3D-TV, a smart TV, an LED TV, an OLED TV, a plasma TV, a monitor, a curved TV having a screen with fixed curvature, a flexible TV having the screen with fixed curvature, a bended TV having the screen with fixed curvature, and/or a curvature-variable TV capable of changing curvature of a current screen according to a received user input but is not limited thereto.

The electronic apparatus <NUM> may include the memory <NUM>, the communicator <NUM>, the processor <NUM>, a tuner <NUM>, an input/output unit <NUM>, a display <NUM> and an audio output unit <NUM>.

The memory <NUM>, the communicator <NUM> and the processor <NUM> described in <FIG> may perform the same functions as the memory <NUM>, the communicator <NUM>, and the processor <NUM> described with reference to <FIG>.

The tuner <NUM> may tune and select only a frequency of a channel to be received by an external apparatus among many radio wave components through amplification, mixing, resonance, etc. of a broadcast signal received by wired or wirelessly. The broadcast signal may include video, audio, and additional data (e.g., an EPG (Electronic Program Guide).

The tuner <NUM> may receive broadcast signals from various sources such as terrestrial broadcast, cable broadcast, or satellite broadcast.

The tuner <NUM> may be implemented in an all-in-one with the electronic apparatus <NUM> or a separate apparatus (e.g., a set-top box or a tuner connected to the input/output unit <NUM>) having a tuner unit electrically connected to the electronic apparatus <NUM>.

The communicator <NUM> is formed for connecting the electronic apparatus <NUM> to an external apparatus and may be connected to a terminal apparatus through a local area network (LAN) and the Internet network, as well as a USB (Universal Serial Bus) port or a wireless communication port. For example, the communicator <NUM> may perform communication using at least one of communication methods such as infrared communication (IrDA), radio frequency identification (RFID), near field communication (NFC), wireless fidelity (WiFi), ultra wideband (UWB), wireless display (WiDi), WirelessHD (WiHD), Wireless Home Digital Interface (WHDI), Miracast, Wigig (Wireless Gigabit Alliance), Wi-Fi Direct, Bluetooth (ex. Bluetooth Classic), Bluetooth Low Energy, AirPlay, Z-wave, 4LoWPAN, LTE D2D, GPRS, Weightless, Edge Zigbee, Digital Living Network Alliance (DLNA), ANT+, Digital Enhanced Cordless Telecommunications (DECT), Wireless Local Area Network (WLAN), Global System for Mobile communications (GSM), Universal Mobile Telecommunication System (UMTS), Long-Term Evolution (LTE), and Wireless Broadband (WiBRO).

The input/output unit <NUM> is a configuration to be connected to other apparatuses. The input/output unit <NUM> may include at least one of a high-definition multimedia interface (HDMI) port <NUM>, a component input jack <NUM>, and a USB port <NUM>. The input/output unit <NUM> may further include at least one of ports such as RGB, DVI, HDMI, DP, Thunderbolt, and the like.

The display <NUM> is a configuration for displaying an image and may be implemented as a liquid crystal display (LCD), and in some cases, a cathode ray tube (CRT), a plasma display panel (PDP), an organic light emitting diode (OLED), or a liquid crystal display diode, and TOLED (transparent OLED). Also, the display <NUM> may be implemented as a touch screen capable of sensing a touch manipulation of a user.

Various screens may be provided through the display <NUM>. For example, a UI screen for receiving a selection of any one of a first mode in which only a determination result of an abnormal operation is transmitted to the server <NUM> and a second mode in which determination results of both abnormal and normal operations are transmitted to the server <NUM> may be provided through the display <NUM>.

The audio output unit <NUM> is a configuration for outputting audio, for example, audio included in the broadcast signal received through the tuner <NUM>, audio input through the communicator <NUM>, the input/output unit <NUM>, or audio included in an audio file stored in the memory <NUM>. The audio output unit <NUM> may include a speaker <NUM> and a headphone output terminal <NUM>.

The memory <NUM> may store various data, programs, or applications for driving and controlling the electronic apparatus <NUM> under the control of the processor <NUM>. For example, the memory <NUM> may store the policy information provided from the server <NUM>. The policy information may be updated by receiving update information from the server <NUM>. Update may be performed by adding at least one of new target information and new determination information to the existing policy information or replacing the policy information.

The processor <NUM> controls the overall operation of the electronic apparatus <NUM> and the signal flow between the internal components of the electronic apparatus <NUM> and performs a function of processing data. The processor <NUM> may be implemented as a CPU, an ASIC, a SoC, a MICOM, or the like.

The processor <NUM> accesses the memory <NUM> and performs booting using an O/S stored in the memory <NUM>. The processor <NUM> may perform various functions using various programs, contents, data, and the like stored in the memory <NUM>.

<FIG> is a flowchart for explaining a control method of an electronic apparatus according to an exemplary embodiment of the present disclosure. The flowchart shown in <FIG> may be configured with operations that are processed in the electronic apparatus <NUM> described herein. Therefore, even if omitted below, the contents described with respect to the electronic apparatus <NUM> may also be applied to the flowchart shown in <FIG>.

Referring to <FIG>, the electronic apparatus receives policy information including target information and determination information from an external server (S810).

The electronic apparatus performs a predetermined function using a program including a plurality of program codes and performing the predetermined function, and, when a program code corresponding to the target information is executed while performing the predetermined function, compare an execution result of the program code with the determination information to determine whether the program code normally operates (S820).

The policy information may include a plurality of target information. In this case, in step S820, the electronic apparatus may determine whether each of the plurality of program codes corresponding to the plurality of target information normally operates.

In this case, the electronic apparatus may compare an execution order of the plurality of program codes corresponding to the plurality of target information with the determination information to determine whether each of the plurality of program codes normally operates.

The electronic apparatus transmits determination result information about whether the program code normally operates to the external server. In this case, only when it is determined that the program code abnormally operates, the electronic apparatus may transmit the determination result information about whether the program code normally operates to the server. Alternatively, based on information about a result notification method included in the policy information, the electronic apparatus may selectively operate in a mode in which the determination result information is transmitted both of when the abnormal operation is determined and when the normal operation is determined or in a mode in which the determination result information is transmitted only when the abnormal operation is determined.

According to the control method of the electronic apparatus <NUM> described above, debugging time and cost may be reduced. The above-described control method of the electronic apparatus may be performed in the electronic apparatus of <FIG> or the electronic apparatus of <FIG>. A program for performing the control method of the electronic apparatus described above may be stored in a recording medium.

<FIG> is a flowchart illustrating a control method of a server according to an exemplary embodiment of the present disclosure. The flowchart shown in <FIG> may be configured with operations that are processed in the server <NUM> described herein. Therefore, even if omitted below, the contents described with respect to the server <NUM> may also be applied to the flowchart shown in <FIG>.

Referring to <FIG>, the server provides policy information for verification of a program including a plurality of program codes and performing a predetermined function (S910).

The server receives determination result information about whether a program code corresponding to the policy information normally operates from the electronic apparatus (S920).

The server updates a pre-stored pattern table based on the determination result information received from the electronic apparatus, and modifies the policy information based on the updated pattern table (S930).

For example, when a pattern corresponding to the determination result information received from the electronic apparatus does not belong to the pre-stored pattern table, the server may provide information about the pattern to a user, and when receiving weight information about the pattern in response to the provision of the information about the pattern, update the pre-stored pattern table using the input weight information and the pattern.

In this case, the server may generate a list of normal patterns based on the frequency of each of a plurality of patterns constituting the updated pattern table and the weight information, and modify the policy information to include the generated list of normal patterns.

When the policy information is modified, the server provides the modified policy information to the electronic apparatus (S940).

The server receives apparatus information from each of a plurality of electronic apparatuses, classifies the plurality of electronic apparatuses into a plurality of types based on the received apparatus information, and provides the same policy information to the plurality of electronic apparatuses of the same type. The apparatus information may include at least one of country information, software model information, and connection device information.

The server includes a memory storing a table having the plurality of types and information of electronic apparatuses corresponding to the plurality of types, respectively. Upon receiving the apparatus information from the electronic apparatus, the server determines a type corresponding to the received apparatus information and selectively adds information of the electronic apparatus to the table based on the number of samples in the determined type and the table stored in the memory.

According to the control method of the server according to the above-described embodiment, since the number of samples is specified for each type and debugging information is collected only from a predetermined number of apparatuses, the memory may be managed more efficiently than debugging information is acquired from all devices. Also, debugging information may be collected and learned from various devices, and policy information may be updated in real time, and thus it is possible to quickly and accurately handle a problem. Further, since a simplified pattern is used compared to existing debugging data when a problem occurs, the debugging time may be greatly shortened.

The control method of the server according to the embodiment described above is performed in the server of <FIG>. A recording medium storing a program for performing the control method of the server according to the above-described embodiment may be provided.

Meanwhile, the various embodiments described above may be embodied in a recording medium which may be read by a computer or a similar apparatus using software, hardware, or a combination thereof. According to a hardware implementation, the embodiments described in the present disclosure may be implemented using at least one of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, and an electrical unit for performing other functions. According to a software implementation, embodiments such as the procedures and functions described herein may be implemented in separate software modules. Each of the software modules may perform one or more of the functions and operations described herein.

Computer instructions for performing the processing operations in the electronic apparatus <NUM> according to various embodiments of the present disclosure described above may be stored in a non-transitory computer-readable medium. The computer instructions stored in the non-transitory computer-readable medium cause a specific device to perform the processing operations in the electronic apparatus <NUM> according to the various embodiments described above when executed by a processor of the specific device.

For example, a non-transitory computer-readable medium storing a program performing a control method of an electronic apparatus may be provided, wherein the control methods includes a step of receiving policy information including target information and determination information from an external server and a step of performing a predetermined function using the program including a plurality of program codes and performing the predetermined function, when a program code corresponding to the target information is executed while performing the predetermined function, comparing an execution result of the program code with the determination information and determining whether the program code normally operates.

Computer instructions for performing the processing operations in the server according to various embodiments of the present disclosure described above may be stored in a non-transitory computer-readable medium. The computer instructions stored in the non-volatile computer-readable medium cause a specific device to perform the processing operations in the server according to the various embodiments described above when executed by a processor of the specific device.

For example, a non-transitory computer-readable medium storing a program performing a control method of a server may be provided, wherein the control methods includes a step of providing policy information for verification of a program constituted by a plurality of program codes and performing a predetermined function to an electronic apparatus, a step of receiving determination result information about whether a program code corresponding to the policy information normally operates from the electronic apparatus, a step of updating a pre-stored pattern table based on the determination result information received from the electronic apparatus and modifying the policy information based on the updated pattern table, and a step of, when the policy information is modified, providing the updated policy information to the electronic apparatus.

The non-transitory computer-readable medium is not a medium that stores data for a short period of time, such as a register, cache, memory, etc., but is a medium that semi-permanently stores data and is readable by a device. Specific examples of the non-transitory computer-readable medium include CD, DVD, hard disk, Blu-ray disk, USB, memory card, ROM, and the like.

According to an embodiment, the methods according to the various embodiments disclosed in the present document may be included and provided in a computer program product. The computer program product may be traded as a product between a seller and a purchaser. The computer program product may be distributed in a form of a storage medium (for example, a compact disc read only memory (CD-ROM)) that may be read by a device or online through an application store (for example, PlayStore™). In the case of the online distribution, at least portions of the computer program product may be at least temporarily stored in a storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server or be temporarily generated.

Claim 1:
A server (<NUM>) comprising:
a first communicator (<NUM>) configured to:
provide, provide (S495), to a first electronic apparatus (<NUM>), policy information for verifying a program including a plurality of program codes and performing a predetermined function, wherein the policy information comprises target information indicating one of the program codes to be monitored and determination information including information regarding normal operation of the program code indicated by the target information, and
receive (S430), from the first electronic apparatus, determination result information about whether the program code indicated by the policy information operates normally; and
a first processor (<NUM>) configured to update (S460, S690) a pre-stored pattern table based on the received determination result information and modify (S695) the policy information based on the updated pattern table, wherein the pattern table stores information regarding the operation of the program code indicated by the target information,
wherein the first processor is configured to control the first communicator to provide (<NUM>, S610) the modified policy information to the first electronic apparatus when the policy information is modified,
wherein the first communicator (<NUM>) is configured to receive apparatus information from each of a plurality of electronic apparatuses (<NUM>) including the first electronic apparatus, and
wherein the first processor (<NUM>) is configured to classify (S440) the plurality of electronic apparatuses into a plurality of types based on the received apparatus information and provide the same policy information to the plurality of electronic apparatuses of the same type,
wherein the server further comprises:
a first memory storing a table having the plurality of types and information of electronic apparatuses corresponding to the plurality of types, respectively; and
an operation input unit configured to receive (S470) information about number of samples for each of the plurality of types; and,
wherein the first processor (<NUM>) is configured to, when receiving the apparatus information from the first electronic apparatus, determine (S440) a type corresponding to the received apparatus information, and selectively add (S490) information of the first electronic apparatus to the table based (S480) on the number of samples in the determined type and the table stored in the first memory.