CN110708403A - Circuit and method for automatically configuring MAC address of network card by utilizing single chip microcomputer - Google Patents

Circuit and method for automatically configuring MAC address of network card by utilizing single chip microcomputer Download PDF

Info

Publication number
CN110708403A
CN110708403A CN201911122204.1A CN201911122204A CN110708403A CN 110708403 A CN110708403 A CN 110708403A CN 201911122204 A CN201911122204 A CN 201911122204A CN 110708403 A CN110708403 A CN 110708403A
Authority
CN
China
Prior art keywords
mac address
single chip
chip microcomputer
network card
electronic switch
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
CN201911122204.1A
Other languages
Chinese (zh)
Other versions
CN110708403B (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.)
Hu Qiang
Original Assignee
CHENGDU XIMA TECHNOLOGY DEVELOPMENT 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 CHENGDU XIMA TECHNOLOGY DEVELOPMENT Co Ltd filed Critical CHENGDU XIMA TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201911122204.1A priority Critical patent/CN110708403B/en
Publication of CN110708403A publication Critical patent/CN110708403A/en
Application granted granted Critical
Publication of CN110708403B publication Critical patent/CN110708403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a circuit and a method for automatically configuring a network card MAC address by utilizing a singlechip, wherein the circuit comprises an MAC address storage chip, an electronic switch, a network main control chip and the singlechip; the single chip microcomputer is connected with the MAC address storage through the electronic switch and writes a required MAC address into the MAC address storage, the single chip microcomputer controls the electronic switch to enable the MAC address storage chip to be communicated with the network main control chip and controls the network main control chip to start and operate, and the network card works according to the set MAC address. The invention can conveniently realize the modification of the MAC address of the network card, and has simple structure and convenient implementation.

Description

Circuit and method for automatically configuring MAC address of network card by utilizing single chip microcomputer
Technical Field
The invention relates to the field of circuits, in particular to a circuit and a method for automatically configuring a network card MAC address by utilizing a single chip microcomputer.
Background
The Ethernet is the most widely applied network in the world, each Ethernet card has a unique MAC address, the MAC address of the Ethernet card is generally configured by a manufacturer, a user generally uses a special program provided by the manufacturer to set the MAC address in a DOS state, taking a series of network cards of Taiwan Realtek corporation of China as an example, the manufacturer provides a PG8168.EXE setting program, a computer is started to enter the DOS state and runs the PG8168.EXE program, the program can automatically write the MAC address in a configuration file 8168.CFG under a current folder into the network card and automatically increase 1 to the MAC address in the configuration file, a next network card is prepared to be set, if the specified MAC address needs to be set to the network card, the content of 8168.CFG needs to be manually edited before the PG8168.EXE program is run, the MAC address of the Ethernet card is changed by the program provided by the manufacturer, the computer needs to be started to enter a DOS system, and then the setting program is run, for some application scenarios that require automatic modification of the MAC address, this cannot be achieved.
Disclosure of Invention
The invention aims to provide a circuit and a method for automatically configuring a network card MAC address by utilizing a single chip microcomputer, aiming at the defects of the background technology and the existing design.
A circuit for automatically configuring a network card MAC address by utilizing a singlechip comprises an MAC address memory, an electronic switch, a network main control chip and the singlechip; the single chip microcomputer is connected with the memory through the electronic switch and writes a required MAC address into the MAC address memory, the single chip microcomputer controls the electronic switch to enable the MAC address storage chip to be communicated with the network main control chip and simultaneously controls the network main control chip to start and operate, and the network card works according to the set MAC address.
Further, the memory is an EEPROM or FLASH memory and is used for storing the MAC address.
Further, the electronic switch is a 4-pole double-throw electronic switch.
Further, the electronic switch is connected with the memory or the network card by selecting different switching directions.
Further, the starting operation of the network main control chip is controlled by a single chip microcomputer.
Furthermore, the single chip microcomputer is a 4-bit, 8-bit, 16-bit or 32-bit single chip microcomputer, or is equivalently replaced by an ASIC (application specific integrated circuit), an FPGA (field programmable gate array) and a CPLD (complex programmable logic device).
A method for automatically configuring the MAC address of a network card by utilizing a singlechip comprises the following steps:
s1: the single chip microcomputer is communicated with the MAC address storage chip through the electronic switch;
s2: the single chip microcomputer writes a required MAC address into the storage chip;
s3: the singlechip controls the electronic switch to be communicated with the network main control chip and the MAC address memory;
s4: the single chip microcomputer controls and controls the network main control chip to start and operate, and the network card works according to the MAC address set by the memory.
The invention has the beneficial effects that:
the invention can realize the automatic configuration of the MAC address of the Ethernet card, each Ethernet card has a unique MAC address, the MAC address changes after the network card is replaced, the IP address related to the MAC address of the Ethernet card is often reset manually, and some software bound with the MAC address is also needed to be reconfigured or installed manually. With the circuit and the method, the single chip microcomputer can set the MAC address of the network card according to the requirement, thereby realizing no manual configuration and improving the working efficiency.
Drawings
Fig. 1 is a schematic circuit diagram for automatically configuring a network card MAC address by using a single chip microcomputer.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings.
In this embodiment, as shown in fig. 1, a method for configuring an ethernet card MAC address by using a single chip microcomputer is to add a four-pole double-throw electronic switch on a serial communication line of a network main control chip for reading an MAC address storage chip, a center contact of the four-pole double-throw electronic switch is connected to the MAC address storage chip, an a group contact of the four-pole double-throw electronic switch is connected to the network main control chip, a B group contact of the four-pole double-throw electronic switch is connected to the single chip microcomputer, and the single chip microcomputer is used to control the start of the network main control chip and control the switching direction of the four-pole double-throw electronic switch; when the power is on, the single chip microcomputer, the four-pole double-throw electronic switch and the MAC address storage chip are firstly powered on to operate (the single chip microcomputer enables the network main control chip not to be started), the single chip microcomputer controls the four-pole double-throw electronic switch to be communicated with a pin of the single chip microcomputer and the MAC address storage chip, the single chip microcomputer can write required MAC address information into the MAC address storage chip, then the single chip microcomputer controls the four-pole double-throw electronic switch to be switched and communicated with the network main control chip and the MAC address storage chip, then the single chip microcomputer controls the network main control chip to be started to operate, and the Ethernet card works according to.
The single chip microcomputer can be various 4-bit, 8-bit, 16-bit and 32-bit single chip microcomputers, and can also realize the same function by using logic circuits such as ASIC (application specific integrated circuit), FPGA (field programmable gate array), CPLD (complex programmable logic device) and the like.
The four-pole double-throw electronic switch can be a single-chip four-pole double-throw electronic switch, such as: PI3V312, PI5V330, CH440, etc., may also be obtained by other electronic switch combinations: for example, the combination of two triple-pole double-throw electronic switches 74HC4053 or the combination of two four-pole single-throw electronic switches 74HC4066 may be completed by other combinations, as long as the input and output include a 4-pole double-throw function.
A method for configuring the MAC address of an Ethernet card by utilizing a singlechip comprises the following steps:
s1, electrifying, enabling the network card master control chip not to be started by the singlechip, controlling the switch of the terminal B by the singlechip S1, and connecting the MAC address storage chip U2 to the pins of the singlechip;
s2, the single chip microcomputer writes required MAC address data into the U2;
s3, the singlechip controls S1 to switch to the a end, and the MAC address storage chip U2 is connected to the network master control chip U1;
and S4, the single chip microcomputer controls the network main control chip U1 to start operation, and the network card works according to the set MAC address.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (7)

1. A circuit for automatically configuring the MAC address of a network card by utilizing a singlechip comprises a network main control chip, and is characterized by also comprising an MAC address memory, an electronic switch and the singlechip; the single chip microcomputer is connected with the memory through the electronic switch and writes a required MAC address into the memory, the single chip microcomputer controls the electronic switch to enable the MAC address storage chip to be communicated with the network main control chip and simultaneously controls the network main control chip to start and operate, and the network card works according to the set MAC address.
2. The circuit for automatically configuring the MAC address of the network card by using the single chip microcomputer according to claim 1, wherein the memory is an EEPROM or a FLASH memory for storing the MAC address.
3. The circuit for automatically configuring the MAC address of the network card by using the single chip microcomputer according to claim 1, wherein the electronic switch is a 4-pole double-throw electronic switch.
4. The circuit for automatically configuring the MAC address of the network card by using the single chip microcomputer according to claim 1, wherein the electronic switch enables the MAC storage chip to be connected to the single chip microcomputer or the network main control chip by selecting different switching directions.
5. The circuit for automatically configuring the MAC address of the network card by using the single chip microcomputer according to claim 1, wherein the start operation of the network main control chip is controlled by the single chip microcomputer.
6. The circuit for automatically configuring the MAC address of the network card by using the single chip microcomputer according to claim 1, wherein the single chip microcomputer is a 4-bit, 8-bit, 16-bit, 32-bit single chip microcomputer, or is equivalently replaced by an ASIC, FPGA, CPLD logic circuit.
7. A method for automatically configuring a network card MAC address by utilizing a singlechip is characterized by comprising the following steps:
s1: the single chip microcomputer is communicated with the MAC address storage chip through the electronic switch;
s2: the single chip microcomputer writes a required MAC address into the MAC address storage chip;
s3: the singlechip controls the electronic switch to enable the network main control chip to be communicated with the MAC address storage chip;
s4: the single chip controls the network main control chip to start operation, and the network card works according to the set MAC address.
CN201911122204.1A 2019-11-15 2019-11-15 Circuit and method for automatically configuring MAC address of network card by utilizing singlechip Active CN110708403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911122204.1A CN110708403B (en) 2019-11-15 2019-11-15 Circuit and method for automatically configuring MAC address of network card by utilizing singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911122204.1A CN110708403B (en) 2019-11-15 2019-11-15 Circuit and method for automatically configuring MAC address of network card by utilizing singlechip

