CN104158705A - Method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards - Google Patents

Method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards Download PDF

Info

Publication number
CN104158705A
CN104158705A CN201410422681.0A CN201410422681A CN104158705A CN 104158705 A CN104158705 A CN 104158705A CN 201410422681 A CN201410422681 A CN 201410422681A CN 104158705 A CN104158705 A CN 104158705A
Authority
CN
China
Prior art keywords
controlled
mac
master control
write
mac address
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.)
Pending
Application number
CN201410422681.0A
Other languages
Chinese (zh)
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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W Electronics 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 Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN201410422681.0A priority Critical patent/CN104158705A/en
Publication of CN104158705A publication Critical patent/CN104158705A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of manufacturing of communication electronic products, in particular to a method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards. The method comprises the following steps that: a test environment is constructed, the test environment comprises a master control PC (Personal Computer) and N controlled PCs, which are connected to each other in one local network area, the master control PC and the N controlled PCs are connected to each other through one Hub, and each controlled PC in the N controlled PCs is connected to one wireless network card; N threads are arranged on the master control PC, each thread receives a scanned MAC address, when one MAC address is scanned, each thread creates a socket connection to be connected to an IP (Internet Protocol) address of the corresponding controlled PC. According to the method, an operator can synchronously test the multiple network cards on one PC, so that the efficiency is greatly improved; in addition, an interface for testing the multiple network cards is displayed on one display screen, so that a plurality of displays can be saved.

Description

A kind of method that can control multiple network interface cards simultaneously and write MAC
Technical field
The present invention relates to the manufacturing field of communication class electronic product, relate in particular to a kind of method that can control multiple network interface cards simultaneously and write MAC.
Background technology
In the manufacture process of communication class electronic product, for example Embedded product: router, there is PC ancillary equipment, as wireless network card etc., need to write a unique MAC Address for each product.The way of writing MAC for router is by a PC, with netting twine connection route device, writes MAC Address, and be that network interface card is write MAC Address by order to router, network interface card is arranged on to PC upper, and PC writes MAC Address by driving to network interface card.
In initial production process, a PC once can only test a product, tests an other product after testing a product again, and production efficiency is very low.In order to enhance productivity, allow an equipment can test many routers simultaneously, a utility model patent discloses a kind of multimachine test macro, the patent No. 201120370409.4, although this method has solved a problem that equipment is tested many routers simultaneously, but this method cannot be applied on wireless network card, wireless network card or a network interface card of a PC test, because wireless network card is controlled by driving, a PC cannot control multiple wireless network cards simultaneously and carry out production test.
Summary of the invention
The object of the present invention is to provide a kind of method that multiple network interface cards can be controlled simultaneously write MAC, the problem of solution.
For addressing the above problem, the technical solution used in the present invention is:
The method that can control multiple network interface cards simultaneously and write MAC, comprises the following steps:
Step 1, build test environment, comprise the master control PC and the controlled PC of N platform that are interconnected in same local area network (LAN), described master control PC and the controlled PC of described N platform interconnect by a Hub, and in the controlled PC of described N platform, every controlled PC is all connected with a wireless network card;
Step 2 arranges N thread on master control PC, and each thread receives the MAC Address being scanned into, MAC Address of every scanning, and socket of thread creation connects, and is connected on the IP address of corresponding controlled PC;
Step 3, controlled PC receives after socket connection, master control PC is the order that will write MAC, MAC Address sends to controlled PC, parse concrete command format, and using MAC Address as parameter, call the function writeEeprom that writes MAC Address, MAC Address is written in wireless network card, has write rear handle and write whether successful result returns to master control PC again.
Further technical scheme is, the message format that described master control PC is sent to controlled PC is defined as follows: Write mac 001122001155, the message format that controlled PC returns to master control PC is defined as follows: Write mac pass.
Adopt the beneficial effect that produces of technique scheme to be: the present invention is by the transformation of hardware environment, the improvement of method of testing, has realized an operator and on a PC, can operate multiple network interface cards and test simultaneously, has improved greatly efficiency; In addition, the interface of testing multiple network interface cards shows screen display at one, can save many displays.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet that can control multiple network interface cards simultaneously and write the method for MAC of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 shows a kind of embodiment that can control multiple network interface cards simultaneously and write the method for MAC of the present invention: a kind of method that can control multiple network interface cards simultaneously and write MAC, comprises the following steps:
Step 1, build test environment, comprise the master control PC and the controlled PC of N platform that are interconnected in same local area network (LAN), described master control PC and the controlled PC of described N platform interconnect by a Hub, and in the controlled PC of described N platform, every controlled PC is all connected with a wireless network card;
Step 2 arranges N thread on master control PC, and each thread receives the MAC Address (as 001122334455) being scanned into, MAC Address of every scanning, and socket of thread creation connects, and is connected on the IP address of corresponding controlled PC;
Step 3, controlled PC receives after socket connection, master control PC is the order that will write MAC, MAC Address sends to controlled PC (as write mac 001122334455), parses concrete command format, and using MAC Address as parameter, call the function writeEeprom that writes MAC Address (as 0x95,001122334455), MAC Address is written in wireless network card, has write rear handle and write whether successful result returns to master control PC again.
An a kind of preferred embodiment can controlling multiple network interface cards simultaneously and write the method for MAC according to the present invention, the message format that described master control PC is sent to controlled PC is defined as follows: Write mac 001122001155, the message format that controlled PC returns to master control PC is defined as follows: Write mac pass.
Although with reference to multiple explanatory embodiment of the present invention, invention has been described here, but, should be appreciated that, those skilled in the art can design a lot of other amendment and execution modes, within these amendments and execution mode will drop on the disclosed principle scope and spirit of the application.More particularly, in the scope of, accompanying drawing open in the application and claim, can carry out multiple modification and improvement to the building block of subject combination layout and/or layout.Except distortion that building block and/or layout are carried out and improving, to those skilled in the art, other purposes will be also obvious.

