Data communication method and apparatus, electronic device, and storage medium

By establishing a data link layer communication link between the target receiving card of the LED display screen and the source network card of the electronic device, the problem of low data transmission efficiency in the existing technology is solved, and more efficient data communication and stability are achieved.

CN121665369BActive Publication Date: 2026-07-24XIAN QINGSONG PHOTOELECTRIC TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XIAN QINGSONG PHOTOELECTRIC TECH CO LTD
Filing Date
2025-10-29
Publication Date
2026-07-24

Smart Images

  • Figure CN121665369B_ABST
    Figure CN121665369B_ABST
Patent Text Reader

Abstract

The application relates to a data communication method and device, electronic equipment and a storage medium. The method comprises the following steps: a target receiving card receives a first data frame sent by a source network card of an electronic equipment; the target receiving card is at least one receiving card in a plurality of receiving cards, and the first data frame is generated according to a network card physical address of the source network card; the target receiving card generates a second data frame according to the first data frame and a physical address of the target receiving card, and sends the second data frame to the source network card of the electronic equipment, so that the electronic equipment generates a third data frame according to the physical address of the target card, the network card physical address of the source network card and to-be-transmitted service data; a first communication link from the source network card, a sending card to the target receiving card is established according to the physical address of the target card and the network card physical address of the source network card, and the third data frame is sent to the target receiving card through the first communication link, thereby improving data communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Data communication refers to the process by which two electronic devices send and receive data by establishing a communication link.

[0003] In the data communication process of LED displays, the relevant technical solution is that the first electronic device (such as a host computer) sends video data to the second electronic device (usually an Android device), the second electronic device then sends the video data to the LED display's sending card, the sending card then sends the video data to the LED display's receiving card, and the receiving card sends it to the LED display's cabinet for display.

[0004] In the process of realizing this invention, the inventors discovered that the communication link between the first electronic device and the second electronic device is usually established through the HTTP protocol. The communication link established based on the HTTP protocol transmits data at the network layer. Since the data transmission efficiency decreases with each higher layer in the OSI (Open System Interconnect) seven-layer model, and the network layer is located above the data link layer, the data transmission efficiency of the network layer is lower than that of the data link layer, resulting in low data communication efficiency between the first electronic device and the receiving card of the LED display screen. Summary of the Invention

[0005] Based on this, the purpose of the present invention is to provide a data communication method, apparatus, electronic device and storage medium, which can directly establish a communication link between the target receiving card of the LED display screen and the source network card of the electronic device, thereby improving data communication efficiency.

[0006] According to a first aspect of the embodiments of this application, a data communication method is provided, applied to an LED display screen, the LED display screen including an LED control system; the LED control system includes a transmitting card and a plurality of receiving cards, comprising the following steps: The target receiving card receives the first data frame sent by the source network card of the electronic device through the sending card; the target receiving card is at least one of several receiving cards, and the first data frame is generated by the electronic device based on the physical address of the source network card; The target receiving card generates a second data frame based on the first data frame and its own physical address, and sends the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; based on the physical address of the target receiving card and the physical address of the source network card, a first communication link is established from the source network card, the sending card to the target receiving card, and the third data frame is sent to the target receiving card through the first communication link.

[0007] In an embodiment of this application, the target receiving card receives a first data frame sent by the source network card of the electronic device through the sending card; the target receiving card is at least one of several receiving cards, and the first data frame is generated by the electronic device based on the physical address of the source network card; the target receiving card generates a second data frame based on the first data frame and its own physical address, and sends the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; a first communication link is established from the source network card, the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and the third data frame is sent to the target receiving card through the first communication link. The target receiving card of this application receives a first data frame sent by the source network card of the electronic device through the sending card, and returns a second data frame to the source network card of the electronic device. Based on the first data frame and the second data frame, the electronic device establishes a first communication link at the data link layer from the source network card, the sending card to the target receiving card. Since the source network card uses the data link layer, the communication between the source network card and the sending card, and between the sending card and the target receiving card, all use the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the target receiving card.

[0008] According to a second aspect of the embodiments of this application, a data communication method is provided, applied to an electronic device, comprising the following steps: Obtain the physical address of the source network card on the electronic device; Generate the first data frame based on the physical address of the source network card; The first data frame is sent to the sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards; Receive the second data frame returned by each receiving card, and obtain the physical address of each receiving card based on the second data frame; wherein, the second data frame is generated by each receiving card based on the first data frame and its own physical address; The system acquires the service data to be transmitted and determines the target receiving card to receive the service data; it generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; it establishes a first communication link from the source network card and the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and sends the third data frame to the target receiving card through the first communication link; wherein the target receiving card is at least one of several receiving cards.

[0009] According to the embodiments of this application, the physical address of the source network card (NIC) on the electronic device is obtained; a first data frame is generated based on the NIC's physical address; the first data frame is sent to a sending card connected to the source NIC via the source NIC, so that the sending card sends the first data frame to several receiving cards; a second data frame is received from each receiving card, and the physical address of each receiving card is obtained based on the second data frame; wherein the second data frame is generated by each receiving card based on the first data frame and its own physical address; the service data to be transmitted is obtained and the target receiving card for receiving the service data to be transmitted is determined; a third data frame is generated based on the physical address of the target receiving card, the NIC's physical address, and the service data to be transmitted; a first communication link is established from the source NIC, the sending card to the target receiving card based on the target receiving card's physical address and the source NIC's physical address, and the third data frame is sent to the target receiving card through the first communication link; wherein the target receiving card is at least one of several receiving cards. This application sends a first data frame to each receiving card via the source network card of an electronic device, and receives a second data frame returned by each receiving card. Based on the first and second data frames, a first communication link at the data link layer is established from the source network card, the sending card to the target receiving card. Since the source network card operates at the data link layer, the communication between the source network card and the sending card, and between the sending card and the target receiving card, all operate at the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the receiving card.

[0010] Furthermore, the receiving cards are receiving cards within multiple receiving card groups. Each receiving card group includes multiple cascaded receiving cards. The first-level receiving card in each receiving card group is connected to the sending card. The sending card sends the first data frame to the first-level receiving card, and the first-level receiving card sends the first data frame to the next-level receiving card, until each receiving card receives the first data frame.

[0011] In this embodiment, by cascading several receiving cards, the first data frame is transmitted in segments, with each segment having a relatively short transmission distance, thus avoiding signal attenuation and interference and improving the stability of the first data frame transmission.

[0012] Furthermore, the first data frame is sent to the sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several distribution cards, and the several distribution cards send the first data frame to several receiving cards.

[0013] This application embodiment uses multiple distribution cards to increase the number of receiving cards connected to the sending card, enabling the electronic device to communicate with more receiving cards.

[0014] Furthermore, the distribution cards are distribution cards within multiple distribution card groups, each distribution card group includes multiple cascaded distribution cards, and the first-level distribution card in each distribution card group is connected to the sending card. The receiving cards are receiving cards within multiple receiving card groups, each receiving card group includes multiple cascaded receiving cards, and the first-level receiving card in each receiving card group is connected to a distribution card. The sending card sends the first data frame to the first-level distribution card, the first-level distribution card sends the first data frame to the corresponding receiving card group, and the first-level distribution card sends the first data frame to the next-level distribution card, until each receiving card receives the first data frame.

[0015] This application embodiment, through the cooperation of several distribution card groups and several receiving card groups, can increase the number of receiving cards connected to the sending card, enabling electronic devices to communicate with more receiving cards.

[0016] Further, after the step of sending the first data frame to the sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards, the method further includes: receiving a fourth data frame returned by each allocation card, and obtaining the physical address of each allocation card based on the fourth data frame; wherein the fourth data frame is generated by the allocation card based on the first data frame and its own physical address; determining the target allocation card for receiving the service data to be transmitted; generating a fifth data frame based on the physical address of the target allocation card, the network card physical address of the source network card, and the service data to be transmitted; establishing a second communication link from the source network card and the sending card to the target allocation card based on the physical address of the target allocation card and the network card physical address of the source network card, and sending the fifth data frame to the target allocation card through the second communication link; wherein the target allocation card is at least one of several allocation cards.

[0017] This application embodiment can establish a second communication link at the data link layer from the source network card, the sending card to the target allocation card by sending a first data frame and receiving a third data frame. Since the source network card uses the data link layer, the communication between the source network card and the sending card, and between the sending card and the target allocation card, all use the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the allocation card.

[0018] Furthermore, after the step of sending the first data frame to the sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards, the method further includes: receiving a fourth data frame returned by the sending card; obtaining the network card physical address of the sending card based on the fourth data frame; wherein the fourth data frame is generated by the sending card based on the first data frame and the network card physical address of the sending card; generating a sixth data frame based on the physical address of the sending card, the network card physical address of the source network card, and the service data to be transmitted; establishing a third communication link from the source network card to the sending card based on the physical address of the sending card and the network card physical address of the source network card; and sending the sixth data frame to the sending card through the third communication link.

[0019] This application embodiment can establish a third communication link between the sending card and the source network card at the data link layer by sending a first data frame and receiving a fourth data frame. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the sending card.

[0020] According to a third aspect of the embodiments of this application, a data communication device is provided, applied to an LED display screen, the LED display screen including an LED control system; the LED control system includes a transmitting card and a plurality of receiving cards, including: The first data frame receiving module is used for the target receiving card to receive the first data frame sent by the source network card of the electronic device through the sending card; the target receiving card is at least one of several receiving cards, and the first data frame is generated by the electronic device according to the physical address of the source network card; The second data frame generation module is used to generate a second data frame based on the first data frame and its own physical address, and send the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; and establishes a first communication link from the source network card, the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and sends the third data frame to the target receiving card through the first communication link.

[0021] According to a fourth aspect of the embodiments of this application, a data communication device is provided, applied to an electronic device, comprising: The network interface card (NIC) physical address acquisition module is used to obtain the NIC physical address of the source NIC on the electronic device. The first data frame generation module is used to generate a first data frame based on the physical address of the source network card and the target physical address; The first data frame sending module is used to send the first data frame to the sending card connected to the source network card through the source network card, so that the sending card sends the first data frame to several receiving cards; The second data frame receiving module is used to receive the second data frame returned by each receiving card and obtain the physical address of each receiving card based on the second data frame; wherein, the second data frame is generated by each receiving card based on the first data frame and its own physical address; The third data frame sending module is used to acquire the service data to be transmitted and determine the target receiving card to receive the service data to be transmitted; generate a third data frame according to the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; establish a first communication link from the source network card, the sending card to the target receiving card according to the physical address of the target receiving card and the physical address of the source network card, and send the third data frame to the target receiving card through the first communication link; wherein, the target receiving card is at least one of several receiving cards.

[0022] According to a fifth aspect of the embodiments of this application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in the first or second aspect above.

[0023] According to a sixth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the data communication method as described in the first or second aspect above.

[0024] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.

[0025] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description

[0026] Figure 1 This is a schematic diagram of the data communication architecture in related technologies; Figure 2 A flowchart illustrating a data communication method provided in one embodiment of this application; Figure 3 A flowchart illustrating a data communication method provided in another embodiment of this application; Figure 4 This is a structural block diagram of a data communication device provided in one embodiment of the present application; Figure 5 A schematic flowchart of a data communication apparatus provided in another embodiment of this application; Figure 6 This is a schematic block diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0028] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0029] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0030] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0031] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0032] The data communication method provided in this application embodiment can be applied to data communication scenarios of LED displays.

[0033] In the data communication process of LED displays, the relevant technical solutions are: Please refer to... Figure 1 , Figure 1This is a schematic diagram of the data communication architecture in related technologies. The first electronic device 110 (such as a host computer) sends video data to the second electronic device 120 (generally an Android device). The second electronic device 120 then internally sends the video data to a sending card 130, which in turn sends the video data to a receiving card 140, which then transmits it to the LED display cabinet 150 for display.

[0034] In the process of realizing this invention, the inventors discovered that the communication link between the first electronic device 110 and the second electronic device 120 is usually established through the HTTP protocol. The communication link established based on the HTTP protocol transmits data at the network layer. Since the data transmission efficiency decreases with each higher layer in the OSI (Open System Interconnect) seven-layer model, and the network layer is located above the data link layer, the data transmission efficiency of the network layer is lower than that of the data link layer, resulting in low data communication efficiency between the first electronic device and the receiving card.

[0035] Therefore, the target receiving card of this application receives the first data frame sent by the source network card of the electronic device through the sending card, and returns the second data frame to the source network card of the electronic device. Based on the first data frame and the second data frame, the electronic device establishes a first communication link at the data link layer from the source network card, the sending card to the target receiving card. Since the source network card uses the data link layer, the communication between the source network card and the sending card, and between the sending card and the target receiving card, all use the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the target receiving card.

[0036] Please see Figure 2 This is a flowchart illustrating a data communication method provided in one embodiment of this application. This application provides a data communication method applied to an LED display screen, the LED display screen including an LED control system; the LED control system includes a sending card and several receiving cards, and includes the following steps: S100: The target receiving card receives the first data frame sent by the source network card of the electronic device through the sending card; the target receiving card is at least one of several receiving cards, and the first data frame is generated by the electronic device based on the physical address of the source network card.

[0037] Among them, electronic devices include, but are not limited to, computers, tablets, and mobile phones. The electronic devices are equipped with host computer software, which is used to send video source data.

[0038] The source network card refers to the Ethernet card on the electronic device. There can be one or more source network cards.

[0039] The physical address of the source network card is its MAC address (Media Access Control Address), which is a globally unique identifier assigned to network devices during manufacturing and used for device identification and data transmission within a local area network.

[0040] The first data frame is a request data frame, specifically, it can be an Ethernet frame.

[0041] In this embodiment of the application, the electronic device can use the physical address of the source network card as the source physical address of the first data frame, encapsulate the source physical address of the first data frame, and obtain the first data frame.

[0042] Electronic devices can also obtain a preset target physical address, use the physical address of the source network card as the source physical address of the first data frame, and use the target physical address as the destination physical address of the first data frame. The source and destination physical addresses of the first data frame are then encapsulated to obtain the first data frame. Specifically, the preset target physical address is obtained from the electronic device's memory. The preset target physical address can be set according to actual needs. For example, the target physical address could be FF:FF:FF:FF:FF:FF.

[0043] The electronic device can also acquire preset first service data, encapsulate the source physical address, destination physical address, and first service data of the first data frame to obtain the first data frame. The preset first service data can be set according to actual needs. Specifically, the first service data may include the version information of the sending card.

[0044] The electronic device sends the first data frame to the sending card, and the sending card transmits the first data frame to the target receiving card.

[0045] S200: The target receiving card generates a second data frame based on the first data frame and its own physical address, and sends the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; based on the physical address of the target receiving card and the physical address of the source network card, a first communication link is established from the source network card, the sending card to the target receiving card, and the third data frame is sent to the target receiving card through the first communication link.

[0046] The second data frame is a response data frame, specifically, it can be an Ethernet frame.

[0047] The physical address of the receiving card refers to its MAC address.

[0048] The data to be transmitted can be configured according to actual needs. Specifically, it may include the version information of the target receiving card.

[0049] In this embodiment, when the target receiving card receives the first data frame, it parses the first data frame to obtain the physical address of the source network card. The target receiving card obtains its own physical address, generates a second data frame based on its own physical address and the physical address of the source network card, sends the second data frame to the sending card, and then the sending card returns the second data frame to the source network card of the electronic device.

[0050] Specifically, the target receiving card can use its own physical address as the source physical address of the second data frame, and the physical address of the source network card as the destination physical address of the second data frame. The source physical address and the destination physical address of the second data frame are encapsulated to obtain the second data frame.

[0051] The target receiving card can also acquire preset second service data, encapsulate the source physical address, destination physical address, and second service data of the second data frame to obtain the second data frame. The preset second service data can be set according to actual needs. Specifically, the second service data may include the receiving card's version information.

[0052] In one embodiment, the target receiving card can send the second data frame to the allocation card, the allocation card sends the second data frame to the sending card, and the sending card returns the second data frame to the source network card of the electronic device.

[0053] In this embodiment, the electronic device uses the physical address of the target receiving card as the destination physical address of the third data frame and the physical address of the source network card as the source physical address of the third data frame. The destination physical address, source physical address, and the data to be transmitted are encapsulated to obtain the third data frame. This third data frame is then sent from the source network card of the electronic device to the sending card via the first communication link. The sending card then forwards the third data frame to the target receiving card.

[0054] In the embodiments of this application, a target receiving card receives a first data frame sent by a source network card of an electronic device via a sending card. The target receiving card is at least one of several receiving cards. The first data frame is generated by the electronic device based on the physical address of the source network card. The target receiving card generates a second data frame based on the first data frame and its own physical address, and sends the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted. A first communication link is established from the source network card and the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and the third data frame is sent to the target receiving card through the first communication link. The target receiving card of this application receives a first data frame sent by the source network card of the electronic device through the sending card, and returns a second data frame to the source network card of the electronic device. Based on the first data frame and the second data frame, the electronic device establishes a first communication link at the data link layer from the source network card, the sending card to the target receiving card. Since the source network card uses the data link layer, the communication between the source network card and the sending card, and between the sending card and the target receiving card, all use the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the target receiving card.

[0055] Please see Figure 3 This is a flowchart illustrating a data communication method provided in one embodiment of this application. This application provides a data communication method applied to an electronic device, comprising the following steps: S10: Obtain the physical address of the source network card on the electronic device.

[0056] The data communication method is executed by host computer software on an electronic device. Electronic devices include, but are not limited to, computers, tablets, and mobile phones.

[0057] The source network card refers to the Ethernet card on the electronic device. There can be one or more source network cards.

[0058] The physical address of the source network card is its MAC address (Media Access Control Address), which is a globally unique identifier assigned to network devices during manufacturing and used for device identification and data transmission within a local area network.

[0059] In this embodiment, the host computer software can obtain the physical address of the source network card from the device information of the electronic device. The device information includes the network card identifier and physical address of each network card; the network card identifier refers to the name of the network card. The host computer software can also obtain the physical address of the source network card based on its network card identifier.

[0060] S20: Generate the first data frame based on the physical address of the source network card.

[0061] The first data frame is a request data frame, specifically, it can be an Ethernet frame.

[0062] In this embodiment of the application, the physical address of the source network card can be used as the source physical address of the first data frame, and the source physical address of the first data frame can be encapsulated to obtain the first data frame.

[0063] Alternatively, a preset target physical address can be obtained. The physical address of the source network card is used as the source physical address of the first data frame, and the target physical address is used as the destination physical address of the first data frame. The source physical address and the destination physical address of the first data frame are then encapsulated to obtain the first data frame. Specifically, the preset target physical address is obtained from the electronic device's memory. The preset target physical address can be set according to actual needs. For example, the target physical address could be FF:FF:FF:FF:FF:FF.

[0064] It can also obtain preset first service data, encapsulate the source physical address, destination physical address, and first service data of the first data frame to obtain the first data frame. The preset first service data can be set according to actual needs. Specifically, the first service data may include the version information of the sending card.

[0065] S30: The first data frame is sent to the sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards.

[0066] In this embodiment, the transmitting card includes several interfaces, each of which can be connected to a receiving card. After receiving the first data frame sent by the source network card, the transmitting card transmits the first data frame transparently to the corresponding receiving card through the interface.

[0067] Optionally, the receiving cards can be cascaded, with each interface connected to the first-level receiving card. The interface transmits the first data frame to the first-level receiving card, and the first-level receiving card transmits the first data frame to the next-level receiving card.

[0068] S40: Receive the second data frame returned by each receiving card, and obtain the physical address of each receiving card based on the second data frame; wherein, the second data frame is generated by the receiving card based on the first data frame and its own physical address.

[0069] The second data frame is a response data frame, specifically, it can be an Ethernet frame.

[0070] The physical address of the receiving card refers to its MAC address.

[0071] In this embodiment, when each receiving card receives a first data frame, it parses the first data frame to obtain the physical address of the source network card. The receiving card obtains its own physical address, generates a second data frame based on its own physical address and the physical address of the source network card, sends the second data frame to the sending card, and then the sending card returns the second data frame to the electronic device.

[0072] Specifically, the physical address of the receiving card is used as the source physical address of the second data frame, and the physical address of the source network card is used as the destination physical address of the second data frame. The source physical address and the destination physical address of the second data frame are encapsulated to obtain the second data frame.

[0073] Alternatively, preset second service data can be obtained, and the source physical address, destination physical address, and second service data of the second data frame can be encapsulated to obtain the second data frame. The preset second service data can be set according to actual needs. Specifically, the second service data may include the version information of the receiving card.

[0074] Alternatively, each receiving card can send the second data frame to the distribution card, the distribution card can send the second data frame to the sending card, and the sending card can return the second data frame to the electronic device.

[0075] S50: Obtain the service data to be transmitted and determine the target receiving card to receive the service data; generate a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; establish a first communication link from the source network card and the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and send the third data frame to the target receiving card through the first communication link; wherein, the target receiving card is at least one of several receiving cards.

[0076] The data to be transmitted can be configured according to actual needs. Specifically, it may include the version information of the target receiving card.

[0077] In this embodiment, the target receiving card is at least one of the receiving cards. The physical address of the target receiving card is used as the destination physical address of the third data frame, and the physical address of the source network card is used as the source physical address of the third data frame. The destination physical address, source physical address, and the service data to be transmitted are encapsulated to obtain the third data frame. This third data frame is then transmitted from the source network card of the electronic device to the sending card via the first communication link. The sending card then forwards the third data frame to the target receiving card.

[0078] According to the embodiments of this application, the physical address of the source network card (NIC) on the electronic device is obtained; a first data frame is generated based on the NIC's physical address; the first data frame is sent to a sending card connected to the source NIC via the source NIC, so that the sending card sends the first data frame to several receiving cards; a second data frame is received from each receiving card, and the physical address of each receiving card is obtained based on the second data frame; wherein the second data frame is generated by each receiving card based on the first data frame and its own physical address; the service data to be transmitted is obtained and the target receiving card for receiving the service data to be transmitted is determined; a third data frame is generated based on the physical address of the target receiving card, the NIC's physical address, and the service data to be transmitted; a first communication link is established from the source NIC, the sending card to the target receiving card based on the target receiving card's physical address and the source NIC's physical address, and the third data frame is sent to the target receiving card through the first communication link; wherein the target receiving card is at least one of several receiving cards. This application sends a first data frame to each receiving card via the source network card of an electronic device, and receives a second data frame returned by each receiving card. Based on the first and second data frames, a first communication link at the data link layer is established from the source network card, the sending card to the target receiving card. Since the source network card operates at the data link layer, the communication between the source network card and the sending card, and between the sending card and the target receiving card, all operate at the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the receiving card.

[0079] In one embodiment, the step of obtaining the physical address of the source network card on the electronic device in step S10 includes steps S11 to S12, as follows: S11: Obtain the source network card identifier on the electronic device.

[0080] The source network interface card (NIC) identifier refers to the name of the source NIC. Specifically, the format of the source NIC identifier differs depending on the operating system of the electronic device. For example, when the electronic device is a Mac, the source NIC identifier is in the form of enxx. When the electronic device is a Linux device, the source NIC identifier is in the form of enx00e04cxx. When the electronic device is a Windows device, the source NIC identifier is in the form of \\Device\\NPF_{xxx}.

