Foldable electronic device and operating method thereof

By using Hall sensors and motion sensors to identify the folding angle of the housing in foldable electronic devices and dynamically adjusting the Hall sensor threshold, the problem of failures caused by unexpected operation is solved, current consumption is reduced, and the reliability of the device is improved.

CN120917399APending Publication Date: 2025-11-07SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480022778.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-31
Filing Date
2024-03-21
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

Foldable electronic devices are prone to failure under unexpected opening or closing operations, increasing current consumption and heat generation in the display and application processor. Existing Hall IC methods cannot effectively prevent such failures.

Method used

By combining Hall sensors and motion sensors, the threshold of the Hall sensors is dynamically adjusted by identifying the folding angle information of the housing, thus preventing display driver failures caused by unexpected opening or closing operations.

Benefits of technology

It effectively prevents increased current consumption due to external forces or user misoperation, reduces unnecessary power consumption, and improves the reliability of electronic equipment and battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120917399A_ABST
    Figure CN120917399A_ABST
Patent Text Reader

Abstract

The present document relates to a foldable electronic device and an operation method of the electronic device. According to one embodiment, an electronic device may include: a first case and a second case foldable relative to each other; a magnet disposed in at least one of the first housing and the second housing; a memory; a Hall sensor that detects a magnetic force value of the magnet that changes according to folding of the first housing and the second housing, and outputs an interrupt signal based on a set threshold value; a motion sensor; and at least one processor electrically connected to the Hall sensor, the motion sensor, and the memory. According to one embodiment, at least one processor may be configured to: identify folding angle information of a first housing and a second housing through a motion sensor according to an identification interrupt signal; and changing a first threshold value of the Hall sensor based on the folding angle information. Other embodiments are possible.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The disclosure relates to a foldable electronic device and an operating method of an electronic device for preventing power consumption due to a malfunction in the electronic device. BACKGROUND

[0002] Electronic devices have been developed in various forms to provide various services, applications, or functions for the convenience of users. As the variety of services, applications, and functions provided by electronic devices gradually increases, a larger display is needed to provide more screen space.

[0003] In recent years, various types of electronic devices (e.g., foldable or flexible electronic devices) have been developed in which the shape of a housing can be deformed to accommodate a larger display. A foldable electronic device can have a housing, a portion of which can be opened or closed, and an external force or user usage can cause a malfunction of the electronic device by performing an unintended opening or closing operation. SUMMARY

[0004] TECHNICAL SOLUTION

[0005] An electronic device can have an IC (hereinafter, a Hall IC) disposed in a housing and using a Hall effect that utilizes a change in magnetic force, and the Hall IC can identify an opening and closing operation of the electronic device. The electronic device can be configured to prevent a malfunction of a driving transition of a display due to a small magnetic difference of a threshold value caused by an unintended opening or closing operation caused by an external force or user usage. However, the existing Hall IC operation method simply uses only a magnetic value along one axis of the Hall IC to identify whether a threshold value is exceeded, thereby causing a malfunction due to various external influences, which can cause the electronic device to wake up and significantly increase current consumption and heat generation in a display and an application processor (AP).

[0006] The disclosure aims to provide a foldable electronic device and an operating method of an electronic device for preventing power consumption due to a malfunction in the electronic device.

[0007] An electronic device according to one embodiment of the disclosure can include a first housing and a second housing foldable with respect to each other, a magnetic substance disposed in at least one of the first housing and the second housing, a memory, a Hall sensor configured to detect a magnetic force value of the magnetic substance and output an interrupt signal based on a set threshold value, a motion sensor, and at least one processor electrically connected to the Hall sensor, the motion sensor, and the memory, the magnetic force value of the magnetic substance varying according to folding of the first housing and the second housing.

[0008] According to an embodiment, the memory can store instructions that, when executed by the at least one processor, cause the electronic device to identify folding angle information of the first housing and the second housing by using the motion sensor according to identification of the interrupt signal.

[0009] According to an embodiment, the memory can store instructions that, when executed by the at least one processor, cause the electronic device to change a threshold value of the Hall sensor based on the folding angle information.

[0010] According to an embodiment, the operation method of the electronic device can include an operation of identifying folding angle information of a first housing and a second housing of the electronic device by using a motion sensor according to identification of an interrupt signal output by a Hall sensor of the electronic device based on a set threshold value.

[0011] According to an embodiment, the method can include an operation of changing a threshold value of the Hall sensor based on the folding angle information.

[0012] According to an embodiment, the non-transitory computer-readable storage medium can store a program, wherein the program can include instructions that, when executed by at least one processor of an electronic device, cause the electronic device to perform an operation of identifying folding angle information of a first housing and a second housing of the electronic device by using a motion sensor of the electronic device according to identification of an occurrence of an interrupt signal output by a Hall sensor of the electronic device, and changing a threshold value of the Hall sensor based on the folding angle information. BRIEF DESCRIPTION OF DRAWINGS

[0013] Figure 1 is a block diagram illustrating an electronic device in a network environment according to various embodiments.

[0014] Figure 2a and Figure 2b is a view illustrating an example of a configuration of an electronic device according to an embodiment.

[0015] Figure 2c and Figure 2d is a view illustrating opening and closing of an electronic device according to an embodiment.

[0016] Figure 3a and Figure 3b is a view illustrating an example of a threshold value change of a Hall sensor in an electronic device according to an embodiment.

[0017] Figure 4 is a view illustrating an example of an operation method in an electronic device according to an embodiment.

[0018] Figure 5 is a view illustrating an example of an operation method in an electronic device according to an embodiment.

[0019] Figure 6a and Figure 6b are views showing examples of an operation method in an electronic device according to an embodiment.

[0020] Figure 7 are views showing examples of an operation method in an electronic device according to an embodiment.

[0021] Figure 8 are views showing examples of an operation method in an electronic device according to an embodiment.

[0022] Figure 9 are views showing effects of an operation method in an electronic device according to an embodiment.

[0023] Figure 10 are views showing effects of an operation method in an electronic device according to an embodiment.

[0024] In the description of the drawings, the same or similar reference labels can be used for the same or similar elements. DETAILED DESCRIPTION

[0025] An electronic device according to various embodiments will be described with reference to the accompanying drawings. The term "user" used in various embodiments can refer to a person using the electronic device or a device (e.g., an artificial intelligence electronic device) using the electronic device.

[0026] Figure 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to Figure 1 , the electronic device 101 in the network environment 100 can communicate with an electronic device 102 via a first network 198 (e.g., a short-range wireless communication network), or an electronic device 104 or a server 108 via a second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 can communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 can include a processor 120, a memory 130, an input module 150, a sound output module 155, a display module 160, an audio module 170, a sensor module 176, an interface 177, a connection terminal 178, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a subscriber identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the components (e.g., the connection terminal 178) can be omitted from the electronic device 101, or one or more other components can be added in the electronic device 101. In some embodiments, some of the components (e.g., the sensor module 176, the camera module 180, or the antenna module 197) can be implemented as a single component (e.g., the display module 160).

[0027] The processor 120 can execute, for example, software (e.g., a program 140) to control at least one other component (e.g., a hardware or software component) of the electronic device 101 coupled with the processor 120 and can perform various data processing or computation. According to one embodiment, as at least a part of the data processing or computation, the processor 120 can store a command or data received from another component (e.g., the sensor module 176 or the communication module 190) in the volatile memory 132, process the command or data stored in the volatile memory 132, and store resultant data in the non-volatile memory 134. According to an embodiment, the processor 120 can include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) or a subsidiary processor 123 (e.g., a graphics processing unit (GPU), a neural processing unit (NPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that can operate independently from, or in conjunction with, the main processor 121. For example, when the electronic device 101 includes the main processor 121 and the subsidiary processor 123, the subsidiary processor 123 can be adapted to consume less power than the main processor 121, or to be specialized in a particular function. The subsidiary processor 123 can be implemented as separate from, or as part of, the main processor 121.

[0028] The auxiliary processor 123 can control at least some of the functions or states related to at least one component (e.g., the display module 160, the sensor module 176, or the communication module 190) of the electronic device 101, instead of the main processor 121 while the main processor 121 is in an inactive state (e.g., sleep), or together with the main processor 121 while the main processor 121 is in an active state (e.g., executing an application). According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) can be implemented as a part of another component (e.g., the camera module 180 or the communication module 190) functionally related to the auxiliary processor 123. According to an embodiment, the auxiliary processor 123 (e.g., a neural processing unit) can include a hardware structure dedicated to processing of an artificial intelligence model. The artificial intelligence model can be generated by machine learning. Such learning can be, for example, performed by the electronic device 101 executing an artificial intelligence or via a separate server (e.g., the server 108). The learning algorithm can include, but is not limited to, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning. The artificial intelligence model can include multiple artificial neural network layers. The artificial neural network can be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more thereof, but is not limited thereto. Additionally or alternatively, the artificial intelligence model can include a software structure other than the hardware structure.

[0029] The memory 130 can store various data used by at least one component (e.g., the processor 120 or the sensor module 176) of the electronic device 101. The various data can include, for example, software (e.g., the program 140) and input data or output data about a command related thereto. The memory 130 can include the volatile memory 132 or the non-volatile memory 134.

[0030] The program 140 can be stored in the memory 130 as software, and can include, for example, an operating system (OS) 142, middleware 144, or an application 146.

[0031] The input module 150 can receive a command or data to be used by another component (e.g., the processor 120) of the electronic device 101 from the outside (e.g., a user) of the electronic device 101. The input module 150 can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0032] The sound output module 155 can output sound signals to the outside of the electronic device 101. The sound output module 155 can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as playing multimedia or playing recording, and the receiver can be used for receiving an incoming call. According to an embodiment, the receiver can be implemented as separate from the speaker, or can be implemented as part of the speaker.

[0033] The display module 160 can visually provide information to the outside (e.g., a user) of the electronic device 101. The display module 160 can include, for example, a display, a hologram device, or a projector and a control circuit for controlling a corresponding one of the display, the hologram device, and the projector. According to an embodiment, the display module 160 can include a touch sensor adapted to detect a touch, or a pressure sensor adapted to measure the intensity of force incurred by the touch.

[0034] The audio module 170 can convert a sound into an electrical signal and vice versa. According to an embodiment, the audio module 170 can obtain sound through the input module 150, or output sound through the sound output module 155 or a headphone of an external electronic device (e.g., an electronic device 102) directly (e.g., wiredly) or wirelessly coupled with the electronic device 101.

[0035] The sensor module 176 can detect an operational state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) external to the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 can include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0036] The interface 177 can support one or more specified protocols to be used for the electronic device 101 to be coupled with the external electronic device (e.g., the electronic device 102) directly (e.g., wiredly) or wirelessly. According to an embodiment, the interface 177 can include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.

[0037] The connection terminal 178 can include a connector to which the electronic device 101 can be physically connected with the external electronic device (e.g., the electronic device 102). According to an embodiment, the connection terminal 178 can include, for example, a HDMI connector, a USB connector, a SD card connector, or an audio connector (e.g., a headphone connector).

[0038] The haptic module 179 can convert electrical signal into a mechanical stimulus (e.g., vibration or movement) or electrical stimulus that can be recognized by a user via his tactile sensation or kinesthetic sensation. According to an embodiment, the haptic module 179 can include, for example, a motor, a piezoelectric element, or an electrical stimuluser.

[0039] The camera module 180 can capture still images or moving images. According to an embodiment, the camera module 180 can include one or more lenses, image sensors, image signal processors, or flashes.

[0040] The power management module 188 can manage power supplied to the electronic device 101. According to an embodiment, the power management module 188 can be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

[0041] The battery 189 can supply power to at least one component of the electronic device 101. According to an embodiment, the battery 189 can include, for example, a primary cell, a secondary cell, or a fuel cell.

[0042] The communication module 190 can support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., the electronic device 102, the electronic device 104, or the server 108) and performing communication via the established communication channel. The communication module 190 can include one or more communication processors that are operable independently from the processor 120 (e.g., an application processor (AP)) and supports a direct (e.g., wired) communication or a wireless communication. According to an embodiment, the communication module 190 can include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with the external electronic device via the first network 198 (e.g., a short-range communication network, such as Bluetooth TM , wireless-fidelity (Wi-Fi) direct, or infrared data association (IrDA)) or the second network 199 (e.g., a long-range communication network, such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or wide area network (WAN)). These various types of communication modules can be implemented as a single component (e.g., a single chip) or can be implemented as separate components (e.g., separate chips) from each other. The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network, such as the first network 198 or the second network 199, using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module 196.

