CN111224852A - Communication system and communication method for remote IO equipment - Google Patents
Communication system and communication method for remote IO equipment Download PDFInfo
- Publication number
- CN111224852A CN111224852A CN201811425771.XA CN201811425771A CN111224852A CN 111224852 A CN111224852 A CN 111224852A CN 201811425771 A CN201811425771 A CN 201811425771A CN 111224852 A CN111224852 A CN 111224852A
- Authority
- CN
- China
- Prior art keywords
- linked list
- master
- communication
- bus configuration
- configuration linked
- 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.)
- Granted
Links
Images
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/40006—Architecture of a communication node
-
- 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/40006—Architecture of a communication node
- H04L12/40019—Details regarding a bus master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Abstract
The invention discloses a communication system and a method for remote IO equipment. The system comprises a master and a plurality of slaves connected to the master, wherein the master comprises: the access control module is configured to traverse the number and types of all the slaves connected to the master to generate a bus configuration linked list; a communication module configured to communicate with the slave based on the bus configuration linked list. According to the system disclosed by the invention, when the IO requirements of the user are changed, the product configuration can be directly increased or decreased without developing a new back plate. And the slave module does not need to be configured with addresses, can be randomly collocated and transposed, and greatly improves the flexibility of products.
Description
Technical Field
The invention relates to the field of rail transit, in particular to a communication system and a communication method for remote IO (input/output) equipment.
Background
In the prior art, a Remote IO device (RIOM) is a common device, and particularly, in the field of rail transit, the application of the Remote IO device is very wide. Which typically employs an internal master-slave communication mechanism.
Remote IO devices typically employ an internal master-slave communication mechanism. Internal master-slave access by RIOM typically employs parallel buses, such as: PCI BUS, AMS BUS, P-BUS BUS, etc. The parallel bus requires complex backplane connection points, special backplane equipment is required, and the chassis configuration is fixed, which greatly limits the flexibility of the RIOM.
The remote IO equipment of the rail transit has increasingly higher requirements on configuration diversification and flexibility. Due to the limitation of bus flexibility, the conventional remote IO device needs to have a very large number of backplane configurations to meet various configuration requirements. Therefore, the development and maintenance cost of the product is high, and the response speed is low.
Disclosure of Invention
Aiming at the problem of insufficient communication flexibility of remote IO equipment in the prior art, the invention provides a communication system aiming at the remote IO equipment, which comprises a host and a plurality of slave machines connected to the host, wherein the host comprises:
the access control module is configured to traverse the number and types of all the slaves connected to the master to generate a bus configuration linked list;
a communication module configured to communicate with the slave based on the bus configuration linked list.
In an embodiment, the access control module is configured to traverse the number and types of all slaves connected to the master at the initial power-on time of the system, and generate the bus configuration linked list.
In one embodiment:
the communication module is configured to communicate with all the slave machines connected to the master machine in a single communication cycle;
and the access control module is configured to compare the communication result with the currently used bus configuration linked list after a single communication cycle is finished, and traverse the number and the types of all the slave machines connected to the host again to generate a new bus configuration linked list if the communication result is inconsistent with the currently used bus configuration linked list.
In one embodiment, the master and the slaves are connected by a serial bus.
In one embodiment, the serial bus employs a first-in-first-out queue ring bus.
In one embodiment, the serial bus employs a 9V bus level.
In one embodiment, the host accesses all of the buses through a set of four signal buses including a clock signal line, a latch signal line, an output signal line, and an input signal line.
In one embodiment, the host synchronizes the output signal line, the input acquisition on the input signal line, and the data output by a latch signal on the latch signal line.
The invention also provides a communication method for the remote IO equipment, which comprises the following steps:
traversing the number and types of all the slaves connected to the host to generate a bus configuration linked list;
and carrying out communication between the host and the slave on the basis of the bus configuration linked list.
In one embodiment, the method comprises:
traversing the number and types of all the slave machines connected to the host machine during the system power-on initial operation to generate a bus configuration linked list;
performing communication between the master and the slaves based on the bus configuration linked list, wherein the master communicates with all slaves connected to the master in a single communication cycle;
and comparing the communication result with the currently used bus configuration linked list after the completion of a single communication cycle, and traversing the number and types of all the slave machines connected to the host again to generate a new bus configuration linked list if the communication result is inconsistent with the currently used bus configuration linked list.
According to the system disclosed by the invention, when the IO requirements of the user are changed, the product configuration can be directly increased or decreased without developing a new back plate. And the slave module does not need to be configured with addresses, can be randomly collocated and transposed, and greatly improves the flexibility of products.
Additional features and advantages of the invention will be set forth in the description which follows. Also, some of the features and advantages of the invention will be apparent from the description, or may be learned by practice of the invention. The objectives and some of the advantages of the invention may be realized and attained by the process particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIGS. 1 and 2 are flow diagrams of methods according to embodiments of the invention;
fig. 3 and 4 are schematic system configurations according to embodiments of the present invention.
Detailed Description
The following detailed description will be provided for the embodiments of the present invention with reference to the accompanying drawings and examples, so that the practitioner of the present invention can fully understand how to apply the technical means to solve the technical problems, achieve the technical effects, and implement the present invention according to the implementation procedures. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
Remote IO devices typically employ an internal master-slave communication mechanism. Internal master-slave access by RIOM typically employs parallel buses, such as: PCI BUS, AMS BUS, P-BUS BUS, etc. The parallel bus requires complex backplane connection points, special backplane equipment is required, and the chassis configuration is fixed, which greatly limits the flexibility of the RIOM.
The remote IO equipment of the rail transit has increasingly higher requirements on configuration diversification and flexibility. Due to the limitation of bus flexibility, the conventional remote IO device needs to have a very large number of backplane configurations to meet various configuration requirements. Therefore, the development and maintenance cost of the product is high, and the response speed is low.
The invention provides a communication system and a communication method for remote IO equipment, aiming at the problem of insufficient communication flexibility of the remote IO equipment in the prior art. The following detailed description of the system architecture and the detailed flow of the method execution according to embodiments of the present invention is based on the accompanying drawings, in which the steps shown in the flow chart of the drawing may be executed in a computer system containing instructions such as a set of computer-executable instructions. Although a logical order of steps is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In one embodiment, as shown in fig. 1, in the method of the present invention, first, the number and types of all slaves connected to the master are traversed (S110), and a bus configuration linked list is generated (S111); and then the communication between the master machine and the slave machine is carried out based on the bus configuration linked list. Therefore, the slave module does not need to be configured with addresses, can be randomly collocated and transposed, and greatly improves the flexibility of products. And when the IO requirements of the users are changed, new back plates do not need to be developed, and product configuration can be directly increased and decreased.
Further, in an embodiment, the generation of the bus configuration linked list is performed at the beginning of the system operation, and it is verified whether the currently used bus configuration linked list is correct in time in the communication process, and if not, the latest bus configuration linked list is generated in time according to the current hardware configuration. Therefore, the breakdown of the whole communication system caused by the failure or disconnection of a single slave in the communication system can be avoided to the maximum extent. And moreover, corresponding communication configuration can be automatically carried out when the communication system increases or decreases the slave machines, and the communication system with the changed hardware configuration can be put into operation at the fastest speed.
Specifically, as shown in fig. 2, in an embodiment, when the system is initially powered on (S200), the number and types of all slaves connected to the master are first traversed (S210), and a bus configuration linked list is generated (S211); communication between the master and the slave may then be performed based on the bus configuration linked list (S220).
During the communication process, the master machine communicates with all the slave machines connected to the master machine in a single communication period. The host judges whether a single communication cycle is finished (S221), if not, the communication is continued (S220), if so, the communication result and the currently used bus configuration linked list are compared after the single communication cycle is finished (S230), and if so, the communication of the next cycle is carried out (S220). If not, the number and types of all the slaves connected to the master are traversed again (S210), and a new bus configuration linked list is generated (S211).
According to the method, the invention also provides a communication system for the remote IO equipment. As shown in fig. 3, in an embodiment, the system includes a master (master 310) and a plurality of slaves (slaves 320, 330, …) connected to master 310, wherein master 310 includes:
an access control module 311 configured to traverse the number and types of all slaves (slaves 320, 330, …) connected to the master 310, and generate a bus configuration linked list;
a communication module 312 configured to communicate with the slaves 320, 330, … based on the bus configuration linked list.
Further, in an embodiment, the access control module of the master is configured to traverse the number and types of all slaves connected to the master during the system power-on initial operation, and generate the bus configuration linked list.
Further, in one embodiment:
the communication module of the master machine is configured to communicate with all slave machines connected to the master machine in a single communication period;
the access control module is configured to compare the communication result with the currently used bus configuration linked list after a single communication cycle is completed, if the communication result is consistent with the currently used bus configuration linked list, the communication module is informed to carry out communication in the next cycle, and if the communication result is inconsistent with the currently used bus configuration linked list, the number and the types of all the slave machines connected to the host machine are traversed again to generate a new bus configuration linked list.
Further, in one embodiment, the master and the plurality of slaves of the system are connected by a serial bus.
Specifically, in one embodiment, the serial bus connecting the master and the slave adopts a first-in first-out queue (FIFO) ring bus.
Furthermore, in order to ensure the anti-interference capability, a serial bus for connecting the host computer and the slave computer adopts a 9V bus level.
Further, in one embodiment, a host of the system accesses all of the masters through a set of four-signal buses including a CLOCK signal line (CLOCK), a LATCH signal Line (LATCH), an output signal line (DOUT), and an input signal line (DIN).
Further, in one embodiment, the host synchronizes the output signal line, the input acquisition on the input signal line, and the data output by the latch signal on the latch signal line.
Specifically, as shown in fig. 4, in one embodiment, the host 410 includes an access control module 411 and a communication module 412. The master 410 accesses the slaves 420 and 430 through a set of four signal buses. The four signal lines are respectively: CLOCK, LATCH, DOUT, DIN.
The slave 420 includes a DATA module 421 and a communication module 422, where the DATA module 421 is used to store input/output DATA (IO DATA), and the communication module 422 adopts first-in first-out access (FIFO) to perform DATA interaction with the DATA module 421.
The slave 430 includes a DATA module 431 and a communication module 432, wherein the DATA module 431 is used for storing input/output DATA (IO DATA), and the communication module 432 performs DATA interaction with the DATA module 431 by using first-in first-out access (FIFO).
In CLOCK synchronization with the master 410, the master sends output information via DOUT and retrieves input information via DIN, and the slaves 420 and 430 perform IO input and output functions for the LATCH signals.
According to the system disclosed by the invention, when the IO requirements of the user are changed, the product configuration can be directly increased or decreased without developing a new back plate. And the slave module does not need to be configured with addresses, can be randomly collocated and transposed, and greatly improves the flexibility of products.
It is to be understood that the disclosed embodiments of the invention are not limited to the particular structures, process steps, or materials disclosed herein but are extended to equivalents thereof as would be understood by those ordinarily skilled in the relevant arts. It is also to be understood that the terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting.
Reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, appearances of the phrase "an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. There are various other embodiments of the method of the present invention. Various corresponding changes or modifications may be made by those skilled in the art without departing from the spirit of the invention, and these corresponding changes or modifications are intended to fall within the scope of the appended claims.
Claims (10)
1. A communication system for remote IO devices, the system comprising a master and a plurality of slaves connected to the master, wherein the master comprises:
the access control module is configured to traverse the number and types of all the slaves connected to the master to generate a bus configuration linked list;
a communication module configured to communicate with the slave based on the bus configuration linked list.
2. The system of claim 1, wherein the access control module is configured to generate the bus configuration linked list by traversing the number and types of all slaves connected to the master at system power-on initialization.
3. The system of claim 1, wherein:
the communication module is configured to communicate with all the slave machines connected to the master machine in a single communication cycle;
and the access control module is configured to compare the communication result with the currently used bus configuration linked list after a single communication cycle is finished, and traverse the number and the types of all the slave machines connected to the host again to generate a new bus configuration linked list if the communication result is inconsistent with the currently used bus configuration linked list.
4. The system of claim 1, wherein the master is connected to a plurality of the slaves using a serial bus.
5. The system of claim 4, wherein the serial bus is implemented as a first-in-first-out queue ring bus.
6. The system according to claim 4 or 5, characterized in that the serial bus adopts a 9V bus level.
7. The system of any one of claims 4 to 6, wherein the host accesses all of the switches through a set of four signal buses including a clock signal line, a latch signal line, an output signal line, and an input signal line.
8. The system of claim 7, wherein the host synchronizes the output signal line, the input acquisition on the input signal line, and the data output by a latch signal on the latch signal line.
9. A communication method for a remote IO device, the method comprising:
traversing the number and types of all the slaves connected to the host to generate a bus configuration linked list;
and carrying out communication between the host and the slave on the basis of the bus configuration linked list.
10. The method of claim 9, wherein the method comprises:
traversing the number and types of all the slave machines connected to the host machine during the system power-on initial operation to generate a bus configuration linked list;
performing communication between the master and the slaves based on the bus configuration linked list, wherein the master communicates with all slaves connected to the master in a single communication cycle;
and comparing the communication result with the currently used bus configuration linked list after the completion of a single communication cycle, and traversing the number and types of all the slave machines connected to the host again to generate a new bus configuration linked list if the communication result is inconsistent with the currently used bus configuration linked list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811425771.XA CN111224852B (en) | 2018-11-27 | 2018-11-27 | Communication system and communication method for remote IO equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811425771.XA CN111224852B (en) | 2018-11-27 | 2018-11-27 | Communication system and communication method for remote IO equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111224852A true CN111224852A (en) | 2020-06-02 |
CN111224852B CN111224852B (en) | 2022-09-23 |
Family
ID=70827969
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811425771.XA Active CN111224852B (en) | 2018-11-27 | 2018-11-27 | Communication system and communication method for remote IO equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111224852B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222377A (en) * | 2007-11-23 | 2008-07-16 | 深圳国人通信有限公司 | Method and device for processing slave machine parameter in distributed master-salve machine communication |
CN102347879A (en) * | 2011-05-23 | 2012-02-08 | 大连理工计算机控制工程有限公司 | D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network |
CN105573951A (en) * | 2015-12-24 | 2016-05-11 | 哈尔滨理工大学 | AHB interface system for stream data transmission |
CN106249687A (en) * | 2016-08-31 | 2016-12-21 | 北京和利时智能技术有限公司 | A kind of method of backboard communication |
CN106872849A (en) * | 2017-02-24 | 2017-06-20 | 今创科技有限公司 | The device interior IO method of samplings, device and system |
CN108780429A (en) * | 2016-03-31 | 2018-11-09 | 英特尔公司 | Error handling techniques for High Speed I/O data transmission |
-
2018
- 2018-11-27 CN CN201811425771.XA patent/CN111224852B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222377A (en) * | 2007-11-23 | 2008-07-16 | 深圳国人通信有限公司 | Method and device for processing slave machine parameter in distributed master-salve machine communication |
CN102347879A (en) * | 2011-05-23 | 2012-02-08 | 大连理工计算机控制工程有限公司 | D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network |
CN105573951A (en) * | 2015-12-24 | 2016-05-11 | 哈尔滨理工大学 | AHB interface system for stream data transmission |
CN108780429A (en) * | 2016-03-31 | 2018-11-09 | 英特尔公司 | Error handling techniques for High Speed I/O data transmission |
CN106249687A (en) * | 2016-08-31 | 2016-12-21 | 北京和利时智能技术有限公司 | A kind of method of backboard communication |
CN106872849A (en) * | 2017-02-24 | 2017-06-20 | 今创科技有限公司 | The device interior IO method of samplings, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN111224852B (en) | 2022-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103064805B (en) | SPI controller and communication means | |
RU2401452C2 (en) | Method for data transmission in communication system link messages as well as communication module, communication system subscriber unit and communication system for this method implementation | |
CN101312302B (en) | Parallel signal transmission method of uninterrupted power source | |
US20070067544A1 (en) | System for providing access of multiple data buffers to a data retaining and processing device | |
US9584268B2 (en) | Device level enablement of a communications protocol | |
US7353300B2 (en) | Apparatus to improve the firmware efficiency for a multiframe serial interface | |
CN113132198B (en) | Multi-master-slave SPI (Serial peripheral interface) safety communication device and communication method | |
EP0137609A2 (en) | Multi-master communication bus | |
KR20160067222A (en) | SLAVE IDENTIFIER SCANNING AND HOT-PLUG CAPABILITY OVER CCIe BUS | |
CN214225796U (en) | Time synchronization circuit | |
CN111224852B (en) | Communication system and communication method for remote IO equipment | |
CN109947019A (en) | The processing unit and concurrent working control method of train network input-output system | |
US10860513B1 (en) | I3C hub promoting backward compatibility with I2C | |
CN110659236B (en) | AXI bus transmission device capable of autonomously replying write response | |
CN113722254B (en) | Multi-host communication bus system suitable for industrial control site | |
Hank | Pelican: A new can controller supporting diagnosis and system optimization | |
CN103176931A (en) | Improved DMA communication method and improved DMA communication device | |
CN105446863A (en) | Electronic device with recording capability and circuit status recording method | |
CN104268105B (en) | The expansion structure and operating method of processor local bus exclusive-access | |
CN107729273B (en) | Bus logic arbitration device and method | |
CN102103560A (en) | Anti-deadlock method and device for system buses | |
CN116226021B (en) | Data receiving and transmitting method and device and graphics processor | |
CN113961502B (en) | Switch interface management system and method | |
CN115037413B (en) | Standardized configurable multi-rate switching system and method for SpaceFobore protocol | |
CN218728685U (en) | Double-core domain controller |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |