CN112968712A - Electronic device and control method thereof - Google Patents

Electronic device and control method thereof Download PDF

Info

Publication number
CN112968712A
CN112968712A CN202110134540.9A CN202110134540A CN112968712A CN 112968712 A CN112968712 A CN 112968712A CN 202110134540 A CN202110134540 A CN 202110134540A CN 112968712 A CN112968712 A CN 112968712A
Authority
CN
China
Prior art keywords
pin
switch
signal
selector
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110134540.9A
Other languages
Chinese (zh)
Other versions
CN112968712B (en
Inventor
陈棚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110134540.9A priority Critical patent/CN112968712B/en
Publication of CN112968712A publication Critical patent/CN112968712A/en
Application granted granted Critical
Publication of CN112968712B publication Critical patent/CN112968712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3816Mechanical arrangements for accommodating identification devices, e.g. cards or chips; with connectors for programming identification devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0274Details of the structure or mounting of specific components for an electrical connector module

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The application discloses an electronic device and a control method thereof. The electronic device includes: the clamping seat is provided with a first pin and a second pin; the functional device is provided with a third pin; the selection device is used for switching the connection of the third pin and the first pin or the second pin; the switching device responds to a first signal to connect the first pin and the third pin under the condition that the pin of the function card is in contact with the first pin; the switching device responds to a second signal to connect the second pin and the third pin under the condition that the pin of the function card is in contact with the second pin.

Description

Electronic device and control method thereof
Technical Field
The application belongs to the technical field of mechanical electronics, and particularly relates to electronic equipment and a control method thereof.
Background
In the related art, a mobile terminal, such as a mobile phone, generally needs to be inserted with an external function card, such as a SIM card or a memory card. The function card is usually provided with a notch or is used for cutting by itself to adapt to the card holder. The method increases the processing procedure of the function card; in addition, when installing the function card, the user is required to identify the placement position of the function card, which brings inconvenience to the user.
Disclosure of Invention
The application aims at providing a camera module and electronic equipment, and the technical problem of the placement position of a function card which needs to be identified when the function card is installed in the background technology is solved at least.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an electronic device. The electronic device includes: the clamping seat is provided with a first pin and a second pin; the functional device is provided with a third pin; the selection device is used for switching the connection of the third pin and the first pin or the second pin; the switching device responds to a first signal to connect the first pin and the third pin under the condition that the pin of the function card is in contact with the first pin; the switching device responds to a second signal to connect the second pin and the third pin under the condition that the pin of the function card is in contact with the second pin.
In a second aspect, an embodiment of the present application provides a method for controlling an electronic device. The control method comprises the following steps: the method comprises the following steps:
the switching device responds to a first signal to connect the first pin and the third pin under the condition that a function card is inserted into the card holder and the pin of the function card is in contact with the first pin;
the switching device is responsive to a second signal to connect the second pin with the third pin on a condition that a function card is inserted into the socket and a pin of the function card is in contact with the second pin.
In an embodiment of the application, the socket is provided with a first pin and a second pin. When the function card is inserted along the first direction or the second direction, the first pin or the second pin can be matched with the corresponding pin on the function card. The third pin of the functional device is connected with the first pin or the second pin through the switching device.
Under the condition that the function card is inserted into the card holder. The switching device responds to a first signal to enable the first pin to be connected with the third pin so as to adapt to a setting pin of a function card; or the switching device responds to a second signal to enable the second pin to be connected with the third pin so as to adapt to the setting pin of the function card.
In this way, the connection of the functional device and the functional card can be realized no matter the functional card is inserted into the card holder along the first direction or the second direction, wherein the first direction is different from the second direction. When the user inserts the function card, the user does not need to identify the placement direction of the function card, thereby facilitating the card insertion operation.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a circuit diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a circuit diagram of another electronic device according to an embodiment of the present application.
Fig. 3 is a circuit diagram of a third electronic device according to an embodiment of the application.
Fig. 4 is a flowchart of a control method of an electronic device according to an embodiment of the present application.
Fig. 5 is a perspective view of a SIM card according to an embodiment of the present application.
Fig. 6 is an assembly view of a SIM card and a card holder mounted in opposite directions according to an embodiment of the present application.
Fig. 7 is a schematic diagram of a SIM card inserted into a card socket along a first direction according to an embodiment of the present application.
Fig. 8 is a schematic diagram of a SIM card in a second direction within a card socket according to an embodiment of the present application.
FIG. 9 is a diagram of a circuit and an SD card according to an embodiment of the present application.
Reference numerals:
100: an electronic device; 11; a card holder; 12: a first processor; 12': a second processor; 13: a power source; 14: a selector No. 1; 15: selector No. 6; 16: a functional device; 17: a selector number 2; 19: a selector No. 3; 20: a selector No. 4; 18: selector No. 5; 21: clamping and supporting; 22: a SIM card; 221: the bevel angle of the SIM card; 23: an SD card.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The features of the terms first and second in the description and in the claims of the present application may explicitly or implicitly include one or more of such features. In the description of the present application, "a plurality" means two or more unless otherwise specified. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
In the description of the present application, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the present application and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the present application.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
An electronic apparatus 100 and a control method thereof according to an embodiment of the present application are described below with reference to fig. 1 to 9.
< electronic apparatus 100>
As shown in fig. 7 to 8, an electronic apparatus 100 according to some embodiments of the present application includes a socket 11, a functional device 16, and a selection device.
The card holder 11 is provided with a first pin and a second pin.
The functional device 16 is provided with a third pin.
The selection device is used for switching the connection of the third pin and the first pin or the second pin.
The switching device responds to a first signal to connect the first pin and the third pin under the condition that the pin of the function card is in contact with the first pin;
the switching device responds to a second signal to connect the second pin and the third pin under the condition that the pin of the function card is in contact with the second pin.
Specifically, the electronic device 100 may be, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a game console, an intercom, a display, a telephone, a Virtual Reality device (VR), an Augmented Reality device (AR), and the like.
As shown in fig. 7, the electronic device 100 includes a housing. A card holder 11, a functional device 16, a first processor 12 and a selection means are provided in the housing. The opening of the card holder 11 is located on the side of the housing. The function card is inserted into the card holder 11 from the opening.
The selection device includes a first circuit, a second circuit, and a switching device. The switching device is connected to the first processor 12, and the first processor 12 is configured to send a control signal, such as a first signal and a second signal, to the selection device. Of course, the control signal may be sent by other devices, such as a mobile terminal. The switching device is used for switching the first circuit and the second circuit to work so as to connect the third pin with the first pin or the second pin.
The function Card may be, but is not limited to, a Subscriber Identity Module (SIM) Card, a Secure Digital Memory Card (SD Card), and the like.
The functional device 16 is an electronic apparatus 100 that implements a setting function within the electronic apparatus 100, and is, for example, a speaker, a display, a power supply 13, a processor, a microphone, a receiver, a signal transmitting apparatus, a signal receiving apparatus, or the like.
The third pin may be, but is not limited to, any one of an input-output (In-OUT, IO) pin, a Clock (Clock, CLK) pin, a program Voltage (VPP) pin, a RESET (RESET) pin, a Ground (GND) pin, and a power supply (VCC) pin. The kind and number of the third pins can be selected by those skilled in the art according to actual needs.
Optionally, the card socket 11 may be provided with one first pin and one second pin, or a plurality of first pins and a plurality of second pins, so as to adapt to the connection requirements of different function cards. The functional device 16 may be provided with one or more third pins. The number and function of the third pins are matched with those of the function card.
If the functional device 16 has two third pins, the function card should also have two pins.
Accordingly, when the first pin is connected to one of the third pins, the second pin should be connected to the other third pin, and in this condition, the first pin and the second pin are multiplexed.
Alternatively, the number of the first pins may be two, and the two third pins may be in one-to-one correspondence with the two first pins and connected, and under this condition, the first pins and the second pins are not multiplexed.
Of course, the card holder 11 may be provided with more first pins and second pins. The functional device 16 may also be provided with more third pins.
In a specific example, the first pin and the second pin are adapted to a setting pin of a function card to communicatively connect the function card to the electronic device 100. As shown in fig. 7, the first pins and the second pins are symmetrically arranged, so that when the function card is inserted along the first direction, the first pins are matched with the pins set by the function card; as shown in fig. 8, when the function card is inserted in the second direction, the second pin is matched with the set pin. Wherein the second direction is opposite to the first direction.
Here, the first pin and the second pin are symmetrically disposed with respect to a set point or line, or the first pin and the second pin are asymmetric.
The symmetric arrangement means, for example, that the first pin and the second pin are symmetric with respect to the center of the surface where the pin of the function card is located under the condition that the function card is inserted into the socket 11, or are symmetric with respect to the center position of the card insertion direction of the socket 11, as long as the first pin or the second pin is connected to the set third pin when the function card is inserted in two opposite directions.
The first processor 12 is configured to send a control signal when the function card is inserted into the card socket 11, so as to control the conduction of the setting circuit of the selection device, so that the first pin or the second pin is adapted to the setting pin of the function card. The first processor 12 may be a separately provided processor for controlling the selection means; the processor of the electronic device 100 may be provided with the above-described functions by software.
The selection means is capable of enabling the third pin to be connected to the first pin or to the second pin in response to a signal from the first processor 12. The selector may be an independent two-way data selector, or may be a Programmable logic Array (FPGA).
According to the electronic device 100 of the embodiment of the application, the socket 11 is provided with the first pin and the second pin. When the function card is inserted along the first direction or the second direction, the first pin or the second pin can be matched with the corresponding pin on the function card. The third pin of the functional device 16 is connected to the first pin or the second pin through a switching device. Wherein the first direction is different from the second direction.
Under the condition that the function card is inserted into the card seat 11, the switching device responds to the first signal to connect the first pin (for example, through a first circuit) with the third pin so as to adapt to the setting pin of the function card; or a second signal responsive to which the switching device is responsive to connect the second pin (e.g., via a second circuit) with the third pin to thereby adapt the set pin of the function card.
In this way, the connection of the functional device 16 with the functional card can be achieved regardless of whether the functional card is inserted in the first direction or the second direction into the card holder 11. When the user inserts the function card, the user does not need to identify the placement direction of the function card, thereby facilitating the card insertion operation.
For example, all pins of the function card are located on the same surface. In one case, when the function card is inserted into the card holder 11 in the first direction or the second direction, the pins face the same side, as shown in fig. 7 to 8. In this way, the number of pins included in the socket 11 may be an odd number or an even number. When the pins of the socket are odd in number and the first pin and the second pin are both multiple, if one of the first pin and the second pin (for example, the first pin) is connected with the third pin, at least part of the other pin (for example, part of the second pin) is idle. In the case of an even number, when one of the first pin and the second pin is connected to the third pin, the other pin may be connected to the other pin of the functional device 16. The first pin and the second pin may not be multiplexed or may be at least partially multiplexed.
For example, as shown in fig. 9, the number of the first pins (e.g., a, b, c, d, e, f in fig. 9) is the same as the number of the third pins of the functional device 16. The number of second pins (e.g., a1, b1, c1, d1, e1, f1 in fig. 9) is the same as the number of third pins of the functional device 16. The number of the third pins is even. The first pin and the second pin are centrosymmetric with respect to the center of the socket 11. In the first state, the third pin of the functional device 16 is connected to the first pin. In the case where the SD card 23 is inserted into the card holder in the direction shown in fig. 9, the pins of the SD card 23 are fitted with the first pins, as indicated by S in fig. 9. In the case where the SD card 23 is inserted into the card holder in the direction opposite to the direction shown in fig. 9, the pin of the SD card 23 is fitted with the second pin, as shown by S' in fig. 9. In this example, the first pin and the second pin are not multiplexed. Of course, in other examples, the first pin and the second pin may also be partially or fully multiplexed.
In another case, the function card is inserted in a first direction or a second direction with the pins facing different sides. Thus, the first pin is located at one side of the jack of the socket 11, and the second pin is located at the opposite side of the jack of the socket 11. The socket 11 includes the number of pins whether in an odd number or an even number. When one of the first pin and the second pin is connected to the third pin, the other of the first pin and the second pin is idle.
In some embodiments, the first processor 12 further includes a fourth pin. Optionally, the fourth pin is any one of an IO pin, a CLK pin, a VPP pin, a RESET pin, a GND pin, and a VCC pin. The third pin and the fourth pin have different functions.
The switching device is also responsive to the first signal to connect the second pin with the fourth pin on the condition that the pin of the function card is in contact with the first pin and in contact with the second pin; alternatively, the first and second electrodes may be,
the switching device is also responsive to the second signal to connect the first pin with the fourth pin.
That is, in this example, the switching device is responsive to a first signal from the first processor 12 to connect the first pin (e.g., via the first circuit) to the third pin and the second pin to the fourth pin via the first circuit.
Alternatively, the switching device is responsive to a second signal from the first processor 12 to connect the second pin (e.g., via the second circuit) to the third pin and the first pin to the fourth pin via the second circuit.
In this way, the first pin and the second pin on the card socket 11 can be switched to connect with the third pin and the fourth pin of the function device through the switching device, so that when the function card is inserted into the card socket 11 along different directions, the first pin and the second pin are respectively matched with different function pins of the function card, thereby realizing multiplexing of the first pin and the second pin.
In some embodiments, as shown in fig. 1, the selection means comprises a first selector and a second selector. The first selector comprises a first switch, a second switch and a first switcher, the first pin can be connected with the third pin through the first switch, the second pin can be connected with the third pin through the second switch, and the first switcher is used for switching the first switch and the second switch to work.
The second selector comprises a third switch, a fourth switch and a second switcher, the second pin can be connected with the fourth pin through the third switch, the first pin can be connected with the fourth pin through the fourth switch, and the second switcher is used for switching the third switch and the fourth switch to work.
In this example, the first circuit includes the first switch and the third switch, the second circuit includes the second switch and the fourth switch, and the switching device includes the first switch and the second switch.
In this example, the switching means is responsive to a first signal to cause the first switch and the third switch to close and the second switch and the fourth switch to open under a condition that the pin of the function card is in contact with the first pin, thereby causing the first pin to be connected with the third pin and the second pin to be connected with the fourth pin.
Under the condition that the pin of the function card is in contact with the second pin, the switching device responds to a second signal to enable the second switch and the fourth switch to be switched on, and the first switch and the third switch are switched off, so that the second pin is connected with the third pin, and the first pin is connected with the fourth pin.
The first selector and the second selector are independent two-way data selectors. The selector has simple structure, easy control and high precision.
In other embodiments, as shown in FIG. 3, the selection means comprises a first selector and a second selector.
The first selector comprises a first switch, a second switch and a first switcher, the first pin can be connected with the third pin through the first switch, the first pin can be connected with the fourth pin through the second switch, and the first switcher is used for switching the first switch and the second switch to work.
The second selector comprises a third switch, a fourth switch and a second switcher, the second pin can be connected with the fourth pin through the third switch, the second pin can be connected with the third pin through the third switch, and the second switcher is used for switching the third switch and the fourth switch to work.
In this example, the first circuit includes the first switch and the third switch, the second circuit includes the third switch and the fourth switch, and the switching device includes the first switch and the second switch.
In this example, in the first state, the switching device is responsive to the first signal to cause the first switch and the third switch to close and the second switch and the fourth switch to open such that the first pin is connected to the third pin and the second pin is connected to the fourth pin.
In a second state, the switching device is responsive to a second signal to close the second switch and the fourth switch, and the first switch and the third switch are open, thereby connecting the second pin to the third pin and the first pin to the fourth pin.
The two switching devices adopt the switch to control the connection and disconnection of the first circuit and the second circuit, and the switch has the advantages of simple structure, easy control and high control precision.
Further, the first switch and the second switch constitute a single-pole double-throw switch, and the third switch and the fourth switch constitute a single-pole double-throw switch. The single pole double throw switch is simpler in construction and when one switch is closed, the other switch is automatically opened, which makes switching between the first circuit and the second circuit easier.
In one example, the first signal is a high level signal and the second signal is a low level signal; or the first signal is a low level signal and the second signal is a high level signal.
Of course, the first signal and the second signal may be at least one of a current signal, an inductive signal, a resistive signal, and a capacitive signal. The skilled person can select the desired one according to the actual need.
In one example, the functional device 16 comprises a first processor 12 of the electronic device; or the functional device 16 comprises a power supply 13 of the electronic equipment and a second processor 12 'of the electronic equipment, and the power supply 13 and the second processor 12' are respectively provided with the third pin.
Of course, as mentioned above, the functional device 16 may also be a speaker, a display, etc. The skilled person can select the desired one according to the actual need.
< control method >
According to another embodiment of the present application, there is provided a control method of the electronic apparatus 100 described above. The control method comprises the following steps:
the switching device responds to a first signal to connect the first pin with the third pin under the condition that a function card is inserted into the socket 11 and the pin of the function card is in contact with the first pin;
the switching means is responsive to a second signal to connect the second pin with the third pin on the condition that a function card is inserted into the socket 11 and the pin of the function card is in contact with the second pin.
In the embodiment of the present application, through the above-mentioned control method, the electronic device 100 can automatically adjust the connection relationship between the first pin and the second pin in the socket 11 and the third pin of the function device 16, so that the first pin and/or the second pin are/is adapted to the pin of the function card. In this way, a connection with the functional device 16 can be made whether the functional card is inserted into the socket 11 in the first orientation or the socket 11 in the second orientation.
In one example, the control method further comprises: and under the condition that the switching device respectively responds to the first signal and the second signal and the function card is not identified successfully, judging that the function card is damaged.
In this way, the electronic device can recognize whether the function card is damaged.
Fig. 4 shows a specific embodiment of the control method of the present application. In this example, the control method includes:
101. the first processor 12 determines whether the function card is inserted into the card socket. In the yes condition, the first processor 12 issues a first signal. And under the condition of no, judging again.
102. The switching device is responsive to a first signal of the first processor 12 to connect the first pin to the third pin through the first circuit.
103. The first processor 12 determines whether the function card is successfully identified. In the case of yes, the control method ends; and under the condition of no, jumping to the next step.
104. The first processor 12 sends a second signal.
105. The switching device is responsive to a second signal from the first processor 12 to connect the second pin to the third pin through the second circuit.
106. The first processor 12 determines whether the function card is successfully identified. If yes, the process jumps to the next step and the control method ends.
107. In the no condition, the first processor 12 determines that the function card has been damaged.
In some embodiments, the functional device further includes a fourth pin. The fourth pin has a different function from the third pin. In step 102, the switching device is responsive to a first signal of the first processor 12 to connect the first pin to the third pin through the first circuit and connect the second pin to the fourth pin through the first circuit.
In step 105, the switching device is responsive to a second signal of the first processor 12 to connect the second pin to the third pin through the second circuit and connect the first pin to the fourth pin through the second circuit.
In this way, the electronic device 100 can switch the connection relationship between the third pin and the fourth pin and the connection relationship between the first pin and the second pin.
< example 1>
As shown in fig. 1, 7, and 8, the electronic apparatus 100 includes a housing, a socket 11, a first processor 12, a functional device 16, and the like. The socket 11, the first processor 12, the functional device 16, and the power supply 13 are disposed in the housing. The function card is a SIM card 22. The SIM card 22 includes an IO pin, a CLK pin, a VPP pin, a RESET pin, a GND pin, and a VCC pin. The distribution of the plurality of pins is shown in fig. 5.
In this example, as shown in fig. 6, the SIM card 22 has a rectangular parallelepiped structure. One corner of the SIM card 22 has a bevel 221 to fit the beveled card holder 21. Such a SIM card 22 can also be mounted in a card holder 21 having a complete rectangular parallelepiped recess without providing a bevel at one corner of the rectangular parallelepiped recess.
Of course, the SIM card 22 may be a complete rectangular parallelepiped structure. The card holder 21 has a complete rectangular parallelepiped recess. Thus, the card holder 21 and the SIM card 22 can be easily processed, and the processing steps can be simplified.
As shown in fig. 1, the socket 11 includes three sets of first pins and second pins. The functional device 16 includes three sets of third and fourth pins.
Specifically, the electronic apparatus 100 includes six switches, i.e., the selector No. 1 14, the selector No. 2 17, the selector No. 3 19, the selector No. 4, the selector No. 5 18, and the selector No. 6 15.
The functional device 16 includes an IO pin, a CLK pin, a VPP pin, a RESET pin, a GND pin, and a VCC pin. An IO pin, a CLK pin, and a VPP pin are taken as a third pin, and a RESET pin, a GND pin, and a VCC pin are taken as a fourth pin for explanation. The IO pin and the VCC pin are in one group, the CLK pin and the GND pin are in one group, and the VPP pin and the RESET pin are in one group.
The socket 11 includes a pin a, a pin b, a pin c, a pin d, a pin e, and a pin f. The description will be given by taking an f pin, a c pin, and an e pin as first pins, and a b pin, a d pin, and an a pin as second pins. Wherein, the a pin and the f pin are in one group, the c pin and the d pin are in one group, the e pin and the b pin are in one group,
the selector No. 1, the selector No. 2, and the selector No. 3 19 are first selectors. Wherein the pin numbered 3 of each first selector is a control pin of the first switch. The control pin is connected to the first processor 12. The pins numbered 1, 2, 4 are data transmission pins. The first switch controls the connection and disconnection between the No. 1 pin and the No. 2 pin. The second switch controls the connection and disconnection between the No. 1 pin and the No. 4 pin.
Selector No. 4, selector No. 5, and selector No. 6, 20 and selector No. 6 are the second selectors. The pin numbered 3 in each second selector is a control pin of the second switch. The control pin is connected to the first processor 12. The pins numbered 1, 2, 4 are data transmission pins. The third switch controls the connection and disconnection between the No. 1 pin and the No. 2 pin. And the fourth switch controls the connection and disconnection between the No. 1 pin and the No. 4 pin.
The first switch and the second switch form a single-pole double-throw switch, and the third switch and the fourth switch form a single-pole double-throw switch.
As shown in fig. 1, the IO pin can be connected to the f pin through the first switch of the selector No. 1 14, and the IO pin can be connected to the a pin through the second switch of the selector No. 1 14. The VCC pin can be connected to the a pin through the third switch of the selector No. 6 15, and the VCC pin can be connected to the f pin through the fourth switch of the selector No. 6 15.
The CLK pin can be connected to the c pin through a first switch of the selector 17 No. 2, and the CLK pin can be connected to the d pin through a second switch of the selector 17 No. 2. The GND pin can be connected to the d pin through the third switch of the selector No. 5 18, and the GND pin can be connected to the c pin through the fourth switch of the selector No. 5 18.
The VPP pin can be connected to the e pin through the first switch of the selector 19 # 3, and the VPP pin can be connected to the b pin through the second switch of the selector 19 # 3. The RESET pin can be connected to the b pin through the third switch of selector No. 4 20, and the RESET pin can be connected to the e pin through the fourth switch of selector No. 4 20.
In the case where the SIM is inserted into the socket 11 in the first direction. The first processor 12 determines that the SIM card 22 is already in place.
The first processor 12 issues a first signal, e.g. a high signal.
The switching device responds to the first signal, so that the first switches of the selector 14 No. 1, the selector 17 No. 2 and the selector 19 No. 3 are turned on, and the second switches of the selector 14 No. 1, the selector 17 No. 2 and the selector 19 No. 3 are turned off; the third switches of selector No. 4, selector No. 5, and selector No. 6, 20 are turned on, and the fourth switches of selector No. 4, selector No. 5, 18, and selector No. 6, 15 are turned off. In this state, the IO pin is connected to the f pin, the CLK pin is connected to the c pin, the VPP pin is connected to the e pin, the RESET pin is connected to the b pin, the GND pin is connected to the d pin, and the VCC pin is connected to the a pin.
Then, the first processor 12 identifies the SIM card 22 and determines whether the SIM card 22 is successfully identified.
If successful, the control process ends.
If not successful, the first processor 12 issues a second signal, e.g., a low level signal.
The switching means is responsive to the second signal so that the first switches of selector No. 1 14, selector No. 2 17 and selector No. 3 19 are closed, and the second switches of selector No. 1 14, selector No. 2 17 and selector No. 3 19 are open; the third switches of the selector No. 4, selector No. 5, and selector No. 6, 20 are turned off, and the fourth switches of the selector No. 4, selector No. 5, 18, and selector No. 6, 15 are turned on. In this state, the IO pin is connected to the a pin, the CLK pin is connected to the d pin, the VPP pin is connected to the b pin, the RESET pin is connected to the e pin, the GND pin is connected to the c pin, and the VCC pin is connected to the f pin.
Next, the first processor 12 identifies the SIM card 22 and determines whether the SIM card 22 is successfully identified.
If successful, the control process ends.
If not, it is determined that the SIM card 22 has been tampered with and a third signal is sent to indicate that the SIM card 22 has been tampered with.
The pins and the connection relationship are not limited in the present application, and the above embodiments are only examples for convenience of description, and those skilled in the art can select the types and connection relationships of the pins and the selectors according to actual needs.
In other examples, the first signal is a low level signal and the second signal is a high level signal. The identification of the SIM card 22 can be realized as well.
In this embodiment, the first processor 12 is a stand-alone device.
In other examples, as shown in fig. 2, the functional devices include a second processor 12' and a power supply 13. For example, the second processor 12' includes an IO pin, a CLK pin, a VPP pin, and a RESET pin. The power supply 13 includes a GND pin and a VCC pin. The second processor 12' is capable of issuing control signals. In this way, no additional processor is required to control the selection device, thereby saving the number of components of the electronic device 100
In other examples, the functional device 16 includes the first processor 12. In this way, the number of components of the electronic device 100 can also be saved.
< example 2>
As shown in fig. 3, 7, and 8, the electronic apparatus 100 includes a housing, a socket 11, a first processor 12, a functional device 16, a power supply 13, and the like. The socket 11, the first processor 12, the functional device 16, and the power supply 13 are disposed in the housing. The function card is a SIM card 22. The SIM card 22 includes an IO pin, a CLK pin, a VPP pin, a RESET pin, a GND pin, and a VCC pin. The distribution of the plurality of pins is shown in fig. 5. In use, the pins are fitted with pins of the same function within the socket 11.
The socket 11 includes three sets of first and second pins. The functional device 16 includes three sets of third and fourth pins.
Specifically, the electronic apparatus 100 includes six switches, i.e., the selector No. 1 14, the selector No. 2 17, the selector No. 3 19, the selector No. 4, the selector No. 5 18, and the selector No. 6 15.
The functional device 16 includes an IO pin, a CLK pin, a VPP pin, a RESET pin, a GND pin, and a VCC pin. An IO pin, a CLK pin, and a VPP pin are taken as a third pin, and a RESET pin, a GND pin, and a VCC pin are taken as a fourth pin for explanation. The IO pin and the VCC pin are in one group, the CLK pin and the GND pin are in one group, and the VPP pin and the RESET pin are in one group.
The socket 11 includes a pin a, a pin b, a pin c, a pin d, a pin e, and a pin f. The description will be given by taking an f pin, a c pin, and an e pin as first pins, and a b pin, a d pin, and an a pin as second pins. Wherein, the a pin and the f pin are in one group, the c pin and the d pin are in one group, the e pin and the b pin are in one group,
the selector No. 1, the selector No. 2, and the selector No. 3 19 are first selectors. Wherein the pin numbered 3 of each first selector is a control pin of the first switch. The control pin is connected to the first processor 12. The pins numbered 1, 2, 4 are data transmission pins. The first switch controls the connection and disconnection between the No. 1 pin and the No. 2 pin. The second switch controls the connection and disconnection between the No. 1 pin and the No. 4 pin.
Selector No. 4, selector No. 5, and selector No. 6, 20 and selector No. 6 are the second selectors. The pin numbered 3 in each selector is the control pin of the second switch. The control pin is connected to the first processor 12. The pins numbered 1, 2, 4 are data transmission pins. The third switch controls the connection and disconnection between the No. 1 pin and the No. 2 pin. And the fourth switch controls the connection and disconnection between the No. 1 pin and the No. 4 pin.
The first switch and the second switch form a single-pole double-throw switch, and the third switch and the fourth switch form a single-pole double-throw switch.
As shown in fig. 3, the IO pin can be connected to the f pin through the first switch of the selector No. 1 14, and the IO pin can be connected to the a pin through the fourth switch of the selector No. 6 15. The VCC pin can be connected to the a pin through the third switch of the selector No. 6 15, and the VCC pin can be connected to the f pin through the second switch of the selector No. 1 14.
The CLK pin can be connected to the c pin through the first switch of the selector number 2 17, and the CLK pin can be connected to the d pin through the fourth switch of the selector number 5 18. The GND pin can be connected to the d pin through the third switch of the selector No. 5 18, and the GND pin can be connected to the c pin through the second switch of the selector No. 2 17.
The VPP pin can be connected to the e pin through the first switch of the selector No. 3 19, and the VPP pin can be connected to the b pin through the fourth switch of the selector No. 4 20. The RESET pin can be connected to the b pin through the third switch of selector No. 4 20 and the RESET pin can be connected to the e pin through the second switch of selector No. 3 19.
In the case where the SIM is inserted into the socket 11 in the first direction. The first processor 12 determines that the SIM card 22 is already in place.
The first processor 12 issues a first signal, e.g. a high signal.
The switching device responds to the first signal, so that the first switches of the selector 14 No. 1, the selector 17 No. 2 and the selector 19 No. 3 are turned on, and the second switches of the selector 14 No. 1, the selector 17 No. 2 and the selector 19 No. 3 are turned off; the third switches of selector No. 4, selector No. 5, and selector No. 6, 20 are turned on, and the fourth switches of selector No. 4, selector No. 5, 18, and selector No. 6, 15 are turned off. In this state, the IO pin is connected to the f pin, the CLK pin is connected to the c pin, the VPP pin is connected to the e pin, the RESET pin is connected to the b pin, the GND pin is connected to the d pin, and the VCC pin is connected to the a pin.
Then, the first processor 12 identifies the SIM card 22 and determines whether the SIM card 22 is successfully identified.
If successful, the control process ends.
If not successful, the first processor 12 issues a second signal, e.g., a low level signal.
The switching means is responsive to the second signal so that the first switches of selector No. 1 14, selector No. 2 17 and selector No. 3 19 are closed, and the second switches of selector No. 1 14, selector No. 2 17 and selector No. 3 19 are open; the third switches of the selector No. 4, selector No. 5, and selector No. 6, 20 are turned off, and the fourth switches of the selector No. 4, selector No. 5, 18, and selector No. 6, 15 are turned on. In this state, the IO pin is connected to the a pin, the CLK pin is connected to the d pin, the VPP pin is connected to the b pin, the RESET pin is connected to the e pin, the GND pin is connected to the c pin, and the VCC pin is connected to the f pin.
Next, the first processor 12 identifies the SIM card 22 and determines whether the SIM card 22 is successfully identified.
If successful, the control process ends.
If not, it is determined that the SIM card 22 has been tampered with and a third signal is sent to indicate that the SIM card 22 has been tampered with.
The pins and the connection relationship are not limited in the present application, and the above embodiments are only examples for convenience of description, and those skilled in the art can select the types and connection relationships of the pins according to actual needs.
In other examples, the first signal is a low level signal and the second signal is a high level signal. The identification of the SIM card 22 can be realized as well.
Likewise, the first processor 12 is a stand-alone device.
In other examples (not shown), the functional devices include a second processor 12' and a power supply 13. For example, the second processor 12' includes an IO pin, a CLK pin, a VPP pin, and a RESET pin. The power supply 13 includes a GND pin and a VCC pin. In this way, no additional processor is required to control the selection means, thereby saving the number of components of the electronic device 100.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. An electronic device, comprising:
the clamping seat is provided with a first pin and a second pin;
the functional device is provided with a third pin;
the selection device is used for switching the connection of the third pin and the first pin or the second pin;
the switching device responds to a first signal to connect the first pin and the third pin under the condition that the pin of the function card is in contact with the first pin;
the switching device responds to a second signal to connect the second pin and the third pin under the condition that the pin of the function card is in contact with the second pin.
2. The electronic device of claim 1, wherein the functional device is further provided with a fourth pin;
the switching device is also responsive to the first signal to connect the second pin with the fourth pin on the condition that the pin of the function card is in contact with the first pin and in contact with the second pin; alternatively, the switching device is further responsive to the second signal to connect the first pin with the fourth pin.
3. The electronic device of claim 2, wherein the selecting means comprises:
the first selector comprises a first switch, a second switch and a first switcher, the first pin can be connected with the third pin through the first switch, the second pin can be connected with the third pin through the second switch, and the first switcher is used for switching the first switch and the second switch to work; and
the second selector comprises a third switch, a fourth switch and a second switcher, the second pin can be connected with the fourth pin through the third switch, the first pin can be connected with the fourth pin through the fourth switch, and the second switcher is used for switching the third switch and the fourth switch to work.
4. The electronic device of claim 3, wherein the first switch and the second switch comprise a single pole double throw switch, and wherein the third switch and the fourth switch comprise a single pole double throw switch.
5. The electronic device according to claim 1, wherein the socket is provided with a plurality of the first pins and a plurality of the second pins, and the functional device is provided with a plurality of the third pins.
6. The electronic device according to claim 2, wherein the function card is a SIM card or an SD card, the third pin is any one of an IO pin, a CLK pin, a VPP pin, a RESET pin, a GND pin, and a VCC pin, the fourth pin is any one of an IO pin, a CLK pin, a VPP pin, a RESET pin, a GND pin, and a VCC pin, and the third pin and the fourth pin have different functions.
7. The electronic device of claim 1, wherein the first signal is a high level signal and the second signal is a low level signal; or
The first signal is a low level signal and the second signal is a high level signal.
8. The electronic device of claim 1, wherein the functional means comprises a first processor of the electronic device; or
The functional device comprises a power supply of the electronic equipment and a second processor of the electronic equipment, and the power supply and the second processor are respectively provided with the third pin.
9. The electronic device of claim 1, wherein the selection means is a programmable logic array device.
10. A method of controlling an electronic device according to any one of claims 1-9, comprising:
the switching device responds to a first signal to connect the first pin and the third pin under the condition that a function card is inserted into the card holder and the pin of the function card is in contact with the first pin;
the switching device is responsive to a second signal to connect the second pin with the third pin on a condition that a function card is inserted into the socket and a pin of the function card is in contact with the second pin.
11. The control method according to claim 10, characterized by further comprising:
and under the condition that the switching device respectively responds to the first signal and the second signal and the function card is not identified successfully, judging that the function card is damaged.
CN202110134540.9A 2021-01-29 2021-01-29 Electronic device and control method thereof Active CN112968712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110134540.9A CN112968712B (en) 2021-01-29 2021-01-29 Electronic device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110134540.9A CN112968712B (en) 2021-01-29 2021-01-29 Electronic device and control method thereof

Publications (2)

Publication Number Publication Date
CN112968712A true CN112968712A (en) 2021-06-15
CN112968712B CN112968712B (en) 2022-08-02

Family

ID=76272680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110134540.9A Active CN112968712B (en) 2021-01-29 2021-01-29 Electronic device and control method thereof

Country Status (1)

Country Link
CN (1) CN112968712B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090069048A1 (en) * 2007-09-06 2009-03-12 Samsung Electronics Co., Ltd. Subscriber identity module card and terminal device having the same
US20100125689A1 (en) * 2008-11-20 2010-05-20 Mediatek Inc. Electronic apparatus capable of receiving different types of memory cards
US20100223412A1 (en) * 2009-03-02 2010-09-02 Samsung Electronics Co., Ltd. Memory card, memory card reader and memory card system
CN101944190A (en) * 2010-07-22 2011-01-12 中兴通讯股份有限公司 Wireless communication module and communication cable
CN103778092A (en) * 2014-01-06 2014-05-07 建荣集成电路科技(珠海)有限公司 USB and SD interface multiplex circuit and multiplex method
CN107786223A (en) * 2017-10-27 2018-03-09 广东欧珀移动通信有限公司 Prevent SIM card from burning the method, apparatus and computer equipment of card
EP3697172A1 (en) * 2017-12-22 2020-08-19 Huawei Technologies Co. Ltd. Memory card and mobile terminal
CN111654300A (en) * 2020-06-19 2020-09-11 展讯通信(上海)有限公司 Electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090069048A1 (en) * 2007-09-06 2009-03-12 Samsung Electronics Co., Ltd. Subscriber identity module card and terminal device having the same
US20100125689A1 (en) * 2008-11-20 2010-05-20 Mediatek Inc. Electronic apparatus capable of receiving different types of memory cards
US20100223412A1 (en) * 2009-03-02 2010-09-02 Samsung Electronics Co., Ltd. Memory card, memory card reader and memory card system
CN101944190A (en) * 2010-07-22 2011-01-12 中兴通讯股份有限公司 Wireless communication module and communication cable
CN103778092A (en) * 2014-01-06 2014-05-07 建荣集成电路科技(珠海)有限公司 USB and SD interface multiplex circuit and multiplex method
CN107786223A (en) * 2017-10-27 2018-03-09 广东欧珀移动通信有限公司 Prevent SIM card from burning the method, apparatus and computer equipment of card
EP3697172A1 (en) * 2017-12-22 2020-08-19 Huawei Technologies Co. Ltd. Memory card and mobile terminal
CN111654300A (en) * 2020-06-19 2020-09-11 展讯通信(上海)有限公司 Electronic device

Also Published As

Publication number Publication date
CN112968712B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
EP2201651B1 (en) Additional pins on a usb connector
US9547337B2 (en) Portable device and peripheral extension dock
US6524137B1 (en) Integral multiplex adapter card
US7581970B2 (en) Multipurpose universal serial bus cable
US9258024B2 (en) SIM card connector and mobile terminal
CN102263904B (en) Method and system for controlling double cameras and electronic equipment with double cameras
CN101421742B (en) Mobile radio terminal having a multiple form factor memory card reader
US9268728B2 (en) Portable electronic device and accessory device thereof, and operating method for the portable electronic device
US20090298541A1 (en) Stacking type sim card connector and mobile terminal having the same
US20130260830A1 (en) Wireless Communication System and Wireless Network Accessing Device
EP3490100A1 (en) Charging system, terminal, power adapter and charging line
CN109586110A (en) Socket is inserted into automatic detection circuit and mobile terminal
US20150269110A1 (en) Cable with multiple functions
US6959205B2 (en) Data communication system, connector cable and communication adapter medium used in the data communication system
CN112968712B (en) Electronic device and control method thereof
US6855001B2 (en) Modular system
EP1077578A1 (en) Mobile phone adapter for housing and switching two or more SIM cards
CN109921814B (en) Method, device and system for realizing virtual SIM card and mobile terminal
EP3697172B1 (en) Memory card and mobile terminal
JP2001320479A (en) Connection device and connection method for mobile phone, computer, and connection cable
CN109961126B (en) Memory card and mobile terminal
US6396767B1 (en) Device for accessing a ROM unit with groups of memory module information saved therein
KR20020029654A (en) Device and method for managing automatically the flow of digital data of a host between a common interface and its associated modules
US9711923B2 (en) ARJ45 to RJ45 adapter
CN212392877U (en) Card holder, card seat and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant