USB terminal equipment

文档序号:1098500 发布日期:2020-09-25 浏览:8次 中文

阅读说明:本技术 一种usb终端设备 (USB terminal equipment ) 是由 刘凯 何俊 田富民 李茂昌 张博 于 2020-07-09 设计创作,主要内容包括:本发明提供一种USB终端设备。所述USB终端设备包括管理单元,所述管理单元获取当前连接到主机的USB终端设备上报的USB终端设备支持所有端点的配置信息,主机通过与设备相连的逻辑通道与设备进行通信,且管理单元上被配置为数字信号引脚输入信号是模拟信号时,在输出端输出第一控制信号,在检测到输入信号是数字信号时,在输出端输出第二控制信号,而所述管理单元利用串行接口引擎与所述算法运算单元进行数字信号连接,而所述算法运算单元通过总线接口连接有多组算法运算单元,且算法运算单元通用可编程接口完成与接口单元的无缝连。本发明提供的USB终端设备具有采用低功耗的国产芯片并实现了产品的全国产化的优点。(The invention provides a USB terminal device. The USB terminal equipment comprises a management unit, the management unit acquires configuration information of all endpoints supported by the USB terminal equipment reported by the USB terminal equipment which is connected to a host at present, the host is communicated with the equipment through a logic channel connected with the equipment, the management unit is configured to output a first control signal at an output end when a digital signal pin input signal is an analog signal, and output a second control signal at the output end when the input signal is detected to be a digital signal, the management unit is connected with an algorithm operation unit through a serial interface engine and digital signals, the algorithm operation unit is connected with a plurality of groups of algorithm operation units through a bus interface, and a universal programmable interface of the algorithm operation unit completes seamless connection with the interface unit. The USB terminal equipment provided by the invention has the advantages that a domestic chip with low power consumption is adopted, and the nationwide production of products is realized.)

1. A USB terminal device, comprising:

the management unit acquires configuration information of all the endpoints supported by the USB terminal equipment reported by the USB terminal equipment which is currently connected to the host, the host is communicated with the equipment through a logic channel connected with the equipment, and the management unit is configured to output a first control signal at an output end when a digital signal pin input signal is an analog signal, and output a second control signal at the output end when the input signal is detected to be a digital signal.

2. The USB terminal device of claim 1, wherein the management unit utilizes a serial interface engine to connect with the arithmetic operation unit through digital signals, the arithmetic operation unit is connected with a plurality of groups of arithmetic operation units through a bus interface, and a universal programmable interface of the arithmetic operation unit completes seamless connection with the interface unit.

3. The USB terminal according to claim 1, wherein the management unit uses a serial interface engine to perform digital signal connection of all endpoint configuration information with the random number generation unit and the storage unit.

4. The USB terminal device of claim 1, wherein the management unit utilizes a bi-directional two-wire synchronous serial bus to connect all digital signals of the endpoint configuration information to the RTC unit.

5. The USB terminal device according to claim 1, wherein the USB terminal device has a power source and a clock unit, and the power source and the clock unit confirm configuration information of end point with the host system to obtain configuration information of all end points supported by the USB terminal device.

6. The USB terminal device according to claim 5, wherein the management unit is installed with configuration information of each end point used by the USB terminal device and provides corresponding various operation interfaces, and the USB hardware driver layer is mainly a UDC, and the UDC driver is responsible for executing data sending, receiving and device configuration, and is composed of an end point 0 as a control end point, an end point 1 as a bulk-in end and an end point 2 as a bulk-out end point.

7. USB end device according to claim 6, characterized in that end 0 is mainly used in the UDC driver to decode GET _ DESCRIPTOR requests, since the USB Client works in the Mass Storage device mode, the system supports requests of GET Max LUN and Bulk-Only Mass Storage Reset with return value of GET Max LUN being O and Bulk-Only Mass Storage Reset without operation.

8. The USB terminal device according to claim 6, wherein the UDC hardware driver layer performs data transmission and reception and device configuration through inter-endpoint communication, and when data is transmitted, all endpoints share the same UDC interrupt, and these interrupt requests are generated by bit bits OR in the UDC status/interrupt register, and after the interrupt request program runs, it determines what interrupt is generated by reading the value of the UDC status interrupt register, and when the program ends, the register is cleared.

Technical Field

The invention relates to the technical field of electronics, in particular to a USB terminal device.

Background

USB is an abbreviation for Universal Serial Bus, English, and Chinese means "Universal Serial Bus". It is not a new bus standard, but a new interface technology applied in the PC field, which is a new PC serial communication protocol jointly established by companies such as Microsoft, Compaq, IBM, etc. in 1995. The interfaces of computer system to peripheral devices have not been unified standard in the past, such as PS/2 interface for keyboard, 25-pin parallel interface for printer, serial or PS/2 interface for mouse. With the technical update of peripheral equipment, the functions are more and more perfect, and the requirements on interfaces are higher and higher. USB unifies these various interfaces, using a 4-pin plug as the standard plug. With this standard plug, all peripherals can be connected in a daisy chain without loss of bandwidth. The USB protocol is widely supported by various PC manufacturers, chip manufacturers and PC peripheral manufacturers after being exported. The USB itself is also under constant development and sophistication.

At present, similar USB terminal equipment products basically adopt a FPGA chip of the Selingsi and an INTEL processing chip, and the continuity of the products cannot be guaranteed in the large environment of trade dispute, so that compared with similar products, on the premise of ensuring the original functions and efficiency, the USB terminal equipment is necessarily provided to reduce the power consumption.

Disclosure of Invention

In order to solve the above technical problem, the present invention provides a USB terminal device.

The USB terminal equipment provided by the invention comprises: the management unit acquires configuration information of all the end points supported by the USB terminal equipment reported by the USB terminal equipment which is currently connected to the host, and is configured to output a first control signal at the output end when a digital signal pin input signal is an analog signal, and output a second control signal at the output end when the input signal is detected to be a digital signal.

Preferably, the management unit is connected with the arithmetic operation unit through a serial interface engine in a digital signal mode, the arithmetic operation unit is connected with a plurality of groups of arithmetic operation units through bus interfaces, and the arithmetic operation unit is in seamless connection with the interface unit through a universal programmable interface.

Preferably, the management unit uses a serial interface engine to perform digital signal connection of all the endpoint configuration information with the random number generation unit and the storage unit.

Preferably, the management unit performs digital signal connection of all the endpoint configuration information with the RTC unit by using a bidirectional two-wire synchronous serial bus.

Preferably, the USB terminal device has a power supply and a clock unit, and the power supply and the clock unit confirm the configuration information of the endpoint with the host system to obtain the configuration information of all endpoints supported by the USB terminal device.

Preferably, the management unit is installed with configuration information of each endpoint used according to the USB terminal device and provides corresponding various operation interfaces, and the USB hardware driver layer is mainly the UDC, and the UDC driver is responsible for sending and receiving data and configuring the device, and is composed of endpoint 0 as a control endpoint, endpoint 1 as a bulk-in end and endpoint 2 as a bulk-out endpoint.

Preferably, end 0 is mainly used for decoding GET _ DESCRIPTOR request in UDC driver, since USB Client works in Mass Storage device mode, the system supports GET Max LUN and Bulk-OnlyMass Storage Reset request, and return value of GET Max LUN is 0, while Bulk-OnlyMass Storage Reset does not need to operate.

Preferably, the UDC hardware driver layer performs data transmission and reception and device configuration through inter-endpoint communication, and when data is transmitted, all endpoints share the same UDC interrupt, and these interrupt requests are generated by bit bits OR in the UDC status/interrupt register.

Compared with the related art, the USB terminal equipment provided by the invention has the following beneficial effects:

the invention provides a USB terminal device, which transmits a digital signal to a CPU through an external device at a USB end, encrypts the digital signal through an algorithm chip, uploads and compares the data through an interface unit, returns a comparison result to the CPU after decrypting the data by the algorithm chip, and grants a corresponding authority if the comparison is successful.

