CN102074082B - Network tax controller and method for detecting plug and pull of same - Google Patents

Network tax controller and method for detecting plug and pull of same Download PDF

Info

Publication number
CN102074082B
CN102074082B CN200910238746A CN200910238746A CN102074082B CN 102074082 B CN102074082 B CN 102074082B CN 200910238746 A CN200910238746 A CN 200910238746A CN 200910238746 A CN200910238746 A CN 200910238746A CN 102074082 B CN102074082 B CN 102074082B
Authority
CN
China
Prior art keywords
network tax
tax controller
plug
module
network
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
CN200910238746A
Other languages
Chinese (zh)
Other versions
CN102074082A (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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN200910238746A priority Critical patent/CN102074082B/en
Publication of CN102074082A publication Critical patent/CN102074082A/en
Application granted granted Critical
Publication of CN102074082B publication Critical patent/CN102074082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a network tax controller and a method for detecting plug and pull of the same. The network tax controller is characterized in that a plug and pull detection module and a standby battery are arranged in the network tax controller, wherein the standby battery provides electric energy to the plug and pull detection module under the condition of power failure; and the plug and pull detection module provides the functions of clock, plug and pull detection and power switching. The method comprises the following steps: the network tax controller is pulled out, the on-off detection signal line is off and a detection module generates a signal that the network tax controller is pulled out; the detection flag in a first storage module is marked according to the signal that the network tax controller is pulled out; a clock module generates the time value of pull out of the network tax controller and stores the time value in the first storage module; a main control module generates the pull and plug record of the network tax controller according to the number of the network tax controller and the time value of pull out of the network tax controller and stores the pull and plug record in a second storage module; and the main control module uploads the pull and plug record to a tax control server.

Description

Network tax controller and network tax controller plug detection method
Technical field
The present invention relates to the network tax control technology, particularly a kind of network tax controller, and the plug detection method of network tax controller with plug measuring ability.
Background technology
Tax source control system to big-and-middle-sized retailing enterprise is made up of foreground network tax controller and backstage tax control server.Network tax controller is responsible for writing down every data that sell on the foreground, and generates the tax control sign indicating number according to critical data, regularly invoice data is uploaded to the backstage tax control server simultaneously; Functions such as the initialization of backstage tax control server completion network tax controller, management tax control IC-card, General Invoice Issuing and tax data, declaration data.The user carries out on the tax control server of backstage and declares operation and can transmit, store through LAN and write among the subscriber card U-key all data of enterprise when carrying out data declaration; The user will have the U-key insertion tax control server of monitor message during tax payment, carry out the tax payment operation then and can accomplish the monitor message renewal to enterprise's all-network The Design of Tax Controled Device.
Shown in Figure 1 is the tax source control system diagram that uses network tax controller in the prior art.
Wherein, network tax controller carries out data communication through Peripheral Interface line and commercial cash register, and described Peripheral Interface line is connected with commercial cash register through serial ports, parallel port or the USB mouth of commercial cash register.Network tax controller is provided with two Ethernet interfaces, uses network connectivity to be connected with commercial cash register with commercial user's LAN respectively.
Can find that from the tax source control system schema tax office can't find that enterprise removes the situation of network tax controller privately, to such an extent as to real sales data that can't be in the monitoring enterprise reporting period.
Summary of the invention
The objective of the invention is to solve in the existing tax source control system, can't monitor the technical matters of under power-down conditions, removing network tax controller to big-and-middle-sized retailing enterprise.
For achieving the above object, the present invention provides a kind of network tax controller, and plug detection module and reserve battery are set in the said network tax controller; Said reserve battery provides electric energy for said plug detection module under power-down conditions; The function that said plug detection module provides clock, plug detection and power supply to switch;
Said plug detection module is made up of detection module, clock module, power supply switch circuit and first memory module; Described detection module is connected with outside commercial cash register through the break-make signal lines, is used to detect the signal that network tax controller is pulled out; Described clock module provides the clock of network tax controller operation, and the time value that provides network tax controller to be pulled out; Switching between said power supply switch circuit control external power source and the reserve battery; Said first memory module is used to store and detects the time value that zone bit and network tax controller are pulled out; Described detection zone bit is represented the state that network tax controller is plugged;
The intrusion detection pin of said plug detection module is connected with the earth signal line of commercial cash register shell through said break-make signal lines, and the intrusion detection pin of said plug detection module also is connected with internal pull-up resistor;
Second memory module is set, storage networking The Design of Tax Controled Device numbering in the said network tax controller.
The present invention also provides a kind of network tax controller plug detection method, may further comprise the steps:
Step a, network tax controller is pulled out, and the break-make signal lines is broken off, and detection module produces the signal that network tax controller is pulled out;
Step b, according to the signal that said network tax controller is pulled out, the detection zone bit in mark first memory module, the expression network tax controller is pulled out; Clock module produces the time value that network tax controller is pulled out, and is stored in first memory module;
Step c, main control module read the time value that network tax controller is pulled out in first memory module, and store second memory module into; Said main control module generates the plug record of network tax controller according to the time value that network tax controller is numbered and network tax controller is pulled out, and stores second memory module into;
Steps d, main control module will plug record and be uploaded to tax control server.
Beneficial effect of the present invention is, than tradition plug testing circuit (low-power consumption microprocessor+RTC clock chip+break-make testing circuit+backup battery), adopts single plug detection module to realize identical function, practices thrift cost about 70%.Circuit among the present invention is few with respect to tradition plug testing circuit ingredient; The complicated circuit degree is low; Particularly the backup battery commutation circuit is integrated in the single plug detection module; Comprise clock module in the single plug detection module, the function that writes down the plug time has automatically improved the reliability of total system.Under power-down conditions, backup battery only provides power supply for plugging detection module among the present invention, and backup battery need provide power supply for low-power consumption microprocessor, clock chip, break-make testing circuit in the traditional scheme, so power consumption of the present invention is lower.
Description of drawings
Fig. 1 is the tax source control system diagram that uses network tax controller in the prior art;
Fig. 2 has the module map of the network tax controller of plug measuring ability for the present invention;
Fig. 3 is the plug detection method process flow diagram of network tax controller of the present invention;
Fig. 4 is the module map of an embodiment of network tax controller of the present invention;
Fig. 5 is the synoptic diagram that an embodiment intrusion detection pin of network tax controller of the present invention is connected with internal pull-up resistor;
Fig. 6 is the form of detection record of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on embodiments of the invention, the every other embodiment that those of ordinary skills are obtained under the prerequisite of not making creative work belongs to the scope that the present invention protects.
The present invention provides a kind of network tax controller that under power-down conditions, has the plug measuring ability.
Shown in Figure 2 for the module map of network tax controller of the present invention.
Plug detection module and reserve battery are set in the network tax controller.Said reserve battery provides electric energy for said plug detection module under power-down conditions.The function that said plug detection module provides clock, plug detection and power supply to switch.
Said plug detection module is made up of detection module, clock module, power supply switch circuit and first memory module.Described detection module is connected with outside commercial cash register through the break-make signal lines, is used to detect the signal that network tax controller is pulled out.Described clock module provides the clock of network tax controller operation, and the time that provides network tax controller to be pulled out.Switching between said power supply switch circuit control external power source and the reserve battery.
When the network tax controller operate as normal, described plug detection module is supplied power by the external power source (not shown).When the network tax controller power down, external power source cuts off, and to described plug detection module electric energy is provided by described reserve battery.
Said first memory module is used to store and detects the time value that zone bit and network tax controller are pulled out.Described detection zone bit is represented the state that network tax controller is plugged.
Said network tax controller also is provided with main control module, second memory module and mixed-media network modules mixed-media.Storage networking The Design of Tax Controled Device numbering in said second memory module.Described network tax controller numbering is unique.Described main control module reads the detection zone bit in said first memory module, and judges.If said detection zone bit shows that network tax controller is pulled out, described main control module reads the time value that the network tax controller in said first memory module is pulled out, and stores said second memory module into.Described main control module generates the plug record of network tax controller according to the time value that network tax controller is numbered and network tax controller is pulled out, and stores said second memory module into.Said main control module empties described detection zone bit simultaneously, to be used for plugging detection next time.
Described mixed-media network modules mixed-media provides two Ethernet interfaces, is connected with LAN with commercial cash register respectively.Said main control module is connected with said mixed-media network modules mixed-media.When said main control module receives the plug record queries order that tax control server sends; Said main control module reads the time value that network tax controller is numbered and network tax controller is pulled out from said second memory module; Generate the plug record, send to said tax control server.
The present invention provides a kind of can detect the method that network tax controller is pulled out under power-down conditions.
Shown in Figure 3 is the plug detection method of network tax controller.Comprise following flow process:
Step 301, beginning.At this moment, network tax controller is in power-down state, and reserve battery is to the power supply of plug detection module.
Step 302, network tax controller is pulled out, and the break-make signal lines is broken off, and detection module produces the signal that network tax controller is pulled out.
Step 303, according to the signal that network tax controller is pulled out, the detection zone bit in mark first memory module, the expression network tax controller is pulled out; Clock module produces the time value that network tax controller is pulled out, and is stored in first memory module.
Step 304, network tax controller powers on, and main control module reads the detection zone bit in first memory module, judges whether network tax controller is pulled out; If then execution in step 305; If not, then execution in step 306.
Step 305; Main control module reads the time value that network tax controller is pulled out in first memory module; And storing said second memory module into, main control module generates the plug record of network tax controller according to the time value that network tax controller is numbered and network tax controller is pulled out, and stores said second memory module into; Simultaneously described detection zone bit is emptied, to be used for plugging detection next time.
Step 306, network tax controller receive the plug record queries order of tax control server broadcasting, in master control module judges second memory module whether the plug record are arranged; If have, then execution in step 307; If no, execution in step 308 then.
Step 307, main control module will plug record and be uploaded to tax control server.
Step 308, main control module is carried out other operation flows of network tax controller.
Step 309, tax control server judges that according to the network tax controller numbering in the plug record which platform network tax controller is pulled out, and judges the time that network tax controller is pulled out according to the time value in the plug record.
Step 310 finishes.
One embodiment of network tax controller of the present invention is as shown in Figure 4, and the plug detection module is the M41ST87 chip of ST company.The function of detection module, clock module, power supply switch circuit and first memory module that M41ST87 is integrated.The M41ST87 chip has anti-tamper circuit for detecting, is used for the invasion of the system that need protect sensitive data is detected, and chip automatic stay clock register value can read the time that outside invasion takes place to guarantee application program when invasion takes place.
During normal the use, the intrusion detection pin Tpin of M41ST87 (Tamper Pin Input) is connected with the earth signal line of commercial cash register shell through the break-make signal lines, and the intrusion detection pin Tpin of M41ST87 is a low level.The M41ST87 internal register is set and is detected zone bit, and detecting zone bit when normally using is 0.
The standby power supply pin Vbat of M41ST87 (Positive Battery Pin Input) is connected with reserve battery.When the network tax controller power down, the power supply switch circuit in the M41ST87 switches to reserve battery with external power source.
As shown in Figure 5, M41ST87 is configured to intrusion detection pin Tpin is connected with internal pull-up resistor.When network tax controller is pulled out; The break-make signal lines is broken off, and intrusion detection pin Tpin is drawn high is high level, produces the signal that network tax controller is pulled out; M41ST87 is stored in the time value that network tax controller is pulled out in the register, and will to detect the mark position be 1.
The clock of M41ST87 and data pins Scl/Sda in the present embodiment (Serial Clock Input/Serial Data Input/Output) are through I 2The C bus is connected with main control module, carries out exchanges data.
The output pin Rst that resets of M41ST87 is connected with the reseting pin of main control module.When network tax controller powered on, M41ST87 resetted through the output pin Rst that resets (Reset Output) control main control module.Main control module is through I 2The C bus reads the numerical value of registers and detecting zone bit in the M41ST87.If detecting zone bit is 1, be illustrated in power down during network tax controller pulled out, main control module reads the time value that the network tax controller of M41ST87 register memory storage is pulled out, and is stored in second memory module.And the numerical value that detects zone bit in the M41ST87 register is changed to 0, detect being used for next time.
In the present embodiment, the detection record of storing in second memory module is made up of 12 the time value that network tax controller is numbered and network tax controller is pulled out, and is as shown in Figure 6.The time value that network tax controller is pulled out is " date Hour Minute Second " form, is produced by M41ST87.This is merely a kind of implementation of detection record among the present invention, can not be with concrete format restriction protection scope of the present invention of detection record.
Than tradition plug testing circuit (low-power consumption microprocessor+RTC clock chip+break-make testing circuit+backup battery), the present invention adopts single plug detection module to realize identical function, practices thrift cost about 70%.Circuit among the present invention is few with respect to tradition plug testing circuit ingredient; The complicated circuit degree is low; Particularly the backup battery commutation circuit is integrated in the single plug detection module; Comprise clock module in the single plug detection module, the function that writes down the plug time has automatically improved the reliability of total system.Under power-down conditions, backup battery only provides power supply for plugging detection module among the present invention, and backup battery need provide power supply for low-power consumption microprocessor, clock chip, break-make testing circuit in the traditional scheme, so power consumption of the present invention is lower.
The above description of this invention is illustrative, and nonrestrictive, and those skilled in the art is understood, and within spirit that claim limits and scope, can carry out many modifications, variation or equivalence to it, but they will fall in protection scope of the present invention all.

Claims (8)

1. a network tax controller is characterized in that, plug detection module and reserve battery are set in the said network tax controller; Said reserve battery provides electric energy for said plug detection module under power-down conditions; The function that said plug detection module provides clock, plug detection and power supply to switch;
Said plug detection module is made up of detection module, clock module, power supply switch circuit and first memory module; Described detection module is connected with outside commercial cash register through the break-make signal lines, is used to detect the signal that network tax controller is pulled out; Described clock module provides the clock of network tax controller operation, and the time value that provides network tax controller to be pulled out; Switching between said power supply switch circuit control external power source and the reserve battery; Said first memory module is used to store and detects the time value that zone bit and network tax controller are pulled out; Described detection zone bit is represented the state that network tax controller is plugged;
The intrusion detection pin of said plug detection module is connected with the earth signal line of commercial cash register shell through said break-make signal lines, and the intrusion detection pin of said plug detection module also is connected with internal pull-up resistor;
Second memory module is set, storage networking The Design of Tax Controled Device numbering in the said network tax controller.
2. network tax controller as claimed in claim 1 is characterized in that, said second memory module storage detection record, and said detection record is made up of the time value that said network tax controller numbering and network tax controller are pulled out.
3. network tax controller as claimed in claim 1 is characterized in that, the signal that said network tax controller is pulled out is a high level signal.
4. a network tax controller plug detection method is characterized in that, comprising:
Step a, network tax controller is pulled out, and the break-make signal lines is broken off, and detection module produces the signal that network tax controller is pulled out;
Step b, according to the signal that said network tax controller is pulled out, the detection zone bit in mark first memory module, the expression network tax controller is pulled out; Clock module produces the time value that network tax controller is pulled out, and is stored in first memory module;
Step c, main control module read the time value that network tax controller is pulled out in first memory module, and store second memory module into; Said main control module generates the plug record of network tax controller according to the time value that network tax controller is numbered and network tax controller is pulled out, and stores second memory module into;
Steps d, main control module will plug record and be uploaded to tax control server.
5. network tax controller plug detection method as claimed in claim 4 is characterized in that, comprises also between said step b and the step c that main control module reads the detection zone bit in first memory module, judges the step whether network tax controller is pulled out.
6. network tax controller plug detection method as claimed in claim 5 is characterized in that, also comprises the step that described detection zone bit is emptied among the said step c.
7. network tax controller plug detection method as claimed in claim 6; It is characterized in that; Comprise also between said step c and the steps d whether network tax controller receives the plug record queries order of tax control server broadcasting, have the plug recorded steps in master control module judges second memory module.
8. network tax controller plug detection method as claimed in claim 7; It is characterized in that; Comprise also after the said steps d that tax control server according to which the platform network tax controller of network tax controller numbering judgement in the plug record is pulled out, and judges the step of the time that network tax controller is pulled out according to the time value in the plug record.
CN200910238746A 2009-11-24 2009-11-24 Network tax controller and method for detecting plug and pull of same Active CN102074082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910238746A CN102074082B (en) 2009-11-24 2009-11-24 Network tax controller and method for detecting plug and pull of same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910238746A CN102074082B (en) 2009-11-24 2009-11-24 Network tax controller and method for detecting plug and pull of same

Publications (2)

Publication Number Publication Date
CN102074082A CN102074082A (en) 2011-05-25
CN102074082B true CN102074082B (en) 2012-08-29

Family

ID=44032608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910238746A Active CN102074082B (en) 2009-11-24 2009-11-24 Network tax controller and method for detecting plug and pull of same

Country Status (1)

Country Link
CN (1) CN102074082B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104658127A (en) * 2013-11-18 2015-05-27 拍档科技股份有限公司 Portable electronic charging device with pluggable tax control device
CN104731007A (en) * 2015-03-13 2015-06-24 沈阳中科博微自动化技术有限公司 Backboard communication assembly and communication method for function security PLC
CN106527613B (en) * 2016-11-09 2019-04-09 百望金赋科技有限公司 A kind of connection method and generic server of generic server and tax control core board
CN109686017A (en) * 2018-12-29 2019-04-26 航天信息股份有限公司 A kind of tax controlling equipment management method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7014110B2 (en) * 2002-06-10 2006-03-21 Seiko Epson Corporation POS system, network system, method of generating printing data for POS system, and method of managing sales and advertisement information in network system
CN101017589A (en) * 2006-02-08 2007-08-15 航天信息股份有限公司 Multi-media tax-controlled cash register
CN101101690A (en) * 2007-07-31 2008-01-09 航天信息股份有限公司 Built-in type tax control machine
CN101127142A (en) * 2007-09-27 2008-02-20 航天信息股份有限公司 False proof invoice-making machine for tax control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7014110B2 (en) * 2002-06-10 2006-03-21 Seiko Epson Corporation POS system, network system, method of generating printing data for POS system, and method of managing sales and advertisement information in network system
CN101017589A (en) * 2006-02-08 2007-08-15 航天信息股份有限公司 Multi-media tax-controlled cash register
CN101101690A (en) * 2007-07-31 2008-01-09 航天信息股份有限公司 Built-in type tax control machine
CN101127142A (en) * 2007-09-27 2008-02-20 航天信息股份有限公司 False proof invoice-making machine for tax control

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特表2005-534085A 2005.11.10

Also Published As

Publication number Publication date
CN102074082A (en) 2011-05-25

Similar Documents

Publication Publication Date Title
CN102074082B (en) Network tax controller and method for detecting plug and pull of same
CN106708707A (en) Server monitoring system based on server framework
CN204788542U (en) Mode switch's that supply power direct -reading thing networking gas table more
CN205050134U (en) Portable power source TYPE -C interface management circuit
CN105739657A (en) Circuit structure applied to embedded system
CN104899177B (en) A kind of I2C apparatus control methods and system
CN101651794A (en) Method for coping television memory data and intelligent copier
CN206146465U (en) Box transformer monitoring device
CN203433025U (en) Intelligent monitor for electricity larceny prevention
CN105717833B (en) Intelligent environment protection number adopts instrument mainboard and working method
CN213400574U (en) Device for performing abnormal power failure test on memory
CN111726563A (en) Video storage device for train video monitoring system
RU152096U1 (en) REMOTE DIGITAL ELECTRIC ENERGY METER
CN105975382B (en) A kind of alarm method that hardware configuration changes
CN201425723Y (en) Switch of dual hard disk power lines
CN205787003U (en) A kind of PCB intelligent detection device
CN106502911A (en) Multiple terminals access device
CN201130372Y (en) Hard disk external circuit as well as hard disk apparatus using the same
CN1991690A (en) USB external master-salve interface module
CN206481091U (en) Charging pile smart charge control system
CN104268109A (en) Data interface communication method and device
CN207542875U (en) It is a kind of based on it is modular integrate power information acquisition and load management terminal device
CN202058180U (en) Intelligent power distribution monitoring device with SD card
CN201522759U (en) Network fiscal processor
CN110456206A (en) A kind of family becomes the judgment method of relationship and judges system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant