CN102136664A - Communication interface switching device - Google Patents

Communication interface switching device Download PDF

Info

Publication number
CN102136664A
CN102136664A CN2010103007733A CN201010300773A CN102136664A CN 102136664 A CN102136664 A CN 102136664A CN 2010103007733 A CN2010103007733 A CN 2010103007733A CN 201010300773 A CN201010300773 A CN 201010300773A CN 102136664 A CN102136664 A CN 102136664A
Authority
CN
China
Prior art keywords
interface
switching device
microcontroller
data
digital
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
CN2010103007733A
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2010103007733A priority Critical patent/CN102136664A/en
Publication of CN102136664A publication Critical patent/CN102136664A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a communication interface switching device which comprises a microcontroller, a USB interface and a digital I/O interface. The microcontroller is connected with the USB interface and the digital I/O interface; and the microcontroller is used for switching data transmitted between the USB interface and the digital I/O interface, so as to ensure that data transmitted between the USB interface and the digital I/O interface meets the protocol requirement of an interface. The communication interface switching device can realize the switching of various communication interfaces.

Description

The communication interface switching device
Technical field
The present invention relates to a kind of switching device, particularly a kind of switching device of realizing multiple communication interface switching.
Background technology
In Electronic Testing and control field, usually needing to use simultaneously multiple communication interface tests or controls, and different communication interfaces, respectively different requirements are proposed for test or control hardware (as computer) as SPI interface, digital I/O interface, I2C interface etc., and different drivers and control software to be installed simultaneously, so not only strengthen cost, and should use also inconvenient.
Summary of the invention
In view of foregoing, the invention provides a kind of simple in structure, low price and can conveniently realize the switching device of multiple communication interface switching.
A kind of communication interface switching device, comprise a microcontroller, a USB interface and a digital I/O interface, described microcontroller links to each other with described USB interface and described digital I/O interface, described microcontroller is used to change the data of transmitting between described USB interface and the described digital I/O interface, so that the protocol requirement of the data fit corresponding interface that transmits on described USB interface and the described digital I/O interface.
A kind of communication interface switching device, comprise a microcontroller, a serial line interface and a digital I/O interface, described microcontroller links to each other with described serial line interface and described digital I/O interface, described microcontroller is used to change the data of transmitting between described serial line interface and the described digital I/O interface, so that the protocol requirement of the data fit corresponding interface that transmits on described serial line interface and the described digital I/O interface.
Compare prior art, described communication interface switching device is changed the data of transmitting between described USB interface or serial line interface and the described digital I/O interface by described microcontroller, so that the protocol requirement of the data fit corresponding interface that transmits on described USB interface or serial line interface and the described digital I/O interface, described digital I/O interface is changed by USB interface or serial line interface, and then make electronic test equipment or control appliance not need to be provided with separately corresponding digital I/O interface and installation corresponding driving program and control software, it is excessive to save cost greatly like this, and should use also very convenient.
Description of drawings
The invention will be further described in conjunction with embodiment with reference to the accompanying drawings.
Fig. 1 is the schematic diagram of the better embodiment of communication interface switching device of the present invention.
Fig. 2 is the theory diagram of the better embodiment of communication interface switching device of the present invention.
The main element symbol description
The communication interface switching device 100
Microprocessor 10
USB interface 20
Serial line interface 30
Numeral I/O interface 40
The SPI interface 50
The I2C interface 60
The power supply module 70
Power line 80
Embodiment
Please jointly with reference to Fig. 1 and Fig. 2, the better embodiment of communication interface switching device 100 of the present invention comprises a USB (USB of being located on the casing, Universal Serial Bus) interface 20, a serial line interface 30, one digital I/O interface 40, a SPI (serial peripheral equipment, serial peripheral interface) interface 50, an I2C (Inter-Integrated Circuit) interface 60, a power line 80, and be located at a microprocessor 10, a power supply module 70 of box house.
Described USB interface 20, serial line interface 30, digital I/O interface 40, SPI interface 50, I2C interface 60 all link to each other with described microcontroller 10.Described power supply module 70 links to each other with described power line 80, offers described USB interface 20, serial line interface 30, digital I/O interface 40, SPI interface 50, I2C interface 60 and microcontroller 10 work to receive external voltage by described power line 80 and to convert corresponding operating voltage to.
Described USB interface 20 is used to transmit the data that meet the usb bus agreement, and described serial line interface 30 is used to transmit the data of serial bus protocol, described digital I/O interface 40 and is used for the data of transmission of digital signals, described SPI interface 50 and is used to transmit the data that the data of spi bus agreement, described I2C interface 60 are used to transmit the I2C bus protocol.Described USB interface 20 and described serial line interface 30 are communication interface indispensable on the computer, and described digital I/O interface 40, SPI interface 50 and I2C interface are the communication interface that is of little use on the computer, described communication interface switching device 100 can become the data transaction of described digital I/O interface 40, SPI interface 50 and the transmission of I2C interface the data of transmission on described USB interface 20 or the described serial line interface 30, so that computer need not installed corresponding driving program and control software, just can receive the data of transmitting on described digital I/O interface 40, SPI interface 50 or the I2C interface.
Described microcontroller 10 inside are provided with the program of conversion variety of protocol data, promptly can make the data transaction of the usb bus agreement that described USB interface 20 receives become the data of other types and transfer out from corresponding communication interface by described program, for example the data transaction of usb bus agreement is become the data of spi bus agreement and from described SPI interface 50 interfaces output, otherwise also the data transaction of other types can be become the data of usb bus agreement and from described USB interface 20 outputs.Described program can also make the data transaction of the serial bus protocol of described serial line interface 30 receptions become the data of other types and transfer out from corresponding communication interface, for example the data transaction of serial bus protocol is become the data of spi bus agreement and from described SPI interface 50 interfaces output, otherwise also the data transaction of other types can be become the data of serial bus protocol and from described serial line interface 30 outputs.The concrete programming of described program can be write according to the transformational relation between the agreement of certain two kinds of needs data converted, owing to this technology those skilled in the art can write as the case may be, so locate no longer specifically to provide.In other execution modes, the data transaction that this program also can be designed to make another communication interface to receive becomes the data of other types, specifically can make amendment to program as required.
During application, described power line 80 is connected an external power source, described USB interface 20 is connected on any USB socket of a computer (not shown), if described computer needs and an external equipment by Digital Signals (as a plurality of relays) when communicating, control pin correspondence on the described external equipment can be connected on the corresponding pin of described digital I/O interface 40, described computer sent and met the control signal of usb bus agreement to described USB interface 20 this moment, described microcontroller 10 converts described control signal digital signal to and exports to described external equipment through described digital I/O interface 40, carry out corresponding action so that can control described external equipment, promptly described computer is controlled more easily to described external equipment by described communication interface switching device 100, and corresponding digital I/O interface and installation corresponding driving program and control software need be set separately (because USB interface or serial line interface are interfaces indispensable on the computer on described computer, and other interface is not an interface indispensable on the computer), can save cost greatly like this, and should use also very convenient.
More than be an example application, when described computer need be communicated by letter with the electronic equipment of other types,, very convenient as long as the interface of the corresponding described electronic equipment on the described communication interface switching device 100 is linked to each other with described electronic equipment.

