Abstract:
An electronic device may include: a magnetic sensor configured to identify the intensity of a magnetic field; a wireless communication circuit; a processor; and memory electrically connected to the magnetic sensor, the wireless communication circuit, and the processor, and storing instructions. The processor may be configured so that the electronic device: uses the magnetic sensor to identify a plurality of intensities of the magnetic field during a first period; identifies, on the basis of the plurality of intensities, whether a reference intensity has been updated; identifies a first state of the electronic device when the reference intensity has been updated, the first state being identified on the basis of a comparison result between the latest intensity among the plurality of intensities and the updated reference intensity; and performs a function according to the identified first state. Various other embodiments identified through the specification are possible.
Abstract:
A keyboard device includes a key array, a power terminal, a communication terminal, a ground terminal, memory storing one or more computer programs, and one or more processors communicatively coupled to the power terminal, the communication terminal, the ground terminal, and the memory, wherein the one or more computer programs include computer-executable instructions that, when executed by the one or more processors individually or collectively, cause the keyboard device to detect electrical connection to an external electronic device through the power terminal, the communication terminal, and the ground terminal, when electrically connected to the external electronic device, receive a key input through the key array, in response to the key input, generate first encoded data having a first error correction rate and second encoded data having a second error correction rate greater than the first error correction rate, combine the first encoded data and the second encoded data to generate input data, and transmit the input data to the external electronic device through the communication terminal.
Abstract:
An electronic device includes a processor; a first camera module comprising a camera including a first lens assembly having a first field of view (FOV) and a second camera module comprising a camera spaced apart a first camera module and including a second lens assembly having a second FOV narrower than the first FOV; wherein the first camera module includes an image sensor and a filter including a glass plate spaced apart the image sensor and disposed on the image sensor, and a layer disposed on the glass plate and configured to absorb a portion of infrared light among the light transmitted through the first lens assembly, wherein the processor is configured to obtain depth information about on the subject located within the second FOV based on data about the light passing through the filter, which is obtained through the image sensor.
Abstract:
An electronic device according to various embodiments may comprise: a sensor circuit; a memory storing handler activation information; and a first processor and a second processor operatively connected to the sensor circuit and the memory. The sensor circuit may be configured to transmit an interrupt signal using an interrupt transmission unit comprising circuitry electrically connected to the first processor and the second processor, and configured to transmit sensor data using a sensor data transceiver electrically connected to the first processor and the second processor. The memory may store instructions which, when executed, cause the first processor to: amend or update interrupt handler activation information in the memory in response to a system state of the electronic device, and receive the sensor data from the sensor circuit in response to an interrupt signal transmitted from the sensor circuit based on identifying, using the interrupt handler activation information, that the first processor processes the interrupt of the sensor circuit; wherein the instructions, when executed, cause the second processor to: receive the sensor data from the sensor circuit in response to the interrupt signal transmitted from the sensor circuit based on identifying, using the interrupt handler activation information, that the second processor processes the interrupt of the sensor circuit.
Abstract:
A method of minimizing power consumption of an electronic device is provided. The method includes receiving a signal through a plurality of receivers of the electronic device, checking a status of the received signal, determining whether the received signal satisfies a preset amplifier control condition based on the status of the received signal, and adjusting a gain of an amplifier, which is connected to a receiver of the plurality of receivers, in response to the preset amplifier control condition when the preset amplifier control condition is satisfied.
Abstract:
An electronic device is provided. The electronic device includes a display, a first data interface circuit including a port for connecting with an external device, and configured to exchange serial data with the external device, at least one processor operatively connected with the first data interface circuit, and a memory operatively connected with the at least one processor, the memory stores instructions that cause the at least one processor to allocate a plurality of input/output ports for processing serial data received from the first data interface circuit in parallel, and receive a first signal from the external device through the first data interface circuit, in response to the first signal being received, identify a port set to be in an active state among the plurality of input/output ports, identify the first signal by using the port that is identified as being in the active state, and display information.
Abstract:
An electronic device is provided. The electronic device includes a housing; a first antenna for transmitting and receiving at least one of a first wireless transmission signal and a first wireless reception signal using the first portion of the housing; a first PCB electrically connected to the first antenna and including a first connector; a second PCB electrically connected to the first PCB and including a second connector; a signal connection member having a first end connected to the first connector and a second end connected to the second connector; a communication module electrically connected to the second connector and controlling the at least one of the first wireless transmission signal and the first wireless reception signal; a sensor module which is electrically connected to the second connector, and adjusts at least one sensing parameter based on frequency information of the at least one of the first wireless transmission signal and the first wireless reception signal, and measures capacitance for a path of the at least one of the first wireless transmission signal and the first wireless reception signal between the first antenna and the second connector; and a processor configured to control the transmission power of the communication module according to the capacitance measured by using the sensor module.
Abstract:
An apparatus and a method for preventing battery swelling in an electronic device are provided. The operating method of an electronic device includes checking a temperature of the electronic device and state of charge (SoC) of a battery, determining whether to discharge the battery based on the temperature of the electronic device and the SoC of the battery, and discharging the battery in response to the battery discharge determination.