A data transmission method, apparatus and electronic device

By generating idle packets and extracting target data during data transmission, and forwarding data packets according to the set communication protocol format, the problem of low bandwidth utilization in the existing technology is solved, and efficient data sharing and transmission between multi-level service boards is realized.

CN116506499BActive Publication Date: 2025-11-25ZHEJIANG HUARAY TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310409890.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2025-11-25
Estimated Expiration
2043-04-10

AI Technical Summary

Technical Problem

In existing technologies, bandwidth utilization is low when transmitting data between boards via LVDS and PCI-E buses, especially when transmitting video data, and efficiency is even lower when transmitting data between multi-level service boards.

Method used

The system generates idle packets using a preset communication protocol format, receives and extracts target data from target data packets, adds associated data to the data packets, and forwards them to the next-level node according to the set communication protocol format, providing multiple data channels for data transmission.

Benefits of technology

It improved the efficiency and speed of data transmission between various business boards, enabled data sharing at all levels of nodes, and improved the bandwidth utilization of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116506499B_ABST
    Figure CN116506499B_ABST
Patent Text Reader

Abstract

The application provides a data transmission method and device and electronic equipment, and relates to the technical field of communication. In the application, first, a second node receives a first data packet issued by a first node and a data identifier carried in a data sharing request sent by a target terminal, then extracts target data in the first data packet when it is determined that the target data in the first data packet is associated with the data identifier, finally adds second data associated with the data identifier to the first data packet to obtain a second data packet, and forwards the second data packet to an Nth node. In this way, the data of each node can be shared, and the efficiency of data transmission between each service board can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data transmission method, apparatus and electronic device. Background Technology

[0002] With the development of communication technology, the application scenarios of data sharing between various service boards are gradually increasing. In the process of data sharing between service boards, the most crucial link is data transmission. Currently, two methods are used to achieve data transmission between boards: Low-Voltage Differential Signaling (LVDS) and PCI-E bus. LVDS can achieve a certain amount of data transmission, but the transmission bandwidth is limited, typically below gigabits per second. PCI-E bus transmission offers high bandwidth, but it follows standard communication protocols. When the total bandwidth allocated to the data transmission channel is fixed, because the frame format of the protocol packets is fixed, and the byte length allocated to the information fields within those packets is also fixed, the actual amount of video data that can be effectively transmitted is limited when using standard communication protocols. For example, if Service Board 1 needs to send a video data segment to Service Board 2, this video data can be transmitted using multiple protocol packets. Assuming each protocol packet has a total length of 10 bytes, the video data portion of the packet occupies 8 bytes, and the header (containing checksum information, address information, etc.) occupies 2 bytes, the maximum actual video data transmitted by this protocol packet is 256 * 2. 8 This means that the bandwidth utilization rate is 80%.

[0003] When the video data volume is large, the number of protocol packets will also increase. Furthermore, if business board 1 first needs to forward the video to business board 2, and then business board 2 forwards the video to business board 3, the number of protocol packets will be even greater, and the number of forwardings will also be more numerous, thereby reducing the efficiency of video data transmission.

[0004] Therefore, a new data transmission method is urgently needed to improve the efficiency of data transmission between various business boards. Summary of the Invention

[0005] This invention provides a data transmission method to achieve data sharing among nodes at all levels and improve the efficiency of data transmission between service boards. The specific technical solution is as follows:

[0006] In a first aspect, this application provides a data transmission method, including:

[0007] The second node receives the first data packet sent by the first node and the data identifier carried in the data sharing request sent by the target terminal. The first data packet is a data packet obtained by the first node generating an idle packet based on a preset communication protocol format and adding the first data collected by the first node to the idle packet.

[0008] When it is determined that target data associated with the data identifier exists in the first data packet, the target data in the first data packet is extracted;

[0009] The second data associated with the data identifier is added to the first data packet to obtain the second data packet, and the second data packet is forwarded to the Nth node, where N is a positive integer greater than 2.

[0010] Based on the above method, data sharing between various business boards can be achieved, and the efficiency of data transmission can be improved.

[0011] In one possible implementation, before the second node receives the first data packet sent by the first node, the method further includes:

[0012] Determine whether the second node has received the first data packet sent by the first node;