[0043] The wireless communication module 192 can support a 5G network and next-generation communication technology after 4G network, e.g., new radio (NR) access technology. The NR access technology can support enhanced mobile broadband (eMBB), massive machine-type communications (mMTC), or ultra-reliable low-latency communications (URLLC). The wireless communication module 192 can support a high frequency band (e.g., a millimeter wave (mmWave) band) to achieve, e.g., a high data transmission rate. The wireless communication module 192 can support various techniques for securing performance on a high frequency band, such as, e.g., beamforming, massive multiple-input multiple-output (massive MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beamforming, or large scale antenna. The wireless communication module 192 can support various requirements specified in the electronic device 101, an external electronic device (e.g., an electronic device 104), or a network system (e.g., a second network 199). According to an embodiment, the wireless communication module 192 can support a peak data rate for implementing eMBB (e.g., 20 Gbps or more), a loss coverage for implementing mMTC (e.g., 164 dB or less), or a U-plane latency for implementing URLLC (e.g., 0.5 ms or less for each of downlink (DL) and uplink (UL), or 1 ms or less for a round trip).

[0044] The antenna module 197 can transmit or receive a signal or power to or from the outside (e.g., an external electronic device) of the electronic device 101. According to an embodiment, the antenna module 197 can include an antenna including a radiating element composed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment, the antenna module 197 can include a plurality of antennas (e.g., array antennas). In this case, at least one antenna suitable for a communication scheme used in a communication network, such as the first network 198 or the second network 199, can be selected, e.g., by the communication module 190 (e.g., the wireless communication module 192), from among the plurality of antennas. Then a signal or power can be transmitted or received between the communication module 190 and an external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element can additionally be formed as part of the antenna module 197.

[0045] According to various embodiments, the antenna module 197 can form a millimeter wave antenna module. According to an embodiment, the millimeter wave antenna module can include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., a bottom surface) of the printed circuit board and capable of supporting a designated high frequency band (e.g., a millimeter wave frequency band), and a plurality of antennas (e.g., array antennas) disposed on or adjacent to a second surface (e.g., a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving a signal of the designated high frequency band.

[0046] At least some of the above-described components can be coupled mutually via an inter-peripheral communication scheme (e.g., a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicate signals (e.g., commands or data) between them.

[0047] According to an embodiment, commands or data can be transmitted or received between the electronic device 101 and the external electronic device 104 via the server 108 coupled with the second network 199. Each of the electronic devices 102 or 104 can be a device of a same type as or different from the electronic device 101. According to an embodiment, all or some of the operations to be performed by the electronic device 101 can be performed by one or more of the external electronic devices 102, 104, or 108. For example, if the electronic device 101 is to automatically perform a function or a service, or in response to a request from a user or another device, the electronic device 101, instead of or in addition to performing the function or the service, can request one or more of the external electronic devices to perform at least part of the function or the service. The external electronic device(s) that receive the request can perform at least part of the function or service requested, or an additional function or an additional service related to the request, and deliver the results of the performance to the electronic device 101. The electronic device 101 can provide the results, with or without further processing of the results, as at least part of a reply to the request. To that end, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing techniques can be used. For example, the electronic device 101 can use distributed computing or mobile edge computing to provide an ultra-low-latency service. In another embodiment, the external electronic devices 104 can include an Internet of Things (IoT) device. The server 108 can be an intelligent server using machine learning and / or a neural network. According to an embodiment, the external electronic devices 104 or the server 108 can be included in the second network 199. The electronic device 101 can be applied to intelligent services (e.g., smart home, smart city, smart car, or health care) based on 5G communication technology or IoT-related technology.

[0048] Figure 2a andFigure 2b is a view illustrating an example of a configuration of an electronic device according to an embodiment, Figure 2c and Figure 2d is a view illustrating opening and closing of an electronic device according to an embodiment, and Figure 3a and Figure 3b is a view illustrating an example of a threshold change of a Hall sensor in an electronic device according to an embodiment.

[0049] Referring to Figure 1 , Figure 2a , Figure 2b , Figure 2c and Figure 2d , an electronic device 101 according to an embodiment (e.g., the electronic device 101 in Figure 1 , Figure 2a , Figure 2b , Figure 2c and Figure 2d may include a housing including a first housing structure 210, a second housing structure 220, at least one processor 120, a memory 130, a display module 160, and a sensor module 176 including a plurality of sensors. Furthermore, the electronic device can further include other components. The electronic device 101 can be configured to have a housing of a deformable shape (e.g., a foldable or flexible shape).

[0050] According to an embodiment, the first housing structure 210 and the second housing structure 220 can be disposed on opposite sides about a folding axis B (e.g., a folding axis in a horizontal direction) and can be rotatably coupled to each other about the folding axis B so as to be folded facing each other by a hinge structure 260. Without being limited thereto, according to another embodiment, the housing of the electronic device 101 can be configured by further including another housing structure in addition to the first housing structure 210 and the second housing structure 220, and can be configured to have a structure that can be folded into various shapes by a plurality of folding axes. According to another embodiment, the electronic device 101 can be configured to allow a portion of the housing to be folded in a direction (e.g., a vertical direction perpendicular to the y-axis of B or a vertical direction) different from the folding axis B of Figure 2a .

[0051] According to an embodiment, the camera module (e.g., the camera module 280) included in the electronic device 101 can include a plurality of cameras (e.g., a first camera 281, a second camera 282, and a third camera 283) disposed in different directions (e.g., a front direction, a side direction, and a rear direction) of the electronic device 101. Figure 1The camera 214, various sensors 215, and a speaker (e.g., a receiver) 216 among the components of the electronic device 101 (e.g., the camera module 180) can be disposed in the first housing structure 210. For another embodiment, the camera 214, various sensors 215, and the speaker 216 can be additionally arranged in at least a partial area of the second housing structure 220 or be replaced. According to another embodiment, at least a part of the camera 214, various sensors 215, and the speaker 216 can be arranged in at least a partial area of the first housing 210, and the remaining part of the camera 214, various sensors 215, and the speaker 216 can be arranged in at least a partial area of the second housing structure 220. The camera 214 can be exposed through an opening provided on one corner of the front surface (e.g., the first surface 211) of the first housing structure 210. The sensor 215 can include at least one of a proximity sensor, an optical sensor, an iris recognition sensor, an ultrasonic sensor, or a finger print sensor. For example, the sensor 215 can be exposed to the front surface of the electronic device 101 through an opening provided on one corner of the first housing structure 210, or can be arranged at a lower end of at least a partial area of the display 161. For example, the electronic device 101 can further include a camera (e.g., a rear camera) exposed through an opening provided on one corner of the second surface 212 of the first housing structure 210.

[0052] According to an embodiment, the electronic device 101 can include a plurality of open and close magnets 201 in each of the first housing structure 210 and the first housing structure 220, and a first sensor (e.g., a Hall sensor (Hall IC)) 203 configured to detect generation of an interrupt signal based on a change in a magnetic force value according to the open and close of the open and close magnets 201. The electronic device 101 can include a second sensor (e.g., a motion sensor) configured to detect a motion and a folding angle of the electronic device according to the open and close, and a third sensor (e.g., a grip sensor) configured to a grip state of a user's hand, and in addition thereto, the electronic device 101 can include various sensors. The second sensor is a motion sensor, and has been described using at least one 6-axis sensor as an example, but can include various other sensors capable of detecting a motion and a folding angle.

[0053] According to an embodiment, although not shown in the drawings, the electronic device 101 can include an earphone jack, an external speaker module, a SIM card tray, an interface connector port, or at least one key button arranged through the first housing structure 210 and / or the housing structure 220.

[0054] According to an embodiment, according to a unfolded state (or open or flat state) of the electronic device 101 (e.g., Figure 2a and Figure 2bThe unfolded state, folded state (or closed state) shown in the figure (e.g., Figure 2c The angle between the first housing structure 210 and the second housing structure 220 can have an angle and distance between them, and can be either a folded state or an intermediate state (or a half-folded state). The description of the state can be replaced with a description of the pattern. An intermediate state can indicate a half-folded state, wherein the first surface 211 of the first housing structure 210 and the second surface 221 of the second housing structure 220 are arranged to have a specified reference angle (e.g., 90 degrees or 80 to 100 degrees) between them. An unfolded state can indicate a state where the first surface 211 of the first housing structure 210 and the first surface 221 of the second housing structure 220 are opened to have an angle exceeding a specified reference angle (e.g., 90 to 180 degrees or 101 to 180 degrees), or a fully opened and unfolded state (e.g., a 180-degree angle). The folded state can indicate that the first surface 211 of the first housing structure 210 and the first surface 221 of the second housing structure 220 are closed at an angle within the range of angles less than a specified reference angle (e.g., less than 90 degrees or less than 80 degrees to 0 to 5 degrees), or are completely closed and folded (e.g., 0 to 5 degrees).

[0055] According to an embodiment, when electronic device 101 performs opening and closing operations by folding or unfolding (or opening) the first housing structure 210 and the second housing structure 220 relative to the hinge structure 260, the opening / closing state can be determined by the first sensor based on the magnetic force (or the intensity of the magnetic force) caused by the proximity of the magnet (e.g., magnetic material) 201 and the first sensor (e.g., Hall sensor) 203, using a magnetic force value that varies according to the distance between the magnet (e.g., magnetic material) 201 and the first sensor (e.g., Hall sensor) 203. According to an embodiment, the first sensor (e.g., Hall sensor) 203 can acquire the magnetic force of the magnetic material in real time and, using the acquired magnetic force value, generate an interrupt signal when the value (folding angle) is greater than a threshold (THD) within a predetermined range. According to an embodiment, when an interrupt signal has been generated, electronic device 101 can control the wake-up of the application processor (AP) according to the state of electronic device 101 and perform operations suitable for the state of electronic device 101 (e.g., display ON).

[0056] According to an embodiment, the foldable electronic device 101 can be configured such that the hinge also has a holding force because the magnets for fixation are arranged at both ends of the terminal for the folded state, but if the holding force of the hinge is exceeded due to an external force, shaking (e.g., running), degradation of the holding force of the hinge after a period of use, or the like, the electronic device can not be completely closed and can become unfixable. In this case, since the magnetic force recognized by the first sensor 203 changes as a result of opening, the flow of the magnetic force can occur as shown in Figure 2c , such that the display is switched to the driving state by the first sensor 203 regardless of the user's intention of use, thereby causing a malfunction. As shown in Figure 2d , the user can perform repeated opening and closing operations of the foldable electronic device 101 without intention. In this case, when the user does not actually use the electronic device, the electronic device 101 can consume a large amount of current due to driving of unnecessary APs and the display.

[0057] According to an embodiment, in the case of a malfunction due to an external force as shown in Figure 2c and a malfunction due to hinge movement caused by repeated opening and closing operations as shown in Figure 2d , the electronic device can perform an operation to prevent an increase in current consumption from a level of 10 mA in a sleep state (e.g., AP and LCD sleep state) to about 250 mA when the screen is on (e.g., AP and LCD wake-up).

[0058] According to an embodiment, the processor 120 of the electronic device 101 can identify, from the first sensor 203, an interrupt signal generated by opening or closing of the housing of the electronic device 101 based on a magnetic value detected by using a first sensor among a plurality of sensors. The processor 120 can identify whether the interrupt signal is generated in a sleep state, and in the case where the interrupt signal has not been generated, can maintain the sleep state. Here, the sleep state can indicate a state in which the AP and the display 161 are not driven (e.g., wake-up). The first sensor 203 can constantly operate in the sleep state without consuming additional current as well as generating the interrupt signal.

[0059] According to an embodiment, the processor 120 can acquire motion information of a portion of the housing by using a second sensor (e.g., a motion sensor) among the plurality of sensors, and identify the folding angle information by using the motion information. Here, the second sensor can be a plurality of 6-axis sensors located at the upper end / lower end or left end / right end of the housing of the electronic device. The motion information can be acquired based on acceleration or gyroscope values detected by the second sensor, and can include information about whether the first housing structure 210 and the second housing structure 220 of the electronic device 101 are moving and the amount of motion. The second sensor can constantly operate in a sleep state without consuming additional current as well as detecting motion and momentum.

[0060] According to an embodiment, the processor 120 can identify a malfunction and normal operation of the electronic device 101 based on the motion information. According to an embodiment, the processor 120 can determine the operation state based on the motion of the 6-axis sensor after the generation of the interrupt signal. According to an embodiment, for example, in a case where a primary sensor of the 6-axis sensor located in the first housing structure (e.g., the upper end or the left area) 210 of the electronic device 101 is in a stationary state and a secondary sensor of the 6-axis sensor located in the second housing structure (e.g., the lower end or the right area) 220 of the electronic device 101 is in a stationary state, the processor 120 can identify a malfunction. According to an embodiment, for example, in a case where the primary sensor located in the first housing structure 210 is in a motion state and the secondary sensor located in the second housing structure 220 is in a stationary state, the processor 120 can identify normal operation. According to an embodiment, for example, in a case where the primary sensor located in the first housing structure 210 is in a stationary state and the secondary sensor located in the second housing structure 220 is in a motion state, the processor 120 can identify normal operation. According to an embodiment, in a case where the primary sensor located in the first housing structure 210 and the secondary sensor located in the second housing structure 220 are in a motion state and have different amounts of motion, the processor 120 can identify normal operation. According to an embodiment, in a case where the primary sensor located in the first housing structure 210 and the secondary sensor located in the second housing structure 220 are in a motion state and have the same amount of motion, the processor 120 can identify a malfunction.

[0061] According to an embodiment, the processor 120 can change the threshold of the first sensor 203 from a first threshold to a second threshold based on fault identification. Here, the first threshold can be configured using the magnetic force value of each specified state (e.g., open state, open threshold state, closed threshold state, and closed state) of one axis (e.g., the X-axis), and when a fault is identified, the first threshold can be changed to the second threshold using the magnetic force value of each specified state (e.g., open state, open threshold state, closed threshold state, and closed state) of each of the three axes (e.g., the X-axis, Y-axis, and Z-axis). According to an embodiment, the processor 120 can store data on the magnetic force of each of the three axes, collected experimentally using various types of external magnets, in memory, which can be used to identify faults. Here, a fault in the electronic device 101 may cause the magnetic force identified by the first sensor 203 to have different values ​​on the x-axis, y-axis, and z-axis depending on the position, strength, shape, etc., of the magnet. According to an embodiment, the processor 120 can identify the fault using the difference between the magnetic force value acquired by the first sensor 203 and a fixed value caused by folding at the upper and lower ends. According to an embodiment, the processor 120 can use one axis (e.g., the X-axis) during normal conditions, but can use three axes (e.g., X, Y, and Z axes) when magnetic forces change due to hinge movement. Figure 3a As shown, according to an embodiment, processor 120 can configure a nulling region within a magnetic force range exceeding a predetermined amount of magnetic force value in the open and closed states to block deviations in the magnetic force range that may occur in electronic device 101. According to an embodiment, processor 120 can compare the acquired magnetic force value with a reference value for a specified state of each of the three axes (e.g., open state (e.g., 180 degrees), open threshold (THD) state (e.g., 20 degrees), closed threshold (THD) state (e.g., 5 degrees), and closed state (e.g., 0 degrees)). Here, the closed threshold (closed THD) state can indicate the closed threshold angle (e.g., 5 degrees) that has been identified for using a configuration of the first sensor (e.g., a Hall sensor) to identify the closed state when switching from open to closed. The open threshold (open THD) state can indicate the open threshold angle (e.g., 10 degrees or 20 degrees) that has been identified for using a configuration of the first sensor (e.g., a Hall sensor) to identify the open state when switching from closed to open. The open state can indicate a state where the magnetic force value of the first sensor (e.g., a Hall sensor) is used to identify a fully open angle (e.g., 180 degrees), and the closed state can indicate a state where the magnetic force value of the first sensor (e.g., a Hall sensor) is used to identify a fully closed angle (e.g., 0 degrees).

[0062] refer to Figure 3a andFigure 3b According to an embodiment, the processor 120 can change an open threshold angle (e.g., 10 degrees or 20 degrees) according to the movement of the hinge. Here, the open threshold angle can indicate a threshold of the first sensor for outputting an interrupt signal output by the first sensor (e.g., a Hall sensor). According to an embodiment, the processor 120 can change a hysteresis region (a range between a close threshold angle (e.g., 5 degrees) and the open threshold angle) to prevent screen switching malfunction due to hinge movement. When the threshold of the first sensor is changed from a first threshold (e.g., an open threshold angle of 10 degrees) to a second threshold (e.g., an open threshold angle of 20 degrees), the processor 120 can change an existing hysteresis region (e.g., a 5-degree to 10-degree region (5-degree interval)) to an extended hysteresis region (e.g., a 5-degree to 20-degree region (15-degree interval)). According to an embodiment, the processor 120 can configure a folding angle of 0 degrees to 20 degrees as a close region, and a folding angle of 5 degrees to 180 degrees as an open region.

[0063] According to an embodiment, if not identified as a malfunction, the processor 120 can identify a normal operation, and control the display module 160 to turn on the display 161.

[0064] According to an embodiment, when a malfunction is not identified using the first sensor and the second sensor, and a normal operation is identified, the processor 120 can be configured to identify whether the opening or closing of the electronic device is repeated for a short period of time for each of the additional designated modes (e.g., a hand holding mode and a pocket mode), to identify the exact intention and situation, and switch the display 1161 to a driving state.

[0065] According to an embodiment, the processor 120 can detect the holding of the user's hand by using the third sensor, and identify whether it is a holding state. The processor 120 can be configured to switch from a sleep state to an AP driving state when the interrupt signal is generated, and can identify whether it is in the holding state and whether the opening and closing in the AP driving state are repeated.

[0066] According to an embodiment, the processor 120 can identify a hand holding mode based on the holding state, and perform an operation of identifying a malfunction caused by hinge movement based on the folding angle and the opening and closing repetition in the hand holding mode. Here, the hand holding mode can be a mode in which a first threshold (e.g., 10 degrees) of the previous first sensor outputting the interrupt signal is changed to a second threshold (e.g., 20 degrees) so as to prevent a malfunction caused by hinge movement of the electronic device 101 by the user when the user's hand holds the electronic device 101, and when the opening and closing of the electronic device 101 are repeatedly performed, an operation of ignoring the interrupt signal for a predetermined period of time is performed.

[0067] According to an embodiment, the processor 120 can identify a pocket mode based on the non-holding state, and identify a malfunction caused by hinge movement based on a folding angle in the pocket mode and opening and closing repetition. Here, the pocket mode can be a mode in which a threshold value of the first sensor 203 is changed to a second threshold value (e.g., 20 degrees) to prevent an external force (e.g., running, climbing stairs, riding an amusement facility) exceeding a fixed force of the hinge of the electronic device 101 from occurring while the electronic device 101 is in a user's bag or pocket, and when opening and closing of the electronic device 101 is repeatedly performed, an operation of ignoring an interrupt signal for a predetermined period of time is performed.

[0068] According to an embodiment, the processor 120 can compare a folding angle (e.g., a set angle configured by including angles measured for a designated period of time (e.g., 1 or 1.5 seconds)) acquired using the second sensor in the handheld mode with a first reference angle (e.g., 20 degrees) to identify a malfunction due to hinge movement. When identifying that the folding angle is less than or equal to the first threshold angle (e.g., 20 degrees), the processor 120 can identify a malfunction due to hinge movement, and can change a threshold value of the first sensor (e.g., a Hall sensor) to a second threshold value (e.g., 20 degrees) to expand a threshold angle range (e.g., a hysteresis region) (e.g., from a 5-degree interval to a 15-degree interval) to prevent a malfunction due to hinge movement. Here, the first reference angle (e.g., 20 degrees) can be designated as another angle according to a model of the electronic device or an empirical judgment.

[0069] According to an embodiment, when identifying that the folding angle exceeds the first reference angle (e.g., 20 degrees), the processor 120 can compare the folding angle with a second reference angle (e.g., 90 degrees) to identify opening and closing repetition in the handheld mode. In the handheld mode, there are many malfunctions caused by a user's repeated opening and closing operation, and thus a timeout time can be separately identified based on the second reference angle (e.g., 90 degrees). In this case, depending on a model of the electronic device, a user's experience, a use environment, or a use habit, the second reference angle can be additionally designated as a different angle (e.g., 80 degrees or 70 degrees). According to an embodiment, when the folding angle does not exceed the second reference angle (e.g., 90 degrees), the processor 120 can identify whether an interrupt signal is generated during a first timeout period (e.g., 1 second). When the interrupt signal has been generated, the processor 120 can identify that it is opening and closing repetition, and when the interrupt signal is not generated, can identify normal operation. According to an embodiment, when the folding angle exceeds the second reference angle (e.g., 90 degrees), the processor 120 can identify whether an interrupt signal is generated during a second timeout period (e.g., 1.5 seconds). When the interrupt signal has been generated, the processor can identify that it is opening and closing repetition, and when the interrupt signal is not generated, can identify normal operation.

[0070] According to an embodiment, when the opening and closing repetition is identified, the processor 120 can increase a count, and when the increased count is greater than or equal to a reference value, can ignore the interrupt signal for a predetermined time. According to an embodiment, when the increased count is less than the reference value, the processor 120 can determine the operation state of the electronic device 101 as normal operation.

[0071] According to an embodiment, the processor 120 can compare the folding angle acquired using the second sensor in the pocket mode with a first reference angle (e.g., 20 degrees). Here, the first reference angle (e.g., 20 degrees) can be designated as another angle according to the model of the electronic device or empirical judgment. According to an embodiment, based on the folding angle being less than or equal to the first threshold angle (e.g., 20 degrees), the processor 120 can identify a malfunction caused by the hinge movement, and can change the threshold value of the first sensor to a second threshold value (e.g., 20 degrees) so as to expand the threshold angle range (e.g., a hysteresis region) (e.g., from a 5-degree range to a 15-degree range) to prevent the malfunction caused by the hinge movement. According to an embodiment, the processor 120 can identify whether the interrupt signal has been generated during a timeout time (e.g., 1 second), identify the opening and closing repetition in a case where the interrupt signal has been generated, and identify the operation state of the electronic device 101 as normal operation in a case where the interrupt signal has not been generated.

[0072] According to an embodiment, the processor 120 can increase a count according to the identification of the opening and closing repetition, and when the increased count is greater than or equal to a threshold value, ignore the interrupt signal for a predetermined time period, and when the increased count is less than the threshold value, identify the operation state of the electronic device 101 as normal operation.

[0073] According to an embodiment, when the interrupt signal is ignored, the processor 120 can control the display 161 to turn on only a part of the display to display a notification message (e.g., "Folding repetition detected" or "Folding repetition detected, turn on only a part of the screen to save battery time. If you want to view the entire screen, touch below.") instead of a debounce time during which the display 161 is forced to be turned off.

[0074] According to an embodiment, when the interrupt signal has been generated, the processor 120 can perform an operation corresponding to each malfunction situation by using sensing data (e.g., raw data) of the second sensor and the third sensor, change the first threshold value and / or the second threshold value, finally identify the state of the first sensor (e.g., a Hall sensor), and drive or not drive the display, and then restore the first threshold value and / or the second threshold value.

[0075] The electronic device 101 according to an embodiment can implement a software module (e.g., programs 140 in Figure 1 ) for preventing current consumption due to a malfunction. The memory 130 of the electronic device 101 can store commands (e.g., instructions) for implementing the software module. The at least one processor 120 can execute the instructions stored in the memory 130 to implement the software module and control hardware (e.g., the sensor module 176, the power management module 188, or the communication module 190 in Figure 1 ) related to the functions of the software module. According to an embodiment, the software module of the electronic device 101 can be configured by including a kernel (or a HAL), a framework (e.g., middleware 144 in Figure 1 ), and an application (e.g., the applications 146 in Figure 1 ). At least a portion of the software module can be preloaded on the electronic device 101 or downloaded from a server (e.g., the server 108).

[0076] In the above-described embodiments, the main components of the electronic device have been described by the electronic device 101 in Figure 1 and Figures 2a to 2d . However, not all of the components shown in Figure 1 and Figures 2a to 2d are essential components, and the electronic device 101 can be implemented with more components than the components shown or with fewer components. Also, the locations of the main components of the electronic device 101 described by Figure 1 and Figures 2a to 2d may vary according to various embodiments.

[0077] According to one embodiment, a foldable electronic device (e.g., the electronic device 101 in Figure 1 and Figures 2a to 2d ) can include a first housing and a second housing foldable with respect to each other, a magnetic substance disposed in at least one of the first housing and the second housing, a memory (e.g., the memory 130 in Figure 1 ), a Hall sensor (e.g., the Hall sensor 203 in Figure 2a and Figure 2b ) configured to detect a magnetic force value of the magnetic substance, which changes according to folding of the first housing and the second housing, and output an interrupt signal based on a set threshold value, a motion sensor, and at least one processor (e.g., the processor 120 in Figure 1 ) electrically connected to the Hall sensor, the motion sensor, and the memory.

[0078] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to identify folding angle information of the first and second housings by using the motion sensor according to identification of the interrupt signal.

[0079] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to change a threshold value of the Hall sensor based on the folding angle information.

[0080] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to identify a malfunction of the electronic device based on motion information acquired using the motion sensor, and change a threshold value of the Hall sensor from a first threshold value to a second threshold value.

[0081] According to an embodiment, the motion information can include whether each of the first and second housing structures moves and an amount of motion.

[0082] According to an embodiment, the motion sensor can include at least one 6-axis sensor.

[0083] According to an embodiment, the first threshold value can be an open threshold angle value set using a magnetic force value of one axis of the motion sensor, and the second threshold value can be an open threshold angle value set using a magnetic force value of each of three axes of the motion sensor.

[0084] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to identify a pocket mode or a hand holding mode of the electronic device by using a third sensor among the plurality of sensors, acquire a folding angle configured by opening and closing of the electronic device by using a second sensor, identify a malfunction caused by hinge movement based on the folding angle being less than or equal to a first reference angle, and change a second threshold value of the Hall sensor.

[0085] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to, in the pocket mode, based on identifying that the folding angle is greater than the first reference angle and that opening and closing repetition is repeated, ignore the interrupt signal for a specified period of time, and in the pocket mode, based on the folding angle being greater than the first reference angle and identifying that there is no opening and closing repetition, identify normal operation and switch a display of the electronic device to a driven state.

[0086] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to identify the opening and closing repetition in a case where the interrupt signal has been generated a specified number of times or more for a specified period of time.

[0087] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to, in the handheld mode, based on identifying that the folding angle is greater than the first reference angle and that the opening and closing repetition of the first housing and the second housing is repeated, ignore the interrupt signal for a designated time period, in the handheld mode, based on identifying that the folding angle is greater than the first reference angle and that the opening and closing repetition is not repeated, identify normal operation and switch the display of the electronic device to the driven state.

[0088] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to, in the handheld mode, in a case where the folding angle is greater than the second reference angle and the interrupt signal is generated a designated number of times or more during a designated first time period, identify the opening and closing repetition, and in the handheld mode, in a case where the folding angle is less than or equal to the second reference angle and the interrupt signal is generated a designated number of times or more during a designated second time period, identify the opening and closing repetition.

[0089] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to, in changing the second threshold value of the first sensor, change the second threshold value to a second folding angle that is greater than a designated first folding angle.

[0090] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to, based on identifying that the folding angle is greater than the first reference angle and that the opening and closing repetition of the first housing and the second housing is repeated, activate a partial area of the display of the electronic device and deactivate a remaining area of the display of the electronic device, and control the display to display a notification message on the partial area of the display.

[0091] According to an embodiment, the memory can store instructions, when executed by the at least one processor, cause the electronic device to perform an operation of driving the display and then restore the changed threshold value of the Hall sensor.

[0092] Figure 4 FIG. 1 is a view illustrating an example of an electronic device according to an embodiment.

[0093] Reference Figure 4 In operation 401, the electronic device according to an embodiment (e.g., the electronic device 101 in FIG. 1) can identify an interrupt signal generated from a first sensor based on a magnetic force value detected using the first sensor among a plurality of sensors. Here, the first sensor can correspond to a Hall sensor (Hall IC). Figure 1 and Figures 2a to 2d In operation 401, the electronic device according to an embodiment (e.g., the electronic device 101 in FIG. 1) can identify an interrupt signal generated from a first sensor based on a magnetic force value detected using the first sensor among a plurality of sensors. Here, the first sensor can correspond to a Hall sensor (Hall IC).

[0094] In operation 403, the electronic device can identify folding angle information of the first housing and the second housing by using a second sensor among the plurality of sensors according to the identification of the interrupt signal. Here, the second sensor can correspond to a motion sensor. In the disclosure, the second sensor is a motion sensor and has been described using at least one 6-axis sensor as an example, but can include various other sensors capable of detecting motion and folding angle. Here, the folding angle information can be information related to an angle between the first housing and the second housing according to a motion of rotating around a folding axis (for example, Figure 2a B) in the electronic device, of the first housing and / or the second housing (including a folding angle configured to set an angle by including an angle identified based on 6-axis sensor data corresponding to a magnetic force and / or an angle measured during a specified time period (for example, 1 second or 1.5 seconds) in an open and close repetition case (for example, a failure case due to hinge movement)).

[0095] In operation 405, the electronic device can identify a failure (for example, a failure caused by an external magnetic force and / or a failure caused by hinge movement) based on the folding angle information. In operation 407, the electronic device can change the threshold value of the first sensor according to the identification of the failure.

[0096] According to an embodiment, when, for example, a stationary state in which the 6-axis sensor is not moved is identified or sensors at different positions are identified to have the same amount of motion (raw data), the electronic device can identify a failure caused by an external magnetic force based on the identified folding angle information. The electronic device can change the threshold value of the first sensor from a specified threshold value THD#0 to a first threshold value THD#1 based on the identification of the failure caused by the external magnetic force. Here, the specified threshold value THD#0 is a process threshold initially configured, which can be configured using a magnetic force value for each specified state (for example, an open state, an open threshold state, a close threshold state, and a closed state) of one axis (for example, an X axis) among X, Y, or Z axes. The first threshold value THD#1 can be configured using a nulling region of a Hall sensor configured to ignore a magnetic force exceeding a close-open region due to an external magnetic force and a magnetic force value of each of the specified states (for example, an open state, an open threshold state, a close threshold state, and a closed state) of each of three axes (for example, an x axis, a y axis, and a z axis).

[0097] According to an embodiment, in a case where a malfunction caused by hinge movement is identified based on the identified folding angle information, the electronic device can change the threshold value of the first sensor to a designated threshold value THD#0 or from the first threshold value THD#1 to a second threshold value THD#2. Here, the second threshold value THD#2 can be configured using a null region of a Hall sensor configured to ignore a magnetic force exceeding a close-open region due to an external magnetic force, a magnetic force value of each of three axes (for example, an x-axis, a y-axis, and a z-axis), and an opening angle range (hysteresis region) condition.

[0098] Figure 5 are views illustrating examples of an operation method in an electronic device according to an embodiment, and Figure 6a and Figure 6b are views illustrating examples of an operation method in an electronic device according to an embodiment.

[0099] Referring to Figure 5 , Figure 6a and Figure 6b , in operation 501, an electronic device (for example, the electronic device 101 in Figure 1 and Figures 2a to 2d ) according to an embodiment can identify whether an interrupt signal has been generated from a first sensor by opening or closing a housing of the electronic device based on a magnetic force value detected using the first sensor among a plurality of sensors. Here, the first sensor can correspond to a Hall sensor (Hall IC). As a result of the identification, in a case where the interrupt signal has not been generated, in operation 503, the electronic device can remain in a sleep state. Here, the sleep state can indicate a state in which an AP and a display are not driven (for example, awakened). The first sensor can constantly operate without consuming additional current and generate the interrupt signal in the sleep state. As a result of the identification in operation 501, in a case where the interrupt signal has been generated, the electronic device can perform operation 505.

[0100] In operation 505, the electronic device according to an embodiment can identify whether a part (first housing and / or second housing) of the housing is moved by using a second sensor (for example, a motion sensor) among the plurality of sensors. Here, the second sensor can be a plurality of 6-axis sensors located at the upper end / lower end or left end / right end of the housing of the electronic device. The electronic device can acquire, through the second sensor, motion information including whether each of the first housing structure and the second housing structure of the electronic device is moved and an amount of motion thereof, and can acquire folding angle information based on the magnetic force value and the motion information. The second sensor can constantly operate without consuming additional current and detect motion and momentum in the sleep state. The electronic device according to an embodiment can identify whether there is a malfunction in the electronic device based on the folding angle information.

[0101] As a result of the identification in operation 505, in a case where movement has been generated, the electronic device can perform operation 509, and in a case where movement has not been generated, the electronic device can perform operation 507. According to an embodiment, after generating the interrupt signal, the electronic device can determine the operation based on the movement of the 6-axis sensor as shown in Figure 6a For example, in a case where the main sensor of the 6-axis sensor, for example, located in the first housing structure (e.g., the upper end or the left side area) of the electronic device, is in a stationary state and the sub sensor of the 6-axis sensor located in the second housing structure (e.g., the lower end or the right side area) of the electronic device is in a stationary state, the electronic device can identify a malfunction caused by an external magnetic force. For example, in a case where the main sensor, for example, located in the first housing structure (e.g., the upper end or the left side area) is in a motion state and the sub sensor located in the second housing structure (e.g., the lower end or the right side area) of the electronic device is in a stationary state, the electronic device can identify normal operation. For example, in a case where the main sensor, for example, located in the first housing structure (e.g., the upper end or the left side area) is in a stationary state and the sub sensor located in the second housing structure (e.g., the lower end or the right side area) of the electronic device is in a motion state, the electronic device can identify normal operation. For example, in a case where the main sensor, for example, located in the first housing structure (e.g., the upper end or the left side area) of the electronic device and the sub sensor located in the second housing structure (e.g., the lower end or the right side area) are in a motion state and have different amounts of motion, the electronic device can identify normal operation. For example, in a case where the main sensor, for example, located in the first housing structure (e.g., the upper end or the left side area) of the electronic device and the sub sensor located in the second housing structure (e.g., the lower end or the right side area) are in a motion state and have the same amount of motion, the electronic device can identify a malfunction caused by an external magnetic force.

[0102] In operation 507 (operation 505 - No), the electronic device can identify a malfunction caused by an external magnetic force and change the threshold value of the first sensor. The electronic device can change the threshold value of the first sensor from the reference threshold value THD#0 to the first threshold value THD#1. Here, the reference threshold value THD#0 can be configured using a magnetic force value for each designated state (e.g., an open state, an open threshold state, a close threshold state, and a close state) of one axis (e.g., an x-axis). As Figure 6bAs shown, in the event of a malfunction in the electronic device caused by an external magnetic force, the first threshold THD#1 can be configured using magnetic force values ​​for each of the three axes (e.g., x-axis, y-axis, and z-axis) in each specified state (e.g., on state, on threshold state, off threshold state, and off state). According to an embodiment, the electronic device can store data on the magnetic force of each of the three axes, collected experimentally using various types of external magnets, in its memory. This data can be used to identify malfunctions caused by external magnetic forces. Here, a malfunction caused by an external magnetic force in the electronic device 101 may result in the magnetic force identified by the first sensor (Hall IC) having different values ​​on the x-axis, y-axis, and z-axis depending on the magnet's position, strength, shape, etc. Figure 6b As shown, when identifying a fault caused by external magnetic force, the electronic device can utilize the difference between the magnetic force value acquired by the first sensor and a fixed value caused by folding at the upper and lower ends. The electronic device can use one axis (e.g., the X-axis) during normal conditions, but can use three axes (e.g., X, Y, and Z axes) when changes in external magnetic force occur. The electronic device can configure a zero-depression region for a magnetic force range exceeding the magnetic force values ​​in the open and closed states to block deviations in the magnetic force range that may occur within the electronic device. According to an embodiment, the electronic device can compare the acquired external magnetic force value with a reference value for a specified state (e.g., open state, open threshold (open THD) state, closed threshold (closed THD) state, and closed state) for each of the three axes. When comparing only the x-axis, the electronic device can identify a fault if the acquired external magnetic force value is greater than the reference value for the open state, and prevent a fault if the acquired external magnetic force values ​​for the y-axis and z-axis are respectively less than or equal to the reference value for the open threshold state of the y-axis and exceed the open threshold of the z-axis. The electronic device can identify a fault if each of the acquired external magnetic force values ​​for the x-axis and z-axis is greater than or equal to a reference value for the open threshold state, and prevent a fault if the acquired external magnetic force for the y-axis exceeds a reference value for the open state of the y-axis. When comparing only the x-axis, the electronic device can identify a fault if the acquired external magnetic force value is greater than a reference value for the open threshold state, and prevent a fault if the acquired external magnetic force values ​​for the y-axis and z-axis exceed a reference value for the open state of the y-axis and are less than a threshold value for the open threshold state of the z-axis, respectively.

[0103] As a result of the identification in operation 505, in a case where movement has occurred, the electronic device can identify normal operation without identifying a malfunction caused by an external magnetic force, or can perform an operation of identifying a malfunction caused by hinge movement, such as operations after 509 in which, for each of the designated modes (e.g., a hand holding mode and a pocket mode), it is additionally identified whether the electronic device is repeatedly turned on and off within a short period of time. The electronic device can identify the correct intention and situation through the identification of the malfunction through hinge movement, thereby switching the display to the driving (ON) state.

[0104] In operation 509, the electronic device according to an embodiment can detect a grip of a user's hand by using the third sensor and identify whether it is a grip state. As a result of the identification, in a case where it is the grip state, the electronic device can perform operation 511, and when it is not the grip state, the electronic device can perform operation 515.

[0105] In operation 511, the electronic device can identify a hand holding mode based on the grip state. In operation 513, the electronic device can perform an operation of identifying a malfunction caused by hinge movement based on the folding angle and the repetition of opening and closing in the hand holding mode. Here, the hand holding mode can be a mode in which the second threshold value (e.g., the folding angle at which the interrupt signal is generated) of the first sensor is changed (e.g., from 5 degrees to 20 degrees) to prevent a malfunction caused by hinge movement of the electronic device by the user when the user's hand holds the electronic device, and when opening and closing of the electronic device is repeatedly performed, an operation of ignoring the interrupt signal for a predetermined period of time is performed.

[0106] In operation 515, the electronic device can identify a pocket mode based on a non-grip state. In operation 517, the electronic device can perform an operation of identifying a malfunction caused by hinge movement based on the folding angle and the repetition of opening and closing in the pocket mode. Here, the pocket mode can be a mode in which the threshold value of the first sensor is changed to a second threshold value (e.g., 20 degrees) to prevent an external force (e.g., running, climbing stairs, riding an amusement facility) that exceeds the fixed force of the hinge of the electronic device from occurring when the electronic device is in the user's bag or pocket, and when opening and closing of the electronic device is repeatedly performed, an operation of ignoring the interrupt signal for a predetermined period of time is performed.

[0107] Figure 7 FIG. 7 is a view illustrating an example of an operation method in a hand holding mode in an electronic device according to an embodiment.

[0108] According to an embodiment, as shown in operations 511 and 513 in FIG. 5, Figure 5 Figure 1 and Figures 2a to 2d ​The electronic device (e.g., the electronic device 101 among the electronic devices 101) can perform an operation for identifying a malfunction caused by hinge movement in a handheld mode.

[0109] Referring to Figure 7 In operation 701, the electronic device according to an embodiment can identify whether a folding angle acquired by using the second sensor in the handheld mode is equal to or less than a first reference angle (e.g., 20 degrees). As a result of the identification, in a case where the folding angle is less than or equal to the first reference angle (e.g., 20 degrees), the electronic device can perform operation 703, and in a case where the folding angle exceeds the first reference angle (e.g., 20 degrees), the electronic device can perform operation 707. Here, the first reference angle (e.g., 20 degrees) can be designated as another angle according to a model of the electronic device or experience judgment.

[0110] In operation 703, the electronic device can identify a malfunction caused by hinge movement based on the folding angle being equal to or less than the first reference angle (e.g., 20 degrees). In operation 705, the electronic device can change a threshold value of the first sensor to a second threshold value in order to prevent the malfunction caused by the hinge movement. For example, the electronic device can change the threshold value (e.g., an open threshold angle of 10 degrees) of the first sensor to the second threshold value (e.g., an open threshold angle of 20 degrees).

[0111] In operation 707, the electronic device can identify whether the folding angle exceeds a second reference angle (e.g., 90 degrees) based on the folding angle being greater than the first reference angle (e.g., 20 degrees). In the handheld mode, there are many malfunctions due to repeated opening and closing operations of the user in the handheld mode, and thus it is possible to separately identify an overtime period based on the second reference angle (e.g., 90 degrees). In this case, the second reference angle can be additionally designated as a different angle (e.g., 80 degrees or 70 degrees) depending on a model of the electronic device, a user's experience, a use environment, or a use habit.

[0112] As a result of the identification in operation 707, in a case where the folding angle does not exceed the second reference angle (e.g., 90 degrees), the electronic device can identify whether an interrupt signal is generated during a first overtime period (e.g., 1 second) in operation 709. As a result of the identification, in a case where the interrupt signal has been generated, the electronic device can perform operation 715 according to the identification of the opening and closing repetition, and in a case where the interrupt signal has not been generated, the electronic device can identify normal operation in operation 713.

[0113] As a result of the identification in operation 707, in a case where the folding angle exceeds the second reference angle (for example, 90 degrees), the electronic device can identify whether an interrupt signal is generated during a second timeout period (for example, 1.5 seconds) in operation 711. As a result of the identification, in a case where the interrupt signal has been generated, the electronic device can perform operation 715 according to the identified opening and closing repetition, and in a case where the interrupt signal is not generated, the electronic device can identify normal operation in operation 713.

[0114] In operation 715, when the opening and closing repetition is identified, the electronic device can increase the count by 1, and in operation 717, the electronic device can determine whether the increased count is greater than or equal to a threshold value.

[0115] As a result of the identification in operation 717, in a case where the increased count is greater than or equal to the threshold value, in operation 719, the electronic device can ignore the interrupt signal during a predetermined period of time.

[0116] As a result of the identification in operation 717, in a case where the increased count is less than the threshold value, the electronic device can identify normal operation in operation 721.

[0117] Figure 8 FIG. 1 is a view illustrating an example of an operation method in a pocket mode in an electronic device according to an embodiment.

[0118] According to an embodiment, as shown in operations 515 and 517 in FIG. 5, Figure 5 The electronic device (for example, the electronic device 101 in FIGS. 1 and 2) can perform operations for identifying a malfunction caused by hinge movement in a pocket mode. Figure 1 and Figures 2a to 2d The electronic device 101 in FIGS. 1 and 2) can perform operations for identifying a malfunction caused by hinge movement in a pocket mode.

[0119] Referring to FIG. 8, Figure 8 In operation 801, the electronic device according to an embodiment can identify whether a folding angle acquired by using the second sensor in a hand-held mode is equal to or less than a first reference angle (for example, 20 degrees). As a result of the identification, in a case where the folding angle is less than or equal to the first reference angle (for example, 20 degrees), the electronic device can perform operation 803, and in a case where the folding angle exceeds the first reference angle (for example, 20 degrees), the electronic device can perform operation 807. Here, the first reference angle (for example, 20 degrees) can be designated as another angle according to a model or experience judgment of the electronic device.

[0120] In operation 803, the electronic device can identify a malfunction caused by the hinge movement based on the folding angle being equal to or less than a reference folding angle (e.g., 20 degrees). In operation 805, the electronic device can change the threshold value of the first sensor to a second threshold value to prevent the malfunction caused by the hinge movement. For example, the electronic device can change the angle designated as the second threshold value from 10 degrees of opening to 20 degrees of opening.

[0121] In operation 807, the electronic device can identify whether the interrupt signal is generated during a timeout period (e.g., 1 second). As a result of the identification, in a case where the interrupt signal has been generated, the electronic device can perform operation 811 according to the identification of the opening and closing repetition, and in a case where the interrupt signal is not generated, the electronic device can identify normal operation in operation 809.

[0122] In operation 811, when the opening and closing repetition is identified, the electronic device can increase the count by 1, and in operation 813, the electronic device can determine whether the increased count is greater than or equal to a threshold value.

[0123] As a result of the identification in operation 813, in a case where the increased count is greater than or equal to the threshold value, in operation 815, the electronic device can ignore the interrupt signal during a predetermined period of time.

[0124] As a result of the identification in operation 813, in a case where the increased count is less than the threshold value, the electronic device can identify normal operation in operation 817.

[0125] According to an embodiment, when the interrupt signal has been generated, the electronic device can perform an operation corresponding to each malfunction case by using sensing data of a second sensor (e.g., a motion sensor) and a third sensor (e.g., a grip sensor), change the first threshold value and / or the second threshold value, finally identify a state of the first sensor (e.g., a Hall sensor), and drive or not drive the display, and then restore the first threshold value and / or the second threshold value, and end the operation described in FIGS. 6, Figure 4 , FIG. 6, Figure 7 and Figure 8 .

[0126] Figure 9 is a view illustrating an effect of an operation method in an electronic device according to an embodiment.

[0127] Referring to Figure 9 , an electronic device (e.g., Figure 1 and Figures 2a to 2dElectronic device 101 in the device can prevent the display from driving by accumulating the count caused by repeated opening and closing in handheld or pocket mode, for example, by preventing 13 failures from 16 to 3, thereby reducing the current consumption of the electronic device.

[0128] According to an embodiment, when an interrupt signal is ignored, the electronic device can control the display to only turn on a portion of the display to show a notification message (e.g., "Folding duplicate detected" or "Folding duplicate detected, only a portion of the screen is turned on to save battery time. To view the full screen, please touch below."), instead of forcing the display to turn off during the dejitter time, in order to reduce the risk of delaying the display's screen drive time (on time).

[0129] Figure 10 This is a view illustrating the effects of an operating method in an electronic device according to an embodiment.

[0130] Reference Figure 10 Electronic devices (e.g.) Figure 1 and Figures 2a to 2d The electronic device 101 can identify the reduction in current consumption by comparing the fault or normal operation of the Hall IC in an existing or modified algorithm. The modified algorithm consumes approximately 10mA in sleep mode, approximately 90mA when the AP is woken up by an interrupt signal generated by the Hall IC (e.g., the LCD is off), and approximately 250mA when the electronic device is awakened (e.g., the AP and LCD are on). Therefore, compared to the current consumption of approximately 250mA of the existing algorithm, the modified algorithm can reduce current consumption by approximately 160mA (250-90mA), because in the case of Hall IC failure, approximately 90mA of current consumption is generated when the AP is woken up by an interrupt signal, and current consumption in some areas can be reduced even when the Hall IC is operating normally.

[0131] According to an embodiment, an electronic device (e.g., Figure 1 and Figures 2a to 2d The operation method of the electronic device 101 may include the following operations: based on the identification by the Hall sensor of the electronic device (e.g., Figure 2b The first sensor 203 in the device outputs an interrupt signal based on a set threshold, and identifies the folding angle information of the first and second housings of the electronic device by using a motion sensor.

[0132] According to an embodiment, the method may include changing the threshold of the Hall sensor based on folding angle information.

[0133] According to an embodiment, the operation of changing the threshold value of the Hall sensor can include an operation of identifying a malfunction of the electronic device based on motion information acquired using the motion sensor and an operation of changing the threshold value of the Hall sensor from a first threshold value to a second threshold value.

[0134] According to an embodiment, the motion information can include whether each of the first housing structure and the second housing structure is moved and an amount of motion.

[0135] According to an embodiment, the motion sensor can include at least one 6-axis sensor. According to an embodiment, the first threshold value can be an opening threshold angle set using a magnetic force value of one axis of the motion sensor, and the second threshold value can be an opening threshold angle set using a magnetic force value of each of three axes of the motion sensor.

[0136] According to an embodiment, the method can further include an operation of identifying a pocket mode or a hand holding mode of the electronic device by using a grip sensor of the electronic device, an operation of acquiring a folding angle configured by opening and closing of the electronic device by using the motion sensor, and an operation of identifying a malfunction caused by hinge movement based on the folding angle being less than or equal to a first reference angle and changing a second threshold value of the Hall sensor.

[0137] According to an embodiment, the method can include, in the pocket mode, an operation of ignoring an interrupt signal for a specified period of time based on identifying that the folding angle is greater than the first reference angle and based on identifying that opening and closing of a housing of the electronic device is repeated, and in the pocket mode, an operation of identifying normal operation and switching a display of the electronic device to an activated state based on identifying that the folding angle is greater than the first reference angle and that there is no repetition of opening and closing of the housing of the electronic device. According to an embodiment, the opening and closing repetition can be identified in a case in which the interrupt signal has been generated a specified number of times or more during the specified period of time.

[0138] According to an embodiment, the method can further include, in the hand holding mode, an operation of ignoring an interrupt signal for a specified period of time based on identifying that the folding angle is greater than the first reference angle and based on identifying that opening and closing of a housing of the electronic device is repeated, and in the hand holding mode, an operation of identifying normal operation and switching a display of the electronic device to an activated state based on identifying that the folding angle is greater than the first reference angle and that there is no repetition of opening and closing of the housing of the electronic device.

[0139] According to an embodiment, the method can further include the operations of identifying, in the handheld mode, an opening and closing repetition in a case where the folding angle exceeds the second reference angle and the interrupt signal is generated a specified number of times or more during a specified first time period, and identifying, in the handheld mode, the opening and closing repetition in a case where the folding angle is less than or equal to the second reference angle and the interrupt signal is generated a specified number of times or more during a specified second time period.

[0140] According to an embodiment, the operation of changing the second threshold value of the Hall sensor can include an operation of changing the second threshold value to a second folding angle that is greater than a specified first folding angle.

[0141] According to an embodiment, the method can further include the operations of activating a partial area of a display of the electronic device and deactivating a remaining area of the display based on identifying that the folding angle is greater than the first reference angle and based on identifying the opening and closing repetition of the first housing and the second housing, and displaying a notification message on the partial area of the display.

[0142] According to an embodiment, the method can further include an operation of restoring the changed threshold value of the Hall sensor after performing the operation for driving the display.

[0143] According to an embodiment, the non-transitory computer-readable storage medium can store a program, wherein the program can include instructions that, when executed by at least one processor of an electronic device, cause the electronic device to perform the operations of identifying generation of an interrupt signal output by a Hall sensor of the electronic device, identifying folding angle information of a first housing and a second housing of the electronic device by using a motion sensor of the electronic device, and changing a first threshold value of the Hall sensor based on the folding angle information.

[0144] According to an embodiment, the electronic device can identify a malfunction caused by an external force and a malfunction caused by a hinge movement that cannot be determined by an operation method of a Hall IC, by using a 6-axis sensor and a grip sensor in addition to the Hall IC, and change an operation condition (e.g., a first threshold value and a second threshold value) of the Hall IC to match the malfunction, thereby preventing an increase in current consumption due to driving of the display caused by the malfunction, thereby causing a reduction in usage time and heat generation. Furthermore, various effects identified directly or indirectly by the present disclosure can be provided.

[0145] The embodiments disclosed herein are provided only to easily describe technical details of the present disclosure and to help the understanding of the present disclosure, and are not intended to limit the scope of various embodiments of the present disclosure. Therefore, it should be interpreted that all modifications and changes or various other embodiments based on the technical idea of various embodiments of the present disclosure fall within the scope of various embodiments of the present disclosure.

[0146] The electronic device according to various embodiments can be one of a variety of types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. According to embodiments of this disclosure, the electronic device is not limited to the electronic devices described above.

[0147] It should be understood that the various embodiments of this disclosure and the terminology used therein are not intended to limit the technical features set forth herein to the particular embodiments, but rather to include various changes, equivalents, or substitutions to the corresponding embodiments. Regarding the description of the drawings, similar reference numerals may be used to refer to similar or related elements. It should be understood that, unless the relevant context clearly indicates otherwise, the singular form of the noun corresponding to an item may include one or more things. As used herein, each of phrases such as “A or B,” “at least one of A and B,” “at least one of A or B,” “A, B, or C,” “at least one of A, B, and C,” and “at least one of A, B, or C” may include any or all possible combinations of the items listed together in the corresponding phrases within said phrases. As used herein, terms such as “first” and “second” or “first” and “second” may be used to simply distinguish one component from another and do not limit the components in other respects (e.g., importance or order). It should be understood that, with or without the terms “operably” or “communically”, if an element (e.g., a first element) is referred to as “coupled”, “coupled to”, “connected to”, or “connected to” another element (e.g., a second element), it means that the element can be coupled to the other element directly (e.g., wired), wirelessly, or via a third element.

[0148] As used in conjunction with various embodiments of this disclosure, the term "module" may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with other terms such as "logic," "logic block," "component," or "circuit." A module may be a single integrated component or its smallest unit or portion adapted to perform one or more functions. For example, according to an embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0149] Various embodiments as set forth herein can be implemented as software (e.g., program 140) including one or more instructions that are stored in a storage medium (e.g., internal memory 136 or external memory 138) that is readable by a machine (e.g., electronic device 101). For example, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) can invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor. This allows the machine to be operated to perform at least one function according to the at least one instruction invoked by the processor. The one or more instructions can include a code generated by a compiler or a code executable by an interpreter. The machine-readable storage medium can be provided in the form of a non-transitory storage medium. Wherein, the term "non-transitory" simply means that the storage medium is a tangible device, and does not include a signal (e.g., an electromagnetic wave), but this term does not differentiate between where data is semi-permanently stored in the storage medium and where the data is temporarily stored in the storage medium.

[0150] According to an embodiment, a method according to various embodiments of the disclosure can be included and provided in a computer program product. The computer program product can be traded as a product between a seller and a buyer. The computer program product can be distributed in the form of a machine-readable storage medium (e.g., compact disc read only memory (CD-ROM)), or be distributed online via an application store (e.g., PlayStore®). If the computer program product is distributed online, at least part of it can be temporarily stored or temporarily generated in the storage medium such as a manufacturer's server, an application store's server, or a relay server. TM ) online (e.g., downloaded or uploaded), or distributed directly between two user devices (e.g., smart phones). If distributed online, at least part of the computer program product can be temporarily generated or at least temporarily stored in a machine-readable storage medium such as a manufacturer's server, an application store's server, or a relay server.

[0151] According to various embodiments, each component (e.g., a module or a program) of the above-described components can include a single entity or multiple entities, and some of multiple entities can be separately disposed in different components. According to various embodiments, one or more of the above-described components can be omitted, or one or more other components can be added. Alternatively or additionally, a plurality of components (e.g., modules or programs) can be integrated into a single component. In this case, according to various embodiments, the integrated component can still perform one or more functions of each of the plurality of components in the same or similar manner as they are performed by a corresponding one of the plurality of components before the integration. According to various embodiments, operations performed by the module, the program, or another component can be carried out sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations can be executed in a different order or omitted, or one or more other operations can be added.

Claims

1. A foldable electronic device (101), comprising: a first housing and a second housing foldable with respect to each other; a magnetic substance disposed in at least one of the first housing and the second housing; a memory (130); a Hall sensor (203) configured to detect a magnetic force value of the magnetic substance, which varies according to folding of the first housing and the second housing, and output an interrupt signal based on a set threshold value; a motion sensor; and at least one processor (120) electrically connected to the Hall sensor, the motion sensor, and the memory, wherein the memory stores instructions that, when executed by the at least one processor, cause the electronic device to: identify folding angle information of the first housing and the second housing through the motion sensor according to identification of the interrupt signal; and change the threshold value of the Hall sensor based on the folding angle information. the memory stores instructions that, when executed by the at least one processor, cause the electronic device to: 2.The electronic device of claim 1, wherein, identify a malfunction of the electronic device based on motion information acquired using the motion sensor; and change the threshold value of the Hall sensor from a first threshold value to a second threshold value, wherein the motion information includes whether each of the first housing structure and the second housing structure is moved and an amount of motion thereof, wherein the motion sensor includes at least one 6-axis sensor, wherein the first threshold value corresponds to an opening threshold angle set using a magnetic force value of one axis of the motion sensor, and wherein the second threshold value corresponds to an opening threshold angle set using a magnetic force value of each of three axes of the motion sensor. the memory stores instructions that, when executed by the at least one processor, cause the electronic device to:

3. The electronic device of claim 1 or 2, wherein identify a pocket mode or a hand-held mode of the electronic device by using a grip sensor of the electronic device; acquire a folding angle according to opening and closing of the electronic device by using the motion sensor; and identify a malfunction due to hinge movement based on the folding angle being less than or equal to a first reference angle and change a second threshold value of the Hall sensor, wherein the second threshold value is changed to a second folding angle greater than a designated first folding angle. the memory stores instructions that, when executed by the at least one processor, cause the electronic device to: identify that the opening and closing are repeated based on a number of occurrences of the interrupt signal being greater than or equal to a designated number during a designated period of time; 4. The electronic device of any of claims 1-3, wherein, in the pocket mode, based on the folding angle being greater than the first reference angle and identifying that the opening and closing of the first housing and the second housing are repeated, ignore the interrupt signal during a designated period of time; and in the pocket mode, based on the folding angle being greater than the first reference angle and identifying that there is no opening and closing repetition, identify normal operation and switch a display of the electronic device to a driven state. the memory stores instructions that, when executed by the at least one processor, cause the electronic device to: ​ 5. The electronic device of any of claims 1-4, wherein, ​ in the handheld mode, based on the folding angle being greater than the first reference angle and identifying the opening and closing repetition of the first housing and the second housing, ignoring the interrupt signal during a specified period of time; in the handheld mode, based on the folding angle being greater than the first reference angle and identifying no opening and closing repetition, identifying normal operation and switching the display of the electronic device to a driving state; in the handheld mode, based on the folding angle being greater than a second reference angle and the number of occurrences of the interrupt signal during a specified first period of time being greater than or equal to a specified number, identifying the opening and closing repetition; and in the handheld mode, based on the folding angle being less than or equal to the second reference angle and the number of occurrences of the interrupt signal during a specified second period of time being greater than or equal to a specified number, identifying the opening and closing repetition.

6. The electronic device of any of claims 1-5, wherein, The memory stores instructions which, when executed by the at least one processor, cause the electronic device to: based on the folding angle being greater than the first reference angle and identifying the opening and closing repetition of the first housing and the second housing, activate a partial area of the display of the electronic device and deactivate a remaining area of the display of the electronic device; and control the display to display a notification message on the partial area of the display.

7. The electronic device according to one of claims 1 to 6, wherein, The memory stores instructions which, when executed by the at least one processor, cause the electronic device to restore the changed threshold value of the Hall sensor after performing an operation for driving the display. 8.An operating method of an electronic device (101), the method comprising: identifying folding angle information of a first housing and a second housing of the electronic device by using a motion sensor according to identifying an interrupt signal output by a Hall sensor (203) of the electronic device based on a set threshold value; and changing the threshold value of the Hall sensor based on the folding angle information.

9. The method of claim 8, wherein, The change of the threshold value of the Hall sensor includes: identifying a malfunction of the electronic device based on motion information acquired using the motion sensor; and changing the threshold value of the Hall sensor from a first threshold value to a second threshold value, wherein the change of the second threshold value includes changing the second threshold value to a second folding angle greater than a specified first folding angle, wherein the motion information includes whether each of the first housing structure and the second housing structure is moved and an amount of motion thereof, wherein the motion sensor includes at least one 6-axis sensor, wherein the first threshold value corresponds to an opening threshold angle set using a magnetic force value of one axis of the motion sensor, and wherein the second threshold value corresponds to an opening threshold angle set using a magnetic force value of each of three axes of the motion sensor. 10.The method of claim 8 or 9, further comprising: identifying a pocket mode or a handheld mode of the electronic device by using a grip sensor of the electronic device; acquiring a folding angle according to opening and closing of the electronic device by using the motion sensor; and identifying a malfunction due to hinge movement based on the folding angle being less than or equal to a first reference angle and changing the second threshold value of the Hall sensor.

11. The method of any one of claims 8 to 10, further comprising: in the pocket mode, based on the folding angle being greater than the first reference angle and based on identifying the opening and closing repetition of the first housing, ignoring the interrupt signal during a specified time period; and in the pocket mode, based on the folding angle being greater than the first reference angle and based on identifying no opening and closing repetition, identifying normal operation and switching a display of the electronic device to a driving state, wherein the opening and closing repetition is identified when a number of occurrences of the interrupt signal during a specified time period is greater than or equal to a specified number.

12. The method of any one of claims 8 to 11, further comprising: in the handheld mode, based on the folding angle being greater than the first reference angle and based on identifying the opening and closing repetition of the first housing and the second housing, ignoring the interrupt signal during a specified time period; in the handheld mode, based on the folding angle being greater than the first reference angle and based on identifying no opening and closing repetition, identifying normal operation and switching the display of the electronic device to a driving state; in the handheld mode, based on the folding angle being greater than a second reference angle and a number of occurrences of the interrupt signal during a specified first time period being greater than or equal to a specified number, identifying the opening and closing repetition; and in the handheld mode, based on the folding angle being less than or equal to the second reference angle and the number of occurrences of the interrupt signal during the specified first time period being greater than or equal to the specified number, identifying the opening and closing repetition.

13. The method of any one of claims 8 to 12, further comprising: based on the folding angle being greater than the first reference angle and based on identifying the opening and closing repetition of the first housing and the second housing, activating a partial area of the display of the electronic device and deactivating a remaining area of the display of the electronic device; and displaying a notification message on the partial area of the display.

14. The method of any one of claims 8 to 13, further comprising restoring the changed threshold value of the Hall sensor after performing an operation for driving the display. The program includes instructions executable to, when executed by at least one processor of an electronic device, cause the electronic device to perform:

15. A non-transitory computer-readable storage medium storing a program, wherein, based on identifying an occurrence of an interrupt signal output by a Hall sensor of the electronic device, identifying folding angle information of a first housing and a second housing of the electronic device by using a motion sensor of the electronic device; and based on the folding angle information, changing a first threshold value of the Hall sensor. The program includes instructions executable to, when executed by at least one processor of an electronic device, cause the electronic device to perform: based on identifying an occurrence of an interrupt signal output by a Hall sensor of the electronic device, identifying folding angle information of a first housing and a second housing of the electronic device by using a motion sensor of the electronic device; and based on the folding angle information, changing a first threshold value of the Hall sensor.