[0081] In this embodiment, a data capture tool can be used to obtain the network interface card (NIC) device list of the electronic device and extract the source NIC identifier from the NIC device list. The data capture tool includes, but is not limited to, npcap (Non-privileged Packet Capture) and winpcap (Windows Packet Capture). The NIC device list includes fields such as the NIC's name, description, and IP address.

[0082] S12: Based on the preset mapping relationship between the source network card identifier and the network card physical address, the network card physical address corresponding to the source network card identifier is used as the network card physical address of the source network card.

[0083] In this mapping relationship, each network interface card (NIC) identifier corresponds to a unique physical address of the NIC. Specifically, the mapping relationship can be a mapping table.

[0084] In this embodiment, the electronic device may obtain the network interface card (NIC) identifiers and physical addresses of several NICs, establish a preset mapping relationship between NIC identifiers and NIC physical addresses, and store the mapping relationship in a local cache. The electronic device retrieves the mapping relationship from the local cache, matches each NIC identifier in the mapping relationship with the source NIC identifier, and uses the NIC physical address corresponding to the matching NIC identifier as the source NIC's NIC physical address.

[0085] Based on the source network card identifier and the preset mapping relationship between the network card identifier and the network card physical address, the embodiments of this application can accurately obtain the network card physical address of the source network card corresponding to the source network card identifier.

[0086] In one embodiment, step S20 includes steps S21 to S23, as follows: S21: Obtain the preset target physical address, preset first service data, protocol type field, and frame verification sequence.

[0087] The protocol type field is used to indicate the type of business data, and the frame verification sequence is used to verify the integrity of the data frame.

[0088] S22: Generate the frame header of the first data frame based on the source network card's physical address, protocol type field, and destination physical address.

[0089] In this embodiment of the application, the target physical address is used as the destination MAC address of the frame header, and the physical address of the source network card is used as the source MAC address of the frame header.

[0090] S23: Use the first service data as the payload of the first data frame; encapsulate the frame header, payload, and frame check sequence of the first data frame to obtain the first data frame.

[0091] In this embodiment, the cyclic redundancy check (CRC) values ​​of the frame header and payload of the first data frame are calculated, the CRC values ​​are written into the frame check sequence, and the frame header, payload, and frame check sequence are connected in sequence to obtain the first data frame.

[0092] This application embodiment can automatically and quickly obtain the first data frame by acquiring the source network card's physical address, target physical address, service data, protocol type field, and frame check sequence.

[0093] In one embodiment, the receiving cards are receiving cards within multiple receiving card groups. Each receiving card group includes multiple cascaded receiving cards. The first-level receiving card in each receiving card group is connected to the sending card. The sending card sends the first data frame to the first-level receiving card, and the first-level receiving card sends the first data frame to the next-level receiving card, until each receiving card receives the first data frame.

[0094] Cascading refers to a connection method where cards are linked together one after another. Taking a receiver card group consisting of 3 receiver cards, namely receiver card 1, receiver card 2, and receiver card 3, as an example, receiver card 2 is connected to receiver card 3, and receiver card 3 is connected to receiver card 2. Receiver card 1 is the first-level receiver card in this receiver card group, and receiver card 2 is the next-level receiver card after receiver card 1.

[0095] In this embodiment, the transmitting card includes several interfaces, each of which is connected to the first-level receiving card of a receiving card group. After receiving the first data frame sent by the source network card, the transmitting card transmits the first data frame through the interface to the first-level receiving card of the corresponding receiving card group. The first-level receiving card then transmits the first data frame to the next-level receiving card, so that each receiving card receives the first data frame.

[0096] In this embodiment, by cascading several receiving cards, the first data frame is transmitted in segments, with each segment having a relatively short transmission distance, thus avoiding signal attenuation and interference and improving the stability of the first data frame transmission.

[0097] In one embodiment, step S30 includes step S301, which is as follows: S301: The first data frame is sent to the sending card connected to the source network card through the source network card, so that the sending card sends the first data frame to several distribution cards, and the several distribution cards send the first data frame to several receiving cards.

[0098] Among them, the allocation card refers to the data processing card used for data allocation.

[0099] In this embodiment, the transmitting card includes several interfaces, each of which can be connected to an allocation card. After receiving a first data frame sent by the source network card, the transmitting card transmits the first data frame to the corresponding allocation card through the interfaces. The allocation card includes several interfaces, each of which can be connected to a receiving card, transmitting the first data frame to the corresponding receiving card.

[0100] Optionally, the distribution cards can be cascaded, with each interface connected to the first-level distribution card. The interface transmits the first data frame to the first-level distribution card, and the first-level distribution card transmits the first data frame to the next-level distribution card. Each level distribution card is connected to a receiving card, transmitting the first data frame to the corresponding receiving card.

[0101] This application embodiment uses multiple distribution cards to increase the number of receiving cards connected to the sending card, enabling the electronic device to communicate with more receiving cards.

[0102] In one embodiment, the plurality of distribution cards are distribution cards within a plurality of distribution card groups, each distribution card group including a plurality of cascaded distribution cards, the first-level distribution card of each distribution card group being connected to a sending card; the plurality of receiving cards are receiving cards within a plurality of receiving card groups, each receiving card group including a plurality of cascaded receiving cards, the first-level receiving card of each receiving card group being connected to a distribution card; the sending card sends a first data frame to the first-level distribution card, the first-level distribution card sends the first data frame to the corresponding receiving card group, the first-level distribution card sends the first data frame to the next-level distribution card, until each receiving card receives the first data frame.

[0103] Taking a distribution card group consisting of two distribution cards, namely Distribution Card 1 and Distribution Card 2, as an example, Distribution Card 1 has three interfaces: one interface of Distribution Card 1 is connected to the sending card, one interface of Distribution Card 1 is connected to the first-level receiving card of a receiving card group, one interface of Distribution Card 1 is connected to one interface of Distribution Card 2, and the other interface of Distribution Card 2 is connected to the first-level receiving card of a receiving card group. Distribution Card 2 is the next-level distribution card after Distribution Card 1.

