CN103544787B - tax disc - Google Patents
tax disc Download PDFInfo
- Publication number
- CN103544787B CN103544787B CN201210240597.8A CN201210240597A CN103544787B CN 103544787 B CN103544787 B CN 103544787B CN 201210240597 A CN201210240597 A CN 201210240597A CN 103544787 B CN103544787 B CN 103544787B
- Authority
- CN
- China
- Prior art keywords
- chip
- data
- instruction
- main control
- tax
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a tax disc which comprises a storage chip, a USB (universal serial bus) interface circuit, a main control chip and a security chip. The USB interface circuit is used for communicating with an upper computer, the main control chip interacts with the upper computer of a user side through the USB interface circuit and is used for receiving invoice data and instructions transmitted by the upper computer and storing the invoice data in the storage chip, the main control chip is further used for transmitting instructions of reading-writing management data transmitted by the upper computer to the security chip through a transparent channel, and the security chip is used for analyzing and verifying the instructions transmitted by the main control chip, reading and writing the data according to the instructions if instruction verification is successful, and returning operation results to the upper computer through the transparent channel of the main control chip.
Description
Technical field
The present invention relates to information security field, more particularly to a kind of tax disc.
Background technology
The new round taxation reform started from the beginning of this century achieves good achievement, and tax revenue persistently increases substantially, and promotes
The development of Chinese national economy.But some problems to be solved are still faced with Taxation Work:Various forms of tax dodgings, deceive
Tax, evade taxation, owe taxes, the phenomenon such as unauthorized tax reduction is also than more serious;There are leak, tax jurisdiction means in revenue department's internal control
Also relatively backward, tax revenue external environment condition is to be improved.With further going deep into for the national taxation reform, need with tax control function
Electronic equipment come ensure management data properly generate, reliable storage and safe transmission, meet management and the data of the tax authority
Verification request.
At present, fiscal processor system typically adds the solution with card-reading function tax-control cash register using fiscal IC card, enterprise
Fiscal IC card is inserted in tax-control cash register and is issued invoice by industry end, and information of making out an invoice is delivered to tax end by fiscal IC card.The tax
Prosecutor case has several weak points:
The price of fiscal IC card and tax-control cash register is all somewhat expensive, relatively costly;
Enterprise, the enterprise of multiple line operation business of the common management of state tax authority and local tax office, all needs
Multiple fiscal IC cards are wanted, business burden is heavier;
Fiscal IC card uses 7816 communications protocol, and message transmission rate is slower;
The piece memory space very little of fiscal IC card, can only store Day Trading detailed, it is impossible to which it is bright that satisfaction stores individual invoice
Thin demand.
The content of the invention
The technical problem to be solved in the present invention is not enough for more than, it is proposed that a kind of safely to report invoice data
Tax disc.
In order to solve the above problems, the invention provides a kind of tax disc, including:Storage chip;
Usb circuit, for being communicated between host computer;
Main control chip, is interacted by the usb circuit with the host computer of user side, for receiving host computer transmission
Invoice data and instruction, the invoice data is stored in the storage chip;
Safety chip;
The main control chip is additionally operable to the instruction of the read-write management data for sending host computer and is imparted to by transparent channel
The safety chip;
The safety chip is parsed and verified for the instruction incoming to the main control chip, if command verification success
Operation is written and read to data according to the instruction, and is returned to operating result by the transparent channel of main control chip upper
Machine.
Further, the main control chip is additionally operable to preserve external authentication key, and arranges in the storage chip
Password authentication and external authentication status word;The password authentication status word be make out an invoice personnel setting 8 characters, external authentication shape
State word is the random number that main control chip is produced;It is additionally operable to parse the instruction, the instruction after parsing is verified, command verification
It is successful then according to it is described instruction read invoice data from the storage chip, be sent to tax end;In instruction after parsing
When 8 characters of the password authentication status word of carrying and the storage chip memory storage are completely the same, it is believed that the instruction meets mouth
Make authentication state word;The random of the safety chip generation is encrypted when the ciphertext carried in instruction and with the external authentication key
When ciphertext obtained by number is completely the same, it is believed that the instruction meets external authentication status word;When password authentication state word and outside
Command verification success when authentication state word all meets.
Further, described tax disc also includes:
Real-time timepiece chip, for providing real-time clock signal;
For being dedicated for the battery that the real-time timepiece chip is powered;
The main control chip is additionally operable to the acquisition real-time clock signal from the real-time timepiece chip and is sent to tax end.
Further, the real-time timepiece chip is two line CMOS real-time timepiece chips.
Further, the storage chip includes each independent the first memory cell and the second memory cell, described the
One memory cell is used to preserve the managing bill data that the host computer sends, and second memory cell is used to preserve described sending out
Ticket data.
Further, the storage chip is non-volatile memory medium, and capacity is more than or equal to 64MB.
Further, the main control chip includes:
Application management module, for receiving instruction and the invoice data of host computer transmission, the invoice data is stored in
In the storage chip;Invoice data is read from the storage chip according to the instruction being proved to be successful and is sent to tax end;
Command analysis module, for parsing the instruction of host computer transmission, and verifies that instruction is tested to the instruction after parsing
Card is successfully sent to the application management module.
Further, the main control chip also includes:
Encrypting module, for synchronous with tax end clock, after 16 byte random number of host computer transmission is received, uses
16 byte random number dispersion obtains distributed key, encrypted using the distributed key clock information of current tax disc plaintext and
Check value, obtains clock ciphertext, returns to host computer.
Further, the main control chip also includes:
Data reception module, for when the invoice data is received, if first packet data, then by the number for wherein carrying
Remove according to integrity flag, the corresponding file of the invoice data is set up in the storage chip, by the invoice data for being received
The starting position of write this document;If intermediate data, then the relevant position in respective file is write;If last bag
Data, then write the end of respective file, arranges file integrality mark.
Further, the main control chip also includes:
Read module, for reading invoice data from the storage chip, in first reading the invoice data respective file
Data integrity indicator, if not reading the data integrity indicator, returns mark and reads the information of failure to the master
Control chip;Otherwise read the invoice data in file;
Sending module, for the invoice data for being read to be sent to into tax end.
The tax disc of the present invention has concentrated the corresponding function of fiscal IC card and tax-control cash register, using main control chip and safety
Certification between chip, and the checking that main control chip is instructed to host computer, it is ensured that the safety of invoice data;Communication modes can be adopted
With the fast and easy to use USB interface agreement of transmission speed;The new business demand detailed in order to meet every invoice of storage, can adopt
Use NANDFLASH mass-memory units.
Description of the drawings
Fig. 1 is the structural representation of the tax disc of embodiment one.
Specific embodiment
Technical scheme is described in detail below in conjunction with drawings and Examples.
If it should be noted that not conflicting, each feature in the embodiment of the present invention and embodiment can be tied mutually
Close, within protection scope of the present invention.
Embodiment one, a kind of tax disc, as shown in figure 1, including:Storage chip, safety chip;
Usb circuit, for being communicated and the host computer of user side between;
Main control chip, is interacted by the usb circuit with the host computer of user side;For receiving host computer transmission
Invoice data and instruction, the invoice data is stored in the storage chip;
Safety chip;The main control chip is additionally operable to the instruction of the read-write management data for sending host computer by transparent logical
Road is imparted to the safety chip;
The safety chip is parsed and verified for the instruction incoming to the main control chip, if command verification success
Operation is written and read to data according to the instruction, and is returned to operating result by the transparent channel of main control chip upper
Machine.
In the present embodiment, the main control chip can be also used for preserving external authentication key, and in the storage chip
Middle setting password authentication and external authentication status word, the password authentication status word is 8 characters that the personnel that make out an invoice are arranged, and is used for
Identification identity, external authentication status word is the random number that main control chip is produced;;Can be also used for parsing the instruction, to parsing
Instruction afterwards is verified that command verification success then reads invoice data according to the instruction from the storage chip, passes through
The modes such as network, cable are sent to tax end;
Host computer can be carried out being calculated ciphertext and be carried and declare dutiable goods being sent to using external authentication key to the random number
In the instruction of disk, the data authentication function to equipment is completed, for the legitimacy of management software on tax disc certification host computer;
Password authentication status word and the storage chip memory storage that the main control chip is carried in instruction after parsing
8 characters it is completely the same when, it is believed that the instruction meets password authentication status word;When the ciphertext carried in instruction and with described outer
When ciphertext obtained by the random number that portion's certification key encryption safety chip is produced is completely the same, it is believed that the instruction meets outer
Portion's authentication state word;The command verification success when password authentication state word and external authentication status word all meet.
In the present embodiment, the tax disc can also include:
Real-time timepiece chip, for providing real-time clock signal;
The main control chip is additionally operable to the acquisition real-time clock signal from the real-time timepiece chip and is sent to tax end.
In the present embodiment, the tax disc can also include:
For being dedicated for the battery that the real-time timepiece chip is powered.
In the present embodiment, the safety chip can be communicated by 7816 communication modes with the main control chip.
In the present embodiment, the storage chip can be non-volatile memory medium, and capacity is more than or equal to 64MB.
In the present embodiment, the real-time timepiece chip can be, but not limited to as two line CMOS (Complementary Metal
Oxide Semiconductor, complementary metal oxide semiconductors (CMOS)) real-time timepiece chip.
In the present embodiment, the storage chip can be, but not limited to as NandFlash.
In the present embodiment, the usb circuit specifically can include:
Connector, circuit protection, communication channel and power circuit.
In the present embodiment, to secure data and general data separate storage, secure data is sent out by host computer to storage chip
The managing bill data sent, general data is the invoice data that host computer sends, including:Tax return data, the detail that issued invoice,
Tax reciept data, invoice neck purchase information, monitoring management data, register information and clock module configuration data.The storage chip tool
Body can include each independent the first memory cell and the second memory cell, and first memory cell is used to preserve described sending out
Ticket manages data, and second memory cell is used to preserve invoice data.
In the present embodiment, the main control chip specifically can include:
Application management module, for receiving instruction and the invoice data of host computer transmission, the invoice data is stored in
In the storage chip;Invoice data is read from the storage chip according to the instruction being proved to be successful and is sent to tax end;
Command analysis module, for parsing the instruction of host computer transmission, and verifies that instruction is tested to the instruction after parsing
Card is successfully sent to the application management module.
In the present embodiment, the main control chip can also include:
Encrypting module, for synchronous with tax end clock, after 16 byte random number of host computer transmission is received, uses
The 16 byte random number dispersion obtains distributed key, and plaintext and the school of the clock information of current tax disc are encrypted with the distributed key
Value is tested, clock ciphertext is obtained, host computer is returned to.
In the present embodiment, the main control chip can also include:
Data reception module, for when the invoice data is received, if first packet data, then by the number for wherein carrying
Remove according to integrity flag, the corresponding file of the invoice data is set up in the storage chip, by the invoice data for being received
The starting position of write this document;If intermediate data, then the relevant position in respective file is write;If last bag
Data, then write the end of respective file, arranges file integrality mark.
In the present embodiment, the main control chip can also include:
Read module, for reading invoice data from the storage chip, in first reading the invoice data respective file
Data integrity indicator, if not reading the data integrity indicator, returns mark and reads the information of failure to the master
Control chip;Otherwise read the invoice data in file;
Sending module, for the invoice data for being read to be sent to into tax end.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence
Know those skilled in the art and work as and various corresponding changes and deformation, but these corresponding changes and change can be made according to the present invention
Shape should all belong to the scope of the claims of the present invention.
Claims (9)
1. a kind of tax disc, including:Storage chip;
Usb circuit, for being communicated between host computer;
Main control chip, is interacted by the usb circuit with the host computer of user side, for receiving the invoice of host computer transmission
Data and instruction, the invoice data is stored in the storage chip;
Characterized in that, also including:
Safety chip;
The main control chip be additionally operable to the instruction of the read-write management data for sending host computer be imparted to by transparent channel it is described
Safety chip;
The safety chip is parsed and verified for the instruction incoming to the main control chip, the basis if command verification success
The instruction is written and read operation to data, and operating result is returned to into host computer by the transparent channel of main control chip;
The storage chip includes each independent the first memory cell and the second memory cell, and first memory cell is used for
The managing bill data that the host computer sends are preserved, second memory cell is used to preserve the invoice data.
2. the tax disc described in claim 1, it is characterised in that:
The main control chip is additionally operable to preserve external authentication key, and password authentication status word is arranged in the storage chip
With external authentication status word;The password authentication status word is 8 characters that the personnel that make out an invoice are arranged, and external authentication status word is main
The random number that control chip is produced;It is additionally operable to parse the instruction, the instruction after parsing is verified, the successful then root of command verification
Invoice data is read from the storage chip according to the instruction, tax end is sent to;The mouth carried in instruction after parsing
When making 8 characters of authentication state word and the storage chip memory storage completely the same, it is believed that the instruction meets password authentication shape
State word;Obtained by the random number that the safety chip is produced is encrypted when the ciphertext carried in instruction and with the external authentication key
Ciphertext it is completely the same when, it is believed that the instruction meets external authentication status word;When password authentication state word and external authentication state
Command verification success when word all meets.
3. tax disc as claimed in claim 1, it is characterised in that also include:
Real-time timepiece chip, for providing real-time clock signal;
For being dedicated for the battery that the real-time timepiece chip is powered;
The main control chip is additionally operable to the acquisition real-time clock signal from the real-time timepiece chip and is sent to tax end.
4. tax disc as claimed in claim 3, it is characterised in that:
The real-time timepiece chip is two line CMOS real-time timepiece chips.
5. tax disc as claimed in claim 1, it is characterised in that:
The storage chip is non-volatile memory medium, and capacity is more than or equal to 64MB.
6. the tax disc as any one of claim 1 to 5, it is characterised in that the main control chip includes:
Application management module, for receiving instruction and the invoice data of host computer transmission, the invoice data is stored in described
In storage chip;Invoice data is read from the storage chip according to the instruction being proved to be successful and is sent to tax end;
Command analysis module, for parsing the instruction of host computer transmission, and verifies to the instruction after parsing, command verification into
Work(is sent to the application management module.
7. tax disc as claimed in claim 6, it is characterised in that the main control chip also includes:
Encrypting module, for synchronous with tax end clock, after 16 byte random number of host computer transmission is received, using this 16
The dispersion of byte random number obtains distributed key, and plaintext and the verification of the clock information of current tax disc are encrypted using the distributed key
Value, obtains clock ciphertext, returns to host computer.
8. tax disc as claimed in claim 6, it is characterised in that the main control chip also includes:
Data reception module, it is if first packet data, then the data for wherein carrying are complete for when the invoice data is received
Whole property mark is removed, and the corresponding file of the invoice data is set up in the storage chip, by the invoice data for being received write
The starting position of this document;If intermediate data, then the relevant position in respective file is write;If last bag number
According to, then the end of respective file is write, file integrality mark is set.
9. tax disc as claimed in claim 8, it is characterised in that the main control chip also includes:
Read module, for reading invoice data from the storage chip, first reads data in the invoice data respective file
Integrity flag, if not reading the data integrity indicator, returns mark and reads the information of failure to the master control core
Piece;Otherwise read the invoice data in file;
Sending module, for the invoice data for being read to be sent to into tax end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210240597.8A CN103544787B (en) | 2012-07-11 | 2012-07-11 | tax disc |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210240597.8A CN103544787B (en) | 2012-07-11 | 2012-07-11 | tax disc |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103544787A CN103544787A (en) | 2014-01-29 |
CN103544787B true CN103544787B (en) | 2017-05-17 |
Family
ID=49968196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210240597.8A Active CN103544787B (en) | 2012-07-11 | 2012-07-11 | tax disc |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103544787B (en) |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100370786C (en) * | 2004-03-04 | 2008-02-20 | 华为技术有限公司 | A data processing chip and data packet number generating method thereof |
CN101272339A (en) * | 2008-05-15 | 2008-09-24 | 深圳华为通信技术有限公司 | Method, system, terminal and server for data frame receiving and dispatching |
CN101465028B (en) * | 2009-01-06 | 2012-01-18 | 潘铁军 | Tax control device and method for mobile tax control machine |
CN101777232B (en) * | 2009-09-23 | 2011-10-26 | 北京拓盛电子科技有限公司 | Electronic scale tax monitoring system and method |
CN201607794U (en) * | 2009-10-16 | 2010-10-13 | 河南许继信息有限公司 | Tax control tray |
CN102044115B (en) * | 2009-10-16 | 2012-08-22 | 河南许继信息有限公司 | Tax disk |
CN102087769A (en) * | 2009-12-03 | 2011-06-08 | 航天信息股份有限公司 | Invoice memory system and management method of tax control equipment |
CN101894398A (en) * | 2010-07-28 | 2010-11-24 | 浪潮齐鲁软件产业有限公司 | Method for automatically issuing invoices through connecting tax control machine by POS machine |
-
2012
- 2012-07-11 CN CN201210240597.8A patent/CN103544787B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103544787A (en) | 2014-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103544786B (en) | Tax control tray | |
EP2801061B1 (en) | Data protection with translation | |
CN101465019B (en) | Method and system for implementing network authentication | |
CN101093594B (en) | IC card, service data process system and method based on the IC card | |
CN105160242B (en) | Certificate loading method, certificate update method and the card reader of a kind of card reader | |
CN104217327A (en) | Financial IC (integrated circuit) card Internet terminal and trading method thereof | |
RU2014124198A (en) | SMART CARD READER WITH SAFE JOURNALING FUNCTION | |
CN105391696A (en) | Terminal registration method, terminal verification method, terminal registration system and terminal verification system | |
CN107294738A (en) | The treating method and apparatus of communication charge | |
CN102542695B (en) | A kind of tax control liquid crystal USB flash disk with authentication and fingerprint recognition | |
CN101162535B (en) | Method and system for realizing magnetic stripe card trading by IC card | |
CN101789152B (en) | Multipurpose contactless card supporting large amount payment and online recharge and application method thereof | |
CN206515828U (en) | The data storage device of safety encryption | |
CN103310278B (en) | Ticketing service application system based on the close algorithm of state, booking method and ticket management method | |
CN103544787B (en) | tax disc | |
CN103544790B (en) | The treatment process of a kind of invoice tax control data | |
CN201638250U (en) | SD interface smart card capable of realizing cell phone payment | |
CN207869159U (en) | Mobile device and subscriber identity module card | |
CN102609842A (en) | Payment cipher device based on hardware signature equipment, and application method of payment cipher device | |
CN203070422U (en) | Multipurpose integrated circuit (IC) card internet terminal | |
CN202838553U (en) | Electronic payment terminal | |
CN101833822B (en) | Security protection method for electric power prepaid system | |
CN203149732U (en) | Tax declaring disc | |
CN204066182U (en) | A kind of financial IC card internet terminal | |
CN203179180U (en) | Tax-controlled disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |