Card plugging device, control method and electronic equipment
By designing card insertion and removal devices for power modules, eccentric wheels and sliding components, combined with metal detection sensors and pressure sensors, automatic plugging and removal of SIM cards or memory cards is achieved, solving the problem of manual operation affecting equipment recovery and testing efficiency, and improving the efficiency of improvement of the problem of improving the Maintenance and life test efficiency.
Patent Information
- Application Number
- CN202411348951.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, long-term use of SIM cards or memory cards leads to poor contact, requiring frequent plug-and-removal operations, and manual plug-and-removal operations affect the device's function recovery and life test efficiency.
A card insertion and removal device is designed, including a power module, an eccentric wheel, a connecting part and a sliding part. The card is inserted and removed through automated control, and the operation accuracy and safety is ensured using metal detection sensors and pressure sensors.
It realizes automatic card plug-in and unplugging without manual operation, improves the maintenance efficiency and life test efficiency of electronic equipment, and ensures multiple high-frequency plug-in and unplugging operations of the card.
Smart Images

Figure CN119108832A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a card plugging and unplugging device, a control method and an electronic equipment. Background Art
[0002] Due to long-term use, the gold finger of the SIM card (Subscriber Identity Module) or memory card may oxidize or cause other reasons, which will lead to poor card contact and recognition errors, and the card needs to be reinserted. In addition, in the related art, in order to test the plug-in and pull-out life of the SIM card, memory card or card slot, the card needs to be plugged and pulled out multiple times at a high frequency. Currently, the plug-in and pull-out operations are generally completed manually. If the electronic device is installed far away, it will affect the recovery of the electronic device function; on the other hand, manual plug-in and pull-out operations affect the efficiency of life testing. Summary of the invention
[0003] Based on this, it is necessary to provide a card insertion and removal device, a control method and an electronic device to address the above technical problems, which can realize automated card insertion and removal operations.
[0004] In a first aspect, the present application provides a card insertion and removal device, comprising:
[0005] Power module;
[0006] An eccentric wheel, wherein an eccentric hole of the eccentric wheel is connected to a rotating shaft of the power module;
[0007] A connecting component, the connecting component is fixedly connected to the power module, and the rotating shaft of the power module is perpendicular to the first surface of the connecting component; the first surface of the connecting component is provided with a sliding channel; one end of the sliding channel is opposite to the eccentric wheel, and the other end of the sliding channel is opposite to the target card;
[0008] The sliding component matches the sliding channel; wherein the rotation of the eccentric wheel can drive the sliding component to slide in the sliding channel; during the sliding process of the sliding component, one end of the sliding component contacts the target card, so that the target card is inserted into the card slot or popped out from the card slot.
[0009] In one embodiment, the sliding component is connected to the connecting component via a spring; wherein the elastic force direction of the spring is parallel to the sliding channel, and the sliding component can be restored to an initial position via the spring.
[0010] In one embodiment, the eccentric wheel is a metal eccentric wheel, and the device further comprises a metal detection sensor;
[0011] The metal detection sensor is connected to the connection component and is used to detect the rotation position of the eccentric wheel; one side of the outer ring of the eccentric wheel is opposite to the sliding component, and the other side is opposite to the metal detection sensor;
[0012] Among them, when the metal detection sensor detects that the eccentric wheel rotates to the target position, it sends a stop signal to the power module; the stop signal is used to control the rotating shaft of the power module to stop rotating; the eccentric wheel at the target position is closest to the metal detection sensor.
[0013] In one embodiment, the second surface of the connecting component is connected to the device where the target card is located; the second surface of the connecting component is perpendicular to the first surface of the connecting component, and the second surface of the connecting component is provided with an exit of the sliding channel;
[0014] During the sliding process of the sliding component, one end of the sliding component extends out through the outlet of the sliding channel and contacts the target card, so that the target card is inserted into the card slot or popped out from the card slot.
[0015] In one embodiment, a pressure sensor is mounted on the top or bottom of the sliding member;
[0016] Among them, when the pressure sensor detects that the current pressure is greater than the set threshold, it sends an abnormal signal to the power module; the abnormal signal is used to control the rotating shaft of the power module to stop rotating or rotate in the reverse direction.
[0017] In a second aspect, the present application further provides a control method for a card plug-in device, the control method being applied to the card plug-in device as described in the first aspect above, the control method comprising:
[0018] In response to a card insertion event or a card removal event, a drive signal is sent to the power module; wherein the drive signal is used to control the rotation of the shaft of the power module, and the eccentric wheel is driven to rotate to provide power to the sliding component, so that the sliding component contacts the target card, thereby controlling the target card to be inserted into the card slot or ejected from the card slot; wherein, after detecting that the shaft has rotated half a circle, the power module controls the shaft to continue rotating or rotate in the opposite direction.
[0019] In one embodiment, the method further comprises:
[0020] In response to a card insertion event or a card removal event, a first drive signal and a second drive signal are sent to the power module; wherein the first drive signal is used to control the rotating shaft of the power module to rotate half a circle at a first speed; the second drive signal is used to control the rotating shaft of the power module to continue rotating or rotate in the opposite direction at a second speed after rotating half a circle; the first speed is less than the second speed.
[0021] In one embodiment, the method further comprises:
[0022] When the card loss information is detected, a card insertion event or a card removal event is generated;
[0023] When card restart information is detected, a card removal event is generated.
[0024] In one embodiment, the method further comprises:
[0025] Obtain pressure data collected by a pressure sensor;
[0026] According to the pressure data, the target rotation angle is determined;
[0027] When the target rotation angle is less than the set angle, in response to a card insertion event or a card removal event, a third drive signal is sent to the power module according to the target rotation angle; wherein the third drive signal is used to control the rotating shaft of the power module to rotate in the opposite direction after rotating to the target rotation angle.
[0028] In a third aspect, the present application further provides an electronic device, the electronic device being connected to the card insertion and removal device as described in the first aspect above;
[0029] The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method described in the second aspect when executing the computer program.
[0030] The card insertion and extraction device, control method and electronic device described above, the card insertion and extraction device includes a power module, an eccentric wheel, a connecting component and a sliding component. The card insertion and extraction device can insert a target card into a card slot or eject the target card from the card slot, thereby realizing an automated card insertion and extraction operation without manual operation, so that the electronic device with the target card installed can quickly restore its function, thereby improving the maintenance efficiency of the electronic device. In addition, the card insertion and extraction device can perform insertion and extraction operations on the card multiple times at a high frequency, meeting the requirements of the life test, and can improve the efficiency of the life test compared to manual operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0032] FIG1 is a schematic structural diagram of a card insertion and extraction device in one embodiment;
[0033] FIG2 is a schematic diagram of the structure of a card insertion and extraction device in another embodiment;
[0034] FIG3 is a schematic diagram of a sliding process of a sliding component in one embodiment;
[0035] FIG4 is a schematic diagram of a sliding process of a sliding component in another embodiment;
[0036] FIG5 is a schematic flow chart of a control method of a card plugging and unplugging device in one embodiment;
[0037] FIG6 is an application environment diagram of a control method for a card plug-in and pull-out device in one embodiment;
[0038] FIG. 7 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] In an exemplary embodiment, as shown in FIG1 , a card plugging and unplugging device is provided, comprising:
[0041] Power module 10;
[0042] An eccentric wheel 20, wherein an eccentric hole 201 of the eccentric wheel 20 is connected to the rotating shaft of the power module 10;
[0043] The connecting component 30 is fixedly connected to the power module 10, and the rotating shaft of the power module 10 is perpendicular to the first surface 301 of the connecting component 30; the first surface 301 of the connecting component 30 is provided with a sliding channel 302; one end of the sliding channel 302 is opposite to the eccentric wheel 20, and the other end of the sliding channel 302 is opposite to the target card 40;
[0044] The sliding component 50 matches the sliding channel 302; wherein, the rotation of the eccentric wheel 20 can drive the sliding component 50 to slide in the sliding channel 302; during the sliding process of the sliding component 50, one end 501 of the sliding component 50 contacts the target card 40, so that the target card 40 is inserted into the card slot or popped out from the card slot.
[0045] It is understandable that the terms "first", "second", etc. used in this application are used to distinguish one element from another element and have no order or importance. In this embodiment, through the cooperation of the power module 10, the eccentric wheel 20, the connecting component 30 and the sliding component 50, one end 501 of the sliding component 50 can be brought into contact with the target card 40, providing a force for the target card 40, and the target card 40 is inserted into the card slot or ejected from the card slot under the action of the card insertion and extraction device.
[0046] When the sliding component 50 is in the initial position, it is away from the target card 40 or does not provide a force to the target card. When the rotating shaft of the power module 10 rotates, the eccentric wheel 20 is driven to rotate. Since the eccentric hole 201 of the eccentric wheel 20 is fixed relative to the connecting component 30, as the eccentric wheel 20 rotates, its outer ring contacts the sliding component 50, driving the sliding component 50 to gradually slide in the direction away from the eccentric wheel 20 and close to the target card 40.
[0047] When the long half axis of the eccentric wheel 20 turns to the sliding component 50, the sliding component 50 presses the target card 40 into the card slot to lock or unlock the card lock mechanism. Driven by the power module 10, the eccentric wheel 20 continues to rotate forward or reverse, and its long half axis moves away from the sliding component 50, driving the sliding component 50 to gradually slide in a direction away from the target card 40.
[0048] In an optional implementation, the card plug-in and pull-out device further includes a fixed shell, which functions to be fastened to other structures.
[0049] In an optional implementation, when performing a life test through the card insertion and extraction device of the embodiment of the present application, the following steps are included: the card insertion and extraction device is installed on the electronic device, opposite to the card of the electronic device, the card insertion and extraction device is started, the eccentric wheel rotates half a circle forward, so that the card is inserted into the card slot or ejected from the card slot, and the eccentric wheel continues to rotate forward or reversely to restore the initial state. During the process of inserting the card into the card slot or ejecting the card from the card slot, the electronic device analyzes whether the card is recognized, so as to perform a life test.
[0050] The card insertion and extraction device includes a power module, an eccentric wheel, a connecting component and a sliding component. The card insertion and extraction device can insert a target card into a card slot or eject the target card from the card slot, thereby realizing an automatic card insertion and extraction operation without manual operation, so that the electronic device installed with the target card can quickly restore its function, thereby improving the maintenance efficiency of the electronic device. In addition, the card insertion and extraction device can perform insertion and extraction operations on the card multiple times at a high frequency, meeting the requirements of the life test, and can improve the efficiency of the life test compared to manual operation.
[0051] In an exemplary embodiment, as shown in FIG. 2 , the sliding component 50 is connected to the connecting component 30 via a spring 60 ; wherein the elastic force direction of the spring 60 is parallel to the sliding channel 302 , and the sliding component 50 can be restored to its initial position via the spring 60 .
[0052] In this embodiment, when the long half axis of the eccentric wheel 20 turns to the sliding component 50, the sliding component 50 gradually slides away from the eccentric wheel 20 and close to the target card 40, and the spring 60 is deformed and gradually compressed. When the long half axis of the eccentric wheel 20 is away from the sliding component 50, the sliding component 50 gradually slides away from the target card 40, and the spring 60 restores its original shape, driving the sliding component 50 to return to its initial position. By providing the spring 60, an automatic reset function is designed, and the collision between the sliding component 50 and the target card 40 can be reduced.
[0053] In an exemplary embodiment, as shown in FIG2 , the eccentric wheel 20 is a metal eccentric wheel, and the device further includes a metal detection sensor 70;
[0054] The metal detection sensor 70 is connected to the connection component 30 and is used to detect the rotation position of the eccentric wheel 20; one side 202 of the outer ring of the eccentric wheel 20 is opposite to the sliding component 50, and the other side 203 is opposite to the metal detection sensor 70;
[0055] Among them, when the metal detection sensor 70 detects that the eccentric wheel 20 rotates to the target position, it sends a stop signal to the power module 10; the stop signal is used to control the rotating shaft of the power module 10 to stop rotating; the eccentric wheel 20 at the target position is closest to the metal detection sensor 70.
[0056] In this embodiment, when the eccentric wheel 20 rotates to the target position, its long half-axis turns to the metal detection sensor 70, and the short half-axis turns to the sliding component 50. Referring to Figure 2, the metal detection sensor 70 can be connected to the connecting component 30 through a fixed housing 90, and the fixed housing 90 is used to be fastened to the connecting component 30, the power module 10, etc.
[0057] It can be understood that, referring to FIG3, FIG3 is a schematic diagram of the sliding process of the sliding component in one embodiment; when the target card 40 needs to be ejected, the power module 10 is driven to act, the rotating shaft of the power module 10 drives the eccentric wheel 20 to rotate, and the eccentric wheel 20 drives the sliding component 50 to press down, and when the long semi-axis of the eccentric wheel 20 reaches the lowest point, the sliding component 50 is driven to press the target card 40 down to unlock the card lock mechanism. Referring to FIG4, FIG4 is a schematic diagram of the sliding process of the sliding component in another embodiment; the eccentric wheel 20 continues to rotate or rotates in the opposite direction under the drive of the rotating shaft of the power module 10, and the sliding component 50 rebounds and rises, and the target card 40 will also be ejected. When the long semi-axis of the eccentric wheel 20 reaches the top, the metal detection sensor 70 detects the metal, and the power module 10 is controlled to stop rotating, and the target card 40 will also be completely ejected, that is, reaching the ejection state in FIG4.
[0058] Referring to FIG3 , when the target card 40 needs to be inserted, the power module 10 is driven to operate, the rotating shaft of the power module 10 drives the eccentric wheel 20 to rotate, and the eccentric wheel 20 drives the sliding component 50 to press down, driving the target card 40 to move downward together, and when the long semi-axis of the eccentric wheel 20 reaches the lowest point, the card locking mechanism locks the target card 40 to prevent it from popping out. Referring to FIG4 , the eccentric wheel 20 continues to rotate or rotates in the opposite direction under the drive of the rotating shaft of the power module 10, and the sliding component 50 rebounds and rises. At this time, the target card 40 is fixed by the card locking mechanism of the card slot, and will not move due to the rebound and rise of the sliding component 50, and maintains the fixed state in FIG4 . When the long semi-axis of the eccentric wheel 20 reaches the top, the metal detection sensor 70 detects the metal, and controls the power module 10 to stop rotating, completing the insertion of the target card 40.
[0059] It is understandable that if reciprocating action is required, the aforementioned steps can be repeated.
[0060] In an exemplary embodiment, as shown in FIG. 2 , the second surface 303 of the connecting component 30 is connected to the device where the target card 40 is located; the second surface 303 of the connecting component 30 is perpendicular to the first surface 301 of the connecting component 30 , and the second surface 303 of the connecting component 30 is provided with an outlet of the sliding channel 302 ;
[0061] During the sliding process of the sliding component 50 , one end of the sliding component 50 extends out through the exit of the sliding channel 302 and contacts the target card 40 , so that the target card 40 is inserted into the card slot or popped out from the card slot.
[0062] The second surface 303 of the connecting component 30 may be an adhesive surface, and may be connected to the device where the target card 40 is located by adhesive bonding, or may be connected by welding or other methods, which is not limited in this embodiment. The card insertion and extraction device is fixed to the device where the target card 40 is located by the second surface 303 of the connecting component 30, so that the force provided by the sliding component 50 can mainly act on the target card 40, thereby improving the stability of the card insertion and extraction device.
[0063] In an exemplary embodiment, as shown in FIG2 , a pressure sensor 80 is installed on the top or bottom of the sliding component 50 (the specific figure is not shown in FIG2 );
[0064] When the pressure sensor 80 detects that the current pressure is greater than a set threshold, it sends an abnormal signal to the power module 10; the abnormal signal is used to control the rotating shaft of the power module 10 to stop rotating or rotate in the reverse direction.
[0065] The set threshold is a critical value set in advance according to calibration. If the current pressure is greater than the set threshold, it indicates that the force provided by the sliding component 50 to the target card 40 is too large, which may cause damage to the target card 40. In this embodiment, by providing a pressure sensor 80, the force state of the top or bottom of the sliding component 50 can be monitored in real time. When excessive pressure is detected, the rotating shaft of the power module 10 is controlled to stop rotating or rotate in the opposite direction, which can prevent the target card from being broken due to excessive force, thereby improving the safety of the electronic device.
[0066] Based on the same inventive concept, an embodiment of the present application also provides a control method for a card plug-in and pull-out device, and the control method acts on the card plug-in and pull-out device involved above. The implementation solution for solving the problem provided by the method is similar to the implementation solution recorded in the above-mentioned device. Therefore, the specific limitations in the control method embodiments of one or more card plug-in and pull-out devices provided below can be referred to the limitations on the card plug-in and pull-out device above, and will not be repeated here.
[0067] In an exemplary embodiment, as shown in FIG5 , a control method for a card plugging and unplugging device is provided. The control method acts on the card plugging and unplugging device as described in any one of the above embodiments. The control method includes:
[0068] Step S502, in response to a card insertion event or a card removal event, a drive signal is sent to the power module; wherein the drive signal is used to control the rotation of the shaft of the power module, and the eccentric wheel is driven to rotate to provide power to the sliding component, so that the sliding component contacts the target card, thereby controlling the target card to be inserted into the card slot or popped out of the card slot; wherein, after detecting that the shaft has rotated half a circle, the power module controls the shaft to continue rotating or rotate in the opposite direction.
[0069] Wherein, referring to FIG. 6, FIG. 6 is an application environment diagram of a control method of a card insertion and extraction device in an embodiment; the control method of the card insertion and extraction device can be applied to an electronic device 602, and the electronic device 602 responds to a card insertion event or a card extraction event, sends a driving signal to the power module, and the card insertion and extraction device 604 is started to control the target card to be inserted into the card slot or ejected from the card slot, and the target card is a SIM card or a memory card installed on the electronic device. The operation process of the card insertion and extraction device 604 is as follows: the rotating shaft of the power module rotates half a circle, the long half axis of the eccentric wheel turns to the sliding component, and the sliding component presses the target card into the card slot to realize the card locking or unlocking of the card locking mechanism; the rotating shaft of the power module continues to rotate or rotates in the opposite direction, and the long half axis of the eccentric wheel is away from the sliding component, driving the sliding component to gradually slide in the direction away from the target card. Optionally, when the metal detection sensor detects that the eccentric wheel rotates to the target position, it controls the rotating shaft of the power module to stop rotating; the eccentric wheel at the target position is closest to the metal detection sensor.
[0070] In the control method of the card insertion and extraction device, by sending a driving signal to the power module of the card insertion and extraction device, the card insertion and extraction device can be controlled to operate, so that the target card is inserted into the card slot or ejected from the card slot, and the automatic card insertion and extraction operation is realized without manual operation, so that the electronic device installed with the target card can quickly restore the function, thereby improving the maintenance efficiency of the electronic device. In addition, the card insertion and extraction device can perform insertion and extraction operations on the card multiple times at a high frequency, meeting the requirements of the life test, and can improve the efficiency of the life test compared to manual operation.
[0071] In an exemplary embodiment, the method further includes: in response to a card insertion event or a card removal event, sending a first drive signal and a second drive signal to the power module; wherein the first drive signal is used to control the rotating shaft of the power module to rotate half a circle at a first speed; the second drive signal is used to control the rotating shaft of the power module to continue rotating or rotate in the opposite direction at a second speed after rotating half a circle; the first speed is less than the second speed.
[0072] Among them, the electronic device sends different driving signals to the power module to control the power module's rotating shaft to rotate half a circle at a lower speed, and then continue to rotate or rotate in the opposite direction at a higher speed, thereby avoiding multiple triggering of the card lock mechanism and improving the accuracy of the card insertion and removal operation. The first speed and the second speed are parameters calibrated in advance according to experiments, and this embodiment does not limit the specific values.
[0073] In an exemplary embodiment, the method further includes: generating a card insertion event or a card removal event when card loss information is detected; and generating a card removal event when card restart information is detected.
[0074] Among them, the electronic device has a card recognition function. When the card (SIM card or memory card) is removed from the electronic device or the card cannot be read normally, the electronic device displays relevant card loss information, such as "no SIM card" or "SIM card not recognized". When the electronic device detects the card loss information, it generates a card insertion event or a card removal event. At this time, a drive signal is sent to the power module to control the target card to be inserted into the card slot or ejected from the card slot. During normal operation, the electronic device captures the card restart information. The card restart information can be the restart instruction information entered by the user on the electronic device, or the restart instruction information obtained by the electronic device through the network, or the restart instruction information generated regularly based on the periodic restart requirement. When the electronic device detects the card restart information, it generates a card removal event. At this time, a drive signal is sent to the power module to control the target card to be ejected from the card slot.
[0075] In an exemplary embodiment, the method further includes: acquiring pressure data collected by a pressure sensor; determining a target rotation angle based on the pressure data; when the target rotation angle is less than a set angle, in response to a card insertion event or a card removal event, sending a third drive signal to the power module based on the target rotation angle; wherein the third drive signal is used to control the rotating shaft of the power module to rotate in the opposite direction after rotating to the target rotation angle.
[0076] Among them, the pressure data includes the pressure value within a certain time period. Optionally, the eccentric wheel is driven by the rotating shaft of the power module to rotate half a circle from the initial state, and then the rotating shaft is controlled to continue to rotate or rotate in the opposite direction, so that the eccentric wheel returns to the initial state. This process is called the action cycle of the card plug-in and pull-out device, and the pressure data includes the pressure value within the action cycle. According to the pressure data, the time corresponding to the target pressure value is determined, and the target rotation angle corresponding to the time is determined. The target pressure value can be a set threshold. If the pressure value exceeds the set threshold, it indicates that the force provided by the sliding component to the target card is too large, which may cause damage to the target card. In an optional implementation method, if the card plug-in and pull-out device is in a normal operating state, the target rotation angle cannot be determined according to the pressure data, and there is no need to adjust the control strategy of the card plug-in and pull-out device.
[0077] Optionally, the angle is set to 180°. If the target rotation angle is less than the set angle, the control strategy of the card insertion and extraction device is adjusted to control the shaft to rotate in the opposite direction after rotating to the target rotation angle. This can prevent the card insertion and extraction device from providing excessive force to the target card, preventing the target card from being broken due to excessive force, thereby improving the safety of the electronic device.
[0078] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0079] In an exemplary embodiment, an electronic device is provided, which may be a server, and its internal structure diagram may be shown in FIG7. The electronic device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a card plug-in method is implemented.
[0080] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0081] In an exemplary embodiment, an electronic device is provided, wherein the electronic device is connected to a card insertion and extraction device provided by any embodiment of the present application; wherein the electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: in response to a card insertion event or a card extraction event, a drive signal is sent to a power module; wherein the drive signal is used to control the rotation of a rotating shaft of the power module, and the sliding component is provided with power by driving the rotation of the eccentric wheel, so that the sliding component contacts the target card, thereby controlling the target card to be inserted into the card slot or ejected from the card slot; wherein, after detecting that the rotating shaft has rotated half a circle, the power module controls the rotating shaft to continue to rotate or to rotate in the opposite direction.
[0082] In one embodiment, the processor also implements the following steps when executing the computer program: in response to a card insertion event or a card removal event, sending a first drive signal and a second drive signal to the power module; wherein the first drive signal is used to control the rotating shaft of the power module to rotate half a circle at a first speed; the second drive signal is used to control the rotating shaft of the power module to continue rotating or rotate in the opposite direction at a second speed after rotating half a circle; the first speed is less than the second speed.
[0083] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when card loss information is detected, a card insertion event or a card removal event is generated; when card restart information is detected, a card removal event is generated.
[0084] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining pressure data collected by the pressure sensor; determining the target rotation angle according to the pressure data;
[0085] When the target rotation angle is less than the set angle, in response to a card insertion event or a card removal event, a third drive signal is sent to the power module according to the target rotation angle; wherein the third drive signal is used to control the rotating shaft of the power module to rotate in the opposite direction after rotating to the target rotation angle.
[0086] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0087] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0088] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0089] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A card insertion and extraction device, characterized in that: The device comprises: Power module; An eccentric wheel, wherein an eccentric hole of the eccentric wheel is connected to the rotating shaft of the power module; A connecting component, wherein the connecting component is fixedly connected to the power module, and the rotating shaft of the power module is perpendicular to the first surface of the connecting component; a sliding channel is provided on the first surface of the connecting component; one end of the sliding channel is opposite to the eccentric wheel, and the other end of the sliding channel is opposite to the target card; A sliding component, the sliding component matches the sliding channel; wherein the rotation of the eccentric wheel can drive the sliding component to slide in the sliding channel; during the sliding process of the sliding component, one end of the sliding component contacts the target card, so that the target card is inserted into the card slot or popped out of the card slot.
2. The device according to claim 1, characterized in that The sliding component is connected to the connecting component via a spring; wherein the elastic force direction of the spring is parallel to the sliding channel, and the sliding component can be restored to an initial position via the spring.
3. The device according to claim 1, characterized in that The eccentric wheel is a metal eccentric wheel, and the device also includes a metal detection sensor; The metal detection sensor is connected to the connecting component and is used to detect the rotation position of the eccentric wheel; one side of the outer ring of the eccentric wheel is opposite to the sliding component, and the other side is opposite to the metal detection sensor; When the metal detection sensor detects that the eccentric wheel rotates to the target position, it sends a stop signal to the power module; the stop signal is used to control the rotating shaft of the power module to stop rotating; the eccentric wheel at the target position is closest to the metal detection sensor.
4. The device according to claim 1, characterized in that The second surface of the connecting component is connected to the device where the target card is located; the second surface of the connecting component is perpendicular to the first surface of the connecting component, and the second surface of the connecting component is provided with an outlet of the sliding channel; Wherein, during the sliding process of the sliding component, one end of the sliding component extends out through the outlet of the sliding channel and contacts the target card, so that the target card is inserted into the card slot or popped out from the card slot.
5. The device according to claim 1, characterized in that A pressure sensor is installed on the top or bottom of the sliding component; When the pressure sensor detects that the current pressure is greater than a set threshold, it sends an abnormal signal to the power module; the abnormal signal is used to control the rotating shaft of the power module to stop rotating or rotate in the reverse direction.
6. A control method for a card insertion and removal device, characterized in that: The control method acts on the card insertion and removal device according to any one of claims 1 to 5, and the control method includes: In response to a card insertion event or a card removal event, a drive signal is sent to the power module; wherein the drive signal is used to control the rotation of the shaft of the power module, and the eccentric wheel is driven to rotate to provide power to the sliding component, so that the sliding component contacts the target card, thereby controlling the target card to be inserted into the card slot or ejected from the card slot; wherein, after detecting that the shaft has rotated half a circle, the power module controls the shaft to continue rotating or rotate in the opposite direction.
7. The method according to claim 6, characterized in that The method further comprises: In response to a card insertion event or a card removal event, a first drive signal and a second drive signal are sent to the power module; wherein the first drive signal is used to control the rotating shaft of the power module to rotate half a circle at a first speed; the second drive signal is used to control the rotating shaft of the power module to continue rotating or rotate in the opposite direction at a second speed after rotating half a circle; the first speed is less than the second speed.
8. The method according to claim 6, characterized in that The method further comprises: When the card loss information is detected, a card insertion event or a card removal event is generated; When card restart information is detected, a card removal event is generated.
9. The method according to claim 6, characterized in that The method further comprises: Obtain pressure data collected by a pressure sensor; determining a target rotation angle according to the pressure data; When the target rotation angle is less than the set angle, in response to a card insertion event or a card removal event, a third drive signal is sent to the power module according to the target rotation angle; wherein the third drive signal is used to control the rotating shaft of the power module to rotate in the opposite direction after rotating to the target rotation angle.
10. An electronic device, characterized in that: The electronic device is connected to the card insertion and removal device as claimed in any one of claims 1 to 5; The electronic device comprises a memory and a processor, the memory stores a computer program, and is characterized in that the processor implements the steps of the method described in any one of claims 6 to 9 when executing the computer program.