[0013] When it is determined that the second node has not received the first data packet, an idle packet is generated according to a preset communication protocol format, the collected second data is uploaded into the idle packet, and the idle packet containing the second data is forwarded to the next level node.

[0014] Based on the above method, it can be determined whether the current business board is a first-level business board.

[0015] In one possible implementation, the first data packet is divided into a payload portion and a non-payload portion, wherein the preset byte length of the payload portion is greater than the preset byte length of the non-payload portion;

[0016] The payload portion stores the transmitted data, and the non-payload portion stores data information related to the transmitted data. The data information includes at least the start flag, version number, occupancy status, packet type, node number, channel number, and payload length of the first data packet.

[0017] Based on the above method, data packets can be generated according to the set communication protocol format, thereby improving the efficiency of data transmission between various service boards.

[0018] In one possible implementation, extracting the target data from the first data packet when it is determined that target data associated with the data identifier exists in the first data packet includes:

[0019] The first data packet is parsed to obtain the node number and channel number corresponding to a type of transmitted data in the first data packet;

[0020] Based on the node number and channel number, query the data type of the one type of transmitted data;

[0021] When it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet is extracted.

[0022] Based on the above method, target data matching the data identifier can be downloaded from the second node. Multiple data channels can be selectively provided for data download, which can improve the download speed of target data and thus improve the data sharing speed between various business boards.

[0023] In one possible implementation, adding the second data associated with the data identifier to the first data packet to obtain a second data packet, and forwarding the second data packet to the Nth node, includes:

[0024] Determine whether there is second data associated with the data identifier in the collected second data set;

[0025] If there is second data associated with the data identifier in the second data set, then the second data corresponding to the data identifier is selected from the second data set, and the second data is uploaded to the first data packet along with the node number and channel number corresponding to the second data, to obtain the second data packet, and then the second data packet is forwarded to the Nth node.

[0026] Based on the above method, the second data associated with the data identifier can be uploaded to the corresponding data packet, and the data packet containing the second data can be forwarded to the Nth node. This enables data sharing between various service boards. Furthermore, multiple data channels are provided during the data upload process, which can improve the efficiency of data transmission.

[0027] In one possible implementation, the method further includes:

[0028] Determine the target data associated with the data identifier carried in the data sharing request and obtain it from the third node;

[0029] The third node receives the second data packet sent by the second node and the data identifier carried in the data sharing request sent by the target terminal;

[0030] When it is determined that target data associated with the data identifier exists in the second data packet, the target data in the second data packet is extracted;

[0031] The third data associated with the data identifier is added to the second data packet to obtain the third data packet, and the third data packet is forwarded to the Mth node, where M is a positive integer greater than 3.

[0032] Based on the above method, more data stored in the predecessor nodes of the third node can be extracted in the third node, and the data packets are transmitted according to the set communication protocol format, which can improve the data sharing rate between various service boards.

[0033] Secondly, this application provides a data transmission apparatus, comprising:

[0034] The data receiving module is used to receive the first data packet sent by the first node and the data identifier carried in the data sharing request sent by the target terminal;

[0035] The data download module is used to extract the target data from the first data packet when it is determined that there is target data associated with the data identifier in the first data packet;

[0036] The data forwarding module is used to add second data associated with the data identifier to the first data packet to obtain a second data packet, and forward the second data packet to the Nth node, where N is a positive integer greater than 2.

[0037] In one possible implementation, the data download module is specifically used for:

[0038] The first data packet is parsed to obtain the node number and channel number corresponding to a type of transmitted data in the first data packet;

[0039] Based on the node number and channel number, query the data type of the one type of transmitted data;

[0040] When it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet is extracted.

[0041] In one possible implementation, the data forwarding module is specifically used for:

[0042] Determine whether there is second data associated with the data identifier in the collected second data set;

[0043] If there is second data associated with the data identifier in the second data set, then the second data corresponding to the data identifier is selected from the second data set, and the second data is uploaded to the first data packet along with the node number and channel number corresponding to the second data, to obtain the second data packet, and then the second data packet is forwarded to the Nth node.

[0044] Thirdly, this application provides an electronic device, comprising:

[0045] Memory, used to store computer programs;

