CN102087769A - Invoice memory system and management method of tax control equipment - Google Patents
Invoice memory system and management method of tax control equipment Download PDFInfo
- Publication number
- CN102087769A CN102087769A CN2009102420497A CN200910242049A CN102087769A CN 102087769 A CN102087769 A CN 102087769A CN 2009102420497 A CN2009102420497 A CN 2009102420497A CN 200910242049 A CN200910242049 A CN 200910242049A CN 102087769 A CN102087769 A CN 102087769A
- Authority
- CN
- China
- Prior art keywords
- invoice
- database
- tax
- data
- communication interface
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses an invoice memory system of tax control equipment. The system comprises a communication interface, a central processing unit and a memory bank, wherein the central processing unit is connected with the memory bank and the communication interface respectively; the communication interface is communicated with the tax control equipment to transmit a tax control command and invoice data; the memory bank stores the invoice data in a database mode; the central processing unit runs a database system and an invoice memory management unit; and the invoice memory management unit controls the database system to access the invoice data in the memory bank according to the tax control command of the communication interface. In the invention, enterprises which make out a great number of invoices do not need to frequently copy taxes and declare dutiable goods by greatly improving the capacity, so that the continuity for billing of the enterprises is guaranteed; meanwhile, the performance of invoice query and statistical function are improved; and the running speed and quality of the system are enhanced on the basis of entirely improving the capacity of an anti-counterfeit tax control billing system.
Description
Technical field
The present invention relates to tax controlling equipment and tax revenue control method, particularly relate to the storage of invoice, particularly a kind of invoice storage means that high capacity storage and fast access can be provided.
Background technology
Single-chip microcomputer list storage chip is generally used in the storage of existing invoice, with the direct sequential storage information on storage chip of the mode of simple data structure.Such system architecture is simple, but inquiry and capacity all are bottlenecks, they have brought into play good effect under the little situation of the amount of making out an invoice, but in the moon amount of making out an invoice big business, such single chip architecture obviously can not satisfy enterprise's requirement, no matter from invoicing speed still month invoice the stored number level relatively, all have huge gap between the processing power of this mode and the actual request for utilization.Thereby make the problem of invoice storage and access speed become the obstacle that high-end tax controlling equipment performance further improves.
For storage means and the mode of improving invoice, more existing trials in the prior art, but ineffective especially.For example, application number is 200620167517.0, disclose a kind of separate type data storage tax-control cash register in the Chinese patent application of " separate type data storage tax-control cash register " by name, thereby invoice has been stored with independent device with tax-control data storage card.Described tax-control data storage card comprises storage chip, interface circuit and pcb board, and wherein, by the control of the CPU on the tax-control cash register mainboard, described storage chip and interface circuit are arranged on the pcb board described storage chip by interface circuit.Its actual purpose is to make when tax-control cash register goes wrong, and does not need directly to change mainboard or tax control machine, just can reuse and only need change this detachable tax control memory module.But because it does not improve the storage organization and the storage means of invoice, only be simply original integrated memory storage from physically being arranged to split, therefore can not fundamentally solve the problem of memory capacity and access speed.
Again for example, application number is 200610043910.3, the Chinese patent application of " a kind of storage means of indefinite-long tax-controlled electronic invoice " by name has been described a kind of invoice storage means of simple data structure, it opens up the space of storage fixed length and random length invoice in the tax-control cash register storer, employing is set up the mode of concordance list and is searched or store the detailed and electronics counterfoil of invoice, concordance list and electronics counterfoil are corresponded manner one by one, be that the electronics counterfoil comprises the concordance list most information, and concordance list is specified the memory location capacity of electronics counterfoil, according to concordance list, electronics counterfoil storage mode and data different are applied to different functional modules.This invention is improved to fixed length storage in the prior art storage of elongated invoice, direct addressing method when substituting the fixed length storage with the form inquiry by table index can improve the dirigibility of storage to a certain extent, can make limited space can store more invoice data comparatively speaking, but its processing power is still limited.
Summary of the invention
The objective of the invention is to solve the above-mentioned defective of prior art, and provide independently a kind of, can support the invoice memory storage and the storage means of high capacity storage, fast query and secure access.Particularly, the following aspects is arranged:
The first, the huge tax data of stored number needs a huge space, and owing to the singularity of tax data, this storage space need be stablized simultaneously, and safety has data check mechanism;
The second, because the tax data amount is huge, data information transmission speed also has higher requirement, under the prerequisite that guarantees high-speed transfer, improves the transfer efficiency of data as far as possible;
The 3rd, the inquiry problem of tax data, the huge invoice database of data query amount is the greatest problem that faces, and it is fast to inquire about invoice speed, the quantity that inevitable requirement invoice critical data is extracted is many, also will inevitably influence the speed of invoice storage, the balance that how therefrom to obtain a reasonably stability also is the problem that needs consideration.
For this reason, the present invention proposes a kind of invoice storage system of tax controlling equipment, comprise: communication interface, CPU (central processing unit) and memory bank, described CPU (central processing unit) is connected with communication interface with memory bank respectively, described communication interface and tax controlling equipment communicate, and carry out the transmission of tax control order and invoice data; Described memory bank is with the form storage invoice data of database; Described CPU (central processing unit) runtime database system and invoice memory management unit; Described invoice memory management unit conducts interviews to the invoice data in the memory bank according to the tax control order of the described communication interface system that controls database.
Wherein, described invoice memory management unit comprises: communication interface modules receives the tax control order from communication interface; The command analysis module is the Universal Database instruction with described tax control command analysis; Data processing module is delivered to Database Systems with database instruction, and the return results of accepting Database Systems.
Wherein, the invoice data of described memory bank is to store in the mode of bright close combination, and the invoice content is a ciphertext, and the invoice index entry is expressly, and described invoice index entry is to search the required information of invoice.
Wherein, described system also comprises a proprietary USB interface, and described proprietary USB interface has usb protocol and communicates, and has an authentication module, to carry out two-way or unidirectional authentication with tax controlling equipment.
Preferably, described CPU (central processing unit) is used the ARM9 chip, and described Database Systems are the database of SQL type, and described memory bank is a solid state hard disc.
According to a further aspect in the invention, also proposed a kind of invoice memory management method of tax controlling equipment, used and support the Database Systems of Universal Database statement that invoice data is stored; By the instruction of invoice memory management unit according to tax controlling equipment Database Systems are conducted interviews, access process may further comprise the steps: S1: memory management unit receives the tax control instruction and/or the data of tax controlling equipment; S2: the tax control instruction is resolved, it is converted into the Universal Database instruction; S3: Database Systems conduct interviews according to the invoice data of described Universal Database instruction to storage; S4: the visit result of S3 is returned to tax controlling equipment.
Wherein, the invoice data of described memory bank is to store in the mode of bright close combination, and wherein the invoice content is a ciphertext, and the invoice index entry is expressly, and described invoice index entry is to search the required information of invoice.
Wherein, comprise an authenticating step before the data transmission between invoice memory management unit and the tax controlling equipment, authentication is by then carrying out normal transmission, and authentification failure does not then return error message.
Existing anti-false tax-controlled system has normally moved for many years, and the aspect has brought huge variation for the national tax false proofly making out an invoice, enterprise declares dutiable goods etc.Simultaneously, the new demand of anti-false tax-controlled system is also continued to bring out, dilatory for what prevent to make out an invoice and declare dutiable goods such as the moon amount of making out an invoice big business, urgent need will be introduced the method for extensive storage of invoice and inquiry.Because data volume is huge, the data rate of the method also there is higher requirement.
The proposition of invoice memory storage of the present invention and method has changed present situation, at first, about 30 times of the original power system capacity of invoice memory space, has guaranteed the moon amount of making out an invoice of large enterprises; Secondly, in system memory size significantly promotes, the transmission speed of invoice and inquiry velocity also all have apparent raising.
The solution of the present invention impels the tax of copying that big-ticket amount enterprise needn't be frequent to declare dutiable goods by promoting significantly of capacity, has guaranteed the continuity that enterprise makes out an invoice; Promote the performance of invoice inquiry and statistical function simultaneously, promoted in integral body on the basis of tax-supervise system billing system capacity, strengthened the travelling speed and the quality of system.
Description of drawings
Fig. 1 is the modular structure synoptic diagram of invoice memory storage of the present invention;
Fig. 2 is the hierarchical structure synoptic diagram of invention invoice storage system;
Fig. 3 is the modular structure synoptic diagram of invoice memory management unit among the present invention;
Fig. 4 is the schematic flow sheet of invoice memory management method of the present invention.
Embodiment
Fig. 1 is the modular structure synoptic diagram of invoice memory storage of the present invention.Invoice memory storage of the present invention mainly comprises communication interface, CPU (central processing unit) and memory bank, and described CPU (central processing unit) is connected with communication interface with memory bank respectively, constitutes the hardware platform of this device.Move embedded OS on the CPU (central processing unit), service data library software and invoice storage management software on embedded OS.The hierarchical chart of invoice storage system of the present invention as shown in Figure 2.Runtime database manages invoice data on embedded OS, comes the intermediary as database and communication interface by the invoice memory management unit of special setting.Because database can be supported the good data inquiry, therefore, method of the present invention can realize the high speed inquiry to mass data.Be elaborated below in conjunction with the structure of specific embodiment to each several part.
According to one embodiment of present invention, CPU (central processing unit) described in the invoice memory storage is the ARM9 minimum system or quite reaches above performance processing unit; Described memory bank uses the high-speed high capacity memory bank, for example common hard disk, solid state hard disc or high speed USB flash disk or quite reach above rank memory bank; Described communication interface is for full speed USB2.0 or quite reach above performance communication interface.For the convenience of cost and programming, the operating system product of preferably increasing income, described database then will be supported general SQL statement or be equivalent to the access interface of SQL statement.
For example, a preferred embodiment of the present invention is achieved as follows: main ARM9 chip adopts technical grade EP9315, and embedded OS of operation is that the current LINUX version of increasing income commonly used gets final product on it.The medium database that moves on the operating system is selected SQLITE for use, because the SQLITE database has volume little, characteristics such as data conveniently moving and occupying system resources are few are particularly suitable for the application of embedded system.The memory bank of carry has been selected the storage chip of SSD (solid state hard disc) for use on operating system, and main storage medium is NANDFLASH, is characterized in that volume is little, and capacity is big, and access speed is fast, has satisfied the system requirements of this programme.The data storage of hard disk adopts the FAT32 form, to guarantee the automatic verification of storage data.
The invoice memory management unit is core of the present invention, and it accepts order and data from communication interface, calls database access statement according to order request and realizes operations such as the typing of invoice, deletion, inquiry.This invoice memory management unit comprises communication interface modules, command analysis module and data processing module.Wherein, communication interface modules is used for and the communicating by letter of billing machine, and control is carried out exchanges data by described communication interface and billing machine.The command analysis module becomes general SQL statement to the command analysis of billing machine.For example, the time period inquiry is carried out in the billing machine instruction, and then command analysis module tax control command analysis according to a preconcerted arrangement obtains crucial inquiry zero-time and concluding time, obtains the SQL query statement by integrating character string again.Data processing module then is with the SQL statement input database, and return results returns to invoice machinery with the result by communication interface modules more by the time.Again for example, when the next tax order of the USB of communication interface oral instructions is the operation of typing invoice, database receives the typing order after the command analysis module parses, at first database finds the time point of moon current time and next bar record of typing, then the tax control master chip transmits invoice information, and the ARM embedded database receives and the typing record.And when tax order during for the operation of inquiry invoice, the keyword search that database is then searched according to the querying command after resolving is as the solid state hard disc of memory bank, complete operation.
The invoice memory management method of a kind of tax controlling equipment of the present invention uses and supports the Database Systems of Universal Database statement that invoice data is stored; By of the instruction of invoice memory management unit Database Systems are conducted interviews according to tax controlling equipment.Its process comprises as shown in Figure 4:
Step S1, memory management unit receives the tax control instruction and/or the data of tax controlling equipment;
Step S2 resolves the tax control instruction, and it is converted into the Universal Database instruction;
Step S3, Database Systems conduct interviews according to the invoice data of described Universal Database instruction to storage;
Step S4 returns to tax controlling equipment with the visit result of S3.
Consider invoice integrality and maintain secrecy in the importance in tax control field, therefore, the present invention has carried out further improvement to existing invoice storage mode.
For conserve storage, more in order flexible storage to take the bigger invoice of storage space, the detailed variable-length of invoice of the present invention is to adapt to the different various invoices of length.The invoice storage format adopts the record of no regular length, and the length of record determines by the order that receives, the shortest can tens bytes, the longest capacity that reaches the G byte.
In terms of content, the present invention adopts storage mode bright, close combination.Invoice itself is the ciphertext storage, but can propose the partial key joint as search index, and such as invoice number, the invoice time etc., index stores is expressly, so that inquiry.Data that for example can an invoice are as clauses and subclauses of database, and all invoices separately month are formed a table, with convenient inquiry and typing.And program is regularly put the total data library file in order.The cipher mode of invoice then can be existing various encrypted form, repeats no more here.
And in transmission, consider the specific safety requirement of tax data, the present invention proposes a kind of USB transmission mode that has authentication function.Specific implementation is for coming the Universal USB transport module in the replacement operation system with the special-purpose USB module that has authentication function of the present invention.This proprietary USB module meets the USB2.0 agreement, and carries out the step of an authentication before data transmission earlier, according to the difference of application target, various authentication modes can be arranged.For example, if desire to make the invoice memory storage only to have the tax controlling equipment of appointment to read, authentication mode can be set is: send first authentication document by proprietary USB module to tax controlling equipment, after tax controlling equipment receives, according to this first authentication document, produce one second authentication document and passback to the USB module, the USB module compares the 3rd authentication document of this second authentication document and its storage inside, and the two unanimity is then carried out normal data transfer; Inconsistently then send miscue.Owing to added authentication function, thereby guaranteed data security, be compared to general USB module simultaneously, its specific aim is stronger, and flow process is also more simplified.
Certainly, other some form of authentications also can be used for proprietary USB module of the present invention, and applicant for example of the present invention all can be used for the present invention in several data authentication and the encrypting and authenticating mode that the present patent application was disclosed in disclosed other patent or the patented claim before day.
As long as memory bank is enough big, then by revising the part firmware program, the present invention can reach the function of general tax data massage storage.
The above description of this invention is illustrative, and nonrestrictive, and those skilled in the art is understood, and can carry out many modifications, variation or equivalence to it within spirit that claim limits and scope, but they will fall within the scope of protection of the present invention all.
Claims (8)
1. the invoice storage system of a tax controlling equipment comprises: communication interface, and CPU (central processing unit) and memory bank, described CPU (central processing unit) is connected with communication interface with memory bank respectively, it is characterized in that,
Described communication interface and tax controlling equipment communicate, and carry out the transmission of tax control order and invoice data;
Described memory bank is with the form storage invoice data of database;
Described CPU (central processing unit) runtime database system and invoice memory management unit; Described invoice memory management unit conducts interviews to the invoice data in the memory bank according to the tax control order of the described communication interface system that controls database.
2. system according to claim 1 is characterized in that, described invoice memory management unit comprises:
Communication interface modules receives the tax control order from communication interface;
The command analysis module is the Universal Database instruction with described tax control command analysis;
Data processing module is delivered to Database Systems with database instruction, and the return results of accepting Database Systems.
3. system according to claim 1 is characterized in that, the invoice data of described memory bank is to store in the mode of bright close combination, and wherein the invoice content is a ciphertext, and the invoice index entry is expressly, and described invoice index entry is to search the required information of invoice.
4. system according to claim 1 is characterized in that, described system also comprises a proprietary USB interface, and described proprietary USB interface has usb protocol and communicates, and has an authentication module, to carry out two-way or unidirectional authentication with tax controlling equipment.
5. system according to claim 1 is characterized in that, described CPU (central processing unit) is used the ARM9 chip, and described Database Systems are the database of SQL type, and described memory bank is a solid state hard disc.
6. the invoice memory management method of a tax controlling equipment is characterized in that,
Use and support the Database Systems of Universal Database statement that invoice data is stored; By the instruction of invoice memory management unit according to tax controlling equipment Database Systems are conducted interviews, access process may further comprise the steps:
S1: memory management unit receives the tax control instruction and/or the data of tax controlling equipment;
S2: the tax control instruction is resolved, it is converted into the Universal Database instruction;
S3: Database Systems conduct interviews according to the invoice data of described Universal Database instruction to storage;
S4: the visit result of S3 is returned to tax controlling equipment.
7. system according to claim 6 is characterized in that, the invoice data of described memory bank is to store in the mode of bright close combination, and wherein the invoice content is a ciphertext, and the invoice index entry is expressly, and described invoice index entry is to search the required information of invoice.
8. system according to claim 6 is characterized in that, wherein comprises an authenticating step before the data transmission between invoice memory management unit and the tax controlling equipment, and authentication is by then carrying out normal transmission, and authentification failure does not then return error message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102420497A CN102087769A (en) | 2009-12-03 | 2009-12-03 | Invoice memory system and management method of tax control equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102420497A CN102087769A (en) | 2009-12-03 | 2009-12-03 | Invoice memory system and management method of tax control equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102087769A true CN102087769A (en) | 2011-06-08 |
Family
ID=44099552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102420497A Pending CN102087769A (en) | 2009-12-03 | 2009-12-03 | Invoice memory system and management method of tax control equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102087769A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544787A (en) * | 2012-07-11 | 2014-01-29 | 北京旋极信息技术股份有限公司 | Tax disc |
CN104282098A (en) * | 2013-07-08 | 2015-01-14 | 航天信息股份有限公司 | Invoicing and tax copying process upgrading method of tax control device |
CN106934707A (en) * | 2015-12-30 | 2017-07-07 | 航天信息软件技术有限公司 | A kind of method of sales invoice account table statistics |
CN111353833A (en) * | 2018-12-21 | 2020-06-30 | 航天信息股份有限公司 | Method and equipment for generating report |
CN114049193A (en) * | 2022-01-14 | 2022-02-15 | 深圳高灯计算机科技有限公司 | Invoice authentication deduction method and system based on tax control cabinet |
CN116502270A (en) * | 2023-06-21 | 2023-07-28 | 中科迅联智慧网络科技(北京)有限公司 | Invoice data privacy method and system |
-
2009
- 2009-12-03 CN CN2009102420497A patent/CN102087769A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544787A (en) * | 2012-07-11 | 2014-01-29 | 北京旋极信息技术股份有限公司 | Tax disc |
CN104282098A (en) * | 2013-07-08 | 2015-01-14 | 航天信息股份有限公司 | Invoicing and tax copying process upgrading method of tax control device |
CN106934707A (en) * | 2015-12-30 | 2017-07-07 | 航天信息软件技术有限公司 | A kind of method of sales invoice account table statistics |
CN111353833A (en) * | 2018-12-21 | 2020-06-30 | 航天信息股份有限公司 | Method and equipment for generating report |
CN114049193A (en) * | 2022-01-14 | 2022-02-15 | 深圳高灯计算机科技有限公司 | Invoice authentication deduction method and system based on tax control cabinet |
CN116502270A (en) * | 2023-06-21 | 2023-07-28 | 中科迅联智慧网络科技(北京)有限公司 | Invoice data privacy method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102087769A (en) | Invoice memory system and management method of tax control equipment | |
CN103294710B (en) | A kind of data access method and device | |
CN101770515B (en) | Data block comparison based data updating method | |
CN101661494B (en) | Data interactive method for distributed middleware and database | |
CN101364217B (en) | Data maintenance method, equipment and system thereof in data-base | |
CN100456264C (en) | Magnetic disk space management and managing system | |
CN101399075A (en) | Electronic data flash memory card with flash memory bad block management | |
CN102436420A (en) | Low RAM space, high-throughput persistent key-value store using secondary memory | |
CN103488478A (en) | Device management framework based on android platform | |
CN102831071A (en) | Method and system for remapping memory address used in memory device | |
CN101344861B (en) | Smart card internal memory management method | |
CN101102577A (en) | Incremental synchronization method for data in tables of frontground and background database of wireless communication base station system | |
JP2019153260A (en) | Distributed ledger device and distributed ledger method for shared economic | |
CN102385628A (en) | Java data base connectivity (JDBC)-based data distributed processing method | |
CN100476726C (en) | Resource limited equipment and data accessing method | |
CN101630431A (en) | Method for processing multi-client centralized invoicing data and method for printing invoice | |
CN104156396A (en) | Method and system for improving database performance in big-data environment | |
CN109901909A (en) | Method and virtualization system for virtualization system | |
CN1753020A (en) | System for on internet electronic business integration and its method | |
CN102044115B (en) | Tax disk | |
WO2001042985A2 (en) | Sharing data between operating systems | |
CN1349638A (en) | Method for controlling commands in reveral application files and chip card for carrying out said method | |
CN1096643C (en) | Method for warming up spare process in a replicated real-time system, in particular in a telephone exchange | |
CN111294413A (en) | Method, device and readable medium for determining Internet Protocol (IP) address | |
CN105320676A (en) | Customer data query service method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110608 |