Disclosure of Invention
In view of the above, embodiments of the present invention mainly provide an apparatus for automatically loading and unloading a communication card, a control method thereof, and a mobile terminal, which are capable of loading and unloading the communication card simply and conveniently.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a device for automatically loading and unloading a communication card, which comprises: the communication card comprises a communication card sliding block, a communication card base and a main processor; wherein,
the communication card sliding block is used for realizing sliding in and sliding out under the control of the main processor; the communication card sliding block comprises a communication card bin for placing a communication card, a sliding guide rail and a first coil for generating magnetic field force; the sliding guide rails are positioned on two sides of the communication card sliding block, and the first coil is positioned at the bottom of the communication card sliding block;
the communication card base is used for bearing the sliding in and sliding out of the communication card sliding block under the control of the main processor; the communication card base comprises a sliding block bin for bearing a communication card sliding block, a sliding groove corresponding to the position of the sliding guide rail and a second coil for generating magnetic field force; the second coil is positioned in the sliding block bin;
the main processor is used for controlling the current directions in the first coil and the second coil according to the received first instruction or second instruction, generating mutually exclusive or attractive magnetic field force, and controlling the sliding-out and sliding-in of the communication card sliding block.
In the scheme, the communication card base further comprises a slide-out detector and a slide-in detector, wherein the slide-out detector and the slide-in detector are positioned on the outer side of the side face of the communication card base with the sliding groove and are connected with the main processor through PCB wiring; the device is used for detecting the slide-in and slide-out states of the communication card slide block and feeding back the detected states to the main processor.
In the above scheme, the main processor is further configured to determine whether to power off the communication card and to recover power supply according to the first instruction or the second instruction and the feedback state.
In the above scheme, the main processor is further configured to determine whether to stop supplying the current to the first coil and the second coil according to the feedback state.
The embodiment of the invention also provides a control method for automatically loading and unloading the communication card, which is applied to a device comprising a communication card sliding block and a communication card clamping seat; the method comprises the following steps:
receiving a first instruction or a second instruction;
according to the received first instruction or second instruction, providing the same-direction or reverse current for a first coil in the communication card sliding block and a second coil in the communication card clamping seat respectively;
the first coil and the second coil generate mutual exclusion or attraction magnetic field force to control the communication card sliding block to slide out or slide in.
In the above scheme, the method further comprises: and detecting the slide-in and slide-out states of the communication card slide block and feeding back the detected states.
In the above scheme, the method further comprises: whether to stop supplying the current to the first coil and the second coil is determined according to the state of the feedback.
In the above scheme, the method further comprises: and determining whether to power off the communication card and restore power supply according to the first instruction or the second instruction and the feedback state.
In the above scheme, the first instruction includes an instruction to load a communication card, an instruction to unload the communication card, and an instruction to replace the communication card, and the second instruction includes an instruction to close the communication card compartment; the second instruction comprises an instruction for loading the communication card, an instruction for unloading the communication card and an instruction for replacing the communication card, and the first instruction comprises an instruction for closing the communication card bin.
The embodiment of the invention also provides a mobile terminal, which comprises any one device for automatically loading and unloading the communication card.
The device for automatically loading and unloading the communication card, the control method thereof and the mobile terminal provided by the embodiment of the invention have the advantages that the device for automatically loading and unloading the communication card, which comprises a communication card sliding block and a communication card base, is configured in the mobile terminal; according to the received first instruction or second instruction, controlling the current directions in a first coil positioned in a communication card sliding block and a second coil positioned in a communication card base, generating mutually exclusive or attractive magnetic field force, and controlling the communication card sliding block to slide out and slide in; according to the embodiment of the invention, the electromagnetic induction principle is utilized, the direction of the magnetic field force generated between the communication card base and the communication card sliding block is changed by changing the current direction in the coils of the communication card base and the communication card sliding block, so that the communication card sliding block can slide in and out, and the problem of space occupation of a traditional motor transmission structure can be reasonably avoided;
according to the embodiment of the invention, whether the power of the communication card is cut off before the communication card sliding block slides out and whether the power of the communication card is recovered after the communication card sliding block slides in are determined according to the content of the user instruction, so that the risk of burning the card caused by the traditional hot plug action is avoided;
the communication card sliding block in the embodiment of the invention is designed to automatically slide in and out according to the user instruction, and the traditional manual operation mode is upgraded to the automatic operation mode, so that the problem of complicated operation of disassembling and assembling the communication card by a user is effectively solved, a friendly operation interface is provided for the user, and a new solution is provided for the automatic operation of the card seat of a mobile terminal product.
Detailed Description
The basic idea of the embodiment of the invention is as follows: the method comprises the steps that a device for automatically loading and unloading the communication card, which comprises a communication card sliding block and a communication card base, is configured in the mobile terminal; and controlling the current directions in the first coil positioned in the communication card sliding block and the second coil positioned in the communication card base according to the received first instruction or second instruction, generating mutually exclusive or attractive magnetic field force, and controlling the sliding-out and sliding-in of the communication card sliding block.
The device for automatically loading and unloading the communication card also comprises a main processor, which is used for receiving the first command or the second command, providing currents in the same direction or opposite directions for the first coil of the communication card sliding block and the second coil of the communication card base, and enabling the first coil and the second coil to generate mutually exclusive or attractive magnetic field force. The main processor may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or a programmable gate array (FPGA).
The communication card sliding block and the communication card base generate relative motion under the control of the main processor, so that the communication card sliding block slides in and slides out, and the communication card is placed on the communication card sliding block or taken out from the communication card sliding block, namely: the loading or unloading of the communication card is completed.
The communication card sliding block comprises a communication card bin, a sliding guide rail and a first coil; the communication card base comprises a sliding block bin, a sliding groove and a second coil; the communication card sliding block is connected with the communication card base through a sliding guide rail and a sliding groove, and the sliding guide rail can slide in the sliding groove; the first coil and the second coil respectively obtain current from the main processor through a first coil wire and a second coil wire, and generate mutually exclusive or attractive magnetic field force by utilizing the electromagnetic induction principle.
The embodiments are described in further detail below with reference to the accompanying drawings and specific examples.
Fig. 1 is a schematic front structure diagram of a communication card slider in an embodiment of the present invention, and as shown in fig. 1, the communication card slider includes a sliding guide rail 11, a communication card bin 12, and a first coil power supply lead 13; wherein,
the sliding guide rails 11 are positioned on two sides of the communication card sliding block and are used for completing relative movement between the communication card sliding block and the communication card base, so that the communication card sliding block can slide in and out on the communication card base;
the communication card bin 12 is positioned above the communication card sliding block, and the bottom of the communication card bin 12 is provided with a first coil; the communication card bin 12 is used for placing communication cards of users, such as SIM cards, USIM cards and other cards used for communication; in practical application, the metal surface of the communication card faces upwards when the communication card is placed so as to be connected with a main processor;
the first coil power supply lead 13 is connected to an interface at the inner side of the communication card sliding block; one end of the first coil power supply lead 13 is connected with the main processor, and the other end of the first coil power supply lead is connected with the first coil, and the main processor can supply current required by work to the first coil through the first coil power supply lead 13; here, the inner side is a side opposite to the sliding direction of the communication card slider, and is one side surface of the communication card slider.
Fig. 2 is a schematic structural diagram of the back surface of the communication card slider in the embodiment of the present invention, and as shown in fig. 2, the communication card slider further includes a first coil 22, and the first coil 22 is located at the bottom of the communication card slider and connected to the first coil power supply lead 13; the first coil 22 obtains the current provided by the main processor through the first coil power supply lead 13, generates magnetic field force by using the electromagnetic induction principle, and interacts with the magnetic field generated by the second coil on the communication card base, so as to drive the communication card sliding block to realize the sliding-in and sliding-out actions based on the communication card base.
Fig. 3 is an internal view of a communication card base according to an embodiment of the present invention, and as shown in fig. 3, the communication card base includes a sliding block chamber 31, a sliding slot 32, a second coil 33, a coil power supply interface 34, a slide-in detector 35, and a slide-out detector 36; wherein,
the sliding block bin 31 is positioned above the communication card base, a second coil 33 is arranged above the sliding block bin 31, and the sliding block bin 31 is used for bearing a communication card sliding block and providing a sliding-out or sliding-in motion space;
the sliding grooves 32 are positioned on the inner sides of the two side surfaces of the communication card base and correspond to the sliding guide rails 11 of the communication card sliding block, and the sliding guide rails 11 can be placed in the sliding grooves 32 and slide in the sliding grooves 32; the sliding guide rail 11 is combined with the sliding groove 32 to support the relative movement between the communication card sliding block and the communication card base, so that the communication card sliding block can slide in and out after bearing a communication card;
the second coil 33 is positioned in the sliding block bin 31, acquires current provided by the main processor through a second coil power supply lead, generates magnetic field force by utilizing the electromagnetic induction principle, and interacts with the magnetic field generated by the first coil 22 on the communication card sliding block, so that the communication card sliding block is driven to realize the sliding-in and sliding-out actions based on the communication card base; one end of the second coil power supply wire is connected with the main processor, and the other end of the second coil power supply wire is connected with the second coil 33; the main processor can provide current required by work to the second coil through the second coil power supply lead; here, the inner side is the side opposite to the sliding direction of the communication card sliding block, and is one side surface of the communication card base;
the coil power supply interface 34 is positioned on the inner side of the communication card base and comprises two interfaces provided for a first coil power supply lead and two interfaces provided for a second coil power supply lead;
the slide-in detector 35 and the slide-out detector 36 are located outside a side of the communication card chassis having the sliding slot 32, and the slide-in detector 35 and the slide-out detector 36 may be located on the same side or different sides; the slide-in detector 35 and the slide-out detector 36 are connected to the main processor through PCB traces, and can detect the slide-in and slide-out states of the communication card slider, and feed back the detected states to the main processor, so as to provide a cutoff basis for supplying power to the first coil and the second coil;
the slide-in detector 35 and the slide-out detector 36 may be implemented using conventional mechanical springs.
Correspondingly, the main processor is further used for determining whether to power off the communication card and recover power supply according to the first instruction or the second instruction and the feedback state. The main processor also determines whether to stop supplying current to the first coil and the second coil according to the feedback state.
The communication card slider shown in fig. 1 and the communication card base shown in fig. 3 together constitute an apparatus for automatically loading and unloading a communication card according to an embodiment of the present invention. Fig. 4 is a schematic assembly structure diagram of a communication card base and a communication card slider in an embodiment of the present invention, where fig. 4-1 is a perspective view of a sliding state of the communication card base and the communication card slider, and fig. 4-2 is an external view of the sliding state of the communication card base and the communication card slider.
Fig. 4-1 is a perspective view of a slide state showing the relative positions of the communication card slider and the communication card base within the communication card base in the slide state; the slide out view of fig. 4-2 shows the relative position of the communication card slider and the communication card base outside the communication card base in the slide position.
In an embodiment of the present invention, a mobile terminal is provided, including: the communication card base shown in fig. 3, the communication card sliding block shown in fig. 1 and the main processor form a device for automatically loading and unloading the communication card, and the device is fixed on the side surface of the mobile terminal.
When the main processor receives a user instruction, the communication card can be carried to slide out of the shell of the mobile terminal, so that the user operation is simplified. The user instruction received by the main processor comprises an instruction for loading a communication card, an instruction for unloading the communication card, an instruction for replacing the communication card and an instruction for closing the communication card bin, wherein the instruction for loading the communication card, the instruction for unloading the communication card and the instruction for replacing the communication card can be called as a first instruction; the command to close the communication card compartment may be referred to as a second command.
When a first instruction from a user is received, the main processor changes the direction of current supplied to the first coil and the second coil, so that the communication card sliding block containing the communication card bin slides out; when a second instruction from a user is received, the main processor changes the direction of the current supplied to the first coil and the second coil, so that the communication card sliding block containing the communication card chamber slides in, and determines whether to cut off the power supply and recover the power supply of the communication card according to the instruction content of the user. Here, the instruction content refers to loading or replacing the communication card, or unloading the communication card.
Fig. 5 is a schematic flow chart illustrating an implementation of the control method for automatically loading the communication card according to the embodiment of the present invention, and as shown in fig. 5, the control method for automatically loading the communication card according to the embodiment of the present invention includes the following steps:
step 501: receiving a first instruction or a second instruction;
here, the first instruction is a communication card loading instruction, a communication card unloading instruction or a communication card replacing instruction, and the second instruction is an instruction for closing the communication card bin; or the second instruction is a communication card loading instruction, a communication card unloading instruction or a communication card replacing instruction, and the first instruction is an instruction for closing the communication card bin.
The loading is to place the communication card in the communication card bin of the empty communication card sliding block; the replacement is to replace the communication card placed in the communication card bin of the communication card sliding block; and unloading is to take out the communication card placed in the communication card bin of the communication card sliding block. No matter the communication card instruction is loaded, unloaded or replaced, the communication card sliding block needs to slide out; the command to close the communication card bay requires the communication card slider to slide in.
Step 502: according to the received first instruction or second instruction, providing a same-direction current or a reverse current for a first coil in a communication card sliding block and a second coil in a communication card base respectively;
here, the first coil and the second coil are supplied with a same-direction current or a reverse-direction current by the main processor.
Step 503: the first coil and the second coil generate attraction or mutual exclusion magnetic field force to control the communication card sliding block containing the communication card bin to slide out or in.
The first coil and the second coil generate mutually exclusive magnetic field force to control the communication card sliding block to slide out; and currents in the same direction are respectively supplied to the first coil and the second coil, and the first coil and the second coil generate attracted magnetic field force to control the communication card sliding block to slide in.
Fig. 6 is a schematic view of an operation flow of a user for loading, unloading or replacing a communication card in an embodiment of the present invention, where the communication card is an SIM card in the embodiment; as shown in fig. 6, the operation flow of the user to load and unload or replace the communication card in this embodiment includes the following steps:
step 601: the user selects the operation of the SIM card on the user interface of the mobile terminal, and the main processor receives the instruction from the user;
step 602: the main processor judges the operation to be performed by the user according to the received instruction, and if the operation is to replace or unload the SIM card, the step 603 is executed; if the SIM card is loaded, go to step 604;
step 603: the main processor is used for quickly powering off the SIM card;
step 604: the main processor provides current in opposite directions for a second coil arranged on the communication card base and a first coil of the communication card sliding block according to the received instruction;
specifically, the instruction of the step is to load the SIM card, unload the SIM card, or replace the SIM card; the main processor provides currents in opposite directions for the first coil and the second coil and controls the communication card sliding block containing the SIM card bin to slide out;
step 605: mutually exclusive magnetic field force is generated between the first coil and the second coil to push the communication card sliding block to slide out;
step 606: the sliding-out detector detects whether the communication card sliding block completely slides out, if not, the step 604 and the step 605 are continuously executed, current is continuously provided for the first coil and the second coil, and the communication card sliding block is pushed to slide out; if the sliding-out is completed, informing the main processor to stop supplying the current to the first coil and the second coil;
step 607: the user operates the SIM card according to the requirement;
here, the operation is loading of the communication card, or unloading of the communication card, or replacement of the communication card;
step 608: after receiving an instruction of closing the SIM card bin from a user, the main processor provides current in the same direction for the first coil and the second coil and controls a communication card sliding block containing the SIM card bin to slide in;
step 609: magnetic field force which is mutually attracted is generated between the first coil and the second coil to push the sliding block to slide in;
step 610: the sliding-in detector detects whether the communication card sliding block completely slides in, if not, the step 608 and the step 609 are continuously executed to provide current for the second coil of the first coil to push the communication card sliding block to slide in; if the sliding-in is complete, informing the main processor to stop supplying the current to the first coil and the second coil;
step 611: the main processor judges the operation to be performed by the user according to the received instruction, and if the operation is to replace or load the SIM card, the step 612 is executed; if the SIM card is unloaded, go to step 613;
step 612: supplying power to the SIM card, and communicating the SIM card with a main board of the mobile terminal;
step 613: the user interface displays that the SIM card operation is finished, and the processing flow is finished;
here, the operation includes loading the SIM card, or unloading the SIM card, or replacing the SIM card.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.