Electronic apparatus and program

The integration of a magnetic source, sensor, and control circuit with an illuminance sensor in electronic devices with rotatable housings enables accurate closed-state determination by using continuous magnetism detection and environmental illuminance thresholds, addressing the challenges of external interference and sensor limitations.

WO2024180919A1PCT designated stage expired Publication Date: 2024-09-06PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/000407
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-01-11
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing electronic devices with rotatable housings face challenges in accurately determining the closed state while minimizing erroneous determinations, particularly due to external magnetic interference and limitations in using sensors like illuminance and pressure sensors.

Method used

The implementation of a magnetic source and sensor combination, along with an illuminance sensor and a control circuit, where the control circuit determines the closed state based on magnetic detection and continuously monitored magnetism, and uses a detector to verify the state through a predetermined detection period, ensuring accurate closed-state determination.

Benefits of technology

This solution effectively suppresses erroneous closed-state determination by using a combination of magnetic and illuminance sensors, allowing for precise identification of the closed state even in varying environments, enhancing user convenience and operational accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024000407_06092024_PF_FP
    Figure JP2024000407_06092024_PF_FP
Patent Text Reader

Abstract

An electronic apparatus in which two case bodies are rotatably connected and an open / closed condition corresponding to the rotation can be switched, said electronic apparatus comprising: a magnetism production source that is provided to one case body; a magnetic sensor that is provided to the other case body, and is positioned so as to be able to detect the magnetism from the magnetism production source during a closed condition in which the respective case bodies are adjacent due to rotation; a control circuit that determines whether the two case bodies are in the closed condition or not, at least on the basis of the magnetism detection result from the magnetic sensor; and a detector that is provided to one of the two case bodies and, separately from the magnetic sensor, detects a condition that changes in accordance with whether the two case bodies are in the closed condition or not, wherein when the magnetism has been detected, if the detection result from the detector indicates a prescribed condition corresponding to the closed condition, the control circuit determines that the two case bodies are in the closed condition, and if the detection result from the detector indicates a condition differing from the prescribed condition, the control circuit determines whether the two case bodies are in the closed condition or not in accordance with a detection period in which the magnetism is intermittently detected.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic devices and programs

[0001] The present invention relates to an electronic device in which two housings are rotatably connected and can be switched between an open and closed state in response to rotation, and to a program for operating such an electronic device.

[0002] Patent Literature 1 discloses a technology for detecting the open / closed state of a pair of housings connected to each other so that they can be opened and closed in a foldable electronic device such as a mobile phone. The electronic device in Patent Literature 1 has two open / closed state detection means (a magnetic sensor and an illuminance sensor or pressure sensor, for example) that use different detection methods. If at least one detection result indicates the open state, the electronic device determines that the housing is in the open state. If both detection results indicate the closed state, the electronic device determines that the housing is in the closed state. This reduces false detections of the folded state in the electronic device, improving user convenience.

[0003] JP 2010-074206 A

[0004] An object of the present disclosure is to provide an electronic device and a program that can accurately determine the closed state while suppressing erroneous determination of the closed state when two housings are rotated close to each other.

[0005] According to one aspect of the present invention, an electronic device has two housings rotatably connected to each other and can switch between an open and closed state in response to rotation. The electronic device includes a magnetic source, a magnetic sensor, a control circuit, and a detector. The magnetic source is provided in one of the two housings. The magnetic sensor is provided in the other housing, different from the first housing, and is positioned so as to be able to detect magnetic fields from the magnetic source when the two housings are in a closed state in which they are rotated closer to each other. The control circuit determines whether the two housings are in a closed state based on at least a magnetic field detection result by the magnetic sensor. The detector is provided in one of the two housings and detects a state that changes depending on whether the two housings are in a closed state, separately from the magnetic sensor. When the magnetic sensor detects magnetic fields, if the detection result by the detector indicates a predetermined state corresponding to the closed state, the control circuit determines whether the two housings are in a closed state if the detection result by the detector indicates a state other than the predetermined state, based on a detection period during which the magnetic sensor continuously detects magnetic fields.

[0006] A program according to one aspect of the present invention controls an electronic device having two rotatably connected housings that can be switched between an open and closed state in response to rotation. The electronic device includes a magnetic source, a magnetic sensor, a control circuit, and a detector. The magnetic source is provided in one of the two housings. The magnetic sensor is provided in the other housing, different from the first housing, and is positioned so as to be able to detect magnetic fields from the magnetic source when the two housings are in a closed state in which they are rotated closer to each other. The control circuit executes the program to determine whether the two housings are in a closed state based on at least a magnetic field detection result by the magnetic sensor. The detector is provided in one of the two housings and detects a state that changes depending on whether the two housings are in a closed state, separately from the magnetic sensor. When the program is executed by the control circuit, if a magnetic field is detected by the magnetic sensor, the control circuit determines that the two housings are in a closed state if the detection result by the detector indicates a predetermined state corresponding to the closed state, and if the detection result by the detector indicates a state other than the predetermined state, the control circuit determines whether the two housings are in a closed state based on a period of magnetic field detection by the magnetic sensor.

[0007] The electronic device and program disclosed herein can accurately determine the closed state while suppressing erroneous determination of the closed state when the two housings are rotated closer to each other.

[0008] Schematic perspective view of a PC in an open state according to a first embodiment of the present disclosure. Schematic perspective view of a PC in a closed state. Block diagram illustrating the internal configuration of a PC. Flowchart illustrating the process of determining the closed state in a PC according to the first embodiment. Diagram for explaining the illuminance threshold in the process of determining the closed state. Flowchart illustrating the process of determining the closed state in a PC according to a second embodiment. Flowchart illustrating the process of determining the closed state in a first modified example. Flowchart illustrating the process of determining the closed state in a second modified example.

[0009] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings as appropriate.

[0010] First Embodiment In a first embodiment, a laptop personal computer (PC) will be described as an example of an electronic device according to the present disclosure.

[0011] 1. Configuration The configuration of the PC in this embodiment will be described with reference to FIGS.

[0012] Fig. 1 is a schematic perspective view of a PC 2 in an open state according to embodiment 1. Fig. 2 is a schematic perspective view of the PC 2 in a closed state. The PC 2 has a first housing 4 and a second housing 6 that are rotatably connected to each other.

[0013] In the PC 2 shown in FIG. 1 , the first housing 4 has a display 8, and the second housing 6 has a keyboard 10. In the present disclosure, a state in which the first housing 4 and the second housing 6 are rotated closer to each other so that the display surface of the display 8 and the keytops of the keyboard 10 face each other is referred to as a closed state (see FIG. 2 ). On the other hand, a state in which the first housing 4 and the second housing 6 are rotated about a hinge or the like connecting the housings 4 and 6 as a rotation axis and are no longer in the closed state, for example, a state in which the display surface of the display 8 and the keytops of the keyboard 10 are visible from the outside, is referred to as an open state (see FIG. 1 ). The PC 2 can be used by switching between the closed state and the open state. For example, in the closed state, the PC 2 performs a predetermined operation to reduce power consumption, such as turning off the display 8 and / or entering a so-called sleep mode or hibernation mode.

[0014] The first housing 4 further includes a capacitive touch panel 13 that accepts touch operations on the display 8, for example. The touch panel 13 can detect the position or area where an object, such as a user's finger or a touch pen, approaches the touch panel 13 by detecting a change in capacitance at that position or area. The second housing 6 also includes a touch pad 12 that accepts touch operations similar to the touch panel 13, and may further include various operation buttons on the outer edge of the touch pad 12. The keyboard 10, the touch pad 12, and the touch panel 13 on the display 8, etc., constitute an input interface for inputting various user operations to the PC 2. The input interface of the PC 2 may include a terminal for connecting an external input device, such as a mouse.

[0015] As shown in FIG. 1, the PC 2 further includes an illuminance sensor 14, a magnetic field generating unit 16, and a magnetic sensor 18.

[0016] The illuminance sensor 14 detects illuminance, which indicates the brightness of the surroundings, according to the amount of light received, and generates a detection signal indicating an illuminance value according to the magnitude of the detected illuminance, for example. In the example of Fig. 1, the illuminance sensor 14 is provided in the first housing 4 and is positioned so as to detect illuminance on the display surface side of the display 8. When the PC 2 is in the closed state as shown in Fig. 2, the amount of light received by the illuminance sensor 14 decreases, and a lower illuminance value is detected than when the PC 2 is in the open state as shown in Fig. 1.

[0017] The magnetic field generator 16 is a component that generates a magnetic field (a magnetic field) externally. The magnetic field generator 16 may be a permanent magnet that generates a magnetic field steadily without receiving external energy, or an electromagnet that receives external energy and generates a magnetic field temporarily. In this embodiment, a permanent magnet is used as the magnetic field generator 16. In the example of FIG. 1 , the magnetic field generator 16 is provided in the first housing 4 and is located near the upper left edge of the display 8.

[0018] The magnetic sensor 18 is a sensor that detects the magnetism generated by the magnetic field generating unit 16, and generates a detection signal indicating, for example, whether or not a magnetism is detected. The magnetic sensor 18 is arranged so as to be able to detect the magnetism from the magnetic field generating unit 16 when the PC 2 is in the closed state. For example, in the PC 2 shown in FIGS. 1 and 2 , the magnetic field generating unit 16 and the magnetic sensor 18 are arranged so as to face each other when the first housing 4 and the second housing 6 are close to each other in the closed state. Note that the magnetic sensor 18 does not have to be arranged so as to face the magnetic field generating unit 16, as long as it is in a position where it can detect the magnetism of the magnetic field generating unit 16 in the closed state.

[0019] When the magnetic field generating unit 16 approaches the magnetic sensor 18, as in the closed state of the PC 2 shown in Fig. 2, the magnetic sensor 18 detects the magnetic field of the magnetic field generating unit 16. On the other hand, when the magnetic field generating unit 16 is located away from the magnetic sensor 18, as in the open state of the PC 2 shown in Fig. 1, the magnetic sensor 18 does not detect the magnetic field of the magnetic field generating unit 16.

[0020] 1, in the PC 2, the illuminance sensor 14 is disposed near the center of the top of the first housing 4, the magnetic field generating unit 16 is disposed on the left side of the top of the first housing 4, and the magnetic sensor 18 is disposed on the left side of the bottom of the second housing 6. In this way, due to restrictions on the mounting space in the PC 2, the illuminance sensor 14, the magnetic field generating unit 16, and the magnetic sensor 18 can generally be built into the outer edge of the first or second housing 4, 6, but the arrangement shown in FIG. 1 is one example, and the arrangement is not limited to this.

[0021] 3 is a diagram illustrating an example of the internal configuration of the PC 2. The PC 2 incorporates a control unit 20, a communication module 22, and a storage device 24. In the PC 2, the illuminance sensor 14, the magnetic sensor 18, the communication module 22, and the storage device 24 are each electrically connected to the control unit 20.

[0022] The control unit 20 controls the operation of the PC 2 in accordance with the detection results of the illuminance sensor 14 and the magnetic sensor 18. Specifically, the control unit 20 determines whether the first and second housings 4, 6 of the PC 2 are in the closed state, as will be described later, based on the respective detection signals transmitted from the illuminance sensor 14 and the magnetic sensor 18. For example, when the control unit 20 determines that the PC 2 is in the closed state, it executes a predetermined operation according to the closed state as described above.

[0023] The control unit 20 is, for example, an EC (embedded controller) such as a microcomputer that executes a program. The control unit 20 may include a central processing unit (CPU), memory (ROM and / or RAM), a timer circuit, input / output terminals, etc. The control unit 20 is housed, for example, inside the second housing 6. The control unit 20 may also be configured as a hardwired electronic circuit.

[0024] The communication module 22 is a circuit that communicates in accordance with various communication standards. Examples of such standards include IEEE 802.11, Wi-Fi (registered trademark), Bluetooth (registered trademark), 4G, and 5G. The communication module 22 can be connected to a communication network such as the Internet. The PC 2 may communicate with other devices via an access point via the communication module 22, or may communicate directly with other devices. The communication module 22 may perform wired communication in accordance with standards such as Ethernet (registered trademark) and / or USB. The communication module 22 may include connection terminals for various wired communications.

[0025] The storage device 24 is a storage medium for storing programs and data, and stores, for example, a control program 26 that is executed by the control unit 20 to control the operation of the PC 2. The storage device 24 is configured, for example, as a magnetic storage device such as a hard disk drive (HDD), a semiconductor storage device such as a solid state drive (SSD), or an optical storage device such as an optical disk drive. The storage device 24 may include a temporary storage element configured, for example, as a DRAM or SRAM, or may function as an internal memory of the control unit 20. The control program 26 may be acquired from outside the PC 2 via a network via the communication module 22.

[0026] 2. Operation The operation of the PC 2 configured as above will be described with reference to FIGS.

[0027] 2-1. Overview When the PC 2 is switched from the open state to the closed state while in use, it performs a predetermined operation, such as turning off the display 8. At this time, the PC 2 determines whether the first and second housings 4, 6 are in the closed state based on the detection results of the magnetic sensor 18 and other devices. If the closed state determination were based solely on the detection results of whether the magnetic sensor 18 detected a magnetic field, there is a concern that the open state may be mistakenly determined to be the closed state if the magnetic sensor 18 detects a magnetic field from an external magnetic source other than the magnetic field generator 16. For example, if a user is wearing a wristwatch or wristwatch-type device with a magnetic band and operating the PC 2, the magnetic sensor 18 may detect the magnetic field from the magnetic band and mistakenly determine the PC 2 to be in the closed state. This could result in inconvenience to the user, such as an operation corresponding to the closed state, such as turning off the display 8, being performed at an unintended time.

[0028] Here, the PC 2 of this embodiment determines whether the first and second housings 4, 6 are in the closed state based on the detection results of the illuminance sensor 14 and the magnetic sensor 18. The PC 2 determines that the first and second housings 4, 6 are in the closed state, for example, when magnetism is detected by the magnetic sensor 18 and the illuminance detected by the illuminance sensor 14 is less than a predetermined value. This makes it possible to prevent erroneous determination of the closed state even if the magnetic sensor 18 detects magnetism from sources other than the magnetic field generator 16.

[0029] However, when using the illuminance sensor 14 and the magnetic sensor 18 together as described above, there may be cases where it is difficult to distinguish between the open state and the closed state from the detection result of the illuminance sensor 14, for example, when the PC 2 is being used in a dark environment. In such cases, the illuminance sensor 14 does not function sufficiently as a detection means for determining the closed state separately from the magnetic sensor 18, and there is a problem in that it is difficult to accurately determine the closed state.

[0030] Alternatively, instead of the illuminance sensor 14, a pressure sensor could be mounted on one of the first or second housings 4, 6 and a pressing member mounted on the other housing, facing the other, to detect the pressure applied by the pressing member in the closed state using the pressure sensor. In this case, the closed state can be determined even if the difference in illuminance between the open and closed states is relatively small. However, adding a pressure sensor or other additional component to the PC 2 can be difficult to achieve due to limitations on installation space and manufacturing costs, as well as the opportunity to add components after the PC 2 is manufactured and sold.

[0031] Therefore, the PC 2 according to this embodiment is not limited to using both the illuminance sensor 14 and the magnetic sensor 18, but also determines whether the first and second housings 4, 6 are in the closed state based on the period during which the magnetic sensor 18 detects magnetism. This allows the PC 2 to determine whether the first and second housings 4, 6 are in the closed state based on the period during which the magnetic sensor 18 detects magnetism, even in cases where it is difficult to distinguish between the closed state and the open state based on the detection results of the illuminance sensor 14. For example, if magnetism is continuously detected, it is highly likely that the housings 4, 6 are close to each other and in the closed state. In this way, the PC 2 can accurately determine the closed state while suppressing erroneous determinations of the closed state.

[0032] Furthermore, if the PC 2 is equipped with an illuminance sensor 14 for adjusting the brightness of the display 8 according to the brightness of the surrounding area, the above-described determination function can be provided as the control program 26, thereby improving the operation of determining the closed state without adding any new components. The closed state determination process that realizes such a determination operation in the PC 2 will be described in detail below.

[0033] 2-2. Closed State Determination Process The closed state determination process described above in the PC 2 of this embodiment will be described with reference to FIGS.

[0034] 4 is a flowchart illustrating a process for determining whether the PC 2 is in the closed state according to the present embodiment. Each process in the flowchart is executed by the control unit 20 of the PC 2. The process in the flowchart is started, for example, by the execution of the control program 26 in the PC 2, and is repeatedly executed at a predetermined interval.

[0035] First, the control unit 20 determines whether the magnetic sensor 18 has detected magnetism based on the detection result of the magnetic sensor 18 (S1). Specifically, if the control unit 20 receives a magnetic detection signal from the magnetic sensor 18, it determines that magnetism has been detected, and if it does not receive a magnetic detection signal, it determines that magnetism has not been detected.

[0036] If the magnetic sensor 18 detects magnetism (YES in S1), the control unit 20 determines whether the value detected by the illuminance sensor 14, i.e., the illuminance value, is less than a predetermined threshold value based on the detection result of the illuminance sensor 14 (S2). The control unit 20 receives a detection signal including the illuminance value from the illuminance sensor 14, for example, in accordance with the detection cycle of the illuminance sensor 14. The predetermined threshold value is set, for example, taking into consideration the expected usage environment of the PC 2, and is stored in the storage device 24.

[0037] Fig. 5 is a diagram illustrating the illuminance threshold value in the process of determining the closed state. Fig. 5 illustrates an illuminance threshold value table Tb that manages the illuminance threshold value. The illuminance threshold value table Tb of this embodiment stores two types of threshold value according to the expected brightness of the surroundings of the PC 2. In the example of Fig. 5, "100" lux (lx) is set as the threshold value when the surroundings are relatively bright, and "5" lx is set as the threshold value when the surroundings are relatively dark.

[0038] 4 again. In this embodiment, the PC 2 displays, for example, on the display 8, a menu screen that allows the user to select an illuminance threshold, and accepts a user operation to select a threshold via the touch panel 13, the keyboard 10, the touchpad 12, or another input interface. The control unit 20 makes the determination in step S2 by comparing, for example, the threshold selected by the user operation from the illuminance threshold table Tb with the illuminance value indicated by the detection signal received from the illuminance sensor 14.

