CN104409090A - Usb interface conversion module - Google Patents

Usb interface conversion module Download PDF

Info

Publication number
CN104409090A
CN104409090A CN201410476299.8A CN201410476299A CN104409090A CN 104409090 A CN104409090 A CN 104409090A CN 201410476299 A CN201410476299 A CN 201410476299A CN 104409090 A CN104409090 A CN 104409090A
Authority
CN
China
Prior art keywords
chip
microcontroller
usb interface
usb
port
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
CN201410476299.8A
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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201410476299.8A priority Critical patent/CN104409090A/en
Publication of CN104409090A publication Critical patent/CN104409090A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a USB interface conversion module, including a USB port, a USB conversion serial port protocol conversion chip, a micro controller, a CAN interface, a universal serial port, a CAN transceiver, a 232 transceiver and a power supply circuit. The USB interface is connected to the USB port of the protocol conversion chip, and an I / O port of the protocol conversion chip is connected to a first UART port of the micro controller; the CAN port of the microcontroller is connected with the CAN transceiver, and the CAN transceiver is connected with CAN port; the microcontroller has at least one UART port connected with the 232 transceiver, and the 232 transceiver is connected with the universal serial port. The invention can realize simultaneous USB conversion to the CAN and 232 serial ports and meet the needs of simultaneous communication of the USB port equipment with a variety of port equipment, and also has the characteristics of high speed, good flexibility and strong universality.

Description

USB interface modular converter
[technical field]
The present invention relates to the communication technology, particularly relate to a kind of USB interface modular converter.
[background technology]
USB, CAN and RS232 serial ports is all data communication interface relatively more conventional on equipment, when needing to communicate between the equipment of distinct interface, often need increase interface modular converter, existing USB turns CAN or USB and turns serial port module and usually only have a kind of interface conversion, in a lot of application scenario, often need to be communicated with the equipment of multiple interfaces by a USB interface simultaneously, so existing interface modular converter does not have the ability of carrying out with multiple devices communicating simultaneously, only there is limitation in actual use and lack dirigibility.
[summary of the invention]
The technical problem to be solved in the present invention is to provide and a kind ofly can meets USB simultaneously and turn the USB interface modular converter that serial ports and USB turn CAN mouth.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is, a kind of USB interface modular converter, comprise USB interface, protocol conversion chip, microcontroller, CAN interface, universal serial port, CAN transceiver, 232 transceivers and power circuit that USB turns serial ports, USB interface connects the USB port of protocol conversion chip, and the I/O mouth of protocol conversion chip connects a UART mouth of microcontroller; The CAN mouth of microcontroller connects CAN transceiver, and CAN transceiver connects CAN interface; Microcontroller has at least a UART mouth to connect 232 transceivers, and 232 transceivers connect universal serial port.
Above-described USB interface modular converter, CAN transceiver and 232 transceivers are the PHY chip of CAN and the PHY chip of 232 respectively, realize the conversion of physical layer signal level respectively.
Above-described USB interface modular converter, power circuit comprises power supply chip, the power pins of the input termination USB interface of power supply chip.
Above-described USB interface modular converter, comprise the running LED of microcontroller, CAN receives and dispatches pilot lamp and serial ports transmitting-receiving pilot lamp, microcontroller running LED, and CAN receives and dispatches pilot lamp and serial ports transmitting-receiving pilot lamp is driven by the I/O of microcontroller respectively.
Above-described USB interface modular converter, described microcontroller is STM32 chip; STM32 chip comprises 5 each and every one UART mouths, and wherein a UART mouth connects the I/O mouth of protocol conversion chip, and other 4 UART mouths connect 4 232 transceivers respectively, and each 232 transceivers connect a universal serial port.
Above-described USB interface modular converter, comprises eeprom chip, and eeprom chip connects the I2C interface of protocol conversion chip, the configuration information of eeprom chip storage protocol conversion chip; The I/O mouth that configuration information comprises protocol conversion chip is configured to virtual serial port.
Above-described USB interface modular converter, comprise bootstrapping pin to arrange, bootstrapping pin arranges the mode for arranging microcontroller download firmware, be set to directly utilize the bootstrap loader depositing in the system storage inside of chip, by the flash memory reprogramming of a UART mouth to microcontroller, realize directly driver being downloaded to microcontroller by USB port; Driver completes the transmitting-receiving of external serial port data and the transmitting-receiving of CAN data, the UART interrupt processing of microcontroller and CAN interrupt processing, and timesharing completes the read-write of CAN buffer zone and UART buffer data, in specific UART mouth write or sense data.
USB interface modular converter of the present invention can realize USB and turn CAN and 232 serial ports simultaneously, meets the needs that a USB interface equipment carries out communicating with multiple interfaces equipment simultaneously.
[accompanying drawing explanation]
Below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Fig. 1 is the theory diagram of embodiment of the present invention USB interface modular converter.
[embodiment]
As shown in Figure 1, the protocol conversion chip (as FT2232D) that USB interface modular converter comprises USB interface, USB turns serial ports of the embodiment of the present invention, microcontroller STM32 chip, CAN interface, universal serial port, CAN transceiver, 232 transceivers and power circuit, USB interface connects the USB port of protocol conversion chip, and the I/O mouth of protocol conversion chip connects the UART1 mouth of STM32 chip.The CAN mouth of STM32 chip connects CAN transceiver, and CAN transceiver connects CAN interface.Other 4 the UART mouths of STM32 chip connect 4 232 transceivers respectively, and each 232 transceivers connect a universal serial port respectively.
CAN transceiver and 232 transceivers are the PHY chip of CAN and the PHY chip of 232 respectively, are respectively used to the conversion realizing physical layer signal level.
Module is without the need to other power supplys external, and power circuit comprises power supply chip, the power pins of the input termination USB interface of power supply chip, directly by USB interface power taking.5V power supply, after power supply IC is converted to 3.3V, provides 5V power supply or 3.3V power supply to each chip in module.
Status indicator lamp comprises indicator of the power supply status respectively, the running LED of STM32 chip, CAN receives and dispatches pilot lamp and serial ports transmitting-receiving pilot lamp, STM32 chip running LED, and CAN receives and dispatches pilot lamp and serial ports transmitting-receiving pilot lamp is driven by the I/O of STM32 chip respectively.
The USB interface of protocol conversion chip supports USB2.0 full speed or high speed.Eeprom chip connects the I2C interface of protocol conversion chip, the configuration information of eeprom chip storage protocol conversion chip.The I/O mouth that configuration information comprises protocol conversion chip is configured to virtual serial port, realizes the function that USB is converted to virtual serial port, and the load of protocol conversion chip completes the transmission of the data on virtual serial port to USB interface.
The software of the embodiment of the present invention realizes in the following manner:
First by USB interface, existing firmware downloads is inner to eeprom chip, firmware comprises all configuration informations of protocol conversion chip, and the corresponding I/O comprising protocol conversion chip is configured to virtual serial port, realizes USB and is converted to virtual serial port.
Arranged by the bootstrapping pin of STM32, the mode of controller download firmware is set, can be set to flexibly directly utilize the bootstrap loader (Bootloader) depositing in the system storage inside of chip, by the flash memory reprogramming of UART1 mouth to controller, namely directly driver is downloaded to STM32 chip internal by USB port.Driver completes the transmitting-receiving of external serial port data and the transmitting-receiving of CAN data, the UART interrupt processing of STM32 chip and CAN interrupt processing, and timesharing completes the read-write of CAN buffer zone and UART buffer data, in specific UART mouth write or sense data.

