CN106487667A - MVB-SPI gateway - Google Patents
MVB-SPI gateway Download PDFInfo
- Publication number
- CN106487667A CN106487667A CN201510527833.8A CN201510527833A CN106487667A CN 106487667 A CN106487667 A CN 106487667A CN 201510527833 A CN201510527833 A CN 201510527833A CN 106487667 A CN106487667 A CN 106487667A
- Authority
- CN
- China
- Prior art keywords
- mvb
- spi
- interface
- processor
- data
- 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
Links
- 230000008878 coupling Effects 0.000 claims description 17
- 238000010168 coupling process Methods 0.000 claims description 17
- 238000005859 coupling reaction Methods 0.000 claims description 17
- 238000002955 isolation Methods 0.000 claims description 11
- 230000002093 peripheral effect Effects 0.000 claims description 5
- 230000003993 interaction Effects 0.000 abstract description 9
- 238000004891 communication Methods 0.000 description 6
- 230000004913 activation Effects 0.000 description 3
- 238000005538 encapsulation Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Communication Control (AREA)
Abstract
The present invention provides a kind of MVB SPI gateway, including:MVB protocol controller, SPI interface, processor;Processor is bi-directionally connected with MVB protocol controller, SPI interface respectively;MVB protocol controller, for being converted to data signal by the data from MVB by differential signal;Or the data from digital signal from processor is converted to differential signal;SPI interface, for the interface between offer and spi bus;Processor, for first being decapsulated based on MVB agreement to the data from MVB protocol controller, then is encapsulated based on SPI protocol, and sends to SPI interface;Or the data from SPI interface are first decapsulated based on SPI protocol, then be packaged based on MVB agreement, and send to MVB protocol controller.Present invention achieves the data interaction between the equipment using MVB agreement and the equipment using SPI protocol.
Description
Technical field
The present invention relates to the communication technology, more particularly to a kind of multifunctional train bus (MVB,
Multifunction Vehicle Bus)-Serial Peripheral Interface (SPI) (SPI, Serial Peripheral Interface)
Gateway.
Background technology
With flourishing for track transportation industry, MVB is in urban light rail, subway and railway etc.
All it is widely used in vehicle.MVB is that one kind is mainly used in having interoperability and interchangeability to require
Interconnection equipment between serial data communications busses.
Spi bus technology is a kind of synchronous serial interface that Motorola (Motorola) company releases, and uses
In central processing unit (CPU, Central Processing Unit) and various peripheral components carry out full duplex,
Synchronous serial communication.Spi bus only need four lines just complete the communication of CPU and various peripheral components
Communication.This implementation of spi bus has saved the pin of chip, at the same for printed circuit board (PCB,
Printed Circuit Board) layout on save space, simple, intuitive, and have good autgmentability;
Therefore, increasing chip supports spi bus communication.
But, exist in prior art equipment and the equipment using SPI protocol using MVB agreement it
Between can not carry out the problem of data interaction.
Content of the invention
The present invention provides a kind of MVB-SPI gateway, in order to solve MVB agreement used in prior art
Equipment and using the problem that can not carry out data interaction between the equipment of SPI protocol.
The present invention provides a kind of MVB-SPI gateway, including:MVB protocol controller, SPI interface,
Processor;Wherein, the processor is double with the MVB protocol controller, the SPI interface respectively
To connection;
The MVB protocol controller, for being converted to the data from MVB by differential signal
Data signal;Or the data from digital signal from the processor is converted to differential signal;
The SPI interface, for the interface between offer and spi bus;
The processor, for being first based on MVB agreement to the data from the MVB protocol controller
Decapsulated, then encapsulated based on SPI protocol, and sent to the SPI interface;Or to from institute
The data for stating SPI interface are first decapsulated based on SPI protocol, then are packaged based on MVB agreement,
And send to the MVB protocol controller.
MVB-SPI gateway as above, wherein, also includes:MVB driver, described
MVB driver Wei Yu the MVB and the MVB protocol controller between, for right
The MVB is driven.
MVB-SPI gateway as above, wherein, also includes:First Phototube Coupling interface, described
First Phototube Coupling interface Wei Yu the processor and the SPI interface between, for the processor
Signal isolation is carried out with the SPI interface.
MVB-SPI gateway as above, wherein, also includes:Second Phototube Coupling interface, described
Second Phototube Coupling interface Wei Yu the MVB and the MVB protocol controller between, for right
The MVB carries out signal isolation with the MVB protocol controller.
The present invention provide MVB-SPI gateway, by arrange MVB protocol controller, SPI interface and
Processor, processor are first based on MVB multi-protocol decapsulation to the data from MVB protocol controller, then
Encapsulated based on SPI protocol, and send to SPI interface so that the data from MVB can send
To spi bus;Or, processor is first decapsulated based on SPI protocol to the data from SPI interface,
It is based on MVB protocol encapsulation again, and sends to MVB protocol controller so that from the number of spi bus
According to can send to MVB;It is achieved thereby that using MVB agreement equipment with use SPI protocol
Equipment between data interaction.
Description of the drawings
Fig. 1 is the structural representation of MVB-SPI gateway embodiment one of the present invention;
Fig. 2 is the structural representation of MVB-SPI gateway embodiment two of the present invention;
Fig. 3 is the structural representation of MVB-SPI gateway embodiment three of the present invention.
Specific embodiment
Fig. 1 is the structural representation of MVB-SPI gateway embodiment one of the present invention, as shown in figure 1, this reality
The MVB-SPI gateway for applying example includes:MVB protocol controller 11, SPI interface 12, processor 13;
Wherein, processor 13 is bi-directionally connected with MVB protocol controller 11, SPI interface 12 respectively;MVB
Protocol controller 11, for being converted to data signal by the data from MVB by differential signal;
Or the data from digital signal from processor 13 is converted to differential signal;SPI interface 12, is used for
There is provided and the interface between spi bus;Processor 13, for from MVB protocol controller 11
Data are first decapsulated based on MVB agreement, then are encapsulated based on SPI protocol, and are sent to SPI interface
12;Or the data from SPI interface 12 are first decapsulated based on SPI protocol, then it is based on MVB
Agreement is packaged, and sends to MVB protocol controller 11.
In the present embodiment, MVB-SPI gateway can realize the data friendship of MVB and spi bus
Mutually.Specifically, MVB data are converted to numeral by differential signal by MVB protocol controller 11
Signal is sent to processor 13, and processor 13 is first decapsulated based on MVB agreement to data, then base
Encapsulate in SPI protocol, send to SPI interface 12, and sent to spi bus by SPI interface 12;
Spi bus data is activation to processor 13, processor 13 are first based on SPI to data by SPI interface 12
Agreement is decapsulated, then is based on MVB protocol encapsulation, and is sent to MVB protocol controller 11,
MVB protocol controller 11 is converted to the data from digital signal from processor 13 after differential signal,
Send to MVB.
In the present embodiment, by arranging MVB protocol controller, SPI interface and processor, processor
MVB multi-protocol decapsulation is first based on to the data from MVB protocol controller, then is sealed based on SPI protocol
Dress, and send to SPI interface so that the data from MVB can be sent to spi bus;Or
Person, processor are first decapsulated based on SPI protocol to the data from SPI interface, then are based on MVB agreement
Encapsulation, and send to MVB protocol controller so that the data from spi bus can be sent to MVB
Bus;It is achieved thereby that the data between the equipment using MVB agreement and the equipment using SPI protocol
Interaction.
Fig. 2 is the structural representation of MVB-SPI gateway embodiment two of the present invention;As shown in Fig. 2 this reality
The MVB-SPI gateway of example is applied on the basis of MVB-SPI gateway architecture shown in Fig. 1, further also
Can include:MVB driver 14;Wherein, MVB driver 14 is located at MVB
Between MVB protocol controller 11, for being driven to the MVB.
Optionally, MVB driver 14 is can be also used for the MVB and MVB agreement
Controller 11 carries out signal isolation.
Optionally, the MVB-SPI gateway of the present embodiment can also include:First Phototube Coupling interface 15;
Wherein, the first Phototube Coupling interface 15 is Wei Yu processor 13 and SPI interface 12 between, for processing
Device 13 carries out signal isolation with SPI interface 12.
In the present embodiment, MVB-SPI gateway passes through processor by the number from MVB protocol controller
According to transmission to SPI interface, or by the data is activation from SPI interface to MVB protocol controller, real
Existing data interaction between MVB and spi bus, so as to realize the equipment using MVB agreement with
Using the data interaction between the equipment of SPI protocol.Further, since employing MVB driver
14, MVB is driven, improves the ability for driving MVB;MVB drives
MVB and MVB protocol controller can also be carried out signal isolation by device 14, anti-so as to improve
Jamming performance;As the first Phototube Coupling interface 15 is employed, processor and SPI interface are carried out signal
Isolation, so as to further increase interference free performance.
Fig. 3 is the structural representation of MVB-SPI gateway embodiment three of the present invention, as shown in figure 3, this reality
The MVB-SPI gateway of example is applied on the basis of MVB-SPI gateway architecture shown in Fig. 1, further also
Can include:Second Phototube Coupling interface 16;Second Phototube Coupling interface 16 is located at the MVB
Between MVB protocol controller 11, for the MVB and MVB protocol controller 11
Carry out signal isolation.
Optionally, the MVB-SPI gateway of the present embodiment can also include:First Phototube Coupling interface 15;
Wherein, the first Phototube Coupling interface 15 is Wei Yu processor 13 and SPI interface 12 between, for processing
Device 13 carries out signal isolation with SPI interface 12.
In the present embodiment, processor 13 can adopt STM32F103 chip when implementing.
In the present embodiment, MVB-SPI gateway passes through processor by the number from MVB protocol controller
According to transmission to SPI interface, or by the data is activation from SPI interface to MVB protocol controller, real
Existing data interaction between MVB and spi bus, so as to realize the equipment using MVB agreement with
Using the data interaction between the equipment of SPI protocol.Further, since employing the second Phototube Coupling interface
16, MVB and MVB protocol controller are carried out signal isolation;Employ the first Phototube Coupling to connect
Mouth 15, processor and SPI interface are carried out signal isolation;So as to improve interference free performance.
Finally it should be noted that:Various embodiments above is only in order to illustrating technical scheme rather than right
Which limits;Although being described in detail to the present invention with reference to foregoing embodiments, this area common
Technical staff should be understood:Which still can be modified to the technical scheme described in foregoing embodiments,
Or equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, and
The scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution is not made.
Claims (4)
1. a kind of multifunctional train bus MVB- serial peripheral equipment interface SPI gateway, it is characterised in that bag
Include:MVB protocol controller, SPI interface and processor;Wherein, the processor respectively with described
MVB protocol controller, the SPI interface are bi-directionally connected;
The MVB protocol controller, for being converted to the data from MVB by differential signal
Data signal;Or the data from digital signal from the processor is converted to differential signal;
The SPI interface, for the interface between offer and spi bus;
The processor, for being first based on MVB agreement to the data from the MVB protocol controller
Decapsulated, then encapsulated based on SPI protocol, and sent to the SPI interface;Or to from institute
The data for stating SPI interface are first decapsulated based on SPI protocol, then are packaged based on MVB agreement,
And send to the MVB protocol controller.
2. MVB-SPI gateway according to claim 1, it is characterised in that also include:MVB
Bus driver, the MVB driver are located at the MVB and the MVB agreement control
Between device processed, for being driven to the MVB.
3. MVB-SPI gateway according to claim 1 and 2, it is characterised in that also include:
First Phototube Coupling interface, the first Phototube Coupling interface are located at the processor and the SPI interface
Between, for carrying out signal isolation to the processor with the SPI interface.
4. MVB-SPI gateway according to claim 1 and 2, it is characterised in that also include:
Second Phototube Coupling interface, the second Phototube Coupling interface are located at the MVB and the MVB
Between protocol controller, for the MVB and the MVB protocol controller are carried out signal every
From.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510527833.8A CN106487667A (en) | 2015-08-25 | 2015-08-25 | MVB-SPI gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510527833.8A CN106487667A (en) | 2015-08-25 | 2015-08-25 | MVB-SPI gateway |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106487667A true CN106487667A (en) | 2017-03-08 |
Family
ID=58234247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510527833.8A Pending CN106487667A (en) | 2015-08-25 | 2015-08-25 | MVB-SPI gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106487667A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2819315Y (en) * | 2005-05-20 | 2006-09-20 | 谢步明 | MVB four-kind apparatus based on ARM7 kernel microprocessor |
KR20090059491A (en) * | 2007-12-06 | 2009-06-11 | 한국전자통신연구원 | Apparatus of gateway for providing multi-channel in sensor network, and apparatus and method for spi interfacing in the apparatus of gateway |
CN201341149Y (en) * | 2009-01-19 | 2009-11-04 | 中国北车股份有限公司大连电力牵引研发中心 | Hand-held portable MVB network data analyzer for locomotive |
CN102307162A (en) * | 2011-09-08 | 2012-01-04 | 中国北车股份有限公司大连电力牵引研发中心 | Gateway based on MVB (multifunction vehicle bus) network |
US20150237156A1 (en) * | 2012-10-11 | 2015-08-20 | Institute Of Software, Chinese Academy Of Sciences | Lpc2468-based mvb-wtb gateway and working method thereof |
CN205005066U (en) * | 2015-08-25 | 2016-01-27 | 北车大连电力牵引研发中心有限公司 | MVB -SPI gateway |
-
2015
- 2015-08-25 CN CN201510527833.8A patent/CN106487667A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2819315Y (en) * | 2005-05-20 | 2006-09-20 | 谢步明 | MVB four-kind apparatus based on ARM7 kernel microprocessor |
KR20090059491A (en) * | 2007-12-06 | 2009-06-11 | 한국전자통신연구원 | Apparatus of gateway for providing multi-channel in sensor network, and apparatus and method for spi interfacing in the apparatus of gateway |
CN201341149Y (en) * | 2009-01-19 | 2009-11-04 | 中国北车股份有限公司大连电力牵引研发中心 | Hand-held portable MVB network data analyzer for locomotive |
CN102307162A (en) * | 2011-09-08 | 2012-01-04 | 中国北车股份有限公司大连电力牵引研发中心 | Gateway based on MVB (multifunction vehicle bus) network |
US20150237156A1 (en) * | 2012-10-11 | 2015-08-20 | Institute Of Software, Chinese Academy Of Sciences | Lpc2468-based mvb-wtb gateway and working method thereof |
CN205005066U (en) * | 2015-08-25 | 2016-01-27 | 北车大连电力牵引研发中心有限公司 | MVB -SPI gateway |
Non-Patent Citations (4)
Title |
---|
GEORGE C. SACKETT: "《Cisco路由器手册》", 30 January 2000, 机械工业出版社, pages: 243 * |
李秉操等: "《单片机接口技术及在工业控制中的应用》", 31 December 1991, 陕西电子编辑部, pages: 175 * |
海博创作室: "《嵌入式控制器硬件设计》", 30 January 2002, 浦东电子出版社, pages: 11 * |
董少明: "单片机原理与应用技术", 北京理工大学出版社, pages: 175 - 177 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101808595B1 (en) | Transmitting multiple differential signals over a reduced number of physical channels | |
CN104796356B (en) | Vehicle-mounted Ethernet switch and signal transmitting and receiving and train weight linked method used for rail vehicle | |
ATE352802T1 (en) | DATA TRANSMISSION METHOD, SERIAL BUS SYSTEM AND CONNECTING UNIT FOR A PASSIVE BUS SUBSCRIBER | |
JPS60169253A (en) | Communication network having master-slave type series structure | |
US20130257527A1 (en) | Providing Voltage Isolation On A Single Semiconductor Die | |
CN105045746A (en) | Interface expanding device | |
CN104052462B (en) | A kind of isolation telecommunication circuit | |
CN203039928U (en) | Multi-screen interaction vehicle-mounted system based on Android system | |
CN204090025U (en) | Onboard wireless video system | |
CN203294099U (en) | CAN bus locomotive multi-connection system based on PAC controller | |
CN108614797A (en) | A kind of high low-frequency serial bus integrated interface of polymorphic type | |
CN206274660U (en) | A kind of processing system for video | |
CN106487667A (en) | MVB-SPI gateway | |
CN203225896U (en) | Control system based on interconnection of mobile phone and vehicle terminal | |
CN205005066U (en) | MVB -SPI gateway | |
CN202424755U (en) | Vehicle-mounted data communication device | |
WO2012083839A1 (en) | Electronic device and method for data transmission | |
CN204231390U (en) | Based on the ARCNET-HDLC gateway of C8051F040 core microprocessor | |
CN103507658B (en) | Battery-driven car and bus control system thereof | |
CN102568418A (en) | Vehicle-mounted display system | |
CN104539500B (en) | A kind of external device extension method of car-mounted terminal | |
CN106372014A (en) | Implementation method for converting PCIE (Peripheral Component Interface Express) bus into CPCI (Compact Peripheral Component Interconnect) bus | |
CN104717136A (en) | Gateway device | |
CN202422677U (en) | Vehicle-mounted display system | |
CN103645689B (en) | A kind of monobus transmitting device based on differential signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170308 |