A method and system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group

Automatically change the access target address through Hook technology, solving the problem of not being able to conveniently access multiple tax control devices in the existing technology, realizing the function of accessing multiple tax control devices in one computer at the same time, and improving invoice issuance efficiency.

CN112732421BActive Publication Date: 2024-11-01AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011578311.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-11-01
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

The prior art cannot conveniently access multiple tax control devices on a computer at the same time, and it is necessary to enable multiple software to access hardware products one by one in different processes.

Method used

Using Hook technology to automatically change the access target address during the software operation, monitor the background process information of the tax control management software in real time, and update the Createfile function using the preset hardware path sequence list to open the hardware path address to achieve multiple tax controls. Simultaneous access of the device.

Benefits of technology

It realizes access to multiple tax control devices through invoice management software in one computer, and improves the invoice efficiency of tax control device custody disk groups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112732421B_ABST
    Figure CN112732421B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for simultaneously accessing multiple tax control devices on a tax control device managed disk group, the method comprising: real-time monitoring of background process information of tax control management software; when monitoring that the tax control management software calls the Createfile function, starting the Hook function; through the Hook function, updating the path address of the hardware to be opened by the Createfile function according to a preset hardware path sequence list; through the Createfile function, opening the corresponding tax control device according to the updated address; the method and system automatically change the access target address during the software operation process by using the Hook technology to achieve the purpose of simultaneously accessing multiple tax control devices; the method and system realize access to multiple designated devices in one computer through the invoice management software process based on the tax control device managed disk group, thereby realizing the concurrent invoicing function of the tax control device managed disk group, and improving the invoicing efficiency of the tax control device managed disk group.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of tax control technology, and more specifically, to a method and system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group. Background Art

[0002] With the development of social economy, the business forms of enterprises are becoming more and more diversified, and enterprises have a clear demand for controlling and managing multiple tax control devices at the same time. The use of a tax control device hosting disk group can solve this problem very well. It can host hardware products of multiple tax control devices at the same time. For example, it can be composed of a Windows industrial computer and a USB HUB device, which can realize the hosting of the Golden Tax Disk, Golden Tax Disk-M and Tax UKey, and realize access to tax control devices through software. Given the design of the Windows system, after the device is started, all connected tax control devices are powered on at the same time. Access to the tax control device is completed through the corresponding invoicing software, but the invoicing software can only recognize one hardware product (tax control device) on a computer. This requires opening multiple software at the same time to access different hardware products in different processes in order to control multiple hardware products. Summary of the invention

[0003] In order to solve the problem that the current tax control devices need to be accessed one by one in the background technology, and even if a tax control device hosting disk group is used, multiple software needs to be opened to access different products in different processes, and convenient access to multiple tax control devices cannot be achieved, the present invention discloses a method and system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group; the method and system automatically change the access target address during the software running process by using Hook technology to achieve the purpose of simultaneously accessing multiple tax control devices; the method for simultaneously accessing multiple tax control devices on a tax control device hosting disk group includes:

[0004] Real-time monitoring of the background process information of the tax control management software;

[0005] When the tax control management software is monitored to call the Createfile function, the Hook function is started;

[0006] Through the Hook function, the path address of the hardware to be opened by the Createfile function is updated according to the preset hardware path sequence list;

[0007] Through the Createfile function, the corresponding tax control device is opened according to the updated address.

[0008] Furthermore, before real-time monitoring of the background process information of the tax control management software, the method includes:

[0009] Connect one or more tax control devices through the tax control device hosting disk group;

[0010] The access path address corresponding to the one or more tax control devices is set in the tax control management software.

[0011] Furthermore, after opening the corresponding tax control device according to the updated address, the method further includes:

[0012] Continue to monitor the background process information of the tax control management software, and when the Createfile function is called again, start the Hook function again to update the path address of the hardware to be opened by the Createfile function, so as to open the tax control device corresponding to the new path address.

[0013] Furthermore, the hardware path sequence list is generated in advance according to the sequence of the tax control devices to be accessed and controlled;

[0014] After updating the path address according to the hardware path sequence list, marking the currently updated path address in the hardware path sequence list;

[0015] When the hardware path update list is accessed again, the next path address with the mark is selected to update the path address of the hardware to be opened by the Createfile function.

[0016] Further, when the marked path address information is the last column of the hardware path sequence list, the path address selected by accessing the hardware path update list again is the first column of the hardware path sequence list.

[0017] The system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group includes:

[0018] A real-time monitoring unit, which is used to monitor the background process information of the tax control management software in real time;

[0019] A Hook unit, wherein the Hook unit is used to start the Hook function when monitoring that the tax control management software calls the Createfile function;

[0020] The Hook unit is used to update the path address of the hardware to be opened by the Createfile function according to a preset hardware path sequence list through the Hook function; and then open the corresponding tax control device according to the updated address through the Createfile function.

[0021] Furthermore, the system also includes a tax control equipment trusteeship disk group and an initialization unit;

[0022] The tax control device hosting disk group is used to connect one or more tax control devices to a Windows industrial computer including the tax control management software, the Hook unit and the real-time monitoring unit;

[0023] The initialization unit is used to set the access path address corresponding to the one or more tax control devices in the tax control management software.

[0024] Further, the system also includes a hardware path sequence list setting unit;

[0025] The hardware path sequence list setting unit is used to arrange and generate the hardware path sequence list according to the sequence of the fiscal control devices to be accessed and controlled;

[0026] The hardware path sequence list setting unit is used to mark the currently updated path address in the hardware path sequence list after updating the path address according to the hardware path sequence list;

[0027] When the Hook unit accesses the hardware path update list, it selects the next path address with the mark to update the path address of the hardware to be opened by the Createfile function.

[0028] Further, when the marked path address information is the last column of the hardware path sequence list, the path address selected by accessing the hardware path update list again is the first column of the hardware path sequence list.

[0029] Furthermore, the tax control management software is 51 Invoice Assistant; the tax control equipment trusteeship disk group is the tax control equipment trusteeship disk group U180.

[0030] The beneficial effects of the present invention are as follows: the technical solution of the present invention provides a method and system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group, and the method and system automatically change the access target address during the software operation by using Hook technology to achieve the purpose of simultaneously accessing multiple tax control devices; the method and system realize access to multiple designated devices in a computer through the invoice management software process based on the tax control device hosting disk group, thereby realizing the concurrent invoicing function of the tax control device hosting disk group, and improving the invoicing efficiency of the tax control device hosting disk group. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:

[0032] Figure 1 It is a flowchart of a method for simultaneously accessing multiple tax control devices on a tax control device hosting disk group according to a specific embodiment of the present invention;

[0033] Figure 2 This is a structural diagram of a system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group according to a specific implementation method of the present invention. DETAILED DESCRIPTION

[0034] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.

[0035] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.

[0036] Figure 1 A flowchart of a method for simultaneously accessing multiple tax control devices on a tax control device hosting disk group according to a specific embodiment of the present invention; Figure 1 As shown, the method includes:

[0037] Step 110, real-time monitoring of the background process information of the tax control management software;

[0038] The method described in this embodiment requires the configuration of hardware devices before real-time monitoring of the background process information of the tax control management software. The tax control management software described in this embodiment is installed on a Windows industrial computer, and the Windows industrial computer is connected to one or more tax control devices through a tax control device hosting disk group; after starting the tax control management software, the access path address corresponding to the one or more tax control devices is set in the tax control management software.

[0039] Furthermore, the tax control equipment trusteeship disk group is the tax control equipment trusteeship disk group U180; and the tax control management software is 51 Invoice Assistant.

[0040] Furthermore, in order to be able to modify the content of the Createfile function called by the tax control management software, so as to achieve the purpose of controlling the tax control management software to access the tax control equipment in sequence according to the predetermined hardware path, the background data and process information of the tax control management software are monitored in real time to determine whether the Createfile function or other functions used to open I / O devices are called.

[0041] Furthermore, the method may correspond to multiple tax control devices. For multiple tax control devices, the tax control management software manages each tax control device, and the path update needs to be implemented multiple times. After completing the update of the hardware path address once and implementing the call to the target tax control device, the background process information of the tax control management software continues to be monitored. When the Createfile function is called again, the Hook function is started again to update the path address of the hardware to be opened by the Createfile function, so as to open the tax control device corresponding to the new path address.

[0042] Step 120, when the tax control management software is monitored to call the Createfile function, the Hook function is started;

[0043] Hook function, also known as hook function, is part of Windows message processing mechanism. By setting "hooks", applications can filter all messages and events at the system level and access messages that cannot be accessed under normal circumstances. The essence of a hook is a program for processing system messages, which is hooked into the system through system calls. The hook function can always intercept the message originally sent to the destination first, thereby gaining control first, and then the message (i.e. the path address) can be modified through the hook function.

[0044] Step 130, updating the path address of the hardware to be opened by the Createfile function according to a preset hardware path sequence list through the Hook function;

[0045] When it is monitored that the Createfile function or other functions for opening the I / O device are called, the Hook function is immediately started, and the hardware path address originally intended to be opened by the Createfile function or other functions for opening the I / O device is replaced by the Hook function;

[0046] The method of replacing the hardware path address is mainly to determine the new path address that needs to be replaced according to a preset hardware path sequence list, and then replace the original path address.

[0047] Specifically, the hardware path sequence list is generated in advance according to the sequence of the tax control devices to be accessed and controlled;

[0048] After updating the path address according to the hardware path sequence list, marking the currently updated path address in the hardware path sequence list;

[0049] When the hardware path update list is accessed again, the next path address with the mark is selected to update the path address of the hardware to be opened by the Createfile function.

[0050] Further, when the marked path address information is the last column of the hardware path sequence list, the path address selected by accessing the hardware path update list again is the first column of the hardware path sequence list.

[0051] In this way, the hardware path sequence list can be used cyclically.

[0052] Step 140, through the Createfile function, the corresponding tax control device is opened according to the updated address. The tax control device access is completed once, and after the access is completed, the access to the next hardware device in the hardware path sequence list is realized through the above steps.

[0053] Figure 2 This is a structural diagram of a system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group according to a specific embodiment of the present invention. Figure 2 As shown, the system comprises:

[0054] Hook unit 210, the Hook unit 210 is used to start the Hook function when monitoring the tax control management software calling the Createfile function;

[0055] A real-time monitoring unit 220, which is used to monitor the background process information of the tax control management software in real time;

[0056] The Hook unit 210 is used to update the path address of the hardware to be opened by the Createfile function according to a preset hardware path sequence list through the Hook function; and then open the corresponding tax control device according to the updated address through the Createfile function.

[0057] Furthermore, the system also includes a tax control equipment trusteeship disk group and an initialization unit;

[0058] The tax control device hosting disk group is used to connect one or more tax control devices to a Windows industrial computer including the tax control management software, the Hook unit 210 and the real-time monitoring unit 220;

[0059] The initialization unit is used to set the access path address corresponding to the one or more tax control devices in the tax control management software.

[0060] Further, the system also includes a hardware path sequence list setting unit;

[0061] The hardware path sequence list setting unit is used to arrange and generate the hardware path sequence list according to the sequence of the fiscal control devices to be accessed and controlled;

[0062] The hardware path sequence list setting unit is used to mark the currently updated path address in the hardware path sequence list after updating the path address according to the hardware path sequence list;

[0063] When the Hook unit 210 accesses the hardware path update list, it selects the next path address with the mark to update the path address of the hardware to be opened by the Createfile function.

[0064] Further, when the marked path address information is the last column of the hardware path sequence list, the path address selected by accessing the hardware path update list again is the first column of the hardware path sequence list.

[0065] Furthermore, the tax control management software is 51 Invoice Assistant; the tax control equipment trusteeship disk group is the tax control equipment trusteeship disk group U180.

[0066] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0067] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) can be replaced by an alternative feature that provides the same, equivalent or similar purpose. The step numbers involved in this specification are only used to distinguish the steps, and are not used to limit the time or logical relationship between the steps. Unless there is a clear definition in the text, the relationship between the steps includes various possible situations.

[0068] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present disclosure and form different embodiments. For example, any one of the embodiments claimed in the claims can be used in any combination.

[0069] The various component embodiments of the present disclosure can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. The present disclosure can also be implemented as a device or system program (e.g., computer program and computer program product) for performing a part or all of the methods described herein. Such a program implementing the present disclosure can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0070] It should be noted that the above embodiments illustrate rather than limit the present disclosure, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present disclosure may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of systems, several of these systems may be embodied by the same item of hardware.

[0071] The above description is only a specific implementation mode of the present disclosure. It should be pointed out that, for ordinary technicians in this field, several improvements, modifications, and deformations can be made without departing from the spirit of the present disclosure. These improvements, modifications, and deformations should be deemed to fall within the scope of protection of this application.

Claims

1. A method for simultaneously accessing multiple tax control devices on a tax control device hosting disk group, It is characterized in that The method comprises: Real-time monitoring of the background process information of the tax control management software; When the tax control management software is monitored to call the Createfile function, the Hook function is started; Through the Hook function, the path address of the hardware to be opened by the Createfile function is updated according to the preset hardware path sequence list; Through the Createfile function, the corresponding tax control device is opened according to the updated address; The hardware path sequence list is generated in advance according to the sequence of the fiscal control devices to be accessed and controlled; After updating the path address according to the hardware path sequence list, marking the currently updated path address in the hardware path sequence list; When accessing the hardware path update list again, selecting the next path address with the mark to update the path address of the hardware to be opened by the Createfile function; When the marked path address information is the last column of the hardware path sequence list, the path address selected by accessing the hardware path update list again is the first column of the hardware path sequence list.

2. The method according to claim 1, It is characterized in that Before real-time monitoring of the background process information of the tax control management software, the method includes: Connect one or more tax control devices through the tax control device hosting disk group; The access path address corresponding to the one or more tax control devices is set in the tax control management software.

3. The method according to claim 1, It is characterized in that After opening the corresponding tax control device according to the updated address, the method further includes: Continue to monitor the background process information of the tax control management software, and when the Createfile function is called again, start the Hook function again to update the path address of the hardware to be opened by the Createfile function, so as to open the tax control device corresponding to the new path address.

4. A system for simultaneously accessing multiple tax control devices on a tax control device hosting disk group, It is characterized in that The system comprises: A real-time monitoring unit, which is used to monitor the background process information of the tax control management software in real time; A Hook unit, wherein the Hook unit is used to start the Hook function when monitoring that the tax control management software calls the Createfile function; The Hook unit is used to update the path address of the hardware to be opened by the Createfile function according to the preset hardware path sequence list through the Hook function; and then open the corresponding tax control device according to the updated address through the Createfile function; A hardware path sequence list setting unit; the hardware path sequence list setting unit is used to arrange and generate the hardware path sequence list according to the order of the tax control devices to be accessed and controlled; the hardware path sequence list setting unit is used to mark the currently updated path address in the hardware path sequence list after updating the path address according to the hardware path sequence list; when the Hook unit accesses the hardware path update list, it selects the next path address with the mark to update the path address of the hardware to be opened by the Createfile function; when the marked path address information is the last column of the hardware path sequence list, the path address selected by accessing the hardware path update list again is the first column of the hardware path sequence list.

5. The system according to claim 4, It is characterized in that The system also includes a tax control equipment trusteeship disk group and an initialization unit; The tax control device hosting disk group is used to connect one or more tax control devices to a Windows industrial computer including the tax control management software, the Hook unit and the real-time monitoring unit; The initialization unit is used to set the access path address corresponding to the one or more tax control devices in the tax control management software.

6. The system according to claim 4, Features: The tax control management software is 51 Invoice Assistant; the tax control equipment trusteeship disk group is the tax control equipment trusteeship disk group U180.