CN113868159B - IO module, in-module main control device and in-module interface device identification method - Google Patents
IO module, in-module main control device and in-module interface device identification method Download PDFInfo
- Publication number
- CN113868159B CN113868159B CN202010612917.2A CN202010612917A CN113868159B CN 113868159 B CN113868159 B CN 113868159B CN 202010612917 A CN202010612917 A CN 202010612917A CN 113868159 B CN113868159 B CN 113868159B
- Authority
- CN
- China
- Prior art keywords
- module
- interface device
- control device
- information
- main control
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000005540 biological transmission Effects 0.000 claims abstract description 55
- 230000006870 function Effects 0.000 claims description 27
- 238000012545 processing Methods 0.000 claims description 26
- 238000004891 communication Methods 0.000 claims description 9
- 238000003745 diagnosis Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 claims description 3
- 230000011664 signaling Effects 0.000 claims description 2
- 239000000758 substrate Substances 0.000 claims 2
- 238000011161 development Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 10
- 230000007246 mechanism Effects 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000003750 conditioning effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003137 locomotive effect Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000004148 unit process Methods 0.000 description 2
- 230000001143 conditioned effect Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- 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/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
Abstract
The invention discloses an identification method of an IO module, a master control device in the module and an interface device in the module. Wherein, the main control module includes: the interface device type identification module is used for acquiring a hardware identification signal sent by an interface device connected with the main control module, identifying the identity of the current interface device according to the hardware identification signal, and determining the direction of information transmission between the interface device and the main control device based on the identity; and the information transmission module is used for outputting the acquired information transmitted from the external control device connected with the main control device to the interface device after being processed under the instruction of the direction signal or outputting the acquired information input from the interface device to the external control device after being processed. The invention can adapt to various interface devices by the same control device, and effectively reduces the development quantity of products on the premise of considering safety.
Description
Technical Field
The invention relates to the technical field of rail traffic control, in particular to an IO module, a main control device in the IO module and a method for identifying the type of an interface device in the IO module.
Background
Along with the progress of scientific technology, various fields such as high-speed rail, motor cars, locomotives, buses and the like are continuously developed. The current application scene of the input/output module product is more and more complex, which causes the continuous increase of the input/output module product types and brings great problems to the aspects of product maintenance, management and the like.
The input/output module product is generally composed of an input/output control board card and an input/output interface board card. Because IO products contain various schemes with arbitrary configurations such as digital quantity, analog quantity, input and output, a large number of deformation design products appear. Under different application scenes, the voltage levels of the acquired (input) information and the output information are different, and the channels of the equipment for acquiring the information and the receiving equipment for outputting the information are different, in addition, the problems of conversion of analog quantity and digital quantity, the conversion of input quantity and output quantity electrical conditions, or the mixed use of input and output and the like can also occur, so that the control board card needs to be changed along with the types of different interface board cards, and the variety and development workload of the control board card are increased.
In the prior art, an IO module which can be suitable for different types of interface boards is lacking, so that the development cost and the workload of a control board caused by adapting to different types of interface boards in the IO module are reduced.
Disclosure of Invention
In order to solve the above technical problems, an embodiment of the present invention provides a master control device in an IO module, where the master control device includes: the interface device type identification module is used for acquiring a hardware identification signal sent by an interface device connected with the main control module, identifying the identity of the current interface device according to the hardware identification signal, and determining the direction of information transmission between the interface device and the main control device based on the identity; and the information transmission module is used for outputting the acquired information transmitted from the external control device connected with the main control device to the interface device after being processed under the instruction of the direction signal, or outputting the acquired information input from the interface device to the external control device after being processed.
Preferably, the information transmission module includes: the processor is respectively connected with the external control device and the interface device and is used for realizing the information matching transmission function between the external control device and the load of the interface device through the processing of the acquired information; and the buffer is positioned between the processor and the interface device and is used for receiving the direction signal and controlling the transmission direction of the output information according to the direction signal.
Preferably, the interface device type identification module is configured to obtain the hardware identification signal by reading hardware identification information in the IO configuration register.
Preferably, the interface device type identification module is further configured to read information in the IO configuration register when the power of the IO module is turned on or the configuration file is updated, so as to generate the corresponding direction signal.
Preferably, the interface device type identification module is further configured to write the hardware identification signal into the IO configuration register when the power of the IO module is turned on, so as to update internal information.
Preferably, the IO configuration register is respectively configured in a FLASH memory in a processor in the main control device, an FRAM in the main control module, and the interface device type identification module.
Preferably, the interface device type identification module is further configured to read hardware identification information in each IO configuration register, diagnose consistency of all hardware identification information, and determine whether to generate the valid direction signal according to a diagnosis result, so as to control information output timing of the IO module.
Preferably, the interface device type identification module is further configured to determine that the matching between the interface device and the main control device is unsuccessful when the hardware identification information is inconsistent, and generate an invalid direction signal indicating that the matching is unsuccessful and communication is not allowed, so as to block the information output function of the IO module by using a buffer in the main control device.
Preferably, the interface device type identifying module is further configured to retrieve corresponding direction information from a preset interface board database according to the identified identity information, and generate the corresponding direction signal, where the interface board database stores all kinds of direction information corresponding to the interface devices that can be connected with the main control device.
On the other hand, the embodiment of the invention also provides an IO module, which comprises: a master control device as described above; and the interface device is used for outputting a hardware identification signal representing the self identity.
Preferably, the interface device is further configured to receive output information from the master control device if the matching with the master control device is successful, or transmit the acquired information to an external control device after the processing of the master control device.
Preferably, the interface device is connected with the main control module through an inter-board connector, the inter-board connector is configured with N cables, and the hardware identification signal is composed of level signals transmitted by the N cables.
In addition, an embodiment of the present invention provides a method for identifying an interface device type in an IO module, where the method uses the IO module to identify the interface device type, and the method includes: step one, an interface device outputs a hardware identification signal representing self identity; step two, an interface device type identification module in the main control device acquires a hardware identification signal sent by the interface device, identifies the identity of the current interface device according to the hardware identification signal, and determines the direction of information transmission between the interface device and the main control device based on the identity; and step three, under the instruction of a direction signal, the information transmission module in the main control device outputs the acquired information transmitted from the external control device connected with the main control device to the interface device after processing, or outputs the acquired information input from the interface device to the external control device after processing.
Preferably, in the first step, the interface device type identification module acquires the hardware identification signal by reading hardware identification information in an IO configuration register.
Preferably, the interface device type identification module reads information in the IO configuration register when the power supply of the IO module is turned on or the configuration file is updated, so as to generate the corresponding direction signal.
Preferably, the interface device type identification module writes the hardware identification signal into the IO configuration register when the power of the IO module is turned on, so as to update internal information.
One or more embodiments of the above-described solution may have the following advantages or benefits compared to the prior art:
The embodiment of the invention mainly provides an identification method of an IO module, a main control device in the module and an interface device in the module. Specifically, by designing corresponding hardware identification information for interface devices of different function types, when power is input to the IO module, a hardware identification signal containing the hardware identification information is output, the identity of the current interface module is identified by the interface device type identification module in the main control device, and the corresponding information transmission direction under the identity of the function type is determined, so that a corresponding direction control signal is generated, and the IO module finishes the direction control of the input and output information of the appointed transmission direction under the indication of the signal. In addition, the invention also achieves the double guarantee of improving the accuracy of identity recognition and avoiding the fault of false output of the IO module through setting the multiple recognition mechanism and the output protection mechanism. The IO module is internally provided with the main control device which can be matched with various interface device types, so that the same control board can be matched with various input/output interface board cards, and the development quantity of products can be effectively reduced on the premise of considering safety.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention, without limitation to the invention. In the drawings:
Fig. 1 is a schematic structural diagram of an IO module in the prior art according to an embodiment of the present application.
Fig. 2 is a schematic diagram of an overall framework of an IO module according to an embodiment of the present application.
Fig. 3 is a schematic workflow diagram of an IO module according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a specific structure of an IO module according to an embodiment of the present application.
Fig. 5 is a step diagram of a method for identifying a type of an interface device in an IO module according to an embodiment of the present application.
Detailed Description
The following will describe embodiments of the present invention in detail with reference to the drawings and examples, thereby solving the technical problems by applying technical means to the present invention, and realizing the technical effects can be fully understood and implemented accordingly. It should be noted that, as long as no conflict is formed, each embodiment of the present invention and each feature of each embodiment may be combined with each other, and the formed technical solutions are all within the protection scope of the present invention.
Additionally, the steps illustrated in the flowcharts of the figures may be performed in a computer system, such as a set of computer executable instructions. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
Along with the progress of scientific technology, various fields such as high-speed rail, motor cars, locomotives, buses and the like are continuously developed. The current application scene of the input/output module product is more and more complex, which causes the continuous increase of the input/output module product types and brings great problems to the aspects of product maintenance, management and the like.
At present, an input/output module product generally comprises an input/output control board card and an input/output interface board card, which are connected by a flat cable or a hard wire (inter-board connector). Fig. 1 is a schematic structural diagram of an IO module in the prior art according to an embodiment of the present application. As shown in fig. 1, the input/output processing procedure is: after conditioning the input information (such as data, signals or instructions) by a processing circuit in the interface board (such as analog-to-digital conversion, electrical condition conversion and other modes), the first transmission direction transmits the input information meeting the data receiving conditions of the subsequent central processing unit to the central processing unit in the control board, and the central processing unit processes the acquired input information and then transmits the output information generated by the central processing unit to a required external control device through a communication port such as MVB; in the second transmission direction, an external control device connected with the control board transmits input information (content such as data, signals or instructions) to a central processing unit in the control board through a communication port such as an MVB (multifunction peripheral bus), the central processing unit processes the current input information to generate corresponding output information, the current output information is transmitted to a corresponding interface board, and after conditioning processing of an output signal processing part in the interface board, the conditioned output information is transmitted to interface board load equipment through an output port.
Because IO products contain various schemes with arbitrary configurations such as digital quantity, analog quantity, input and output, a large number of deformation design products appear. Under different application scenes, the voltage levels of the acquired (input) information and the output information are different, and the channels of the equipment for acquiring the information and the receiving equipment for outputting the information are different, in addition, the problems of conversion of analog quantity and digital quantity, the conversion of input quantity and output quantity electrical conditions, or the mixed use of input and output and the like can also occur, so that the control board card needs to be changed along with the types of different interface board cards, and the variety and development workload of the control board card are increased.
In the prior art, an IO module which can be suitable for different types of interface boards is lacking, so that the development cost and the workload of a control board caused by adapting to different types of interface boards in the IO module are reduced.
Therefore, in order to solve the above technical problems, the present invention provides a master control device in an IO module. Specifically, the main control device (main control board) is provided with an interface device type identification module, firstly, hardware identification signals representing different interface device (interface board) types accessed to the current main control device are defined in the module, the function type of the current interface board corresponding to the hardware identification signals is identified, and the information input/output transmission direction corresponding to the function type of the interface board is further determined. In this way, the control board in the IO module can be suitable for different types of interface boards by defining different types of interface boards as different functional category identities, and the identity of the interface device connected with the current main control device can be rapidly identified, so that the self adaptability of the IO module can be expanded by an identity identification mode.
In addition, the invention also obtains the hardware identification signal by reading the hardware identification information in the IO configuration register, and further limits the reading and writing time of the register, on one hand, the accuracy of the identity identification function is improved, the occurrence of the false identification phenomenon of the main control device and the interface device is reduced, and the false output phenomenon of the IO module can be avoided. In addition, the invention further achieves the dual effects of accurately identifying the identity of the interface device and avoiding the false output of the IO module by setting the multiple identification mechanism of the interface device type identification module, thereby perfecting the safety strategy of the IO module.
Fig. 2 is a schematic diagram of an overall framework of an IO module according to an embodiment of the present application. As shown in fig. 2, the IO module in the present application includes a main control device 100 and an interface device 200 connected to each other through an inter-board connector 300. The interface device 200 is configured to output (when the IO module has a power input) a hardware identification signal indicating identity information of a functional type of the current interface device 200. The main control device 100 is configured to, after receiving the hardware identification signal sent by the interface device 200, parse the signal, determine the function type of the current interface device 200, further obtain an information transmission direction (specifically, the first type transmission direction or the second type transmission direction) that matches the current function type, and immediately generate a corresponding direction (control) signal, so that the collected information (i.e., output information) that is input from the external control device/interface board load and processed by the central processing unit is sent to the interface board load/external control device according to the specified transmission direction, thereby completing input/output control.
Further, referring to fig. 2, the master device 100 includes: an interface device type identification module 110 and an information transmission module 120. The interface device type identification module 110 is configured to obtain a hardware identification signal sent by the interface device 200, identify the identity of the current interface device 200 according to the current hardware identification signal, determine a direction (a first type transmission direction or a second type transmission direction) of information transmission between the interface device 200 and the master device 100 according to the identified identity information, and generate a corresponding direction (control) signal. The information transmission module 120 is configured to receive a current direction (control) signal, and output the acquired information transmitted from an external control device (not shown) connected to the main control device 100 to the interface device 200 after being processed, and further obtain current output information (first transmission direction) by the interface device load, or output the acquired information input from the interface device 200 to the external control device (second transmission direction) after being processed, under the instruction of the direction (control) signal.
Further, the above-described information transmission module 120 includes an interconnected (central) processor 121 and a buffer 122. The processor 121 is connected to an external control device and an interface device 200, respectively, and adopts a CPU device or an FPGA device. The processor 121 is configured to implement a control and transmission function (an information matching transmission function between an input end and an output end) between the external control device and the load of the interface device by processing the acquired information and generating corresponding output information. The Buffer 122 is a Buffer controller, and is located between the processor 121 and the interface device 200, see fig. 4. The buffer 122 is used for receiving a direction (control) signal transmitted from the interface device type identification module 110 and controlling the transmission direction of the output information according to the direction signal.
Further, in order to expand the number of interface devices 200 to which the IO module is adaptable, the number of interface devices 200 of different function types that can be connected to the master device 100 is formed by defining the number of bits of the hardware identification signal. Since the master device 100 and the interface device 200 are connected by the board connector 300, the board connector 300 is configured with N cables (N is a positive integer) for transmitting hardware identification signals between the master device 100 and the interface device 200, each cable transmits a one-bit level signal (e.g., high and low level signals respectively represent "1" and "0" information), and if the hardware identification signal of the current interface device 200 is "0001", the level signals respectively transmitted by the 4 cables in the board connector are "0", "0" and "1"). That is, the hardware identification signal is constituted by level signals transmitted by N cables. Therefore, in the embodiment of the present invention, the N cables construct parallel transmission channels for transmitting the hardware identification signals between the main control device 100 and the interface device 200, so that the hardware identification signals are transmitted in a parallel manner.
Thus, according to the N cables of the hardware identification signal transmission channel, it is defined that the present control device 100 can connect 2 N different function types of interface devices 200. Therefore, in order to improve the recognition efficiency of the host device 100 for the interface devices 200 of 2 N different function types, an interface board database is provided in the interface device type recognition module. The interface board database stores various types of direction information (each type of function corresponds to one type of direction information, i.e., a first transmission direction or a second transmission direction) corresponding to the interface device 200 that can be connected to the current master control device 100. Specifically, the interface device type identification module 110 is further configured to directly retrieve corresponding direction information from a preset interface board database according to the identity information after identifying the identity information corresponding to the current interface device 100, and generate a corresponding direction (control) signal.
In this way, an extension of the adaptability of the master device 100 to the interface devices 200 of different function types is achieved.
Fig. 3 is a schematic workflow diagram of an IO module according to an embodiment of the present application. Fig. 4 is a schematic diagram of a specific structure of an IO module according to an embodiment of the present application. As shown in fig. 3 and 4, first, the interface device 200 is configured to output a hardware identification signal indicating identity information of a functional type of the current interface device 200; the interface device type identifying module 110 is configured to identify a function type of the current interface device 200 after receiving a hardware identifying signal sent by the interface device 200, obtain direction information matched with the current function type, and then generate a corresponding direction (control) signal; the buffer 122 is configured to receive a current direction signal, send output information processed by the central processing unit 120 to the interface device 200 under the indication of a direction signal corresponding to the first transmission direction, and send currently received acquisition information to the central processing unit 120 under the indication of a direction signal corresponding to the second transmission direction; then, the central processing unit 120 continues to complete the processing of the acquired information and sends the corresponding output information to the external control device.
Because the main control device 100 in the IO module in the embodiment of the present invention needs to adapt to a plurality of different types of interface devices 200, but the number of lines (N) of the board connector 300 is fixed, therefore, a hardware identification signal output by the interface device 200 needs to be read by a logic unit through the inter-module board connector 300, and the logic unit gives a level signal (direction control signal) and transmits the level signal to the BUFFER to control the transmission direction of the input and output information, so that the same line channel is shared, and the control of information input and output can be realized, thereby achieving the effect that one control board (the main control device 100) controls a plurality of interface boards (the interface device 200). Preferably, in the embodiment of the present invention, the interface device type identification module 110 uses a programmable logic device (e.g., a CPLD or FPGA).
In the embodiment of the invention, in order to avoid the situation of misidentification of the master control device 100 for reading the identity information of the interface device 200, the invention adopts a multiple identification mechanism and an output protection mechanism to improve the identification accuracy of the identity, avoid the fault of misoutput of the IO module and improve the safety performance of the IO module. In order to construct the multiple recognition mechanism in the embodiment of the present invention, the embodiment of the present invention does not directly read the information of the hardware recognition signal transmitted by the inter-board connector 300 as in the prior art, but obtains the hardware recognition signal corresponding to the current interface board by defining the IO configuration register and setting the timing read-write condition of the internal information for the IO configuration register, so as to construct the application environment of the multiple recognition mechanism in the master control device 100. Specifically, the interface device type identification module 110 is configured to generate the direction signal after the current interface device 200 is successfully matched with the master control device 100, so as to control the generation timing of the direction signal, thereby achieving the control of controlling the information output of the IO module.
Further, in the real-time example of the present invention, the interface device type identification module 110 is configured to obtain the hardware identification signal by reading the hardware identification information in the IO configuration register.
Further, in the embodiment of the present invention, the IO configuration registers are respectively set in the following positions: FLASH memory in the (central) processor of the master device 100, FRAM in the master module 100, and registers defined by the interface device type identification module 110.
Thus, the interface device type recognition module 110 recognizes the function type of the interface device 200 connected to the master device 100 by reading the hardware recognition information in the following 3 paths: path 1, interface device type identification module 110 reads the hardware identification information written into the FLASH memory in processor 121 by the local bus (the path needs to perform information re-writing operation in the process of starting or resetting the IO module, and completes information writing operation when starting or resetting is completed); path 2, the interface device type identification module 110 reads the hardware identification information stored in the FRAM in the master control device 100 (the path retains the hardware identification information written before starting or resetting in the process of starting or resetting the IO module); path 3, the interface device type identification module 110 reads the hardware identification information in the register defined by the interface device type identification module 110, where the hardware identification information in the path is directly obtained by the interface device type identification module 110 from the hardware identification signals on the N transmission cables (for example, GA0-GA3, refer to fig. 4) and writing the hardware identification signals (the path needs to perform information re-writing operation during the starting or resetting process of the IO module, and performs information writing operation when the starting or resetting is completed).
Further, the interface device type identification module 110 is further configured to read the hardware identification information in each IO configuration register, diagnose the consistency of the written hardware identification information in all the IO configuration registers, and determine whether to generate a valid direction signal according to the diagnosis result, so as to control the information output timing of the IO module.
Further, in the embodiment of the present invention, the interface device type identification module 110 is further configured to determine that the current interface device 100 is successfully matched with the main control device when all the hardware identification information is detected to be consistent, and generate an effective direction signal indicating that the matching is successful and that the inter-board communication is allowed to be performed, so that the buffer 122 in the main control device 100 completes the information transmission function of the IO module after receiving the current effective direction control signal. Therefore, when the hardware identification information stored in the three paths are consistent, the invention can judge that the control board and the interface board are successfully matched, and the IO module can start normal transmission (output) control operation of the input and output information after the control board and the interface board are successfully matched, so that the error output fault of the output information generated by the IO module when the module is started or reset is avoided, the load of the interface devices at the two ends of the IO module is successfully isolated from the external control device, and the error transmission fault of the information is effectively avoided.
In addition, the interface device type identification module 100 is further configured to determine that the matching between the current interface device 200 and the master device 100 is unsuccessful when detecting that the hardware identification information is inconsistent, and generate an invalid direction signal indicating that the matching is unsuccessful and communication is not allowed, so that the buffer 122 in the master device 100 immediately blocks the information output function of the IO module after receiving the current invalid direction signal (for example, placing each level signal channel of the buffer 122 located at the end of the board-to-board connector 300 in a high-impedance state).
Furthermore, the invention further improves the safety performance of the IO module by the time of the read-write operation of each IO configuration register. The interface device type identification module 110 is further configured to read the hardware identification information stored in each IO configuration register when the power of the IO module is turned on (i.e., the IO module is started or the IO module is reset and started) or the configuration file is updated, so as to generate an effective or ineffective direction signal for the current interface device 200.
In addition, the interface device type identification module 110 is further configured to, when the power of the IO module is turned on (i.e., the IO module is started or the IO module is reset and started), write the hardware identification information represented in the hardware identification signal transmitted from the connected interface device 200 into each IO configuration register, so as to update the hardware identification information stored in the corresponding register. Thus, the interface device type identification module 110 reads the IO configuration information (hardware identification information) only at power-up and/or at configuration file update, but updates the information in the IO configuration registers only at power-up, and at other times inhibits writing of new hardware identification information to the respective IO configuration registers through the interface device type identification module 110.
Thus, when the IO module performs the configuration file updating operation, the normal operation of the IO module can be continuously maintained. In addition, whether the IO module is powered on by normal start or reset, the hardware identification information of the interface device 200 connected to the current master control device 100 stored in the IO configuration register needs to be rewritten and read again, so that the IO module works normally after the start or reset is completed. That is, when the interface device 200 has an information data output requirement, except for a specific functional condition, a safe state in which information is not output is maintained when the module is started or reset, so that a fault caused by erroneous output is avoided, and the IO module starts to work normally after waiting for successful hardware matching and generating a valid direction signal.
It should be noted that, the present invention may also diagnose whether the matching between the current interface device 100 and the master control device is successful through other diagnostic rules, which is not limited in detail, and may be set by those skilled in the art according to actual requirements.
With continued reference to fig. 2, in the embodiment of the present invention, the interface device 200 is further configured to receive (according to the second type transmission manner) output information from the master device, or output information generated after processing the acquired information output by the current interface device load by the master device 100, where the matching with the master device 100 is successful, and transmit (according to the first type transmission manner) the output information to the external control device.
On the other hand, based on the IO module provided by the application, the application also provides a method for identifying the type of the interface device in the IO module, and the method utilizes the IO module to realize the identification of the function type of the interface device. Fig. 5 is a step diagram of a method for identifying a type of an interface device in an IO module according to an embodiment of the present application.
As shown in fig. 5, first, step S510 the interface device 200 outputs a hardware identification signal indicating its own identity, and the process proceeds to step S520.
Step S520 is performed by the interface device type recognition module 110 in the master device 100 acquiring the hardware recognition signal sent by the interface device 200, recognizing the identity of the current interface device 200 according to the current hardware recognition signal, determining the direction of information transmission between the current interface device 200 and the master device 100 based on the current hardware recognition signal, and generating a corresponding direction (control) signal, so as to proceed to step S530.
Finally, step S530 is performed by the information transmission module 120 in the master device 100, under the direction signal, to output the acquired information transmitted from the external control device connected to the master device 100 to the interface device 200 after processing, or to output the acquired information input from the interface device 200 to the external control device after processing.
Further, in the above-described step S510, the interface device type identification module 110 acquires the hardware identification signal by reading the hardware identification information in the IO configuration register.
Further, the interface device type identification module 110 reads the hardware identification information in the IO configuration register to diagnose whether the matching between the current interface device 200 and the main control device 100 is successful or not when the power of the IO module is turned on or the configuration file is updated, thereby generating a corresponding direction (control) signal.
Further, when the power of the IO module is turned on, the interface device type identification module 110 writes information in the hardware identification signal into each IO configuration register, so as to update information in the corresponding register.
The embodiment of the invention provides an identification method of an IO module, an in-module main control device and an in-module interface device. Specifically, by designing corresponding hardware identification information for interface devices of different function types, when power is input to the IO module, a hardware identification signal containing the hardware identification information is output, the identity of the current interface module is identified by the interface device type identification module in the main control device, and the corresponding information transmission direction under the identity of the function type is determined, so that a corresponding direction control signal is generated, and the IO module finishes the direction control of the input and output information of the appointed transmission direction under the indication of the signal. In addition, the invention also achieves the double guarantee of improving the accuracy of identity recognition and avoiding the fault of false output of the IO module through setting the multiple recognition mechanism and the output protection mechanism. The IO module is internally provided with the main control device which can be matched with various interface device types, so that the same control board can be matched with various input/output interface board cards, and the development quantity of products can be effectively reduced on the premise of considering safety.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the scope of the present invention are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
It is to be understood that the disclosed embodiments are not limited to the specific structures, process steps, or materials disclosed herein, but are intended to extend to equivalents of these features as would be understood by one of ordinary skill 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, the appearances of the phrase "one embodiment" or "an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
Although the embodiments of the present invention are described above, the embodiments are only used for facilitating understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is still subject to the scope of the appended claims.
Claims (11)
1. A master control device in an IO module, the master control device comprising:
the interface device type identification module is used for acquiring a hardware identification signal sent by an interface device connected with the main control device, identifying the identity of the current interface device according to the hardware identification signal, and determining the direction of information transmission between the interface device and the main control device based on the identity;
the information transmission module is used for outputting the acquired information transmitted from the external control device connected with the main control device to the interface device after being processed under the instruction of the direction signal, or outputting the acquired information input from the interface device to the external control device after being processed, wherein the information transmission module comprises: a processor located between the external control device and the interface device and a buffer located between the processor and the interface device,
The interface device type identification module is used for acquiring the hardware identification signal by reading the hardware identification information in an IO configuration register, wherein the IO configuration register is respectively constructed in a FLASH memory in a processor in the main control device, an FRAM in the main control device and the interface device type identification module,
The interface device type identification module is further configured to read the hardware identification information in each of the IO configuration registers, diagnose consistency of all the hardware identification information, determine whether to generate the valid direction signal according to a diagnosis result, so as to control information output timing of the IO module, wherein,
When the hardware identification information is consistent, determining that the current interface device is successfully matched with the main control device, generating an effective direction signal which indicates that the matching is successful and allows the inter-board communication to be performed, so that a buffer in the main control device completes the information transmission of the IO module after receiving the current effective direction signal;
When the hardware identification information is inconsistent, determining that the matching between the current interface device and the main control device is unsuccessful, and generating an invalid direction signal which indicates that the matching is unsuccessful and communication is not allowed, so that a buffer in the main control device locks the information output function of the IO module after receiving the current invalid direction signal.
2. The master control apparatus of claim 1, wherein the information transmission module comprises:
The processor is respectively connected with the external control device and the interface device and is used for realizing the information matching transmission function between the external control device and the load of the interface device through the processing of the acquired information;
and the buffer is positioned between the processor and the interface device and is used for receiving the direction signal and controlling the transmission direction of the output information according to the direction signal.
3. The master control apparatus of claim 1,
The interface device type identification module is further configured to read information in the IO configuration register when the power supply of the IO module is turned on or the configuration file is updated, so as to generate the corresponding direction signal.
4. The master control apparatus of claim 1,
The interface device type identification module is further configured to write the hardware identification signal into the IO configuration register when the power of the IO module is turned on, so as to update internal information.
5. The master control apparatus according to any one of claims 1 to 4,
The interface device type identification module is further used for calling corresponding direction information from a preset interface board database according to the identified identity information and generating corresponding direction signals, wherein the interface board database stores various types of direction information corresponding to the interface devices which can be connected with the main control device.
6. An IO module, wherein the IO module comprises:
The master control apparatus according to any one of claims 1 to 5;
and the interface device is used for outputting a hardware identification signal representing the self identity.
7. The IO module of claim 6, wherein,
The interface device is also used for receiving the output information from the main control device under the condition of successful matching with the main control device, or transmitting the acquired information to an external control device after being processed by the main control device.
8. The IO module of claim 6, wherein,
The interface device is connected with the main control device through an inter-board connector, N cables are constructed on the inter-board connector, and the hardware identification signal is composed of level signals transmitted by the N cables.
9. A method for identifying an interface device type within an IO module, the method utilizing an IO module as claimed in any one of claims 6-8 to effect identification of an interface device type, the method comprising:
step one, an interface device outputs a hardware identification signal representing self identity;
Step two, an interface device type identification module in the main control device acquires a hardware identification signal sent by the interface device, identifies the identity of the current interface device according to the hardware identification signal, and determines the direction of information transmission between the interface device and the main control device based on the identity;
Step three, under the instruction of the direction signal, the information transmission module in the main control device outputs the acquired information transmitted from the external control device connected with the main control device to the interface device after processing, or outputs the acquired information input from the interface device to the external control device after processing, in step three,
The interface device type identification module obtains the hardware identification signal by reading hardware identification information within an IO configuration register, wherein,
The interface device type identification module respectively reads FLASH memory in a processor in the main control device, FRAM in the main control device and hardware identification information in the interface device type identification module, diagnoses consistency of all hardware identification information, determines whether to generate effective direction signals according to diagnosis results so as to control information output time of the IO module,
When the hardware identification information is consistent, determining that the current interface device is successfully matched with the main control device, generating an effective direction signal which indicates that the matching is successful and allows the inter-board communication to be performed, so that a buffer in the main control device completes the information transmission of the IO module after receiving the current effective direction signal;
When the hardware identification information is inconsistent, determining that the matching between the current interface device and the main control device is unsuccessful, and generating an invalid direction signal which indicates that the matching is unsuccessful and communication is not allowed, so that a buffer in the main control device locks the information output function of the IO module after receiving the current invalid direction signal.
10. The method of claim 9, wherein the step of determining the position of the substrate comprises,
And the interface device type identification module reads information in the IO configuration register when the power supply of the IO module is connected or the configuration file is updated so as to generate the corresponding direction signal.
11. The method of claim 9, wherein the step of determining the position of the substrate comprises,
And when the power supply of the IO module is connected, the interface device type identification module writes the hardware identification signal into the IO configuration register so as to update the internal information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010612917.2A CN113868159B (en) | 2020-06-30 | 2020-06-30 | IO module, in-module main control device and in-module interface device identification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010612917.2A CN113868159B (en) | 2020-06-30 | 2020-06-30 | IO module, in-module main control device and in-module interface device identification method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113868159A CN113868159A (en) | 2021-12-31 |
CN113868159B true CN113868159B (en) | 2024-08-13 |
Family
ID=78981113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010612917.2A Active CN113868159B (en) | 2020-06-30 | 2020-06-30 | IO module, in-module main control device and in-module interface device identification method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113868159B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106250340A (en) * | 2016-07-27 | 2016-12-21 | 杭州宏杉科技有限公司 | A kind of hardware control circuit and control method thereof |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2829091B2 (en) * | 1990-04-19 | 1998-11-25 | 株式会社東芝 | Data processing system |
IT1277858B1 (en) * | 1995-02-22 | 1997-11-12 | Hs Cast S R L | SYSTEM FOR THE TRANSMISSION OF DATA ON A TELEVISION CHANNEL. |
JPH098813A (en) * | 1995-06-20 | 1997-01-10 | Fujitsu Ltd | Elastic buffer |
KR0153922B1 (en) * | 1995-12-21 | 1998-11-16 | 양승택 | ATM matching device for receiving MPG signal |
US6185633B1 (en) * | 1997-03-20 | 2001-02-06 | National Semiconductor Corp. | DMA configurable receive channel with memory width N and with steering logic compressing N multiplexors |
KR100297562B1 (en) * | 1999-07-19 | 2001-11-01 | 박종섭 | Hardware resorce recognition controller and method of control system for communication |
DE10052619C1 (en) * | 2000-10-24 | 2002-03-28 | Abb Patent Gmbh | Modular electrotechnical system has contacts of multi-pin connector between base unit and plug-in unit divided into groups cooperating with fixed configuration and variable configuration lines respectively |
JP2002229966A (en) * | 2000-11-06 | 2002-08-16 | Matsushita Electric Ind Co Ltd | Interface for multiprocessor |
JP4158935B2 (en) * | 2005-09-12 | 2008-10-01 | シャープ株式会社 | Memory card input / output device and control method thereof |
RU2321055C2 (en) * | 2006-05-12 | 2008-03-27 | Общество с ограниченной ответственностью Фирма "Анкад" | Device for protecting information from unsanctioned access for computers of informational and computing systems |
JP2009037479A (en) * | 2007-08-02 | 2009-02-19 | Seiko Epson Corp | Data transfer control device and electronic device |
CN101169771B (en) * | 2007-11-30 | 2010-06-02 | 华为技术有限公司 | A kind of external interface device of AXI internal bus and data transmission method thereof |
TWM474958U (en) * | 2013-09-18 | 2014-03-21 | Feature Integration Technology Inc | Interface control circuit and related input system |
DE102013020522A1 (en) * | 2013-12-11 | 2015-06-11 | Lukusa Didier Kabulepa | Communication system, test device and device for testing fault-detecting security mechanisms of a communication subscriber |
CN105956458A (en) * | 2016-04-28 | 2016-09-21 | 乐视控股(北京)有限公司 | Interaction control method and device for terminals |
CN106897244B (en) * | 2017-03-01 | 2021-02-26 | 浙江大华技术股份有限公司 | Extended module identification method and device |
CN107025203B (en) * | 2017-03-31 | 2020-09-25 | 新华三技术有限公司 | First board card, second board card and equipment |
CN111083412B (en) * | 2019-12-05 | 2022-11-08 | 视联动力信息技术股份有限公司 | Video transfer method, video adapter, electronic device and storage medium |
-
2020
- 2020-06-30 CN CN202010612917.2A patent/CN113868159B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106250340A (en) * | 2016-07-27 | 2016-12-21 | 杭州宏杉科技有限公司 | A kind of hardware control circuit and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN113868159A (en) | 2021-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103473196B (en) | Remote measuring and controlling data transmission device in a kind of 1553B bus and star between device bus | |
US4684885A (en) | Arrangement for on-line diagnostic testing of an off-line standby processor in a duplicated processor configuration | |
JPH0473180B2 (en) | ||
CN113075904A (en) | PLC extension system, PLC system communication method and storage medium | |
CN111203869B (en) | Robot system maintenance method and device, robot and readable storage medium | |
JPS6130307B2 (en) | ||
CN113868159B (en) | IO module, in-module main control device and in-module interface device identification method | |
CN114721900B (en) | Connection relation establishing method, mainboard, device, equipment and storage medium | |
CN104484260B (en) | Simulation monitoring circuit based on GJB289 bus interface SoC (system on a chip) | |
CN112486877B (en) | Outfield guarantee and test platform of generalized FC conversion interface module | |
CN113296998A (en) | Data communication abnormity recovery method and device, electronic equipment and storage medium | |
CN210721440U (en) | PCIE card abnormity recovery device, PCIE card and PCIE expansion system | |
CN111685895B (en) | A surgical instrument type automatic identification system for a surgical robot | |
CN109976778A (en) | The Oftware updating method and system, host computer and storage medium of vehicle electric product | |
CN203616750U (en) | ID (identity) identification device based on CAN (controller area network) bus communication and battery system | |
CN213634460U (en) | Program updating device of multi-core chip | |
CN116306408A (en) | Verification environment determination method, device, equipment and storage medium of System On Chip (SOC) | |
CN115743002A (en) | Method and device for monitoring abnormal restart of vehicle-mounted instrument | |
CN115782815A (en) | Vehicle anchor point automatic configuration method, device, vehicle and storage medium | |
CN210380890U (en) | Communication system and SIS system of Modbus equipment | |
CN114490229A (en) | A dual-protocol interface testing device and method | |
CN112395147A (en) | Debugging device on SOC | |
CN113960496B (en) | Circuit diagnosis method and device | |
CN113986807B (en) | Protocol conversion method and protocol converter for USB bus and PC104 bus | |
CN218601804U (en) | Master-slave board bus communication addressing system |
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 |