CN107995081A - The system and method for a variety of communication bus conversions is supported at the same time - Google Patents
The system and method for a variety of communication bus conversions is supported at the same time Download PDFInfo
- Publication number
- CN107995081A CN107995081A CN201711488569.7A CN201711488569A CN107995081A CN 107995081 A CN107995081 A CN 107995081A CN 201711488569 A CN201711488569 A CN 201711488569A CN 107995081 A CN107995081 A CN 107995081A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- bus
- protocol
- interface
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 56
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 30
- 238000000034 method Methods 0.000 title claims description 17
- 230000002093 peripheral effect Effects 0.000 claims abstract description 17
- 238000006073 displacement reaction Methods 0.000 claims abstract description 8
- 238000004804 winding Methods 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 17
- 230000008859 change Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 claims description 5
- 238000013461 design Methods 0.000 claims description 4
- 238000012805 post-processing Methods 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims description 2
- 241000208340 Araliaceae Species 0.000 claims 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 1
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 1
- 235000008434 ginseng Nutrition 0.000 claims 1
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009897 systematic effect Effects 0.000 description 2
- 239000004744 fabric Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40143—Bus networks involving priority mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40228—Modbus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Communication Control (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to system that is a kind of while supporting a variety of communication bus conversions, the converting system includes hardware platform and software systems, the hardware platform is by arm processor, power module, data memory module, data cache module, two RS485 transceiver modules, CAN transceiver modules, Ethernet PHY chip forms hardware platform, the arm processor passes through peripheral hardware pin and data memory module, data cache module, RS485 transceiver modules, CAN transceiver modules, Ethernet PHY chip connects, SPI peripheral hardwares pin is connected with winding displacement seat on plate, it is connected by winding displacement with other equipment, the module is the main control module of this equipment.The power module is used to power;The data memory module is used for storage configuration and fault message;The data cache module is used for interim storage and the conversion of bus data bag;The RS485 transceiver modules one are connected with live 485 buses, and one is used to connect computer to device progress parameter configuration.
Description
Technical field
The present invention relates to a kind of communication switching unit, and in particular to a kind of to support a variety of communication buses to be converted into other at the same time
The system and method for a variety of communication buses, belongs to communication bus technologies field.
Background technology
CAN is the abbreviation of controller local area network (Controller Area Network, CAN), is extensive in the world
One of fieldbus of application.SPI is Serial Peripheral Interface (SPI)(Serial Peripheral Interface)Abbreviation, be one
Kind of high speed, full duplex, synchronous communication bus, for characteristic easy to use, nowadays more and more integrated chips this
Kind communication protocol.RS485 is a kind of cloth net mode being widely used now, and implementation is simple and convenient, supports the instrument of RS485
Sensor is very much.And Ethernet (Ethernet) is the most general communication protocol standard that current existing LAN uses.
These types communication modes are widely used in industrial control automation, road traffic control automation, industry collection at present
Dissipate in the fields such as compartment system, closed-circuit control, safety-protection system, this just brings the problem that interconnects of different communication modes.Institute
Changed with needing conversion equipment, and existing conversion equipment often only supports one kind to be converted to another or only support more
Kind is converted to another kind.So a variety of conversion equipments are needed to be connected when there are a variety of communication apparatus to need to interconnect at the scene
Connect.Than if any RS485 interface MODBUS rtu agreements, Ethernet interface Modbus Transmission Control Protocol and CAN interface CANopen agreements
Each one of equipment, and three equipment need mutually communication, it is desirable to which three kinds of conversion equipments are by three kinds of protocol conversions into same
A kind of bus protocol.At this moment any one equipment is needed with just needing two by two sets of conversion equipments during another device talk
Secondary conversion, this, which just brings the delay increase after the conversion of a variety of conversion equipments and often changes, once generally can all have 1-5ms
Delay, the various problems such as trouble point is increased, harness increases, it is difficult to search trouble point, cost increase, occupied space are excessive.Cause
This is badly in need of a kind of new designing scheme and solves these technical problems.
The content of the invention
The present invention is exactly to be directed to technical problem existing in the prior art, there is provided a kind of to support a variety of communication buses to turn at the same time
Change the device of other a variety of communication buses into, the program provides a kind of phase intercommunication based between CAN, SPI, RS485, Ethernet
News, the device that systematic parameter can configure so that only can realize that four kinds of communications are interconnected in real time using the device, solve
The various problems such as delay increases, trouble point is increased, harness increases are caused using a variety of conversion equipments, and are added on this basis excellent
First level is dispatched, the functions such as multiple threads, application layer protocol are expansible.
To achieve these goals, technical scheme is as follows, a kind of to support a variety of communication bus conversion systems at the same time
System, the system is by one virtual bus of structure, the parameter configured according to parameter configuration module, by a variety of data of reading
Its fieldbus to be changed of location position intelligent decision, the virtual bus are made of hardware platform and software platform, the hardware
Platform is used for the data for receiving, sending exterior total part, and software platform is used for processing conversion and receives bus data by hardware platform.
As a modification of the present invention, the parameter configuration module drives parameter module by communication, and priority judges mould
Block, translation-protocol judge that parameter module forms, and the communication driving parameter module is used for the initiation parameter of configuration driven program;
The priority judges to be used to configure the priority block operating parameter on virtual bus;Translation-protocol judges that parameter mould is used for root
Judge data frame software layer translation-protocol according to data address position and be sent to which communication interface;
As a modification of the present invention, the hardware platform include arm processor, power module, data memory module, two
RS485 transceiver modules, CAN transceiver modules, Ethernet PHY chip, the arm processor store mould by peripheral hardware pin and data
Block, RS485 transceiver modules, CAN transceiver modules, Ethernet PHY chip connection, SPI peripheral hardwares pin are connected with winding displacement seat on plate, lead to
Cross winding displacement to be connected with other equipment, which is the main control module of this equipment, and the power module is used to power;The data are deposited
Storage module is used for storage configuration and fault message;The RS485 transceiver modules one are connected with live 485 buses, and one is used for
Connect computer and parameter configuration is carried out to the device;The CAN transceiver modules are connected by CAN interface with Field Bus CAN;It is described
Ethernet PHY chip passes through RJ45 network socket access network based on ethernet.The system is without switching device, in operation without artificially cutting
Change, but according to the parameter of configuration, read the fieldbus to be changed of data address position intelligent decision.
As a modification of the present invention, the hardware platform further includes data cache module, and the arm processor passes through
Peripheral hardware pin connects data cache module, and the data cache module is used for interim storage and the conversion of virtual bus data packet.
As a modification of the present invention, the software systems include bottom software and upper procedure, the bottom software
Comprising embedded real time system, CAN bus driver, ethernet driver and USART drivers, the upper strata journey
Sequence include ICP/IP protocol stack LWIP, MODBUS rtu protocol, CANopen agreements, ModbusTCP agreements, custom protocol etc.,
Core virtual bus program, embedded real time system provide necessary programming interface, CAN bus driving journey for each software module
Sequence, ethernet driver, USART drivers are used to provide peripheral hardware configuration with using interface, and LWIP is provided to Ethernet
The offer correspondence such as the support of IP data packets, MODBUS rtu protocols, CANopen agreements, ModbusTCP agreements, custom protocol
The data that each bus receives are decoded into the virtual bus agreement of cost apparatus design with the support of layer protocol and are put into corresponding
Receive in data buffer storage, while the virtual bus protocol data for sending buffer area is encoded into corresponding application protocol data simultaneously
Send, preferential send of high priority data processing that each protocol module all makes priority high containing priority processing module is improved always
Line efficiency of transmission.The processing of virtual bus program is temporarily stored in the virtual bus being decoded into data cache module from application layer protocol
The data frame of agreement, he is the nucleus module of this device software system, other can be arbitrarily received and dispatched in order to reach each communication interface
The data and automatic decision of each interface bus are sent to the purpose of which target bus and application protocol, and the system constructs one
Virtual bus, the equipment on the virtual bus is the external bus on interface and the virtual unit of protocol module composition, this is virtual
Bus protocol in bus is the customized particular protocol of the system, which improves the flexibility of system, and equipment only needs to match somebody with somebody
Device configuration on virtual bus can be completed by putting the easy configuration of software, while also enhance the autgmentability of system, and equipment is only
The increase of application layer protocol need to can be completed by firmware upgrade.Priority block poll number first in virtual bus program
According to the reception data frame numerical digit of each bus in cache module, (whether the virtual unit namely checked on virtual bus, which has, is not located
The reception data of reason), the pending reception data of the non-zero proof of data frame numerical digit are such as received, then read the reception data
Address bit, treats that all of the port poll finishes the unified reception data address position read before and judges processing priority, soft
Part layer translation-protocol and transmission interface, are sent into corresponding application layer protocol by data encoding afterwards, are put into and corresponding send data
Buffer area etc. is to be sent, and address bit determines to send priority, software layer translation-protocol and transmission interface (such as Fig. 4) at this time.And count
Set according to the corresponding priority in address, software layer translation-protocol and transmission interface and matched somebody with somebody by computer end software by 485 interfaces
Put and be stored in memory module.
A kind of to support a variety of communication bus conversion methods at the same time, the method is as follows, and 1)By CAN, SPI, RS485, ether
Net is respectively connected into the bus at scene;2)485 interfaces of computer are connected with the configuration interface of the equipment, and use configuration
The corresponding priority in each interface data frame address position of software configuration, software layer translation-protocol and transmission interface and four kinds of communications connect
Mouth communications parameter configuration such as baud rate, master slave mode etc., and be stored in memory module, matching somebody with somebody for automatic loading last time is powered on every time
Put parameter;3)When some fieldbus sends data to interface, data frame enters ARM processing by corresponding communication module
Device, application layer protocol module (according to the setting of interface and parameter configuration can be MODBUS rtu protocols, CANopen agreements,
ModbusTCP agreements or custom protocol) protocol data frame is obtained by corresponding driver and is decoded as virtual bus
Protocol data frame and the interface data buffer area for being stored in oneself;4)When core virtual bus program module monitors to reception number
Have according to buffer area and read the address bit for receiving data frame in data buffer area during data first, judge that data frame turns according to address bit
Change and which interface be sent to, if there is the data frame that multiple communication interfaces receive to be sent to same communication interface, data at the same time
Processing module will judge to send priority according to address bit, post processing prioritized data frame and be put into corresponding transmission buffer area,
Application layer protocol module monitors to send buffer area in data frame after according to address bit definition be encoded to corresponding data
Frame format simultaneously sends the transmission function in its write-in communication driver.
Relative to the prior art, the invention has the advantages that, the program provide it is a kind of based on CAN, SPI, RS485, with
The device that mutual communication between netting very much, systematic parameter can configure so that only can realize that four kinds of communications are real using the device
When interconnect, solve using a variety of conversion equipments cause delay increase, trouble point is increased, harness increases, cost increases, is accounted for
With the various problems such as space is excessive, and running translative mode is automatically switched by software manual intervention is not required completely, and is cut
Change and controlled completely by data address position so that other universal standard agreements need not be changed, add the compatibility to various agreements
Property.The device has used virtual bus concept to carry out communication conversion so that can using only several conversion application protocol modules
To support a variety of transition forms so that this method possesses the advantages that simple in structure, stability is good, efficient, speed is fast.And
Add priority scheduling on the basis of this, the functions such as multiple threads, application layer protocol are expansible, so as to further add
The user experience of the system;What it is due to core data routine processes is to decode the virtual bus got by application layer protocol
Protocol data frame, can expanded application agreement so only needing to increase application protocol module so that the equipment can be by simple
Firmware upgrade support more application layer protocols.And core virtual bus program is each provided for four hardware interfaces and connect
Transmit and receive caching so that the device can handle the data frame of four hardware interfaces at the same time with multithreading, so as to reduce data processing
Time reduces transfer delay.
Brief description of the drawings
Fig. 1 is hardware architecture diagram of the present invention;
Fig. 2 is present procedure logical schematic;
Fig. 3 is schematic structural view of the invention.
Fig. 4 is virtual bus schematic diagram of the present invention
In figure:1st, arm processor;2nd, power module;3rd, data memory module;4th, RS485 debugging interfaces;5th, RS485 receives and dispatches mould
Block;6th, CAN transceiver modules;7th, Ethernet PHY chip;8th, SPI Peripheral Interfaces;9th, data cache module.
Embodiment:
In order to deepen the understanding of the invention to this, the present embodiment is described in detail below in conjunction with the accompanying drawings.
Embodiment 1:Referring to Fig. 1-Fig. 4, a kind of to support a variety of communication bus converting systems at the same time, the converting system includes
Hardware platform and software systems, the hardware platform is by arm processor 1, power module 2, data memory module 3, data buffer storage
9, two RS485 transceiver modules 5 of module, CAN transceiver modules 6, Ethernet PHY chip 7 form hardware platform, data cache module
Can increase system data processing amount and reduce data buffer zone overflow possibility, the arm processor 1 by peripheral hardware pin with
Data memory module 3, RS485 transceiver modules 5, CAN transceiver modules 6, Ethernet PHY chip 7 connect, SPI peripheral hardwares pin and plate
Upper winding displacement seat is connected, and is connected by winding displacement with other equipment, which is the main control module of this equipment.The power module is used for
Power supply;The data memory module is used for storage configuration and fault message;The RS485 transceiver modules one are total with scene 485
Line connects, and one is used to connect computer to device progress parameter configuration;The CAN transceiver modules pass through CAN interface and scene
CAN bus connects;The Ethernet PHY chip passes through RJ45 network socket access network based on ethernet.The system is being transported without switching device
Without artificially switching in row, but according to the parameter of configuration, the fieldbus to be changed of data address position intelligent decision is read.
The software systems include bottom software and upper procedure, and the bottom software includes embedded real time system, CAN bus drives
Program, ethernet driver and USART drivers, the upper procedure include ICP/IP protocol stack LWIP, MODBUS
Rtu protocol, CANopen agreements, ModbusTCP agreements, custom protocol etc., core virtual bus program, embedded system in real time
Unite and provide necessary programming interface, CAN bus driver, ethernet driver, USART driving journeys for each software module
Sequence is used to provide configuration to peripheral hardware and uses interface, support of the LWIP offers to ethernet ip data packet, MODBUS rtu protocols,
What the support that CANopen agreements, ModbusTCP agreements, custom protocol etc. provide to application layer protocol received each bus
The virtual bus agreement of data decoding cost apparatus design is simultaneously put into corresponding reception data buffer storage, while is cached sending
The virtual bus protocol data in area is encoded into corresponding application protocol data and sends, and each protocol module all contains priority
Preferential send of high priority data processing that processing module makes priority high improves bus transfer efficiency.The processing of virtual bus program is temporary
The data frame for the virtual bus agreement being decoded into data cache module from application layer protocol, he is this device software system
Nucleus module, in order to reach, each communication interface can arbitrarily receive and dispatch the data of other each interface bus and automatic decision is sent to
The purpose of which target bus and application protocol, the system construct a virtual bus, and the equipment on the virtual bus is connects
The virtual unit of external bus on mouth and protocol module composition, the bus protocol on the virtual bus are customized for the system
Particular protocol, the design improve the flexibility of system, and it is virtual total that equipment only needs the easy configuration of configuration software to complete
Built-in unit configures, while also enhances the autgmentability of system, and equipment only needs that by firmware upgrade application layer association can be completed
The increase of view.The reception data frame of each bus in priority block polling data cache module first in virtual bus program
Numerical digit (whether the virtual unit namely checked on virtual bus has untreated reception data), it is non-such as to receive data frame numerical digit
The pending reception data of zero proof, then read the address bit of the reception data, treat that all of the port poll finishes unified root
Judge processing priority, software layer translation-protocol and transmission interface according to the reception data address position read before, be sent into afterwards
Data encoding is put into and corresponding sends that data buffer area etc. is to be sent, and address bit determines to send out at this time by corresponding application layer protocol
Send priority, software layer translation-protocol and transmission interface (such as Fig. 4).And the corresponding priority of data address, software layer conversion association
Negotiation transmission interface sets and is configured by computer end software by 485 interfaces and be stored in memory module.
Embodiment 2:Referring to Fig. 1-Fig. 3, a kind of to support a variety of communication bus conversion methods at the same time, the method is as follows, and 1)
CAN, SPI, RS485, Ethernet are respectively connected into the bus at scene;2)By 485 interfaces of computer and matching somebody with somebody for the equipment
Put interface connection, and using configuration software configure the corresponding priority in each interface data frame address position, software layer translation-protocol and
Transmission interface and four kinds of communication interface communications parameter configuration such as baud rates, master slave mode etc., and be stored in memory module, often
The secondary configuration parameter for powering on automatic loading last time;3)When some fieldbus sends data to interface, data frame passes through phase
The communication module answered enters arm processor, application layer protocol module, can be MODBUS according to the setting of interface and parameter configuration
Rtu protocol, CANopen agreements, ModbusTCP agreements or custom protocol, agreement number is obtained by corresponding driver
According to frame and it is decoded as virtual bus protocol data frame and is stored in the interface data buffer area of oneself;4)When core virtual bus
Program module monitors that receiving data buffer area has the address bit for being read first during data and receiving data frame in data buffer area, root
Judge which interface data frame conversion is sent to according to address bit, if there is the data frame that multiple communication interfaces receive to be sent at the same time
Same communication interface, data processing module will be judged according to address bit send priority, post processing prioritized data frame and put
Enter corresponding transmission buffer area, being defined after application layer protocol module monitors to the data frame sent in buffer area according to address bit will
Its transmission function for being encoded to corresponding data frame format and writing it in communication driver is sent.
In such scheme, when RS485 fieldbus sends data with MODBUS RTU application protocols to interface, data frame
Arm processor serial ports peripheral hardware buffer area is entered by RS485 transceiver modules, MODBUS RTU application protocol modules judge data frame
Whether meet protocol rule, do not meet discarding, meet, be decoded into virtual bus protocol data frame and be put into RS485 reception data
The reception data frame numerical digit of RS485 buffer areas is simultaneously added one by buffer area.When the priority block in virtual bus program is polled to
The reception data frame numerical digit of RS485 buffer areas just reads the address bit of the reception data when non-zero, after treating all of the port poll
Priority is judged according to data address position, if the data frame highest priority in RS485 order cachings area or the only number
Called switch target agreement is then determined according to information of address bit according to frame, it is assumed that define judgement herein according to address bit and be converted to
The ModbusTCP agreements of Ethernet interface then place data into Ethernet interface and send data buffer area and call ModbusTCP
Agreement is encoded and sent.
Similarly RS485 general line systems CAN bus, RS485 general line systems spi bus, RS485 general line systems CAN bus and
Spi bus and Ethernet, CAN bus conversion RS485 buses, CAN bus conversion spi bus, CAN bus conversion Ethernet etc.
It is all similar to the above embodiments.
It should be noted that above-described embodiment, is not used for limiting this protection scope of the present invention, in above-mentioned technical proposal
On the basis of made equivalents or replacement each fall within the scope that this claims in the present invention is protected.
Claims (7)
1. a kind of support a variety of communication bus converting systems at the same time, it is characterised in that the system is virtual total by building one
Line, the parameter configured according to parameter configuration module, by its scene to be changed of a variety of data address positions intelligent decision of reading
Bus, the virtual bus are made of hardware platform and software platform, and the hardware platform is used for the number for receiving, sending exterior total part
According to software platform is used to handle to change receives bus data by hardware platform.
It is 2. according to claim 1 while support a variety of communication bus converting systems, it is characterised in that the parameter configuration
Module drives parameter module, priority judgment module by communication, and translation-protocol judges that parameter module forms, the communication driving ginseng
Digital-to-analogue block is used for the initiation parameter of configuration driven program;The priority judges to be used to configure the priority mould on virtual bus
Block operating parameter;Translation-protocol judges that parameter mould is used to judge data frame software layer translation-protocol and transmission according to data address position
To which communication interface.
It is 3. according to claim 2 while support a variety of communication bus converting systems, it is characterised in that the hardware platform
Including arm processor, power module, data memory module, two RS485 transceiver modules, CAN transceiver modules, ethernet PHY core
Piece, the arm processor pass through peripheral hardware pin and data memory module, RS485 transceiver modules, CAN transceiver modules, Ethernet
PHY chip connects, and SPI peripheral hardwares pin is connected with winding displacement seat on plate, is connected by winding displacement with other equipment, which is this equipment
Main control module, the power module be used for power;The data memory module is used for storage configuration and fault message;It is described
RS485 transceiver modules one are connected with live 485 buses, and one is used to connect computer to device progress parameter configuration;It is described
CAN transceiver modules are connected by CAN interface with Field Bus CAN;The Ethernet PHY chip is accessed by RJ45 network sockets
Ethernet.
It is 4. according to claim 3 while support a variety of communication bus converting systems, it is characterised in that the hardware platform
Data cache module is further included, the arm processor connects data cache module, the data cache module by peripheral hardware pin
Interim storage and conversion for virtual bus data packet.
5. according to claim 3 or 4 it is described while support a variety of communication bus converting systems, it is characterised in that the software
System includes bottom software and upper procedure, the bottom software include embedded real time system, CAN bus driver, with
Too net driver and USART drivers, the upper procedure are assisted comprising ICP/IP protocol stack LWIP, MODBUS RTU
View, CANopen agreements, ModbusTCP agreements, custom protocol, core virtual bus program, embedded real time system are each
Software module provides necessary programming interface, and CAN bus driver, ethernet driver, USART drivers are used for pair
Peripheral hardware provides configuration with using interface, and LWIP provides the support to ethernet ip data packet, MODBUS rtu protocols, CANopen
The data that each bus receives are decoded into by the support that agreement, ModbusTCP agreements, custom protocol are provided to application layer protocol
The virtual bus agreement of present apparatus design is simultaneously put into corresponding reception data buffer storage, while will send the virtual total of buffer area
Wire protocol data encoding is into corresponding application protocol data and sends.
It is 6. according to claim 5 while support a variety of communication bus converting systems, it is characterised in that each agreement mould
Block all improves bus transfer efficiency containing preferential send of high priority data processing that priority processing module makes priority high, virtual total
Sequence of threads processing is temporarily stored in the data frame for the virtual bus agreement being decoded into data cache module from application layer protocol, data
The corresponding priority in address, software layer translation-protocol and transmission interface set and are configured by computer end software by 485 interfaces
And it is stored in memory module.
7. using the conversion method of system described in claim 1-6 any one, it is characterised in that the method is as follows, and 1)Will
CAN, SPI, RS485, Ethernet are respectively connected into the bus at scene;2)By the configuration of 485 interfaces of computer and the equipment
Interface connects, and configures the corresponding priority in each interface data frame address position, software layer translation-protocol and hair using configuration software
Interface and four kinds of communication interface communications parameter configuration such as baud rates, master slave mode etc. are sent, and are stored in memory module, every time
Power on the configuration parameter of automatic loading last time;3)When some fieldbus sends data to interface, data frame passes through corresponding
Communication module enter arm processor, application layer protocol module is obtained by corresponding driver and protocol data frame and decoded
For virtual bus protocol data frame and it is stored in the interface data buffer area of oneself;4)When core virtual bus program module is supervised
Measuring reception data buffer area has the address bit for being read first during data and receiving data frame in data buffer area, is sentenced according to address bit
Which interface disconnected data frame conversion is sent to, if there is the data frame that multiple communication interfaces receive to be sent to same communication at the same time
Interface, data processing module will be judged according to address bit send priority, post processing prioritized data frame and be put into corresponding hair
Buffer area is sent, is defined after application layer protocol module monitors to the data frame sent in buffer area according to address bit and is encoded to phase
The data frame format the answered and transmission function for writing it in communication driver is sent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711488569.7A CN107995081A (en) | 2017-12-29 | 2017-12-29 | The system and method for a variety of communication bus conversions is supported at the same time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711488569.7A CN107995081A (en) | 2017-12-29 | 2017-12-29 | The system and method for a variety of communication bus conversions is supported at the same time |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107995081A true CN107995081A (en) | 2018-05-04 |
Family
ID=62040358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711488569.7A Pending CN107995081A (en) | 2017-12-29 | 2017-12-29 | The system and method for a variety of communication bus conversions is supported at the same time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107995081A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109298667A (en) * | 2018-11-09 | 2019-02-01 | 美钻深海能源科技研发(上海)有限公司 | Data processing system and its data processing method for submerged density acquisition equipment |
CN109510761A (en) * | 2018-12-07 | 2019-03-22 | 天津津航计算技术研究所 | A kind of one-to-many bus gateway apparatus based on SRIO |
CN109525474A (en) * | 2018-12-06 | 2019-03-26 | 连云港杰瑞深软科技有限公司 | A kind of multiplex roles protocol-intelligent converter and conversion method based on Linux platform |
CN110677434A (en) * | 2019-10-23 | 2020-01-10 | 珠海格力电器股份有限公司 | Data transmission device and method |
CN111221299A (en) * | 2019-12-10 | 2020-06-02 | 襄阳华中科技大学先进制造工程研究院 | Intelligent module for numerical control system interconnection and expansion functions and communication method thereof |
CN112583838A (en) * | 2020-12-22 | 2021-03-30 | 北京神经元网络技术有限公司 | Protocol conversion device, method, equipment and medium for Autbus bus and Can bus |
CN113297125A (en) * | 2021-06-11 | 2021-08-24 | 深圳一道创新技术有限公司 | Interconnection communication system and method of general SMT equipment |
CN113884895A (en) * | 2021-11-15 | 2022-01-04 | 武汉长海高新技术有限公司 | CAN bus-Ethernet data conversion device and method for battery test |
CN114338274A (en) * | 2021-12-30 | 2022-04-12 | 上海交通大学 | Heterogeneous industrial field bus fusion method and system |
CN115174706A (en) * | 2022-09-08 | 2022-10-11 | 中国电子科技集团公司第十五研究所 | Method and system for converting multi-channel bus into Ethernet |
WO2022267318A1 (en) * | 2021-06-25 | 2022-12-29 | 许继电气股份有限公司 | Multi-master-switch-type high-speed interconnection backplane bus, control method therefor, and processing system thereof |
CN115665271A (en) * | 2022-08-09 | 2023-01-31 | 深圳市九牛一毛智能物联科技有限公司 | Industrial bus data parsing and escaping method, device and system |
CN115866049A (en) * | 2023-02-22 | 2023-03-28 | 中国兵器装备集团自动化研究所有限公司 | Hongmong system access interconnection device |
CN116962112A (en) * | 2023-09-20 | 2023-10-27 | 中国船舶集团有限公司第七〇七研究所 | Double-machine full duplex data transparent transmission method based on standard SPI bus connection |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1482782A (en) * | 2003-06-20 | 2004-03-17 | 上海大学 | Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus |
CN103139059A (en) * | 2013-02-19 | 2013-06-05 | 中国矿业大学 | Coal mine electromechanical equipment data acquisition and analysis gateway |
CN103825883A (en) * | 2014-01-16 | 2014-05-28 | 燕山大学 | Multi-protocol conversion equipment based on wireless ZigBee, CAN bus and MODBUS/TCP and realization method thereof |
CN104901877A (en) * | 2015-06-17 | 2015-09-09 | 燕山大学 | Multi-interface self-adaptive wireless heterogeneous network protocol conversion method and communication device |
-
2017
- 2017-12-29 CN CN201711488569.7A patent/CN107995081A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1482782A (en) * | 2003-06-20 | 2004-03-17 | 上海大学 | Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus |
CN103139059A (en) * | 2013-02-19 | 2013-06-05 | 中国矿业大学 | Coal mine electromechanical equipment data acquisition and analysis gateway |
CN103825883A (en) * | 2014-01-16 | 2014-05-28 | 燕山大学 | Multi-protocol conversion equipment based on wireless ZigBee, CAN bus and MODBUS/TCP and realization method thereof |
CN104901877A (en) * | 2015-06-17 | 2015-09-09 | 燕山大学 | Multi-interface self-adaptive wireless heterogeneous network protocol conversion method and communication device |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109298667A (en) * | 2018-11-09 | 2019-02-01 | 美钻深海能源科技研发(上海)有限公司 | Data processing system and its data processing method for submerged density acquisition equipment |
CN109525474A (en) * | 2018-12-06 | 2019-03-26 | 连云港杰瑞深软科技有限公司 | A kind of multiplex roles protocol-intelligent converter and conversion method based on Linux platform |
CN109510761A (en) * | 2018-12-07 | 2019-03-22 | 天津津航计算技术研究所 | A kind of one-to-many bus gateway apparatus based on SRIO |
CN110677434A (en) * | 2019-10-23 | 2020-01-10 | 珠海格力电器股份有限公司 | Data transmission device and method |
CN111221299A (en) * | 2019-12-10 | 2020-06-02 | 襄阳华中科技大学先进制造工程研究院 | Intelligent module for numerical control system interconnection and expansion functions and communication method thereof |
CN112583838A (en) * | 2020-12-22 | 2021-03-30 | 北京神经元网络技术有限公司 | Protocol conversion device, method, equipment and medium for Autbus bus and Can bus |
CN112583838B (en) * | 2020-12-22 | 2022-11-01 | 北京神经元网络技术有限公司 | Protocol conversion device, method, equipment and medium for Autbus bus and Can bus |
CN113297125A (en) * | 2021-06-11 | 2021-08-24 | 深圳一道创新技术有限公司 | Interconnection communication system and method of general SMT equipment |
CN113297125B (en) * | 2021-06-11 | 2024-05-07 | 深圳一道创新技术有限公司 | Interconnection communication system and method of general SMT equipment |
WO2022267318A1 (en) * | 2021-06-25 | 2022-12-29 | 许继电气股份有限公司 | Multi-master-switch-type high-speed interconnection backplane bus, control method therefor, and processing system thereof |
CN113884895A (en) * | 2021-11-15 | 2022-01-04 | 武汉长海高新技术有限公司 | CAN bus-Ethernet data conversion device and method for battery test |
CN114338274A (en) * | 2021-12-30 | 2022-04-12 | 上海交通大学 | Heterogeneous industrial field bus fusion method and system |
CN115665271A (en) * | 2022-08-09 | 2023-01-31 | 深圳市九牛一毛智能物联科技有限公司 | Industrial bus data parsing and escaping method, device and system |
CN115174706A (en) * | 2022-09-08 | 2022-10-11 | 中国电子科技集团公司第十五研究所 | Method and system for converting multi-channel bus into Ethernet |
CN115866049A (en) * | 2023-02-22 | 2023-03-28 | 中国兵器装备集团自动化研究所有限公司 | Hongmong system access interconnection device |
CN115866049B (en) * | 2023-02-22 | 2023-05-16 | 中国兵器装备集团自动化研究所有限公司 | HongMong system access interconnection device |
CN116962112A (en) * | 2023-09-20 | 2023-10-27 | 中国船舶集团有限公司第七〇七研究所 | Double-machine full duplex data transparent transmission method based on standard SPI bus connection |
CN116962112B (en) * | 2023-09-20 | 2023-12-15 | 中国船舶集团有限公司第七〇七研究所 | Double-machine full duplex data transparent transmission method based on standard SPI bus connection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107995081A (en) | The system and method for a variety of communication bus conversions is supported at the same time | |
US5907553A (en) | Power savings in multiple technology physical layer devices supporting autonegotiation | |
ES2293051T3 (en) | PROCEDURE AND NODE FOR PARALLEL USE OF A COMMUNICATION NETWORK FOR REAL-TIME APPLICATIONS AND NON-REAL-TIME APPLICATIONS. | |
CN101325551B (en) | Method and device for processing message | |
CN101252537B (en) | Switching network communicating system, method and master control board | |
EP1775884B1 (en) | Apparatus and method of remote physical layer auto-negotiation | |
CN110299999A (en) | A kind of train real-time ethernet TRDP network interface card based on Linux platform | |
CN108011797B (en) | Ethernet communication system based on 1553B protocol | |
CN102195946A (en) | Intelligent communication controller based on ARM (Advanced RISC Machines) technology | |
EP1446923B1 (en) | An interface and related methods for dynamic channelization in an ethernet architecture | |
CN102025612A (en) | Seamless network access device based on wireless fidelity (Wi-Fi) and network access method thereof | |
CN1216475C (en) | Embedded gate for realizing interconnection between networks with different structures | |
CN101106504A (en) | Distributed communication system for intelligent independent robot based on CAN bus | |
CN102255800A (en) | Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages | |
CN106533934A (en) | Border gateway applicable to all interconnected manufacturing networks | |
CN101753486B (en) | Industrial automation field bus gateway equipment | |
CN101355589B (en) | Ethernet equipment, Ethernet communication system and method for configuring Ethernet equipment | |
EP2544097A1 (en) | Interfacing communications | |
CN1972314B (en) | Serial interface simulation method on Ethernet interface and component applying the same | |
CN201584993U (en) | GFP type 4E1/Ethernet protocol converter | |
CN108521416A (en) | A kind of ECN boards | |
CN104378313B (en) | Multiconfiguration intelligent network switch | |
CN2749167Y (en) | Terminal of power load monitoring and management system using controller LAN | |
CN105281999B (en) | A kind of bus-type driver port and its control method | |
CN208079287U (en) | A kind of communication manager |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 221116 No. second Zhujianglu Road Industrial Park, Xuzhou high tech Zone, Jiangsu 7 Applicant after: CHINA MINING DRIVES & AUTOMATION Co.,Ltd. Address before: 221116 Kunlun road 9006-1, Copper Mt. Economic Development Zone, Xuzhou, Jiangsu Applicant before: CHINA MINING DRIVES & AUTOMATION Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180504 |