CN107205062B - Method for downloading MAC address - Google Patents

Method for downloading MAC address Download PDF

Info

Publication number
CN107205062B
CN107205062B CN201710612239.8A CN201710612239A CN107205062B CN 107205062 B CN107205062 B CN 107205062B CN 201710612239 A CN201710612239 A CN 201710612239A CN 107205062 B CN107205062 B CN 107205062B
Authority
CN
China
Prior art keywords
mac address
serial number
mac
server
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710612239.8A
Other languages
Chinese (zh)
Other versions
CN107205062A (en
Inventor
刘旺
王艺宏
李甜
廖海英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vanstone Electronic Beijing Co Ltd
Original Assignee
Vanstone Electronic Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vanstone Electronic Beijing Co Ltd filed Critical Vanstone Electronic Beijing Co Ltd
Priority to CN201710612239.8A priority Critical patent/CN107205062B/en
Publication of CN107205062A publication Critical patent/CN107205062A/en
Application granted granted Critical
Publication of CN107205062B publication Critical patent/CN107205062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method for downloading an MAC address, which comprises the following steps: generating an MAC configuration file; generating an MAC address file; the MAC address file consists of a plurality of specific SN serial numbers-MAC addresses; the server prints each SN serial number as a bar code and pastes the bar code on a terminal machine of a corresponding machine type; the server searches the MAC address file according to the rule, obtains the MAC address corresponding to the SN serial number, and downloads the MAC address to the terminal after verifying the uniqueness and the validity of the MAC address. Has the advantages that: the SN serial number and MAC address downloading method is simplified, the validity and uniqueness of the SN serial number and the MAC address are automatically judged through a server, errors caused by a manual judgment link are reduced, and the MAC address fool-proofing is effectively realized, namely: the problems of MAC address repetition, discontinuity and the like are prevented, and the uniqueness of the SN serial number and the MAC address of the factory terminal is ensured.

Description

Method for downloading MAC address
Technical Field
The invention belongs to the technical field of MAC address downloading, and particularly relates to a downloading method of an MAC address.
Background
When a manufacturer produces a batch of terminals, which may be POS terminals, it must be ensured that a unique MAC address is assigned to each shipped terminal, otherwise the terminals will not operate properly. In the prior art, no efficient method is available to ensure the uniqueness of the MAC address assigned to the terminal.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method for downloading the MAC address, which can effectively solve the problems.
The technical scheme adopted by the invention is as follows:
the invention provides a method for downloading an MAC address, which comprises the following steps:
step 1, a server sets an operation authority for generating an MAC configuration file; when the server receives an operation request for generating the MAC configuration file, firstly pushing a text box for inputting a management password to an interface, verifying whether the password returned by the text box has a corresponding operation authority, and if so, executing the step 2;
step 2, the server pushes an SN text box and an MAC text box to an interface, and the SN text box and the MAC text box allow writing operation; the SN text box includes: a model hardware number, a starting serial number and an ending serial number; the MAC text box comprises: manufacturer code, starting number of MAC address and ending number of MAC address;
step 3, after the SN text box and the MAC text box are written with corresponding information, the server generates an MAC configuration file; the MAC configuration file is used for recording configuration information of SN serial numbers and configuration information of MAC addresses; the configuration information of the SN sequence number comprises: a model hardware number, a starting serial number and an ending serial number; the configuration information of the MAC address includes: manufacturer code, starting number of MAC address and ending number of MAC address;
step 4, the server obtains a plurality of specific SN serial numbers according to the MAC configuration file obtained in the step 3 in a mode that the SN serial numbers are sequentially increased from the initial serial numbers, and obtains a plurality of specific MAC addresses in a mode that the MAC addresses are sequentially increased from the initial serial numbers of the MAC addresses; the server compares the number of SN serial numbers with the number of MAC addresses, judges whether the numbers are the same, and sends out prompt information of 'data matching error' if the numbers are not the same; if the SN serial numbers are the same as the MAC addresses, according to the principle that each SN serial number corresponds to each MAC address one by one, forming a group of the 1 st SN serial number and the 1 st MAC address, forming a group of the 2 nd SN serial number and the 2 nd MAC address, and so on, wherein the SN serial numbers are sequentially increased from the 1 st to the back, and the MAC addresses are sequentially increased from the 1 st to the back, so that an MAC address file is generated; the MAC address file consists of a plurality of specific SN serial numbers-MAC addresses; each SN serial number-MAC address consists of a specific SN serial number, specific MAC address information and a download time attribute; wherein, if the SN serial number-MAC address is not downloaded by the terminal, the download time attribute is as follows: an un-downloaded attribute; if the SN serial number-MAC address is downloaded by the terminal, the attribute of the download time is as follows: recording specific downloading time information;
step 5, the server prints each SN serial number as a bar code and pastes the bar code on a terminal machine of a corresponding machine type;
step 6, the server scans a bar code on a certain terminal to obtain an SN serial number carried by the bar code; then, the server searches the MAC address file, judges whether the SN serial number carried by the bar code exists in the MAC address file, if the SN serial number does not exist in the MAC address file, the SN serial number is an invalid SN serial number, the operation is terminated, and the issuing of the MAC address to the terminal is forbidden; if the terminal equipment exists, further positioning the SN serial number carried by the bar code in the MAC address file, then judging the download time attribute of the SN serial number carried by the bar code, if the download time attribute records specific download time information and indicates that the corresponding SN serial number-MAC address is downloaded by a certain terminal equipment, terminating the operation, and forbidding sending the MAC address to the terminal equipment of the operation; if the download time attribute is the attribute which is not downloaded, further judging whether the specific download time information is recorded in each row in front of the row of the SN serial number carried by the bar code, if not, terminating the operation, and forbidding to issue the MAC address to the terminal of the operation; if yes, executing step 7;
step 7, the server issues the SN serial number-MAC address of the row where the SN serial number carried by the bar code is located to the terminal of the current operation; the terminal machine of the operation successfully obtains the configuration information of the SN serial number-MAC address, and then the terminal machine of the operation returns a response message of successful downloading to the server;
and 8, when receiving the response message, the server takes the time of receiving the response message as the downloading time, updates the downloading time attribute of the row in which the SN serial number carried by the bar code is positioned, and records the specific downloading time to the corresponding row.
Preferably, in step 6, the server scans a barcode on a certain terminal to obtain an SN serial number carried by the barcode, which specifically includes: the server scans the bar code on the terminal for the first time to obtain a first SN serial number; then, the server scans the bar code on the terminal for the second time to obtain a second SN serial number; the server judges whether the first SN serial number and the second SN serial number are the same or not, if not, the server sends error information of 'secondary scanning verification failure', simultaneously clears scanned SN serial number information and waits for rescanning; and if the two SN serial numbers are the same, the scanned SN serial number is the SN serial number carried by the finally obtained bar code.
Preferably, in step 6, the server searches the MAC address file, and determines whether an SN serial number carried by the barcode exists in the MAC address file, specifically:
and the server searches the MAC address file by a binary search method and judges whether the SN serial number carried by the bar code exists in the MAC address file.
Preferably, after step 8, the method further comprises:
and 9, pre-establishing a log file by the server, updating the log file by the server every time when the SN serial number-MAC address is successfully downloaded to the corresponding terminal, and recording the latest successfully downloaded SN serial number-MAC address into the log file.
The method for downloading the MAC address provided by the invention has the following advantages that:
the invention simplifies the download method of the SN serial number and the MAC address, automatically judges the validity and the uniqueness of the SN serial number and the MAC address through the server, reduces errors caused by a manual judgment link, and effectively realizes the fool-proofing of the MAC address, namely: the problems of MAC address repetition, discontinuity and the like are prevented, and the uniqueness of the SN serial number and the MAC address of the factory terminal is ensured.
Drawings
Fig. 1 is a schematic flowchart of a method for downloading an MAC address according to the present invention;
FIG. 2 is a schematic diagram of an SN text box and an MAC text box;
FIG. 3 is a diagram of a specific interface of a MAC configuration file;
FIG. 4 is a diagram of a specific interface of the MAC address file;
fig. 5 is a schematic diagram of a specific interface of a log file.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a method for downloading an MAC address, which comprises the following steps as shown in figure 1:
step 1, a server sets an operation authority for generating an MAC configuration file; when the server receives an operation request for generating the MAC configuration file, firstly pushing a text box for inputting a management password to an interface, verifying whether the password returned by the text box has a corresponding operation authority, and if so, executing the step 2;
that is, the user right is set when the MAC configuration file is generated, the operation of generating the MAC configuration file can be performed only by inputting a correct management password, and after the correct management password is input, the SN text box and the MAC text box related to step 2 can be written.
Step 2, the server pushes an SN text box and an MAC text box to an interface, and the SN text box and the MAC text box allow writing operation; the SN text box includes: a model hardware number, a starting serial number and an ending serial number; the MAC text box comprises: manufacturer code, starting number of MAC address and ending number of MAC address;
as shown in fig. 2, a diagram of SN text boxes and MAC text boxes is shown.
Step 3, after the SN text box and the MAC text box are written with corresponding information, the server generates an MAC configuration file; the MAC configuration file is used for recording configuration information of SN serial numbers and configuration information of MAC addresses; the configuration information of the SN sequence number comprises: a model hardware number, a starting serial number and an ending serial number; the configuration information of the MAC address includes: manufacturer code, starting number of MAC address and ending number of MAC address;
fig. 3 is a schematic diagram of a specific interface of the MAC configuration file.
Step 4, the server obtains a plurality of specific SN serial numbers according to the MAC configuration file obtained in the step 3 in a mode that the SN serial numbers are sequentially increased from the initial serial numbers, and obtains a plurality of specific MAC addresses in a mode that the MAC addresses are sequentially increased from the initial serial numbers of the MAC addresses; the server compares the number of SN serial numbers with the number of MAC addresses, judges whether the numbers are the same, and sends out prompt information of 'data matching error' if the numbers are not the same; if the SN serial numbers are the same as the MAC addresses, according to the principle that each SN serial number corresponds to each MAC address one by one, forming a group of the 1 st SN serial number and the 1 st MAC address, forming a group of the 2 nd SN serial number and the 2 nd MAC address, and so on, wherein the SN serial numbers are sequentially increased from the 1 st to the back, and the MAC addresses are sequentially increased from the 1 st to the back, so that an MAC address file is generated; the MAC address file consists of a plurality of specific SN serial numbers-MAC addresses; each SN serial number-MAC address consists of a specific SN serial number, specific MAC address information and a download time attribute; wherein, if the SN serial number-MAC address is not downloaded by the terminal, the download time attribute is as follows: an un-downloaded attribute; if the SN serial number-MAC address is downloaded by the terminal, the attribute of the download time is as follows: recording specific downloading time information;
fig. 4 is a schematic diagram of a specific interface of the MAC address file.
In practical application, the SN serial number is composed of a 5-bit model hardware number and a 6-bit code, and the SN serial numbers of a batch of orders are sequentially increased within a number segment, and according to the production order information, hardware configuration information of relevant models and the start number and the end number of a sequence number segment are input, and the SN serial numbers are generated by sequentially increasing 1 from the start number. For the MAC address, it is made up of 6 bit manufacturer code and 6 bit code, SN serial number and MAC address are all uniqueness, each SN serial number corresponds to a MAC address, and in a batch of orders, SN serial number and MAC address are all increased progressively, so, according to the production order information, input the hardware configuration information of the relevant model and the start number, end number of the sequence number segment, and the start number and end number of the manufacturer code, MAC address, will increase 1 in turn from the start number to generate this batch of SN serial number-MAC addresses, and each SN serial number and MAC address correspond one by one, in the MAC file record the SN serial number, MAC address and download time of this batch of orders, when SN serial number and MAC address have not downloaded to the terminal machine, the time is shown as "+".
Step 5, the server prints each SN serial number as a bar code and pastes the bar code on a terminal machine of a corresponding machine type;
step 6, the server scans a bar code on a certain terminal to obtain an SN serial number carried by the bar code; then, the server searches the MAC address file, judges whether the SN serial number carried by the bar code exists in the MAC address file, if the SN serial number does not exist in the MAC address file, the SN serial number is an invalid SN serial number, the operation is terminated, and the issuing of the MAC address to the terminal is forbidden; if the terminal equipment exists, further positioning the SN serial number carried by the bar code in the MAC address file, then judging the download time attribute of the SN serial number carried by the bar code, if the download time attribute records specific download time information and indicates that the corresponding SN serial number-MAC address is downloaded by a certain terminal equipment, terminating the operation, and forbidding sending the MAC address to the terminal equipment of the operation; if the download time attribute is the attribute which is not downloaded, further judging whether the specific download time information is recorded in each row in front of the row of the SN serial number carried by the bar code, if not, terminating the operation, and forbidding to issue the MAC address to the terminal of the operation; if yes, executing step 7;
in this step, the server scans the barcode on a certain terminal to obtain the SN serial number carried by the barcode specifically as follows: the server scans the bar code on the terminal for the first time to obtain a first SN serial number; then, the server scans the bar code on the terminal for the second time to obtain a second SN serial number; the server judges whether the first SN serial number and the second SN serial number are the same or not, if not, the server sends error information of 'secondary scanning verification failure', simultaneously clears scanned SN serial number information and waits for rescanning; and if the two SN serial numbers are the same, the scanned SN serial number is the SN serial number carried by the finally obtained bar code.
In practical application, when the server is opened, the server can create a thread, the thread can open the serial port 2 to wait for the scanning gun to be accessed for bar code scanning, when the server is not accessed to the scanning gun, the server can prompt that whether the scanning gun is connected or not is checked and set as the serial port 2, and when the scanning gun is accessed, the server can wait for scanning.
Because the bar code is possibly bad, the error rate probability of a scanning gun is very low, but the scanned number is possibly inconsistent with the actual bar code, in order to ensure that the scanned serial number is real and reliable, the invention needs to scan the serial number bar code for 2 times; after each scanning, the bar code data received by the current serial port is read, the bar code data is uploaded to a tool (the current download serial number) text box, two lines of data in the text box are compared before downloading, if the information scanned for 2 times is inconsistent, the server can prompt error information of 'secondary scanning verification failure', meanwhile, the scanned serial number information is cleared, the rescanning is waited, and the fact that the serial number of the scanned server is consistent with the printing of the real object pasted by the terminal is guaranteed through the method.
If a certain bar code is difficult to scan, the current bar code number can be input in a manual input mode, but at the moment, a person with related authority can perform the operation, and only the correct password is input, the operation can be manually modified. Before downloading each time, the hardware version information is matched, if the hardware version is wrong, a 'machine hardware version number is wrong, and an administrator is required to be contacted'.
In the step, in the step of searching the MAC address file by the server, a binary search method is adopted for data search, so that the search efficiency can be effectively improved, and the time for searching is reduced.
Step 7, the server issues the SN serial number-MAC address of the row where the SN serial number carried by the bar code is located to the terminal of the current operation; the terminal machine of the operation successfully obtains the configuration information of the SN serial number-MAC address, and then the terminal machine of the operation returns a response message of successful downloading to the server;
and 8, when receiving the response message, the server takes the time of receiving the response message as the downloading time, updates the downloading time attribute of the row in which the SN serial number carried by the bar code is positioned, and records the specific downloading time to the corresponding row.
After step 8, further comprising:
and 9, pre-establishing a log file by the server, updating the log file by the server every time when the SN serial number-MAC address is successfully downloaded to the corresponding terminal, and recording the latest successfully downloaded SN serial number-MAC address into the log file. Fig. 5 is a schematic diagram of a specific interface of a log file.
Steps 6-9 can be briefly summarized as: since the MAC address and the SN sequence number are in one-to-one correspondence and are both generated incrementally, the validity of the MAC address is governed by judging the validity of the SN address.
After the SN serial number is input every time, the line where the current SN serial number is located is read in the file, then the MAC address in the current line is extracted, and the MAC address is uploaded to a text box (current downloading MAC) above the tool. Before downloading each time, the hardware version information is matched, if the hardware version is wrong, a 'machine hardware version number is wrong, and an administrator is required to be contacted'.
If the SN serial number and the MAC address which need to be downloaded currently meet the requirements, the server and the terminal can be enabled to download through instruction interaction, after the downloading is successful, the prompting information of the relevant success is generated, the relevant log file is generated, the SN serial number and the MAC address which are downloaded currently are recorded in the file, and the concrete time of the downloading currently is filled in the MAC address file.
The method for downloading the MAC address has the following advantages that:
the invention simplifies the download method of the SN serial number and the MAC address, automatically judges the validity and the uniqueness of the SN serial number and the MAC address through the server, reduces errors caused by a manual judgment link, and effectively realizes the fool-proofing of the MAC address, namely: the problems of MAC address repetition, discontinuity and the like are prevented, and the uniqueness of the SN serial number and the MAC address of the factory terminal is ensured.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (3)

1. A method for downloading a MAC address, comprising the steps of:
step 1, a server sets an operation authority for generating an MAC configuration file; when the server receives an operation request for generating the MAC configuration file, firstly pushing a text box for inputting a management password to an interface, verifying whether the password returned by the text box has a corresponding operation authority, and if so, executing the step 2;
step 2, the server pushes an SN text box and an MAC text box to an interface, and the SN text box and the MAC text box allow writing operation; the SN text box includes: a model hardware number, a starting serial number and an ending serial number; the MAC text box comprises: manufacturer code, starting number of MAC address and ending number of MAC address;
step 3, after the SN text box and the MAC text box are written with corresponding information, the server generates an MAC configuration file; the MAC configuration file is used for recording configuration information of SN serial numbers and configuration information of MAC addresses; the configuration information of the SN sequence number comprises: a model hardware number, a starting serial number and an ending serial number; the configuration information of the MAC address includes: manufacturer code, starting number of MAC address and ending number of MAC address;
step 4, the server obtains a plurality of specific SN serial numbers according to the MAC configuration file obtained in the step 3 in a mode that the SN serial numbers are sequentially increased from the initial serial numbers, and obtains a plurality of specific MAC addresses in a mode that the MAC addresses are sequentially increased from the initial serial numbers of the MAC addresses; the server compares the number of SN serial numbers with the number of MAC addresses, judges whether the numbers are the same, and sends out prompt information of 'data matching error' if the numbers are not the same; if the SN serial numbers are the same as the MAC addresses, according to the principle that each SN serial number corresponds to each MAC address one by one, forming a group of the 1 st SN serial number and the 1 st MAC address, forming a group of the 2 nd SN serial number and the 2 nd MAC address, and so on, wherein the SN serial numbers are sequentially increased from the 1 st to the back, and the MAC addresses are sequentially increased from the 1 st to the back, so that an MAC address file is generated; the MAC address file consists of a plurality of specific SN serial numbers-MAC addresses; each SN serial number-MAC address consists of a specific SN serial number, specific MAC address information and a download time attribute; wherein, if the SN serial number-MAC address is not downloaded by the terminal, the download time attribute is as follows: an un-downloaded attribute; if the SN serial number-MAC address is downloaded by the terminal, the attribute of the download time is as follows: recording specific downloading time information;
the SN serial numbers are composed of 5-bit machine type hardware numbers and 6-bit codes, the SN serial numbers of a batch of orders are sequentially increased in a number segment, hardware configuration information of relevant machine types and the starting numbers and the ending numbers of sequence number segments are input according to production order information, and the SN serial numbers are generated by sequentially increasing 1 from the starting numbers; for the MAC address, it is made up of 6 bit manufacturer code and 6 bit code, SN serial number and MAC address are all uniqueness, each SN serial number corresponds to a MAC address, and in a batch of orders, SN serial number and MAC address are all increased progressively, therefore, according to the production order information, input the hardware configuration information of the relevant model and the start number, end number of the sequence number segment, and the start number and end number of the manufacturer code, MAC address, will increase 1 in turn from the start number to generate this batch of SN serial number-MAC addresses, and each SN serial number and MAC address correspond one by one, all SN serial numbers, MAC addresses and download time of this batch of orders are recorded in the MAC file, when SN serial number and MAC address have not downloaded to the terminal machine, the time is shown as "+;
step 5, the server prints each SN serial number as a bar code and pastes the bar code on a terminal machine of a corresponding machine type;
step 6, the server scans a bar code on a certain terminal to obtain an SN serial number carried by the bar code; then, the server searches the MAC address file, judges whether the SN serial number carried by the bar code exists in the MAC address file, if the SN serial number does not exist in the MAC address file, the SN serial number is an invalid SN serial number, the operation is terminated, and the issuing of the MAC address to the terminal is forbidden; if the terminal equipment exists, further positioning the SN serial number carried by the bar code in the MAC address file, then judging the download time attribute of the SN serial number carried by the bar code, if the download time attribute records specific download time information and indicates that the corresponding SN serial number-MAC address is downloaded by a certain terminal equipment, terminating the operation, and forbidding sending the MAC address to the terminal equipment of the operation; if the download time attribute is the attribute which is not downloaded, further judging whether the specific download time information is recorded in each row in front of the row of the SN serial number carried by the bar code, if not, terminating the operation, and forbidding to issue the MAC address to the terminal of the operation; if yes, executing step 7;
step 7, the server issues the SN serial number-MAC address of the row where the SN serial number carried by the bar code is located to the terminal of the current operation; the terminal machine of the operation successfully obtains the configuration information of the SN serial number-MAC address, and then the terminal machine of the operation returns a response message of successful downloading to the server;
step 8, when receiving the response message, the server takes the time of receiving the response message as the downloading time, updates the downloading time attribute of the row where the SN serial number carried by the bar code is located, and records the specific downloading time to the corresponding row;
in step 6, the server scans a barcode on a certain terminal to obtain an SN serial number carried by the barcode, which specifically includes: the server scans the bar code on the terminal for the first time to obtain a first SN serial number; then, the server scans the bar code on the terminal for the second time to obtain a second SN serial number; the server judges whether the first SN serial number and the second SN serial number are the same or not, if not, the server sends error information of 'secondary scanning verification failure', simultaneously clears scanned SN serial number information and waits for rescanning; if the two SN serial numbers are the same, the scanned SN serial number is the SN serial number carried by the finally obtained bar code;
because the MAC address and the SN serial number are in one-to-one correspondence and are generated in an incremental mode, the validity of the MAC address is controlled by judging the validity of the SN address;
after the SN serial number is input every time, the line where the current SN serial number is located is read in a file, then the MAC address in the current line is extracted, and the MAC address is uploaded to a text box (current downloading MAC) on a tool; before downloading each time, the hardware version information is matched, if the hardware version is wrong, a 'machine hardware version number is wrong, and an administrator is required to be contacted';
if the SN serial number and the MAC address which need to be downloaded currently meet the requirements, the server and the terminal can be enabled to download through instruction interaction, after the downloading is successful, the prompting information of the relevant success is generated, the relevant log file is generated, the SN serial number and the MAC address which are downloaded currently are recorded in the file, and the concrete time of the downloading currently is filled in the MAC address file.
2. The method for downloading the MAC address according to claim 1, wherein in step 6, the server searches the MAC address file, and determines whether an SN serial number carried by the barcode exists in the MAC address file, specifically:
and the server searches the MAC address file by a binary search method and judges whether the SN serial number carried by the bar code exists in the MAC address file.
3. The method for downloading the MAC address according to claim 1, further comprising, after the step 8:
and 9, pre-establishing a log file by the server, updating the log file by the server every time when the SN serial number-MAC address is successfully downloaded to the corresponding terminal, and recording the latest successfully downloaded SN serial number-MAC address into the log file.
CN201710612239.8A 2017-07-25 2017-07-25 Method for downloading MAC address Active CN107205062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612239.8A CN107205062B (en) 2017-07-25 2017-07-25 Method for downloading MAC address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612239.8A CN107205062B (en) 2017-07-25 2017-07-25 Method for downloading MAC address

Publications (2)

Publication Number Publication Date
CN107205062A CN107205062A (en) 2017-09-26
CN107205062B true CN107205062B (en) 2020-05-19

Family

ID=59912088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612239.8A Active CN107205062B (en) 2017-07-25 2017-07-25 Method for downloading MAC address

Country Status (1)

Country Link
CN (1) CN107205062B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712518A (en) * 2018-05-29 2018-10-26 郑州云海信息技术有限公司 A kind of distribution method and system of end product MAC Address
CN112243042B (en) * 2019-07-16 2023-04-18 广州汽车集团股份有限公司 Distribution method, secure communication method, detection device, gateway module and system
CN112243043B (en) * 2019-07-16 2023-04-18 广州汽车集团股份有限公司 Distribution method, secure communication method, detection device, gateway module and system
CN110471676B (en) * 2019-08-22 2023-07-18 深圳市讯盾科技有限公司 MAC address burning method and system
CN111460843B (en) * 2020-04-02 2023-09-05 福州符号信息科技有限公司 Method and device for remotely deploying and controlling bar code scanning equipment
CN112187966B (en) * 2020-09-17 2023-04-28 浪潮(北京)电子信息产业有限公司 Acceleration card, MAC address generation method and device thereof and storage medium
CN112331326A (en) * 2020-11-05 2021-02-05 重庆火后草科技有限公司 Distribution method of identification codes of pressure sensor modules in basic health monitoring system
CN113836575A (en) * 2021-08-18 2021-12-24 青岛中科英泰商用系统股份有限公司 Equipment information write-in control method and system thereof
CN113778467A (en) * 2021-08-30 2021-12-10 深圳市拔超科技有限公司 Burning device for MAC address and SN sequence of equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363423B1 (en) * 1999-04-26 2002-03-26 3Com Corporation System and method for remotely generating, assigning and updating network adapter card in a computing system
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN105430118A (en) * 2015-12-28 2016-03-23 广州慧睿思通信息科技有限公司 MAC address generation method and apparatus
CN106920023A (en) * 2015-12-28 2017-07-04 北京智芯微电子科技有限公司 A kind of chip production issues management method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10231303B2 (en) * 2014-10-22 2019-03-12 Semisilicon Technology Corp. Light emitting diode lamp receiving contactless burning signal and system for the same and burning address method for the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363423B1 (en) * 1999-04-26 2002-03-26 3Com Corporation System and method for remotely generating, assigning and updating network adapter card in a computing system
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN105430118A (en) * 2015-12-28 2016-03-23 广州慧睿思通信息科技有限公司 MAC address generation method and apparatus
CN106920023A (en) * 2015-12-28 2017-07-04 北京智芯微电子科技有限公司 A kind of chip production issues management method and system

Also Published As

Publication number Publication date
CN107205062A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN107205062B (en) Method for downloading MAC address
CN106021497B (en) Database access password management method
CN107396360B (en) Block verification method and device
CN107820603A (en) A kind of firmware update and controller
CN104811484B (en) FOTA upgrade method and device
CN107168739A (en) POS, POS wireless communication module firmware upgrade method and device
CN104182779A (en) Method and equipment for programming product information
CN105072608B (en) A kind of method and device of administrative authentication token
CN101022473B (en) Method for automatic, identifying plate card configration and generating local data in exchanger
CN105068829A (en) Feature data burning method, apparatus and system
CN105094959B (en) It is a kind of that the method and apparatus of reconciliation file are provided
CN112445160B (en) Automatic generation method and device of ECU configuration code
CN110007941A (en) A kind of the MCU firmware and upgrade method of Intelligent refuse classification recovery system
CN106790756A (en) Distribution terminal MAC address automatic generation method and system
CN111489156A (en) Transaction method based on block chain, electronic device and readable storage medium
CN114518897A (en) Remote upgrading method and system for communication module
CN114884762B (en) Broadband access method, system, computer equipment and storage medium
CN113836575A (en) Equipment information write-in control method and system thereof
CN103796193B (en) The PRI parameter automatic configuration methods and system of a kind of cdma mobile terminal
CN116302020A (en) FPGA logic program upgrading method, device, equipment and medium
CN111726247A (en) Electronic lock firmware updating method and device, electronic lock and storage medium
CN115174389A (en) Upgrading method, device, equipment and readable storage medium
CN115982735A (en) Method, device and storage medium for automatically processing production data
CN115766439A (en) KVM device batch upgrading method and device and electronic device
US7600044B2 (en) System and method for networked endpoint registration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant