Data transmission method, device, system, electronic device, medium and product
By controlling the reset and data writing/reading processes of multiple DSP chips using FPGA, the problem of ODUCn offset in the transmission of multiple DSP chips was solved, achieving efficient data alignment and bandwidth improvement.
Patent Information
- Application Number
- CN202510643803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2026-11-27
AI Technical Summary
In the transmission of multiple DSP chips, the inconsistency in the transmission delay of electrical signals and optical signals causes ODUCn offset. The existing Framer's offset removal capability is insufficient, resulting in insufficient transmission bandwidth.
The FPGA detects chip malfunctions and sends reset signals to reset the ODUCn alignment module of each chip, restoring it to normal. After all chips are back to normal, the reset is canceled and the frame data is written to the alignment memory. When the memory is not empty, the data is read, and the powerful de-offset capability of the DSP chip is used to perform multi-chip alignment.
It significantly improves transmission bandwidth, meets the requirements of high-speed data transmission, and achieves efficient data alignment across multiple chips.
Smart Images

Figure CN123178338A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to data transmission methods, apparatus, systems, electronic devices, media, and products. Background Technology
[0002] Currently, the bandwidth requirements for DSP (Digital Signal Processing) chips in the core nodes of large enterprise networks and long-distance backbone network transmission are becoming increasingly higher. Therefore, it is necessary to provide a solution for using multiple DSP chips in parallel to achieve ultra-bandwidth usage in a multi-carrier manner.
[0003] However, when using multiple DSP chips for transmission, it is impossible to guarantee that the transmission delays of electrical and optical signals on the multiple chips are completely consistent. This will inevitably increase the skew of the ODUCN (Optical Data Unit-Cn). In related technologies, the Framer that interfaces with the DSP has a deskew capability of only 300ns for the ODUCN, resulting in insufficient transmission bandwidth. Summary of the Invention
[0004] The main objective of this application is to provide a data transmission method, apparatus, system, electronic device, medium, and product, aiming to solve the technical problem of how to improve the offset removal capability of ODUCn, thereby increasing the transmission bandwidth.
[0005] To achieve the above objectives, embodiments of this application provide a data transmission method applied to an FPGA, wherein the FPGA is connected to multiple chips containing ODUcn, and the data transmission method includes:
[0006] Upon receiving an abnormal indication from any of the chips, a reset signal is sent to each of the chips to reset the alignment module in ODUCn according to the reset signal;
[0007] Upon receiving a normal indication from each of the chips, a cancel reset signal is sent to each of the chips, so that each of the chips cancels the reset of the alignment module according to the cancel reset signal and writes the frame data into the alignment memory from the specified position in the ODUCn;
[0008] Upon receiving a memory non-empty signal from each of the chips, a readable signal is sent to each of the chips so that each of the chips reads ODUCn data from the aligned memory according to the readable signal.
[0009] Furthermore, to achieve the above objectives, embodiments of this application also provide a data transmission method applied to a chip containing an ODUCN, wherein multiple chips are connected to an FPGA, and the data transmission method includes:
[0010] In response to a reset signal from the FPGA, the alignment module in ODUCn is reset according to the reset signal, and a normal indication is sent to the FPGA;
[0011] In response to the cancel reset signal sent by the FPGA based on the normal indication, the alignment module is canceled according to the cancel reset signal, and the frame data is written to the alignment memory from the specified position in the ODUCn, and a memory non-empty signal is sent to the FPGA;
[0012] In response to a readable signal sent by the FPGA based on the memory non-empty signal, ODUCn data is read from the aligned memory according to the readable signal.
[0013] Furthermore, to achieve the above objectives, embodiments of this application also provide a data transmission device applied to an FPGA, wherein the FPGA is connected to a plurality of chips containing ODUcn, and the data transmission device includes:
[0014] A first reset module is configured to send a reset signal to each of the chips upon receiving an abnormal indication from any of the chips, so that each of the chips resets the alignment module in ODUCn according to the reset signal.
[0015] The first cancellation module is configured to send a cancellation reset signal to each of the chips upon receiving a normal instruction from each of the chips, so that each of the chips cancels the reset of the alignment module according to the cancellation reset signal and writes the frame data from the specified position in the ODUCn into the alignment memory;
[0016] A first read module is configured to send a readable signal to each of the chips upon receiving a memory non-empty signal from each of the chips, so that each of the chips reads ODUCn data from the aligned memory according to the readable signal.
[0017] Furthermore, to achieve the above objectives, embodiments of this application also provide a data transmission device applied to a chip containing an ODUCN, wherein multiple chips are connected to an FPGA, and the data transmission device includes:
[0018] The second reset module is configured to, in response to a reset signal from the FPGA, reset the alignment module in ODUCn according to the reset signal and send a normal indication to the FPGA;
[0019] The second cancellation module is configured to, in response to a cancellation reset signal sent by the FPGA based on the normal indication, cancel the reset of the alignment module according to the cancellation reset signal, write frame data from a specified position in the ODUCn into the alignment memory, and send a memory non-empty signal to the FPGA.
[0020] The second read module is configured to read ODUCn data from the aligned memory in response to a readable signal sent by the FPGA based on the memory non-empty signal.
[0021] In addition, to achieve the above objectives, this application also provides a data transmission system, which includes an FPGA and a plurality of chips containing ODUCN connected to the FPGA;
[0022] The FPGA is configured to send a reset signal to each of the chips upon receiving an abnormal indication from any of the chips.
[0023] The chip is configured to, in response to the reset signal from the FPGA, reset the alignment module in ODUCn according to the reset signal and send a normal indication to the FPGA;
[0024] The FPGA is configured to send a cancel reset signal to each of the chips upon receiving the normal indication from each of the chips.
[0025] The chip is configured to, in response to a cancel reset signal sent by the FPGA based on the normal indication, cancel the reset of the alignment module according to the cancel reset signal, write frame data from a specified position in the ODUCn into the alignment memory, and send a memory non-empty signal to the FPGA;
[0026] The FPGA is configured to send a readable signal to each of the chips upon receiving a non-empty memory signal from each of the chips.
[0027] The chip is configured to read ODUCn data from the aligned memory in response to a readable signal sent by the FPGA based on a non-empty memory signal.
[0028] In addition, to achieve the above objectives, this application also provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the data transmission method described above.
[0029] In addition, to achieve the above objectives, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the data transmission method described above.
[0030] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the data transmission method described above.
[0031] This application proposes a data transmission method, apparatus, system, electronic device, medium, and product. In this data transmission method, when an FPGA detects a chip malfunction, it sends a reset signal to each chip, enabling each chip to reset the ODUCN alignment-related functional modules based on the reset signal, thereby restoring the ODUCN service from abnormal to normal. When all chips output normal indications, the FPGA then instructs each chip to cancel the reset of the ODUCN alignment-related functional modules, allowing each chip to write ODUCN frame data into the alignment memory starting from a specified position. When the alignment memories of each chip are all in a non-empty state, the FPGA instructs each chip to read data from the ODUCN from the alignment memory, thereby achieving multi-chip ODUCN alignment. Since the deskew capability of DSP chips is much stronger than that of Framer, this application embodiment can increase the transmission bandwidth by several times, thus meeting the ever-increasing demand for high-speed data transmission. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only a part of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a schematic diagram illustrating the application environment involved in a data transmission method provided in an embodiment of this application;
[0034] Figure 2 This is a schematic diagram illustrating an application scenario related to a data transmission method provided in an embodiment of this application;
[0035] Figure 3 A flowchart illustrating a data transmission method provided in an embodiment of this application;
[0036] Figure 4 A flowchart illustrating another data transmission method provided in an embodiment of this application;
[0037] Figure 5 A flowchart illustrating another data transmission method provided in an embodiment of this application;
[0038] Figure 6 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this application;
[0039] Figure 7 This is a schematic diagram of the structure of another data transmission device provided in the embodiments of this application;
[0040] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0041] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that the embodiments of this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the embodiments of this application with unnecessary detail.
[0042] With the rapid growth of big data centers, mobile internet, Internet of Things (IoT), East-to-West data computing, and cloud computing, the bandwidth requirements for DSP chips in the core nodes of large enterprise networks and long-distance backbone network transmission are becoming increasingly higher. Therefore, it is necessary to provide a solution for using multiple DSP chips in parallel to achieve ultra-bandwidth usage in a multi-carrier manner.
[0043] However, when using multiple DSP chips for transmission, it is impossible to guarantee that the transmission delays of electrical and optical signals on the multiple chips are completely consistent. This will inevitably increase the skew of the ODUCN (Optical Data Unit-Cn). In related technologies, the Framer that interfaces with the DSP has a deskew capability of only 300ns for the ODUCN, resulting in insufficient transmission bandwidth.
[0044] Based on this, embodiments of this application provide a data transmission method, apparatus, system, electronic device, medium, and product. In this data transmission method, when an FPGA detects a chip malfunction, it sends a reset signal to each chip, enabling each chip to reset the ODUCN alignment-related functional modules based on the reset signal, thereby restoring the ODUCN service from abnormal to normal. When all chips output normal indications, the FPGA then notifies each chip to cancel the reset of the ODUCN alignment-related functional modules, allowing each chip to write the ODUCN frame data into the alignment memory starting from a specified position. When the alignment memories of each chip are all in a non-empty state, the FPGA instructs each chip to read the data from the ODUCN from the alignment memory, thereby achieving multi-chip ODUCN alignment. Since the deskew capability of DSP chips is much stronger than that of Framer, embodiments of this application can increase the transmission bandwidth many times over, thereby meeting the ever-increasing demand for high-speed data transmission.
[0045] The data transmission methods, apparatus, systems, electronic devices, media, and products provided in this application are specifically described through the following embodiments. First, the application environment of the data transmission methods in this application is described.
[0046] Reference Figure 1 , Figure 1 This is a schematic diagram of the application environment for a data transmission method provided in an embodiment of this application. The data transmission method is mainly applied to an electronic device that includes an FPGA and multiple DSP chips containing ODUCN connected thereto.
[0047] Furthermore, referring to Figure 2 In this embodiment, taking the data transmission scenario between the NE1 network element (composed of a Framer and i DSP chips containing ODUCN) as the transmitting side and the NE2 network element (composed of a Framer, an FPGA controller, and i DSP chips containing ODUCN) as the receiving side as an example, the Framer of the NE1 network element sends out i ODUCN data, and each of the i chips of the NE1 network element transmits a set of ODUCN data. After multi-carrier transmission, the data is transmitted to the NE2 network element. The i chips of the NE2 network element are controlled by the FPGA to complete the alignment of the i ODUCN frame data in parallel. The alignment of the i ODUCN data is then completed by the Framer of the NE2 network element.
[0048] In this embodiment, considering that the DSP chip's deskew capability is much stronger than that of the Framer, an FPGA controller is added to the electronic device that needs to transmit data. The FPGA controller controls each DSP chip in real time to complete the alignment of ODUCN frame data from other devices in parallel, which can increase the data transmission rate many times over, thereby meeting the growing demand for high-speed data transmission.
[0049] Based on the above application scenarios, the data transmission method in the embodiments of this application will be further explained, referring to... Figure 3 , Figure 3 This is a flowchart illustrating a data transmission method provided in an embodiment of this application. This data transmission method can be applied to an FPGA, which is connected to multiple DSP chips containing ODUCN, such as... Figure 3 As shown, the data transmission method provided in this embodiment includes steps S10 to S30.
[0050] Step S10: Upon receiving an abnormal indication from any chip, a reset signal is sent to each chip so that each chip resets the alignment module in ODUCn according to the reset signal.
[0051] In this embodiment, there is a set of IF (interface) interconnection interfaces (such as SPI, I2C, etc.) between the FPGA and each DSP chip. When an abnormality occurs in the ODUCN service, each DSP chip will generate an abnormality indication and send it to the FPGA through the interface. The FPGA will continuously monitor whether each DSP chip outputs an abnormality indication. When it receives an abnormality indication from any DSP chip, it will generate a reset signal and send the reset signal to all DSP chips at the same time through the interface, so that all DSP chips reset the alignment module (referring to various alignment-related functional modules) in ODUCN according to the reset signal.
[0052] Understandably, if a reset signal is sent only to the DSP chip that outputs the abnormality indication, it will not be possible to align the ODUCN services of that DSP chip with those of other DSP chips.
[0053] Step S20: Upon receiving normal instructions from each chip, a cancel reset signal is sent to each chip so that each chip cancels the reset of the alignment module according to the cancel reset signal and writes the frame data from the specified position in ODUCn into the alignment memory.
[0054] In this embodiment, after each DSP chip receives a reset signal from the FPGA and resets the alignment module in ODUCn based on the reset signal, its ODUCn service can recover from the abnormal state to normal. At this time, each DSP chip will send a normal indication to the FPGA. After the FPGA receives the normal indications from all DSP chips, it will send a cancel reset signal to each DSP chip through the interface, so that each DSP chip can cancel the reset of the alignment module in ODUCn at the same time, and simultaneously write the frame data of ODUCn into the alignment memory starting from a specified position in ODUCn (e.g., the n-fold frame header position).
[0055] In step S30, upon receiving a memory non-empty signal from each chip, a readable signal is sent to each chip so that each chip reads ODUCn data from the aligned memory according to the readable signal.
[0056] After the DSP chip writes the frame data of ODUCN into the alignment memory, the ODUCN memory will be in a non-empty state. Each DSP chip will send the memory non-empty signal corresponding to this non-empty state to the FPGA. When the FPGA knows that the memory of all DSP chips is in a non-empty state, it will send a readable signal to each DSP chip at the same time through the interface, so that each DSP chip can read the ODUCN data from the alignment memory at the same time. Thus, the process of controlling each DSP chip to complete the ODUCN alignment after the FPGA detects the anomaly is completed.
[0057] Reference Figure 4 In some feasible embodiments, after step S30 described above, the data transmission method may further include:
[0058] Step S40: Send sampling signals to each chip so that each chip can collect multiframe positioning information from the ODUCn data according to the sampling signals;
[0059] Step S50: Receive multiframe positioning information from each chip and compare whether the multiframe positioning information is consistent.
[0060] In step S60, if the positioning information of each multiframe is inconsistent, the step of sending a reset signal to each chip in step S10 is executed so that each chip resets the alignment module in ODUCn according to the reset signal.
[0061] In this embodiment, in order to ensure that the ODUCn of each DSP chip is truly aligned, the alignment of the ODUCN multiframe MFAS can be further compared. Therefore, the FPGA can control the MFAS acquisition process of each DSP chip corresponding to steps S40 to S60.
[0062] In this embodiment, sampling signals can be periodically triggered in the FPGA and simultaneously sent to each DSP chip via an interface. When the DSP chip receives the sampling signal, it collects multi-frame MFAS (i.e., multi-frame positioning information) of the data read from the ODUCn in the memory, and then sends the collected multi-frame MFAS to the FPGA. After receiving the multi-frame MFAS from all DSP chips, the FPGA compares them. Specifically, the comparison method can be to check whether each multi-frame MFAS is consistent multiple times. If they are consistent multiple times, it means that the multi-chip ODUCn is aligned. If they are inconsistent multiple times, it means that the multi-chip ODUCn is not aligned. The FPGA can, as in the steps after receiving the abnormal indication in step S10 above, control each DSP chip to perform multi-chip ODUCn alignment again by sequentially sending a reset signal, canceling the reset signal, and a readable signal.
[0063] This embodiment provides a data transmission method that, when using multiple chips, can significantly increase transmission bandwidth through parallel processing, thereby meeting the ever-growing demand for high-speed data transmission. For example, in interconnection scenarios between data centers, core nodes of large enterprise networks, and long-distance backbone networks, bandwidth requirements are extremely high. In such scenarios, the data transmission method provided in this embodiment can perform a deskew operation on multiple ODUCNs. By utilizing parallel processing and alignment technology across multiple chips, the transmission bandwidth is greatly increased, achieving high-speed and stable data transmission.
[0064] Furthermore, embodiments of this application also provide a data transmission method, referring to... Figure 5 , Figure 5 This is a flowchart illustrating a data transmission method provided in an embodiment of this application. The data transmission method can be applied to a DSP chip containing an ODUCN, and multiple DSP chips are connected to an FPGA. The data transmission method provided in this embodiment includes steps S11 to S31.
[0065] Step S11: In response to the reset signal from the FPGA, reset the alignment module in ODUCn according to the reset signal and send a normal indication to the FPGA;
[0066] Step S21: In response to the cancel reset signal sent by the FPGA based on the normal indication, the reset alignment module is canceled according to the cancel reset signal, and the frame data is written into the alignment memory from the specified position in ODUCn. A memory non-empty signal is sent to the FPGA.
[0067] Step S31: In response to the readable signal sent by the FPGA based on the memory non-empty signal, read the ODUCn data from the aligned memory according to the readable signal.
[0068] In some feasible embodiments, after step S31 described above, the data transmission method may further include:
[0069] Step S41: In response to the sampling signal from the FPGA, multiframe positioning information is collected from the ODUCn data according to the sampling signal, and the multiframe positioning information is sent to the FPGA.
[0070] The data transmission method for a DSP chip containing ODUCN provided in this embodiment belongs to the same technical concept as the data transmission method for an FPGA provided in the above embodiments. Technical details not described in detail in this embodiment can be found in any of the above embodiments, and this embodiment has the same beneficial effects as performing the above embodiments.
[0071] Furthermore, embodiments of this application also provide a data transmission device, referring to... Figure 6 , Figure 6 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this application, as shown below. Figure 6 As shown, in this embodiment, the data transmission device is applied to an FPGA, which is connected to multiple chips containing ODUCn. The data transmission device includes a first reset module 10, a first cancellation module 20, and a first read module 30.
[0072] The first reset module 10 is configured to send a reset signal to each chip upon receiving an abnormal indication from any chip, so that each chip resets the alignment module in ODUCn according to the reset signal.
[0073] The first cancellation module 20 is configured to send a cancellation reset signal to each chip upon receiving a normal instruction from each chip, so that each chip cancels the reset of the alignment module according to the cancellation reset signal and writes the frame data from the specified position in ODUCn into the alignment memory.
[0074] The first read module 30 is configured to send a readable signal to each chip when it receives a memory non-empty signal from each chip, so that each chip reads ODUCn data from the aligned memory according to the readable signal.
[0075] In some feasible embodiments, the data transmission device may further include a first sampling module 40 and a comparison module 50.
[0076] The first sampling module 40 is configured to send sampling signals to each chip so that each chip can collect multi-frame positioning information from the ODUCN data according to the sampling signals.
[0077] The comparison module 50 is configured to receive multiframe positioning information from each chip and compare whether the multiframe positioning information is consistent; if the multiframe positioning information is inconsistent, the first reset module 10 is invoked to send a reset signal to each chip so that each chip resets the alignment module in ODUCn according to the reset signal.
[0078] The data transmission device provided in this embodiment and the data transmission method applied to FPGA provided in the above embodiments belong to the same technical concept. Technical details not described in detail in this embodiment can be found in any of the above embodiments. Furthermore, this embodiment has the same beneficial effects as the data transmission method applied to FPGA.
[0079] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0080] Furthermore, embodiments of this application also provide a data transmission device, referring to... Figure 7 , Figure 7 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this application, as shown below. Figure 7 As shown, in this embodiment, the data transmission device is applied to a DSP chip containing ODUCn, and multiple DSP chips are connected to an FPGA. The data transmission device includes: a second reset module 11, a second cancellation module 21, and a second read module 31.
[0081] The second reset module 11 is configured to, in response to a reset signal from the FPGA, reset the alignment module in ODUCn according to the reset signal and send a normal indication to the FPGA.
[0082] The second cancellation module 21 is configured to, in response to a cancellation reset signal sent by the FPGA based on a normal indication, cancel the reset of the alignment module according to the cancellation reset signal, write frame data from a specified position in ODUCn into the alignment memory, and send a memory non-empty signal to the FPGA.
[0083] The second read module 31 is configured to read ODUCn data from the aligned memory in response to a readable signal sent by the FPGA based on a memory non-empty signal.
[0084] In some feasible embodiments, the data transmission device may further include a second sampling module 41.
[0085] The second sampling module 41 is configured to respond to the sampling signal from the FPGA, collect multiframe positioning information from the ODUCn data according to the sampling signal, and send the multiframe positioning information to the FPGA.
[0086] The data transmission device provided in this embodiment and the data transmission method applied to a DSP chip containing ODUCN provided in the above embodiments belong to the same technical concept. Technical details not described in detail in this embodiment can be found in any of the above embodiments. Furthermore, this embodiment has the same beneficial effects as the data transmission method applied to a DSP chip containing ODUCN.
[0087] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0088] Furthermore, embodiments of this application also provide a data transmission system, which includes an FPGA and a plurality of DSP chips containing ODUCN connected to the FPGA;
[0089] The FPGA is configured to send a reset signal to each chip upon receiving an exception indication from any chip.
[0090] The DSP chip is configured to respond to a reset signal from the FPGA, reset the alignment module in ODUCn according to the reset signal, and send a normal indication to the FPGA.
[0091] The FPGA is configured to send a cancel reset signal to each chip upon receiving normal instructions from each chip.
[0092] The DSP chip is configured to, in response to a cancel reset signal sent by the FPGA based on a normal indication, cancel the reset of the alignment module according to the cancel reset signal, write frame data from a specified position in ODUCn into the alignment memory, and send a memory non-empty signal to the FPGA;
[0093] The FPGA is configured to send a readable signal to each chip upon receiving a non-empty memory signal from each chip.
[0094] The DSP chip is configured to read ODUCn data from the aligned memory in response to a readable signal sent by the FPGA based on a memory non-empty signal.
[0095] The data transmission system provided in this embodiment belongs to the same technical concept as the data transmission method provided in the above embodiments. Technical details not described in detail in this embodiment can be found in any of the above embodiments. Furthermore, this embodiment has the same beneficial effects as the data transmission method.
[0096] Furthermore, embodiments of this application also provide an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the data transmission method in any of the above embodiments.
[0097] The following is for reference. Figure 8 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of this application. The electronic device in these embodiments may be an OTN (optical transport network) transmission device. Figure 8 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0098] like Figure 8 As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. The communication device 1009 allows the electronic device to exchange data via wireless or wired communication with other devices. Although the diagrams show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.
[0099] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0100] The beneficial effects of the electronic device provided in this application are the same as those of the data transmission method provided in the above embodiments, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.
[0101] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0102] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0103] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, on which a computer program is stored, and which, when executed by a processor, implements the data transmission method provided in any of the above embodiments.
[0104] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0105] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.
[0106] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by an electronic device, enable the electronic device to implement the aforementioned data transmission method.
[0107] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0108] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0109] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0110] The readable storage medium provided in this embodiment is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for performing the above-described data transmission method. The beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the data transmission method provided in the above-described embodiments, and will not be repeated here.
[0111] Furthermore, this application also provides a computer program product, including a computer program, which, when executed by a processor, implements the data transmission method provided in any of the above embodiments.
[0112] The computer program product provided in this embodiment belongs to the same technical concept as the data transmission method proposed in the above embodiments. Compared with related technologies, the beneficial effects of the computer program product provided in this embodiment are the same as the beneficial effects of the data transmission method provided in the above embodiments, and will not be repeated here.
[0113] It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown in the flowchart. The terms "first," "second," etc., in the specification, claims, and drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0114] It should also be understood that references to "one embodiment" or "some embodiments" in the specification of embodiments of this application mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0115] The above describes some implementation methods of the embodiments of this application. However, the embodiments of this application are not limited to the above implementation methods. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the embodiments of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of the embodiments of this application.
Claims
1. A data transmission method, characterized in that, Applied to an FPGA, wherein the FPGA is connected to multiple chips containing ODUCn, the data transmission method includes: Upon receiving an abnormal indication from any of the chips, a reset signal is sent to each of the chips to reset the alignment module in ODUCn according to the reset signal; Upon receiving a normal indication from each of the chips, a cancel reset signal is sent to each of the chips, so that each of the chips cancels the reset of the alignment module according to the cancel reset signal and writes the frame data into the alignment memory from the specified position in the ODUCn; Upon receiving a memory non-empty signal from each of the chips, a readable signal is sent to each of the chips so that each of the chips reads ODUCn data from the aligned memory according to the readable signal.
2. The data transmission method as described in claim 1, characterized in that, After the step of sending a readable signal to each of the chips, so that each of the chips reads ODUCn data from the alignment memory according to the readable signal, the data transmission method further includes: A sampling signal is sent to each of the chips so that each of the chips can collect multiframe positioning information from the ODUCn data based on the sampling signal; Receive the multiframe positioning information from each of the chips, and compare whether the multiframe positioning information is consistent; If the positioning information of each multiframe is inconsistent, the step of sending a reset signal to each chip to reset the alignment module in ODUCn according to the reset signal is performed.
3. A data transmission method, characterized in that, Applied to chips containing ODUCn, multiple said chips are connected to an FPGA, and the data transmission method includes: In response to a reset signal from the FPGA, the alignment module in ODUCn is reset according to the reset signal, and a normal indication is sent to the FPGA; In response to the cancel reset signal sent by the FPGA based on the normal indication, the alignment module is canceled according to the cancel reset signal, and the frame data is written to the alignment memory from the specified position in the ODUCn, and a memory non-empty signal is sent to the FPGA; In response to a readable signal sent by the FPGA based on the memory non-empty signal, ODUCn data is read from the aligned memory according to the readable signal.
4. The data transmission method as described in claim 3, characterized in that, After the step of reading ODUCn data from the alignment memory according to the readable signal, the data transmission method further includes: In response to a sampling signal from the FPGA, multiframe positioning information is collected from the ODUCn data based on the sampling signal, and the multiframe positioning information is sent to the FPGA.
5. A data transmission device, characterized in that, Applied to an FPGA, wherein the FPGA is connected to multiple chips containing ODUcn, the data transmission device includes: A first reset module is configured to send a reset signal to each of the chips upon receiving an abnormal indication from any of the chips, so that each of the chips resets the alignment module in ODUCn according to the reset signal. The first cancellation module is configured to send a cancellation reset signal to each of the chips upon receiving a normal instruction from each of the chips, so that each of the chips cancels the reset of the alignment module according to the cancellation reset signal and writes the frame data from the specified position in the ODUCn into the alignment memory; A first read module is configured to send a readable signal to each of the chips upon receiving a memory non-empty signal from each of the chips, so that each of the chips reads ODUCn data from the aligned memory according to the readable signal.
6. A data transmission device, characterized in that, Applied to chips containing ODUCn, multiple said chips are connected to an FPGA, and the data transmission device includes: The second reset module is configured to, in response to a reset signal from the FPGA, reset the alignment module in ODUCn according to the reset signal and send a normal indication to the FPGA; The second cancellation module is configured to, in response to a cancellation reset signal sent by the FPGA based on the normal indication, cancel the reset of the alignment module according to the cancellation reset signal, write frame data from a specified position in the ODUCn into the alignment memory, and send a memory non-empty signal to the FPGA. The second read module is configured to read ODUCn data from the aligned memory in response to a readable signal sent by the FPGA based on the memory non-empty signal.
7. A data transmission system, characterized in that, The data transmission system includes an FPGA and multiple chips containing ODUCn connected to the FPGA; The FPGA is configured to send a reset signal to each of the chips upon receiving an abnormal indication from any of the chips. The chip is configured to, in response to the reset signal from the FPGA, reset the alignment module in ODUCn according to the reset signal and send a normal indication to the FPGA; The FPGA is configured to send a cancel reset signal to each of the chips upon receiving the normal indication from each of the chips. The chip is configured to, in response to a cancel reset signal sent by the FPGA based on the normal indication, cancel the reset of the alignment module according to the cancel reset signal, write frame data from a specified position in the ODUCn into the alignment memory, and send a memory non-empty signal to the FPGA; The FPGA is configured to send a readable signal to each of the chips upon receiving a non-empty memory signal from each of the chips. The chip is configured to read ODUCn data from the aligned memory in response to a readable signal sent by the FPGA based on a non-empty memory signal.
8. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the data transmission method as described in any one of claims 1 to 2, or the computer program being configured to implement the data transmission method as described in any one of claims 3 to 4.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the data transmission method as described in any one of claims 1 to 2, or implements the data transmission method as described in any one of claims 3 to 4.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the data transmission method as described in any one of claims 1 to 2, or implements the data transmission method as described in any one of claims 3 to 4.