[0039] If the illuminance value detected by the illuminance sensor 14 is less than the threshold value (YES in S2), the control unit 20 determines that the first and second housings 4, 6 are in the closed state (S3). Thereafter, the control unit 20 controls the PC 2 to perform an operation corresponding to the closed state, such as turning off the display 8 (S4).

[0040] On the other hand, if the illuminance value detected by the illuminance sensor 14 is not less than the threshold value (NO in S2), the control unit 20 determines whether the detection period during which magnetism has been detected is longer than a predetermined period based on the detection signal from the magnetic sensor 18 (S5). In this case, in addition to when the detected illuminance value is equal to or greater than the threshold value, the control unit 20 may also determine that the illuminance value is not less than the threshold value (NO in S2) and proceed to step S5, for example, when the illuminance cannot be detected by the illuminance sensor 14. In step S5, the control unit 20 determines that the detection period is longer than the predetermined period (YES in S5) if, for example, the control unit 20 has received a detection signal from the magnetic sensor 18 continuously in the detection cycle of the magnetic sensor 18 from the time when the detection signal was received in step S1 until the predetermined period has elapsed.

[0041] The predetermined period of time in step S5 is set in advance to a period equal to or longer than the period during which a magnetic source other than the magnetic field generating unit 16 (for example, a wristwatch-type terminal of the user) is expected to remain close to the magnetic sensor 18, and is stored in the storage device 24. For example, in the PC 2 of this embodiment, the predetermined period can be set on a menu screen or the like on the display 8. The predetermined period may be selected from predetermined options such as "1 minute, 3 minutes, 5 minutes, or 10 minutes" in response to a user operation using various input interfaces.

[0042] If the period of magnetic detection is longer than the predetermined period (YES in S5), the control unit 20 determines that the first and second housings 4, 6 are in the closed state (S3), and performs an operation corresponding to the closed state (S4).

[0043] On the other hand, if the magnetic detection period is not longer than the predetermined period, i.e., is equal to or shorter than the predetermined period (NO in S5), the control unit 20 ends the processing of this flowchart. In this case, the first and second housings 4, 6 may be determined to be in the open state. The control unit 20 also ends the processing of this flowchart when it determines that the magnetic sensor 18 is not detecting magnetism (NO in S1), just as it does when the magnetic detection period is equal to or shorter than the predetermined period (NO in S5).

[0044] According to the above-described process for determining the closed state, if the magnetic sensor 18 detects magnetism (YES in S1) and the illuminance value detected by the illuminance sensor 14 is less than the threshold value (YES in S2), the PC 2 is determined to be in the closed state (S3), and an operation corresponding to the closed state is executed (S4). In this way, if both the magnetic sensor 18 and the illuminance sensor 14 obtain detection results that correspond to the closed state (YES in S1 and YES in S2), an operation corresponding to the determination of the closed state can be executed without waiting for the lapse of a predetermined period of time for the magnetic detection (S3, S4).

[0045] Furthermore, even if magnetism is detected (YES in S1), if the detected illuminance value is not less than the threshold value (NO in S2), whether or not the door is in the closed state is determined based on the detection period during which magnetism is continuously detected by the magnetic sensor 18 (S5, S3). For example, if the detection period exceeds a predetermined period (YES in S5), the PC 2 is determined to be in the closed state (S3). In this way, by using the period during which magnetism is detected by the magnetic sensor 18, it is possible to reduce erroneous determinations of the closed state compared to simply using the presence or absence of magnetic detection, and it is also possible to accurately determine the closed state even when the closed state cannot be determined from the detection result of the illuminance sensor 14, for example.

[0046] 3. Effects, etc. As described above, the PC 2 of this embodiment is an example of an electronic device in which the first housing 4 and the second housing 6 (an example of two housings) are rotatably connected and can switch between an open and closed state in response to rotation. The PC 2 includes: a magnetic field generator 16 provided in the first housing 4 as an example of a magnetic field generating source provided in one of the two housings 4, 6; a magnetic sensor 18 provided in the second housing 6, the other of the two housings 4, 6, that is different from the first housing 4 having the magnetic field generator 16, and arranged to detect a magnetic field from the magnetic field generator 16 when the two housings 4, 6 are in a closed state in which the two housings 4, 6 are rotated closer to each other; a control unit 20 (an example of a control circuit) that determines whether the two housings 4, 6 are in a closed state based on at least a result of detection of the magnetic field by the magnetic sensor 18; and an illuminance sensor 14 (an example of a detector) that is provided in the second housing 6 as an example of one of the two housings 4, 6 and that detects a state that changes depending on whether the two housings 4, 6 are in a closed state, separately from the magnetic sensor 18. When magnetism is detected by the magnetic sensor 18 (YES in S1), the control unit 20 determines that the two housings 4, 6 are in a closed state (S3) if the illuminance value of the detection result is less than a predetermined threshold (YES in S2), which is an example of a case where the detection result by the illuminance sensor 14 indicates a predetermined state corresponding to the closed state; and when the illuminance value of the detection result is not less than the threshold (NO in S2), which is an example of a case where the detection result by the illuminance sensor 14 indicates a state different from the predetermined state, the control unit 20 determines whether the two housings 4, 6 are in a closed state or not, depending on the detection period during which magnetism is continuously detected by the magnetic sensor 18 (S5, S3).

[0047] According to the above-described PC 2, if magnetic field is detected by the magnetic sensor 18 (YES in S1) and the detection result of the illuminance sensor 14 indicates a state corresponding to the closed state (YES in S2), the first and second housings 4 and 6 are determined to be in the closed state (S3). On the other hand, even if magnetic field is detected by the magnetic sensor (YES in S1), if the detection result of the illuminance sensor 14 is different from a state corresponding to the closed state (NO in S2), the closed state is determined using the magnetic detection period of the magnetic sensor 18 (S5). In this way, by using the detection result of the illuminance sensor 14 in addition to the magnetic sensor 18, and by determining whether the housing is in the closed state based on the magnetic detection period even if it is difficult to determine the closed state from the detection result of the illuminance sensor 14, the closed state can be determined accurately while suppressing erroneous determinations.