Drawings

Fig. 1 is a schematic structural diagram of a USB terminal device according to a preferred embodiment of the present invention;

Detailed Description

The invention is further described with reference to the following figures and embodiments.

Please refer to fig. 1, wherein fig. 1 is a schematic structural diagram of a USB terminal device according to a preferred embodiment of the present invention. The USB terminal device includes: and a management unit.

In a specific implementation process, as shown in fig. 1, the management unit obtains configuration information that the USB terminal device currently connected to the host supports all endpoints, the host communicates with the device through a logic channel connected to the device, and the management unit is configured to output a first control signal at an output end when a digital signal pin input signal is an analog signal, and output a second control signal at an output end when the input signal is detected to be a digital signal, the management unit is connected with the arithmetic operation unit through a serial interface engine and a digital signal, the arithmetic operation unit is connected with a plurality of sets of arithmetic operation units through a bus interface, a universal programmable interface of the arithmetic operation unit completes seamless connection with the interface unit, and the management unit performs digital signal connection of all endpoint configuration information with the random number generation unit and the storage unit through the serial interface engine, the management unit utilizes a bidirectional two-wire system synchronous serial bus to carry out digital signal connection of all endpoint configuration information with the RTC unit.

Wherein, the USB terminal device has a power supply and a clock unit, and the power supply and the clock unit confirm the configuration information of the end point with the host system, to obtain the configuration information of all the end points supported by the USB terminal device, and the management unit is installed with the configuration information of each end point used by the USB terminal device and provides corresponding various operation interfaces, while the USB hardware driving layer is mainly UDC, the UDC driving layer is responsible for sending and receiving the execution data and configuring the device, and it is composed of an end point 0 as the control end point, an end point 1 as the Bulk-in end and an end point 2 as the Bulk-out end point, the end point 0 in the UDC driving mainly used for decoding the request of GET _ DESCRIPTOR, because the USBCLIENT works in the Mass Storage device mode, the system supports the request of the GET LUN Max and the Bulk-Storage Masraray LUN, and the return value of the GET LUN is 0, the method comprises the steps that a hardware drive layer of the UDC is used for sending and receiving data and configuring equipment through communication between endpoints, all the endpoints share the same UDC interrupt during data transmission, interrupt requests are generated by bit bits OR OR in a UDC state/interrupt register, after an interrupt request program runs, the value of the UDC state interrupt register is read to determine which interrupt is generated, and the register needs to be emptied when the program is finished.

The main control chip is Junzheng X1000E, the password SOC processor is SOPC80, the FPGA adopts TCG22G, the NANDFlash adopts GD5F2GQ4U, the USB-to-serial port chip adopts CH340N, the reset chip is SGM811, and the power supply chip is BL8034CS8 TR.

The environmental adaptability is as follows:

a) working temperature: at the temperature of +5 ℃ to +40 ℃;

b) storage temperature: -55 ℃ to +70 ℃;

c) vibration, impact, damp heat: the test requirements specified in GJB1621.7A-2006 are met.

And the main interfaces are as follows:

a) service interface: the type A port and the USB3.0 bus interface are compatible with the USB2.0 standard;

b) a resource injection interface (7-core aerial plug is provided, and a serial port and a USB interface are required to be connected simultaneously. Wherein the USB interface employs a slave mode);

c) providing 1 USB-A-Host interface;

d) providing 1 emergency destruction button;

e) and providing an LED lamp, and displaying equipment state and fault warning information.

It should be noted that: the digital signals are transmitted to the CPU through the external equipment at the USB end, the digital signals are encrypted through the algorithm chip, then the data are uploaded and compared through the interface unit, the comparison result is returned to the CPU after the decryption of the algorithm chip, if the comparison is successful, the corresponding authority is granted, and the domestic chip with low power consumption is adopted, so that the efficiency is improved while the power consumption is low, and the national production requirement of the product is realized to the maximum extent.

The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:具有模拟端口的多端口存储器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!