CN114400740B - Charging and card issuing synchronous circuit, method and device - Google Patents
Charging and card issuing synchronous circuit, method and device Download PDFInfo
- Publication number
- CN114400740B CN114400740B CN202210029571.2A CN202210029571A CN114400740B CN 114400740 B CN114400740 B CN 114400740B CN 202210029571 A CN202210029571 A CN 202210029571A CN 114400740 B CN114400740 B CN 114400740B
- Authority
- CN
- China
- Prior art keywords
- circuit
- card
- charging
- main control
- chip
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00036—Charger exchanging data with battery
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/0013—Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention belongs to the technical field of integrated circuits, and discloses a charging and card issuing synchronous circuit, method and device. The charging and card-sending synchronous circuit comprises a main control circuit, a card writing circuit, a switching circuit and a charging circuit, wherein the card writing circuit, the switching circuit and the charging circuit are connected with the main control circuit; the charging circuit charges the battery and gives a charging state, and the card writing circuit detects the insertion and extraction of the card and the card writing; the switching circuit switches the USB to the card writing circuit and switches the USB to the charging circuit; the main control circuit cuts off the charging circuit in a short time, recovers the charging circuit, enables the card writing circuit, controls the card writing action and controls the coordination work of all units; the communication line is connected with the charging circuit by default, and is switched to the card writing circuit under the control of the switching circuit for transmitting card writing information. Through the switching of the main control circuit to the switching circuit, the function of writing the card is realized while charging, and the technical problem that the card issuing mode in the prior art cannot charge and issue the card at the same time is solved.
Description
Technical Field
The invention relates to the technical field of integrated circuits, in particular to a charging and card issuing synchronous circuit, method and device.
Background
In the conventional card writing technology, in the card issuing process, the device cannot be in a charging state, and if the device is detected to be in charging, the card issuing fails, so the card issuing efficiency is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a charging and card issuing synchronous circuit, a method and a device, and aims to solve the technical problem of how to realize charging and card issuing in the prior art.
In order to achieve the above object, the present invention provides a charging and card-issuing synchronous circuit, which comprises a main control circuit, a card-writing circuit, a switching circuit and a charging circuit, wherein the card-writing circuit, the switching circuit and the charging circuit are connected with the main control circuit;
the charging circuit is used for outputting a signal to be detected so that the main control circuit determines whether the battery is in a charging state;
the main control circuit is used for outputting a switching control signal to the switching circuit according to a card writing control instruction when the battery is in a charging state;
the switching circuit is used for connecting the card writing circuit or the charging circuit according to the switching control signal;
the main control circuit is also used for outputting an enabling signal to the card writing circuit according to the card writing control instruction;
the card writing circuit is used for executing card writing according to the enable signal and the pre-filled data through the interface
Optionally, the main control circuit is further configured to detect an SIM card insertion signal, detect a card writing control instruction when the SIM card insertion signal is detected, and detect the signal to be detected when the card writing control instruction is detected.
Optionally, the main control circuit includes a main control module and a first switch; the controlled end of the first switch is connected with the charging circuit, the control end of the first switch is connected with the main control module, the main control module is connected with the detection end of the interface, and the stationary contact of the first switch is connected with the interface;
the main control module is used for detecting the SIM card inserting signal and detecting the card writing control instruction when the SIM card inserting signal is detected;
the main control module is further configured to output a first control instruction to the first switch when the card writing control instruction is detected, so that the first switch is closed, and the signal to be detected is detected.
Optionally, the card writing circuit includes a card writing chip, a diode, and a chopper chip; the power supply end of the card writing chip is connected with the cathode of the diode, the anode of the diode is connected with the output end of the chopping chip, the data port and the confirmation port of the card writing chip are connected with the switching circuit, the enable end of the chopping chip is connected with the main control module, and the input end of the chopping chip is connected with the battery.
Optionally, the interface is used for accessing a SIM card;
the main control module is used for outputting an enabling signal to the chopping chip when receiving the card writing control instruction;
the chopper chip is used for outputting power supply voltage to the card writing chip according to the enabling signal so as to start the card writing chip;
and the card writing chip is used for writing the card according to the pre-filled data when the card is started.
Optionally, the switching circuit includes an adapter logic chip, a second switch, and a third switch; the interrupt signal input end and the communication end of the adapter logic chip are connected with the main control module, the detection end of the adapter logic chip is connected with the fixed contact of the third switch, the control ends of the second switch and the third switch are connected with the control module, the first movable contacts of the second switch and the third switch are respectively connected with the data port and the confirmation port of the card writing chip, the fixed contact of the second switch is connected with the main control module, and the second movable contacts of the second switch and the third switch are connected with the charging circuit.
Optionally, the charging circuit includes a data line socket, a charging chip and a power management chip connected in sequence; the power management chip is further connected with a first end of the first switch, the data line socket is further connected with a second end of the first switch, the battery is connected between the charging chip and the power management chip, and the power management chip is further connected with the main control module;
the data line socket is used for being connected with an external power supply and supplying power to the charging chip;
the charging chip is used for charging the battery.
Optionally, the switching control signal includes a first switching control signal and a second switching control signal;
the main control module is used for outputting a first switching control signal to the second switch when the battery is in a charging state so as to enable a static contact of the second switch to be connected with a first movable contact of the second switch, and thus the card writing chip and the main control module are connected;
the main control module is further configured to output a second switching control signal to the third switch when the battery is in a charging state, so that the fixed contact of the third switch is connected to the first movable contact of the third switch, and the card writing chip and the adapter logic chip are connected.
In addition, in order to achieve the above object, the present invention further provides a charging and card-issuing synchronization method, which is applied to the above charging and card-issuing synchronization circuit, where the charging and card-issuing synchronization circuit includes a main control circuit, a card-writing circuit connected to the main control circuit, a switching circuit, and a charging circuit, the charging circuit is connected to a battery and an interface, and the interface is further connected to the switching circuit and the card-writing circuit;
the charging and card issuing synchronization method comprises the following steps:
the charging circuit outputs a signal to be detected so that the main control circuit determines whether the battery is in a charging state;
the main control circuit outputs a switching control signal to the switching circuit according to a card writing control instruction when the battery is in a charging state;
the switching circuit is connected with the card writing circuit or the charging circuit according to the switching control signal;
the master control circuit outputs an enabling signal to the card writing circuit according to the card writing control instruction;
and the card writing circuit executes card writing according to the enable signal and the pre-filled data through the interface.
In addition, in order to achieve the above object, the present invention further provides a charging and card-issuing synchronization device, which includes the charging and card-issuing synchronization circuit as described above.
According to the invention, a charging and card issuing synchronous circuit is arranged, the charging and card issuing synchronous circuit comprises a main control circuit, a card writing circuit, a switching circuit and a charging circuit, wherein the card writing circuit, the switching circuit and the charging circuit are connected with a battery; the charging circuit is used for outputting a signal to be detected so that the main control circuit determines whether the battery is in a charging state; the main control circuit is used for outputting a switching control signal to the switching circuit according to a card writing control instruction when the battery is in a charging state; the switching circuit is used for connecting the card writing circuit according to the switching control signal; the main control circuit is also used for outputting an enabling signal to the card writing circuit according to the card writing control instruction; and the card writing circuit is used for writing the card according to the enable signal and the pre-filled data. The switching circuit is used for controlling the connection between the card writing circuit and the charging circuit, so that the function of synchronous charging during card writing is realized, and the technical problem that the card issuing mode in the prior art cannot charge and issue cards at the same time is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below.
FIG. 1 is a functional block diagram of a charging and card-issuing synchronization circuit according to an embodiment of the present invention;
FIG. 2 is a schematic circuit diagram of a charging and card-issuing synchronization circuit according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a first embodiment of a charging and card-issuing synchronization circuit according to the present invention.
The reference numbers indicate:
reference numerals | Name(s) | Reference numerals | Name(s) |
10 | |
201 | |
20 | |
202 | |
30 | |
301 | |
40 | |
401 | |
50 | Battery with a |
402 | |
60 | |
403 | |
101 | Main control module | S1~S3 | First to third switches |
D1 | Diode with a high-voltage source |
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It should be noted that all directional indicators (such as up, down, left, right, front, back \8230;) in the embodiments of the present invention are only used to explain the relative positional relationship between the components, the motion situation, etc. in a specific posture (as shown in the attached drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions in the embodiments may be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should be considered to be absent and not within the protection scope of the present invention.
Fig. 1 is a functional block diagram of a charging and card-issuing synchronization circuit according to an embodiment of the present invention.
Referring to fig. 1, the charging and card-issuing synchronization circuit includes a main control circuit 10, and a card-writing circuit 20, a switching circuit 30 and a charging circuit 40 connected to the main control circuit 10, the charging circuit 40 is connected to a battery 50 and an interface 60, and the interface 60 is further connected to the switching circuit 30 and the card-writing circuit 20;
the charging circuit 40 is configured to output a signal to be detected, so that the main control circuit 10 determines whether the battery 50 is in a charging state.
It can be understood that the charging circuit 40 at least includes a power management chip and a charging line interface, when the charging line interface is connected to a charging power supply, a voltage current is generated in the charging circuit 40, a voltage in the charging circuit 40 is used as a signal to be detected, and when the signal to be detected is detected, the main control circuit 10 can determine that the battery 50 is in a charging state at this time.
The main control circuit 10 is configured to output a switching control signal to the switching circuit 30 according to a card writing control instruction when the battery 50 is in a charging state.
It should be noted that the main control circuit 10 at least includes a processor, and the processor has functions of receiving, processing and analyzing signals and data, such as: a mobile phone CPU; the CPU may also run software programs needed for operation to interact with personnel in conjunction with other equipment.
It can be understood that when the SIM card is connected to the charging and card-sending synchronization circuit, the operator may issue a card writing control command to the main control circuit 10 according to actual needs, and at this time, if the battery 50 is in the charging state, the main control circuit 10 outputs a control signal to the switching circuit 30.
In a specific implementation, even if the battery 50 is not in a charging state at this time, the main control circuit 1010 may still output a control signal through the following switching circuit 30 when receiving the card writing control instruction, so as to trigger the card writing circuit 20 through the switching circuit 30.
The switching circuit 30 is configured to connect the card writing circuit 20 or the charging circuit 40 according to the switching control signal.
It is understood that the switching circuit 30 at least includes a detection module and a switch module, and the detection module can control the switch module to operate and connect with the card writing circuit 20 while detecting the switching control signal
It should be noted that the operation of the switch module is a transient process for triggering the card writing circuit 20, and then the switch module is reset to connect the switching circuit 30 to the charging circuit 40, during which the charging circuit 40 does not need to stop operating, i.e. the charging process does not need to be interrupted.
The main control circuit 10 is further configured to output an enable signal to the card writing circuit 20 according to the card writing control instruction.
The card writing circuit 20 is configured to write the card according to the pre-filled data through the interface 60 according to the enable signal.
It should be noted that the card writing circuit 20 at least includes a card writing chip and a chopper module, and the chopper module is connected to the battery 50 and the main control circuit 10, and is started when receiving the enable signal, processes the voltage of the battery 50, and outputs the power supply voltage required by the card writing chip to the card writing chip, so as to start the card writing chip, connect the card writing chip with the SIM card, and enable the card writing chip to write the SIM card on the interface 60.
It is understood that the pre-filled data can be filled into the above-mentioned software program by an operator through an application program, and the card writing, i.e. the SIM card, performs the processes of identity binding and information writing.
In this embodiment, a charging and card-issuing synchronization circuit is provided, where the charging and card-issuing synchronization circuit includes a main control circuit 10, and a card writing circuit 20, a switching circuit 30, and a charging circuit 40 connected to the main control circuit 10, where the charging circuit 40 is connected to a battery 50 and an interface 60, and the interface 60 is further connected to the switching circuit 30 and the card writing circuit 20; the charging circuit 40 is configured to output a signal to be detected, so that the main control circuit 10 determines whether the battery 50 is in a charging state; the main control circuit 10 is configured to output a switching control signal to the switching circuit 30 according to a card writing control instruction when the battery 50 is in a charging state; the switching circuit 30 is configured to connect to the card writing circuit 20 according to the switching control signal; the main control circuit 10 is further configured to output an enable signal to the card writing circuit 20 according to the card writing control instruction; the card writing circuit 20 is configured to write the card according to the pre-filled data through the interface 60 according to the enable signal. The switching circuit 30 controls the connection between the card writing circuit 20 and the charging circuit 40, so that the function of synchronous charging during card writing is realized, and the technical problem that the card issuing mode in the prior art cannot issue cards while charging.
Further, the main control circuit 10 is further configured to detect an SIM card insertion signal, detect a card writing control command when the SIM card insertion signal is detected, and detect the signal to be detected when the card writing control command is detected.
It can be understood that, when the SIM card is inserted, the card writing circuit 20 generates a SIM card insertion signal and transmits the SIM card insertion signal to the main control circuit 10, and when the main control circuit 10 receives the SIM card insertion signal and a card writing control command input by a worker, the main control circuit starts to detect the information to be detected and determine whether the battery 50 is in a charging state.
In the embodiment, the connection mode of the whole circuit is changed by detecting the charging state of the battery 50, and the card writing is executed while the charging is performed by resetting after the detection is finished.
FIG. 2 is a schematic circuit diagram of a charging and card-issuing synchronization circuit according to an embodiment of the present invention; the main control circuit 10 comprises a main control module 101 and a first switch S1; a controlled terminal of the first switch S1 is connected to the charging circuit 40, a control terminal of the first switch S1 is connected to the main control module 101, the main control module 101 is connected to a detection terminal (reference CD) of the interface 60, and a stationary contact of the first switch S1 is connected to the interface 60;
the main control module 101 is configured to detect the SIM card insertion signal, and detect the card writing control instruction when detecting the SIM card insertion signal.
It is understood that the main control module 101 includes at least a processor, such as a CPU of a mobile phone, and the CPU can also run software programs required for operation, so as to interact with workers in combination with other devices.
The main control module 101 is further configured to output a first control instruction to the first switch S1 when the card writing control instruction is detected, so that the first switch S1 is closed, and the signal to be detected is detected.
Further, with continued reference to fig. 2, the card writing circuit 20 includes a card writing chip 201, a diode D1, and a chopper chip 202; the power supply end of the card writing chip 201 is connected to the cathode of the diode D1, the anode of the diode D1 is connected to the output end of the chopping chip 202, the data port and the confirmation port of the card writing chip 201 are connected to the switching circuit 30, the enable end of the chopping chip 202 is connected to the main control module 101, and the input end of the chopping chip 202 is connected to the battery 50.
It is understood that the card writing chip 201 is a chip capable of performing card writing, such as AU9560, and the chopping chip 202 is a chip capable of boosting voltage, such as AW3611. The present embodiment is only an example of the chip signal, and does not limit this.
Further, with continued reference to fig. 2, the interface 60 is for accessing a SIM card;
the main control module 101 is configured to output an enable signal to the chopper chip 202 when receiving the card writing control instruction;
the chopper chip 202 is configured to output a supply voltage to the card writing chip 201 according to the enable signal, so as to start the card writing chip 201.
It can be understood that, when the main control module 101 receives the card writing instruction, it outputs an enable signal to the chopper chip 202, so as to start the chopper chip 202, and enable the chopper chip 202 to boost the voltage of the battery 50.
The chopper chip 202 is configured to output a supply voltage to the card writing chip 201 according to the enable signal, so as to start the card writing chip 201.
It should be noted that, although the voltage of the battery 50 used in a general mobile phone is about 3.7V, the operating voltage of the card writing chip 201 is 5V, and the voltage of the battery 50 is not enough to start the operation of the card writing chip 201, so the chopper chip 202 is used to boost the voltage of the battery 50.
The card writing chip 201 is configured to write a card according to the pre-filled data when the card is started.
It is understood that the pre-fill data may be filled into the above-mentioned software program by an operator through an application program, and the card writing chip 201 may perform identity binding and information writing on the SIM card according to the pre-fill data.
Further, with continued reference to fig. 2, the switching circuit 30 includes an adapter logic chip 301, a second switch S2, and a third switch S3; the interrupt signal input end and the communication end of the adapter logic chip 301 are connected to the main control module 101, the detection end of the adapter logic chip 301 is connected to the fixed contact of the third switch S3, the control ends of the second switch S2 and the third switch S3 are connected to the control module, the first movable contacts of the second switch S2 and the third switch S3 are respectively connected to the data port and the confirmation port of the card writing chip 201, the fixed contact of the second switch S2 is connected to the main control module 101, and the second movable contacts of the second switch S2 and the third switch S3 are connected to the charging circuit 40.
It is understood that the adaptor logic chip 301 may be a WUSB3801, which can detect and adjust the charging process of the mobile phone, and the embodiment is only an example of the chip signal, and is not limited thereto.
It should be noted that the third switch S3 and the fourth switch may be digital switches, and may be gated according to a signal output by the control module, so as to change the specific connection of the circuit and implement the corresponding function.
Further, with continued reference to fig. 2, the charging circuit 40 includes a data line socket 401, a charging chip 402 and a power management chip 403 which are connected in sequence; the power management chip 403 is further connected to a first end of the first switch S1, the data line socket 401 is further connected to a second end of the first switch S1, the battery 50 is connected between the charging chip 402 and the power management chip 403, and the power management chip 403 is further connected to the main control module 101;
the data line socket 401 is used for accessing an external power supply and supplying power to the charging chip 402;
the charging chip 402 is configured to charge the battery 50.
It should be noted that the data line socket 401 of this embodiment may be a TypeC socket, and the charging chip 402 may be an ETA6937, and this embodiment is only an example of chip signals, and does not limit this.
Further, with continued reference to fig. 2, the switching control signal includes a first switching control signal and a second switching control signal;
the main control module 101 is configured to output a first switching control signal to the second switch S2 when the battery 50 is in a charging state, so that a fixed contact of the second switch S2 is connected to a first movable contact of the second switch S2, thereby connecting the card writing chip 201 and the main control module 101.
The main control module 101 is further configured to, when the battery 50 is in a charging state, output a second switching control signal to the third switch S3, so that the fixed contact of the third switch S3 is connected to the first movable contact of the third switch S3, thereby connecting the card writing chip 201 and the adapter logic chip 301.
It can be understood that the first switching control signal is a level signal, and when the level signal is a high level 1, the fixed contact of the second switch S2 is connected to the first movable contact of the second switch S2, so as to connect the card writing chip 201 to the main control module 101, so that the main control module 101 can transmit related data information, such as preset data, to the card writing chip 201.
The main control module 101 is further configured to output a second switching control signal to the third switch S3 when the battery 50 is in a charging state, so that the fixed contact of the third switch S3 is connected to the first movable contact of the third switch S3S4, thereby connecting the card writing chip 201 and the adapter logic chip 301.
It is understood that the second switching control signal is a level signal, when the level signal is at a high level 1, the fixed contact of the third switch S3 is connected to the first movable contact of the third switch S3, the card writing chip 201 is connected to the adapter logic chip 301, and the adapter logic chip 301 can trigger the card writing chip 201 to operate.
It should be noted that when the first switching control signal and the second switching control signal are not output, the two signals may be regarded as low level 0, and at this time, the adaptor logic chip 301 and the main control module 101 are connected to the data line socket 401 to perform a normal charging process.
In this embodiment, the card is written while the charging process is not affected by switching the connection between the main control module 101 and the data line socket 401 or the card writing chip 201, so that the user experience is improved.
In this embodiment, when the SIM card of the mobile phone is inserted, the mobile phone will remind the staff whether to start the card writing software program; if the staff chooses not to start the card writing software program, the mobile phone reads the SIM card information, and the SIM card is normally used after network injection; if the staff selects to start the card writing software program, the software starts charging detection, the main control module 101 outputs a low level 0 to the first switch S1, and whether the mobile phone is charged is judged through the first switch S1; if the mobile phone is charged, changing the potential of a pin connected with the first switch S1 to 1, simultaneously switching the detection end of the adapter logic chip 301 to the card writing chip 201 through the third switch S3, connecting the main control module 101 with the data port of the card writing chip 201 through the second switch S2, and starting the chopper chip 202 by outputting an enable signal to the chopper chip 202 to supply power to the card writing chip 201; then the mobile phone is charged again; if the mobile phone is not being charged, the card writing chip 201 and the chopper chip 202 are directly started.
Further, after the staff inputs the pre-filled data into the software program and selects to execute card writing, the card writing program is executed through the card writing chip 201; and after receiving the prompt of successful card writing, the staff quits the card writing software program and gives the card to the client to finish the card issuing process.
Fig. 3 is a schematic flowchart of a first embodiment of a charging and card-issuing synchronization circuit according to the present invention.
Referring to fig. 3, to achieve the above object, the present invention further provides a charging and card-issuing synchronization method, which is applied to the charging and card-issuing synchronization circuit described above, where the charging and card-issuing synchronization circuit includes a main control circuit, and a card writing circuit, a switching circuit, and a charging circuit connected to the main control circuit, the charging circuit is connected to a battery and an interface, and the interface is further connected to the switching circuit and the card writing circuit;
the charging and card issuing synchronization method comprises the following steps:
step S10: the charging circuit outputs a signal to be detected, so that the main control circuit determines whether the battery is in a charging state.
It can be understood that the charging circuit at least includes a power management chip and a charging line interface, when the charging line interface is connected to the charging power supply, a voltage current is generated in the charging circuit, a voltage in the charging circuit 40 is used as a signal to be detected, and when the signal to be detected is detected, the main control circuit 10 can determine that the battery is in a charging state at this time.
Step S20: and the main control circuit outputs a switching control signal to the switching circuit according to a card writing control instruction when the battery is in a charging state.
It should be noted that the main control circuit at least includes a processor, and the processor has functions of receiving, processing and analyzing signals and data, such as: a mobile phone CPU; the CPU may also run software programs needed for operation to interact with personnel in conjunction with other equipment.
It can be understood that when the SIM card is connected to the charging and card-issuing synchronizing circuit, the worker may issue a card writing control command to the main control circuit according to actual needs, and at this time, if the battery is in a charging state, the main control circuit outputs a control signal to the switching circuit.
In a specific implementation, even if the battery is not in a charging state at this time, when the main control circuit 10 receives the card writing control instruction, the following switching circuit may still output the control signal, so as to trigger the card writing circuit through the switching circuit.
Step S30: the switching circuit is connected with the card writing circuit or the charging circuit according to the switching control signal.
It can be understood that the switching circuit at least comprises a detection module and a switch module, and the detection module can control the switch module to work when detecting the switching control signal, so as to be connected with the card writing circuit
It should be noted that the operation of the switch module is a transient process for triggering the card writing circuit, and then the switch module is reset to connect the switching circuit to the charging circuit.
Step S40: and the master control circuit outputs an enabling signal to the card writing circuit according to the card writing control instruction.
Step S50: and the card writing circuit executes card writing according to the enable signal and the pre-filled data through the interface.
It should be noted that the card writing circuit at least includes an interface, a card writing chip, and a chopper module, and the chopper module is connected to the battery and the main control circuit, and is started when receiving the enable signal, processes the voltage of the battery 50, and outputs the power supply voltage required by the card writing chip to the card writing chip, so as to start the card writing chip, connect the card writing chip with the SIM card, and enable the card writing chip to write the SIM card on the interface.
It is understood that the pre-filled data can be filled into the above-mentioned software program by an operator through an application program, and the card writing, i.e. the SIM card, performs the processes of identity binding and information writing.
In the embodiment, the card issuing and charging control are integrated, so that the technical problem that the card issuing mode in the prior art cannot perform charging and on-line card issuing at the same time is solved, and the card writing efficiency is improved.
In addition, in order to achieve the above object, the present invention further provides a charging and card-issuing synchronization device, which includes the charging and card-issuing synchronization circuit as described above.
Since the charging and card-issuing synchronizer adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the charging and card-issuing synchronization circuit provided in any embodiment of the present invention, and are not described herein again.
Further, it is to 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 system 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 system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.
Claims (8)
1. A charging and card-issuing synchronous circuit is characterized by comprising a main control circuit, a card writing circuit, a switching circuit and a charging circuit, wherein the card writing circuit, the switching circuit and the charging circuit are connected with the main control circuit;
the charging circuit is used for outputting a signal to be detected so that the main control circuit determines whether the battery is in a charging state;
the main control circuit is used for outputting a switching control signal to the switching circuit according to a card writing control instruction when the battery is in a charging state;
the switching circuit is used for connecting the card writing circuit or the charging circuit according to the switching control signal;
the main control circuit is also used for outputting an enabling signal to the card writing circuit according to the card writing control instruction;
the card writing circuit is used for writing the card according to the enable signal and the pre-filling data through the interface;
the main control circuit is also used for detecting an SIM card insertion signal, detecting a card writing control instruction when the SIM card insertion signal is detected, and detecting the signal to be detected when the card writing control instruction is detected;
the main control circuit comprises a main control module and a first switch; the controlled end of the first switch is connected with the charging circuit, the control end of the first switch is connected with the main control module, the main control module is connected with the detection end of the interface, and the stationary contact of the first switch is connected with the interface;
the main control module is used for detecting the SIM card inserting signal and detecting the card writing control instruction when the SIM card inserting signal is detected;
the main control module is further configured to output a first control instruction to the first switch when the card writing control instruction is detected, so that the first switch is closed, and the signal to be detected is detected.
2. The charge-and-discharge synchronization circuit of claim 1, wherein the card write circuit comprises a card write chip, a diode, and a chopper chip; the power supply end of the card writing chip is connected with the cathode of the diode, the anode of the diode is connected with the output end of the chopping chip, the data port and the confirmation port of the card writing chip are connected with the switching circuit, the enabling end of the chopping chip is connected with the main control module, and the input end of the chopping chip is connected with the battery.
3. The charging and card-issuing synchronization circuit according to claim 2, wherein the interface is for accessing a SIM card;
the main control module is used for outputting an enabling signal to the chopping chip when receiving the card writing control instruction;
the chopper chip is used for outputting power supply voltage to the card writing chip according to the enabling signal so as to start the card writing chip;
and the card writing chip is used for writing the card according to the pre-filled data when the card is started.
4. The charge-and-fire synchronization circuit of claim 3, wherein the switching circuit comprises an adapter logic chip, a second switch, and a third switch; the interrupt signal input end and the communication end of the adapter logic chip are connected with the main control module, the detection end of the adapter logic chip is connected with the stationary contact of the third switch, the control ends of the second switch and the third switch are connected with the main control module, the first movable contacts of the second switch and the third switch are respectively connected with the data port and the confirmation port of the card writing chip, the stationary contact of the second switch is connected with the main control module, and the second movable contacts of the second switch and the third switch are connected with the charging circuit.
5. The charging and card-issuing synchronous circuit according to claim 4, wherein the charging circuit includes a data line socket, a charging chip and a power management chip connected in sequence; the power management chip is further connected with a first end of the first switch, the data line socket is further connected with a second end of the first switch, the battery is connected between the charging chip and the power management chip, and the power management chip is further connected with the main control module;
the data line socket is used for being connected with an external power supply and supplying power to the charging chip;
the charging chip is used for charging the battery.
6. The charge-and-card-issuance synchronous circuit according to claim 5, wherein the switching control signal includes a first switching control signal and a second switching control signal;
the main control module is used for outputting a first switching control signal to the second switch when the battery is in a charging state, so that a fixed contact of the second switch is connected with a first movable contact of the second switch, and the card writing chip and the main control module are connected;
the main control module is further configured to output a second switching control signal to the third switch when the battery is in a charging state, so that the fixed contact of the third switch is connected to the first movable contact of the third switch, and the card writing chip and the adapter logic chip are connected.
7. A charging and card-issuing synchronization method, which is applied to the charging and card-issuing synchronization circuit according to any one of claims 1 to 6, wherein the charging and card-issuing synchronization circuit comprises a main control circuit, a card writing circuit connected with the main control circuit, a switching circuit and a charging circuit, the charging circuit is connected with a battery and an interface, and the interface is also connected with the switching circuit and the card writing circuit;
the charging and card issuing synchronization method comprises the following steps:
the charging circuit outputs a signal to be detected so that the main control circuit determines whether the battery is in a charging state;
the main control circuit outputs a switching control signal to the switching circuit according to a card writing control instruction when the battery is in a charging state;
the switching circuit is connected with the card writing circuit or the charging circuit according to the switching control signal;
the master control circuit outputs an enabling signal to the card writing circuit according to the card writing control instruction;
the card writing circuit writes the card according to the enable signal and the pre-filling data through the interface;
the method further comprises the following steps: the main control circuit detects an SIM card insertion signal, detects a card writing control instruction when the SIM card insertion signal is detected, and detects the signal to be detected when the card writing control instruction is detected;
the main control circuit detects an SIM card insertion signal, detects a card writing control instruction when the SIM card insertion signal is detected, and detects the signal to be detected when the card writing control instruction is detected, and the method comprises the following steps:
the main control module detects the SIM card inserting signal and detects the card writing control instruction when detecting the SIM card inserting signal; and the main control module outputs a first control instruction to the first switch when detecting the card writing control instruction so as to close the first switch, thereby detecting the signal to be detected.
8. A charging and card-issuing synchronization apparatus, characterized in that it comprises a charging and card-issuing synchronization circuit according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210029571.2A CN114400740B (en) | 2022-01-11 | 2022-01-11 | Charging and card issuing synchronous circuit, method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210029571.2A CN114400740B (en) | 2022-01-11 | 2022-01-11 | Charging and card issuing synchronous circuit, method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114400740A CN114400740A (en) | 2022-04-26 |
CN114400740B true CN114400740B (en) | 2023-03-28 |
Family
ID=81231451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210029571.2A Active CN114400740B (en) | 2022-01-11 | 2022-01-11 | Charging and card issuing synchronous circuit, method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114400740B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202736082U (en) * | 2012-07-30 | 2013-02-13 | 亚信联创科技(中国)有限公司 | Apparatus and system for realizing reading and writing of SIM card |
CN204667434U (en) * | 2015-06-10 | 2015-09-23 | 广州市森锐电子科技有限公司 | System of real name is opened an account read-write card equipment |
CN104866881B (en) * | 2015-06-10 | 2018-10-23 | 广州市森锐科技股份有限公司 | System of real name, which is opened an account, reads and writes card apparatus |
CN112449340A (en) * | 2019-09-04 | 2021-03-05 | 珠海禾田电子科技有限公司 | Remote SIM card writing method and device |
-
2022
- 2022-01-11 CN CN202210029571.2A patent/CN114400740B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114400740A (en) | 2022-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11368039B2 (en) | Battery charging method and electronic device | |
CN104220958B (en) | Computer device and method for converting working mode of universal serial bus connector of the computer device | |
CN110729790B (en) | Charging method and device, computer equipment and storage medium | |
CN109067416B (en) | Method for realizing hot plug and start of SIM card and intelligent hardware | |
CN108040352B (en) | Method for processing business, device and mobile terminal under a kind of hybrid network standard | |
CN107885683B (en) | Terminal and current testing method thereof | |
CN109921481A (en) | To the OTG equipment and method of supplying power to of communication object power supply when USB is communicated | |
CN102981916B (en) | A kind of mobile terminal and control method thereof and device | |
CN111246199B (en) | Control method and device for camera test, terminal equipment and storage medium | |
CN105071484A (en) | Charging method and apparatus of terminal having data exchange function | |
CN114896158A (en) | BMS testing method and testing device | |
CN114400740B (en) | Charging and card issuing synchronous circuit, method and device | |
US10481576B2 (en) | Method and device for implementing connection control | |
CN110970954B (en) | Charging control method and device, storage medium and split type electronic equipment | |
CN115549232B (en) | Charging method and device of electronic equipment, electronic equipment and keyboard | |
CN112290964B (en) | Auxiliary installation method and device for user identification card | |
CN113660149B (en) | Equipment control method and device, storage medium and electronic equipment | |
CN105100344A (en) | Hot plug processing method for user recognition module card, and mobile terminal | |
CN111596148B (en) | Test method, device and equipment for starting diesel engine in case of power failure of emergency bus of nuclear power station | |
CN113162131A (en) | Reverse charging system, reverse charging method and terminal equipment | |
CN114492682A (en) | SIM card on-line card issuing circuit, method and device | |
CN110737318A (en) | intelligent power supply management system | |
CN115494369A (en) | Chip testing device | |
CN113764754A (en) | Charging method, device, equipment and storage medium | |
CN108110856A (en) | A kind of charge control method, system and card reader |
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 |