[0048] In this embodiment, the control unit 20 determines that the two housings 4, 6 are in the closed state (S3) when magnetism is detected by the magnetic sensor 18 (YES in S1) and the detection result by the illuminance sensor 14 indicates a state different from the predetermined state, for example, when the detected illuminance value is not less than a threshold value (NO in S2) or when the detection period by the magnetic sensor 18 exceeds a predetermined period (YES in S5). As a result, even in cases where it is difficult to use the detection result of the illuminance sensor 14 in combination for the determination, it is possible to accurately determine the closed state based on the high probability of the closed state when magnetism is continuously detected, while suppressing erroneous determination that the closed state is due to a temporary detection of magnetism by the magnetic sensor 18.

[0049] In this embodiment, illuminance sensor 14, which is an example of a detector, is provided on the two housings 4, 6 on opposing sides when they are in the closed state, and detects the ambient illuminance. The predetermined state corresponding to the closed state is a state in which the illuminance detected by illuminance sensor 14 is less than a predetermined value. Since it is expected that the illuminance will be lower in the closed state of PC 2 than in the open state, the detection result of illuminance sensor 14 can be used to determine the closed state, for example, using a predetermined illuminance value corresponding to the closed state (S2).

[0050] In this embodiment, the PC 2 further includes a storage device 24 that stores multiple thresholds corresponding to the illuminance around the PC 2 as candidates for the predetermined illuminance value. As illustrated in the illuminance threshold table Tb of FIG. 5 , the multiple thresholds include a first threshold (e.g., 100 lx) and a second threshold (e.g., 5 lx) that is smaller than the first threshold. The control unit 20 determines whether the illuminance detected by the illuminance sensor 14 is less than the predetermined value based on one of the multiple thresholds (S2). This allows the control unit 20 to accurately determine the closed state based on the detection result of the illuminance sensor 14 by using a threshold corresponding to the illuminance around the PC 2 from the multiple thresholds.

[0051] In this embodiment, the PC 2 further includes a keyboard 10, a touchpad 12, and a touch panel 13 on the display 8 as examples of input interfaces for inputting a user operation to select one of multiple thresholds, as exemplified in the illuminance threshold table Tb. The predetermined illuminance value used in the determination of step S2 is the one threshold selected by the user operation. This allows the closed state to be determined more accurately based on the detection result of the illuminance sensor 14 by using the threshold selected by the user in accordance with the usage environment of the PC 2, etc., as the predetermined illuminance value.

[0052] In this embodiment, when the control unit 20 determines that the two housings 4, 6 are in the closed state (S3), it performs a predetermined operation on the PC 2 according to the closed state (S4). For example, the display 8 is turned off as described above. By reducing erroneous determinations of the closed state and improving the determination accuracy, it becomes easier to perform such a predetermined operation at an appropriate time, thereby improving the convenience of the PC 2 for the user.

[0053] In this embodiment, the control program 26 is an example of a program for controlling a PC 2 (an example of an electronic device) in which two housings 4, 6 are rotatably connected and can be switched between an open and closed state depending on the rotation of the housings. When executed by a control unit 20 (an example of a control circuit) of the PC 2, the control program 26 causes the control unit 20 to determine that the two housings 4, 6 are in the closed state (S3) if the magnetic sensor 18 detects magnetism (YES in S1) and the detection result of the illuminance sensor 14 indicates a predetermined state corresponding to the closed state (YES in S2). If the detection result of the illuminance sensor 14 indicates a state other than the predetermined state (NO in S2), the control program 26 causes the control unit 20 to determine whether the two housings 4, 6 are in the closed state based on the detection period during which the magnetic sensor 18 continuously detects magnetism (S5, S3). This allows the PC 2 to be controlled to accurately determine the closed state while reducing erroneous determinations of the closed state.

[0054] (Embodiment 2) Hereinafter, embodiment 2 will be described with reference to Fig. 6. In embodiment 1, the PC 2 was described as using the instantaneous illuminance value detected by the illuminance sensor 14 in the process of determining the closed state (Fig. 4) (S2). In embodiment 2, the PC 2 will be described as performing the process of determining the closed state based on the change in the illuminance value over time, instead of the instantaneous illuminance value.

[0055] Hereinafter, the description of the configuration and operation similar to those of the PC 2 according to the first embodiment will be omitted as appropriate, and the PC 2 according to this embodiment will be described.

[0056] Fig. 6 is a flowchart illustrating a process for determining whether the PC 2 is in the closed state according to the second embodiment. The flowchart in Fig. 6 starts, for example, when the illuminance sensor 14 is repeatedly detecting illuminance values ​​at a predetermined detection cycle. Hereinafter, descriptions similar to those in Fig. 4 according to the first embodiment will be omitted as appropriate.

[0057] In the process of determining the closed state in this embodiment, the control unit 20 performs processes for detecting a rapid change in the illuminance value over time (S2A, S2B) instead of the determination of whether the illuminance value is less than the threshold value (S2) in embodiment 1. For example, when magnetism is detected (YES in S1) and the illuminance value changes rapidly (YES in S2A, YES in S2B), the first and second housings 4 and 6 are determined to be in the closed state (S3).

[0058] For example, in this embodiment, when magnetism is detected by the magnetic sensor 18 (YES in S1), the control unit 20 determines whether each of the illuminance values ​​detected by the illuminance sensor 14 over a predetermined period (e.g., one minute) immediately prior to the detection of the magnetism is equal to or greater than the open state threshold (S2A). The open state threshold is set to a value higher than the closed state threshold in step S2B, described below, assuming a relatively bright environment around the PC 2, such as 1000 lx. The PC 2 sequentially stores the illuminance values ​​detected by the illuminance sensor 14 for the predetermined period in the storage device 24, for example. In this way, it is determined whether the illuminance values ​​detected within the predetermined period are continuously equal to or greater than the open state threshold (S2A).