[0104] In this embodiment, the transmitting card includes several interfaces, each connected to a first-level distribution card of a distribution card group. After receiving a first data frame sent by the source network card, the transmitting card transmits the first data frame through the interface to the first-level distribution card of the corresponding distribution card group. The first-level distribution card then transmits the first data frame to the first-level receiving card of the corresponding receiving card group. The first-level receiving card then transmits the first data frame to the next-level receiving card. The first-level distribution card also transmits the first data frame to the next-level distribution card, and the next-level distribution card transmits the first data frame to the first-level receiving card of the corresponding receiving card group, so that each receiving card receives the first data frame.

[0105] This application embodiment, through the cooperation of several allocation card groups and several receiving card groups, can increase the number of receiving cards connected to the sending card, enabling the electronic device to communicate with more receiving cards. In one embodiment, after step S30, steps S31-S32 are included, as follows: S31: Receive the fourth data frame returned by each allocation card, and obtain the physical address of each allocation card based on the fourth data frame; wherein, the fourth data frame is generated by the allocation card based on the first data frame and its own physical address.

[0106] The third data frame is a response data frame, specifically, it can be an Ethernet frame.

[0107] The physical address of the allocation card is its MAC address.

[0108] In this embodiment, when the allocation card receives the first data frame, it parses the first data frame to obtain the physical address of the source network card. The allocation card obtains its own physical address, generates a fourth data frame based on its own physical address and the physical address of the source network card, sends the fourth data frame to the sending card, and then the sending card returns the fourth data frame to the electronic device.

[0109] Specifically, the physical address of the allocation card is used as the source physical address of the fourth data frame, and the physical address of the source network card is used as the destination physical address of the fourth data frame. The source physical address and the destination physical address of the fourth data frame are encapsulated to obtain the fourth data frame.

[0110] Alternatively, preset fourth service data can be obtained, and the source physical address, destination physical address, and fourth service data of the fourth data frame can be encapsulated to obtain the fourth data frame. The preset fourth service data can be set according to actual needs. For example, the fourth service data may include the allocation card version information.

[0111] S32: Determine the target allocation card for receiving the service data to be transmitted; generate a fifth data frame based on the physical address of the target allocation card, the physical address of the source network card, and the service data to be transmitted; establish a second communication link from the source network card and the sending card to the target allocation card based on the physical address of the target allocation card and the physical address of the source network card, and send the fifth data frame to the target allocation card through the second communication link; wherein, the target allocation card is at least one of several allocation cards.

[0112] The target allocation card is at least one allocation card among all allocation cards.

[0113] In this embodiment, the service data to be transmitted may be the version information of the target allocation card. The physical address of the target allocation card's network interface card (NIC) is used as the destination physical address of the fifth data frame, and the physical address of the source NIC is used as the source physical address of the fifth data frame. The destination physical address, source physical address, and service data to be transmitted of the fifth data frame are encapsulated to obtain the fifth data frame, which is then sent to the target allocation card via the second communication link.

[0114] This application embodiment can establish a second communication link at the data link layer from the source network card, the sending card to the target allocation card by sending a first data frame and receiving a third data frame. Since the source network card uses the data link layer, the communication between the source network card and the sending card, and between the sending card and the target allocation card, all use the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the allocation card.

[0115] In one embodiment, after step S30, steps S33-S34 are included, as follows: S33: Receive the fourth data frame returned by the sending card, and obtain the network card physical address of the sending card based on the fourth data frame; wherein, the fourth data frame is generated by the sending card based on the first data frame and the network card physical address of the sending card.

[0116] The fourth data frame is a response data frame, specifically, it can be an Ethernet frame.

[0117] In this embodiment, when the transmitting card receives the fourth data frame, it parses the fourth data frame to obtain the physical address of the source network card. The transmitting card obtains its own physical address, generates the fourth data frame based on its own physical address and the physical address of the source network card, and sends the fourth data frame to the host computer software.

[0118] Specifically, the physical address of the network card of the sending card is used as the source physical address of the fourth data frame, and the physical address of the source network card is used as the destination physical address of the fourth data frame. The source physical address and the destination physical address of the fourth data frame are encapsulated to obtain the fourth data frame.

[0119] Alternatively, preset fourth service data can be obtained, and the source physical address, destination physical address, and fourth service data of the fourth data frame can be encapsulated to obtain the fourth data frame. The preset fourth service data can be set according to actual needs. For example, the fourth service data may include the version information of the sending card.

[0120] S34: Generate a sixth data frame based on the physical address of the sending card, the physical address of the source network card, and the service data to be transmitted; establish a third communication link from the source network card to the sending card based on the physical address of the sending card and the physical address of the source network card; and send the sixth data frame to the sending card through the third communication link.

[0121] In this embodiment, the service data to be transmitted may be the version information of the sending card. The physical address of the sending card is used as the destination physical address of the sixth data frame, and the physical address of the source network card is used as the source physical address of the sixth data frame. The destination physical address, the source physical address, and the service data to be transmitted of the sixth data frame are encapsulated to obtain the sixth data frame, which is then sent to the sending card through the third communication link.

[0122] This application embodiment can establish a third communication link between the sending card and the source network card at the data link layer by sending a first data frame and receiving a fourth data frame. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the sending card.

[0123] The following are embodiments of the apparatus described in this application, which can be used to execute the methods described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the methods described in the embodiments of this application.

[0124] Please see Figure 4 This document illustrates a schematic diagram of the data communication device provided in an embodiment of this application. The data communication device 4 provided in this embodiment is applied to an LED display screen, which includes an LED control system. The LED control system includes a sending card and several receiving cards, comprising: The first data frame receiving module 41 is used for the target receiving card to receive the first data frame sent by the source network card of the electronic device through the sending card; the target receiving card is at least one of several receiving cards, and the first data frame is generated by the electronic device according to the physical address of the source network card; The second data frame generation module 42 is used to generate a second data frame based on the first data frame and its own physical address, and send the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; and establishes a first communication link from the source network card, the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and sends the third data frame to the target receiving card through the first communication link.

