CN114400740A - Charging and card issuing synchronous circuit, method and device - Google Patents

Charging and card issuing synchronous circuit, method and device Download PDF

Info

Publication number
CN114400740A
CN114400740A CN202210029571.2A CN202210029571A CN114400740A CN 114400740 A CN114400740 A CN 114400740A CN 202210029571 A CN202210029571 A CN 202210029571A CN 114400740 A CN114400740 A CN 114400740A
Authority
CN
China
Prior art keywords
circuit
card
charging
chip
main control
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
CN202210029571.2A
Other languages
Chinese (zh)
Other versions
CN114400740B (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.)
Wuxi Yuning Intelligent Technology Co ltd
Original Assignee
Wuxi Yuning Intelligent Technology 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 Wuxi Yuning Intelligent Technology Co ltd filed Critical Wuxi Yuning Intelligent Technology Co ltd
Priority to CN202210029571.2A priority Critical patent/CN114400740B/en
Publication of CN114400740A publication Critical patent/CN114400740A/en
Application granted granted Critical
Publication of CN114400740B publication Critical patent/CN114400740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0013Methods 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
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation 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, a method and a 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

Charging and card issuing synchronous circuit, method and device
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 to 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 that are 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 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:
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-filling data. The switching circuit is used for controlling the connection between the card writing circuit and the charging circuit, so that the synchronous charging function 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 description of the embodiments or the prior art 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 illustrate:
reference numerals Name (R) Reference numerals Name (R)
10 Master control circuit 201 Card writing chip
20 Card writing circuit 202 Chopping chip
30 Switching circuit 301 Adapter logic chip
40 Charging circuit 401 Data line socket
50 Battery with a battery cell 402 Charging chip
60 Interface 403 Power management chip
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 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 invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), 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 instruction when the SIM card insertion signal is detected, and detect the signal to be detected when the card writing control instruction 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 includes a main control module 101 and a first switch S1; wherein, the controlled terminal of the first switch S1 is connected to the charging circuit 40, the control terminal of the first switch S1 is connected to the main control module 101, the main control module 101 is connected to the detection terminal (refer to CD) of the interface 60, and the 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 AW 3611. 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.
The voltage of the battery 50 used in a general mobile phone is about 3.7V, but the operating voltage of the card writing chip 201 is 5V, and the voltage of the battery 50 is not enough to start the card writing chip 201 to operate, so the chopper chip 202 is used for boosting 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 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 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 a fixed contact of the third switch S3 is connected to a first movable contact of the third switch S3, thereby connecting the card writing chip 201 and the adapter logic chip 301.
It is 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 relevant data information, such as preset data, to the card writing chip 201.
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 stationary 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 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, by switching the connection between the main control module 101 and the data line socket 401 or the card writing chip 201, the card writing is performed without affecting the charging process, and 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 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, the potential of a pin connected with the first switch S1 is changed to 1, meanwhile, the detection end of the adapter logic chip 301 is switched to the card writing chip 201 through the third switch S3, the main control module 101 is connected with the data port of the card writing chip 201 through the second switch S2, and the chopper chip 202 is started 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 a 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 execute card writing to 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 phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises 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 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 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 not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

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;
and the card writing circuit is used for writing the card according to the enable signal and the pre-filling data through the interface.
2. The charging and card-issuing synchronizing circuit according to claim 1, wherein the main control circuit is further configured to detect a 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.
3. The charging and card-issuing synchronizing circuit according to claim 2, wherein 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.
4. The charge-and-discharge synchronization circuit of claim 3, 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 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.
5. The charge-and-card-issuance synchronous circuit according to claim 4, 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.
6. The charge-and-fire synchronization circuit of claim 5, 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 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.
7. The charging and card-issuing synchronizing circuit according to claim 6, wherein the charging circuit comprises a data line socket, a charging chip and a power management chip which are 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.
8. The charge-and-card-issuance synchronous circuit according to claim 7, 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 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.
9. A charging and card-issuing synchronization method applied to the charging and card-issuing synchronization circuit according to any one of claims 1 to 8, wherein the charging and card-issuing synchronization circuit comprises 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.
10. A charging and card-issuing synchronizing device, characterized in that it comprises a charging and card-issuing synchronizing circuit according to any one of claims 1 to 8.
CN202210029571.2A 2022-01-11 2022-01-11 Charging and card issuing synchronous circuit, method and device Active CN114400740B (en)

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 true CN114400740A (en) 2022-04-26
CN114400740B 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)

Citations (4)

* Cited by examiner, † Cited by third party
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
CN104866881A (en) * 2015-06-10 2015-08-26 广州市森锐电子科技有限公司 Real-name system account opening card reading/writing equipment
CN204667434U (en) * 2015-06-10 2015-09-23 广州市森锐电子科技有限公司 System of real name is opened an account read-write card equipment
CN112449340A (en) * 2019-09-04 2021-03-05 珠海禾田电子科技有限公司 Remote SIM card writing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN104866881A (en) * 2015-06-10 2015-08-26 广州市森锐电子科技有限公司 Real-name system account opening card reading/writing equipment
CN204667434U (en) * 2015-06-10 2015-09-23 广州市森锐电子科技有限公司 System of real name is opened an account read-write card equipment
CN112449340A (en) * 2019-09-04 2021-03-05 珠海禾田电子科技有限公司 Remote SIM card writing method and device

Also Published As

Publication number Publication date
CN114400740B (en) 2023-03-28

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
CN111697663A (en) Charging circuit and charging cable
CN102981916B (en) A kind of mobile terminal and control method thereof and device
CN109067416B (en) Method for realizing hot plug and start of SIM card and intelligent hardware
CN105068959A (en) Terminal and charging method and apparatus for terminal with data exchange function
CN111246199B (en) Control method and device for camera test, terminal equipment and storage medium
CN114400740B (en) Charging and card issuing synchronous circuit, method and device
CN106921192A (en) Terminal and electricity sharing method
CN111823863B (en) Vehicle-mounted play source switching method, system and equipment
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
US10481576B2 (en) Method and device for implementing connection control
CN112290964B (en) Auxiliary installation method and device for user identification card
CN115291120A (en) Battery metering system, electronic equipment and control method
CN107272864B (en) Reset circuit, battery and electronic equipment
CN114492682B (en) SIM card on-line card issuing circuit, method and device
CN111596148B (en) Test method, device and equipment for starting diesel engine in case of power failure of emergency bus of nuclear power station
CN110737318A (en) intelligent power supply management system
CN113162131A (en) Reverse charging system, reverse charging method and terminal equipment
CN212782002U (en) Network device
CN108110856A (en) A kind of charge control method, system and card reader
CN214539915U (en) Digital quantity input state self-checking circuit
CN115954039A (en) Memory chip testing equipment, method and related device
CN109474925B (en) Clock setting method based on SIM module, mobile terminal and storage medium
CN107273274A (en) Display methods, device and the terminal of terminal

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