CN111062222B - IC device payment method, IC device, card reading equipment and storage medium - Google Patents

IC device payment method, IC device, card reading equipment and storage medium Download PDF

Info

Publication number
CN111062222B
CN111062222B CN201811210124.7A CN201811210124A CN111062222B CN 111062222 B CN111062222 B CN 111062222B CN 201811210124 A CN201811210124 A CN 201811210124A CN 111062222 B CN111062222 B CN 111062222B
Authority
CN
China
Prior art keywords
card reading
card
analog
contact
payment method
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
CN201811210124.7A
Other languages
Chinese (zh)
Other versions
CN111062222A (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.)
Shenzhen Excelsecu Data Technology Co Ltd
Original Assignee
Shenzhen Excelsecu Data 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 Shenzhen Excelsecu Data Technology Co Ltd filed Critical Shenzhen Excelsecu Data Technology Co Ltd
Priority to CN201811210124.7A priority Critical patent/CN111062222B/en
Publication of CN111062222A publication Critical patent/CN111062222A/en
Application granted granted Critical
Publication of CN111062222B publication Critical patent/CN111062222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06K7/0021Methods 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 for reading/sensing record carriers having surface contacts
    • 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/10297Methods 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 arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/06Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for prepaying basic charges, e.g. rent for meters
    • 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

Abstract

The invention discloses an IC device payment method, an IC device, card reading equipment and a storage medium, wherein the method comprises the following steps: the IC device acquires recharging data from the intelligent terminal, sends an analog card inserting signal to the card reading device so as to establish communication connection with the card reading device, and sends the recharging data to the card reading device so that the card reading device updates balance data according to the recharging data. Functions such as prepaid gas purchase are implemented. Therefore, when a user pays the card reading equipment through the IC device, the user does not need to firstly pay the value to a recharging place, and does not need to plug the IC device frequently due to payment, and even can pay the fee at a place far away from the card reading equipment through the intelligent terminal, for example, the user can store the value and the air quantity for an outdoor gas meter on a sofa; the payment flow is simple and convenient, and the user experience is good.

Description

