CN1767545A - Method for obtaining device MAC address - Google Patents

Method for obtaining device MAC address Download PDF

Info

Publication number
CN1767545A
CN1767545A CN 200410086134 CN200410086134A CN1767545A CN 1767545 A CN1767545 A CN 1767545A CN 200410086134 CN200410086134 CN 200410086134 CN 200410086134 A CN200410086134 A CN 200410086134A CN 1767545 A CN1767545 A CN 1767545A
Authority
CN
China
Prior art keywords
mac address
physical location
device mac
address
unit
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.)
Granted
Application number
CN 200410086134
Other languages
Chinese (zh)
Other versions
CN1767545B (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.)
Nanjing Kang Shisheng Computer Technology Co ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200410086134 priority Critical patent/CN1767545B/en
Publication of CN1767545A publication Critical patent/CN1767545A/en
Application granted granted Critical
Publication of CN1767545B publication Critical patent/CN1767545B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This invention discloses a method for obtaining the MAC address of a device including: 1, designing the position ID of a physical position ID unit of a device, 2, turning on the device, 3, fetching the physical position ID information by a hardware logic and writing it in a register, 4, a MAC address generating unit takes the plant number of the device as the prefix and combines it with the physical position ID information in the register to generate the MAC address of the device, 5, the generating unit reports the generated address to the address resource management unit of the system to register it and judges if there is conflict to the MAC address, 6, returning to the first to reset the physical position ID if so, otherwise, it's over, which gets the MAC address when a device is turned on automatically.

Description

A kind of method of obtaining device mac address
Technical field
The present invention relates to the equipment addressing of communication, electronic applications, in particular to a kind of method of obtaining device mac address.
Background technology
In the network based on the IP communication, the network equipment must dispose MAC Address just can carry out normal communication.Current at present device mac address production method is: the manufacturer that produces the network equipment buys one section MAC Address to the IEEE application, and MAC Address is burnt in the equipment, just can obtain the MAC Address of oneself after the device power by the content that reads burning.Because MAC Address must be unique, cause the program that in device fabrication, needs burning different, this just is unfavorable for large-scale production, and in a single day MAC Address is solidificated in the equipment in addition, and just inconvenience is revised, and lacks flexibility.
Summary of the invention
Purpose of the present invention is exactly the method for obtaining device mac address that helps the applying flexible of large-scale production.
A kind of method of obtaining device mac address is characterized in that comprising the following steps:
The first step, the station location marker of devices'physical locations identify unit is set;
Second step, device power;
The 3rd step, hardware logic read the physical location identification information, and write register;
The 4th step, device mac address generation unit with instrument factory trading company as prefix, with the MAC Address of physical location identification information in register combination generation equipment;
The 5th step, device mac address generation unit report the system address rm-cell with the device mac address that generates, and the MAC Address conflict is registered and judged whether in the address resource management unit to device mac address;
Return the first step if there was the MAC Address conflict in the 6th step and reset the physical location sign; Otherwise finish.
The method that the present invention proposes cooperates by software and hardware when device power, obtains MAC Address automatically, and method is simple, can not cause the software version difference of equipment because of the reason of MAC Address, helps production line large-scale production.And when needs are revised device mac address,, give device power again as long as change the physical location sign, just can change device mac address.
Description of drawings
Fig. 1 is the flow chart of the method that proposes of the present invention.
Embodiment
Further describe the present invention below in conjunction with drawings and Examples.
The realization of the method that the present invention proposes relates to the address resource management unit of devices'physical locations identify unit, MAC Address generation unit and system, is described below respectively:
The physical location identify unit: the physical location of marking equipment in network, as the unique identification of equipment.In order to distinguish the miscellaneous equipment in the network, as the foundation that constitutes MAC Address, avoid taking place the MAC Address conflict with this.The physical location identify unit is in order to distinguish each equipment, in network, must keep uniqueness, can be by the realization of leaving behind on toggle switch or the resistance, toggle switch or resistance several sections be can be divided into, network element, frame, machine frame, groove position or expression province, city, district, office represented respectively.Read sign by logic after powering on and be kept in the register, read for the MAC Address generation unit;
MAC Address generation unit: according to the information that the physical location identify unit provides, generate the MAC Address of equipment, and MAC Address is reported the address resource management unit.
Address resource management unit: receive mac address information,, avoid taking place address conflict in order to MAC Address in registration, the whole network of management from the MAC Address generation unit.If exist conflict to need alarm to give the user.
As shown in Figure 1, the method for the present invention's proposition comprises the following steps:
The first step, the station location marker of devices'physical locations identify unit is set.Draw and drop-down realization on break-make that can be by toggle switch is set or the resistance.
Second step, device power.
The 3rd step, hardware logic read the physical location identification information, and write register.The hardware logic here is meant EPLD or the CPLD or the FPGA of physical location identify unit the inside, and the inside burning program can move after powering on.
The 4th step, device mac address generation unit with instrument factory trading company as prefix, with the MAC Address of physical location identification information in register combination generation equipment.The device mac address generation unit at first will read the trading company of factory of MAC Address, and trading company of factory is bought to IEEE by manufacturer, and as the prefix of MAC Address, trading company of factory can be solidificated in the program, makes up after reading the physical location identification information then from register.For example: trading company of factory is 00-D0-D0, and the physical location sign is 16bit, and the information that reads from register is 1F-58, and then MAC Address can be 00-D0-D0-00-1F-58.
The 5th step, device mac address generation unit report the system address rm-cell with the device mac address that generates, and the MAC Address conflict is registered and judged whether in the address resource management unit to device mac address.
Return the first step if there was the MAC Address conflict in the 6th step and reset the physical location sign; Otherwise finish.If there is the MAC Address conflict, then must resets the physical location sign and generate new MAC Address.

Claims (4)

1, a kind of method of obtaining device mac address is characterized in that comprising the following steps:
The first step, the station location marker of devices'physical locations identify unit is set;
Second step, device power;
The 3rd step, hardware logic read the physical location identification information, and write register;
The 4th step, device mac address generation unit with instrument factory trading company as prefix, with the MAC Address of physical location identification information in register combination generation equipment;
The 5th step, device mac address generation unit report the system address rm-cell with the device mac address that generates, and the MAC Address conflict is registered and judged whether in the address resource management unit to device mac address;
Return the first step if there was the MAC Address conflict in the 6th step and reset the physical location sign; Otherwise finish.
2, method according to claim 1 is characterized in that described physical location identify unit realizes with toggle switch.
3, method according to claim 1 is characterized in that described physical location identify unit is with the realization of leaving behind on the resistance.
4,, it is characterized in that the trading company of factory of equipment in described the 4th step is solidificated in the program according to claim 1 or 2 or 3 described methods.
CN 200410086134 2004-10-27 2004-10-27 Method for obtaining device MAC address Expired - Fee Related CN1767545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410086134 CN1767545B (en) 2004-10-27 2004-10-27 Method for obtaining device MAC address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410086134 CN1767545B (en) 2004-10-27 2004-10-27 Method for obtaining device MAC address

Publications (2)

Publication Number Publication Date
CN1767545A true CN1767545A (en) 2006-05-03
CN1767545B CN1767545B (en) 2010-06-16

Family

ID=36743144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410086134 Expired - Fee Related CN1767545B (en) 2004-10-27 2004-10-27 Method for obtaining device MAC address

Country Status (1)

Country Link
CN (1) CN1767545B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407685C (en) * 2006-08-18 2008-07-30 华为技术有限公司 Method for obtaining MAC address by communication apparatus and communication system
WO2009049523A1 (en) * 2007-10-16 2009-04-23 Huawei Technologies Co., Ltd. Address conflict detecting method, systerm and nodes apparatus
CN101179420B (en) * 2006-11-09 2010-09-29 中兴通讯股份有限公司 Method of preventing copy use of pluggable optical module
CN101272305B (en) * 2008-04-29 2011-06-08 华为技术有限公司 Access point/user set network entry method, access point and network management device
CN102710436A (en) * 2012-05-23 2012-10-03 福建星网锐捷网络有限公司 Network equipment management method, device, relative equipment and system
CN105430118A (en) * 2015-12-28 2016-03-23 广州慧睿思通信息科技有限公司 MAC address generation method and apparatus
CN105959429A (en) * 2016-04-28 2016-09-21 浪潮电子信息产业股份有限公司 Method for ensuring network card MAC address uniqueness in computer complete machine system mass production

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407685C (en) * 2006-08-18 2008-07-30 华为技术有限公司 Method for obtaining MAC address by communication apparatus and communication system
CN101179420B (en) * 2006-11-09 2010-09-29 中兴通讯股份有限公司 Method of preventing copy use of pluggable optical module
WO2009049523A1 (en) * 2007-10-16 2009-04-23 Huawei Technologies Co., Ltd. Address conflict detecting method, systerm and nodes apparatus
CN101272305B (en) * 2008-04-29 2011-06-08 华为技术有限公司 Access point/user set network entry method, access point and network management device
CN102710436A (en) * 2012-05-23 2012-10-03 福建星网锐捷网络有限公司 Network equipment management method, device, relative equipment and system
CN105430118A (en) * 2015-12-28 2016-03-23 广州慧睿思通信息科技有限公司 MAC address generation method and apparatus
CN105430118B (en) * 2015-12-28 2019-05-17 广州慧睿思通信息科技有限公司 A kind of MAC Address generation method and device
CN105959429A (en) * 2016-04-28 2016-09-21 浪潮电子信息产业股份有限公司 Method for ensuring network card MAC address uniqueness in computer complete machine system mass production

