CN102419738B - Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card - Google Patents

Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card Download PDF

Info

Publication number
CN102419738B
CN102419738B CN201110393321.9A CN201110393321A CN102419738B CN 102419738 B CN102419738 B CN 102419738B CN 201110393321 A CN201110393321 A CN 201110393321A CN 102419738 B CN102419738 B CN 102419738B
Authority
CN
China
Prior art keywords
mac address
wireless network
card
built
network card
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.)
Expired - Fee Related
Application number
CN201110393321.9A
Other languages
Chinese (zh)
Other versions
CN102419738A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201110393321.9A priority Critical patent/CN102419738B/en
Publication of CN102419738A publication Critical patent/CN102419738A/en
Application granted granted Critical
Publication of CN102419738B publication Critical patent/CN102419738B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Present invention is disclosed a kind of method solving built-in wireless network card and the conflict of external radio network interface card, comprising: the MAC Address detecting at least two wireless network cards, described wireless network card comprises external radio network interface card and built-in wireless network card; The MAC Address detected compared with the MAC Address of storage, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other are external radio network interface card.The invention allows for corresponding device.The method and apparatus of the built-in wireless network card of solution that the present invention proposes and the conflict of external radio network interface card, correctly distinguishes built-in wireless network card and external radio network interface card when user is used, provide the user conveniently.

Description

Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card
Technical field
The present invention relates to the communications field, be related specifically to a kind of method and apparatus solving built-in wireless network card and the conflict of external radio network interface card.
Background technology
Along with the development of radio network technique, increasing electronic product implants built-in WIFI (wireless network) function, the built-in WIFI of product such as such as mobile phone, PAD, portable computer, televisor almost become indispensable function, also more and more use WIFI in family and working environment, the trend of wireless penetration is day by day obvious.Most of electronic products can use built-in wireless network card and external radio network interface card as the WIFIDongle of USB interface simultaneously, such as configure the televisor of USB interface, its use all just at any time the WIFIDongle of USB interface can be inserted into televisor USB interface on use WIFI function.
When electronic product installs built-in wireless network card and external radio network interface card simultaneously, due to built-in wireless network card and external radio network interface card difference to some extent on expenses standard, network speed usually, and domestic consumer easily obscures both in use, cause and but employ external radio network interface card for using during built-in wireless network card, or but employ built-in wireless network card for using during external radio network interface card.Now be necessary to distinguish both in use, but also do not have the method realizing object at present, use to user and also result in inconvenience.
Summary of the invention
Fundamental purpose of the present invention, for providing a kind of method and apparatus solving built-in wireless network card and the conflict of external radio network interface card, is correctly distinguished built-in wireless network card and external radio network interface card, be provide the user conveniently when user is used.
The present invention proposes a kind of method solving built-in wireless network card and the conflict of external radio network interface card, comprising:
Detect the MAC Address of at least two wireless network cards, described wireless network card comprises external radio network interface card and built-in wireless network card;
The MAC Address detected compared with the MAC Address of storage, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other are external radio network interface card.
Preferably, before the MAC Address performing described detection at least two wireless network cards, also comprise:
Obtain the MAC Address of described built-in wireless network card, this MAC Address is saved to storer as the MAC Address of described storage.
Preferably, the MAC Address of the built-in wireless network card of described acquisition comprises:
By the MAC Address of built-in wireless network card described in Ifconfig command recognition.
Preferably, describedly the MAC Address detected to be compared with the MAC Address of storage in execution, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other also comprise after being external radio network interface card:
Select built-in wireless network card or external radio network interface card as required.
Preferably, described external radio network interface card is the wireless network card of USB interface wireless network card or PCI-E interface.
The present invention also proposes a kind of device solving built-in wireless network card and the conflict of external radio network interface card, comprising:
Detection module, for detecting the MAC Address of at least two wireless network cards, described wireless network card comprises external radio network interface card and built-in wireless network card;
Comparison module, for the MAC Address detected being compared with the MAC Address of storage, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other are external radio network interface card.
Preferably, described device also comprises:
Acquisition module, for obtaining the MAC Address of described built-in wireless network card, and is saved to storer using this MAC Address as the MAC Address of described storage.
Preferably, described acquisition module specifically for:
By the MAC Address of built-in wireless network card described in Ifconfig command recognition.
Preferably, described device also comprises:
Selected module, for selecting built-in wireless network card or external radio network interface card as required.
Preferably, described external radio network interface card is the wireless network card of USB interface wireless network card or PCI-E interface.
The method and apparatus of the built-in wireless network card of solution that the present invention proposes and the conflict of external radio network interface card, is undertaken identifying built-in wireless network card and external radio network interface card by the MAC Address of network interface card, uses provide conveniently to user.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention solves method first embodiment of built-in wireless network card and the conflict of external radio network interface card;
Fig. 2 is the structural representation that the present invention solves device second embodiment of built-in wireless network card and the conflict of external radio network interface card.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention is mainly to utilize MAC Address to be network interface card uniquely identified principle, identifies built-in wireless network card and external radio network interface card.No matter all network interface cards, no matter be wired network adapter or wireless network card, be built-in or external, have its self unique MAC Address, can not duplicate, that is the I.D. of MAC Address and network interface card.
According to above-mentioned principle, with reference to Fig. 1, propose method first embodiment that the present invention solves built-in wireless network card and the conflict of external radio network interface card, comprising:
Step S101, obtain the MAC Address of built-in wireless network card, this MAC Address is saved to storer as the MAC Address stored.
The Function detection of electronic product when production line assembling is produced can be utilized to obtain this MAC Address as the MAC Address stored, due to when production link, only having built-in wireless network card in electronic product, therefore can read the MAC Address of current wireless network interface card when detecting built-in wireless network card function immediately.For distinguishing in the MAC Address using the wireless network card detected in link, the MAC Address that the former called after stores by the present embodiment.The MAC Address that the MAC Address that the present embodiment obtains built-in wireless network card in electronic product by the order performing " ifconfig " namely stores, as following example:
Can show that from command execution results the MAC Address of the wired network adapter of this electronic product is: 00:1C:50:EC:71:74, and the MAC Address of built-in wireless network card is: 6C:FD:B9:09:D4:C9.6C:FD:B9:09:D4:C9 is preserved in storer (being generally a certain memory headroom as EEPROM) as the MAC Address stored.
The MAC Address of step S102, detection at least two wireless network cards, described wireless network card comprises external radio network interface card and built-in wireless network card;
The radio function of electronic product is used user, and when there is built-in wireless network card and one or more external radio network interface card in this electronic product simultaneously, system identifies multiple wireless network card simultaneously, detect the MAC Address of all wireless network cards, the MAC Address that this MAC Address called after detects by the present embodiment, to distinguish the MAC Address of storage.
Step S103, the MAC Address detected compared with the MAC Address of storage, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other are external radio network interface card.
The MAC Address of having preserved in multiple MAC Address of detecting and storer contrasted, if the MAC Address of a certain wireless network card is identical with the MAC Address of storage, as being all 6C:FD:B9:09:D4:C9, then this wireless network card is built-in wireless network card.Otherwise then think that external radio network interface card such as MAC Address is other MAC Address beyond 6C:FD:B9:09:D4:C9.
Step S104, select built-in wireless network card or external radio network interface card as required.
After correctly identifying built-in wireless network card and external radio network interface card, can corresponding prompting be carried out, select for user, and select built-in wireless network card or the application of external radio network interface card according to the selection of user.
The present embodiment is undertaken identifying built-in wireless network card and external radio network interface card by the MAC Address of network interface card, uses provide conveniently to user.
Based on same inventive concept, with reference to Fig. 2, the present invention proposes device second embodiment solving built-in wireless network card and the conflict of external radio network interface card, comprising:
Acquisition module 10, for obtaining the MAC Address of built-in wireless network card, is saved to storer using this MAC Address as the MAC Address stored.
Detection module 20, for detecting the MAC Address of at least two wireless network cards, described wireless network card comprises external radio network interface card and built-in wireless network card;
Comparison module 30, for the MAC Address detected being compared with the MAC Address of storage, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other are external radio network interface card.
Selected module 40, for selecting built-in wireless network card or external radio network interface card as required.
Acquisition module 10 can utilize the Function detection of electronic product when production line assembling is produced to obtain the MAC Address of built-in wireless network card, due to when production link, only having built-in wireless network card in electronic product, therefore can read the MAC Address of current wireless network interface card when detecting built-in wireless network card function immediately.For distinguishing in the MAC Address using the wireless network card detected in link, the MAC Address that the former called after stores by the present embodiment.
The MAC Address that the MAC Address that acquisition module 10 obtains built-in wireless network card in electronic product by the order performing " ifconfig " namely stores, as following example:
Can show that from command execution results the MAC Address of the wired network adapter of this electronic product is: 00:1C:50:EC:71:74, and the MAC Address of built-in wireless network card is: 6C:FD:B9:09:D4:C9.6C:FD:B9:09:D4:C9 is preserved in storer (being generally a certain memory headroom as EEPROM) as the MAC Address stored.
The radio function of electronic product is used user, and when there is built-in wireless network card and one or more external radio network interface card in this electronic product simultaneously, system identifies multiple wireless network card simultaneously, detection module 20 detects the MAC Address of all wireless network cards, the MAC Address that this MAC Address called after detects by the present embodiment, to distinguish the MAC Address of storage.
Comparison module 30 relatively described in the MAC Address of the MAC Address that detects and existing storage; If the MAC Address of a certain wireless network card is identical with the MAC Address of storage, as being all 6C:FD:B9:09:D4:C9, then judge that this wireless network card is as built-in wireless network card.Otherwise then judge to be external radio network interface card if MAC Address is as other MAC Address beyond 6C:FD:B9:09:D4:C9.
After correctly identifying built-in wireless network card and external radio network interface card, selected module 40 can carry out corresponding prompting, selects for user, and selects built-in wireless network card or the application of external radio network interface card according to the selection of user.
The present embodiment is undertaken identifying built-in wireless network card and external radio network interface card by the MAC Address of network interface card, uses provide conveniently to user.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. solve a method for built-in wireless network card and the conflict of external radio network interface card, it is characterized in that, comprising:
Detect the MAC Address of at least two wireless network cards, described wireless network card comprises external radio network interface card and built-in wireless network card;
The MAC Address detected compared with the MAC Address of storage, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other are external radio network interface card;
Before the MAC Address performing described detection at least two wireless network cards, also comprise:
Obtain the MAC Address of described built-in wireless network card, this MAC Address is saved to storer as the MAC Address of described storage;
The MAC Address of the described built-in wireless network card of described acquisition, is specially the step that this MAC Address is saved to storer as the MAC Address of described storage:
The Function detection of electronic product when production line assembling is produced is utilized to obtain the MAC Address of its built-in wireless network card, and using this MAC Address as the MAC Address stored.
2. the method for claim 1, is characterized in that, the MAC Address of the built-in wireless network card of described acquisition comprises:
By the MAC Address of built-in wireless network card described in Ifconfig command recognition.
3. method as claimed in claim 1 or 2, is characterized in that, the MAC Address detected compared with the MAC Address of storage execution is described, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other also comprise after being external radio network interface card:
Select built-in wireless network card or external radio network interface card as required.
4. method as claimed in claim 1 or 2, it is characterized in that, described external radio network interface card is the wireless network card of USB interface wireless network card or PCI-E interface.
5. solve a device for built-in wireless network card and the conflict of external radio network interface card, it is characterized in that, comprising:
Detection module, for detecting the MAC Address of at least two wireless network cards, described wireless network card comprises external radio network interface card and built-in wireless network card;
Comparison module, for the MAC Address detected being compared with the MAC Address of storage, the MAC Address of wireless network card is identical with the MAC Address of storage, then judge that this network interface card is built-in wireless network card; All the other are external radio network interface card;
Acquisition module, for obtaining the MAC Address of described built-in wireless network card, is saved to storer using this MAC Address as the MAC Address of described storage;
Described acquisition module specifically for:
The Function detection of electronic product when production line assembling is produced is utilized to obtain the MAC Address of its built-in wireless network card, and using this MAC Address as the MAC Address stored.
6. device as claimed in claim 5, is characterized in that, described acquisition module specifically for:
By the MAC Address of built-in wireless network card described in Ifconfig command recognition.
7. the device as described in claim 5 or 6, is characterized in that, also comprises:
Selected module, for selecting built-in wireless network card or external radio network interface card as required.
8. the device as described in claim 5 or 6, is characterized in that, described external radio network interface card is the wireless network card of USB interface wireless network card or PCI-E interface.
CN201110393321.9A 2011-12-01 2011-12-01 Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card Expired - Fee Related CN102419738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110393321.9A CN102419738B (en) 2011-12-01 2011-12-01 Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110393321.9A CN102419738B (en) 2011-12-01 2011-12-01 Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card

Publications (2)

Publication Number Publication Date
CN102419738A CN102419738A (en) 2012-04-18
CN102419738B true CN102419738B (en) 2015-11-18

Family

ID=45944156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110393321.9A Expired - Fee Related CN102419738B (en) 2011-12-01 2011-12-01 Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card

Country Status (1)

Country Link
CN (1) CN102419738B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395709A (en) * 2017-07-14 2017-11-24 郑州云海信息技术有限公司 The communication means and device of a kind of storage cluster

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567226A (en) * 2003-06-20 2005-01-19 顺德市顺达电脑厂有限公司 Test system and method for general purpose serial interface
CN1992732A (en) * 2005-12-30 2007-07-04 英业达股份有限公司 Network card automatic configuration system and method
CN101488115A (en) * 2009-02-24 2009-07-22 中兴通讯股份有限公司 Method and system for recognizing self-bringing external memory device of modem

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011014036A (en) * 2009-07-03 2011-01-20 Silex Technology Inc Device and program for managing peripheral equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567226A (en) * 2003-06-20 2005-01-19 顺德市顺达电脑厂有限公司 Test system and method for general purpose serial interface
CN1992732A (en) * 2005-12-30 2007-07-04 英业达股份有限公司 Network card automatic configuration system and method
CN101488115A (en) * 2009-02-24 2009-07-22 中兴通讯股份有限公司 Method and system for recognizing self-bringing external memory device of modem

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
如何区分内外网的网卡?;MSDN3000;《CSDN论坛http://bbs.csdn.net/topics/80452807》;20060409;第1-5页 *

Also Published As

Publication number Publication date
CN102419738A (en) 2012-04-18

Similar Documents

Publication Publication Date Title
US10601976B2 (en) Executing applications in conjunction with other devices
EP2645265A3 (en) Function executing device
TW200639643A (en) Dual PCI-X/PCI-E card
MY162237A (en) Smart card-based browsing system and smart card-based browsing method and smart card for the same
WO2010129357A3 (en) Verification of portable consumer devices
CN104754139A (en) Message prompting method and device
MX2011003513A (en) A computer mouse for secure communication with a mobile communication device.
MY159635A (en) System,method,and program for generating screen
CN105446739A (en) UI interface setting method and apparatus
US20110319132A1 (en) Mobile phone having detachable smart card module
CN104270740A (en) Slot-sharing T card and SIM card detection method
CN104239211A (en) Method and device for enabling mobile terminal to rapidly enter test mode
EP2270758A3 (en) Portable electronic apparatus, processing apparatus for portable electronic apparatus, and data processing method in portable electronic apparatus
CN101778174A (en) Method, system and external card for achieving function extension of mobile terminal
CN103731544A (en) Display method and device for intelligent terminal interface and intelligent terminal
CN105516282A (en) Data synchronous processing method and wearable device
CN102419738B (en) Solve the method and apparatus of built-in wireless network card and the conflict of external radio network interface card
CN108924325B (en) Data processing method and related device
CN105021992B (en) A kind of method and device of prompting mobile terminal charging
CN105446597A (en) Presentation method and present apparatus for function description information of application, and terminal
CN103369711A (en) Communication connection establishment method and terminal device
CN105573610A (en) Spreadsheet operation methods and apparatuses
CN103561478A (en) Method and device for automatically achieving wireless connection between devices
CN104463034B (en) A kind of method and device of safe and convenient unloading external connection storage device
CN102938804B (en) A kind of method and apparatus of managing liaison information

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151118

Termination date: 20171201

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