Method and apparatus for data transmission, non-volatile storage medium, system

By obtaining configuration information to determine the target data transmission channel, the problem that IO card can only identify one signal type in the prior art is solved, and the automatic identification and transmission of multiple signal types is realized, reducing workload and cost.

CN115167309BActive Publication Date: 2025-07-04SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210868813.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2025-07-04
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

In the prior art, IO card parts can only identify one signal type, which leads to artificial replacement of the card parts when the signal type changes, increasing the workload and cost.

Method used

By obtaining configuration information, the target data transmission channel supported by the general input and output module is determined, and the automatic identification and transmission of various signal types is realized.

Benefits of technology

It realizes that the general input and output module can automatically identify and transmit multiple signal types, reducing the need for artificial replacement of cards and reducing workload and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115167309B_ABST
    Figure CN115167309B_ABST
Patent Text Reader

Abstract

The present application discloses a data transmission method, apparatus, non-volatile storage medium, and system. Among them, the method includes: obtaining configuration information, where the configuration information is generated by a distributed system controller according to a request signal sent by a host computer; determining a target data transmission channel corresponding to the configuration information from the data transmission channels supported by a general-purpose input / output module; and performing data interaction with the host computer or a terminal device connected to the general-purpose input / output module through the target data transmission channel. The present application solves the technical problem in the prior art that an IO card that can identify various types of signals is lacking, resulting in the need to manually replace the IO card according to the signal type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and in particular, to a method and apparatus for data transmission, a non-volatile storage medium, and a system. Background Art

[0002] In manufacturing environments such as petrochemical, chemical, and pharmaceutical industries, data sampling signals, control signals, etc. are usually transmitted between a control device and one or more field devices, such as sensors or actuators. With the rapid development of economy and technology and the expansion of the scale of control systems, a large number of input / output (IO) cards are required to participate in the process of controlling data transmission in control systems; mainly including the following types of cards: analog input (AI) cards, digital input (DI) cards, analog output (AO) cards, digital output (DO) cards, pulse input (PI) cards, and switch signal (NAMUR) transmission cards; each input / output (IO) card can recognize a limited type of signal, and most IO cards can only recognize one type of signal. Figure 1 For a schematic diagram of a conventional distributed control system (DCS) architecture in the prior art, as Figure 1 shown, when applying IO cards in a DCS system, based on the characteristic that each IO card in the above prior art can recognize few types of signals, when a user needs to receive or output other types of signals, the IO cards of the input / output module must be replaced; when there are more signal types, more types of spare parts are required, and at the same time, the workload such as wiring and installation will also increase. The whole process is time-consuming and laborious, and the cost is relatively high.

[0003] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention

[0004] Embodiments of this application provide a method and apparatus for data transmission, a non-volatile storage medium, and a system, so as to at least solve the technical problem that IO cards capable of recognizing multiple types of signals are lacking in the prior art, resulting in the need to manually replace IO cards according to signal types.

[0005] According to one aspect of the embodiments of the present application, a data transmission method is provided, including: obtaining configuration information, where the configuration information is generated by a distributed system controller according to a request signal sent by a host computer; determining a target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general-purpose input / output module; and performing data interaction with the host computer or a terminal device connected to the general-purpose input / output module through the target data transmission channel.

[0006] Optionally, performing data interaction with the host computer or a terminal device connected to the general-purpose input / output module through the target data transmission channel includes: collecting target data through the target data transmission channel, where the format of the target data is a data format supported by the target data transmission channel; performing format conversion on the target data according to a target format, and sending the converted target data to the host computer or the terminal device, where the target format is a data format supported by the host computer or the terminal device.

[0007] Optionally, the target data includes first target data. Collecting target data through the target data transmission channel includes: if the obtained configuration information is first configuration information, collecting the first target data through a first target data transmission channel in the data transmission channels supported by the general-purpose input / output module; determining a first standard value for collecting the first target data by the first target data transmission channel according to a first pulse signal output by a programmable logic device in the general-purpose input / output module; and collecting the first target data with a data value of the first standard value.

[0008] Optionally, the target data includes second target data. Collecting target data through the target data transmission channel includes: if the obtained configuration information is second configuration information, collecting the second target data through a second target data transmission channel in the data transmission channels supported by the general-purpose input / output module; determining a second standard value for collecting the second target data by the second target data transmission channel according to the first pulse signal; and collecting the second target data with a data value of the second standard value.

[0009] Optionally, the target data includes third target data. Collecting target data through the target data transmission channel includes: if the obtained configuration information is third configuration information, collecting the third target data through a third target data transmission channel in the data transmission channels supported by the general-purpose input / output module; determining a reference data value, comparing the data value of the third target data with the reference data value, and outputting a comparison result, where the comparison result is the output of the third target data transmission channel; and collecting the comparison result.

[0010] Optionally, performing format conversion on the target data according to a target format includes: if the obtained configuration information is fourth configuration information, determining a second pulse signal according to the fourth configuration information, and performing conversion on the second pulse signal through a preset algorithm.

[0011] Optionally, the method for data transmission further includes: if the first device obtains the configuration information, determining the data transmission channel of the first device according to the configuration information; if the first device fails, determining the data transmission channel of the second device according to the configuration information, where the first device is a device for collecting data in a working state, and the second device is a standby device of the first device.

[0012] Optionally, the target data transmission channel includes at least one of the following: a digital type data input channel, a digital type data output channel, an analog type data input channel, and an analog type data output channel.

[0013] According to another aspect of the embodiments of the present application, there is also provided a data transmission device, including: an acquisition module, configured to acquire configuration information, where the configuration information is generated by a distributed system controller according to a request signal sent by a host computer; a determination module, configured to determine a target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general purpose input / output module; and a transmission module, configured to perform data interaction with the host computer or a terminal device connected to the general purpose input / output module through the target data transmission channel.

[0014] According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and when the program runs, it controls the device where the non-volatile storage medium is located to execute the above method for data transmission.

[0015] According to another aspect of the embodiments of the present application, there is also provided a data transmission system, where the system includes: a host computer module, a system control module, a communication module, and a general purpose input / output module, where there is a communication relationship between the host computer module and the system control module, there is a communication relationship between the system control module and the communication module, and there is a communication relationship between the communication module and the general purpose input / output module, and where the general purpose input / output module executes the above method for data transmission.

[0016] According to the embodiments of the present application, there is provided a general purpose input / output device, where the general purpose input / output device includes: a field programmable gate array chip, multiple microcontroller unit chips, multiple analog-to-digital converters, and a data transmission channel module, where there is a communication relationship between the multiple microcontroller unit chips, there is a communication relationship between the multiple microcontroller unit chips and the field programmable gate array chip, there is a communication relationship between the field programmable gate array chip and the multiple analog-to-digital converters, and there is a communication relationship between the multiple analog-to-digital converters and the data transmission channel module, and where the general purpose input / output device executes the above method for data transmission.

[0017] In the embodiments of the present application, configuration information is obtained, where the configuration information is generated by a distributed system controller according to a request signal sent by a host computer; a target data transmission channel corresponding to the configuration information is determined from the data transmission channels supported by the general-purpose input / output module; and data interaction is performed with the host computer or a terminal device connected to the general-purpose input / output module through the target data transmission channel. By integrating multiple cards in the general-purpose input / output module, a general-purpose input / output module is provided, achieving the purpose that the general-purpose input / output module can recognize various types of signals, thus realizing the technical effect that the general-purpose input / output module automatically determines the transmission channel and transmits data according to the signal type, and further solving the technical problem that in the prior art, it is necessary to manually replace the IO card according to the signal type due to the lack of an IO card that can recognize various types of signals. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application, and constitute a part of the present application. The illustrative embodiments and descriptions thereof of the present application are used to explain the present application, and do not constitute an improper limitation to the present application. In the drawings:

[0019] Figure 1 is a schematic diagram of a distributed control system (DCS) architecture according to the related art;

[0020] Figure 2 is a flowchart of an optional data transmission method according to an embodiment of the present application;

[0021] Figure 3 is a system block diagram of a UIO module based on a field programmable gate array (FPGA) chip according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of data conversion by an FPGA according to an embodiment of the present application;

[0023] Figure 5 is a circuit diagram for converting a pulse waveform according to an embodiment of the present application;

[0024] Figure 6 is a circuit schematic diagram of a power distribution type data transmission channel according to an embodiment of the present application;

[0025] Figure 7 is a circuit schematic diagram of a non-power distribution type data transmission channel according to an embodiment of the present application;

[0026] Figure 8It is a circuit schematic diagram of a voltage - type DI and PI type data transmission channel according to an embodiment of the present application;

[0027] Figure 9 It is a flowchart of the program processing of a UIO module according to an embodiment of the present application;

[0028] Figure 10 It is a channel configuration structure diagram of an optional UIO module according to an embodiment of the present application;

[0029] Figure 11 It is a structure diagram of an optional data transmission device provided by an embodiment of the present application. Specific embodiments

[0030] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above - mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order different from those illustrated or described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non - exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0032] According to an embodiment of the present application, an embodiment of a data transmission method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer - executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.

[0033] Figure 2 It is a flowchart of the data transmission method according to an embodiment of the present application. As Figure 2 shown, the method includes the following steps:

[0034] Step S202: Obtain configuration information, where the configuration information is generated by the distributed system controller according to the request signal sent by the host computer.

[0035] The communication module receives the configuration information generated and sent by the distributed system controller. The configuration information contains the tools and methods that the device receiving the configuration information should select to implement the tasks indicated by the configuration information. In this embodiment, the configuration information contains the target data transmission channel to be selected in the following steps, as well as information such as the configuration of the parameters within the selected target data channel.

[0036] Step S204: Determine the target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general-purpose input / output module.

[0037] According to the relevant information of the target data transmission channel to be selected included in the configuration information, control the internal power selection circuit to select the target data transmission channel.

[0038] Step S206: Perform data interaction with the host computer or the terminal device connected to the general-purpose input / output module through the target data transmission channel.

[0039] Transmit the target data through the selected data channel. In this embodiment, signals can be collected from the host computer side and transmitted to the terminal device connected to the general-purpose input / output module, or signals can be collected from the terminal device side connected to the general-purpose input / output module and transmitted to the host computer.

[0040] Through the above steps, it is possible to obtain configuration information, where the configuration information is generated by the distributed system controller according to the request signal sent by the host computer; determine the target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general-purpose input / output module; and perform data interaction with the host computer or the terminal device connected to the general-purpose input / output module through the target data transmission channel, thereby realizing the function of obtaining configuration information from the communication module and configuring the channel type of the UIO module according to the configuration information. According to an optional embodiment of the present application, performing data interaction with the host computer or the terminal device connected to the general-purpose input / output module through the target data transmission channel includes: collecting target data through the target data channel, where the target data is the data supported by the target data channel; and converting the target data.

[0041] According to an optional embodiment of the present application, data interaction is performed with a host computer or a terminal device connected to a general-purpose input / output module through a target data transmission channel, including: collecting target data through the target data transmission channel, where the format of the target data is a data format supported by the target data transmission channel; performing format conversion on the target data according to a target format, and sending the converted target data to the host computer or the terminal device, where the target format is a data format supported by the host computer or the terminal device.

[0042] According to a preferred embodiment provided by the present application, Figure 3 It is a system block diagram of a UIO module based on a Field Programmable Gate Array (FPGA) chip, as Figure 3 shown. According to this preferred embodiment, a general-purpose input / output module including a communication function, a data processing function (including converting target data), and a data transmission channel is provided; among them, the communication function is implemented by microcontroller unit (MCU) chips: MCU1 and MCU2, the data processing function is implemented by an FPGA chip, and the general-purpose input / output module is connected to a terminal block, and the terminal block is used for data transmission with a terminal device; specifically, the above-mentioned FPGA is used to implement the following functions:

[0043] 1. Output a Pulse Width Modulation (PWM) signal to provide a reference source for a multi-channel (i.e., Figure 3 the n-channel shown) analog signal output circuit.

[0044] 2. Output a Sinusoidal Pulse Width Modulation (SPWM) signal: provide multiple parallel SPWM signals, which, after filtering and modulation, form a sine wave required for a Highway Addressable Remote Transducer (HART) protocol circuit of an addressable remote sensor high-speed channel and meet the physical layer specification requirements of the HART protocol.

[0045] 3. Provide a digital filtering algorithm: control an Analog to Digital Converter (ADC) to collect analog input signals, and improve the power frequency suppression ability of the analog input signals through a filtering algorithm. Among them, ADC1 can read 16-bit data, and its sampling frequency is as high as 500 kilo samples per second (Ksps) (i.e., 50,000 samples per second), having the advantages of high precision and high resolution.

[0046] 4. Provide a HART demodulation algorithm: Through the HART soft modem algorithm, 16 channels demodulate HART data in parallel, improving the HART data update rate and reducing the cost of the HART hardware demodulation circuit; the above-mentioned HART soft modem algorithm is an algorithm that demodulates HART signals using software. The HART signal is an analog signal, and through this algorithm, two-way simultaneous communication between analog and digital signals can be achieved.

[0047] 5. Provide a Universal Asynchronous Receiver / Transmitter (UART): The UART is a general-purpose serial data bus. Through the serial-to-parallel function of the UART, it communicates with multiple other UART devices, improving the data update rate, reducing the hardware interface, and lowering the cost.

[0048] 6. Implement complex configuration functions such as DI signal, PI signal, IO card signal type switch (i.e., determine the data transmission channel), and configure the data transmission channel through Input / Output (IO) pins; communicate with MCU2.

[0049] According to another optional embodiment of the present application, the target data includes first target data. Collecting the target data through the target data transmission channel includes: If the obtained configuration information is the first configuration information, collect the first target data through the first target data transmission channel in the data transmission channels supported by the general-purpose input / output module; determine the first standard value for collecting the first target data through the first target data transmission channel according to the first pulse signal output by the programmable logic device in the general-purpose input / output module; collect the first target data with the data value being the first standard value.

[0050] When transmitting data of AI, DI, AO, and DO types in the power distribution link, select the data transmission channels corresponding to the above data types according to the configuration information. The above-mentioned power distribution link is the link in the power system that is directly connected to users and distributes electric energy to users. Figure 4 Schematic diagram of the conversion of a pulse signal (PWM signal). As Figure 4 shown, the FPGA outputs 16 PWM signals (i.e., the first pulse signal), which pass through a low-pass filter circuit (i.e., a PWM-to-voltage circuit) to convert the PWM signal into a reference voltage and input it into a Voltage / Electron current (V / I) conversion circuit; in addition, since different types of data require different power supplies, the FPGA also provides a power supply selection circuit for realizing the function of selecting the corresponding power supply circuit according to the different power supply requirements of different signal types.

[0051] Figure 5The circuit diagram for converting target data. In this embodiment, the current value of the current output by the AO output circuit is determined to be between 0 and 25 milliamperes (mA), and when collecting the AI signal, the minimum current that the acquisition circuit can recognize is determined to be 1 microampere (μA). As Figure 5 shown, the PWM wave output by the FPGA is converted into a DC voltage. Figure 5 In Figure 5 , the function of the analog switch (COM) is to convert the PWM into a PWM wave with the amplitude of the reference voltage (Vref); by setting appropriate timer and filter parameters, the step time is less than 2 milliseconds (ms), the ripple is less than 2 millivolts (mV), the cut-off frequency of the second-order filter at the AO output end is determined to be 500 Hz, and the target data is converted through the following formula: It should be noted that Figure 5 the conversion circuit shown is equivalent to a device close to a 15-bit digital-to-analog converter (DAC). The reference voltage is provided by the multiplexed PWM waves output by the FPGA. Therefore, a large amount of hardware costs can be reduced. For example, the use of multiple 15-bit DAC devices can be avoided.

[0052] Figure 6 The circuit schematic diagram of the data transmission channel (i.e., the first target data transmission channel) for transmitting data of types AO, DO, NAMUR, AI, and DI (i.e., the first target data) in the power distribution link. As Figure 6 shown, contacts A and B are the contacts for the current output of the above-mentioned type of data. Contacts A and B are passive contacts, which play the role of isolation and transmitting and controlling signals in different control loops. The above-mentioned type of data is output in the form of current. Among them, the supply voltage (Vcc) of the circuit is an adjustable power supply voltage, and the voltage value can adaptively change with the size of the load impedance and the output current; if the data type in the circuit is AI or DI, the supply voltage (Vcc) is 24V, and if the data type in the circuit is NAMUR, the supply voltage is 8.2V; at the same time, to meet the NAMUR standard, a resistor with a resistance value of 1 kΩ (i.e., Figure 6 Ra in Figure 6 ) is also connected in series to the power supply for providing 8.2V voltage. Among them, the above-mentioned NAMUR standard applies to the IO module, and this standard stipulates that the voltage of the data transmission circuit for transmitting NAMUR type data should be a DC voltage approaching 8V (such as 8.2V).

[0053] As Figure 6 shown, operational amplifiers A1 and A2 are the current output circuit topologies when the above-mentioned type of data is output in the form of current. According to the formula: the current value of the output current (i.e., the first standard) is determined. The above formula It can be obtained that where D is the duty cycle of the above PWM signal, indicating the proportion of the energization time relative to the total time within one cycle of the pulse signal; the output current of the calculation result of the current value conforming to the formula is sampled by the operational amplifier A3 where Vadc is determined by the formula and the collected current signal is converted through a low-pass filtering algorithm (i.e., the first preset algorithm) in the FPGA, and the converted current is transmitted to the host computer through MCU1 and MCU2. It should also be noted that, as Figure 6 shown, for the first target data transmission channel, by selecting larger resistors Ra and Rc, the current flowing through resistors Ra, Rc, and Q1 can be reduced, thereby maximizing the efficiency of the circuit and reducing the heat generation and temperature drift in the first stage (i.e., Figure 6 the circuit before A3 shown). When selecting resistors Ra, Rb, and Rc, high-precision, temperature-drift resistors can be used to minimize the errors caused by resistor mismatch and temperature drift. The above-mentioned temperature drift is a phenomenon of the change of semiconductor device parameters caused by temperature change.

[0054] According to another optional embodiment of the present application, the target data includes second target data. Collecting the target data through the target data transmission channel includes: if the obtained configuration information is the second configuration information, collecting the second target data through the second target data transmission channel in the data transmission channel supported by the general-purpose input / output module; determining the second standard value for the second target data transmission channel to collect the second target data according to the first pulse signal; collecting the second target data with the data value being the second standard value.

[0055] Figure 7 is the circuit schematic diagram of the non-power distribution channel (i.e., the second target data transmission channel). Among them, the non-power distribution channel is a data transmission channel (i.e., the second target data transmission channel) used to transmit data of types AO, DO, NAMUR, AI, and DI (i.e., the second target data) in the non-power distribution link. As Figure 7 shown, the EN terminal is the enable pin of a 30mA current-limiting protection chip (device), and this enable pin is connected to the input / output (IO) pin of the FPGA. When the level signal received by the enable pin is a high-level signal (logic level 1, i.e., the first preset level), the circuit of the non-power distribution AI channel is turned on; Figure 7 In the circuit shown, ports A and B are current input ports. Denote the voltage at the sampling terminal (i.e., Figure 7 the ADC CHECK1 terminal in) as Vadc. If the above Set to 50 mA, it can be determined that the current value allowed to pass through the circuit is 0 - 20 mA (i.e., the second standard), and the acquired current signal is converted through a low-pass filtering algorithm (i.e., the first preset algorithm) in the FPGA, and the converted current is transmitted to the host computer through MCU1 and MCU2.

[0056] According to another optional embodiment of the present application, the target data includes third target data. Collecting the target data through the target data transmission channel includes: if the obtained configuration information is the third configuration information, collecting the third target data through the third target data transmission channel in the data transmission channel supported by the general-purpose input / output module; determining the reference data value, comparing the data value of the third target data with the reference data value, outputting the comparison result, and the comparison result is the output of the third target data transmission channel; collecting the comparison result.

[0057] Figure 8 It is the circuit schematic diagram of the channel (i.e., the third target data transmission channel) for transmitting voltage-type DI and PI type data. Among them, Figure 8 the channel switch in it is served by an enable pin connected to the channel. When the level signal received by the enable pin is a high-level signal (logical level 1, i.e., the second preset level), the third target data transmission channel, and the enable pin is also connected to the IO pin of the FPGA, and the third target data transmission channel is controlled by the FPGA to conduct. Figure 8 RA and RB in it are channel voltage-dividing resistors; U1 is a comparator, which is used to compare the collected voltage (i.e., the third target data) with the reference voltage value (i.e., the reference data value), and then input the comparison result to the IO pin of the FPGA; in the third target data transmission channel, the FPGA is mainly used for high and low level calculation, pulse frequency calculation, and sending the processed data to the host computer.

[0058] For easy understanding, the comparator U1 is introduced as follows. The working principle of the comparator (U1) is to compare two or more data items to determine whether they are equal, or to determine the magnitude relationship and sorting order between them; the comparator (U1) is a circuit that compares an analog voltage signal with a reference voltage. The two inputs of the comparator are analog signals, and the output is a binary signal 0 or 1 (i.e., a digital signal). When the difference between the input voltages increases or decreases and the positive and negative signs remain unchanged, its output remains constant.

[0059] According to some optional embodiments of the present application, format conversion is performed on the target data according to the target format, including: if the obtained configuration information is the fourth configuration information, determining the second pulse signal according to the fourth configuration information, and converting the second pulse signal through a preset algorithm.

[0060] In some alternative embodiments, the HART demodulation algorithm provided by the FPGA can be utilized to collect and convert analog or digital data not mentioned in the above embodiments, and the converted data can be transmitted to the host computer through a communication chip or to a terminal device through a terminal block.

[0061] According to an alternative embodiment of the present application, the data transmission method further includes: if the first device obtains the configuration information, determining the data transmission channel of the first device according to the configuration information; if the first device fails, determining the data transmission channel of the second device according to the configuration information, where the first device is a device for collecting data in a working state, and the second device is a backup device of the first device.

[0062] Figure 9 It is a flowchart of the program processing of a general-purpose input / output (UIO) module according to this embodiment. As Figure 9 shown, after the UIO module establishes communication with the communication module, it receives the IO signal type configuration information (i.e., the configuration information), and determines the signal type of the IO channel (i.e., the target data transmission channel) according to the above IO signal type configuration information; after completing the above process, the UIO module determines whether the device that obtains the configuration information is in a normal working state (i.e., determines whether it is a working card). If the above device is in a normal working state (i.e., it is a working card), channel configuration is performed on this device (i.e., execute the Figure 9 process of the working card signal type configuration channel in), if the above device fails, channel configuration is performed on the backup device (i.e., the backup card) (i.e., execute the Figure 9 process of the backup card signal type configuration channel in).

[0063] According to another alternative embodiment of the present application, the target data transmission channel includes at least one of the following: a digital type data input channel, a digital type data output channel, an analog type data input channel, and an analog type data output channel.

[0064] As Figure 10 shown is the channel configuration structure diagram in a general-purpose input / output (Userspace Input / Output, UIO) module, including: an analog signal input (Analog Input, AI) channel, an analog signal output (Analog Output, AO) channel, a digital signal input (Digital Input, DI) channel, a digital signal output (Digital Output, DO) channel, and a pulse signal input (Pulse Input, PI) channel; the data transmission channel in the UIO module can be configured as Figure 10The UIO module also includes a switch signal (NAMUR) and a sequence of events (SOE) signal, wherein the sequence of events signal records the opening and closing moments of each channel in the UIO module in the order of occurrence.

[0065] Figure 11 It is a structural diagram of a data transmission device provided according to an embodiment of the present application, and the device includes: an acquisition module 110, used to obtain configuration information, wherein the configuration information is generated by a distributed system controller according to a request signal sent by a host computer; a determination module 112, used to determine a target data transmission channel corresponding to the configuration information from data transmission channels supported by a general input-output module; and a transmission module 114, used to perform data interaction with a host computer or a terminal device connected to the general input-output module through the target data transmission channel.

[0066] According to this embodiment, a UIO module based on FPGA is provided, which can have analog input (AI), digital input (DI), analog output (AO), digital output (DO), pulse input (PI), NAMUR, HART and other signal types. Figure 11 This is a schematic diagram of the distributed control system (DCS system) architecture based on UIO, in which the DCS controller communicates with the communication module through Ethernet or optical fiber, and the communication module communicates with the UIO module through the independently developed 128zhao bit per second (Mbps) communication bus (Echo Control Indicator, ECI). The bus can be configured as one of the signal types of AI, AO, DI (SOE), DO, PI, and NAMUR required by the user, and exchange data with field instruments through terminal blocks. It has the advantages of complete signal types, excellent performance parameters, and low cost.

[0067] According to another aspect of an embodiment of the present application, a non-volatile storage medium is provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above data transmission method.

[0068] The above-mentioned non-volatile storage medium is used to store programs that perform the following functions: obtain configuration information, wherein the configuration information is generated by the distributed system controller according to a request signal sent by a host computer; determine a target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general input and output module; and perform data interaction with the host computer or a terminal device connected to the general input and output module through the target data transmission channel.

[0069] According to another aspect of the embodiments of the present application, a data transmission system is further provided. The system includes: a host computer module, a system control module, a communication module, and a general-purpose input / output module. Among them, there is a communication relationship between the host computer module and the system control module, a communication relationship between the system control module and the communication module, and a communication relationship between the communication module and the general-purpose input / output module. Among them, the general-purpose input / output module executes the above-mentioned data transmission method.

[0070] The above system is used to perform the following functions: obtain configuration information, where the configuration information is generated by a distributed system controller according to a request signal sent by the host computer; determine a target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general-purpose input / output module; perform data interaction with the host computer or a terminal device connected to the general-purpose input / output module through the target data transmission channel.

[0071] The embodiments of the present application also provide a general-purpose input / output device. The above general-purpose input / output device includes: a field programmable gate array chip, multiple microcontroller chips, multiple analog-to-digital converters, and a data transmission channel module. Among them, there is a communication relationship among the multiple microcontroller chips, a communication relationship between the multiple microcontroller chips and the field programmable gate array chip, a communication relationship between the field programmable gate array chip and the multiple analog-to-digital converters, and a communication relationship between the multiple analog-to-digital converters and the data transmission channel module.

[0072] The above general-purpose input / output device performs the following functions: obtain configuration information, where the configuration information is generated by a distributed system controller according to a request signal sent by the host computer; determine a target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general-purpose input / output module; perform data interaction with the host computer or a terminal device connected to the general-purpose input / output module through the target data transmission channel.

[0073] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0074] In the above embodiments of the present application, the descriptions of the respective embodiments have their own emphases. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

[0075] In several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed with each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.

[0076] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0077] In addition, in each embodiment of this application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0078] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of this application. The aforementioned storage medium includes: various media such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs that can store program codes.

[0079] The above are only the preferred embodiments of this application. It should be noted that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of this application.

Claims

1. A method for data transmission, characterized in that, Including: Obtain configuration information, where the configuration information is generated by a distributed system controller according to a request signal sent by a host computer, and the configuration information includes signal type configuration information; Determine a target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general input / output module; Perform data interaction with the host computer or a terminal device connected to the general input / output module through the target data transmission channel, including: collecting target data through the target data transmission channel, where the format of the target data is a data format supported by the target data transmission channel; performing format conversion on the target data according to a target format, and sending the converted target data to the host computer or the terminal device, where the target format is a data format supported by the host computer or the terminal device.

2. The method according to claim 1, characterized in that, The target data includes first target data. Collecting target data through the target data transmission channel includes: If the obtained configuration information is first configuration information, collect the first target data through a first target data transmission channel in the data transmission channels supported by the general input / output module; Determine a first standard value for collecting the first target data by the first target data transmission channel according to a first pulse signal output by a programmable logic device in the general input / output module; Collect first target data with a data value of the first standard value.

3. The method according to claim 2, characterized in that, The target data includes second target data. Collecting target data through the target data transmission channel includes: If the obtained configuration information is second configuration information, collect the second target data through a second target data transmission channel in the data transmission channels supported by the general input / output module; Determine a second standard value for collecting the second target data by the second target data transmission channel according to the first pulse signal; Collect second target data with a data value of the second standard value.

4. The method according to claim 1, characterized in that The target data includes third target data. Collecting target data through the target data transmission channel includes: If the obtained configuration information is third configuration information, collect the third target data through a third target data transmission channel in the data transmission channels supported by the general input / output module; Determine a reference data value, compare the data value of the third target data with the reference data value, and output a comparison result, where the comparison result is the output of the third target data transmission channel; Collect the comparison result.

5. The method according to claim 1, wherein Performing format conversion on the target data according to a target format includes: If the obtained configuration information is fourth configuration information, determine a second pulse signal according to the fourth configuration information, and perform conversion on the second pulse signal through a preset algorithm.

6. The method for data transmission according to claim 1, wherein The method further includes: If the device for obtaining the configuration information is a first device, determine the data transmission channel of the first device according to the configuration information. If the first device fails, determine the data transmission channel of a second device according to the configuration information, where the first device is the device for collecting the data in a working state, and the second device is a backup device of the first device.

7. The method for data transmission according to claim 1, wherein The target data transmission channel includes at least one of the following: a digital type data input channel, a digital type data output channel, an analog type data input channel, and an analog type data output channel.

8. A device for data transmission, characterized in that, including: an acquisition module, configured to acquire configuration information, where the configuration information is generated by a distributed system controller according to a request signal sent by a host computer, and the configuration information includes signal type configuration information; a determination module, configured to determine a target data transmission channel corresponding to the configuration information from the data transmission channels supported by the general-purpose input / output module; a transmission module, configured to perform data interaction with the host computer or a terminal device connected to the general-purpose input / output module through the target data transmission channel, including: acquiring target data through the target data transmission channel, where the format of the target data is a data format supported by the target data transmission channel; performing format conversion on the target data according to a target format, and sending the converted target data to the host computer or the terminal device, where the target format is a data format supported by the host computer or the terminal device.

9. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, where when the program runs, it controls the device where the non-volatile storage medium is located to execute the data transmission method according to any one of claims 1 to 6.

10. A data transmission system, characterized in that, The system includes: a host computer module, a system control module, a communication module, and a general-purpose input / output module, where there is a communication relationship between the host computer module and the system control module, there is the communication relationship between the system control module and the communication module, and there is the communication relationship between the communication module and the general-purpose input / output module, where the general-purpose input / output module executes the data transmission method according to any one of claims 1 to 6.

11. A general input / output device, characterized in that, The general-purpose input / output device includes: a field programmable gate array chip, a plurality of microcontroller unit chips, a plurality of analog-to-digital converters, and a data transmission channel module, where there is a communication relationship between the plurality of microcontroller unit chips, there is the communication relationship between the plurality of microcontroller unit chips and the field programmable gate array chip, there is a communication relationship between the field programmable gate array chip and the plurality of analog-to-digital converters, and there is a communication relationship between the plurality of analog-to-digital converters and the data transmission channel module, where the general-purpose input / output device executes the data transmission method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent electric quantity acquisition system

    CN105049307A

  • Multi-channel signal transceiving system and method, electronic equipment and storage medium

    CN112217537A