Also Published As

Publication number Publication date
CN1767545B (en) 2010-06-16

Similar Documents

Publication Publication Date Title
EP2460258B1 (en) Method and device for auto-generating goose signal connection topology from substation level
CN101635645B (en) Method and device for managing network topology
CN112311808B (en) Method for automatically mapping Modbus protocol data to OPCUA address space
CN101944770A (en) Communication implementation method of virtual station grade IED mode between primary station and substation in fault information system 61850
CN110866320A (en) Intelligent platform area graph automatic generation method and system
CN1767545A (en) Method for obtaining device MAC address
CN105760491B (en) Data modeling method and device based on equipment function
Granzer et al. Information modeling in heterogeneous building automation systems
CN107688627B (en) Internet of things data management method, semantic database and computer system
CN101620742A (en) Real-time data processing method for three-dimensional rendering
CN103631578A (en) Data display method in power distribution network automated system
CN108650127A (en) Distribute-electricity transformer district power grid automatic identifying method based on one-wire bus mode
CN1728703A (en) Method for converting protocol between Modbus and DeviceNet
CN102104492A (en) Telecommunication equipment network management server and system
CN101883082A (en) Method, equipment and system for acquiring modeling file information of network configuration protocol server
US8050784B2 (en) Integrated programmer reference for industrial control device data
CN109446260A (en) A kind of distribution management method and system of mass data point real time data
Hargreaves et al. Developing emerging standards for power system data exchange to enable interoperable and scalable operational modelling and analysis
CN108762730A (en) Software module standardizes development approach and software system development method
CN109977516B (en) Automatic modeling logic node processing method
CN111813021A (en) RS485 address multiplexing multi-slave computer data acquisition system
CN115658642B (en) Data processing method based on power grid resource data
CN101150777B (en) SCCP addressing configuration method and device for user number
CN111581311A (en) Data processing method and device, readable storage medium and electronic equipment
CN101807197A (en) Method and device for publishing spatial data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: NANJING YUHUATAI INTELLECTUAL PROPERTY CENTER

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20140926

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 210012 NANJING, JIANGSU PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140926

Address after: 210012 A building, 12, blue valley mansion, No. 106 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee after: NANJING YUHUATAI INTELLECTUAL PROPERTY PROMOTION CENTER

Address before: 518057 Nanshan District, Guangdong high tech Industrial Park, science and Technology Industrial Park, ZTE building, block A, layer 6, layer

Patentee before: ZTE Corp.

ASS Succession or assignment of patent right

Owner name: NANJING ENGINE INFORMATION + TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: NANJING YUHUATAI INTELLECTUAL PROPERTY CENTER

Effective date: 20141015

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 210012 NANJING, JIANGSU PROVINCE TO: 210000 NANJING, JIANGSU PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20141015

Address after: 210000, room 55, 103 Hong Kong court, Qinhuai District, Jiangsu, Nanjing

Patentee after: Nanjing Anze Information Technology Co.,Ltd.

Address before: 210012 A building, 12, blue valley mansion, No. 106 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: NANJING YUHUATAI INTELLECTUAL PROPERTY PROMOTION CENTER

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160908

Address after: 210000 A3 building, 180 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee after: Nanjing Kang Shisheng Computer Technology Co.,Ltd.

Address before: 210000, room 55, 103 Hong Kong court, Qinhuai District, Jiangsu, Nanjing

Patentee before: Nanjing Anze Information Technology Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100616

CF01 Termination of patent right due to non-payment of annual fee