Claims (7)

1. communication interface switching device, comprise a microcontroller, a USB interface and a digital I/O interface, described microcontroller links to each other with described USB interface and described digital I/O interface, described microcontroller is used to change the data of transmitting between described USB interface and the described digital I/O interface, so that the protocol requirement of the data fit corresponding interface that transmits on described USB interface and the described digital I/O interface.
2. communication interface switching device as claimed in claim 1, it is characterized in that: described communication interface switching device also comprises a serial line interface that links to each other with described microcontroller, described microcontroller also is used to change the data of transmitting between described USB interface and the described serial line interface, so that the protocol requirement of the data fit corresponding interface that transmits on described USB interface and the described serial line interface.
3. communication interface switching device as claimed in claim 1, it is characterized in that: described communication interface switching device also comprises a SPI interface that links to each other with described microcontroller, described microcontroller also is used to change the data of transmitting between described USB interface and the described SPI interface, so that the protocol requirement of the data fit corresponding interface that transmits on described USB interface and the described SPI interface.
4. communication interface switching device as claimed in claim 1, it is characterized in that: described communication interface switching device also comprises an I2C interface that links to each other with described microcontroller, described microcontroller also is used to change the data of transmitting between described USB interface and the described I2C interface, so that the protocol requirement of the data fit corresponding interface that transmits on described USB interface and the described I2C interface.
5. communication interface switching device, comprise a microcontroller, a serial line interface and a digital I/O interface, described microcontroller links to each other with described serial line interface and described digital I/O interface, described microcontroller is used to change the data of transmitting between described serial line interface and the described digital I/O interface, so that the protocol requirement of the data fit corresponding interface that transmits on described serial line interface and the described digital I/O interface.
6. communication interface switching device as claimed in claim 5, it is characterized in that: described communication interface switching device also comprises a SPI interface that links to each other with described microcontroller, described microcontroller also is used to change the data of transmitting between described serial line interface and the described SPI interface, so that the protocol requirement of the data fit corresponding interface that transmits on described serial line interface and the described SPI interface.
7. communication interface switching device as claimed in claim 5, it is characterized in that: described communication interface switching device also comprises an I2C interface that links to each other with described microcontroller, described microcontroller also is used to change the data of transmitting between described serial line interface and the described I2C interface, so that the protocol requirement of the data fit corresponding interface that transmits on described serial line interface and the described I2C interface.
CN2010103007733A 2010-01-27 2010-01-27 Communication interface switching device Pending CN102136664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010103007733A CN102136664A (en) 2010-01-27 2010-01-27 Communication interface switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010103007733A CN102136664A (en) 2010-01-27 2010-01-27 Communication interface switching device

Publications (1)

Publication Number Publication Date
CN102136664A true CN102136664A (en) 2011-07-27

Family

ID=44296354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010103007733A Pending CN102136664A (en) 2010-01-27 2010-01-27 Communication interface switching device

Country Status (1)

Country Link
CN (1) CN102136664A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573957A (en) * 2015-12-11 2016-05-11 中国电子科技集团公司第四十一研究所 Measuring instrument programmable interface conversion system and method
CN111143262A (en) * 2018-11-05 2020-05-12 致伸科技股份有限公司 Switching device, instrument control system and instrument control method
CN113836076A (en) * 2021-09-24 2021-12-24 深圳达人高科电子有限公司 Exchanger capable of self-defining protocol line sequence
WO2023108553A1 (en) * 2021-12-16 2023-06-22 Intel Corporation Message conversion and message passthrough between devices and a processor in a multi-panel computing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2821697Y (en) * 2005-09-16 2006-09-27 北京普析通用仪器有限责任公司 Interface converter
CN2888537Y (en) * 2006-04-19 2007-04-11 武汉电信器件有限公司 A digital communication interface conversion module
CN201130376Y (en) * 2007-12-19 2008-10-08 深圳市三旺通信技术有限公司 Expander for USB multiple serial ports
CN201336031Y (en) * 2008-10-31 2009-10-28 天津理工大学 Wireless SPI-RS232 conversion device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2821697Y (en) * 2005-09-16 2006-09-27 北京普析通用仪器有限责任公司 Interface converter
CN2888537Y (en) * 2006-04-19 2007-04-11 武汉电信器件有限公司 A digital communication interface conversion module
CN201130376Y (en) * 2007-12-19 2008-10-08 深圳市三旺通信技术有限公司 Expander for USB multiple serial ports
CN201336031Y (en) * 2008-10-31 2009-10-28 天津理工大学 Wireless SPI-RS232 conversion device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573957A (en) * 2015-12-11 2016-05-11 中国电子科技集团公司第四十一研究所 Measuring instrument programmable interface conversion system and method
CN105573957B (en) * 2015-12-11 2018-07-24 中国电子科技集团公司第四十一研究所 A kind of measuring instrument programmable interface converting system and method
CN111143262A (en) * 2018-11-05 2020-05-12 致伸科技股份有限公司 Switching device, instrument control system and instrument control method
CN113836076A (en) * 2021-09-24 2021-12-24 深圳达人高科电子有限公司 Exchanger capable of self-defining protocol line sequence
WO2023108553A1 (en) * 2021-12-16 2023-06-22 Intel Corporation Message conversion and message passthrough between devices and a processor in a multi-panel computing device

Similar Documents

Publication Publication Date Title
US8452905B2 (en) Serial port remote control circuit
CN112100102B (en) Interface management circuit, graphic signal generator and USB TYPE-C patch cord
US20120062034A1 (en) Battery System
CN210804407U (en) Serial port-to-single line communication module with level selection function
CN201207647Y (en) Two-wire system non-polarity master-slave type communication transceiver
CN102136664A (en) Communication interface switching device
CN102445981B (en) Data transmission system and data transmission method
CN203324975U (en) Serial communication debugging tool
CN202798652U (en) Signal conversion circuit and interface switching equipment
JP2023502704A (en) Slave computers, connectors, slave computer assemblies and communication systems
CN104077200A (en) Individual testing device for CPCI (Compact Peripheral Component Interconnect) module separated from main engine
US8097841B2 (en) Conversion circuit for converting data of signal line between an air-conditioner and a computer
US20120054392A1 (en) Data read and write device and method for usb ports of 1-wire devices
CN204697180U (en) Chip main board and television set
CN201820120U (en) Self-adapting multibus execution mechanism controller
CN211124028U (en) Communication equipment expansion circuit and device
CN106708772A (en) Intelligent USB concentrator
CN204302969U (en) The USB/RS232-CAN translation debugging device of various configurations mode
CN101674074B (en) Monobus interface conversion circuit of self-adaptive level
CN102779107A (en) COM port adapter for connecting USB (universal serial bus) device
CN216053016U (en) Different data bus signal access system
CN216286654U (en) Hardware module for converting single-path USB into multi-path UART
CN102447601B (en) S-bus monobus communicating circuit
CN210093242U (en) All-in-one EOL diagnostic tool wireless switching device
CN214253210U (en) Communication controller and communication system for converting USB into multi-channel RS485

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110727