MAC address burning management method, device and system and medium

By obtaining the device's serial number (SN) information and requesting a MAC address from the MES server, and selecting a suitable programming module, the problems of duplicate, incorrect, and inefficient MAC address programming are solved, enabling efficient MAC address programming management for various product types.

CN121547438APending Publication Date: 2026-02-17深圳市海盈智联实业有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511879070.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-12
Publication Date
2026-02-17

AI Technical Summary

Technical Problem

Existing technologies for MAC address programming suffer from problems such as repeated programming, programming errors, low programming efficiency, and poor applicability of programming devices.

Method used

By obtaining the SN code information of the target device to be programmed, applying for the MAC address from the MES server, and selecting the target device programming module with compatible protocol, the target MAC address is programmed into the device, establishing the relationship between the SN code information and the MAC address, thus realizing MAC address programming for multiple types of products.

Benefits of technology

It achieves uniqueness and efficiency in MAC address programming, solves problems such as duplicate programming, programming errors and poor device applicability, and provides a precise and efficient MAC address programming management method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121547438A_ABST
    Figure CN121547438A_ABST
Patent Text Reader

Abstract

The invention discloses an MAC address burning management method, device and system and a medium, and the method comprises the steps: obtaining the SN code information of a to-be-burnt target device, applying for a corresponding number of MAC addresses from an MES server according to the SN code information, obtaining a target MAC address, and selecting a target device burning module adaptive to a protocol to burn the target MAC address into the to-be-burnt target device; according to the method, the relationship between the SN code information and the MAC address is established, so that the uniqueness of the MAC address burnt by the target equipment to be burnt is realized, and the target equipment burning module matched with the SN code information is selected according to the SN code information of the target equipment to be burnt, so that the MAC addresses of multiple types of products can be burnt; the technical problems of repeated burning, burning errors, low burning efficiency and poor applicability of burning related equipment in MAC address burning in related technologies are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of MAC address programming technology, and in particular to a MAC address programming management method, device, system and medium. Background Technology

[0002] A MAC address (Media Access Control Address) is a globally unique physical hardware address burned into the network interface card by the network equipment manufacturer during production. Therefore, the uniqueness of the MAC address is a rigid requirement for network devices. If duplicate or incorrect MAC addresses are burned during the production process, the manufactured equipment will malfunction. Currently, MAC address burning is not bound to product information and can only be adapted to the burning of MAC addresses for a single product type. This leads to problems such as duplicate or incorrect burning, low burning efficiency, and poor applicability to related devices.

[0003] Therefore, how to solve the technical problems existing in traditional MAC address burning in related technologies has become a technical challenge that needs to be overcome by those skilled in the art. Summary of the Invention

[0004] This invention provides a MAC address programming management method, device, system, and medium to solve the technical problems in related technologies, such as repeated programming, programming errors, low programming efficiency, and poor applicability of programming-related devices.

[0005] In a first aspect, one embodiment of the present invention provides a MAC address programming and management method, comprising: Obtain the serial number (SN) information of the target device to be programmed; Based on the SN code information, request the MES server to send out the number of MAC addresses in order to obtain the target MAC addresses to be burned. Select the target device programming module that is compatible with the protocol based on the SN code information; The target MAC address is programmed into the target device to be programmed using the target device programming module.

[0006] The MAC address programming and management method of this invention has at least the following beneficial effects: This invention discloses a MAC address programming management method. After obtaining the serial number (SN) information of the target device to be programmed, the method requests a corresponding number of MAC addresses from the MES server based on the SN information. Once the target MAC addresses are obtained, a protocol-compatible programming module is selected to program the target MAC addresses into the target device. By establishing a relationship between SN information and MAC addresses, the method ensures the uniqueness of the programmed MAC addresses for each target device. Furthermore, by selecting a compatible programming module based on the SN information of the target device, the method enables programming of MAC addresses for multiple product types. This solves the technical problems of duplicate programming, programming errors, low programming efficiency, and poor applicability to related devices in related technologies, providing a precise, efficient, and highly applicable MAC address programming management method.

[0007] According to other embodiments of the MAC address programming management method of the present invention, the MAC address programming management method further includes: The SN code information is bound to the target MAC address, and the target MAC address is deleted from the MAC address management pool of the MES server.

[0008] According to other embodiments of the MAC address programming management method of the present invention, the MAC address programming management method further includes: The network card of the target device to be programmed is read to determine whether the target MAC address has been successfully programmed.

[0009] According to other embodiments of the MAC address programming management method of the present invention, the step of requesting the MES server to issue a number of MAC addresses based on the SN code information to obtain the target MAC addresses to be programmed includes: The MES server checks whether the SN code information is bound to the target MAC address; If so, the bound target MAC address will be sent; Otherwise, obtain product information based on the SN code; The target MAC address is assigned to the MAC address management pool of the MES server based on the product information.

[0010] According to other embodiments of the MAC address programming management method of the present invention, the target device programming module is integrated with a USB protocol communication module, a PCIE protocol communication module and a socket protocol communication module. The target device programming module that selects protocol adaptation based on the SN code information includes: Select the target communication protocol module based on the product information. The target communication protocol module is the USB protocol communication module, the PCIE protocol communication module, or the socket protocol communication module.

[0011] According to another embodiment of the MAC address burning and management method of the present invention, the MAC address management pool stores MAC address ranges; Assigning the target MAC address to the MAC address management pool of the MES server based on the product information includes: Select the target MAC address range based on the product information; The target MAC address is allocated in the target MAC address range according to the first-in-first-out principle.

[0012] Secondly, one embodiment of the present invention provides a MAC address programming and management device, comprising: The SN code information acquisition module is used to acquire the SN code information of the target device to be programmed. The MAC address application module is used to apply to the MES server for the number of MAC addresses to be distributed based on the SN code information, so as to obtain the target MAC address to be burned. The MAC address programming device selection module is used to select the target programming module that is compatible with the protocol based on the SN code information. The MAC address programming control module is used to program the target MAC address into the target device to be programmed through the target device programming module.

[0013] Thirdly, one embodiment of the present invention provides a MAC address programming management system, comprising: The MES server stores MAC address ranges; The host computer is equipped with pre-programmed programming control software; Specialized programming fixture equipment; The host computer is communicatively connected to the MES server and the dedicated burning fixture device. When the host computer executes the preset burning control software, it implements the MAC address burning management method described above to burn the MAC address of the target device to be burned.

[0014] According to other embodiments of the MAC address burning management system of the present invention, the host computer includes a plurality of host computers, each correspondingly connected to a plurality of burning-dedicated fixture devices; Multiple host computers execute the preset programming control software to program the MAC addresses of multiple target devices to be programmed, as described above.

[0015] Fourthly, one embodiment of the present invention provides a computer-readable storage medium storing an executable program, which is executed by a processor to implement the MAC address burning management method as described above. Attached Figure Description

[0016] Figure 1 This is a schematic diagram illustrating the steps of a specific embodiment of a MAC address programming and management method according to the present invention; Figure 2 This is a schematic diagram illustrating the steps of another specific embodiment of the MAC address burning and management method of the present invention; Figure 3 This is a schematic diagram of a specific embodiment of a MAC address burning and management method according to an embodiment of the present invention, in which step S400 includes sub-steps; Figure 4 This is a schematic diagram illustrating the steps of another specific embodiment of a MAC address burning and management method according to an embodiment of the present invention; Figure 5 This is a schematic diagram of a specific embodiment of a MAC address burning and management method according to an embodiment of the present invention, in which step S200 includes sub-steps; Figure 6 This is a schematic diagram of a specific embodiment of a MAC address burning and management method according to an embodiment of the present invention, in which step S240 includes sub-steps; Figure 7 This is a schematic diagram of the module composition of a specific embodiment of a MAC address programming and management device according to the present invention; Figure 8 This is a schematic diagram of the module composition of a specific embodiment of a MAC address burning management system according to an embodiment of the present invention; Figure 9 This is a schematic diagram of the module composition of another specific embodiment of a MAC address burning management system according to an embodiment of the present invention. Detailed Implementation

[0017] The following will describe the inventive concept and its resulting technical effects clearly and completely with reference to embodiments, so as to fully understand the purpose, features and effects of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are all within the scope of protection of the present invention.

[0018] In the description of the embodiments of the present invention, the term "several" means one or more, and the term "multiple" means two or more. The terms "greater than," "less than," and "exceeding" should be understood as excluding the stated number, while the terms "above," "below," and "within" should be understood as including the stated number. The terms "first" and "second" should be understood as distinguishing technical features, and not as indicating or implying relative importance, the number of indicated technical features, or the order of the indicated technical features.

[0019] Reference Figure 1 This invention provides a MAC address programming management method, which is applied in a MAC address programming management system for managing MAC address programming; it includes the following steps: S100: Obtain the SN code information of the target device to be programmed; In this process, SN code information is generated in the MES server in the early stage, and the status of the SN code information is marked. Then, after each SN code information is assigned, the status of the SN code information is registered and modified to ensure the uniqueness of the SN code information in the target device to be programmed. In this embodiment, the host computer in the MAC address programming management system establishes a communication connection with the MES server. After the host computer inputs the parameters of the target device to be programmed (such as manufacturer, product name, etc.), the MES server sends the SN code information of the target device to be programmed.

[0020] S200: Request the number of MAC addresses from the MES server based on the SN code information to obtain the target MAC addresses to be burned; After obtaining the SN code information through the above step S100, applying for the MAC address from the MES server based on the SN code information can ensure the correspondence between the SN code information and the MAC address, ensuring that each SN code information corresponds to one or more MAC addresses.

[0021] S300: Select the target device programming module that is compatible with the protocol based on the SN code information; Since there may be various types of target devices to be programmed, and different types of products may use different communication protocols when programming their MAC addresses, this embodiment uses the SN code information to identify the type of the target device and then selects a programming module that matches the protocol.

[0022] S400: The target MAC address is burned into the target device to be burned through the target device burning module.

[0023] After selecting the correct target device programming module through the above step S300, the host computer controls the programming-specific fixture device in the MAC address programming management system to fix the target to be programmed to the preset position, and then performs the MAC address programming action.

[0024] This invention provides a MAC address programming management method. By establishing a relationship between SN code information and MAC address, the uniqueness of the MAC address programmed for the target device is ensured. Furthermore, by selecting a suitable programming module for the target device based on its SN code information, the method enables MAC address programming for multiple product types. This solves the technical problems in related technologies, such as frequent duplicate programming, programming errors, low programming efficiency, and poor applicability to related devices.

[0025] Reference Figure 2 In some embodiments, the MAC address is stored in the MAC address management pool of the MES server. In the above embodiments, after obtaining the target MAC address to be programmed based on the SN code information, to prevent duplicate MAC address issuance and programming, the MAC address programming management method further includes the following steps: S500: Bind the SN code information to the target MAC address, and delete the target MAC address from the MAC address management pool of the MES server.

[0026] In this embodiment, after the MES server sends the target MAC address to the host computer, it binds the SN code information with the sent target MAC address to facilitate MAC address management, and stores the binding relationship table in the MES server. Furthermore, this prevents situations such as interruptions during the MAC address burning process after the target MAC address is sent. When the host computer requests the MAC address from the MES server during the MAC address burning process, it first queries the SN code information-MAC address binding relationship table. If the SN code information corresponds to a target MAC address in the table, the target MAC address is sent directly without allocation through the MAC address management pool, preventing waste of MAC address resources.

[0027] Reference Figure 3 In some embodiments, the target device to be programmed may undergo MAC address programming multiple times. Since the storage space of the target device is fixed, this is to prevent multiple programming attempts from consuming storage space and causing the target device to fail to meet performance requirements during subsequent use. In this embodiment, step S400 of the above embodiment includes the following sub-steps: S410: Data communication with the target device to be programmed is achieved through the WINUSB driver; S420: Read data from the target device to be programmed to obtain raw data information; S430. Determine the difference between the target MAC address and the original data information; If the original data includes all information about the target MAC address, then proceed with the following steps: S440: End the current target MAC address burning process; do not perform the burning action. Otherwise, proceed with the following steps: S450: Remove the target MAC address from the original data to obtain the difference target MAC address, and burn the difference target MAC address into the target device to be burned.

[0028] In this embodiment, by reading the original data of the target device to be programmed and performing a difference analysis with the target MAC address, only the different target MAC addresses that do not exist in the target device to be programmed are programmed, thereby saving storage space and ensuring the performance requirements of the target device to be programmed for subsequent use.