Claims (2)

1. the method that can control multiple network interface cards simultaneously write MAC, is characterized in that comprising the following steps:
Step 1, build test environment, comprise the master control PC and the controlled PC of N platform that are interconnected in same local area network (LAN), described master control PC and the controlled PC of described N platform interconnect by a Hub, and in the controlled PC of described N platform, every controlled PC is all connected with a wireless network card;
Step 2 arranges N thread on master control PC, and each thread receives the MAC Address being scanned into, MAC Address of every scanning, and socket of thread creation connects, and is connected on the IP address of corresponding controlled PC;
Step 3, controlled PC receives after socket connection, master control PC is the order that will write MAC, MAC Address sends to controlled PC, parse concrete command format, and using MAC Address as parameter, call the function writeEeprom that writes MAC Address, MAC Address is written in wireless network card, has write rear handle and write whether successful result returns to master control PC again.
2. a kind of method that can control multiple network interface cards simultaneously and write MAC according to claim 1, is characterized in that:
The message format that described master control PC is sent to controlled PC is defined as follows: Write mac 001122001155, the message format that controlled PC returns to master control PC is defined as follows: Write mac pass.
CN201410422681.0A 2014-08-25 2014-08-25 Method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards Pending CN104158705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410422681.0A CN104158705A (en) 2014-08-25 2014-08-25 Method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410422681.0A CN104158705A (en) 2014-08-25 2014-08-25 Method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards

Publications (1)

Publication Number Publication Date
CN104158705A true CN104158705A (en) 2014-11-19

Family

ID=51884116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410422681.0A Pending CN104158705A (en) 2014-08-25 2014-08-25 Method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards

Country Status (1)

