A MAC address automatic burning method and system based on MES management
Through the automated MAC address writing method based on MES management, the problems of low efficiency and error-prone MAC address writing in the existing technology are solved, and efficient and accurate MAC address writing and management are realized, which simplifies the operation process and improves the Productivity and product consistency.
Patent Information
- Application Number
- CN202110705488.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-24
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-06-24
AI Technical Summary
In the prior art, the set of MAC address writing commands is not unified, the manual operation efficiency is low and error-prone, resulting in the equipment being unable to access the locomotive network, causing quality loss.
Using the MES management-based MAC address automatic writing method, the serial number of the test item is obtained, and the MAC address is obtained by obtaining the MES system, and the checksum comparison is performed during the automatic writing process to ensure the correctness of the writing and realize Firm writing and verification without manual intervention.
It improves the efficiency and accuracy of MAC address writing, simplifies the work of operators, ensures the unity and consistency of MAC addresses, reduces the difficulty of writing and the risk of missing writing, and improves production efficiency.
Smart Images

Figure CN115529295B_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the technical field of MAC address burning, and in particular to a MAC address automatic burning method and system based on MES management. Background Art
[0002] With the rapid development of Ethernet technology and the increasing requirements of locomotives for communication data volume and bandwidth, a large number of devices with Ethernet communication functions have entered locomotives, which will become the mainstream communication method for locomotives in the foreseeable future. As an Ethernet terminal device, it must be configured with a globally unique MAC address to access the Ethernet.
[0003] In the production process of terminal equipment, due to the diversity of product types, operating systems and versions, and development languages, the MAC address burning command set and interface are not unified. At the same time, the burning of MAC addresses is completely manually input into the terminal equipment through interfaces (network ports, serial ports, etc.). This operation method is very primitive. It is not only inefficient, but also easy to make mistakes or omissions, resulting in the inability of the equipment to access the locomotive network when in use, causing unnecessary quality losses. Summary of the invention
[0004] The technical problem to be solved by the present invention is: in view of the problems existing in the prior art, the present invention provides a MAC address automatic burning method and system based on MES management with high automation and high burning efficiency.
[0005] In order to solve the above technical problems, the technical solution proposed by the present invention is:
[0006] A method for automatically burning a MAC address based on MES management, comprising the steps of:
[0007] 1) Obtain MAC address: obtain the serial number of the product under test and send it to the MES system to obtain its MAC address;
[0008] 2) Automatic MAC address burning: configure the test qualification criteria, input the specific instructions of the tested product according to the criteria, and distribute the MAC address to the criteria and instructions when the automatic burning is running; receive the feedback information of the tested product, and compare the feedback information with the qualified criteria. When the feedback information is consistent with the qualified criteria, the burning is judged to be correct, otherwise the burning is exited;
[0009] 3) Automatic MAC address verification: Power off and restart the product under test to automatically verify the MAC address;
[0010] 4) MAC address writing status is uploaded to the MES system: the serial number and order number of the current tested product are sent to the MES system. After receiving the information, the MES system sets the MAC address writing status flag of the current tested product serial number of this order number to 1;
[0011] 5) MAC address burning status management: After the MAC address burning of all tested products is completed, the MES system checks the burning status of all tested products under the current order number. When the MAC address burning status flag of all tested products is 1, the MAC address burning management of all tested products is completed.
[0012] As a further improvement of the above technical solution:
[0013] In step 1), the MES system finds the drawing number through the serial number, and compares the drawing number with the automatic test sequence name. If the setting requirements are met, it will proceed to the next step, otherwise it will automatically exit the burning process.
[0014] In step 1), the MAC address digits, OUI, MAC quantity, the obtained MAC address content and the burning quantity are verified. If the requirements are met, proceed to the next step, otherwise the burning is automatically exited.
[0015] Before step 2), the working current of the product under test is detected. When the detected working current exceeds the normal working current, the programming is automatically exited.
[0016] The present invention also discloses a MAC address automatic burning system based on MES management, comprising:
[0017] The first module is used to obtain the serial number of the tested product and send it to the MES system to obtain its MAC address;
[0018] The second module is used to configure the test qualification criteria, input the specific instructions of the tested product according to the criteria, and distribute the MAC address to the criteria and instructions during the automatic burning operation; receive the feedback information of the tested product, and compare the feedback information with the qualified criteria. When the feedback information is consistent with the qualified criteria, it is judged that the burning is correct, otherwise the burning is exited;
[0019] The third module is used to power off and restart the product under test and automatically verify the MAC address;
[0020] The fourth module is used to send the serial number and order number of the current tested product to the MES system. After receiving the information, the MES system sets the MAC address burning status flag of the serial number of the current tested product with this order number to 1;
[0021] The fifth module is used for the MES system to check the burning status of all the tested products under the current order number after the MAC address burning of all the tested products is completed. When the MAC address burning status flag of all the tested products is 1, the MAC address burning of all the tested products is completed.
[0022] The present invention further discloses a MAC address automatic burning device based on MES management, comprising a scanner, a test machine, a Webservice server, an MES server and a power module, wherein the power module is used to provide power for the product under test; the test machine is connected to the power module and the product under test respectively; the scanner is used to scan the QR code or barcode on the product under test, and send the acquired serial number to the test machine, the test machine exchanges information with the MES server through the Webservice server, thereby obtaining the corresponding drawing number and MAC address information; the test machine is used to perform burning and burning inspection.
[0023] The present invention also discloses a computer-readable storage medium on which a computer program is stored. When the computer program is run by a processor, the steps of the automatic MAC address burning method based on MES management as described above are executed.
[0024] The present invention further discloses a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is run by the processor, the steps of the automatic MAC address burning method based on MES management as described above are executed.
[0025] Compared with the prior art, the advantages of the present invention are:
[0026] During the test, the present invention calls the MAC address automatic burning program corresponding to the drawing number, obtains the serial number information of the product after the program is run, uses the serial number to interact with MES to return the UUT drawing number and compare it with the automatic burning program name to confirm whether the program call is correct, confirms the number and legality of the MAC address, distributes it to the burning software according to the set requirements and executes the burning, the product is powered off and restarted, and after startup, it is confirmed whether it is saved in the UUT, and then the burning status is sent to the MES. The burning method of the present invention does not require manual intervention and monitoring to realize the entire burning process during the burning process, and automatically confirms the burning status and automatically checks the correctness of the burning, thereby realizing automatic burning, monitoring, verification, and automatic generation and management of MAC addresses.
[0027] The burning method of the present invention simplifies the work content of personnel. The operator only needs to connect the product and the equipment and click the "test" button to complete the work; the product consistency is improved, and the acquisition, burning and result confirmation of the MAC address are all completed by the automatic test software, which ensures the accuracy of writing; the MES end of the present invention uses a two-dimensional management mode: serial number + order number, so as to ensure that the MAC of the UUT will not be missed in various production states; the VI of the present invention uses a compatible design, which can cover various MAC address burning methods of different command sets; the present invention reduces the difficulty of MAC address burning and control, and greatly improves the efficiency of burning. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The present invention is a system structure diagram for realizing automatic burning of MAC addresses based on MES.
[0029] Figure 2 It is a flow chart of the programming method in an embodiment of the present invention.
[0030] Figure 3 The figure is a flow chart of the MAC address verification method in the embodiment of the present invention.
[0031] Figure 4 The figure is a flow chart of an embodiment of the method for automatically burning a MAC address in the present invention.
[0032] Figure 5 It is a flow chart of the MES verification method in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0034] like Figure 2 As shown, the MAC address automatic burning method based on MES management of this embodiment includes the steps of:
[0035] 1) Get MAC address: Get the serial number of the tested product and send it to the MES system to get its MAC address; the MES information system is the manufacturing execution system (MES for short), which aims to strengthen the execution function of the MRP plan and link the MRP plan with the on-site control of the workshop through the execution system. The on-site control here includes PLC program controllers, data collectors, barcodes, various measuring and testing instruments, robots, etc.; the MES system sets up the necessary interfaces to establish cooperative relationships with manufacturers who provide production site control facilities;
[0036] 2) Automatic MAC address burning: configure the test qualification criteria, input the specific instructions of the tested product according to the criteria, and distribute the MAC address to the criteria and instructions when the automatic burning is running; receive the feedback information of the tested product, and compare the feedback information with the qualified criteria. When the feedback information is consistent with the qualified criteria, the burning is judged to be correct, otherwise the burning is exited;
[0037] 3) Automatic MAC address verification: Power off and restart the product under test to automatically verify the MAC address;
[0038] 4) MAC address writing status is uploaded to the MES system: the serial number and order number of the current tested product are sent to the MES system. After receiving the information, the MES system sets the MAC address writing status flag of the current tested product serial number of this order number to 1;
[0039] 5) MAC address burning status management: After the MAC address burning of all tested products is completed, the MES system checks the burning status of all tested products under the current order number. When the MAC address burning status flag of all tested products is 1, the MAC address burning of all tested products is completed.
[0040] During the test, the present invention calls the MAC address automatic burning program corresponding to the drawing number, obtains the serial number information of the product through a scanning gun after the program is run, uses the serial number to interact with MES to return the UUT drawing number and compare it with the automatic burning program name to confirm whether the program call is correct, confirms the number and legality of the MAC address, distributes it to the burning software according to the set requirements and executes the burning, the product is powered off and restarted, and after startup, it is confirmed whether it is saved in the UUT, and then the burning status is sent to the MES. The burning method of the present invention does not require manual intervention and monitoring to realize the entire burning process during the burning process, and automatically confirms the burning status and automatically checks the correctness of the burning, thereby realizing automatic burning, monitoring, verification, and automatic generation and management of MAC addresses.
[0041] The burning method of the present invention simplifies the work content of personnel. The operator only needs to connect the product and the equipment and click the "test" button to complete the work; the product consistency is improved, and the acquisition, burning and result confirmation of the MAC address are all completed by the automatic test software, which ensures the accuracy of writing; the MES end of the present invention uses a two-dimensional management mode: serial number + order number, so as to ensure that the MAC of the UUT will not be missed in various production states; the VI of the present invention uses a compatible design, which can cover various MAC address burning methods of different command sets; the present invention reduces the difficulty of MAC address burning and control, and greatly improves the efficiency of burning.
[0042] In a specific embodiment, in step 1), the MES system finds the drawing number through the serial number, and the MES system compares the drawing number with the automatic test sequence name. If the setting requirements are met, it proceeds to the next step, otherwise it automatically exits the burning process.
[0043] In a specific embodiment, in step 1), the MAC address digits, OUI, MAC quantity, the obtained MAC address content and the burning quantity are verified. If the requirements are met, the next step is entered, otherwise the burning is automatically exited.
[0044] like Figure 1As shown, the present invention also discloses a MAC address automatic burning device based on MES management, including a scanner, a test machine, a Webservice server, an MES server and a power module, the power module is used to provide power for the product under test; the test machine is connected to the power module and the product under test respectively; the scanner is used to scan the QR code or barcode on the product under test, and send the acquired serial number to the test machine, the test machine exchanges information with the MES server through the Webservice server, so as to obtain the corresponding drawing number and MAC address information; the acquired information is used to confirm the program call, MAC legitimacy, and MAC distribution to the automatic test program, and then execute burning and burning check, and finally the MES checks the burning status of each UUT to confirm whether the UUT can flow to the next process.
[0045] The above invention is further described below in conjunction with a specific embodiment:
[0046] 1. Verification of the drawing number of the product under test (UUT):
[0047] In order to correctly call the automatic test sequence, a scanner is used to obtain the serial number of the UUT, and the serial number is sent to the MES system to retrieve the drawing number. The system compares the drawing number with the automatic test sequence name. If the set requirements are not met, the burning will be automatically exited;
[0048] 2. MAC address acquisition, format and quantity verification:
[0049] In order to achieve the correct MAC address burning, the automatic burning program obtains the MAC address from the MES according to the serial number. The test software verifies the MAC address digits, OUI, the MAC number set by the test software, the obtained MAC address content and the burning number. If the setting requirements are not met, the burning is automatically exited. Figure 3 As shown;
[0050] 3. Power supply confirmation:
[0051] In order to ensure manual wiring and product safety, the product power supply voltage and normal working current are configured in the automatic test software according to different products. If the normal working current is exceeded, the power will be automatically cut off and the burning will be exited;
[0052] 4. MAC address automatic burning:
[0053] In order to realize automatic burning of MAC addresses, before burning, it is necessary to configure the test qualification criteria in the automatic test sequence, input the product-specific instructions according to the criteria, and the delay before the instruction execution. When the automatic burning program is running, the MAC address received from the MES will be distributed to the criteria and instructions. After the UUT is powered on, it will execute one by one according to the configuration of the automatic test program. When a piece of feedback information from the UUT does not match the qualified criteria, the UUT will be powered off and automatically exit the burning. Figure 4 As shown;
[0054] 5. Automatic verification of MAC address:
[0055] To ensure that the MAC address is verified correctly, the product needs to be tested after powering off and restarting. After restarting, the method is similar to writing, except that the writing command is replaced by the reading command;
[0056] 6. MAC address writing status is uploaded to MES:
[0057] In order to ensure that no MAC address is missed, the automatic test program interacts with the MES system and sends the serial number and order number of the current UUT to MES. After receiving the information, MES sets the MAC address burning status flag of the current UUT serial number under this order number to 1.
[0058] 7. MAC address burning status management:
[0059] After the MAC address burning of all UUTs is completed, when the MES system reports the process, MES will confirm the MAC address burning according to whether the current UUT is configured with a MAC address (MAC>0). When the MAC address burning status of all UUTs under the current order is 1, the operation is completed and reported. Otherwise, a prompt "MAC address burning is missing" will be popped up and the report will fail.
[0060] The present invention also discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the automatic MAC address burning method based on MES management as described above are executed. The present invention further discloses a computer device, including a memory and a processor, and a computer program is stored on the memory, and when the computer program is run by the processor, the steps of the automatic MAC address burning method based on MES management as described above are executed. The present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. The memory can be used to store computer programs and / or modules. The processor implements various functions by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices, etc.
[0061] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A method for automatically burning MAC addresses based on MES management, characterized in that: Includes steps: 1) Obtain MAC address: obtain the serial number of the product under test and send it to the MES system to obtain its MAC address; 2) Automatic MAC address burning: configure the test qualification criteria, input the specific instructions of the tested product according to the criteria, and distribute the MAC address to the criteria and instructions when the automatic burning is running; receive the feedback information of the tested product, and compare the feedback information with the qualified criteria. When the feedback information is consistent with the qualified criteria, the burning is judged to be correct, otherwise the burning is exited; 3) Automatic MAC address verification: Power off and restart the product under test to automatically verify the MAC address; 4) MAC address writing status is uploaded to the MES system: the serial number and order number of the current tested product are sent to the MES system. After receiving the information, the MES system sets the MAC address writing status flag of the current tested product serial number of this order number to 1; 5) MAC address burning status management: After the MAC address burning of all tested products is completed, the MES system checks the burning status of all tested products under the current order number. When the MAC address burning status flag of all tested products is 1, the MAC address burning management of all tested products is completed; In step 1), the MES system finds the drawing number through the serial number, and compares the drawing number with the automatic test sequence name. If it meets the set requirements, it will proceed to the next step, otherwise it will automatically exit the burning; In step 1), the MAC address digits, OUI, MAC quantity, the obtained MAC address content and the burning quantity are verified. If the requirements are met, proceed to the next step, otherwise the burning is automatically exited; Before step 2), the working current of the tested product is detected. When the detected working current exceeds the normal working current, the programming is automatically exited.
2. A MAC address automatic burning system based on MES management, used to execute the steps of the MAC address automatic burning method based on MES management as claimed in claim 1, characterized in that: include: The first module is used to obtain the serial number of the tested product and send it to the MES system to obtain its MAC address; The second module is used to configure the test qualification criteria, input the specific instructions of the tested product according to the criteria, and distribute the MAC address to the criteria and instructions during the automatic burning operation; receive the feedback information of the tested product, and compare the feedback information with the qualified criteria. When the feedback information is consistent with the qualified criteria, it is judged that the burning is correct, otherwise the burning is exited; The third module is used to power off and restart the product under test and automatically verify the MAC address; The fourth module is used to send the serial number and order number of the current tested product to the MES system. After receiving the information, the MES system sets the MAC address burning status flag of the serial number of the current tested product with this order number to 1; The fifth module is used for the MES system to check the burning status of all the tested products under the current order number after the MAC address burning of all the tested products is completed. When the MAC address burning status flag of all the tested products is 1, the MAC address burning management of all the tested products is completed.
3. A MAC address automatic burning device based on MES management, used to execute the steps of the MAC address automatic burning method based on MES management as claimed in claim 1, characterized in that: It includes a scanner, a test machine, a Webservice server, an MES server and a power module. The power module is used to provide power for the product under test; the test machine is connected to the power module and the product under test respectively; the scanner is used to scan the QR code or barcode on the product under test and send the acquired serial number to the test machine. The test machine exchanges information with the MES server through the Webservice server to obtain the corresponding drawing number and MAC address information; the test machine is used to perform burning and burning inspection.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the method for automatically burning a MAC address based on MES management as claimed in claim 1 are executed.
5. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the steps of the method for automatically burning a MAC address based on MES management as claimed in claim 1 are executed.