[0046] When a processor executes a computer program stored in the memory, it implements the steps of the data transmission method described above.

[0047] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described data transmission method.

[0048] For the various aspects of the second to fourth aspects mentioned above, and the technical effects that each aspect may achieve, please refer to the above description of the technical effects that can be achieved for the first aspect or the various possible solutions in the first aspect, which will not be repeated here. Attached Figure Description

[0049] Figure 1 A flowchart of a data transmission method provided in this application;

[0050] Figure 2 This application provides a schematic diagram of the data transmission system architecture.

[0051] Figure 3 A schematic diagram of the structure of a transmission protocol provided in this application;

[0052] Figure 4 A schematic diagram of a data transmission device structure is provided in this application;

[0053] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The specific operational methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that in the description of this application, "multiple" is understood as "at least two". "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. A connected to B can represent: A and B directly connected, and A and B connected through C. Furthermore, in the description of this application, terms such as "first" and "second" are used only for distinguishing the purpose of description and should not be construed as indicating or implying relative importance or order.

[0055] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0056] With the development of communication technology, the application scenarios of data sharing between various service boards are gradually increasing. In the process of data sharing between service boards, the most crucial link is data transmission. Currently, two methods are used to achieve data transmission between boards: Low-Voltage Differential Signaling (LVDS) and PCI-E bus. LVDS can achieve a certain amount of data transmission, but the transmission bandwidth is limited, typically below gigabits per second. PCI-E bus transmission offers high bandwidth, but it follows standard communication protocols. When the total bandwidth allocated to the data transmission channel is fixed, because the frame format of the protocol packets is fixed, and the byte length allocated to the information fields within those packets is also fixed, the actual amount of video data that can be effectively transmitted is limited when using standard communication protocols. For example, if Service Board 1 needs to send a video data segment to Service Board 2, this video data can be transmitted using multiple protocol packets. Assuming each protocol packet has a total length of 10 bytes, the video data portion of the packet occupies 8 bytes, and the header (containing checksum information, address information, etc.) occupies 2 bytes, the maximum actual video data transmitted by this protocol packet is 256 * 2. 8 This means that the bandwidth utilization rate is 80%.

[0057] When the video data volume is large, the number of protocol packets will also increase. Furthermore, if business board 1 first needs to forward the video to business board 2, and then business board 2 forwards the video to business board 3, the number of protocol packets will be even greater, and the number of forwardings will also be more numerous, thereby reducing the efficiency of video data transmission.

[0058] Therefore, a new data transmission method is urgently needed to improve the efficiency of data transmission between various business boards.

[0059] To improve the efficiency of data transmission between various service boards and to achieve data sharing among them, this application provides a data transmission method, which specifically includes: firstly, a second node receives a first data packet sent by a first node and a data identifier carried in a data sharing request sent by a target terminal; then, when it is determined that there is target data associated with the data identifier in the first data packet, the target data in the first data packet is extracted; finally, the second data associated with the data identifier is added to the first data packet to obtain a second data packet, and the second data packet is forwarded to the Nth node.

[0060] It is easy to see that, through the above method, the system can first receive the first data packet sent by the first node and the data identifier carried in the data sharing request sent by the target terminal, based on a preset communication protocol format. Then, when it is determined that there is target data associated with the data identifier in the first data packet, the target data in the first data packet is extracted, which enables the download of data collected by the first node. Finally, the second data associated with the data identifier is added to the first data packet to obtain the second data packet, and the second data packet is forwarded to the Nth node, which enables the data collected by the second node to be uploaded to the first data packet, realizing the sharing of data at all levels of nodes and improving the efficiency of data transmission between service boards.

[0061] Reference Figure 1 The diagram shown is a flowchart of a data transmission method provided in an embodiment of this application. The method includes:

[0062] S1, the second node receives the first data packet sent by the first node and the data identifier carried in the data sharing request sent by the target terminal.

[0063] Firstly, the method provided in this application can be applied to Figure 2 The system architecture shown includes acquisition devices, service boards, switching backplanes, control boards, and target terminals. The service boards, switching backplanes, and control boards can be integrated into a single physical device or deployed independently on different devices.

[0064] For example, if the service cards are deployed independently on different devices, the service cards can be used to connect to different types of acquisition devices to collect audio and video data from different regions. Furthermore, the audio and video data collected by different service cards can be shared, making it easier for the target terminal to obtain audio and video data from different regions.

[0065] This application does not impose any restrictions on the number of service boards and acquisition devices, such as Figure 2 As shown, only the acquisition equipment, service boards, switching backplanes, and control boards are described as examples. The following is a brief introduction to each of the above devices and their respective functions.

[0066] The acquisition device is used to collect various types of data, including but not limited to audio and video data, and text information; the service board can connect to the acquisition device to collect different types of data, such as audio and video data from different regions; the switching backplane is used to enable communication between various service boards; the control board is used to manage the service boards and provide corresponding services to the target terminal; the target terminal is used to send data sharing requests to the control board to obtain the corresponding target data.

[0067] In this embodiment, the target terminal first sends a data sharing request to the control board and determines to obtain target data associated with the data identifier carried in the data sharing request from the second node. Here, it should be noted that the second node represents the service board 2. This application does not impose specific restrictions on the node for obtaining the target data. The target data can be obtained from nodes at all levels. For example, the second node, the third node, and the fourth node can obtain the target data associated with the data identifier carried in the data sharing request.

[0068] To improve the efficiency of data transmission between various service boards, a unified communication protocol format is used to achieve data sharing between the service boards during data transmission, such as... Figure 3 The diagram shown is a structural diagram of a transmission protocol provided in this application.

[0069] Depend on Figure 3 As shown in the transmission protocol structure diagram, the data packets transmitted between various service boards can be divided into payload and non-payload parts. The payload part is allocated 1024 bytes, while the non-payload part is allocated 24 bytes. The payload part stores the transmission data currently stored on the service board, while the non-payload part stores data related to the transmission data, such as the packet start flag, version number, occupancy status, packet type, node number, channel number, reserved fields, and payload length. The byte length occupied by each type of data information in the non-payload part is... Figure 3 The data has already been labeled and will not be repeated here. The following section describes the various data types in the non-load section.

[0070] The start flag can be a fixed value in the data packet, for example, F6F6F6F628282828.

[0071] The occupancy status indicates the availability of data transmitted in the data packet. When the occupancy status byte is assigned a value of 0, it means that the target terminal does not use the data collected by the current service board; when the occupancy status byte is assigned a value of 1, it means that the target terminal uses the data collected by the current service board, that is, data sharing is performed on the data collected by the current service board.

[0072] The packet type indicates the data type of the data transmitted in the data packet. The data type of the transmitted data can be video packets, audio packets, or Ethernet packets. This application does not impose specific restrictions on the data type of the transmitted data, and will not elaborate further here.

[0073] The node number represents the service board number in the system where the data is transmitted, and the sub-channel number represents the sub-channel number of the service board where the data is transmitted.

[0074] The payload length can be set by the control board. In this system, when the packet type of the data packet is fixed, its payload length is also fixed, and the payload part will automatically switch the corresponding data transmission format according to the packet type of the data packet. The maximum payload length of the data packet can be 1024 bytes, and the minimum payload length can be 32 bytes.

[0075] During data packet transmission, an idle time slot is inserted between data packet 1 and data packet 2. The number of idle time slots is set by the control board and can be used to distinguish the fields where the transmitted data of data packet 1 and data packet 2 are located, so that the target terminal can obtain the data collected from each service board as needed. In order to improve the accuracy of data transmission, that is, to ensure that the transmitted data is not distorted, for example, CRC16 scrambling technology can be used to encode the data packets.

[0076] When the second node receives the data identifier carried in the data sharing request sent by the target terminal, it can determine whether to receive the first data packet sent by the first node (i.e., the first node). If it determines that it has not received the first data packet sent by the first node, the second node can proceed as described above. Figure 3 The communication protocol format shown generates an idle packet, uploads the collected second data to the idle packet, and finally forwards the idle packet containing the second data to the next level node.