Country Link
CN (1) CN104158705A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553744A (en) * 2015-12-31 2016-05-04 西安诺瓦电子科技有限公司 Production method of singlechip-based network equipment
CN108227578A (en) * 2017-12-29 2018-06-29 上海移远通信技术股份有限公司 Automated test control system and method
CN115499346A (en) * 2022-09-15 2022-12-20 巨擎网络科技(济南)有限公司 Multi-network-card speed measuring method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462131A (en) * 2002-05-30 2003-12-17 深圳市中兴通讯股份有限公司 Broad-band insertion service apparatus dialing testing method
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN101119237A (en) * 2006-07-31 2008-02-06 英业达股份有限公司 Network card testing method
CN201393230Y (en) * 2008-12-26 2010-01-27 北京中电华大电子设计有限责任公司 USB interface-based wireless network card testing device
CN102185733A (en) * 2011-04-13 2011-09-14 深圳宝德科技集团股份有限公司 Network card testing method and system
CN103442015A (en) * 2013-09-04 2013-12-11 深圳市华讯方舟科技有限公司 Method and system for processing capwap tunnel data on wireless network controller based on linux virtual network card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462131A (en) * 2002-05-30 2003-12-17 深圳市中兴通讯股份有限公司 Broad-band insertion service apparatus dialing testing method
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN101119237A (en) * 2006-07-31 2008-02-06 英业达股份有限公司 Network card testing method
CN201393230Y (en) * 2008-12-26 2010-01-27 北京中电华大电子设计有限责任公司 USB interface-based wireless network card testing device
CN102185733A (en) * 2011-04-13 2011-09-14 深圳宝德科技集团股份有限公司 Network card testing method and system
CN103442015A (en) * 2013-09-04 2013-12-11 深圳市华讯方舟科技有限公司 Method and system for processing capwap tunnel data on wireless network controller based on linux virtual network card

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553744A (en) * 2015-12-31 2016-05-04 西安诺瓦电子科技有限公司 Production method of singlechip-based network equipment
CN105553744B (en) * 2015-12-31 2019-01-29 西安诺瓦电子科技有限公司 A kind of production method of the SCM Based network equipment
CN108227578A (en) * 2017-12-29 2018-06-29 上海移远通信技术股份有限公司 Automated test control system and method
CN115499346A (en) * 2022-09-15 2022-12-20 巨擎网络科技(济南)有限公司 Multi-network-card speed measuring method, device, equipment and medium
CN115499346B (en) * 2022-09-15 2024-04-26 巨擎网络科技(济南)有限公司 Speed measuring method, device, equipment and medium for multiple network cards

Similar Documents

Publication Publication Date Title
CN101404596B (en) Multi-topological environmental test method, system and equipment
CN105005471A (en) Method, device, server and system for modifying configuration parameters of BIOS
CN102646031A (en) Method for controlling large screen to display contents by mobile terminal
CN102143229A (en) Method and system for upgrading terminals in batches
CN104158705A (en) Method of simultaneous control of writing of MAC (Media Access Control) addresses in multiple network cards
CN103338210A (en) AP (Access Point) emulation analog system based on CAPWAP (Control and Provisioning of Wireless Access Points) protocol
CN107092459A (en) Exchange method and interactive device and display screen control system
CN101867505A (en) Network simulation method and device
CN105262638A (en) Method for simultaneously testing plurality of electronic products
CN106330619A (en) System and method for simultaneously controlling multiple network cards and making same subjected to wireless board testing
CN108419336B (en) LED light screen control system and implementation method thereof
WO2017113848A1 (en) Testing method, testing platform and simulated testing device for test case
CN105632385B (en) A kind of LED display blind-spot detection method and its detection device
CN106294155A (en) A kind of distributed I/O Simulation Control method of testing, system and simulation computer
US9306823B2 (en) Testing by simulation using variations of real-time traffic
CN102256244B (en) Mobile terminal management method, management server, mobile terminal and management system
CN106603332A (en) Method for simultaneously testing internet accesses of to-be-tested product
CN102984034A (en) Testing structure
CN114285695A (en) Communication method, device, equipment, system and storage medium
CN204157061U (en) A kind of networking control system of ZigBee equipment
JP2009273138A (en) Flexible approach for representing different bus protocols
CN103986588B (en) Computer system and far-end remote control method of computer device
CN105786434B (en) A kind of control method and equipment remotely shown
CN106331892B (en) Module screen adjusting method and device of television and television
CN104320286A (en) Wireless router simple and convenient configuration device and router configuration method by adoption of wireless router simple and convenient device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141119

RJ01 Rejection of invention patent application after publication