CN102023959A - Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol - Google Patents

Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol Download PDF

Info

Publication number
CN102023959A
CN102023959A CN2010105831535A CN201010583153A CN102023959A CN 102023959 A CN102023959 A CN 102023959A CN 2010105831535 A CN2010105831535 A CN 2010105831535A CN 201010583153 A CN201010583153 A CN 201010583153A CN 102023959 A CN102023959 A CN 102023959A
Authority
CN
China
Prior art keywords
communication
usb
chip
format
hid
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
CN2010105831535A
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.)
PRIS INSTRUMENT (SHANGHAI) CO Ltd
Original Assignee
PRIS INSTRUMENT (SHANGHAI) CO 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 PRIS INSTRUMENT (SHANGHAI) CO Ltd filed Critical PRIS INSTRUMENT (SHANGHAI) CO Ltd
Priority to CN2010105831535A priority Critical patent/CN102023959A/en
Publication of CN102023959A publication Critical patent/CN102023959A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a communication conversion bridge set based on a USB-HID (universal serial bus-human input device) protocol, which relates to the technical filed of communication and is used for solving the technical problem of facilitating users to use various non-USB application terminals. The bridge set comprises a single chip microcomputer, an RS232 (recommend standard 232) communication chip, an RS485 communication chip, a field-programmable gate array (FPGA) chip, a USB connecting chip, a parallel communication connection piece, a RS232 communication connection piece connected with the RS232 communication chip, a RS485 communication connection piece connected with the RS485 communication chip and an expanded connection piece connected with the FPGA chip, wherein the RS232 communication chip, the RS485 communication chip, the FPGA chip, the USB connecting chip and the parallel communication connection piece are respectively connected with the single chip microcomputer; and the single chip microcomputer is internally provided with a communication format conversion software used for the mutual format conversion between a USB-HID communication format and a parallel communication format, a RS232 communication format or a RS485 communication format. The bridge set provided by the invention has the advantages that the acquisition cost of an adaptor is reduced, and the service life of each interface is prolonged.

Description