[0077] When the second node receives the first data packet sent by the first node, it can download or upload the corresponding transmission data according to the data identifier carried in the data sharing request sent by the target terminal. For example, the data identifier can be used to determine the acquisition of a certain type of transmission data in a service board. Similarly, it can also be used to determine the acquisition of multiple certain types of transmission data in multiple service boards. For example, assuming that type1 can be used to represent video data, the data identifier can be Node number1 type1, indicating that video data in service board 1 is being acquired. Here, it should be noted that the first data packet is an idle packet generated by the first node according to the above communication protocol format, and the data packet obtained by adding the first data collected by the first node to the idle packet is the data packet obtained.

[0078] Using the above method, data collected by each service board can be transmitted according to the set communication protocol format.

[0079] S2, when it is determined that there is target data associated with the data identifier in the first data packet, extract the target data in the first data packet.

[0080] In this embodiment, after receiving the first data packet, the second node first detects the first data packet. The detection includes, but is not limited to, the occupancy status, header information, transmission data information, and interval time slot settings of the first data packet. When the occupancy status of the first data packet is set to 1, and it is determined that there is target data associated with a data identifier in the first data packet, the second node parses the first data packet to obtain the node number and channel number corresponding to a type of transmission data in the first data packet. Then, based on the node number and channel number, the data type of the type of transmission data in the first data packet can be queried. Finally, when it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet can be extracted according to the channel number corresponding to the type of transmission data. For example, data... If the identifier is Nodenumber1type1, then the video data of service board 1 in the first data packet is extracted. For example, when the number of data channels is set to m, where m is a positive integer greater than or equal to 1, it means that the target data can be downloaded from m data channels, and the total bandwidth value for downloading the target data is equal to the product of the bandwidth value allocated to a single service board and the number of data channels m. If only some of the m data channels need to be selected for data download, the occupied field of the data channels can be set to 1, and the remaining data channels can be set to 0. According to the download speed requirements, open data channels can be selectively used to download the target data. This application does not impose a specific limit on the number of data channels, which will not be elaborated here.

[0081] The above method not only enables the synchronous transmission of data from the same business board across different data channels, or the transmission of data from different business boards across the same data channel, but also improves the download speed of data from the business board.

[0082] S3, add the second data associated with the data identifier to the first data packet to obtain the second data packet, and forward the second data packet to the Nth node.

[0083] In this embodiment, after the second node detects the first data packet, if it determines that there is no target data associated with the data identifier in the first data packet, the second node first determines whether there is second data associated with the data identifier in the collected second dataset. If there is second data associated with the data identifier in the second dataset, for example, if the data identifier is Node number2 type1, then the second data is the video data in the second node. Then, the second data corresponding to the data identifier is filtered out from the second dataset, that is, the video data in the second node, and the node number and channel number corresponding to the second data are carried. Finally, the second data is uploaded to the first data packet to obtain the second data packet, and the second data packet is forwarded to the Nth node, where N is a positive integer greater than 2. In the process of uploading the second data to the first data packet, multiple data channels can also be set to upload the data.

[0084] For example, when the second node determines that there is no target data associated with the data identifier in the first data packet and no second data associated with the data label in the second data packet, the second node can retain the original data information in the first data packet and forward the first data packet to the Nth node. The Nth node can be the third node or the fourth node, and can be forwarded in an ascending order.

[0085] This can improve the efficiency of data uploads from various business cards, thereby increasing the data sharing rate between various business cards.

[0086] In one possible implementation, the target terminal sends a data sharing request to the control board and can also determine that it will obtain target data associated with the data identifier carried in the data sharing request from the third node, namely: service board 3.

[0087] For example, similar to the methods provided in steps 1, 2, and 3, the third node first receives the second data packet sent by the second node and the data identifier carried in the data sharing request sent by the target terminal. The second data packet is also processed according to the above... Figure 3 The communication protocol format shown is used to generate the data. When it is determined that there is target data associated with the data identifier in the second data packet, for example, the data identifier is Node number1 type1 and Node number2 type1, the target data in the second data packet is extracted. The target data is video data 1 and video data 2 in service board 1 and service board 2. Finally, the third data associated with the data identifier is added to the second data packet to obtain the third data packet, and the third data packet is forwarded to the Mth node, where M is a positive integer greater than 3.

[0088] By using the above method, more data stored in the preceding nodes of the third node can be extracted from the third node, and the data packets are transmitted according to the set communication protocol format, which can improve the data sharing rate between various service boards.

[0089] Based on the methods provided in the above embodiments, this application also provides a data transmission device, such as... Figure 4 The diagram shown is a structural schematic of a data transmission device according to an embodiment of this application. The device includes:

[0090] Data receiving module 401 is used to receive the first data packet sent by the first node and the data identifier carried in the data sharing request sent by the target terminal;

[0091] The data download module 402 is used to extract the target data in the first data packet when it is determined that there is target data associated with the data identifier in the first data packet;

[0092] The data forwarding module 403 is used to add second data associated with the data identifier to the first data packet to obtain a second data packet, and forward the second data packet to the Nth node, where N is a positive integer greater than 2.

[0093] In one possible implementation, the data download module 402 is specifically used for:

[0094] The first data packet is parsed to obtain the node number and channel number corresponding to a type of transmitted data in the first data packet;

[0095] Based on the node number and channel number, query the data type of the one type of transmitted data;

[0096] When it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet is extracted.

[0097] In one possible implementation, the data forwarding module 403 is specifically used for:

[0098] Determine whether there is second data associated with the data identifier in the collected second data set;

[0099] If there is second data associated with the data identifier in the second data set, then the second data corresponding to the data identifier is selected from the second data set, and the second data is uploaded to the first data packet along with the node number and channel number corresponding to the second data, to obtain the second data packet, and then the second data packet is forwarded to the Nth node.

[0100] Based on the same inventive concept, this application also provides an electronic device that can realize the functions of the aforementioned data transmission method. (Refer to...) Figure 5 The electronic device includes:

[0101] At least one processor 501 and a memory 502 connected to at least one processor 501. In this embodiment, the specific connection medium between the processor 501 and the memory 502 is not limited. Figure 5 The example shown is the connection between processor 501 and memory 502 via bus 500. Bus 500 is... Figure 5 The connections between other components are indicated by thick lines and are for illustrative purposes only, not as limiting information. The Bus 500 can be divided into address bus, data bus, control bus, etc., for ease of representation. Figure 5 The term 501 is represented by a single thick line, but this does not imply that there is only one bus or one type of bus. Alternatively, the processor 501 can also be called a controller; there is no restriction on the name.

[0102] In this embodiment, memory 502 stores instructions executable by at least one processor 501. By executing the instructions stored in memory 502, at least one processor 501 can perform the data transfer method described above. Processor 501 can implement... Figure 4 The functions of each module in the device shown.

[0103] The processor 501 is the control center of the device. It can connect to various parts of the control device through various interfaces and lines. By running or executing instructions stored in memory 502 and calling data stored in memory 502, the processor can perform various functions and process data, thereby monitoring the device as a whole.

[0104] In one possible design, processor 501 may include one or more processing units. Processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip; in some embodiments, they may also be implemented on separate chips.

[0105] Processor 501 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the data transmission method disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0106] Memory 502, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 502 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 502 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 502 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0107] By designing and programming the processor 501, the code corresponding to the data transmission method described in the foregoing embodiments can be embedded into the chip, enabling the chip to execute the code during operation. Figure 1 The steps of the data transmission method in the illustrated embodiment are as follows. How to design and program the processor 501 is a technique well-known to those skilled in the art and will not be described further here.

[0108] Based on the same inventive concept, embodiments of this application also provide a storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the data transmission method described above.

[0109] In some possible implementations, various aspects of the data transmission method provided in this application may also be implemented in the form of a program product, which includes program code that, when the program product is run on a device, causes the control device to perform the steps in the data transmission method according to the various exemplary embodiments of this application described above.

[0110] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0111] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0112] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0113] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0114] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A data transmission method, characterized in that, include: The second node receives the first data packet sent by the first node and the data identifier carried in the data sharing request sent by the target terminal. The first data packet is a data packet obtained by the first node generating an idle packet based on a preset communication protocol format and adding the first data collected by the first node to the idle packet. The first node and the second node are service boards. When it is determined that target data associated with the data identifier exists in the first data packet, the target data in the first data packet is extracted; The second data associated with the data identifier is added to the first data packet to obtain the second data packet, and the second data packet is forwarded to the Nth node, where N is a positive integer greater than 2; the Nth node is a service board. When it is determined that target data associated with the data identifier exists in the first data packet, extracting the target data from the first data packet includes: After receiving the first data packet, the second node detects the first data packet. The detection includes the occupancy status, header information, transmission data information, and interval time slot settings of the first data packet. When the occupancy status of the first data packet is set to 1, and it is determined that there is target data associated with the data identifier in the first data packet, the second node parses the first data packet to obtain the node number and channel number corresponding to a type of transmitted data in the first data packet; Based on the node number and the channel number, the data type of a type of transmitted data in the first data packet is queried; When it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet is extracted according to the channel number corresponding to a type of transmitted data.

2. The method as described in claim 1, characterized in that, The first data packet is divided into a payload portion and a non-payload portion, wherein the preset byte length of the payload portion is greater than the preset byte length of the non-payload portion; The payload portion stores the transmitted data, and the non-payload portion stores data information related to the transmitted data. The data information includes at least the start flag, version number, occupancy status, packet type, node number, channel number, and payload length of the first data packet.

3. The method as described in claim 1, characterized in that, When it is determined that target data associated with the data identifier exists in the first data packet, extracting the target data from the first data packet includes: The first data packet is parsed to obtain the node number and channel number corresponding to a type of transmitted data in the first data packet; Based on the node number and channel number, query the data type of the one type of transmitted data; When it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet is extracted.

4. The method as described in claim 1, characterized in that, The step of adding the second data associated with the data identifier to the first data packet to obtain the second data packet, and forwarding the second data packet to the Nth node, includes: Determine whether there is second data associated with the data identifier in the collected second data set; If there is second data associated with the data identifier in the second data set, then the second data corresponding to the data identifier is selected from the second data set, and the second data is uploaded to the first data packet along with the node number and channel number corresponding to the second data, to obtain the second data packet, and then the second data packet is forwarded to the Nth node.

5. The method as described in claim 4, characterized in that, The method further includes: If there is no second data associated with the data identifier in the second data set, then the first data packet is forwarded to the Nth node.

6. A data transmission device, characterized in that, include: The data receiving module is used to receive the first data packet sent by the first node and the data identifier carried in the data sharing request sent by the target terminal; wherein, the first data packet is a data packet obtained by the first node generating an idle packet based on a preset communication protocol format and adding the first data collected by the first node to the idle packet; The data download module is used to extract the target data from the first data packet when it is determined that there is target data associated with the data identifier in the first data packet; The data forwarding module is used to add second data associated with the data identifier to the first data packet to obtain a second data packet, and forward the second data packet to the Nth node, where N is a positive integer greater than 2; the Nth node is a service board. The data download module is specifically used for: After receiving the first data packet, the second node detects the first data packet. The detection includes the occupancy status, header information, transmission data information, and interval time slot settings of the first data packet. The first node and the second node are service boards. When the occupancy status of the first data packet is set to 1, and it is determined that there is target data associated with the data identifier in the first data packet, the second node parses the first data packet to obtain the node number and channel number corresponding to a type of transmitted data in the first data packet; Based on the node number and the channel number, the data type of a type of transmitted data in the first data packet is queried; When it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet is extracted according to the channel number corresponding to a type of transmitted data.

7. The apparatus as claimed in claim 6, characterized in that, The data download module is specifically used for: The first data packet is parsed to obtain the node number and channel number corresponding to a type of transmitted data in the first data packet; Based on the node number and channel number, query the data type of the one type of transmitted data; When it is determined that the data type matches the data identifier, the target data corresponding to the data type in the first data packet is extracted.

8. The apparatus as claimed in claim 6, characterized in that, The data forwarding module is specifically used for: Determine whether there is second data associated with the data identifier in the collected second data set; If there is second data associated with the data identifier in the second data set, then the second data corresponding to the data identifier is selected from the second data set, and the second data is uploaded to the first data packet along with the node number and channel number corresponding to the second data, to obtain the second data packet, and then the second data packet is forwarded to the Nth node.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, when executing a computer program stored in the memory, implements the method steps of any one of claims 1-5.

10. 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 steps of the method described in any one of claims 1-5.

Citation Information

Patent Citations

  • Service monitoring method, device and system

    CN113453024A