CN110706426A - Method and system for managing USB tax control disk - Google Patents

Method and system for managing USB tax control disk Download PDF

Info

Publication number
CN110706426A
CN110706426A CN201910951785.3A CN201910951785A CN110706426A CN 110706426 A CN110706426 A CN 110706426A CN 201910951785 A CN201910951785 A CN 201910951785A CN 110706426 A CN110706426 A CN 110706426A
Authority
CN
China
Prior art keywords
usb
tax control
control disk
client
fiscal
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
Application number
CN201910951785.3A
Other languages
Chinese (zh)
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.)
Wing Stone Electronic Ltd By Share Ltd
Original Assignee
Wing Stone Electronic Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wing Stone Electronic Ltd By Share Ltd filed Critical Wing Stone Electronic Ltd By Share Ltd
Priority to CN201910951785.3A priority Critical patent/CN110706426A/en
Publication of CN110706426A publication Critical patent/CN110706426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • G07G1/14Systems including one or more distant stations co-operating with a central processing unit

Abstract

The invention relates to a method and a system for managing a USB tax control disk, wherein the method comprises the following steps: providing a USB tax control disk management device, wherein the USB tax control disk management device is provided with a CPU, a plurality of USB interfaces, a WAN Ethernet interface and a LAN Ethernet interface, and the USB interfaces are used for plugging USB tax control disks; the CPU runs the linux system and regularly scans related instructions of udevadm info to obtain a current online USB tax control disc; the CPU mounts the current online tax control disk to a local server through a USB/IP protocol, and waits for a mapping instruction of a client; the client acquires the current online USB tax control disk information of the CPU through the Ethernet interface, namely, the client can project the corresponding USB tax control disk through the USB/IP protocol. The invention can simultaneously support the online and work of a plurality of USB tax-control disks, automatically identify the types of the USB tax-control disks, support local management and remote management, greatly improve the management efficiency of the USB tax-control disks and reduce the labor cost.

Description

Method and system for managing USB tax control disk
Technical Field
The invention relates to the field of USB tax control disks, in particular to a method and a system for managing a USB tax control disk.
Background
The existing tax control disk is generally directly inserted into a PC through a USB port of the tax control disk, or the USB port of a single tax control disk is converted into an Ethernet. Usually, only tax control disks produced by a single manufacturer can be used, and the online and work of simultaneously managing a plurality of USB tax control disks cannot be supported. Under some scenes that a plurality of USB tax control disks or various USB tax control disks need to be used, the mode that the existing tax control disks manage the USB tax control disks is very inconvenient, the USB tax control disks cannot be effectively appointed to work simultaneously or remotely mount various USB tax control disks to work simultaneously, and low efficiency is caused.
Disclosure of Invention
The present invention is directed to a method and system for managing a USB fiscal disk, so as to solve the above-mentioned problems. Therefore, the invention adopts the following specific technical scheme:
according to an aspect of the present invention, there is provided a method of managing a USB fiscal disk, the method comprising the steps of:
providing a USB tax control disk management device, wherein the USB tax control disk management device is provided with a CPU, a plurality of USB interfaces, a WAN Ethernet interface and a LAN Ethernet interface, and the USB interfaces are used for plugging USB tax control disks;
the CPU runs the linux system and regularly scans related instructions of udevadm info to obtain a current online USB tax control disc;
the CPU mounts the current online tax control disk to a local server through a USB/IP protocol, and waits for a mapping instruction of a client;
the client acquires the current online USB tax control disk information of the CPU through the Ethernet interface, namely, the client can project the corresponding USB tax control disk through the USB/IP protocol.
Further, the method also comprises a networking step, and the specific process is as follows: the method comprises the steps that one USB tax control disk management device is used as a main node, other USB tax control disk management devices are used as slave nodes, a LAN Ethernet interface of the main node is connected with a WAN Ethernet interface of one slave node, the LAN Ethernet interface of the slave node is connected with a WAN Ethernet interface of the next slave node, and the like, and all the slave nodes are connected.
Further, the method comprises the steps of: the master node starts a tcp server to monitor the connection of the slave nodes; the main node sequentially scans the connected slave nodes to acquire the current online USB tax control disk information of the corresponding node; the main node regularly updates the current online USB tax control disk information of all the nodes; and communication data and instructions between the USB tax control disk in the slave node and the client are forwarded through the master node.
Further, the method comprises the steps of: and (3) identifying the information of the inserted tax control disk through the protocol framework simulation package of the universal SCSI driver, wherein the acquired information comprises a serial number, a taxpayer identification number and a company name.
Further, the method comprises the steps of: and the CPU sends alarm information to the client when monitoring that the current USB tax control disk device is plugged.
Furthermore, the USB tax control disk management device is also provided with a 4G or 5G module, and the alarm information is sent to the client through the 4G or 5G module or an Ethernet interface.
Further, in the case that the client is a remote client, the method further includes the step of establishing a VPN connection between the client and the USB tax control disk management apparatus.
Further, the VPN connection is based on the N2N protocol.
Further, the USB/IP protocol is provided with a protocol header for preventing other clients from malfunctioning.
According to another aspect of the invention, a system for managing the USB tax control disk based on the method is provided, wherein the system comprises at least one USB tax control disk management device.
By adopting the technical scheme, the invention has the beneficial effects that: the invention can simultaneously support the online and work of a plurality of USB tax-control disks, automatically identify the types of the USB tax-control disks, support local management and remote management, greatly improve the management efficiency of the USB tax-control disks and reduce the labor cost.
Drawings
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures. Elements in the figures are not drawn to scale and like reference numerals are generally used to indicate like elements.
FIG. 1 is a flow chart of a method of managing a USB fiscal disk according to an embodiment of the present invention;
FIG. 2 is a frame diagram of a USB tax control disk management device according to an embodiment of the invention;
FIG. 3 is a schematic networking diagram of a USB tax control disk management device according to an embodiment of the present invention.
Detailed Description
The invention will now be further described with reference to the accompanying drawings and detailed description.
Fig. 1 illustrates a method of managing a USB fiscal disk according to an embodiment of the present invention. The method comprises the following steps:
100. a USB tax control disk management device is provided, as shown in fig. 2. The USB tax control disk management device can be provided with a CPU, a DDR, a FLASH, a power supply module, a HUB module, a plurality of USB interfaces, a WAN Ethernet interface, a LAN Ethernet interface and an optional 4G or 5G module. The USB interface is used for being plugged with a USB tax control disk, the WAN Ethernet interface is used for being connected to a public network, so that a remote client can access the USB tax control disk managed by the USB tax control disk management device, and the LAN Ethernet interface is used for being connected to a local server, so that a client in a local (local area network) can access the USB tax control disk managed by the USB tax control disk management device; the 4G or 5G module is used for carrying out communication connection with a remote client.
The USB tax control disk management devices can be connected through the Ethernet to perform networking expansion so as to manage more USB tax control disks. Specifically, one USB tax control disk management device is used as a master node, the other USB tax control disk management devices are used as slave nodes, the LAN ethernet interface of the master node is connected to the WAN ethernet interface of one slave node, the LAN ethernet interface of the slave node is connected to the WAN ethernet interface of the next slave node, and so on, and each slave node is connected, as shown in fig. 3. In this case, the master node performs the following process: starting a tcp server to monitor the connection of a slave node; sequentially scanning the connected slave nodes to acquire the current online USB tax control disk information of the corresponding node; updating the current online USB tax control disk information of all the nodes at regular time; the communication data and instructions between the USB tax control disk in the slave node and the client are forwarded through the master node: for example, when the slave node monitors that the current USB tax control disk device is plugged, the slave node actively pushes the alarm information to the master node through the Ethernet, and then the master node pushes the alarm information to a local area network client or a remote client through the Ethernet/4G network; the local area network client or the remote client controls the flow of the slave nodes, firstly, a control instruction is sent to the master node through the Ethernet/4G network, then the master node identification instruction is forwarded to the corresponding slave nodes, the slave nodes reply to the master node after receiving the master node instruction execution, and then the master node replies to the local area network client or the remote client through the Ethernet/4G network.
200. And the CPU runs the linux system and regularly scans related instructions of udevaadm info to obtain the current online USB tax control disk. Specifically, the CPU runs the linux system, and regularly scans the udevadm info related instruction to obtain the busid number of the current USB tax control disk device, so that the online condition of the USB tax control disk device at the corresponding position of the current device can be known. And simultaneously, simulating and transmitting a packet to identify the tax control disk and the information thereof through a protocol framework of the general SCSI driver, wherein the acquired information comprises a serial number, a taxpayer identification number, a company name and the like. In one embodiment, the present invention can identify credit and hundred-flourishing USB fiscal disks.
300. And the CPU mounts the current online tax control disk to the local server through a USB/IP protocol and waits for a mapping instruction of the client. The USB/IP protocol is provided with a protocol header for preventing other clients from misoperation. The code of the protocol header is: the USB/IP protocol source code/user space/configuration.h modification macro DEFINEs the VERSION number of the USBIP _ VERSION, and the source code/user space/configuration.ac modifies the VERSION number of the corresponding service end AC _ DEFINE ([ USBIP _ VERSION ], [ service end VERSION number value ], [ bound-encoded destination VERSION number ]).
400. The client acquires the current online USB tax control disk information of the CPU through the Ethernet interface, namely, the client can project the corresponding USB tax control disk through the USB/IP protocol. Specifically, the lan client may obtain the information of the USB fiscal disk device currently on-line by the CPU through the ethernet interface, that is, project the corresponding USB fiscal disk to the PC running the lan client through the USB/IP protocol. In the case that the client is a remote client, a VPN connection needs to be established between the client and the USB fiscal disk management device. Specifically, if the remote client wants to mount the USB device of the USB tax control disk management apparatus, the remote server needs to request the remote server to allow the USB tax control disk management apparatus to operate the open-source N2N client to join a specific remote PC group, and then the remote server sends an instruction to the corresponding USB tax control disk management apparatus, when the specified USB tax control disk management apparatus receives the instruction of the remote server, the local open-source N2N client is started to join a specific group parameter, so that network penetration between the remote client and the USB tax control disk management apparatus can be realized, and the remote client can obtain the current online USB tax control disk device information of the CPU through the ethernet interface, and project the corresponding USB tax control disk device to the PC operating the remote client through the USB/IP protocol.
Further, the method may further comprise the steps of: when monitoring that the current USB tax control disk device is plugged, the CPU sends alarm information to the client, and specifically, the alarm information is pushed to a local area network client or a remote server (or a remote client) through an Ethernet/4G or 5G network.
According to another aspect of the present invention, there is also provided a system for managing USB fiscal disks, which includes at least one USB fiscal disk management apparatus as described above and can manage USB fiscal disks based on the method as described above. Therefore, the invention can manage a plurality of USB tax-control disks simultaneously, thereby greatly improving the management efficiency of the USB tax-control disks and reducing the labor cost.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of managing USB fiscal disks, the method comprising the steps of:
providing a USB tax control disk management device, wherein the USB tax control disk management device is provided with a CPU, a plurality of USB interfaces, a WAN Ethernet interface and a LAN Ethernet interface, and the USB interfaces are used for plugging USB tax control disks;
the CPU runs the linux system and scans related instructions of udevadamfo in a timing mode to obtain a current online USB tax control disc;
the CPU mounts the current online tax control disk to a local server through a USB/IP protocol, and waits for a mapping instruction of a client;
the client acquires the current online USB tax control disk information of the CPU through the Ethernet interface, namely, the client can project the corresponding USB tax control disk through the USB/IP protocol.
2. The method for managing a USB fiscal disk according to claim 1, characterized in that it further comprises a networking step, which comprises the specific procedures: the method comprises the steps that one USB tax control disk management device is used as a main node, other USB tax control disk management devices are used as slave nodes, a LAN Ethernet interface of the main node is connected with a WAN Ethernet interface of one slave node, the LAN Ethernet interface of the slave node is connected with a WAN Ethernet interface of the next slave node, and the like, and all the slave nodes are connected.
3. The method for managing USB fiscal disks according to claim 2, wherein said method further comprises the steps of: the master node starts a tcp server to monitor the connection of the slave nodes; the main node sequentially scans the connected slave nodes to acquire the current online USB tax control disk information of the corresponding node; the main node regularly updates the current online USB tax control disk information of all the nodes; and communication data and instructions between the USB tax control disk in the slave node and the client are forwarded through the master node.
4. The method for managing USB fiscal disks according to claim 1, wherein said method further comprises the steps of: and simulating and sending a packet to identify the plugged tax control disk and the information thereof through a protocol framework of the universal SCSI driver, wherein the acquired information comprises a serial number, a taxpayer identification number and a company name.
5. The method for managing USB fiscal disks according to claim 1, wherein said method further comprises the steps of: and the CPU sends alarm information to the client when monitoring that the current USB tax control disk device is plugged.
6. The method for managing the USB tax control disk according to claim 5, wherein the USB tax control disk management device is further provided with a 4G or 5G module, and the alarm information is sent to the client through the 4G or 5G module or the Ethernet interface.
7. The method for managing a USB fiscal disk according to claim 1, wherein in case the client is a remote client, the method further comprises the step of establishing a VPN connection between the client and the USB fiscal disk management device.
8. The method for managing USB fiscal disks according to claim 7, wherein said VPN connection is based on the N2N protocol.
9. The method for managing a USB fiscal disk according to claim 1, wherein the USB/IP protocol is provided with a protocol header for preventing other clients from malfunctioning.
10. A system for managing USB fiscal disks according to the method of any of claims 1 to 9, characterized in that it comprises at least one USB fiscal disk management device.
CN201910951785.3A 2019-10-09 2019-10-09 Method and system for managing USB tax control disk Pending CN110706426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910951785.3A CN110706426A (en) 2019-10-09 2019-10-09 Method and system for managing USB tax control disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910951785.3A CN110706426A (en) 2019-10-09 2019-10-09 Method and system for managing USB tax control disk

Publications (1)

Publication Number Publication Date
CN110706426A true CN110706426A (en) 2020-01-17

Family

ID=69199187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910951785.3A Pending CN110706426A (en) 2019-10-09 2019-10-09 Method and system for managing USB tax control disk

Country Status (1)

Country Link
CN (1) CN110706426A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262276A (en) * 2020-05-06 2020-06-09 深圳市永联科技股份有限公司 Intelligent orderly charging system for alternating-current piles and method for realizing intelligent orderly charging system by using series networking
CN111930653A (en) * 2020-07-13 2020-11-13 四川钛阁科技有限责任公司 Remote distribution use method and device of USB (universal serial bus) equipment
CN112215668A (en) * 2020-08-31 2021-01-12 航天信息股份有限公司 Method and system for realizing automatic tax copying and reporting of remote escrow tax control equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571452A (en) * 2012-02-20 2012-07-11 华为技术有限公司 Multi-node management method and system
JP2013010259A (en) * 2011-06-29 2013-01-17 Seiko Epson Corp Receipt printer, receipt printer control method and recording medium
CN103428089A (en) * 2012-05-16 2013-12-04 深圳市金正方科技有限公司 Method and system for optimizing low-voltage power line carrier communication network
CN104282093B (en) * 2013-07-04 2017-02-15 航天信息股份有限公司 Tax-control equipment collective invoicing system and method
CN106993001A (en) * 2017-05-27 2017-07-28 山东腾蛟起风软件技术有限公司 A kind of USB tax controlling equipment controllers of IP based network
CN108170065A (en) * 2018-03-02 2018-06-15 翼石电子股份有限公司 Intelligent power supply system, method and the cloud of cloudy box of making out an invoice are made out an invoice intelligent cabinet

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013010259A (en) * 2011-06-29 2013-01-17 Seiko Epson Corp Receipt printer, receipt printer control method and recording medium
CN102571452A (en) * 2012-02-20 2012-07-11 华为技术有限公司 Multi-node management method and system
CN103428089A (en) * 2012-05-16 2013-12-04 深圳市金正方科技有限公司 Method and system for optimizing low-voltage power line carrier communication network
CN104282093B (en) * 2013-07-04 2017-02-15 航天信息股份有限公司 Tax-control equipment collective invoicing system and method
CN106993001A (en) * 2017-05-27 2017-07-28 山东腾蛟起风软件技术有限公司 A kind of USB tax controlling equipment controllers of IP based network
CN108170065A (en) * 2018-03-02 2018-06-15 翼石电子股份有限公司 Intelligent power supply system, method and the cloud of cloudy box of making out an invoice are made out an invoice intelligent cabinet

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
田艳: "《计算机网络技术》", 31 December 2005 *
陈君华: "《嵌入式物联网应用技术实践教程-基于6LoWPAN》", 31 August 2017 *
陈秋梅: "基于USIP_linux的银税一体化机的设计与实现", 《微计算机信息》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262276A (en) * 2020-05-06 2020-06-09 深圳市永联科技股份有限公司 Intelligent orderly charging system for alternating-current piles and method for realizing intelligent orderly charging system by using series networking
CN111262276B (en) * 2020-05-06 2020-10-09 深圳市永联科技股份有限公司 Intelligent orderly charging system for alternating-current piles and method for realizing intelligent orderly charging system by using series networking
CN111930653A (en) * 2020-07-13 2020-11-13 四川钛阁科技有限责任公司 Remote distribution use method and device of USB (universal serial bus) equipment
CN111930653B (en) * 2020-07-13 2022-06-24 四川钛阁科技有限责任公司 Remote distribution use method and device of USB (universal serial bus) equipment
CN112215668A (en) * 2020-08-31 2021-01-12 航天信息股份有限公司 Method and system for realizing automatic tax copying and reporting of remote escrow tax control equipment

Similar Documents

Publication Publication Date Title
CN110706426A (en) Method and system for managing USB tax control disk
KR100462606B1 (en) Gateway and remote server for automatically configuring a device, and the method thereof
CN107682202B (en) Network equipment management method and device
CN108958742A (en) A kind of method of batch installing operating system, relevant device and system
CN102355479B (en) Method and equipment for forwarding traffic of multi-NAT (network address translation) gateway
CN110429708B (en) Method and system for realizing plug and play of power distribution equipment
CN105450455A (en) System and method for automatically upgrading network devices in batch in factory
JP2004005693A (en) Method and apparatus for correcting device remotely monitored by monitoring system
JP2018166323A (en) Network service configuration method and network management device
CN114980302B (en) Method and system for access and management of equipment reverse integration and computer equipment
US10206092B1 (en) Automatic discovery
WO2013185713A2 (en) Industrial control system and management device
CN103973474A (en) Network terminal update configuration method
CN111290351A (en) Driver management method, system, computer equipment and storage medium
CN110896363B (en) Plug-and-play access configuration method for IEC61850 intelligent device
JP2004005692A (en) Method and device for providing a plurality of vendor supports to device monitored remotely
CN111464646A (en) Information processing method, information processing apparatus, electronic device, and medium
CN115357308A (en) Docker-based edge Internet of things proxy device, system and application method
JP2006135645A (en) Unitary management system and method of a network connection means in network with different coexisting communication protocols
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN102685726B (en) Adaptive management entity, base station self-configuring method and base station self-configuring system
CN112291081B (en) Method, system and storage medium for auditing controller cluster data by cloud management platform
CN110069290A (en) A kind of control parameter configuration method, system and the associated component of more BMC
CN113259425A (en) 61850 standard-based data conversion method, transformer substation gateway and storage medium
CN112333026A (en) Network device, network management device and zero configuration opening system and method for network device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117

RJ01 Rejection of invention patent application after publication