Support the network tax controller of USB communication
Technical field
The utility model belongs to the tax controlling equipment technical field, specifically, relates to a kind of USB communication modes that can adopt and realizes and the mutual network tax controller of POS machine data.
Background technology
USB is the abbreviation of English Universal Serial BUS, and Chinese implication is " USB (universal serial bus) ".It is not a kind of new bus standard, but has been widely used in the interfacing in PC field.USB will unite proposition in the end of the year 1994 by many companies such as Intel, Compaq, IBM, Microsoft, but up in the recent period, it is just used widely.After having delivered USB V0.7 version from November 11st, 1994, the USB version has experienced years of development, 2.0 versions have been developed into till now, becoming the standard extension interface in the present computer, also is the communication interface that the present overwhelming majority need carry out the electronic equipment preferred disposition of data interaction simultaneously.
Network tax controller is present emerging product, is a kind of specialized equipment that is used for monitoring POS system printed invoice information data.If network tax controller will write down the information of making out an invoice of POS machine, just need carry out data interaction with the POS machine.Therefore, how making network tax controller can be easily be connected communication with external unit such as POS machine is that the network tax controller designer needs emphasis to consider and one of the subject matter that solves.
The utility model content
The purpose of this utility model is to provide a kind of network tax controller that can support the USB communication, finishes data interaction task between network tax controller and the POS machine by adopting the USB communication modes, thereby has made things convenient for the be connected communication of network tax controller with the POS machine.
In order to solve the problems of the technologies described above, the utility model is achieved by the following technical solutions:
A kind of network tax controller of supporting the USB communication comprises main control unit and USB interface, and described USB interface connects the usb bus port of described main control unit by usb bus.
Further, comprise that in described main control unit one is integrated with the main control chip of CPU and USB controller, the usb bus port of described main control chip connects described USB interface by usb bus.
As another embodiment, also can adopt a main control chip and a USB controller to design described main control unit, described USB interface connects the usb bus port of described USB controller by usb bus, and then connects described main control chip by the USB controller.
Further again, in described network tax controller, include power circuit, the output low-voltage dc power supply connects the power end of described USB interface.
Wherein, described low-voltage dc power supply is+the 5V direct supply to connect the power end of described USB interface by the magnetic bead of series connection.
Further again, the earth terminal of described USB interface is by the magnetic bead ground connection of series connection.
Further, described USB interface is provided with one the tunnel or multichannel.
Compared with prior art, advantage of the present utility model and good effect are: network tax controller employing USB communication modes of the present utility model is realized the data interaction between network tax controller and the POS machine, and interface is easy to connect, and circuit design is simple, and hardware cost is low.
Description of drawings
Fig. 1 is the structural representation of a kind of embodiment of the network tax controller system circuit board that proposes of the utility model;
Fig. 2 is the circuit theory diagrams of a kind of embodiment of USB interface peripheral circuit among Fig. 1.
Embodiment
Below in conjunction with accompanying drawing embodiment of the present utility model is described in detail.
The network tax controller of present embodiment for convenience is connected communication with external unit such as POS machine, employing standard USB communication mode comes the data interaction between the realization equipment, as shown in Figure 1, by USB interface is set on network tax controller, and portion is provided with the main control unit that is connected with described USB interface within it, when network tax controller need write down data such as the information of making out an invoice in the POS machine, only need utilize the usb data line that network tax controller and POS machine are coupled together, can carry out the data communication between the equipment.
As a kind of embodiment wherein, described main control unit can adopt a main control chip and a USB design of Controller to realize.USB interface connects the usb bus end of USB controller by usb bus, utilize the USB controller that the differential signal of the usb protocol that receives is converted to the data layout that main control chip is supported, transfer to main control chip by corresponding signal lines (such as serial signal line or parallel signal line), realize the reception of main control chip data in the POS machine.The differential signal transmission that the data that main control chip sends to the POS machine are converted to usb protocol by the USB controller is to USB interface, and then sends the POS machine that is connected with described USB interface to by the usb data line, realizes the reception of POS machine to the main control chip data.
As another embodiment, described main control unit also can adopt a main control chip that is integrated with CPU and USB controller to design, and to simplify circuit structure, saves the PCB space.The usb bus port of described main control chip directly is connected with described USB interface by usb bus, can makes network tax controller and outside POS machine realize data interaction.
Be provided with power circuit in described network tax controller, the low-voltage dc power supply of the different amplitudes of output multichannel satisfies the power requirement of network tax controller built-in system circuit and USB interface.Wherein, by power circuit output+5V direct supply+5VDC after the magnetic bead FB18 of series connection carries out Filtering Processing, connect the power end (i.e. 1 pin) of USB interface CON12, as shown in Figure 2.The differential signal end of USB interface CON12 (i.e. 2,3 pin) connects main control unit by usb bus, and earth terminal (i.e. 4 pin) is by the magnetic bead FB11 ground connection of series connection.5,6 pin of USB interface CON12 connect the betal can of network tax controller.
Described USB interface can be provided with one the tunnel or multichannel, is connected communication with one or many POS machines simultaneously to make things convenient for network tax controller.
Certainly; the above only is a kind of preferred implementation of the present utility model; should be noted that; for those skilled in the art; under the prerequisite that does not break away from the utility model principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection domain of the present utility model.