[0125] In an embodiment of this application, the target receiving card receives a first data frame sent by the source network card of the electronic device through the sending card; the target receiving card is at least one of several receiving cards, and the first data frame is generated by the electronic device based on the physical address of the source network card; the target receiving card generates a second data frame based on the first data frame and its own physical address, and sends the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; a first communication link is established from the source network card, the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and the third data frame is sent to the target receiving card through the first communication link. The target receiving card of this application receives a first data frame sent by the source network card of the electronic device through the sending card, and returns a second data frame to the source network card of the electronic device. Based on the first data frame and the second data frame, the electronic device establishes a first communication link at the data link layer from the source network card, the sending card to the target receiving card. Since the source network card uses the data link layer, the communication between the source network card and the sending card, and between the sending card and the target receiving card, all use the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the target receiving card.

[0126] Please see Figure 5 This illustration shows a structural schematic diagram of a data communication device provided in an embodiment of this application. The data communication device 5 provided in this application embodiment is applied to an electronic device and includes: The network card physical address acquisition module 51 is used to acquire the network card physical address of the source network card on the electronic device; The first data frame generation module 52 is used to generate a first data frame based on the physical address of the source network card; The first data frame sending module 53 is used to send the first data frame to the sending card connected to the source network card through the source network card, so that the sending card sends the first data frame to several distribution cards; The second data frame receiving module 54 is used to receive the second data frame returned by each receiving card and obtain the physical address of each receiving card based on the second data frame; wherein, the second data frame is generated by each receiving card based on the first data frame and its own physical address; The third data frame sending module 55 is used to acquire the service data to be transmitted and determine the target receiving card to receive the service data to be transmitted; generate a third data frame according to the physical address of the target receiving card, the physical address of the source network card and the service data to be transmitted; establish a first communication link from the source network card, the sending card to the target receiving card according to the physical address of the target receiving card and the physical address of the source network card, and send the third data frame to the target receiving card through the first communication link; wherein, the target receiving card is at least one receiving card of a plurality of allocation cards.

[0127] According to the embodiments of this application, the physical address of the source network card (NIC) on the electronic device is obtained; a first data frame is generated based on the NIC's physical address; the first data frame is sent to a sending card connected to the source NIC via the source NIC, so that the sending card sends the first data frame to several distribution cards; a second data frame is received from each receiving card, and the physical address of each receiving card is obtained based on the second data frame; wherein the second data frame is generated by each receiving card based on the first data frame and its own physical address; the service data to be transmitted is obtained and the target receiving card for receiving the service data to be transmitted is determined; a third data frame is generated based on the physical address of the target receiving card, the NIC's physical address, and the service data to be transmitted; a first communication link is established from the source NIC, the sending card to the target receiving card based on the target receiving card's physical address and the source NIC's physical address, and the third data frame is sent to the target receiving card through the first communication link; wherein the target receiving card is at least one of the several distribution cards. This application transmits a first data frame from the source network card (NIC) of an electronic device to each receiving card, and receives a second data frame returned by each receiving card. Based on the first and second data frames, a first communication link at the data link layer is established from the source NIC, the transmitting card, to the target receiving card. Since the source NIC operates at the data link layer, the communication between the source NIC and the transmitting card, and between the transmitting card and the target receiving card, all operate at the data link layer. The data link layer has higher transmission efficiency than the network layer, thereby improving the data communication efficiency between the electronic device and the receiving cards.

[0128] The following are embodiments of the device described in this application, which can be used to execute the methods described in the embodiments of this application. For details not disclosed in the embodiments of the device described in this application, please refer to the methods described in the embodiments of this application.

[0129] Please see Figure 6 This application also provides an electronic device 300, which may specifically be a computer, mobile phone, tablet computer, data communication device, etc. In an exemplary embodiment of this application, the electronic device 300 is a data communication device, which may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, user interface 304, and at least one communication bus 305.

[0130] The user interface 304 is primarily used to provide an input interface for the user and to acquire user input data. Optionally, the user interface may also include a standard wired interface or a wireless interface.

[0131] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0132] The communication bus 305 is used to enable communication between these components.

[0133] The processor 301 may include one or more processing cores. The processor connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the processor may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.

[0134] The memory 302 may include random access memory (RAM) or read-only memory. Optionally, the memory may include a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor. Figure 6 As shown, a memory, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and operating applications.

[0135] The processor can be used to call an application program that stores data communication methods in memory and specifically execute the method steps of the above-described embodiments. For details of the execution process, please refer to the specific descriptions shown in the embodiments, which will not be repeated here.

[0136] This application also provides a computer-readable storage medium storing a computer program thereon, the instructions of which are adapted to be loaded by a processor and executed by the method steps of the embodiments shown above. For details of the execution process, please refer to the specific descriptions shown in the embodiments, which will not be repeated here. The device containing the storage medium can be an electronic device such as a personal computer, laptop computer, smartphone, or tablet computer.

[0137] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, 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 application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0138] 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.

[0139] 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 1The 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 selected in one or more boxes.

[0140] 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 selected in one or more boxes.

[0141] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0142] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0143] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape storage, disk storage, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0144] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0145] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A data communication method applied to an LED display screen, the LED display screen including an LED control system; the LED control system including a transmitting card and a plurality of receiving cards, characterized in that, The method includes the following steps: The target receiving card receives the first data frame sent by the source network card of the electronic device through the sending card; the target receiving card is at least one of the plurality of receiving cards, and the first data frame is generated by the electronic device based on the network card physical address of the source network card; The target receiving card generates a second data frame based on the first data frame and its own physical address, and sends the second data frame to the source network card of the electronic device, so that the electronic device generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; and establishes a first communication link from the source network card, the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and sends the third data frame to the target receiving card through the first communication link.

2. A data communication method applied to electronic devices, characterized in that, The method includes the following steps: Obtain the physical address of the source network card on the electronic device; Generate a first data frame based on the physical address of the source network card; The first data frame is sent to the sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards; The system receives a second data frame returned by each of the receiving cards, and obtains the physical address of each receiving card based on the second data frame; wherein the second data frame is generated by each receiving card based on the first data frame and its own physical address. The system acquires the service data to be transmitted and determines the target receiving card to receive the service data; generates a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; establishes a first communication link from the source network card and the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and sends the third data frame to the target receiving card through the first communication link; wherein the target receiving card is at least one of the plurality of receiving cards.

3. The data communication method according to claim 2, characterized in that: The plurality of receiving cards are receiving cards within a plurality of receiving card groups. Each receiving card group includes a plurality of cascaded receiving cards. The first-level receiving card in each receiving card group is connected to the sending card. The sending card sends the first data frame to the first-level receiving card. The first-level receiving card sends the first data frame to the next-level receiving card, until each receiving card receives the first data frame.

4. The data communication method according to claim 2, characterized in that: The step of sending the first data frame to a sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards, includes: The first data frame is sent to a sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to a plurality of distribution cards, and the plurality of distribution cards send the first data frame to the plurality of receiving cards.

5. The data communication method according to claim 4, characterized in that: The plurality of distribution cards are distribution cards within multiple distribution card groups. Each distribution card group includes multiple cascaded distribution cards. The first-level distribution card in each distribution card group is connected to the sending card. The plurality of receiving cards are receiving cards within multiple receiving card groups. Each receiving card group includes multiple cascaded receiving cards. The first-level receiving card in each receiving card group is connected to one of the distribution cards. The sending card sends the first data frame to the first-level distribution card. The first-level distribution card sends the first data frame to the corresponding receiving card group. The first-level distribution card sends the first data frame to the next-level distribution card, until each receiving card receives the first data frame.

6. The data communication method according to claim 4, characterized in that: After the step of sending the first data frame to a sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards, the method further includes: Receive a fourth data frame returned by each of the allocation cards, and obtain the physical address of each allocation card based on the fourth data frame; wherein the fourth data frame is generated by each allocation card based on the first data frame and its own physical address; A target allocation card is determined to receive the service data to be transmitted; a fifth data frame is generated based on the physical address of the target allocation card, the physical address of the source network card, and the service data to be transmitted; a second communication link is established from the source network card and the sending card to the target allocation card based on the physical address of the target allocation card and the physical address of the source network card, and the fifth data frame is sent to the target allocation card through the second communication link; wherein, the target allocation card is at least one of the plurality of allocation cards.

7. The data communication method according to claim 2, characterized in that: After the step of sending the first data frame to a sending card connected to the source network card via the source network card, so that the sending card sends the first data frame to several receiving cards, the method further includes: The system receives a fifth data frame returned by the sending card and obtains the physical address of the sending card based on the fifth data frame; wherein the fifth data frame is generated by the sending card based on the first data frame and its own physical address. A sixth data frame is generated based on the physical address of the sending card, the physical address of the source network card, and the service data to be transmitted; a third communication link is established from the source network card to the sending card based on the physical address of the sending card and the physical address of the source network card; and the sixth data frame is sent to the sending card through the third communication link.

8. The data communication method according to any one of claims 2 to 7, characterized in that: The step of generating the first data frame based on the physical address of the source network interface card includes: Obtain the preset target physical address, preset first service data, protocol type field, and frame verification sequence; The frame header of the first data frame is generated based on the physical address of the source network card, the protocol type field, and the target physical address; The first service data is used as the payload of the first data frame; the frame header, the payload of the first data frame, and the frame check sequence are encapsulated to obtain the first data frame.

9. The data communication method according to claims 2 to 7, characterized in that: The step of obtaining the physical address of the source network card on the electronic device further includes: Obtain the source network interface card (NIC) identifier on the electronic device; Based on the preset mapping relationship between the source network card identifier and the network card physical address, the network card physical address corresponding to the source network card identifier is used as the network card physical address of the source network card.

10. A data communication device applied to an LED display screen, the LED display screen including an LED control system; the LED control system including a transmitting card and a plurality of receiving cards, characterized in that, include: The first data frame receiving module is used for the target receiving card to receive the first data frame sent by the source network card of the electronic device through the sending card; The target receiving card is at least one of the plurality of receiving cards, and the first data frame is generated by the electronic device based on the physical address of the source network card; The second data frame generation module is used to enable the target receiving card to generate a second data frame based on the first data frame and its own physical address, and to send the second data frame to the source network card of the electronic device, so that the electronic device can generate a third data frame based on the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; and to establish a first communication link from the source network card, the sending card to the target receiving card based on the physical address of the target receiving card and the physical address of the source network card, and to send the third data frame to the target receiving card through the first communication link.

11. A data communication device, applied to electronic equipment, characterized in that, include: The network interface card (NIC) physical address acquisition module is used to acquire the NIC physical address of the source NIC on the electronic device. The first data frame generation module is used to generate a first data frame based on the physical address of the source network card; The first data frame sending module is used to send the first data frame to a sending card connected to the source network card through the source network card, so that the sending card sends the first data frame to several receiving cards; The second data frame receiving module is used to receive the second data frame returned by each of the receiving cards, and obtain the physical address of each receiving card based on the second data frame; wherein, the second data frame is generated by each receiving card based on the first data frame and its own physical address; The third data frame sending module is used to acquire the service data to be transmitted and determine the target receiving card to receive the service data to be transmitted; generate a third data frame according to the physical address of the target receiving card, the physical address of the source network card, and the service data to be transmitted; establish a first communication link from the source network card, the sending card to the target receiving card according to the physical address of the target receiving card and the physical address of the source network card, and send the third data frame to the target receiving card through the first communication link; wherein, the target receiving card is at least one of the plurality of receiving cards.

12. An electronic device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1 to 8.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the data communication method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • CN113746945A