Publications (2)

Publication Number Publication Date
CN110708403A true CN110708403A (en) 2020-01-17
CN110708403B CN110708403B (en) 2024-03-26

Family

ID=69206398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911122204.1A Active CN110708403B (en) 2019-11-15 2019-11-15 Circuit and method for automatically configuring MAC address of network card by utilizing singlechip

Country Status (1)

Country Link
CN (1) CN110708403B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958832A (en) * 2010-09-02 2011-01-26 北京东土科技股份有限公司 Field-configurable unmanaged Ethernet switch
CN102364443A (en) * 2011-06-27 2012-02-29 浪潮电子信息产业股份有限公司 Method for online programming network card configuration file
CN103885921A (en) * 2014-04-22 2014-06-25 国家电网公司 Flash memorizer, FPGA chip and configuration method of FPGA chip
CN205564000U (en) * 2016-04-25 2016-09-07 吉林建筑大学城建学院 A intermediate data transport module that is used for host computer and next quick -witted communication
CN107770299A (en) * 2017-10-24 2018-03-06 郑州云海信息技术有限公司 A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958832A (en) * 2010-09-02 2011-01-26 北京东土科技股份有限公司 Field-configurable unmanaged Ethernet switch
CN102364443A (en) * 2011-06-27 2012-02-29 浪潮电子信息产业股份有限公司 Method for online programming network card configuration file
CN103885921A (en) * 2014-04-22 2014-06-25 国家电网公司 Flash memorizer, FPGA chip and configuration method of FPGA chip
CN205564000U (en) * 2016-04-25 2016-09-07 吉林建筑大学城建学院 A intermediate data transport module that is used for host computer and next quick -witted communication
CN107770299A (en) * 2017-10-24 2018-03-06 郑州云海信息技术有限公司 A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium

Also Published As

Publication number Publication date
CN110708403B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
US6012103A (en) Bus interface system and method
CN109783340B (en) SoC test code programming method, IP test method and device
CN104778109A (en) Program downloading system and method for PCIE/PCIX external plug-in card
CN112000351B (en) Updating method, updating device, updating equipment and storage medium of BMC (baseboard management controller) firmware
US11256225B2 (en) Data transmission apparatus of circuit breaker controller
CN101098524B (en) Method for dual-mode mobile terminal to implement intermodule software continuous download
CN201741410U (en) On-line burning system provided with plurality of EEPROMs
CN108897577A (en) A kind of server backplane CPLD state self-adaption system and method
CN110568946B (en) Port control method, device and medium
CN110459260B (en) Automatic test switching device, method and system
CN111948971A (en) Intelligent card management device and data switching method thereof
CN104158709A (en) Optical module identification method and port extender
CN109491959B (en) Programmable logic device configurator
CN210629552U (en) Circuit for automatically configuring MAC address of network card by utilizing single chip microcomputer
CN112073213B (en) Method for flexibly and safely configuring PCIe switch
CN110708403A (en) Circuit and method for automatically configuring MAC address of network card by utilizing single chip microcomputer
CN110471811B (en) Control system applied to input/output interface configuration
CN115904418A (en) System and method for burning firmware of PCIE (peripheral component interface express) cascade chip
CN115718641A (en) Memory simulation method and device, storage medium and electronic device
CN107577574B (en) Debugging switching circuit and debugging circuit board
JP2001512258A (en) Circuit device for memory occupation area management and processing of user program in small control unit
CN113064833A (en) Single chip microcomputer simulation method, system, device, equipment and storage medium
CN113311350A (en) BBU power supply online test device, method and server
CN102495743B (en) Device and method for realizing FPGA (field programmable gate array) configuration by using Xilinx PROM (programmable read only memory)
CN112395224A (en) Data processing method and system, concatenation device and electronic equipment

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
TR01 Transfer of patent right

Effective date of registration: 20240416

Address after: No. 20, Unit 4, Building 2, No. 1 Ximianqiao East 1st Street, Wuhou District, Chengdu City, Sichuan Province, 610000

Patentee after: Hu Qiang

Country or region after: China

Address before: No. 33 Wuqing South Road, Chengdu City, Sichuan Province, 610000 (within the Wuhou New City Management Committee)

Patentee before: Chengdu Xima Technology Development Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right