IC device payment method, IC device, card reading equipment and storage medium
Technical Field
The present invention relates to the field of IC devices, and in particular, to a payment method for an IC device, a card reading apparatus, and a storage medium.
Background
In the prior art, when the payment card is used for payment, the payment card needs to be taken to a recharging center to be inserted into a special card reader for recharging, and then the card reader is inserted into a consumption terminal to import the money. For example, the gas IC device is taken to a gas recharging place for recharging, and then the gas IC device is inserted into a gas meter to introduce a new recharged gas amount. Therefore, the whole payment flow is troublesome, causes inconvenience to the user and affects the user experience.
Disclosure of Invention
The embodiment of the invention provides an IC device payment method, an IC device, card reading equipment and a storage medium, when a user pays to the card reading equipment through the IC device, the IC device is not required to be recharged at a recharging place, the IC device is not required to be frequently plugged and unplugged due to payment, the payment flow is simple and convenient, and the user experience is good.
The first aspect of the embodiment of the invention provides an IC device payment method, which is used for an IC device; the IC device payment method comprises the following steps:
an IC device paying method is used for an IC device, and the IC device is electrically connected with card reading equipment; the IC device payment method comprises the following steps:
if recharging data are acquired from the intelligent terminal, sending an analog card inserting signal to the card reading equipment so as to establish communication connection with the card reading equipment;
and sending the recharging data to the card reading equipment.
In some embodiments, the analog card signal includes a predetermined sequence of card levels.
In some embodiments, the card level sequence comprises:
a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
In some embodiments, the sending the analog card insertion signal to the card reading device specifically includes:
and sending an analog card inserting signal to the card reading equipment through a preset card inserting contact.
In some embodiments, before the obtaining the recharging data from the intelligent terminal, the method further includes:
and after the electric energy is obtained from the card reading equipment, communication connection is established with the intelligent terminal.
In some embodiments, the obtaining electrical energy from the card reading device specifically includes:
and if the electric power is electrically connected with the card holder of the card reading equipment, acquiring electric power from the card reading equipment through the power receiving contact.
In some embodiments, the IC device payment further comprises:
and sending an analog button signal to the card reading device so that the card reading device can realize a preset function according to the analog button signal.
In some embodiments, the sending the analog button signal to the card reading device specifically includes:
and sending the analog button signal to the card reading equipment through a preset button contact.
In some embodiments, the sending an analog button signal to the card reading device specifically includes:
and if a button instruction is acquired from the intelligent terminal, sending the analog button signal to the card reading equipment through the button contact.
In some embodiments, before and after the sending of the analog button signal to the card reader device through the button contact, the method further comprises:
setting the button contact to a high resistance state;
the analog button signal includes a predetermined button level sequence.
In some embodiments, the button level sequence comprises:
a low level for a third period of time and a high level for a fourth period of time.
In some embodiments, the electrical connection with the card holder of the card reading device is specifically:
the card reader is electrically connected with a card seat of the card reading equipment through a 7816 protocol interface;
the card inserting contact, the power receiving contact and the button contact are respectively different contacts of a fourth contact, a sixth contact and an eighth contact in the 7816 protocol interface.
The second aspect of the embodiment of the invention provides a payment method of an IC device, which is used for card reading equipment, wherein the card reading equipment is electrically connected with the IC device; the IC device payment method comprises the following steps:
if the analog card inserting signal is obtained from the IC device, establishing communication connection with the IC device;
acquiring refill data from the IC device;
and updating balance data according to the recharging data.
In some embodiments, the analog card signal includes a predetermined sequence of card levels.
In some embodiments, the card level sequence comprises:
a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
In some embodiments, if the analog card signal is obtained from the IC device, before the communication connection is established with the IC device, the method further includes:
providing electrical power to the IC device.
In some embodiments, the IC device payment method further includes:
and if the analog button signal is acquired from the IC device, a preset function is realized according to the analog button signal.
In some embodiments, the analog button signal is sent by the IC device in accordance with a button instruction obtained from a smart terminal.
A third aspect of the embodiment of the present invention provides an IC apparatus, including a first memory for storing program instructions and a first processor; and if the first processor executes the program instruction, implementing the IC device payment method for the IC device.
The fourth aspect of the embodiment of the invention provides an IC device, which comprises a smart card chip, a communication module, a control module and an electrical interface, wherein the smart card chip is used for being electrically connected with a card reading device through the electrical interface, and the smart card chip and the communication module are both connected with the control module;
the control module is used for acquiring recharging data from the intelligent terminal through the communication module and writing the recharging data into the intelligent card chip;
the electrical interface comprises a card insertion contact; the intelligent card chip is used for sending an analog card inserting signal to the card reading device through the card inserting contact so as to establish communication connection with the card reading device and the intelligent card chip;
the smart card chip is also used for sending the recharging data to the card reading equipment through the electrical interface.
In some embodiments, the analog card signal includes a predetermined sequence of card levels.
In some embodiments, the card level sequence comprises:
a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
In some embodiments, the electrical interface further comprises a powered contact through which the IC device obtains electrical energy from the card reading apparatus.
In some embodiments, the electrical interface further includes a button contact, and the IC device sends an analog button signal to the card reading device through the button contact, so that the card reading device realizes a preset function according to the analog button signal.
In some embodiments, the control module is further configured to obtain a button instruction from the smart terminal through the communication module, and control the IC device to send an analog button signal to the card reader device through the button contact according to the button instruction.
In some embodiments, the button contacts are set to a high impedance state when the analog button signal is not sent to the card reader device; and when the button contact sends an analog button signal to the card reading equipment, outputting a preset button level sequence.
In some embodiments, the electrical interface is specifically a 7816 protocol interface;
the card inserting contact, the power receiving contact and the button contact are respectively different contacts of a fourth contact, a sixth contact and an eighth contact in the 7816 protocol interface.
A fifth aspect of the embodiment of the present invention provides a card reading device, including a second memory and a second processor, where the second memory is used to store program instructions; and if the second processor executes the program instruction, implementing the IC device payment method for the card reading equipment.
A sixth aspect of the embodiment of the present invention provides a storage medium storing a computer program, where the computer program, if executed by a processor, implements the above-mentioned IC device payment method for an IC device.
A seventh aspect of the embodiment of the present invention provides a storage medium storing a computer program, where if the computer program is executed by a processor, the foregoing IC device payment method for a card reading device is implemented.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: the IC device is charged with the recharging data through the intelligent terminal, the IC device sends an analog card inserting signal to the card reading equipment so as to establish communication connection with the card reading equipment, and then the recharging data is sent to the card reading equipment, so that the card reading equipment updates balance data according to the recharging data, and functions such as prepayment fuel gas purchase and the like are realized. Therefore, when a user pays the card reading equipment through the IC device, the user does not need to firstly pay the value to a recharging place, and does not need to plug the IC device frequently due to payment, and even can pay the fee at a place far away from the card reading equipment through the intelligent terminal, for example, the user can store the value and the air quantity for an outdoor gas meter on a sofa; the payment flow is simple and convenient, and the user experience is good.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a flow chart of an IC device payment method for an IC device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a 7816 protocol interface;
FIG. 3 is a schematic diagram of the connection of an IC device to a card reader;
fig. 4 is a flow chart of an IC device payment method for an IC device according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an IC device according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a card reader according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an IC device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that, if not in conflict, the features of the embodiments of the present invention may be combined with each other, which are all within the protection scope of the present invention. In addition, while the division of functional blocks is performed in a device diagram and the logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in a device diagram or the sequence in a flowchart.
Example 1
Fig. 1 is a schematic flow chart of an IC device payment method, which is used for an IC device, and the IC device is electrically connected to a card reading device.
The IC device may be, for example, a card-type IC device such as an IC card (Integrated Circuit Card), also called an integrated circuit card (Smart card), a Smart card (Intelligent card), a microcircuit card (Microcircuit card), a microchip card, or the like.
As shown in fig. 1, the IC device payment method includes:
step S110, if the IC device obtains recharging data from the intelligent terminal, an analog card inserting signal is sent to the card reading equipment so as to establish communication connection with the card reading equipment.
After the IC device is powered on and started, communication connection can be established with a corresponding intelligent terminal, for example, communication connection can be established in a Bluetooth mode, a Zigbee mode, a Wifi mode and the like. The intelligent terminal can be a mobile phone, a tablet or a terminal special for paying through the IC device.
The intelligent terminal is connected to the internet, and the user opens recharging software or other related software on the intelligent terminal to realize communication connection between the intelligent terminal and the IC device. The user then pays on top of the recharge software or other related software to a payment object, such as a gas center. After the gas center confirms that the payment is successful, the gas center returns confirmation information to the intelligent terminal, and the intelligent terminal sends corresponding recharging data to the IC device. The IC device acquires and stores the recharge data from the smart terminal, for example, writes the recharge data into the IC card chip.
In some possible embodiments, the card reading device includes a card reading module, and the card reading device is built-in or externally connected with a control module; the control module communicates with the IC device through the card reading module, so the card reading module is a hub for the control module to communicate with the IC device. For example, the card reading device may be a consumption terminal of a corresponding user of the IC device, such as a gas meter in a home of a certain gas user.
After the IC device acquires recharging data from the intelligent terminal, the IC device can actively or according to a payment instruction of the intelligent terminal, send an analog card inserting signal to card reading equipment electrically connected with the intelligent terminal; after receiving the analog card inserting signal, the card reading device establishes communication connection with the IC device.
In some possible embodiments, the IC device sends an analog card insertion signal to the card reading device in step S110, which specifically includes:
the IC device sends an analog card inserting signal to the card reading device through a preset card inserting contact CKXH.
In this embodiment, the card reading module of the card reading device includes a card holder, and the IC device is connected to the card holder. Illustratively, after the IC card is inserted into the card reading device, the card insertion contacts CKXH of the IC device may transmit an analog card insertion signal to the card reading device through the card holder.
In some possible embodiments, the IC device includes an electrical interface for connecting to a card holder of the card reading apparatus, the electrical interface including card insertion contacts CKXH.
In some possible embodiments, the electrical interface is embodied as a 7816 protocol interface. The IC device is electrically connected with the card holder of the card reading device through a 7816 protocol interface.
As shown in fig. 2, the 7816 protocol interface of the IC device generally includes eight contacts, where the first contact VCC is a power supply voltage contact, the second contact RES is a reset contact, the third contact CLK is a clock contact, the fourth contact is a reserved unused contact, the fifth contact GND is a low level contact, the sixth contact is a reserved unused contact, the seventh contact I/O is an input/output contact, and the eighth contact is a reserved unused contact.
Typically, when the IC device is used in conjunction with a card reader device, only the first, second, third, fifth, and seventh contacts VCC, RES, CLK, GND, and I/O are used, while the fourth, sixth, and eighth contacts are not used. The C4 contact, C6 contact, C8 contact of the card reading device are not used, corresponding to the fourth contact, sixth contact, eighth contact of the IC device.
Thus, in an embodiment of the present invention, one of the fourth contact, the sixth contact, and the eighth contact may be defined as a card insertion contact CKXH, for example, the sixth contact may be defined as a card insertion contact CKXH.
The IC device sends an analog card insertion signal to the card reading device via the defined card insertion contact CKXH. In some possible embodiments, the analog card signal comprises a predetermined sequence of card levels. Illustratively, the plug-in level sequence includes:
a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
For example, the card inserting contact CKXH is kept at a high level for 4 seconds, then a low level is output for 4 seconds, and then the card inserting contact CKXH is converted into a high level, so that the IC device sends an analog card inserting signal to the card reading device once, and an analog card inserting action of the card reading device is completed.
And step S120, the IC device sends the recharging data to the card reading equipment.
When the card reading device detects the analog card inserting signal of the card inserting contact CKXH of the IC device, communication connection is established with the IC device so as to further acquire recharging data from the IC device and update balance data according to the recharging data. Thereby realizing functions such as prepaid gas purchase.
In other possible embodiments, after the IC device sends the analog card inserting signal to the card reading device electrically connected with the IC device, the IC device establishes communication connection with the card reading device, and the intelligent terminal used by the user can interact with the card reading device through the IC device, so as to realize functions of setting the card reading device, such as a gas meter, checking balance data, such as residual gas amount, and the like.
In some possible embodiments, before the IC device obtains the recharging data from the smart terminal in step S110, the method further includes:
and step S101, the IC device acquires electric energy from the card reading equipment and then establishes communication connection with the intelligent terminal.
When the IC device is electrically connected with the card reading equipment, such as the IC card is inserted into the card reading equipment, the card reading equipment provides electric energy for the IC device, and the IC device is powered on and started, so that communication connection can be established with a corresponding intelligent terminal, for example, communication connection can be established in a Bluetooth mode, a Zigbee mode, a Wifi mode and the like.
In some possible embodiments, the IC device obtains the electrical energy from the card reading device in step S101, which specifically includes:
in step S1011, if the IC device is electrically connected to the card holder of the card reader, electrical energy is obtained from the card reader through the POWER receiving contact POWER.
And the IC device acquires electric energy from the card reading equipment through the POWER receiving contact POWER and then establishes communication connection with the intelligent terminal.
In some possible embodiments, an unused one of the fourth, sixth, and eighth contacts in the 7816 protocol interface may also be defined as a powered contact POWER, e.g., the fourth contact may be defined as a powered contact POWER.
When the IC device is electrically connected to the card reading apparatus, the POWER receiving contact POWER of the IC device is connected to a corresponding contact, such as a C4 contact, in the card holder to obtain electric POWER from the card reading apparatus.
Illustratively, the card reading device, such as a gas meter, provides electrical POWER to the IC device through the POWER contact POWER, with a voltage in the range of 4.2V-6.5V. After the IC card is inserted into the IC card seat of the gas meter, the power supply to the IC device is turned on.
In some possible embodiments, as shown in fig. 3, IC device 100 may also include a rechargeable battery and/or a disposable battery, which may also provide power to IC device 100. If the IC device 100 is electrically connected to the card holder of the card reader 200, the IC device 100 may detect that the IC device is connected to the card reader 200 through the POWER receiving contact POWER, or may establish a communication connection with the intelligent terminal; at this time, the IC device 100 may acquire electric power from the card reader 200 or may use electric power of a rechargeable battery and/or a disposable battery.
Illustratively, the IC device 100 further includes a POWER management module that is connected to the POWER receiving contacts POWER, the rechargeable battery, and/or the disposable battery; the POWER management module preferably draws POWER through the POWER receiving contact POWER. Therefore, the IC device 100 can be used in a wide range, and functions such as communication and display can be performed without connecting the card reader 200; the electric energy of the rechargeable battery and/or the disposable battery can be saved as much as possible, and the service time is prolonged.
The IC control system in the IC device 100 in fig. 3 may include, for example, a smart card chip, a communication module, etc. that needs to consume electric power, and a charging module for charging the rechargeable battery. The MCU management module in the card reading device 200 may include, for example, a card reading module and a control module; the voltage input interface is used to supply POWER to a POWER receiving contact, such as a fourth contact, of the IC device 100 via the C4 contact.
According to the IC device payment method provided by the embodiment of the invention, the intelligent terminal is used for recharging the IC device, the IC device sends the analog card inserting signal to the card reading equipment so as to establish communication connection with the card reading equipment, and then the recharging data is sent to the card reading equipment, so that the card reading equipment updates balance data according to the recharging data, and functions such as prepayment fuel gas purchase and the like are realized. Therefore, when a user pays the card reading equipment through the IC device, the user does not need to firstly pay the value to a recharging place, and does not need to plug the IC device frequently due to payment, and even can pay the fee at a place far away from the card reading equipment through the intelligent terminal, for example, the user can store the value and the air quantity for an outdoor gas meter on a sofa; the payment flow is simple and convenient, and the user experience is good.
As a further improvement of the embodiment of the present invention, the IC device payment method further includes:
and step 130, the IC device sends an analog button signal to the card reading equipment so that the card reading equipment can realize a preset function according to the analog button signal.
In some possible embodiments, if the card reading device obtains the analog button signal from the IC device, the preset functions to be implemented include: and enabling a preset overdraft balance. For example, when the gas amount in the gas meter is exhausted and the gas meter cannot be timely charged, the IC device can enable the gas meter to allow the gas meter to use three cubic meters in a penetrating way by sending an analog button signal to the card reading device. The method can not continuously pay for the next time, and the gas quantity used by the pay is deducted from the updated balance data after the payment.
In some possible embodiments, the IC device sends an analog button signal to the card reading device in step S130, specifically including:
step S1301, the IC device sends the analog button signal to the card reader through a preset button contact ANXH.
In some possible embodiments, an unused one of the fourth, sixth, and eighth contacts in the 7816 protocol interface may also be defined as a button contact ANXH, e.g., an eighth contact may be defined as a button contact ANXH.
In other possible embodiments, the card insertion contact CKXH, the POWER receiving contact POWER, and the button contact ANXH are different contacts of the fourth contact, the sixth contact, and the eighth contact in the 7816 protocol interface, respectively. Illustratively, if the fourth contact is defined as a card insertion contact CKXH, the sixth contact is defined as a POWER receiving contact POWER, and the eighth contact is defined as a button contact ANXH; for another example, the eighth contact is defined as a card insertion contact CKXH, the sixth contact is defined as a POWER receiving contact POWER, and the fourth contact is defined as a button contact ANXH.
In some possible embodiments, before and after the analog button signal is sent to the card reader device through the preset button contact ANXH, the method further includes: the button contact ANXH is set to a high impedance state. Therefore, after the IC device is electrically connected to the card reading equipment, the communication connection between the IC device and the corresponding intelligent terminal can be established after the IC device is powered on and started, and the button contact ANXH is set to be in a high-resistance state; when the analog button signal is required to be sent to the card reading equipment so that the card reading equipment can realize the preset function, the analog button signal is sent to the card reading equipment actively or according to the corresponding instruction of the intelligent terminal. For example, in step S130, the IC device sends an analog button signal to the card reading device, which specifically includes:
step S1302, if a button instruction is acquired from the intelligent terminal, the analog button signal is sent to the card reader through the button contact ANXH.
Therefore, a user can realize the remote control of the card reading equipment to realize the preset function through the intelligent terminal at a place far away from the card reading equipment.
In some possible embodiments, the analog button signal comprises a predetermined sequence of button levels.
Illustratively, the button level sequence includes: a low level for a third period of time and a high level for a fourth period of time.
For example, the button contact ANXH outputs a low level for 4 seconds, outputs a high level for 4 seconds, and changes to a high resistance state, that is, the IC device sends an analog button signal to the card reading device once, and the card reading device can be triggered to realize a preset function.
In some possible embodiments, the card insertion contact CKXH, the POWER receiving contact POWER, and the button contact ANXH are different contacts in the fourth contact, the sixth contact, and the eighth contact in the 7816 protocol interface, respectively, and the sixth contact is not limited to being defined as the card insertion contact CKXH, the fourth contact being defined as the POWER receiving contact POWER, and the fourth contact being defined as the button contact ANXH.
Example two
Fig. 4 is a schematic flow chart of a payment method of an IC device, which is used for a card reading device.
The IC device payment method comprises the following steps:
step S210, if the card reading equipment acquires an analog card inserting signal from the IC device, communication connection is established with the IC device.
After the IC device acquires recharging data from the intelligent terminal, the IC device can actively or according to a payment instruction of the intelligent terminal, send an analog card inserting signal to card reading equipment electrically connected with the intelligent terminal; after receiving the analog card inserting signal, the card reading device establishes communication connection with the IC device.
In some possible embodiments, the analog card signal includes a predetermined sequence of card levels.
Illustratively, the plug-in level sequence includes:
a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
For example, the card inserting contact CKXH of the IC device is maintained at a high level for 4 seconds, then a low level is output for 4 seconds, and then the IC device is turned into a high level, that is, the IC device sends an analog card inserting signal to the card reading device once, and an analog card inserting action to the card reading device is completed.
Step S220, the card reading device acquires recharging data from the IC device.
When the card reading device detects an analog card insertion signal of the card insertion contact CKXH of the IC device, a communication connection is established with the IC device, so that the recharging data can be acquired from the IC device.
In other possible embodiments, after the IC device sends the analog card inserting signal to the card reading device electrically connected with the IC device, the IC device establishes communication connection with the card reading device, and the intelligent terminal used by the user can interact with the card reading device through the IC device, so as to realize functions of setting the card reading device, such as a gas meter, checking balance data, such as residual gas amount, and the like.
And step S230, the card reading equipment updates balance data according to the recharging data.
The card reading apparatus updates balance data based on the recharge data acquired from the IC device. Thereby realizing functions such as prepaid gas purchase.
According to the IC device payment method provided by the embodiment of the invention, the IC device is used for sending the analog card inserting signal to the card reading equipment to trigger the card reading equipment to establish communication connection with the IC device, so that recharging data can be obtained from the IC device, balance data can be updated according to the recharging data, and functions such as prepayment fuel gas purchase and the like can be realized. Therefore, when a user pays the card reading equipment through the IC device, the user does not need to firstly pay the value to a recharging place, and does not need to plug the IC device frequently due to payment, and even can pay the fee at a place far away from the card reading equipment through the intelligent terminal, for example, the user can store the value and the air quantity for an outdoor gas meter on a sofa; the payment flow is simple and convenient, and the user experience is good.
In some possible embodiments, if the card reading device obtains the analog card inserting signal from the IC device, step S210 further includes, before establishing a communication connection with the IC device:
step S201, the card reading device provides power to the IC device.
For example, if the IC device is electrically connected to the card holder of the card reading apparatus, the POWER is obtained from the card reading apparatus through the POWER receiving contact POWER of the IC device. So that the IC device can establish communication connection with the intelligent terminal after acquiring electric energy from the card reading equipment through the POWER receiving contact POWER.
As a further improvement of the embodiment of the present invention, the IC device payment method further includes:
step S240, if the card reading device obtains an analog button signal from the IC device, a preset function is realized according to the analog button signal.
In some possible embodiments, if the card reading device obtains the analog button signal from the IC device, the preset functions to be implemented include: and enabling a preset overdraft balance. For example, when the gas amount in the gas meter is exhausted and the gas meter cannot be timely charged, the IC device can enable the gas meter to allow the gas meter to use three cubic meters in a penetrating way by sending an analog button signal to the card reading device. The method can not continuously pay for the next time, and the gas quantity used by the pay is deducted from the updated balance data after the payment.
In some possible embodiments, the analog button signal is sent by the IC device according to a button instruction obtained from the smart terminal.
Therefore, a user can realize the remote control of the card reading equipment to realize the preset function through the intelligent terminal at a place far away from the card reading equipment.
In some possible embodiments, the analog button signal comprises a predetermined sequence of button levels.
Illustratively, the button level sequence includes: a low level for a third period of time and a high level for a fourth period of time.
For example, the button contact ANXH outputs a low level for 4 seconds, outputs a high level for 4 seconds, and changes to a high resistance state, that is, the IC device sends an analog button signal to the card reading device once, and the card reading device can be triggered to realize a preset function.
From the above description of embodiments, it will be apparent to those skilled in the art that the present invention may be implemented in software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention, such as:
a storage medium storing a computer program that, if executed by a processor, implements the IC device payment method for an IC device in the first embodiment. And
a storage medium storing a computer program that, if executed by a processor, implements the IC device payment method for the card reading apparatus in the second embodiment.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like, as in example three.
Example III
An IC device as shown in fig. 5, comprising a first memory 101 and a first processor 102, the first memory 101 for storing program instructions; if the first processor 102 executes the program instructions, the IC device payment method for the IC device in the first embodiment is implemented.
A card reading apparatus as shown in fig. 6, comprising a second memory 103 and a second processor 104, the second memory 103 being for storing program instructions; if the second processor 104 executes the program instruction, the IC device payment method for the card reading device in the second embodiment is implemented.
The IC device and the card reading apparatus in this embodiment and the method in the foregoing corresponding embodiments are based on two aspects under the same inventive concept, and the detailed description of the implementation process of the method has been described in the foregoing, so those skilled in the art can clearly understand the structure and implementation process of the electronic device in this embodiment according to the foregoing description, and for brevity of the description, no further description is provided herein.
According to the IC device and the card reading equipment provided by the embodiment of the invention, the IC device can be recharged through the intelligent terminal, the IC device sends the analog card inserting signal to the card reading equipment so as to establish communication connection with the card reading equipment, and then the recharging data is sent to the card reading equipment, so that the card reading equipment updates balance data according to the recharging data, and functions such as prepayment fuel gas purchase and the like are realized. Therefore, when a user pays the card reading equipment through the IC device, the user does not need to firstly pay the value to a recharging place, and does not need to plug the IC device frequently due to payment, and even can pay the fee at a place far away from the card reading equipment through the intelligent terminal, for example, the user can store the value and the air quantity for an outdoor gas meter on a sofa; the payment flow is simple and convenient, and the user experience is good.
Example IV
Fig. 7 is a schematic diagram of an IC device.
The IC device includes a smart card chip 110, a communication module 120, a control module 130, and an electrical interface 140.
The communication module 120 includes a bluetooth unit, a Zigbee unit, a Wifi unit, or the like, and the control module 130 is configured to be in communication connection with the intelligent terminal through the communication module 120; the control module 130 may include, for example, a single-chip microcomputer.
The smart card chip 110 is electrically connected to the card reader through the electrical interface 140, and the smart card chip 110 and the communication module 120 are both connected to the control module 130.
The control module 130 is configured to obtain recharging data from the smart terminal through the communication module 120, and write the recharging data into the smart card chip 110.
After the IC device is powered on and booted, a communication connection is established between the IC device and a corresponding intelligent terminal through the communication module 120, for example, a communication connection is established through bluetooth, zigbee, wifi, and the like. The intelligent terminal can be a mobile phone, a tablet or a terminal special for paying through the IC device.
The intelligent terminal is connected to the internet, and the user opens recharging software or other related software on the intelligent terminal to realize communication connection between the intelligent terminal and the IC device. The user then pays on top of the recharge software or other related software to a payment object, such as a gas center. After the gas center confirms that the payment is successful, the gas center returns confirmation information to the intelligent terminal, and the intelligent terminal sends corresponding recharging data to the IC device. The IC device acquires and stores the recharge data from the smart terminal, for example, writes the recharge data into the IC card chip.
The electrical interface 140 includes a card insertion contact CKXH; the smart card chip 110 is configured to send an analog card insertion signal to the card reading device via the card insertion contact CKXH to establish a communication connection with the card reading device and the smart card chip 110.
After the IC device obtains recharging data from the intelligent terminal, the IC device can actively send an analog card inserting signal to a card reading device electrically connected with the IC device through a preset card inserting contact CKXH or according to a payment instruction of the intelligent terminal; after receiving the analog card inserting signal, the card reading device establishes communication connection with the IC device.
The smart card chip 110 is also configured to send recharging data to the card reader device via the electrical interface 140.
When the card reading device detects the analog card inserting signal of the card inserting contact CKXH of the IC device, communication connection is established with the IC device so as to further acquire recharging data from the IC device and update balance data according to the recharging data. Thereby realizing functions such as prepaid gas purchase.
In other possible embodiments, after the IC device sends the analog card inserting signal to the card reading device electrically connected with the IC device, the IC device establishes communication connection with the card reading device, and the intelligent terminal used by the user can interact with the card reading device through the IC device, so as to realize functions of setting the card reading device, such as a gas meter, checking balance data, such as residual gas amount, and the like.
In some possible embodiments, the analog card signal includes a predetermined sequence of card levels.
Illustratively, the card level sequence includes:
a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
In some possible embodiments, electrical interface 140 further includes POWER contact POWER through which the IC device draws POWER from the card reading device.
When the IC device is electrically connected with the card reading equipment, such as an IC card is inserted into the card reading equipment, the card reading equipment provides electric energy for the IC device through a POWER receiving contact POWER of the IC device; the IC device is powered on and started, so that communication connection can be established with the corresponding intelligent terminal, for example, communication connection can be established in a Bluetooth mode, a Zigbee mode, a Wifi mode and the like.
In some possible embodiments, as shown in fig. 3, IC device 100 may also include a rechargeable battery and/or a disposable battery, which may also provide power to IC device 100. If the IC device 100 is electrically connected to the card holder of the card reader 200, the IC device 100 may detect that the IC device is connected to the card reader 200 through the POWER receiving contact, or may establish communication connection with the intelligent terminal; at this time, the IC device 100 may acquire electric power from the card reader 200 or may use electric power of a rechargeable battery and/or a disposable battery.
Illustratively, the IC device 100 further includes a POWER management module that is connected to the POWER receiving contacts POWER, the rechargeable battery, and/or the disposable battery; the POWER management module preferably draws POWER through the POWER receiving contact POWER. Therefore, the IC device 100 can be used in a wide range, and functions such as communication and display can be performed without connecting the card reader 200; the electric energy of the rechargeable battery and/or the disposable battery can be saved as much as possible, and the service time is prolonged.
In some possible embodiments, the electrical interface 140 further includes a button contact ANXH, and the IC device sends an analog button signal to the card reading device through the button contact ANXH, so that the card reading device implements a preset function according to the analog button signal.
In some possible embodiments, if the card reading device obtains the analog button signal from the IC device through the button contact ANXH, the preset functions to be implemented include: and enabling a preset overdraft balance. For example, when the gas amount in the gas meter is exhausted and the gas meter cannot be timely charged, the IC device can enable the gas meter to allow the gas meter to use three cubic meters in a penetrating way by sending an analog button signal to the card reading device. The method can not continuously pay for the next time, and the gas quantity used by the pay is deducted from the updated balance data after the payment.
In some possible embodiments, the control module 130 is further configured to obtain a button command from the smart terminal through the communication module 120, and control the IC device to send an analog button signal to the card reader device through the button contact ANXH according to the button command.
Therefore, a user can realize the remote control of the card reading equipment to realize the preset function through the intelligent terminal at a place far away from the card reading equipment.
In some possible embodiments, the button contact ANXH is set to a high impedance state when the analog button signal is not sent to the card reader device; when the button contact ANXH sends an analog button signal to the card reading device, a preset button level sequence is output.
In some possible embodiments, the electrical interface 140 is embodied as a 7816 protocol interface. The card inserting contact CKXH, the POWER receiving contact POWER and the button contact ANXH are respectively different contacts of a fourth contact, a sixth contact and an eighth contact in the 7816 protocol interface.
Illustratively, the sixth contact is defined as a card insertion contact CKXH, the fourth contact is defined as a POWER receiving contact POWER, and the fourth contact is defined as a button contact ANXH.
According to the IC device provided by the embodiment of the invention, the IC device can be recharged through the intelligent terminal, the IC device sends the analog card inserting signal to the card reading equipment so as to establish communication connection with the card reading equipment, and then the recharging data is sent to the card reading equipment, so that the card reading equipment updates balance data according to the recharging data, and functions such as prepayment fuel gas purchase and the like are realized. Therefore, when a user pays the card reading equipment through the IC device, the user does not need to firstly pay the value to a recharging place, and does not need to plug the IC device frequently due to payment, and even can pay the fee at a place far away from the card reading equipment through the intelligent terminal, for example, the user can store the value and the air quantity for an outdoor gas meter on a sofa; the payment flow is simple and convenient, and the user experience is good.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.

Claims (11)

1. An IC device paying method is used for an IC device, and the IC device is electrically connected with card reading equipment; the method is characterized in that: the IC device payment method comprises the following steps:
if recharging data are acquired from the intelligent terminal, sending an analog card inserting signal to the card reading equipment so as to establish communication connection with the card reading equipment;
and sending the recharging data to the card reading equipment.
2. The IC device payment method of claim 1, wherein: the analog add-in signal includes:
a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
3. The IC device payment method of claim 1, wherein: the sending the analog card inserting signal to the card reading equipment specifically comprises the following steps:
and sending an analog card inserting signal to the card reading equipment through a preset card inserting contact.
4. The IC device payment method of claim 1, wherein after the sending the recharge data to the card reading device, further comprising:
if a button instruction is acquired from the intelligent terminal, an analog button signal is sent to the card reading device through a preset button contact, so that the card reading device realizes a preset function according to the analog button signal.
5. The IC device payment method of claim 4, wherein: before and after the analog button signal is sent to the card reading device through the button contact, the method further comprises the following steps:
setting the button contact to a high resistance state;
the analog button signal includes a predetermined button level sequence.
6. The IC device payment method is used for card reading equipment, and the card reading equipment is electrically connected with the IC device; the method is characterized in that: the IC device payment method comprises the following steps:
if the analog card inserting signal is obtained from the IC device, establishing communication connection with the IC device;
acquiring refill data from the IC device;
and updating balance data according to the recharging data.
7. The IC device payment method of claim 6, wherein: the analog add-in signal includes: a high level for a first duration; and
the low level for the second period of time is followed by a transition to the high level.
8. The IC device payment method as recited in claim 6, wherein after updating balance data according to the recharge data, further comprising:
and if the analog button signal is acquired from the IC device, a preset function is realized according to the analog button signal.
9. An IC device, characterized in that: the system comprises a first memory and a first processor, wherein the first memory is used for storing program instructions; if the first processor executes the program instructions, the IC device payment method of any one of claims 1-5 is implemented.
10. A card reading apparatus characterized in that: the system comprises a second memory and a second processor, wherein the second memory is used for storing program instructions; if the second processor executes the program instructions, implementing the IC device payment method according to any one of claims 6-8.
11. A storage medium storing a computer program, characterized in that: implementing the IC device payment method according to any one of claims 1 to 5 if the computer program is executed by a processor; or alternatively
Implementing the IC device payment method as recited in any one of claims 6-8.
CN201811210124.7A 2018-10-17 2018-10-17 IC device payment method, IC device, card reading equipment and storage medium Active CN111062222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811210124.7A CN111062222B (en) 2018-10-17 2018-10-17 IC device payment method, IC device, card reading equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811210124.7A CN111062222B (en) 2018-10-17 2018-10-17 IC device payment method, IC device, card reading equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111062222A CN111062222A (en) 2020-04-24
CN111062222B true CN111062222B (en) 2023-11-17

Family

ID=70297038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811210124.7A Active CN111062222B (en) 2018-10-17 2018-10-17 IC device payment method, IC device, card reading equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111062222B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618685B1 (en) * 2000-10-17 2003-09-09 Sun Microsystems, Inc. Non-invasive testing of smart cards
CN101500030A (en) * 2008-01-28 2009-08-05 德信智能手机技术(北京)有限公司 Sleep awakening SD card optimization processing method for smart phone
CN201812970U (en) * 2010-05-07 2011-04-27 天津市炳华节能技术有限公司 Waterproof structure of slide contact type IC card seat
CN102121977A (en) * 2010-12-14 2011-07-13 华北电网有限公司计量中心 Method and device for detecting IC (Integrate Circuit) card electric energy meter
CN205375487U (en) * 2016-01-28 2016-07-06 北京握奇智能科技有限公司 Multi -function IC card
CN106022770A (en) * 2016-05-10 2016-10-12 国网冀北电力有限公司廊坊供电公司 Consumed electricity charge payment method and system
CN206133546U (en) * 2016-09-30 2017-04-26 深圳创维汽车智能有限公司 Storage device's break -make testing arrangement and system
CN206961181U (en) * 2016-09-20 2018-02-02 成都慧众云信息技术有限公司 A kind of IC-card charging system
CN108038399A (en) * 2018-01-26 2018-05-15 杭州先锋电子技术股份有限公司 A kind of Intelligent Card for Gas Meter read-write card automatic detection device and detection method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618685B1 (en) * 2000-10-17 2003-09-09 Sun Microsystems, Inc. Non-invasive testing of smart cards
CN101500030A (en) * 2008-01-28 2009-08-05 德信智能手机技术(北京)有限公司 Sleep awakening SD card optimization processing method for smart phone
CN201812970U (en) * 2010-05-07 2011-04-27 天津市炳华节能技术有限公司 Waterproof structure of slide contact type IC card seat
CN102121977A (en) * 2010-12-14 2011-07-13 华北电网有限公司计量中心 Method and device for detecting IC (Integrate Circuit) card electric energy meter
CN205375487U (en) * 2016-01-28 2016-07-06 北京握奇智能科技有限公司 Multi -function IC card
CN106022770A (en) * 2016-05-10 2016-10-12 国网冀北电力有限公司廊坊供电公司 Consumed electricity charge payment method and system
CN206961181U (en) * 2016-09-20 2018-02-02 成都慧众云信息技术有限公司 A kind of IC-card charging system
CN206133546U (en) * 2016-09-30 2017-04-26 深圳创维汽车智能有限公司 Storage device's break -make testing arrangement and system
CN108038399A (en) * 2018-01-26 2018-05-15 杭州先锋电子技术股份有限公司 A kind of Intelligent Card for Gas Meter read-write card automatic detection device and detection method

Also Published As

Publication number Publication date
CN111062222A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
JP6110956B2 (en) Mobile power supply that can carry a charge conversion adapter and supports 2D barcode identification
US7370219B1 (en) Power sharing between portable computer system and peripheral device
US6429625B1 (en) Method and apparatus for indicating battery charge status
CN111463842B (en) Electronic equipment and communication method thereof
US20040145487A1 (en) Method and apparatus for communication between an electronic device and a connected battery
CN103677193A (en) Cascading power for accessories
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN104007801A (en) Method and apparatus for providing power to an electronic device
US9444274B2 (en) Method of detection and display of charging information of power bank
CN109921481A (en) To the OTG equipment and method of supplying power to of communication object power supply when USB is communicated
TWM486890U (en) Charging apparatus of integrated network
CN106250295A (en) Wearable device electric quantity monitoring method, system, wearable device and mobile terminal
CN206975770U (en) Shared power-supply device and shared charging system
CN113853722A (en) Power circuit and electronic device including the same
CN111062222B (en) IC device payment method, IC device, card reading equipment and storage medium
CN210377665U (en) Prepaid gas meter
CN210377504U (en) Device for putting valve control information into natural gas meter
EP3629428B1 (en) Method and apparatus for changing impedance of terminal included in connector
CN109657508B (en) Recharging device based on near field communication
CN207410050U (en) Portable power source equipment, power supply unit
CN217085850U (en) Hydroelectric remote recharging card device
US20130343575A1 (en) Card reading apparatus for use with personal handheld device
KR20160033990A (en) System for recharge charging of mobile terminal
CN104969081A (en) System and method for measuring electrical energy with functions of pre-pay and data collection by means of an optical device
CN208157768U (en) Blue-tooth intelligence socket with wechat barcode scanning payment function

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