Electronic device and operating method therefor
An electronic apparatus including a coupler attachable to and detachable from a support which is to support the electronic apparatus, the coupler being arrangeable on a rear surface of the electronic apparatus, a memory to store at least one instruction, and a processor configured to execute the at least one instruction stored in the memory to control a current applied to a magnetic energy control magnet included in one of the coupler and the support such that the coupler is attached to or detached from the support.
1 . An electronic apparatus comprising:
a coupler, attachable to and detachable from a support, which is to support the electronic apparatus, the coupler being arrangeable on a rear surface of the electronic apparatus and one of the coupler and the support including a magnetic energy control magnet and another one of the coupler and the support including a magnetic material;
a memory to store at least one instruction; and
a processor configured to execute the at least one instruction stored in the memory to:
control a direction of a closed magnetic path of a current applied to the magnetic energy control magnet included in one of the coupler and the support such that the coupler is attached to the support based on the direction of the closed magnetic path being through the magnetic material or the coupler is detached from the support based on the direction of the closed magnetic path not being through the magnetic material.
2 . The electronic apparatus of claim 1 , wherein the support includes the magnetic energy control magnet and a first connector,
the coupler includes a second connector to be engaged with the first connector, and
the electronic apparatus applies the current to the magnetic energy control magnet through the second connector and the first connector.
3 . The electronic apparatus of claim 2 , wherein the second connector senses whether the second connector is coupled with the first connector, and
the processor is further configured to execute the at least one instruction to control the current applied to the magnetic energy control magnet based on the second connector sensing the second connector is coupled with the first connector.
4 . The electronic apparatus of claim 1 , further comprising:
a display; and
a user input unit,
wherein the processor is further configured to execute the at least one instruction to:
control the display to output an interface screen to control a signal generation,
generate a control signal according to a user input, received through the user input unit, corresponding to the interface screen output, and
control the direction of the closed magnetic path of the current applied to the magnetic energy control magnet according to the control signal.
5 . The electronic apparatus of claim 1 , wherein the coupler is a first coupler and the electronic apparatus includes a second coupler arrangeable on the rear surface of the electronic apparatus in one of a horizontal direction and a vertical direction with the first coupler,
the first coupler and the second coupler respectively attachable to and detachable from a first support and a second support included in the support by using a first magnetic energy control magnet and a second magnetic energy control magnet, respectively, and
the processor is further configured to execute the at least one instruction to control the direction of the closed magnetic path of the current applied to the first magnetic energy control magnet and a current applied to the second magnetic energy control magnet.
6 . The electronic apparatus of claim 5 , wherein one of the coupler and the support has a hinge structure,
the electronic apparatus further comprises a user input unit, and
the processor is further configured to execute the at least one instruction to control one of the first coupler and the second coupler to be attached to a corresponding support and control another one to be detached from a corresponding support according to a rotation direction of the electronic apparatus received through the user input unit.
7 . The electronic apparatus of claim 1 , wherein the coupler includes the magnetic energy control magnet and a first fastener that moves along the closed magnetic path of the magnetic energy control magnet,
the support includes a second fastener to be coupled with the first fastener, and
the processor is further configured to execute the at least one instruction to control a movement of the first fastener by using the current to be applied to the magnetic energy control magnet such that the coupler is attached to or detached from the support.
8 . The electronic apparatus of claim 7 , wherein the magnetic energy control magnet includes a permanent magnet, a first pole piece in contact with an N pole of the permanent magnet, and a second pole piece in contact with an S pole of the permanent magnet,
the first fastener includes a first hook and a second hook, each including a magnetic material, and the first hook and the second hook are rotatably arranged at a lower end of the first pole piece and a lower end of the second pole piece,
the second fastener includes a left fastener and a right fastener that are caught by the first hook and the second hook, respectively, provided the left fastener and the right fastener move to a left edge and a right edge,
the processor is further configured to execute the at least one instruction to control the direction of the current applied to the magnetic energy control magnet to control the first fastener to be coupled to the second fastener or to be detached from the second fastener, and
the controlling of the first fastener to be coupled to the second fastener or to be detached from the second fastener includes at least one of:
preventing the first hook and the second hook from being caught by the left fastener and the right fastener by preventing magnetic force from being formed at the lower end of the first pole piece and the lower end of the second pole piece; and
allowing the first hook and the second hook to respectively move to the left edge and the right edge and be caught by the left fastener and the right fastener to be coupled to the support by allowing the magnetic force to be formed at the lower end of the first pole piece and the lower end of the second pole piece.
9 . The electronic apparatus of claim 8 , wherein the second pole piece is arranged apart from the first pole piece,
the magnetic energy control magnet further includes a rotating magnet rotatably arranged between the first pole piece and the second pole piece,
the processor is further configured to execute the at least one instruction to control the current applied to the magnetic energy control magnet to rotate the rotating magnet to control first fastener to be coupled to the second fastener or to be detached from the second fastener, and
the controlling of the first fastener to be coupled to the second fastener or to be detached from the second fastener includes at least one of:
allowing the first hook and the second hook to be detached from the left fastener and the right fastener by preventing the magnetic force from being formed at the lower end of the first pole piece and the lower end of the second pole piece by allowing the first pole piece and an S pole of the rotating magnet to be magnetically connected and allowing the second pole piece and an N pole of the rotating magnet to be magnetically connected; and
allowing the first hook and the second hook to be coupled to the left fastener and the right fastener by allowing the magnetic force to be formed at the lower end of the first pole piece and the lower end of the second pole piece by allowing the first pole piece and the N pole of the rotating magnet to be magnetically connected and allowing the second pole piece and the S pole of the rotating magnet to be magnetically connected.
10 . An operating method performed by an electronic apparatus, comprising:
controlling a coupler, attachable to and detachable from a support that is to support the electronic apparatus, one of the coupler and the support including a magnetic energy control magnet and another one of the coupler and the support including a magnetic material, by controlling a direction of a closed magnetic path of a current to be applied to the magnetic energy control magnet included in the one of the coupler and the support, the coupler being arrangeable on a rear surface of the electronic apparatus, and
the controlling of the coupler to be attached to or detached from the support includes at least one of:
allowing the coupler to be attached to the support based on the direction of the closed magnetic path being through the magnetic material; and
allowing the coupler to be detached from the support based on the direction of the closed magnetic path not being through the magnetic material.
11 . The operating method of claim 10 , wherein the support includes the magnetic energy control magnet and a first connector,
the coupler includes a second connector to be engaged with the first connector, and
the method further comprises applying the current to the magnetic energy control magnet through the second connector and the first connector.
12 . The operating method of claim 11 , further comprising sensing whether the second connector and the first connector are coupled with each other,
wherein the controlling of the coupler to be attached to or detached from the support comprises, based on the second connector and the first connector being coupled with each other, controlling the coupler to be attached to or detached from the support by controlling the direction of the closed magnetic path of the current applied to the magnetic energy control magnet.
13 . A non-transitory computer-readable recording medium having recorded thereon a program to execute an operating method performed by an electronic apparatus, the operating method comprising:
controlling a coupler, attachable to and detachable from a support that is to support the electronic apparatus, by controlling a direction of a closed magnetic path of a current applied to a magnetic energy control magnet included in one of the coupler and the support and a magnetic material included in another one of the coupler and the support, and
the controlling of the coupler to be attached to or detached from the support includes at least one of:
allowing the coupler to be attached to the support based on the direction of the closed magnetic path of being through the magnetic material; and
allowing the coupler to be detached from the support based on the direction of the closed magnetic path of not being through the magnetic material.