[0029] Reference Figure 4 In some embodiments, MAC address programming may fail due to programming errors, resulting in the target device being unable to connect to the network and function properly. Therefore, after MAC address programming is completed, the target device needs to be tested. In this embodiment, the MAC address programming management method further includes the following steps: S600 reads information from the network card of the target device to be programmed in order to determine whether the target MAC address has been successfully programmed.

[0030] In this embodiment, the host computer reads information from the network card of the target device to be programmed through the WMI service, thereby obtaining the MAC address information of the device to be programmed. By comparing it with the target MAC address, if the two are consistent, it means that the target MAC address has been programmed successfully. If they are inconsistent, it means that the target MAC address has not been successfully programmed to the device and the MAC address needs to be programmed again.

[0031] Reference Figure 5 In some embodiments, to accurately send the target MAC address to ensure efficient programming, step S200 of the above embodiment includes the following sub-steps: S210, the MES server checks whether the SN code information is bound to the target MAC address; That is, the MES server checks the relationship table between the SN code information and the target MAC address in the above embodiment.

[0032] If the determination in step S210 is yes, then proceed with the following steps: S220: Send the bound target MAC address; If the determination in step S210 is negative, then proceed to step: S230. Obtain product information based on the SN code; S240. Assign a target MAC address to the MAC address management pool of the MES server based on the product information.

[0033] The MAC address management pool of the MES server may store MAC addresses of various product types. By storing MAC addresses separately according to product type, the MAC address management pool can ensure the orderly allocation of MAC addresses and prevent the issuance of incorrect MAC addresses.

[0034] Reference Figure 6 Specifically, in some embodiments, the MAC address management stores MAC address ranges, which are divided according to preset rules, such as different products corresponding to different MAC address ranges. Therefore, step S240 in the above embodiments specifically includes: S241. Select the target MAC address range based on the product information; S242. Allocate target MAC addresses in the target MAC address range according to the first-in-first-out principle.

[0035] In this embodiment, by dividing and storing MAC address ranges according to different products, the corresponding target MAC address can be quickly issued based on product information when a MAC address is requested. Simultaneously, the first-in-first-out (FIFO) principle ensures the orderly allocation of MAC addresses, avoiding omissions or duplications.

[0036] In some embodiments, to improve the applicability of the MAC address programming management system and enable it to program MAC addresses for different types of products, the target device programming module described in the above embodiments is integrated with a USB protocol communication module, a PCIe protocol communication module, and a socket protocol communication module. After obtaining product information based on the SN code in S230, step S300 specifically includes the following sub-steps: S310. Select the target communication module based on the product information.

[0037] The product information can determine whether the target device to be programmed has a USB network card, a PCIe network card, or is a switch. Then, the host computer establishes a communication connection with the target device by selecting the corresponding USB protocol communication module, PCIe protocol communication module, or socket protocol communication module, and then performs the programming of the target MAC address.

[0038] Reference Figure 7This invention also provides a MAC address programming management device, which includes an SN code information acquisition module, a MAC address application module, a MAC address programming device selection module, and a MAC address programming control module. The SN code information acquisition module acquires the SN code information of the target device to be programmed. The MAC address application module requests a number of MAC addresses from the MES server based on the SN code information to obtain the target MAC addresses to be programmed. The MAC address programming device selection module selects a protocol-compatible target device programming module based on the SN code information. The MAC address programming control module programs the target MAC address into the target device through the target device programming module. In some embodiments, the MAC address programming management device is specifically implemented as a PC or industrial control computer loaded with a preset application program. The MAC address programming process implemented in this device corresponds to the MAC address programming management methods described in the above embodiments and will not be elaborated further here.

[0039] Reference Figure 8 This invention also provides a MAC address programming management system, which includes an MES server, a host computer, and a dedicated programming fixture. The MES server stores MAC address ranges in its MAC management pool, and the host computer has pre-set programming control software. In this embodiment, the host computer is communicatively connected to both the MES server and the dedicated programming fixture. When programming the MAC address of a target device, the host computer executes the pre-set programming control software, thereby implementing the MAC address programming management method described in any of the above embodiments to program the MAC address of the target device. This embodiment provides a MAC address programming management system to solve the technical problems in related technologies, such as repeated programming, programming errors, low programming efficiency, and poor applicability to programming-related devices.

[0040] Reference Figure 9 In some embodiments, to simultaneously program the MAC addresses of multiple target devices, thereby improving MAC address programming efficiency, the host computer in this embodiment includes multiple host computers: host computer 1, host computer 2, ..., host computer n, and corresponding dedicated programming fixture devices include: dedicated programming fixture device 1, dedicated programming fixture device 2, ..., dedicated programming fixture device n. Each host computer is connected to a dedicated programming fixture device, and each host computer can independently execute preset programming control software, thereby enabling the MAC address programming management method described in any of the above embodiments to program the MAC addresses of multiple target devices.

[0041] In some embodiments, the host computer described in the above embodiments may be a PC or industrial control computer equipped with preset burning control application software.

[0042] This invention also provides a computer storage medium, wherein the computer-readable storage medium stores a computer-executable program, which, when executed by a processor, implements the MAC address burning and management method described in any of the above embodiments.

[0043] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments, and various changes can be made within the scope of knowledge possessed by those skilled in the art without departing from the spirit of the present invention. Furthermore, the embodiments of the present invention and the features thereof can be combined with each other unless otherwise specified.

Claims

1. A MAC address burning management method, characterized in that, The method comprises the following steps: acquiring SN code information of a target device to be burned; applying for MAC address quantity distribution from an MES server according to the SN code information to acquire a target MAC address to be burned; selecting a target device burning module adapted to a protocol according to the SN code information; burning the target MAC address into the target device to be burned through the target device burning module.

2. The MAC address burn-in management method of claim 1, wherein, The MAC address burning management method further comprises the following steps: binding the SN code information with the target MAC address and deleting the target MAC address in a MAC address management pool of the MES server.

3. The MAC address burn-in management method of claim 1 or 2, wherein, The MAC address burning management method further comprises the following steps: reading information of a network card of the target device to be burned to determine whether the target MAC address is burned successfully.

4. The MAC address burn-in management method of claim 1 or 2, wherein, The step of applying for MAC address quantity distribution from the MES server according to the SN code information to acquire the target MAC address to be burned comprises the following steps: checking, by the MES server, whether the SN code information is bound with the target MAC address; if yes, distributing the bound target MAC address; otherwise, acquiring product information according to the SN code; allocating the target MAC address in a MAC address management pool of the MES server according to the product information.

5. The MAC address burn-in management method of claim 4, wherein, The target device burning module is integrally provided with a USB protocol communication module, a PCIE protocol communication module and a socket protocol communication module. The step of selecting the target device burning module adapted to the protocol according to the SN code information comprises the following steps: selecting a target communication protocol module according to the product information, the target communication protocol module being the USB protocol communication module, the PCIE protocol communication module or the socket protocol communication module.

6. The MAC address burn-in management method of claim 4, wherein, The MAC address management pool stores MAC address number segments. The step of allocating the target MAC address in the MAC address management pool of the MES server according to the product information comprises the following steps: selecting a target MAC address number segment according to the product information; allocating the target MAC address in the target MAC address number segment according to a first-in-first-out principle.

7. A MAC address burn management apparatus, characterized by, The method comprises the following steps: an SN code information acquisition module is configured to scan SN code information of a target device to be burned; a MAC address application module is configured to apply for MAC address quantity distribution from an MES server according to the SN code information to acquire a target MAC address to be burned; a MAC address burning device selection module is configured to select a target device burning module adapted to a protocol according to the SN code information; a MAC address burning control module is configured to burn the target MAC address into the target device to be burned through the target device burning module.

8. A MAC address burning management system, characterized by, The method comprises the following steps: an MES server is configured to store MAC address number segments; an upper computer is configured to have preset burning control software; a burning special fixture device; the upper computer is in communication connection with the MES server and the burning special fixture device, and when the upper computer executes the preset burning control software, the method according to any one of claims 1 to 6 is realized to burn a MAC address into a target device to be burned.

9. The MAC address burn-in management system of claim 8, wherein, The host computer comprises a plurality of host computers, each corresponding to a plurality of connection-specific fixture devices; A plurality of host computers respectively execute the preset burning control software to implement the method of any one of claims 1 to 6 to perform MAC address burning on a plurality of target devices to be burned.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores an executable program, and the executable program is executed by the processor to implement the MAC address burning management method of any one of claims 1 to 6.