Claims (7)

1. a USB interface modular converter, it is characterized in that, comprise USB interface, protocol conversion chip, microcontroller, CAN interface, universal serial port, CAN transceiver, 232 transceivers and power circuit that USB turns serial ports, USB interface connects the USB port of protocol conversion chip, and the I/O mouth of protocol conversion chip connects a UART mouth of microcontroller; The CAN mouth of microcontroller connects CAN transceiver, and CAN transceiver connects CAN interface; Microcontroller has at least a UART mouth to connect 232 transceivers, and 232 transceivers connect universal serial port.
2. USB interface modular converter according to claim 1, is characterized in that, CAN transceiver and 232 transceivers are the PHY chip of CAN and the PHY chip of 232 respectively, realize the conversion of physical layer signal level respectively.
3. USB interface modular converter according to claim 1, it is characterized in that, power circuit comprises power supply chip, the power pins of the input termination USB interface of power supply chip.
4. USB interface modular converter according to claim 1, it is characterized in that, comprise the running LED of microcontroller, CAN receives and dispatches pilot lamp and serial ports transmitting-receiving pilot lamp, microcontroller running LED, CAN receives and dispatches pilot lamp and serial ports transmitting-receiving pilot lamp is driven by the I/O of microcontroller respectively.
5. USB interface modular converter according to claim 1, is characterized in that, described microcontroller is STM32 chip; STM32 chip comprises 5 each and every one UART mouths, and wherein a UART mouth connects the I/O mouth of protocol conversion chip, and other 4 UART mouths connect 4 232 transceivers respectively, and each 232 transceivers connect a universal serial port.
6. USB interface modular converter according to claim 1, is characterized in that, comprise eeprom chip, and eeprom chip connects the I2C interface of protocol conversion chip, the configuration information of eeprom chip storage protocol conversion chip; The I/O mouth that configuration information comprises protocol conversion chip is configured to virtual serial port.
7. USB interface modular converter according to claim 1, it is characterized in that, comprise bootstrapping pin to arrange, bootstrapping pin arranges the mode for arranging microcontroller download firmware, be set to directly utilize the bootstrap loader depositing in the system storage inside of chip, by the flash memory reprogramming of a UART mouth to microcontroller, realize directly driver being downloaded to microcontroller by USB port; Driver completes the transmitting-receiving of external serial port data and the transmitting-receiving of CAN data, the UART interrupt processing of microcontroller and CAN interrupt processing, and timesharing completes the read-write of CAN buffer zone and UART buffer data, in specific UART mouth write or sense data.
CN201410476299.8A 2014-09-17 2014-09-17 Usb interface conversion module Pending CN104409090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410476299.8A CN104409090A (en) 2014-09-17 2014-09-17 Usb interface conversion module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410476299.8A CN104409090A (en) 2014-09-17 2014-09-17 Usb interface conversion module

Publications (1)

Publication Number Publication Date
CN104409090A true CN104409090A (en) 2015-03-11

Family

ID=52646711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410476299.8A Pending CN104409090A (en) 2014-09-17 2014-09-17 Usb interface conversion module

Country Status (1)

Country Link
CN (1) CN104409090A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653461A (en) * 2016-03-17 2016-06-08 烽火通信科技股份有限公司 System for converting single USB interface into plurality of UART debugging interfaces
CN110413550A (en) * 2018-04-27 2019-11-05 北京天诚同创电气有限公司 A kind of chip serial ports program downloading control circuit
WO2020103097A1 (en) * 2018-11-22 2020-05-28 北京比特大陆科技有限公司 Data processing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2833681Y (en) * 2005-08-30 2006-11-01 上海师范大学 HART interface holding RS232 and USB dual interface
CN101789557A (en) * 2010-01-29 2010-07-28 上海微小卫星工程中心 Multifunctional interface conversion device
US20130280956A1 (en) * 2012-04-19 2013-10-24 Pass & Seymour, Inc. Electrical Wiring Device with High Current USB Charging Capabilities

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2833681Y (en) * 2005-08-30 2006-11-01 上海师范大学 HART interface holding RS232 and USB dual interface
CN101789557A (en) * 2010-01-29 2010-07-28 上海微小卫星工程中心 Multifunctional interface conversion device
US20130280956A1 (en) * 2012-04-19 2013-10-24 Pass & Seymour, Inc. Electrical Wiring Device with High Current USB Charging Capabilities

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653461A (en) * 2016-03-17 2016-06-08 烽火通信科技股份有限公司 System for converting single USB interface into plurality of UART debugging interfaces
CN105653461B (en) * 2016-03-17 2018-08-03 烽火通信科技股份有限公司 A kind of single USB interfaces turn the converting system of more UART debugging interfaces
CN110413550A (en) * 2018-04-27 2019-11-05 北京天诚同创电气有限公司 A kind of chip serial ports program downloading control circuit
WO2020103097A1 (en) * 2018-11-22 2020-05-28 北京比特大陆科技有限公司 Data processing device

Similar Documents

Publication Publication Date Title
CN105051706B (en) The equipment of operation for the low-power PHY with PCIE protocol stacks, method and system
US7702832B2 (en) Low power and low pin count bi-directional dual data rate device interconnect interface
CN104484301B (en) A kind of IO bus units based on FPGA with self-recognition function
CN202956753U (en) Programming device and programming system of flash memory chip in embedded system
CN107368441A (en) Configurable and power optimization integrated grid driver and Type C SoC for USB transmissions of electricity
CN101499046A (en) SPI equipment communication circuit
CN102637453B (en) Phase change memory including serial input/output interface
CN204557471U (en) A kind of novel USB turns UART serial communication circuit
CN203720837U (en) Unibus for master-slave device communication
CN104090857A (en) System and method for expanding peripheral interfaces of intelligent terminal
CN103200081A (en) Heterogeneous network environment oriented Internet of things gateway development platform
CN103902488A (en) Method and system for expanding other interfaces through USB-OTG interface based on Android system
CN108600017A (en) Multi-protocols serial ports expansion method
CN104409090A (en) Usb interface conversion module
CN204229835U (en) A kind of USB interface modular converter
CN103077139B (en) Use integrated circuit and the control method thereof of internal integrate circuit bus
CN103389958B (en) USB (universal serial bus)
CN105118441A (en) LED display screen control card for asynchronous control system
CN103488598B (en) A kind of multimode terminal and realize USB share method
CN102445981B (en) Data transmission system and data transmission method
CN202563497U (en) Communication interface for Flash-Net animation game
CN203930809U (en) The management system of the different GPU of a kind of compatibility
CN202495661U (en) USB conversion device
CN201974679U (en) PROFIBUS-DP profibus master station communication equipment
TWI706258B (en) A computing device

Legal Events

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

Application publication date: 20150311

RJ01 Rejection of invention patent application after publication