[0059] If the illuminance value remains equal to or greater than the open state threshold within a predetermined period of time (YES in S2A), the control unit 20 determines whether the illuminance value detected by the illuminance sensor 14 will subsequently fall below the closed state threshold within a short period of time (e.g., several tens of seconds) (S2B). The closed state threshold is set to be equal to or less than the open state threshold, and is, for example, 100 lx, similar to the threshold used in step S2 of the closed state determination process ( FIG. 4 ) in the first embodiment. The determination in step S2B is made based on the detection signal from the illuminance sensor 14, similar to step S2 in FIG. 4 , for example.

[0060] For example, if an illuminance value below the threshold for the closed state is detected within a predetermined short period of time that is shorter than the predetermined period after the lapse of the predetermined period in step S2A, the control unit 20 determines that the detected illuminance value has decreased within a short period of time (YES in S2B).In this way, it is determined whether the detected illuminance value has changed from a state in which a relatively bright illuminance value corresponding to the open state continued (YES in S2A) to a darker illuminance value corresponding to the switch to the closed state within a short period of time (S2B).

[0061] If the detected illuminance value changes to below the threshold value for the closed state within the short period of time (YES in S2B), the control unit 20 determines that the first and second housings 4, 6 are in the closed state (S3).

[0062] On the other hand, if the illuminance value detected in the short period is not less than the threshold for the closed state, i.e., is equal to or greater than the threshold for the closed state (NO in S2B), the control unit 20 determines whether the period of magnetic detection after step S1 has continued beyond the predetermined period (S5). Similarly, if the illuminance value within the predetermined period has not continuously been equal to or greater than the threshold for the open state, i.e., is less than the threshold for the open state (NO in S2A), the control unit 20 also performs the determination in step S5.

[0063] According to the closed state determination process of the second embodiment, if an illuminance value equal to or greater than the threshold for the open state is detected for a predetermined period before magnetic detection (YES in S2A), and then the illuminance value changes to a value below the threshold for the closed state within a short period of time (YES in S2B), it is determined that the PC 2 is in the closed state (S3). In this way, in addition to the detection of magnetism by the magnetic sensor 18, it is possible to determine that the PC 2 has changed from the open state to the closed state in response to a sudden change in illuminance measured by the illuminance sensor 14 from a relatively bright state to a dark state. This further improves the accuracy of determining the closed state when the detection result of the illuminance sensor 14 is also used, for example, from the viewpoint of preventing erroneous determination of the closed state based on the detection result of the magnetic sensor 18.

[0064] In the PC 2 of this embodiment, the open state threshold and the closed state threshold used in the above steps S2A and S2B may be selectable by the user from predetermined candidates, similar to the thresholds in step S2 of embodiment 1. In addition, the PC 2 may monitor the detection result of the illuminance sensor 14, for example, before executing the process of step S1 in Fig. 6, and may perform the determination of step S2B if magnetism is detected while detecting an illuminance value equal to or greater than the open state threshold for a predetermined period of time.

[0065] As described above, in the PC 2 of this embodiment, if the illuminance sensor 14 detects an illuminance higher than the threshold for the open state (an example of illuminance higher than a predetermined value) continuously for a predetermined period or more (YES in S2A), and then detects an illuminance lower than the threshold for the closed state (an example of illuminance lower than the threshold for the open state) (YES in S2B), the control unit 20 determines that the two housings 4, 6 are in the closed state (S3). This allows for more accurate determination of the closed state, since, for example, when the PC 2 is switched from the open state to the closed state, the illuminance may drop sharply from a relatively high state.

[0066] (Other Embodiments) As described above, the above-mentioned embodiments 1 and 2 have been described as examples of the technology disclosed in the present application. However, the technology in the present disclosure is not limited to these, and can also be applied to embodiments in which modifications, substitutions, additions, omissions, etc. are made as appropriate. Other embodiments will be described below as examples.

[0067] In the above-described first embodiment, the illuminance threshold used in step S2 of the closed state determination process ( FIG. 4 ) can be selected by the user of the PC 2 from among candidate thresholds corresponding to the ambient brightness, as illustrated in the illuminance threshold table Tb of FIG. 5 . The PC 2 of this embodiment may automatically select the illuminance threshold. For example, the control unit 20 stores the results of illuminance value detection over a predetermined period (e.g., one minute), and when magnetism is detected during the closed state determination process (YES in S1), calculates the time average of the illuminance values ​​over that period before the magnetism was detected. The control unit 20 may determine whether the ambient environment of the PC 2 is relatively bright or dark based on the time average of the illuminance values, i.e., the average illuminance, and select a threshold corresponding to the determination result from the illuminance threshold table Tb.

[0068] For example, in this embodiment, the control unit 20 may select a threshold value of 100 lx for a relatively bright condition if the average illuminance is equal to or greater than a predetermined value, and may select a threshold value of 5 lx for a relatively dark condition if the average illuminance is less than the predetermined value, and use these threshold values ​​for the determination in step S2. The predetermined value for the average illuminance may be, for example, 200 lx.

[0069] In the above-described embodiments, the closed state determination process determines whether the door is closed (S3) based on the comparison result between the illuminance value detected by the illuminance sensor 14 and a predetermined threshold value, or determines whether the door is closed (S5) based on the period during which the magnetism is detected (S2 in FIG. 4, S2A and S2B in FIG. 6). In this embodiment, the closed state may be determined based on, for example, a change in the illuminance value over time immediately before the magnetism is detected, without using a particular threshold value.

[0070] In this embodiment, for example, the control unit 20 calculates the time average of the illuminance values ​​over a predetermined period (e.g., one minute) immediately prior to the detection of magnetism. If the subsequently detected illuminance value varies by a predetermined percentage from the calculated average illuminance, the control unit 20 may determine the PC 2 as being in the closed state (S3), similar to the case where the threshold conditions in the above embodiment are met (YES in S2, or YES in S2A and YES in S2B). This allows for more flexible determination of the closed state depending on the illuminance around the PC 2. Furthermore, by using the amount of change from the average illuminance over the predetermined period, the closed state can be accurately determined, for example, even when the housings 4 and 6 are gradually moved closer to each other from the open state to the closed state.

[0071] In the above-described embodiments, examples have been described in which the illuminance sensor 14 and the magnetic sensor 18 are used together in the process of determining the closed state ( FIG. 4 or FIG. 6 ) without any particular user setting, but the determination process is not limited to this. For example, in the present embodiment, the user may be able to select, using a menu screen or the like, whether or not to use the illuminance sensor 14 together in the determination process in the PC 2. If the illuminance sensor 14 is not used together, when the magnetic sensor 18 detects magnetism (YES in S1), the control unit 20 may proceed to determine whether the magnetic detection period exceeds a predetermined period ( S5 ).

[0072] In the above-described embodiments, an example of the PC 2 that uses the detection result of the illuminance sensor 14 in addition to the magnetic sensor 18 in the process of determining the closed state has been described. In the present embodiment, the detection means that is used in combination with the detection result of the magnetic sensor 18 is not limited to the illuminance sensor 14. The process of determining the closed state according to such a modified example will be described with reference to FIGS. 7 and 8 .

[0073] 7 is a flowchart illustrating a process for determining whether the keyboard 10 is in the closed state in a first modified example. In this modified example, the area of ​​the region detected by the touch panel 13 (an example of a detector) superimposed on the display 8 is used instead of the detection result of the illuminance sensor 14 (S2C). In the closed state illustrated in FIG. 2, the proximity of the keyboard 10 to the display 8 may cause the capacitive touch panel to react. In this case, the touch panel 13 is considered to react over a wider area than when operated by a user.

[0074] In this modification, in addition to detecting magnetism by magnetic sensor 18 (YES in S1), control unit 20 acquires the response area of ​​touch panel 13 and compares it with a predetermined reference area (S2C). If the response area is larger than the reference area (YES in S2C), it is determined to be in the closed state (S3). Such detection of the response area of ​​touch panel 13 may be used instead of the detection result of illuminance sensor 14 in each of the above embodiments (e.g., S2 in FIG. 4, S2A and S2B in FIG. 6) as shown in FIG. 7, or may be used in combination with the detection result of illuminance sensor 14.

[0075] 8 is a flowchart illustrating a process for determining the closed state in a second modified example. In this modified example, the closed state is determined (S2D) using the detection result of the magnetic sensor 18 instead of the detection result of the illuminance sensor 14, and input states from various input interfaces (examples of detectors) such as the keyboard 10, the touchpad 12, the touch panel 13, and a mouse connected to the PC 2. When the PC 2 is closed, it is assumed that user operations that would be input from such input devices in the open state will be stopped.

[0076] In this modification, the control unit 20 monitors, for example, the input state of the input interface. When the control unit 20 detects magnetism (YES in S1), if there is no user input immediately before the detection of the magnetism (or if there is no input for a predetermined period of time immediately before the detection) (YES in S2D), the control unit 20 determines that each of the housings 4 and 6 is closed (S3). This input state of the PC 2 may be used instead of the detection result of the illuminance sensor 14 in each of the above embodiments, as shown in FIG. 8, or may be used in combination with the detection result of the illuminance sensor 14.

[0077] The closed state determination process according to the above modified example also enables the PC 2 to accurately determine the closed state while suppressing erroneous determination of the closed state, as in the above embodiments.

[0078] In this disclosure, preferred embodiments of the disclosed technology have been described with reference to the accompanying drawings. However, various modifications and alterations will be apparent to those skilled in the art. Such modifications and alterations are to be understood as being included within the scope of the present disclosure as defined by the appended claims, unless they deviate from the scope of the present disclosure. Furthermore, changes in the combination and order of elements in each embodiment may be realized without departing from the scope and spirit of the present disclosure.

[0079] Any of the above-described embodiments and modifications may be combined as appropriate to achieve the effects of each of them.

[0080] (Aspects of the Present Disclosure) As described above, the present disclosure includes the following aspects.

[0081] (First aspect) An electronic device in which two housings are rotatably connected and can switch between an open and closed state in response to rotation, comprising: a magnetic source provided in one of the two housings; a magnetic sensor provided in the other housing different from the one of the two housings, and positioned so as to be able to detect magnetic field from the magnetic source when the two housings are in a closed state in which they are rotated closer to each other; a control circuit that determines whether the two housings are in the closed state based on at least a magnetic field detection result by the magnetic sensor; and a detector that is provided in one of the two housings and detects a state that changes depending on whether the two housings are in the closed state, separately from the magnetic sensor, wherein, when magnetic field is detected by the magnetic sensor, the control circuit determines that the two housings are in the closed state if the detection result by the detector indicates a predetermined state corresponding to the closed state; and, if the detection result by the detector indicates a state other than the predetermined state, determines whether the two housings are in the closed state in response to a detection period during which magnetic field is continuously detected by the magnetic sensor.

[0082] (Second Aspect) The electronic device according to the first aspect, wherein the control circuit determines that the two housings are in the closed state when the magnetic sensor detects magnetism and the detection result by the detector indicates a state different from the predetermined state, and when the detection period by the magnetic sensor exceeds a predetermined period.

[0083] (Third Aspect) The electronic device according to the first or second aspect, wherein the detector includes an illuminance sensor provided on opposing sides of the two housings in the closed state, the illuminance sensor detecting ambient illuminance, and the predetermined state corresponding to the closed state for the illuminance sensor is a state in which the illuminance detected by the illuminance sensor is less than a predetermined value.

[0084] (Fourth Aspect) The electronic device according to the third aspect, further comprising a storage device that stores a plurality of thresholds according to the illuminance around the electronic device as candidates for the predetermined value, the plurality of thresholds including a first threshold and a second threshold that is smaller than the first threshold, and the control circuit determines whether the illuminance detected by the illuminance sensor is less than the predetermined value based on one of the plurality of thresholds.

[0085] (Fifth Aspect) The electronic device according to the fourth aspect, further comprising an input interface for inputting a user operation to select one threshold value from the plurality of threshold values, wherein the predetermined value is the one threshold value selected by the user operation.

[0086] (Aspect 6) The electronic device according to any one of Aspects 3 to 5, wherein the control circuit determines that the two housings are in the closed state when the illuminance sensor detects an illuminance lower than the predetermined value after continuously detecting an illuminance higher than the predetermined value for a predetermined period of time or more.

[0087] (Seventh Aspect) The electronic device according to any one of the first to sixth aspects, wherein the control circuit, when determining that the two housings are in the closed state, performs a predetermined operation in the electronic device according to the closed state.

[0088] (Eighth Aspect) The electronic device according to any one of the first to seventh aspects, wherein the detector includes a capacitive touch panel that detects an area where an object is in proximity, and the predetermined state of the touch panel corresponding to the closed state is a state in which an area of ​​the area detected by the touch panel is larger than a predetermined area.

[0089] (Aspect 9) The electronic device according to any one of Aspects 1 to 8, wherein the detector includes an input interface for inputting a user operation, and the predetermined state of the input interface corresponding to the closed state is a state in which no user operation is input to the input interface immediately before the magnetic sensor detects magnetism.

[0090] (Tenth Aspect) A program for controlling an electronic device in which two housings are rotatably connected and can switch between an open and closed state in response to rotation, the electronic device comprising: a magnetic source provided in one of the two housings; a magnetic sensor provided in the other housing different from the one of the two housings, and positioned so as to be able to detect magnetic field from the magnetic source when the two housings are in a closed state in which they are rotated closer to each other; a control circuit that executes the program and determines whether the two housings are in the closed state based on at least a magnetic field detection result by the magnetic sensor; and a detector that is provided in one of the two housings and detects a state that changes depending on whether the two housings are in the closed state, separately from the magnetic sensor; and the program, when executed by the control circuit, causes the control circuit to: determine that the two housings are in the closed state if the detection result by the detector indicates a predetermined state corresponding to the closed state; and determine whether the two housings are in the closed state in response to a period of magnetic field detection by the magnetic sensor if the detection result by the detector indicates a state other than the predetermined state.

[0091] The present disclosure is applicable to a technique for determining a closed state in which two housings are close to each other in an electronic device in which two housings are rotatably connected and can be switched between an open state and an closed state in response to rotation.

[0092] 2 PC 4 First housing 6 Second housing 8 Display 10 Keyboard 12 Touchpad 13 Touch panel 14 Illuminance sensor 16 Magnetic field generator 18 Magnetic sensor 20 Control unit 22 Communication module 24 Storage device 26 Control program Tb Illuminance threshold table

Claims

1. An electronic device in which two housings are rotatably connected and can switch between an open and closed state in response to rotation, comprising: a magnetic source provided in one of the two housings; a magnetic sensor provided in the other housing different from the first housing and positioned so as to be able to detect magnetic fields from the magnetic source when the two housings are in a closed state in which they are rotated close to each other; a control circuit that determines whether the two housings are in the closed state based on at least a result of magnetic field detection by the magnetic sensor; and a detector that is provided in one of the two housings and detects a state that changes depending on whether the two housings are in the closed state, separately from the magnetic sensor; wherein, when magnetic field is detected by the magnetic sensor, the control circuit determines that the two housings are in the closed state if the detection result by the detector indicates a predetermined state corresponding to the closed state, and determines whether the two housings are in the closed state depending on a detection period during which magnetic fields are continuously detected by the magnetic sensor if the detection result by the detector indicates a state other than the predetermined state.

2. The electronic device according to claim 1, wherein the control circuit determines that the two housings are in the closed state if the period of detection by the magnetic sensor exceeds a predetermined period when magnetism is detected by the magnetic sensor and the detection result by the detector indicates a state different from the predetermined state.

3. The electronic device according to claim 1, wherein the detector includes an illuminance sensor provided on opposing sides of the two housings when in the closed state, for detecting ambient illuminance, and the predetermined state for the illuminance sensor corresponding to the closed state is a state in which the illuminance detected by the illuminance sensor is less than a predetermined value.

4. The electronic device according to claim 3, further comprising a memory device that stores a plurality of thresholds according to the illuminance around the electronic device as candidates for the predetermined value, the plurality of thresholds including a first threshold and a second threshold smaller than the first threshold, and the control circuit determines whether the illuminance detected by the illuminance sensor is less than the predetermined value based on one of the plurality of thresholds.

5. The electronic device according to claim 4, further comprising an input interface for inputting a user operation to select one threshold value from the plurality of threshold values, and the predetermined value is the one threshold value selected by the user operation.

6. The electronic device according to claim 3, wherein the control circuit determines that the two housings are in the closed state when the illuminance sensor detects an illuminance higher than the predetermined value continuously for a predetermined period of time or more, and then detects an illuminance lower than the predetermined value.

7. The electronic device according to claim 1, wherein when the control circuit determines that the two housings are in the closed state, the control circuit performs a predetermined operation in the electronic device according to the closed state.

8. The electronic device according to claim 1, wherein the detector includes a capacitive touch panel that detects an area where an object is in proximity, and the predetermined state of the touch panel corresponding to the closed state is a state in which the area of ​​the area detected by the touch panel is larger than a predetermined area.

9. The electronic device of claim 1, wherein the detector includes an input interface for inputting a user operation, and the predetermined state of the input interface corresponding to the closed state is a state in which no user operation is input to the input interface immediately before the magnetic sensor detects magnetism.

10. A program for controlling an electronic device having two rotatably connected housings that can switch between an open and closed state in response to rotation, the electronic device comprising: a magnetic source provided in one of the two housings; a magnetic sensor provided in the other housing different from the first housing and positioned so as to be able to detect magnetic fields from the magnetic source when the two housings are in a closed state in which they are rotated close to each other; a control circuit that executes the program and determines whether the two housings are in the closed state based on at least a magnetic detection result by the magnetic sensor; and a detector that is provided in one of the two housings and detects a state that changes depending on whether the two housings are in the closed state, separately from the magnetic sensor; and the program, when executed by the control circuit, causes the control circuit to: determine that the two housings are in the closed state if the detection result by the detector indicates a predetermined state corresponding to the closed state; and determine whether the two housings are in the closed state depending on a period of magnetic detection by the magnetic sensor if the detection result by the detector indicates a state other than the predetermined state.

Citation Information

Patent Citations

  • Information processing system and its state transition control method

    JP2003241862A

  • Information processor and control method thereof

    JP2010146241A

  • Mobile phone

    JP2013207481A

  • Terminal cover and terminal device

    JP2018121216A

  • Filtering Computing Devices with Accelerometer-Based Hall Effect Sensors

    JP2018523190A