A kind of transition of communications bridge-set based on the USB-HID agreement
Technical field
The present invention relates to the communication technology, particularly relate to a kind of technology of the transition of communications bridge-set based on the USB-HID agreement.
Background technology
Along with USB interface widespread use on computers, the computer motherboard that has the serial parallel communication interface is also fewer and feweri, but because usb protocol more complicated and communication distance are shorter, only be applicable to closely high-speed communication, therefore there are a lot of application terminals still to need to use serial parallel communication protocol and host computer to communicate, but, use the use of the application terminal of serial parallel communication protocol to bring inconvenience to these because it is less to have the computing machine of serial parallel communication interface at present.
At present, occur some on the market and can be used for the USB adapter of mutual conversion between usb communication form and the serial parallel communication format, switching by this adapter, use the application terminal of serial parallel communication protocol to be connected to host computer by the USB interface of host computer, but the prior USB adapter all is man-to-man, adapter can only be used to tackle the conversion between a kind of communication format and the usb communication form, therefore need use the user of the application terminal of multiple communication format for some, then need to be equipped with multiple adapter, so that being connected of the application terminal of various communication formats and host computer, can increase the acquisition cost of adapter like this, and need change corresponding adapter during the application terminal of using the different communication form, use very inconvenience, regular plug also can influence the serviceable life of each interface.In addition, all need be in host computer when existing USB adapter uses install driver in advance, otherwise can't use.
Summary of the invention
At the defective that exists in the above-mentioned prior art, technical matters to be solved by this invention provides that a kind of most existing computing machine can both directly drive, can reduce the adapter acquisition cost, prolong the serviceable life of each interface, be user-friendly to the transition of communications bridge-set based on the USB-HID agreement of various non-USB application terminal.
In order to solve the problems of the technologies described above, a kind of transition of communications bridge-set based on the USB-HID agreement provided by the present invention is characterized in that: comprise single-chip microcomputer, RS232 communication chip, RS485 communication chip, programmable gate array chip, USB web member, parallel communications web member, RS232 communication link fitting, RS485 communication link fitting, expansion web member;
Described single-chip microcomputer is provided with the usb communication interface, the data input/output port, the SPI interface, first serial communication interface and second serial communication interface, and be built-in with the usb communication module that is used to control its usb communication interface communication, and be used for USB-HID communication format and parallel communications form, the RS232 communication format, carry out the communication format switching software of mutual format conversion between the RS485 communication format, its usb communication interface is connected to the USB web member, its data input/output port is connected to the parallel communications web member, its SPI interface is connected to the expansion web member through the programmable gate array chip, its first serial communication interface is connected to RS232 communication link fitting through the RS232 communication chip, and its second serial communication interface is connected to RS485 communication link fitting through the RS485 communication chip.
Transition of communications bridge-set based on the USB-HID agreement provided by the invention, pass through single-chip microcomputer, the RS232 communication chip, the RS485 communication chip, the cooperation of programmable gate array chip can realize the mutual conversion between usb communication form and multiple other communication format, and USB-HID communication protocol is housed in advance all in the most existing computing machine, can directly drive its work, by the parallel communications web member, RS232 communication link fitting, RS485 communication link fitting, the expansion web member, only need a bridge-set provided by the invention can connect the multiple application terminal of using different communication protocol, can reduce the acquisition cost of adapter, be user-friendly to various non-USB application terminal, and need not regular plug connector, can prolong the serviceable life of each interface.
Description of drawings
Fig. 1 is the structured flowchart based on the transition of communications bridge-set of USB-HID agreement of the embodiment of the invention.
Embodiment
Below in conjunction with description of drawings embodiments of the invention are described in further detail, but present embodiment is not limited to the present invention, every employing analog structure of the present invention and similar variation thereof all should be listed protection scope of the present invention in.
As shown in Figure 1, a kind of transition of communications bridge-set based on the USB-HID agreement that the embodiment of the invention provided is characterized in that: comprise single-chip microcomputer, RS232 communication chip, RS485 communication chip, programmable gate array chip, USB web member, parallel communications web member, RS232 communication link fitting, RS485 communication link fitting, expansion web member;
Described single-chip microcomputer is provided with the usb communication interface, the data input/output port, SPI interface (peripheral serial line interface), first serial communication interface and second serial communication interface, and be built-in with the usb communication module that is used to control its usb communication interface communication, and be used for USB-HID communication format and parallel communications form, the RS232 communication format, carry out the communication format switching software of mutual format conversion between the RS485 communication format, its usb communication interface is connected to the USB web member, its data input/output port is connected to the parallel communications web member, its SPI interface is connected to the expansion web member through the programmable gate array chip, its first serial communication interface is connected to RS232 communication link fitting through the RS232 communication chip, and its second serial communication interface is connected to RS485 communication link fitting through the RS485 communication chip.
In the embodiment of the invention, described single-chip microcomputer is that model is little process chip of STM32F103ZET6, described RS232 communication chip is that model is the communication chip of MAX232, described RS485 communication chip is that model is the communication chip of MAX485, and the model of described programmable gate array chip is A3P060.
In the embodiment of the invention, built-in communication format switching software is a prior art in the described single-chip microcomputer.
When the embodiment of the invention is used, utilize the USB cable USB web member to be connected to the USB interface of the host computer that the operating system (such as Windows XP operating system) of supporting the USB-HID agreement is housed in advance earlier, the application terminal is connected to and the corresponding web member of the communication mode of this application terminal, such as utilizing the parallel communications cable that the parallel port printer is connected to the parallel communications web member of the embodiment of the invention, and for example utilize the RS232 telecommunication cable RS232 serial printer to be connected to the RS232 communication link fitting of the embodiment of the invention; If the employed communication protocol in application terminal is not parallel communications agreement, RS232 communication protocol and RS485 communication protocol, then should be connected to the expansion web member, and work out and store the communications protocol format that this application terminal is supported in advance by the programmable gate array chip before use;
Host computer instructs to the transmit operation of application corresponding terminal by its USB interface, its operational order form is the USB-HID communication format, the operational order that host computer sends arrives single-chip microcomputer by the USB web member earlier, after single-chip microcomputer receives operational order, the Action Target of first decision operation instruction;
If Action Target is the application terminal that connects the parallel communications web member, then the form of operational order after being converted to the parallel communications form, the USB-HID communication format is exported from the data input/output port by its built-in communication format switching software;
If Action Target is the application terminal that connects RS232 communication link fitting, then the form of operational order after being converted to the RS232 communication format, the USB-HID communication format is exported from first serial communication interface by its built-in communication format switching software;
If Action Target is the application terminal that connects RS485 communication link fitting, then the form of operational order after being converted to the RS485 communication format, the USB-HID communication format is exported from second serial communication interface by its built-in communication format switching software;
If Action Target is the application terminal that connects the expansion web member, then the form with operational order outputs to the programmable gate array chip from the SPI interface after the USB-HID communication format is decoded as universal data format, after the programmable gate array chip is received operational order, send to the intended application terminal after according to target the communications protocol format supported of application terminal is encoded with this operational order;
The application terminal that connects the expansion web member arrives the programmable gate array chip earlier to the information that host computer returns, send to single-chip microcomputer after the communications protocol format that the programmable gate array chip is supported by the application terminal of return message is decoded the return message of receiving, the return message that single-chip microcomputer is sent the programmable gate array chip here passes to host computer by the USB web member after being converted to the USB-HID communication format;
Each application terminal that connects non-expansion web member arrives single-chip microcomputer earlier to the information that host computer returns, and single-chip microcomputer passes to host computer by the USB web member after by its built-in communication format switching software the communication format of the return message of each application terminal being converted to the USB-HID communication format.

