CN109657508B - Recharging device based on near field communication - Google Patents

Recharging device based on near field communication Download PDF

Info

Publication number
CN109657508B
CN109657508B CN201811552780.5A CN201811552780A CN109657508B CN 109657508 B CN109657508 B CN 109657508B CN 201811552780 A CN201811552780 A CN 201811552780A CN 109657508 B CN109657508 B CN 109657508B
Authority
CN
China
Prior art keywords
card
recharging
nfc
resistor
microcontroller
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
Application number
CN201811552780.5A
Other languages
Chinese (zh)
Other versions
CN109657508A (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.)
Haomian Shenzhen New Energy Co ltd
Original Assignee
Haomian Shenzhen New Energy 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 Haomian Shenzhen New Energy Co ltd filed Critical Haomian Shenzhen New Energy Co ltd
Priority to CN201811552780.5A priority Critical patent/CN109657508B/en
Publication of CN109657508A publication Critical patent/CN109657508A/en
Application granted granted Critical
Publication of CN109657508B publication Critical patent/CN109657508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • 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/0004Hybrid readers
    • 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/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10316Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves using at least one antenna particularly designed for interrogating the wireless record carriers
    • G06K7/10326Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves using at least one antenna particularly designed for interrogating the wireless record carriers the antenna being of the very-near field type, e.g. capacitive
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Toxicology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

The invention discloses a recharging device based on near field communication, which comprises a USB interface J1, a direct current voltage stabilizing circuit, an IC card socket circuit, a data receiving end RXD, a data transmitting end TXD, a data positive signal end D+ and an STC8 series microcontroller U2, wherein the USB interface J1 is in communication connection with recharging host equipment, the direct current voltage stabilizing circuit is input into the direct current voltage stabilizing circuit, the direct current voltage stabilizing circuit is connected with a power end VCC of the USB interface J1, the IC card socket circuit is connected with the output of the direct current voltage stabilizing circuit, the data receiving end RXD is connected with a data negative signal end D-of the USB interface J1, the data transmitting end TXD is connected with a data positive signal end D+ of the USB interface J1, and the serial port is connected with the IC card socket circuit, and the NFC circuit is connected with the microcontroller U2 and adopts near field communication recharging. The invention also provides a method for realizing the recharging device based on near field communication. Through the scheme, the portable recharging device has the advantages of being simple in structure, light, convenient to carry, easy and convenient to operate, time-saving and the like, and has high practical value and popularization value in the technical field of recharging.

Description

Recharging device based on near field communication
Technical Field
The invention relates to the technical field of recharging, in particular to a recharging device based on near field communication.
Background
At present, the structure of the traditional recharging device based on near field communication is complex, and the specific structure of the recharging device is not disclosed, for example, patent application technology of a non-contact type IC card recharging system and a recharging method thereof is disclosed in patent application number of 201810506865.3, and the recharging device comprises an IC card reader-writer, an intelligent terminal, a payment platform, a data center and a fire control management system. In addition, the conventional recharging device has the following disadvantages: first, the recharge code is long and it takes a long time to recharge. The recharging process is easy to cause the user to be dazzled, and the user can forget for a short time and has to reenter. The time consumption and electricity waste caused by the method; second, the conventional recharging device cannot read the information of the device back.
Therefore, it is highly desirable to provide a recharging device based on near field communication with simple structure and simple operation.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a recharging device based on near field communication, which adopts the following technical scheme:
a recharging device based on near field communication comprises a USB interface J1 in communication connection with recharging host equipment, a direct current voltage stabilizing circuit, an IC card socket circuit, a microcontroller U2 and an NFC circuit, wherein the direct current voltage stabilizing circuit is input into the direct current voltage stabilizing circuit, the IC card socket circuit is connected with the output of the direct current voltage stabilizing circuit, the data receiving end RXD is connected with a data negative signal end D-of the USB interface J1, the data transmitting end TXD is connected with a data positive signal end D+ of the USB interface J1, the serial port of the microcontroller U2 is connected with the IC card socket circuit, and the NFC circuit is connected with the microcontroller U2 and adopts near field communication recharging; the IC card socket circuit, the microcontroller U2 and the NFC circuit are all externally connected with low-voltage direct current.
Further, the dc voltage stabilizing circuit includes a dc voltage stabilizing chip U1 having a power input terminal VIN connected to a power terminal VCC of the USB interface J1, a ground terminal GND connected to ground, a power output terminal OUT connected to an IC card socket circuit, a capacitor C1 having one end connected to the power input terminal VIN of the dc voltage stabilizing chip U1 and the other end grounded, and a capacitor C3 having one end connected to the power output terminal OUT of the dc voltage stabilizing chip U1 and the other end grounded.
Further, the IC card socket circuit includes an IC card chip U3 having a data signal terminal I/O connected to a serial port P0.3 of the microcontroller U2, a reset signal terminal RST connected to a serial port P0.1 of the microcontroller U2, a clock signal CLK connected to a serial port P0.2 of the microcontroller U2 and having a model FM4442, an emitter connected to a power output terminal OUT of the dc voltage regulator chip U1, a collector connected to an operating power terminal VCC of the IC card chip U3, a PNP transistor Q1 having a base connected to a serial port P1.7 of the microcontroller U2 via a current limiting resistor R7, a resistor R8 connected between a collector of the transistor Q1 and a clock signal CLK of the IC card chip U3, a resistor R9 connected between a collector of the transistor Q1 and a reset signal terminal of the IC card chip U3, a capacitor C4 having one end connected to a collector of the transistor Q1 and the other end grounded, a resistor R6 connected between a base of the emitter of the transistor Q1 and the IC card chip U3, a data signal terminal I/O connected to a working power terminal VCC of the IC card chip U3 and a resistor R12 connected to the other end of the IC card chip and the power supply terminal VCC and the other end of the IC card chip U2 connected in series; the IC card chip U3 is arranged in the IC card seat, and a detection node for detecting whether an IC card is inserted into the IC card seat is arranged in the IC card seat; one end of the detection node is grounded, and the other end of the detection node is connected with an external middle port P3.3 of the microcontroller U2; a current limiting resistor R10 is connected between the external middle port P3.3 of the microcontroller U2 and the emitter of the triode Q1.
Preferably, the NFC circuit includes an NFC chip U4 with a clock signal end SCL connected to a serial port P1.5 of the microcontroller U2, a data bus end SDA connected to a serial port P1.4 of the microcontroller U2, a power negative end VSS grounded, and having a model M24SR02-Y, a capacitor C5 with one end connected to a power input end VCC of the NFC chip U4 and the other end grounded, a resistor R13 connected between the power input end VCC of the NFC chip U4 and the clock signal end SCL, a resistor R14 connected between the power input end VCC of the NFC chip U4 and the data bus end SDA, a near field antenna connected between an AC0 pin and an AC1 pin of the NFC chip U4, a capacitor C6 with one end connected to the AC0 pin of the NFC chip U4 and the other end grounded, and a capacitor C7 with one end connected to the AC1 pin of the NFC chip U4 and the other end grounded; the power input end VCC of the NFC chip U4 is externally connected with low-voltage direct current.
Further, the recharging device based on near field communication further comprises a resistor R1 connected between the data receiving end RXD of the microcontroller U2 and the data negative signal end D-of the USB interface J1, a resistor R2 connected between the data transmitting end TXD of the microcontroller U2 and the data positive signal end d+ of the USB interface J1, a resistor R3 with one end connected with the data transmitting end TXD of the microcontroller U2 and the other end externally connected with low-voltage direct current, a resistor R4 with one end connected with the data receiving end RXD of the microcontroller U2 and the other end externally connected with low-voltage direct current, a discrete diode D1, and a resistor R5 with one end connected with the serial port P3.4 of the microcontroller U2 and the other end connected with the discrete diode D1.
A method for realizing a recharging device based on near field communication comprises the following steps:
in step S01, the recharging host device issues a handshake protocol to the USB interface J1, and obtains a communication connection response.
Step S02, judging whether an IC card is inserted into the IC card seat and whether an NFC card is attached to the near-field antenna, if the IC card is inserted into the IC card seat and the NFC card is attached to the near-field antenna, entering step S03; if the IC card is not inserted in the IC card seat and the NFC card is not attached to the near-field antenna, no operation is performed.
Step S03, respectively obtaining product material number identification codes PPID of recharging host equipment, an NFC card and an IC card, and judging whether the product material number identification codes PPID of the recharging host equipment, the NFC card and the IC card are consistent; if so, the process proceeds to step S04.
Step S04, respectively obtaining hash tupe values HashTop of the NFC card and the IC card, and judging whether the hash tupe values HashTop of the NFC card and the IC card are consistent; if so, the process proceeds to step S05.
Step S05, a product material number identification code PPID of the IC card is sent to the NFC card and is recharged, recharging host equipment information is obtained, and electronic asset information of the NFC card and the IC card is updated; the recharging host device information comprises operation conditions, time, state codes and the like.
Further, in the step S02, the method further includes the following steps:
step S21, if the IC card is inserted in the IC card seat and no NFC card is attached to the near field antenna, the product material number identification codes PPID of the IC card and the recharging host equipment are obtained, and whether the product material number identification codes PPID of the IC card and the recharging host equipment are consistent or not is judged; if so, the step S22 is entered; otherwise, no operation is performed.
Step S22, the Hash tupe value HashTop and recharging host equipment information of the IC card are obtained, and the electronic asset information of the IC card is updated.
Further, in the step S02, the method further includes the following steps:
step S23, if the IC card is not inserted into the IC card holder and the NFC card is attached to the near field antenna, acquiring product material number identification codes PPID of the NFC card and the recharging host equipment, and judging whether the product material number identification codes PPID of the NFC card and the recharging host equipment are consistent; if the hash value of the NFC card is consistent with the hash value of the NFC card, the hash value of the NFC card is obtained, and the hash value of the NFC card is added, and the step S24 is entered; otherwise, no operation is performed.
Step S24, obtaining recharging host equipment information and updating electronic asset information of the NFC card.
Further, in the step S03, if the product material number identifiers PPID of the recharging host device, the NFC card and the IC card are different, step S21 is performed to determine whether the product material number identifiers PPID of the IC card and the recharging host device are identical, and step S23 is performed to determine whether the product material number identifiers PPID of the NFC card and the recharging host device are identical.
Preferably, in the step S02, the method further includes the following steps:
step S25, if the IC card is not inserted into the IC card holder or the NFC card is not attached to the near field antenna, judging whether the product material number identification codes PPID of the IC card and the recharging host equipment are consistent or whether the product material number identification codes PPID of the NFC card and the recharging host equipment are consistent; if the product material number identification code PPID of the IC card and the recharging host device is consistent or the product material number identification code PPID of the NFC card and the recharging host device is consistent, step S26 is entered; otherwise, no operation is performed.
Step S26, the Hash tupe value HashTop of the NFC card or the IC card is obtained and is charged, and the step S27 is performed.
Step S27, obtaining recharging host device information, and updating electronic asset information of the NFC card and the IC card.
Compared with the prior art, the invention has the following beneficial effects:
the invention skillfully adopts near field communication to obtain data exchange, changes the traditional manual keyboard input mode, and ensures that recharging operation is more convenient. In addition, the invention adopts the contact type IC card to establish serial communication so as to realize data exchange and password input operation. The invention adopts direct insertion to the USB port of the recharging host device to complete recharging and data returning. Through the scheme, the portable recharging device has the advantages of being simple in structure, light, convenient to carry, easy and convenient to operate, time-saving and the like, and has high practical value and popularization value in the technical field of recharging.
Drawings
For a clearer description of the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and should not be considered as limiting the scope of protection, and other related drawings may be obtained according to these drawings without the need of inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural view of the present invention.
Fig. 2 is a recharging flow chart of the present invention.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the present invention will be further described with reference to the accompanying drawings and examples, and embodiments of the present invention include, but are not limited to, the following examples. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
Examples
As shown in fig. 1 to 2, the present embodiment provides a recharging device based on near field communication, where the specific structure of the recharging device based on near field communication is as follows: the device comprises a USB interface J1 which is in communication connection with recharging host equipment, a direct current voltage stabilizing circuit which is input into the direct current voltage stabilizing circuit and is connected with a power end VCC of the USB interface J1, an IC card socket circuit which is connected with the output of the direct current voltage stabilizing circuit, a data receiving end RXD which is connected with a data negative signal end D-of the USB interface J1, a data transmitting end TXD which is connected with a data positive signal end D+ of the USB interface J1, an STC8 series microcontroller U2 which is connected with the IC card socket circuit through a serial port, an NFC circuit which is connected with the microcontroller U2 and is recharged through near field communication, a resistor R1 which is connected between the data receiving end RXD of the microcontroller U2 and the data negative signal end D-of the USB interface J1, a resistor R2 which is connected between the data transmitting end TXD of the microcontroller U2 and the data positive signal end D+ of the USB interface J1, a resistor R3 which is connected with the data transmitting end TXD of the microcontroller U2 and the other end of which is externally connected with low voltage direct current, a discrete resistor R4 which is connected with the data receiving end RXD of the microcontroller U2 and the other end which is externally connected with the data receiving end RXD of the microcontroller U2, and a serial diode which is connected with the other end P1, and the serial diode which is connected with the other end 4 of the microcontroller U2 and the resistor R1. The IC card socket circuit, the microcontroller U2 and the NFC circuit are all externally connected with low-voltage direct current 3.3V.
In this embodiment, the dc voltage stabilizing circuit includes a dc voltage stabilizing chip U1 with a power input terminal VIN connected to a power terminal VCC of the USB interface J1, a ground terminal GND connected to ground, a power output terminal OUT connected to an IC card socket circuit, a capacitor C1 with one end connected to the power input terminal VIN of the dc voltage stabilizing chip U1 and the other end grounded, and a capacitor C3 with one end connected to the power output terminal OUT of the dc voltage stabilizing chip U1 and the other end grounded. The dc voltage stabilizing circuit of this embodiment performs charge-discharge voltage stabilization through the capacitor C1 and the capacitor C3.
In this embodiment, by providing an IC card holder and placing an IC card therein, the IC card socket circuit includes a transistor Q1 having a data signal terminal I/O connected to a serial port P0.3 of the microcontroller U2, a reset signal terminal RST connected to a serial port P0.1 of the microcontroller U2, a clock signal CLK connected to a serial port P0.2 of the microcontroller U2, and an IC card chip U3 of the model FM4442, an emitter connected to a power output terminal OUT of the dc voltage regulator chip U1, a collector connected to an operating power terminal VCC of the IC card chip U3, and a base connected to a PNP connected to a serial port P1.7 of the microcontroller U2 via a current limiting resistor R7, a resistor R8 connected between a collector of the transistor Q1 and a clock signal CLK of the IC card chip U3, a resistor R9 connected between a collector of the transistor Q1 and a reset signal terminal RST of the IC card chip U3, a capacitor C4 having one end connected to a collector of the IC card chip Q1 and the other end grounded, a resistor R6 connected between a base of the transistor Q1 and a power supply terminal VCC of the IC card chip U3, and a resistor R connected to a power supply terminal of the other end of the IC card chip v/v 3 connected to the power supply terminal VCC and the power supply terminal of the IC card chip v 12. In addition, a detection node for detecting whether an IC card is inserted into the IC card seat is arranged in the IC card seat; one end of the detection node is grounded, and the other end of the detection node is connected with an external middle port P3.3 of the microcontroller U2; a current limiting resistor R10 is connected between the external middle port P3.3 of the microcontroller U2 and the emitter of the triode Q1. Meanwhile, the NFC circuit includes an NFC chip U4 with a clock signal end SCL connected to a serial port P1.5 of the microcontroller U2, a data bus end SDA connected to a serial port P1.4 of the microcontroller U2, a power negative end VSS grounded, and having a model M24SR02-Y, a capacitor C5 with one end connected to a power input end VCC of the NFC chip U4 and the other end grounded, a resistor R13 connected between the power input end VCC of the NFC chip U4 and the clock signal end SCL, a resistor R14 connected between the power input end VCC of the NFC chip U4 and the data bus end SDA, a near field antenna connected between an AC0 pin and an AC1 pin of the NFC chip U4, a capacitor C6 with one end connected to the AC0 pin of the NFC chip U4 and the other end grounded, and a capacitor C7 with one end connected to the AC1 pin of the NFC chip U4 and the other end grounded. In this embodiment, the microcontroller U2 performs data transmission with the IC card chip U3 through the serial port P0.3, and at the same time, the microcontroller U2 performs data transmission through the serial port P1.4.
The recharging implementation flow of the recharging device based on near field communication of the present embodiment is briefly described below:
the first step, the recharging host device issues a handshake protocol to the USB interface J1, obtains a communication connection response, and enters the second step after the communication response is successful.
A second step of judging whether an IC card is inserted into the IC card seat and whether an NFC card is attached to the near-field antenna, if the IC card is inserted into the IC card seat and the NFC card is attached to the near-field antenna, entering a third step; if the IC card is not inserted in the IC card seat and the NFC card is not attached to the near-field antenna, no operation is performed.
(21) When the IC card is inserted into the IC card seat and no NFC card is attached to the near field antenna, acquiring product material number identification codes PPID of the IC card and the recharging host equipment, and judging whether the product material number identification codes PPID of the IC card and the recharging host equipment are consistent; if so, entering (22); otherwise, no operation is performed.
(22) And acquiring Hash tupe value HashTop and recharging host equipment information of the IC card, and updating electronic asset information of the IC card.
(23) When an IC card is not inserted into the IC card seat and an NFC card is attached to the near-field antenna, acquiring product material number identification codes PPID of the NFC card and recharging host equipment, and judging whether the product material number identification codes PPID of the NFC card and the recharging host equipment are consistent; if the hash value of the NFC card is consistent with the hash value of the NFC card, the hash value of the NFC card is obtained, and the hash value of the NFC card is added, and the hash value of the NFC card is entered (24); otherwise, no operation is performed.
(24) And acquiring recharging host equipment information and updating the electronic asset information of the NFC card.
(25) If the IC card is not inserted into the IC card seat or the NFC-free card is attached to the near-field antenna, judging whether the product material number identification codes PPID of the IC card and the recharging host equipment are consistent or whether the product material number identification codes PPID of the NFC card and the recharging host equipment are consistent or not; if the product material number identification codes PPID of the IC card and the recharging host device are consistent or the product material number identification codes PPID of the NFC card and the recharging host device are consistent, entering (26); otherwise, no operation is performed.
(26) And acquiring and recharging the Hash tupe value HashTop of the NFC card or the IC card, and entering (27).
(27) And acquiring recharging host equipment information and updating electronic asset information of the NFC card and the IC card.
Thirdly, respectively acquiring product material number identification codes PPID of recharging host equipment, an NFC card and an IC card, and judging whether the product material number identification codes PPID of the recharging host equipment, the NFC card and the IC card are consistent; if the two steps are consistent, the fourth step is carried out.
When the product material number identification codes PPID of the recharging host device, the NFC card and the IC card are different (including two-by-two different or different among the three), entering (21) to determine whether the product material number identification codes PPID of the IC card and the recharging host device are consistent, and entering (23) to determine whether the product material number identification codes PPID of the NFC card and the recharging host device are consistent.
Step four, respectively obtaining hash tupe values HashTop of the NFC card and the IC card, and judging whether the hash tupe values HashTop of the NFC card and the IC card are consistent; if the two steps are consistent, the fifth step is carried out.
And fifthly, sending a product material number identification code PPID of the IC card to the NFC card, recharging, obtaining recharging host equipment information, and updating electronic asset information of the NFC card and the IC card, wherein the recharging host equipment information comprises operation conditions, time, state codes and the like.
The above embodiments are only preferred embodiments of the present invention and are not intended to limit the scope of the present invention, but all changes made by adopting the design principle of the present invention and performing non-creative work on the basis thereof shall fall within the scope of the present invention.

Claims (5)

1. The recharging device based on near field communication is characterized by comprising a USB interface J1, a direct current voltage stabilizing circuit, an IC card socket circuit, a data receiving end RXD, a data transmitting end TXD and an NFC circuit, wherein the USB interface J1 is in communication connection with recharging host equipment, the direct current voltage stabilizing circuit is connected with a power end VCC of the USB interface J1, the IC card socket circuit is connected with the output of the direct current voltage stabilizing circuit, the data receiving end RXD is connected with a data negative signal end D-of the USB interface J1, the data transmitting end TXD is connected with a data positive signal end D+ of the USB interface J1, and the serial port is connected with an STC8 series microcontroller U2 of the IC card socket circuit, and the NFC circuit is connected with the microcontroller U2 and adopts near field communication recharging; the IC card socket circuit, the microcontroller U2 and the NFC circuit are all externally connected with low-voltage direct current;
the direct-current voltage stabilizing circuit comprises a direct-current voltage stabilizing chip U1, a capacitor C1 and a capacitor C3, wherein the power input end VIN is connected with a power end VCC of a USB interface J1, the ground end GND is grounded, the power output end OUT is connected with an IC card socket circuit, one end of the capacitor C1 is connected with the power input end VIN of the direct-current voltage stabilizing chip U1, the other end of the capacitor C1 is grounded, and the other end of the capacitor C3 is connected with the power output end OUT of the direct-current voltage stabilizing chip U1;
the IC card socket circuit comprises an IC card chip U3, an emitter, a working power supply end OUT, a triode Q1, a resistor R8, a capacitor C4, a resistor R6, a resistor R11, a resistor R2 and a diode R12, wherein the data signal end I/O is connected with a working power supply end VCC of the IC card chip U3, the base is connected to PNP of a serial port P1.7 of the microcontroller U2 through a current limiting resistor R7, the resistor R8 is connected between the collector of the triode Q1 and the clock signal CLK of the IC card chip U3, the resistor R9 is connected between the collector of the triode Q1 and the reset signal end RST of the IC card chip U3, one end of the resistor is connected with the collector of the triode Q1, the other end of the capacitor C4 is grounded, the resistor R6 is connected between the base and the emitter of the triode Q1, the data signal end I/O is connected with the working power supply end VCC of the IC card chip U3, the resistor R11 is connected with the working power supply end VCC of the triode Q3, and the other end of the resistor R3 is connected with the LED; the IC card chip U3 is arranged in the IC card seat, and a detection node for detecting whether an IC card is inserted into the IC card seat is arranged in the IC card seat; one end of the detection node is grounded, and the other end of the detection node is connected with an external middle port P3.3 of the microcontroller U2; a current limiting resistor R10 is connected between the external middle port P3.3 of the microcontroller U2 and the emitter of the triode Q1;
the NFC circuit comprises an NFC chip U4, a capacitor C5, a resistor R13, a resistor R14, a near-field antenna, a capacitor C7, and a capacitor C7, wherein the clock signal end SCL is connected with a serial port P1.5 of the microcontroller U2, the data bus end SDA is connected with a serial port P1.4 of the microcontroller U2, the power negative end VSS is grounded, the model M24SR02-Y is connected with a power input end VCC of the NFC chip U4, the other end of the capacitor C5 is grounded, the resistor R13 is connected between the power input end VCC of the NFC chip U4 and the clock signal end SCL, the resistor R14 is connected between the power input end VCC of the NFC chip U4 and the data bus end SDA, the near-field antenna is connected between an AC0 pin and an AC1 pin of the NFC chip U4, one end of the capacitor C6 is connected with an AC0 pin of the NFC chip U4, the other end of the capacitor C7 is grounded; the power input end VCC of the NFC chip U4 is externally connected with low-voltage direct current;
the implementation method of the recharging device based on near field communication comprises the following steps:
step S01, recharging host equipment issues a handshake protocol to a USB interface J1, and obtains a communication connection response;
step S02, judging whether an IC card is inserted into the IC card seat and whether an NFC card is attached to the near-field antenna, if the IC card is inserted into the IC card seat and the NFC card is attached to the near-field antenna, entering step S03; if the IC card is not inserted into the IC card seat and the NFC card is not attached to the near-field antenna, no operation is performed;
step S03, respectively obtaining product material number identification codes PPID of recharging host equipment, an NFC card and an IC card, and judging whether the product material number identification codes PPID of the recharging host equipment, the NFC card and the IC card are consistent; if the two values are consistent, the step S04 is carried out;
step S04, respectively obtaining hash tupe values HashTop of the NFC card and the IC card, and judging whether the hash tupe values HashTop of the NFC card and the IC card are consistent; if the two values are consistent, the step S05 is carried out;
step S05, a product material number identification code PPID of the IC card is sent to the NFC card and is recharged, recharging host equipment information is obtained, and electronic asset information of the NFC card and the IC card is updated; the recharging host device information comprises an operation condition, time and a state code.
2. The recharging device based on near field communication according to claim 1, further comprising a resistor R1 connected between the data receiving end RXD of the microcontroller U2 and the data negative signal end D-of the USB interface J1, a resistor R2 connected between the data transmitting end TXD of the microcontroller U2 and the data positive signal end d+ of the USB interface J1, a resistor R3 connected at one end to the data transmitting end TXD of the microcontroller U2 and externally connected at the other end to a low voltage direct current, a resistor R4 and a discrete diode D1 connected at one end to the data receiving end RXD of the microcontroller U2 and externally connected at the other end to the low voltage direct current, and a resistor R5 connected at one end to the serial port P3.4 of the microcontroller U2 and at the other end to the discrete diode D1.
3. The recharging device based on near field communication according to claim 1, wherein in the step S02, further comprising the steps of:
step S21, if the IC card is inserted in the IC card seat and no NFC card is attached to the near field antenna, the product material number identification codes PPID of the IC card and the recharging host equipment are obtained, and whether the product material number identification codes PPID of the IC card and the recharging host equipment are consistent or not is judged; if so, the step S22 is entered; otherwise, no operation is performed;
step S22, the Hash tupe value HashTop and recharging host equipment information of the IC card are obtained, and the electronic asset information of the IC card is updated.
4. The recharging device based on near field communication according to claim 3, wherein in the step S02, further comprising the steps of:
step S23, if the IC card is not inserted into the IC card holder and the NFC card is attached to the near field antenna, acquiring product material number identification codes PPID of the NFC card and the recharging host equipment, and judging whether the product material number identification codes PPID of the NFC card and the recharging host equipment are consistent; if the hash value of the NFC card is consistent with the hash value of the NFC card, the hash value of the NFC card is obtained, and the hash value of the NFC card is added, and the step S24 is entered; otherwise, no operation is performed;
step S24, obtaining recharging host equipment information and updating electronic asset information of the NFC card.
5. The recharging device based on near field communication according to claim 4, wherein in step S03, if the product material number identifiers PPID of the recharging host device, the NFC card and the IC card are different, step S21 is performed to determine whether the product material number identifiers PPID of the IC card and the recharging host device are identical, and step S23 is performed to determine whether the product material number identifiers PPID of the NFC card and the recharging host device are identical, respectively.
CN201811552780.5A 2018-12-19 2018-12-19 Recharging device based on near field communication Active CN109657508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811552780.5A CN109657508B (en) 2018-12-19 2018-12-19 Recharging device based on near field communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811552780.5A CN109657508B (en) 2018-12-19 2018-12-19 Recharging device based on near field communication

Publications (2)

Publication Number Publication Date
CN109657508A CN109657508A (en) 2019-04-19
CN109657508B true CN109657508B (en) 2024-04-16

Family

ID=66114649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811552780.5A Active CN109657508B (en) 2018-12-19 2018-12-19 Recharging device based on near field communication

Country Status (1)

Country Link
CN (1) CN109657508B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111986409B (en) * 2020-08-21 2023-04-07 深圳前海澔勉离网电器有限公司 Off-network solar payment system based on RFID

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008282271A (en) * 2007-05-11 2008-11-20 Fuji Electric Retail Systems Co Ltd Electronic money charger
CN201387639Y (en) * 2008-12-29 2010-01-20 深圳市江波龙电子有限公司 Card reader and mobile payment terminal
CN201417458Y (en) * 2009-05-11 2010-03-03 深圳市江波龙电子有限公司 External NFC device
WO2010061068A1 (en) * 2008-11-03 2010-06-03 Neowave (S.A.S.) Usb key endowed with contactless reader and contactless chip card emulation functions
CN204028959U (en) * 2014-08-26 2014-12-17 深圳市金溢科技股份有限公司 A kind of portable IC card supplements read write line with money
CN204028949U (en) * 2013-12-06 2014-12-17 西安旌旗电子股份有限公司 The general card reader/writer of a kind of combined type based on HID
CN209044798U (en) * 2018-12-19 2019-06-28 深圳前海澔勉离网电器有限公司 Recharging device based on near-field communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002150250A (en) * 2000-11-16 2002-05-24 Matsushita Electric Ind Co Ltd Ic chip for non-contact ic card

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008282271A (en) * 2007-05-11 2008-11-20 Fuji Electric Retail Systems Co Ltd Electronic money charger
WO2010061068A1 (en) * 2008-11-03 2010-06-03 Neowave (S.A.S.) Usb key endowed with contactless reader and contactless chip card emulation functions
CN201387639Y (en) * 2008-12-29 2010-01-20 深圳市江波龙电子有限公司 Card reader and mobile payment terminal
CN201417458Y (en) * 2009-05-11 2010-03-03 深圳市江波龙电子有限公司 External NFC device
CN204028949U (en) * 2013-12-06 2014-12-17 西安旌旗电子股份有限公司 The general card reader/writer of a kind of combined type based on HID
CN204028959U (en) * 2014-08-26 2014-12-17 深圳市金溢科技股份有限公司 A kind of portable IC card supplements read write line with money
CN209044798U (en) * 2018-12-19 2019-06-28 深圳前海澔勉离网电器有限公司 Recharging device based on near-field communication

Also Published As

Publication number Publication date
CN109657508A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN103019991B (en) Interface system and changing method, USB key and UART terminal
CN107196369B (en) Multi-interface quick charging power supply
CN104007801A (en) Method and apparatus for providing power to an electronic device
CN107453428B (en) A kind of method of automatic identification apple and Android device
CN100561926C (en) A kind of remote wakening system and terminal based on WAN module
CN109657508B (en) Recharging device based on near field communication
US20080002509A1 (en) Power adapter with discriminate recharging
CN104124732A (en) USB (Universal Serial Bus) interface based universal wireless power supply circuit for mobile terminal and power supply method thereof
CN102148631B (en) Dismountable wireless communication module and its method started
CN209044798U (en) Recharging device based on near-field communication
CN207677488U (en) Wireless charging circuit based on electronic tag
CN208386177U (en) A kind of omnipotent power supply change-over device of mobile phone wireless control based on fast charge agreement
CN109447627B (en) Remote recharging device based on Lora wireless communication
CN100358211C (en) Charging set for handset
CN204706725U (en) A kind of charging data line
CN204117179U (en) Band is stable triggers output function NFC label and electronic equipment
CN207302113U (en) Chargeable smart card charging system, smart card and card reader
CN201732437U (en) Radio-frequency intelligent card-swiping device for on-site payment
CN108572936B (en) USB interface control circuit
CN205757639U (en) Intelligent bracelet and Intelligent bracelet control system
CN211428961U (en) Multi-interface charging seat circuit
CN204856533U (en) Radio frequency is known read mean , identification system and is used for radio frequency identification system of pearl ornaments sign
CN218512965U (en) Storage device
CN112564232B (en) Mobile phone data transmission and power taking circuit and method
CN219320772U (en) Circuit capable of identifying two smart cards and corresponding electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Room 201, building 9b, Dayun software Town, 8288 Longgang Avenue, he'ao community, Yuanshan street, Longgang District, Shenzhen City, Guangdong Province

Applicant after: Haomian (Shenzhen) New Energy Co.,Ltd.

Address before: 518000 3c23, building 19, Dayun software Town, Longgang District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN QIANHAI HAOMIAN OFF-GRID ELECTRIC APPLIANCE CO.,LTD.

GR01 Patent grant
GR01 Patent grant