Method and apparatus for determining mac address of receiving card, and electronic device, storage medium, and program product

By acquiring and transmitting port connection information and receiver card identifiers in the synchronization frame, combined with the device ID, the problem of duplicate receiver card MAC addresses in the LED display control system is solved, thereby improving the accuracy and efficiency of MAC addresses.

WO2026016336A1PCT designated stage Publication Date: 2026-01-22UNILUMIN GRP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/129657
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-15
Filing Date
2024-11-04
Publication Date
2026-01-22

AI Technical Summary

Technical Problem

In LED display control systems, the uniqueness of the MAC address of the receiving card is difficult to guarantee, leading to duplicate occurrences and system failure.

Method used

By obtaining the port connection information from the first and second synchronization frames, and combining it with the receiver card's identifier and device ID, the receiver card's MAC address is determined. The port information is obtained using the link layer discovery protocol, and synchronization frames are transmitted in the receiver card link to update and store the connection information, ensuring the uniqueness of the MAC address.

Benefits of technology

It improves the accuracy and efficiency of receiving card MAC addresses, avoids duplicate addresses, and facilitates efficient identification of different receiving cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024129657_22012026_PF_FP_ABST
    Figure CN2024129657_22012026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of display screen control systems, and provides a method and apparatus for determining a MAC address of a receiving card, and an electronic device, a storage medium, and a program product. First port connection information and second port connection information are stored in synchronization frames, achieving the sequential transmission of the first port connection information and the second port connection information in receiving cards. The efficiency and the accuracy of acquiring the first port connection information and the second port connection information by different receiving cards are improved. MAC addresses of the receiving cards are determined on the basis of identifiers of the receiving cards, the first port connection information, the second port connection information, and device IDs of the receiving cards, ensuring that different receiving cards have different MAC addresses, avoiding the situation where the MAC addresses of the receiving cards are duplicate, and thus improving the accuracy of determining MAC addresses of receiving cards, facilitating efficient identification of different receiving cards.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for determining MAC address of receiving card, electronic equipment, storage medium and program product

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application No. 2024109514339, filed on July 15, 2024, and entitled "Method and device for determining MAC address of receiving card, electronic equipment, storage medium and program product", which is incorporated by reference herein in its entirety. TECHNICAL FIELD

[0003] The present application relates to the technical field of display screen control system, and in particular to a method and device for determining MAC address of receiving card, electronic equipment, storage medium and program product. BACKGROUND

[0004] In an LED display screen control system, especially in an LED display screen control system using a general network device such as a switch as a transmission medium, each receiving card is required to have a unique identifier to facilitate data transmission.

[0005] Due to the large number of receiving cards connected to the switch, the existing method for determining the MAC address of the receiving card cannot guarantee that the MAC address of each receiving card in the LED display screen control system is fixed and unique, resulting in inaccurate MAC address of the receiving card and repeated invalidation.

[0006] SUMMARY

[0007] The present application provides a method and device for determining MAC address of receiving card, electronic equipment, storage medium and program product to solve the problem of repeated invalidation of MAC address of receiving card in the prior art and improve the accuracy of MAC address of receiving card.

[0008] The present application provides a method for determining MAC address of receiving card, comprising the following steps. A first synchronization frame is obtained, which includes first port connection information of a sending card and a switch; when the first synchronization frame is transmitted to the switch, second port connection information of the switch and a first receiving card is obtained, the second port connection information is saved in the first synchronization frame to obtain a second synchronization frame; based on the transmission process of the second synchronization frame in a receiving card link, an identifier of a receiving card in the receiving card link is obtained, and a media access control (MAC) address of the receiving card is determined based on the identifier of the receiving card, the first port connection information, the second port connection information and a device ID of the receiving card; the receiving card link includes multiple sequentially connected receiving cards.

[0009] The application provides a method for determining a MAC address of a receiving card, which is determined based on an identifier of the receiving card, first port connection information, second port connection information and a device ID of the receiving card, and comprises the following steps: obtaining the identifier of the receiving card, the first port connection information and the second port connection information based on the analysis result of the second synchronization frame by the receiving card, so as to obtain an initial MAC address field of the receiving card; determining the length of the initial MAC address field of the receiving card and the length difference between the set address length; obtaining an ID number with the length of the length difference from the device ID; and determining the MAC address of the receiving card based on the ID number and the initial MAC address field of the receiving card.

[0010] The application provides a method for determining a MAC address of a receiving card, which is determined based on the identifier of the receiving card in the transmission process of the second synchronization frame in a receiving card link, and comprises the following steps: updating the receiving card serial number in the second synchronization frame in sequence when the second synchronization frame is transmitted to the receiving cards in the receiving card link in sequence; and obtaining the identifier of the receiving card based on the updated receiving card serial number.

[0011] The application provides a method for determining a MAC address of a receiving card, which is determined based on the identifier of the receiving card, first port connection information, second port connection information and a device ID of the receiving card, and further comprises the following steps: storing the MAC address of the receiving card in a specified position of the receiving card; reading the MAC address of the receiving card from the specified position when the specified position is in a locked state, so as to identify the receiving card; and updating the MAC address of the receiving card in the specified position when the specified position is not in the locked state.

[0012] The application provides a method for determining a MAC address of a receiving card, which obtains the second port connection information of a switch and a first receiving card, and comprises the following steps: obtaining the port ID, port rate and device information of the switch between the switch and the first receiving card based on the link layer discovery protocol of the switch and the first receiving card when the first synchronization frame is transmitted between the switch and the first receiving card; and obtaining the second port connection information based on the port ID, the port rate and the device information of the switch.

[0013] The application provides a method for determining a MAC address of a receiving card, which obtains a first synchronization frame, and comprises the following steps: obtaining an initial synchronization frame sent by a sending card; storing the first port connection information in the initial synchronization frame, so as to obtain the first synchronization frame; and determining the first port connection information according to the hardware design of the sending card.

[0014] The application further provides a MAC address determination apparatus of a receiving card, comprising: a first transmission module configured to acquire a first synchronization frame, the first synchronization frame comprising first port connection information of a sending card and a switch; a second transmission module configured to acquire second port connection information of the switch and a first receiving card when the first synchronization frame is transmitted to the switch, save the second port connection information in the first synchronization frame, and obtain a second synchronization frame; a MAC address determination module configured to acquire an identifier of a receiving card in a receiving card link based on a transmission process of the second synchronization frame in the receiving card link, and determine a media access control (MAC) address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information, and a device ID of the receiving card; and the receiving card link comprises a plurality of sequentially connected receiving cards.

[0015] The application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements any of the above MAC address determination methods of a receiving card when executing the program.

[0016] The application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and the computer program is executable on a processor to implement any of the above MAC address determination methods of a receiving card.

[0017] The application further provides a computer program product comprising a computer program, and the computer program is executable on a processor to implement any of the above MAC address determination methods of a receiving card.

[0018] The MAC address determination method, apparatus, electronic device, storage medium, and program product of the receiving card provided by the application achieve the sequential transmission of the first port connection information and the second port connection information in the receiving card by storing the first port connection information and the second port connection information in the synchronization frame. The efficiency and accuracy of the different receiving cards in acquiring the first port connection information and the second port connection information are improved. The MAC address of the receiving card is determined based on the identifier of the receiving card, the first port connection information, the second port connection information, and the device ID of the receiving card, which can ensure that the MAC addresses of different receiving cards are different, avoids the repetition of the MAC addresses of the receiving cards, and further improves the accuracy of determining the MAC address of the receiving card, which is conducive to efficiently identifying different receiving cards. BRIEF DESCRIPTION OF DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the application or the prior art, the following will briefly introduce the drawings needed in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the application, and those skilled in the art can also obtain other drawings according to these drawings without any creative effort.

[0020] Figure 1 is one of the flow diagrams of the MAC address determination method of the receiving card provided by the present application;

[0021] Figure 2 is a structural diagram of the LED display screen control system provided by the present application;

[0022] Figure 3 is a flow diagram of the process of obtaining the second port connection information provided by the present application;

[0023] Figure 4 is another flow diagram of the MAC address determination method of the receiving card provided by the present application;

[0024] Figure 5 is a structural diagram of the MAC address determination device of the receiving card provided by the present application;

[0025] Figure 6 is a structural diagram of the electronic device provided by the present application. DETAILED DESCRIPTION

[0026] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely below in conjunction with the accompanying drawings of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without any creative work fall within the scope of protection of the present application.

[0027] The MAC address determination method, device and electronic device of the receiving card provided by the present application will be described below in conjunction with Figures 1-6.

[0028] Figure 1 is one of the flow diagrams of the MAC address determination method of the receiving card provided by the present application. As shown in Figure 1, the MAC address determination method of the receiving card includes steps S100-S300, and each step is specifically as follows.

[0029] S100: Obtain a first synchronization frame, and the first synchronization frame includes first port connection information of a sending card and a switch.

[0030] The first synchronization frame is obtained, specifically, an initial synchronization frame sent by the sending card is obtained, and the first port connection information is stored in the initial synchronization frame to obtain the first synchronization frame. The first port connection information is determined according to the hardware design of the sending card.

[0031] As shown in FIG. 2, the LED display screen control system of the present application comprises a sending card, a switch and a receiving card. The sending card is responsible for converting an image or a video signal into an electrical signal and transmitting the electrical signal to an LED display screen through a data line. The sending card has multiple ports, and the sending card can use an Ethernet port or a fiber interface for connecting the switch. The switch is used for forwarding data packets between the sending card and the receiving card, and the switch internally stores a routing table, which includes a mapping relationship between the MAC address of the receiving card and the second port connection information. The receiving card is used for receiving the signal sent by the sending card and converting the signal into a control signal that can be displayed by an LED module. Multiple receiving cards form a receiving card link. One sending card is connected with multiple switches. One switch is connected with multiple receiving card links.

[0032] Further, the sending card is connected with an upper computer, and the upper computer is used for human-computer interaction to configure parameters of the LED display screen control system or monitor the working state of the LED display screen control system.

[0033] The first synchronization frame or the second synchronization frame is used for transmission in the LED display screen control system to deliver the first port connection information, the second port connection information and the identifier of the receiving card.

[0034] The sending card has multiple ports 1, and each port 1 is connected with one switch. Each switch has multiple ports 2 for connecting the sending card. Each switch has multiple ports 3, and each port 3 is connected with one receiving card link. The receiving card link includes multiple receiving cards, each of which has two ports, and the multiple receiving cards are connected in series to form a receiving card link, and the first receiving card of the receiving card link is connected with the port 3 of the switch.

[0035] The sending card sends an initial synchronization frame to one switch. The sending card obtains the first port connection information according to the hardware design condition, and stores the first port connection information in the initial synchronization frame to obtain a first synchronization frame. The first port connection information is delivered in the subsequent delivery process of the first synchronization frame. The first port connection information includes the sending port information (port 1 information) of the sending card and the receiving port information (port 2 information) of the switch.

[0036] The first port connection information is defined as NUM_S, and NUM_S is quantified using 4 bits. After the subsequent receiving card receives the first synchronization frame, NUM_S can be parsed from the first synchronization frame, so as to determine the port position of the current receiving card connected with the sending card.

[0037] The present application transmits the first port connection information through the delivery of the first synchronization frame, which is beneficial to improving the efficiency of the subsequent receiving card in obtaining the first port connection information.

[0038] S200: When the first synchronization frame is transmitted to the switch, the second port connection information of the switch and the first receiving card is acquired, the second port connection information is stored in the first synchronization frame, and a second synchronization frame is obtained.

[0039] The second port connection information of the switch and the first receiving card is acquired. Specifically, when the first synchronization frame is transmitted between the switch and the first receiving card, the port ID, the port rate and the device information of the switch between the switch and the first receiving card are acquired based on the link layer discovery protocol of the switch and the first receiving card; and the second port connection information is obtained based on the port ID, the port rate and the device information of the switch.

[0040] After the switch receives the first synchronization frame, the first synchronization frame is broadcasted, and the first synchronization frame is transmitted to the first receiving card of the receiving card link. The switch acquires the port ID, the port rate and the device information of the switch between the switch and the first receiving card according to the link layer discovery protocol (Link Layer Discovery Protocol, LLDP) between the switch and the first receiving card.

[0041] As shown in FIG. 3, the port 3 of the switch and the port of the first receiving card each have a sending unit and a receiving and analyzing unit of an LLDP protocol data packet. For example, the sending unit of the switch periodically sends an LLDP protocol data packet containing the information of the switch and the current port 3 of the switch, and the receiving and analyzing unit of the first receiving card analyzes the LLDP protocol data packet after receiving the LLDP protocol data packet to acquire the device information of the connected switch, the port ID (including the ID of the current port 3 of the switch and the port of the first receiving card), the port rate and other information.

[0042] The first receiving card connected with the switch obtains the second port connection information according to the port ID, the port rate and the device information of the switch, and stores the second port connection information into the first synchronization frame to obtain a second synchronization frame.

[0043] The second port connection information is defined as NUM_B, and NUM_B is quantified using 4 bits. After the subsequent receiving card receives the second synchronization frame, NUM_B can be parsed from the second synchronization frame, so as to determine the port number of the current receiving card link connected with the switch.

[0044] The present application realizes the acquisition of the second port connection information according to the LLDP protocol, and transmits the second port connection information through the transmission of the second synchronization frame, which is beneficial to the efficiency of the subsequent receiving card in acquiring the second port connection information.

[0045] S300: obtaining the identifier of the receiving card in the receiving card link based on the transmission of the second synchronization frame in the receiving card link, and determining the media access control (MAC) address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information, and the device ID of the receiving card.

[0046] The receiving card link includes a plurality of sequentially connected receiving cards.

[0047] Based on the transmission of the second synchronization frame in the receiving card link, the identifier of the receiving card in the receiving card link is obtained. Specifically, when the second synchronization frame is sequentially transmitted to the receiving cards in the receiving card link, the receiving card serial number in the second synchronization frame is sequentially updated; and the identifier of the receiving card is obtained based on the updated receiving card serial number.

[0048] After any receiving card in the receiving card link receives the second synchronization frame, the receiving card serial number in the second synchronization frame is intercepted, and the receiving card serial number is updated, for example, the value of the receiving card serial number is incremented by one. The receiving card obtains the identifier of the receiving card based on the updated receiving card serial number. The second synchronization frame is sequentially transmitted to the subsequent receiving cards in the receiving card link.

[0049] The receiving card serial number is defined as NUM_R, and NUM_R is quantized using 4 bits. After the subsequent receiving card receives the second synchronization frame, NUM_R can be parsed from the second synchronization frame, and NUM_R is updated based on the updated NUM_R to obtain the identifier of the current receiving card.

[0050] By sequentially transmitting the second synchronization frame in the receiving card link and updating the receiving card serial number, the identifiers of different receiving cards in a receiving card link are determined, and the accuracy and efficiency of determining the identifier of the receiving card are improved.

[0051] Further, according to the required length, the device ID of the receiving card is extracted according to certain rules, and the media access control (MAC) address of the receiving card is determined based on the identifier of the receiving card, the first port connection information, the second port connection information, and the device ID of the receiving card.

[0052] The MAC address determination method of the receiving card provided by the embodiment of the present application stores the first port connection information and the second port connection information in the synchronization frame, realizes the sequential transmission of the first port connection information and the second port connection information in the receiving card, improves the efficiency and accuracy of the different receiving cards in obtaining the first port connection information and the second port connection information, determines the MAC address of the receiving card according to the identifier of the receiving card, the first port connection information, the second port connection information and the device ID of the receiving card, ensures the difference of the MAC addresses of the different receiving cards, avoids the repetition of the MAC addresses of the receiving cards, improves the accuracy of the determination of the MAC address of the receiving card, and is beneficial to the efficient identification of the different receiving cards.

[0053] Based on the above embodiment, the MAC address of the receiving card is determined based on the identifier of the receiving card, the first port connection information, the second port connection information and the device ID of the receiving card, and includes steps S310 to S340, which are as follows.

[0054] S310: obtaining the identifier of the receiving card, the first port connection information and the second port connection information based on the analysis result of the second synchronization frame by the receiving card, so as to obtain the MAC address field of the initial receiving card.

[0055] S320: determining the length difference between the length of the MAC address field of the initial receiving card and the length of the set address.

[0056] S330: obtaining the ID number with the length of the length difference from the device ID.

[0057] S340: determining the MAC address of the receiving card based on the ID number and the MAC address field of the initial receiving card.

[0058] When the second synchronization frame is sequentially transmitted to a certain receiving card in the receiving card link, the receiving card analyzes the identifier (updated NUM_R), the first port connection information (NUM_S) and the second port connection information (NUM_B) of the receiving card from the second synchronization frame. The receiving card obtains the MAC address field of the initial receiving card of the receiving card according to the updated NUM_R, NUM_S and NUM_B.

[0059] Since the length of the MAC address field of the initial receiving card is limited, the MAC address field of the initial receiving card needs to be padded to obtain the MAC address of the receiving card with a set address length. The length difference between the length of the MAC address field of the initial receiving card and the set address length is determined, an ID number with the length of the length difference is extracted from the device ID of the receiving card, for example, the extraction object is encoded by a Field-Programmable Gate Array (FPGA), and the ID number is obtained. The MAC address of the receiving card is obtained according to the ID number and the MAC address field of the initial receiving card.

[0060] The application determines the MAC address field of the initial receiving card according to the identifier of the receiving card, the first port connection information and the second port connection information, realizes the determination of the unique MAC address of each receiving card, and improves the accuracy of determining the MAC address of the receiving card. The MAC address field of the initial receiving card is padded to the set address length according to the ID number, the length of the MAC address of the receiving card is unified, and it is beneficial to manage the MAC addresses of multiple receiving cards.

[0061] Based on the above embodiment, after determining the Media Access Control (MAC) address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information and the device ID of the receiving card, steps S400 to S500 are further included, and each step is specifically as follows.

[0062] S400: store the MAC address of the receiving card in a specified position of the receiving card, and when the specified position is in a locked state, read the MAC address of the receiving card from the specified position to identify the receiving card.

[0063] S500: when the specified position is not in the locked state, update the MAC address of the receiving card in the specified position.

[0064] For the use scenario in which the connection relationship of the receiving card may change. As shown in FIG. 4, the MAC address of the receiving card is stored in the specified position of the local receiving card.

[0065] According to whether the specified position is in the locked state when the LED display screen control system is powered on, the MAC address of the receiving card is obtained. When the specified position is in the locked state, the MAC address of the receiving card is read from the specified position to identify the receiving card.

[0066] When the specified position is not in the locked state, the MAC address of the receiving card in the specified position is updated. The receiving card is identified according to the updated MAC address of the receiving card.

[0067] The application obtains the MAC address of the receiving card according to the locking state of the specified position, and improves the accuracy and efficiency of obtaining the MAC address of the receiving card. By updating the MAC address of the receiving card, real-time updating of the MAC address of the receiving card is realized, and the accuracy of the MAC address of the receiving card is ensured.

[0068] The MAC address determination device for the receiving card provided by the application is described below, and the MAC address determination device for the receiving card described below can be mutually referred to the MAC address determination method described above.

[0069] As shown in FIG. 5, a MAC address determination device for a receiving card includes: a first transmission module 501 configured to obtain a first synchronization frame, the first synchronization frame including first port connection information of a sending card and a switch.

[0070] A second transmission module 502 is configured to obtain second port connection information of the switch and a first receiving card when the first synchronization frame is transmitted to the switch, save the second port connection information in the first synchronization frame, and obtain a second synchronization frame.

[0071] A MAC address determination module 503 is configured to obtain an identifier of a receiving card in a receiving card link based on a transmission process of the second synchronization frame in the receiving card link, and determine a media access control (MAC) address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information, and a device ID of the receiving card. The receiving card link includes a plurality of sequentially connected receiving cards.

[0072] The MAC address determination device for the receiving card provided by the embodiment of the application realizes the sequential transmission of the first port connection information and the second port connection information in the receiving card by storing the first port connection information and the second port connection information in the synchronization frame. The efficiency and accuracy of obtaining the first port connection information and the second port connection information by different receiving cards are improved. The MAC address of the receiving card is determined according to the identifier of the receiving card, the first port connection information, the second port connection information, and the device ID of the receiving card, which can ensure that the MAC addresses of different receiving cards are different, avoid the repetition of the MAC address of the receiving card, and further improve the accuracy of determining the MAC address of the receiving card, which is conducive to efficiently identifying different receiving cards.

[0073] In one embodiment, the MAC address determining module 503 is configured to: obtain the identifier of the receiving card, the first port connection information and the second port connection information based on the analysis result of the second synchronization frame by the receiving card, so as to obtain the MAC address field of the initial receiving card; determine the length of the MAC address field of the initial receiving card and the length difference of the address length; obtain the ID number with the length of the length difference from the device ID; and determine the MAC address of the receiving card based on the ID number and the MAC address field of the initial receiving card.

[0074] In one embodiment, the MAC address determining module 503 is configured to: update the receiving card serial number in the second synchronization frame in sequence when the second synchronization frame is transmitted to the receiving cards in the receiving card chain in sequence; and obtain the identifier of the receiving card based on the updated receiving card serial number.

[0075] In one embodiment, the MAC address determining module 503 is further configured to: store the MAC address of the receiving card in the designated position of the receiving card; read the MAC address of the receiving card from the designated position when the designated position is in the locked state, so as to identify the receiving card; and update the MAC address of the receiving card in the designated position when the designated position is not in the locked state.

[0076] In one embodiment, the second transmission module 502 is configured to: obtain the port ID, the port rate and the device information of the switch between the switch and the first receiving card based on the link layer discovery protocol of the switch and the first receiving card; and obtain the second port connection information based on the port ID, the port rate and the device information of the switch.

[0077] In one embodiment, the first transmission module 501 is configured to: obtain the initial synchronization frame sent by the sending card; store the first port connection information in the initial synchronization frame, so as to obtain the first synchronization frame; and determine the first port connection information according to the hardware design of the sending card.

[0078] Figure 6 illustrates an entity structure diagram of an electronic device, as shown in Figure 6, the electronic device can include: a processor 610, a communications interface 620, a memory 630 and a communications bus 640, wherein the processor 610, the communications interface 620, the memory 630 complete the communication among each other through the communications bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the method for determining the MAC address of the receiving card, the method comprising: obtaining a first synchronization frame, the first synchronization frame including the first port connection information of the sending card and the switch; when the first synchronization frame is transmitted to the switch, obtaining the second port connection information of the switch and the first receiving card, saving the second port connection information in the first synchronization frame, obtaining a second synchronization frame; based on the transmission process of the second synchronization frame in the receiving card link, obtaining the identifier of the receiving card of the receiving card link, determining the media access control MAC address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information and the device ID of the receiving card; the receiving card link includes multiple sequentially connected receiving cards.

[0079] In addition, the logic instructions in the memory 630 described above can be implemented in the form of a software functional unit and sold or used as an independent product, which can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.

[0080] In another aspect, the present application also provides a computer program product, which comprises a computer program, the computer program being stored in a non-transitory computer readable storage medium, and the computer program being executed by a processor, so that a computer can execute the MAC address determination method of the receiving card provided by the above method, and the method comprises the following steps: obtaining a first synchronization frame, the first synchronization frame comprising first port connection information of a sending card and a switch; obtaining second port connection information of the switch and a first receiving card when the first synchronization frame is transmitted to the switch, saving the second port connection information in the first synchronization frame to obtain a second synchronization frame; obtaining an identifier of the receiving card in the receiving card link based on a transmission process of the second synchronization frame in the receiving card link, and determining a media access control (MAC) address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information and a device ID of the receiving card; and the receiving card link comprises a plurality of sequentially connected receiving cards.

[0081] In another aspect, the present application also provides a non-transitory computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the MAC address determination method of the receiving card provided by the above method, and the method comprises the following steps: obtaining a first synchronization frame, the first synchronization frame comprising first port connection information of a sending card and a switch; obtaining second port connection information of the switch and a first receiving card when the first synchronization frame is transmitted to the switch, saving the second port connection information in the first synchronization frame to obtain a second synchronization frame; obtaining an identifier of the receiving card in the receiving card link based on a transmission process of the second synchronization frame in the receiving card link, and determining a media access control (MAC) address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information and a device ID of the receiving card; and the receiving card link comprises a plurality of sequentially connected receiving cards.

[0082] The device embodiments described above are only schematic, wherein the units shown as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment. Those skilled in the art can understand and implement without creative labor.

[0083] Those skilled in the art can clearly understand the implementation of the various embodiments by means of software and the necessary general hardware platform from the above description of the embodiments, and of course, the embodiments can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in terms of the contribution to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, or an optical disc, and includes a plurality of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the methods.

[0084] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features thereof; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for determining a media access control (MAC) address of a receiving card, comprising: obtaining a first synchronization frame, wherein the first synchronization frame comprises first port connection information of a sending card and a switch; obtaining second port connection information of the switch and a first receiving card in the receiving card link when the first synchronization frame is transmitted to the switch, storing the second port connection information in the first synchronization frame, and obtaining a second synchronization frame; obtaining an identifier of a receiving card in the receiving card link based on a transmission process of the second synchronization frame in the receiving card link, and determining a MAC address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information and a device ID of the receiving card, wherein the receiving card link comprises a plurality of sequentially connected receiving cards.

2. The method of claim 1, wherein, The determination of the MAC address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information and the device ID of the receiving card comprises: obtaining the identifier of the receiving card, the first port connection information and the second port connection information based on a parsing result of the second synchronization frame by the receiving card, so as to obtain a MAC address field of an initial receiving card; determining a length difference between a length of the MAC address field of the initial receiving card and a length of the address length; obtaining an ID number with the length difference from the device ID; determining the MAC address of the receiving card based on the ID number and the MAC address field of the initial receiving card.

3. The method of claim 1, wherein, The obtaining of the identifier of the receiving card in the receiving card link based on the transmission process of the second synchronization frame in the receiving card link comprises: updating a receiving card serial number in the second synchronization frame in sequence when the second synchronization frame is transmitted to the receiving cards in the receiving card link in sequence; and obtaining the identifier of the receiving card based on the updated receiving card serial number.

4. The method of claim 1, wherein, After the determination of the MAC address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information and the device ID of the receiving card, the method further comprises: storing the MAC address of the receiving card in a designated position of the receiving card, reading the MAC address of the receiving card from the designated position when the designated position is in a locked state, so as to identify the receiving card; and updating the MAC address of the receiving card in the designated position when the designated position is not in the locked state.

5. The method of claim 1, wherein, The obtaining of the second port connection information of the switch and the first receiving card comprises: obtaining a port ID, a port rate and device information of the switch between the switch and the first receiving card based on a link layer discovery protocol of the switch and the first receiving card; and obtaining the second port connection information based on the port ID, the port rate and the device information of the switch.

6. The method of claim 1, wherein, The obtaining of the first synchronization frame comprises: Obtaining an initial synchronization frame sent by the sending card, storing the first port connection information in the initial synchronization frame to obtain the first synchronization frame, the first port connection information being determined according to the hardware design of the sending card.

7. A media access control (MAC) address determination apparatus of a receiving card, comprising: a first transmission module configured to obtain a first synchronization frame, the first synchronization frame comprising first port connection information of a sending card and a switch; a second transmission module configured to, when the first synchronization frame is transmitted to the switch, obtain second port connection information of the switch and a first receiving card, store the second port connection information in the first synchronization frame to obtain a second synchronization frame; a MAC address determination module configured to, based on transmission of the second synchronization frame in a receiving card link, obtain an identifier of a receiving card in the receiving card link, and determine a MAC address of the receiving card based on the identifier of the receiving card, the first port connection information, the second port connection information, and a device ID of the receiving card; the receiving card link comprising a plurality of sequentially connected receiving cards.

8. A media access control (MAC) address determination method of a receiving card, applied to an LED display screen control system comprising a sending card, a switch, and a receiving card, the sending card being connected to the switch, a plurality of the receiving cards being sequentially connected to form a receiving card link, the switch being connected to a first receiving card of the receiving card link, the method comprising: the switch obtaining a first synchronization frame sent by the sending card, the first synchronization frame comprising first port connection information of the sending card and the switch; the first receiving card obtaining the first synchronization frame and second port connection information of the switch and the first receiving card, and storing the second port connection information in the first synchronization frame to obtain a second synchronization frame; the second synchronization frame being transmitted in the receiving card link to obtain an identifier of a receiving card in the receiving card link, and a MAC address of the receiving card being determined based on the identifier of the receiving card, the first port connection information, and the second port connection information.

9. The method of claim 8, wherein, the MAC address of the receiving card being determined based on the identifier of the receiving card, the first port connection information, and the second port connection information, comprising: the identifier of the receiving card, the first port connection information, and the second port connection information being obtained based on a parsing result of the second synchronization frame by the receiving card, to obtain a MAC address field of an initial receiving card; a length of the MAC address field of the initial receiving card and a length difference of the set address length being determined; an ID number with the length of the length difference being obtained from a device ID of the receiving card; the MAC address of the receiving card being determined based on the ID number and the MAC address field of the initial receiving card.

10. The method of determining the MAC address of a receiving card according to claim 8 or 9, wherein, the identifier of the receiving card in the receiving card link being obtained by transmitting the second synchronization frame in the receiving card link, comprising: when the second synchronization frame is sequentially transmitted to the receiving cards in the receiving card link, a receiving card serial number in the second synchronization frame being sequentially updated. obtain the identifier of the receiving card based on the updated receiving card serial number.

11. The method of determining a MAC address of a receiving card according to any one of claims 8 to 10, wherein, After determining the MAC address of the receiving card based on the identifier of the receiving card, the first port connection information and the second port connection information, the method further comprises: storing the MAC address of the receiving card in a designated location of the receiving card, and reading the MAC address of the receiving card from the designated location when the designated location is in a locked state to identify the receiving card; updating the MAC address of the receiving card in the designated location when the designated location is not in the locked state.

12. The method of determining a MAC address of a receiving card according to any one of claims 8 to 11, wherein, The method for obtaining the first synchronization frame and the second port connection information of the switch and the first receiving card comprises: obtaining the port ID, the port rate and the device information of the switch between the switch and the first receiving card based on the link layer discovery protocol of the switch and the first receiving card; obtaining the second port connection information based on the port ID, the port rate and the device information of the switch.

13. The method of claim 8, wherein the MAC address of the receiving card is determined by: The method for obtaining the first synchronization frame sent by the sending card comprises: obtaining an initial synchronization frame sent by the sending card, storing the first port connection information in the initial synchronization frame to obtain the first synchronization frame, wherein the first port connection information is determined according to the hardware design of the sending card.

14. The method of determining a MAC address of a receiving card according to any one of claims 8 to 13, wherein, The sending card has multiple ports, and the sending card connects the switch using an Ethernet port or a fiber interface.

15. The method of claim 14, wherein the MAC address of the receiving card is determined by: The receiving card link has multiple receiving cards, and each of the multiple receiving cards has two ports, and the multiple receiving cards are connected in series to form the receiving card link, and the first receiving card of the receiving card link is connected with a port of the switch used for connecting the interface card link.

16. The method of claim 15, wherein, 18. A media access control (MAC) address determination device of a receiving card, comprising:

17. The method of claim 15, wherein the MAC address of the receiving card is determined by: a MAC address determination module configured to obtain first port connection information, second port connection information and an identifier of a receiving card of a receiving card link from a transmission process of a second synchronization frame in the receiving card link, and determine a MAC address of the receiving card based on the identifier of the receiving card, the first port connection information and the second port connection information and a device ID of the receiving card. The receiving card link comprises multiple receiving cards connected in sequence, the first port connection information is port information of a sending card and a switch, and the second port connection information is connection port information of the switch and a first receiving card of the receiving card link. The device is used in an LED display screen control system comprising a sending card, a switch and receiving cards, the sending card is connected with the switch, multiple receiving cards are connected in sequence to form a receiving card link, and the switch is connected with a first receiving card of the receiving card link. The second port connection information comprises a port ID, a port rate and device information of the switch connected with the first receiving card.

19. The apparatus for determining a MAC address of a receiving card according to claim 18, wherein, ​ 20. The apparatus for determining a MAC address of a receiving card of claim 19, wherein, ​ 21. The MAC address determining apparatus of the receiving card of claim 18 or 20, wherein, The first port connection information includes sending port information of the sending card and receiving port information of the switch.

22. The apparatus for determining a MAC address of a receiving card of any of claims 11-14, wherein, The first port connection information, the second port connection information or the receiving card identifier is quantized using 4 bits. 23.A non-transitory computer-readable storage medium having stored thereon a computer program. The computer program, when executed by a processor, implements the method for determining a media access control (MAC) address of a receiving card according to any one of claims 1 to 6, or implements the method for determining a media access control (MAC) address of a receiving card according to any one of claims 8 to 17.

Citation Information

Patent Citations

  • Address data processing method and device of articulated naturality web terminal, equipment and storage medium

    CN111049942A

  • Display screen control method, device, equipment and system and storage medium

    CN111767015A

  • Network topology identification method and device, computer equipment and storage medium

    CN116248511A

  • Method and device for determining MAC address of receiving card, electronic equipment, storage medium and program product

    CN119011541A

  • Link trace frame transfer program recording medium, switching hub, and link trace frame transfer method

    US20080168120A1