Claims (1)

1. the transition of communications bridge-set based on the USB-HID agreement is characterized in that: comprise single-chip microcomputer, RS232 communication chip, RS485 communication chip, programmable gate array chip, USB web member, parallel communications web member, RS232 communication link fitting, RS485 communication link fitting, expansion web member;
Described single-chip microcomputer is provided with the usb communication interface, the data input/output port, the SPI interface, first serial communication interface and second serial communication interface, and be built-in with the usb communication module that is used to control its usb communication interface communication, and be used for USB-HID communication format and parallel communications form, the RS232 communication format, carry out the communication format switching software of mutual format conversion between the RS485 communication format, its usb communication interface is connected to the USB web member, its data input/output port is connected to the parallel communications web member, its SPI interface is connected to the expansion web member through the programmable gate array chip, its first serial communication interface is connected to RS232 communication link fitting through the RS232 communication chip, and its second serial communication interface is connected to RS485 communication link fitting through the RS485 communication chip.
CN2010105831535A 2010-12-12 2010-12-12 Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol Pending CN102023959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105831535A CN102023959A (en) 2010-12-12 2010-12-12 Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105831535A CN102023959A (en) 2010-12-12 2010-12-12 Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol

Publications (1)

Publication Number Publication Date
CN102023959A true CN102023959A (en) 2011-04-20

Family

ID=43865270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105831535A Pending CN102023959A (en) 2010-12-12 2010-12-12 Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol

Country Status (1)

Country Link
CN (1) CN102023959A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216851A (en) * 2013-06-05 2014-12-17 苏州坤宏电子有限公司 Universal serial interface device achieving plug and play of HID through USB
CN106649153A (en) * 2016-11-30 2017-05-10 长春鸿达光电子与生物统计识别技术有限公司 Non-driver dual-port PRC resident ID card information acquisition device
CN109298276A (en) * 2018-11-09 2019-02-01 洛阳点晶智控科技有限公司 The judgement detection method of circuit loop on-off in a kind of PLC controller
CN110399326A (en) * 2019-08-02 2019-11-01 沈阳民航东北凯亚有限公司 A kind of data conversion equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216851A (en) * 2013-06-05 2014-12-17 苏州坤宏电子有限公司 Universal serial interface device achieving plug and play of HID through USB
CN106649153A (en) * 2016-11-30 2017-05-10 长春鸿达光电子与生物统计识别技术有限公司 Non-driver dual-port PRC resident ID card information acquisition device
CN109298276A (en) * 2018-11-09 2019-02-01 洛阳点晶智控科技有限公司 The judgement detection method of circuit loop on-off in a kind of PLC controller
CN109298276B (en) * 2018-11-09 2020-08-14 洛阳点晶智控科技有限公司 Method for judging and detecting on-off of circuit loop in PLC (programmable logic controller)
CN110399326A (en) * 2019-08-02 2019-11-01 沈阳民航东北凯亚有限公司 A kind of data conversion equipment

Similar Documents

Publication Publication Date Title
CN101345629B (en) Double on-site bus interface converter
CN101634976B (en) Method and terminal for providing Bluetooth function for computer
US20050262279A1 (en) USB OTG adapter module for debugging USB OTG devices
CN101309193B (en) USB-Flexray bus adapter based on micro-processor
US20090063717A1 (en) Rate Adaptation for Support of Full-Speed USB Transactions Over a High-Speed USB Interface
TW200703011A (en) Bus device used in computer system
CN101795262B (en) IEEE-1394b bus and CAN bus protocol converter based on microprocessor
CN101794267A (en) USB (Universal Serial Bus) switching device and realizing method thereof
CN102023959A (en) Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol
CN103972909A (en) TSC (thyristor switched capacitor) system and RS485 communication method thereof based on FPGA (Field Programmable Gate Array)
CN102938659A (en) NFC (Near Field Communication) external member and realization method thereof
CN102445981B (en) Data transmission system and data transmission method
CN102694722B (en) Bridger and its method of operation
CN217307345U (en) Power distribution terminal
CN201993748U (en) Bridging device for communication conversion based on USB-HID (Universal Serial Bus-Human Interface Device)protocol
CN203552253U (en) Portable multifunctional universal serial bus (USB) conversion module
CN203084721U (en) Multi-interface extension management system of vehicle monitoring terminal
CN203276264U (en) Equipment for conversion from UART interface to USB dual mode interface
CN204302969U (en) The USB/RS232-CAN translation debugging device of various configurations mode
CN114678960A (en) Power distribution terminal
CN201345391Y (en) Control panel system used in electric automobile battery charger
CN109120143B (en) Method, main controller and system for controlling power on and power off
CN201583949U (en) Usb wireless terminal
CN109801670A (en) A kind of hard disc of computer test macro
CN201813396U (en) CANopen-CAN (controller area network) gateway

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110420